@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;600&display=swap');

/* ════════════════════════════════════════════════════════════════════════════
   CSS VARIABLES
   ════════════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #0a0c10;
  --bg2: #111318;
  --bg3: #181c24;
  --card: #1a1e28;
  --border: rgba(255, 255, 255, 0.07);
  --accent: #e8b84b;
  --accent2: #f0d080;
  --red: #e05252;
  --green: #4caf7d;
  --blue: #4a9eff;
  --text: #f0f2f5;
  --muted: #6b7280;
  --sub: #9ca3af;
  --radius: 14px;
  --radius-sm: 8px;
}

/* ════════════════════════════════════════════════════════════════════════════
   GLOBAL RESET
   ════════════════════════════════════════════════════════════════════════════ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.phone {
  width: 390px;
  max-width: 390px;
  min-height: 100vh;
  background: var(--bg);
}

/* ════════════════════════════════════════════════════════════════════════════
   SCREENS & LAYOUT
   ════════════════════════════════════════════════════════════════════════════ */

.screen {
  display: none;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

.screen.active {
  display: flex;
}

/* ════════════════════════════════════════════════════════════════════════════
   LOGIN SCREEN
   ════════════════════════════════════════════════════════════════════════════ */

.login-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 0%, rgba(232, 184, 75, .15) 0%, transparent 60%), 
              radial-gradient(ellipse at 10% 80%, rgba(74, 158, 255, .08) 0%, transparent 50%);
}

.login-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 60px 32px 40px;
  min-height: 100vh;
}

.logo-mark {
  width: 56px;
  height: 56px;
  background: var(--accent);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 48px;
  box-shadow: 0 0 40px rgba(232, 184, 75, .3);
}

.logo-mark svg {
  width: 30px;
  height: 30px;
  fill: var(--bg);
}

.login-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -.5px;
}

.login-title span {
  color: var(--accent);
}

.login-sub {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 48px;
}

/* ════════════════════════════════════════════════════════════════════════════
   LANGUAGE SELECTOR
   ════════════════════════════════════════════════════════════════════════════ */

.lang-selector {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.lang-flag {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s, transform 0.2s;
  border: 2px solid transparent;
  overflow: hidden;
  background: var(--card);
}

.lang-flag:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

.lang-flag.active {
  opacity: 1;
  border-color: var(--accent);
  transform: scale(1.05);
}

.lang-flag svg {
  width: 100%;
  height: 100%;
}

/* ════════════════════════════════════════════════════════════════════════════
   FORM ELEMENTS
   ════════════════════════════════════════════════════════════════════════════ */

.field-group {
  margin-bottom: 16px;
}

.field-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.field-input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text);
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  outline: none;
}

.field-select {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.field-select option {
  background: var(--bg2);
}

/* ════════════════════════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════════════════════════ */

.btn-primary {
  width: 100%;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Rajdhani', sans-serif;
  cursor: pointer;
  margin-top: 8px;
}

.btn-logout {
  background: var(--red);
  margin: 12px 0;
}

.btn-home-action {
  max-width: 200px;
  margin: 0 auto;
}

.btn-secondary {
  width: 100%;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-sm {
  background: var(--bg3);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}

.btn-sm.accent {
  background: rgba(232, 184, 75, .15);
  color: var(--accent);
  border-color: rgba(232, 184, 75, .3);
}

.btn-sm.danger {
  background: rgba(224, 82, 82, .1);
  color: var(--red);
  border-color: rgba(224, 82, 82, .2);
}

/* ════════════════════════════════════════════════════════════════════════════
   DIVIDERS
   ════════════════════════════════════════════════════════════════════════════ */

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider-text {
  color: var(--muted);
  font-size: 13px;
}

/* ════════════════════════════════════════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════════════════════════════════════════ */

.navbar {
  padding: 52px 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  position: relative;
}

.nav-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 21px;
  font-weight: 700;
  flex-shrink: 0;
}

.nav-title span {
  color: var(--accent);
}

.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #c97b2a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--bg);
  cursor: pointer;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   MATCH CHIP & DROPDOWN
   ════════════════════════════════════════════════════════════════════════════ */

.match-chip-wrapper {
  flex: 1;
  position: relative;
  min-width: 0;
}

.match-chip {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  min-width: 0;
  transition: border-color 0.2s;
}

.match-chip.open {
  border-color: var(--accent);
}

.match-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.match-chip-name {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-chip-arrow {
  color: var(--muted);
  font-size: 10px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.match-chip.open .match-chip-arrow {
  transform: rotate(180deg);
}

/* Match Dropdown */
.match-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-height: 280px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: dropdownSlideIn 0.2s ease-out;
}

.match-dropdown.open {
  display: block;
}

@keyframes dropdownSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.match-dropdown-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.match-dropdown-item:last-child {
  border-bottom: none;
}

.match-dropdown-item:hover {
  background: rgba(232, 184, 75, 0.08);
}

.match-dropdown-item.active {
  background: rgba(232, 184, 75, 0.12);
}

/* Zebra striping */
.match-dropdown-item:nth-child(odd) {
  background: rgba(42, 47, 58, 0.4);
}

.match-dropdown-item:nth-child(even) {
  background: rgba(58, 63, 74, 0.4);
}

.match-dropdown-item:nth-child(odd):hover {
  background: rgba(232, 184, 75, 0.12);
}

.match-dropdown-item:nth-child(even):hover {
  background: rgba(232, 184, 75, 0.12);
}

.match-dropdown-item.active {
  background: rgba(232, 184, 75, 0.15) !important;
}

.match-dropdown-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.match-dropdown-active-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.match-dropdown-meta {
  font-size: 11px;
  color: var(--muted);
}

.match-dropdown::-webkit-scrollbar {
  width: 6px;
}

.match-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.match-dropdown::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.match-dropdown::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

/* ════════════════════════════════════════════════════════════════════════════
   TAB BAR
   ════════════════════════════════════════════════════════════════════════════ */

.tab-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 354px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  display: flex;
  padding: 10px 0 26px;
  z-index: 100;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  color: var(--muted);
  font-size: 10px;
}

.tab-item.active {
  color: var(--accent);
}

.tab-icon {
  font-size: 20px;
  line-height: 1;
}

/* ════════════════════════════════════════════════════════════════════════════
   SCROLL CONTENT & CARDS - CONSISTENT WIDTH SYSTEM
   ════════════════════════════════════════════════════════════════════════════ */

.scroll-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 18px 110px 18px;
  width: 100%;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  width: 100%;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  font-weight: 600;
}

/* ════════════════════════════════════════════════════════════════════════════
   BADGES
   ════════════════════════════════════════════════════════════════════════════ */

.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

.badge-gold {
  background: rgba(232, 184, 75, .15);
  color: var(--accent);
  border: 1px solid rgba(232, 184, 75, .3);
}

.badge-green {
  background: rgba(76, 175, 125, .15);
  color: var(--green);
  border: 1px solid rgba(76, 175, 125, .3);
}

.badge-blue {
  background: rgba(74, 158, 255, .15);
  color: var(--blue);
  border: 1px solid rgba(74, 158, 255, .3);
}

/* ════════════════════════════════════════════════════════════════════════════
   STATS GRID
   ════════════════════════════════════════════════════════════════════════════ */

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-block {
  background: var(--bg3);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
}

.stat-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ════════════════════════════════════════════════════════════════════════════
   PROGRESS BAR
   ════════════════════════════════════════════════════════════════════════════ */

.progress-bar {
  height: 6px;
  background: var(--bg3);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
}

.fill-gold {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.fill-green {
  background: var(--green);
}

.fill-blue {
  background: var(--blue);
}

/* ════════════════════════════════════════════════════════════════════════════
   STAGE ROW
   ════════════════════════════════════════════════════════════════════════════ */

.stage-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.stage-row:last-child {
  border-bottom: none;
}

.stage-num {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  flex-shrink: 0;
}

.stage-info {
  flex: 1;
  min-width: 0;
}

.stage-name {
  font-size: 14px;
  font-weight: 500;
}

.stage-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.stage-hf {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* ════════════════════════════════════════════════════════════════════════════
   MINI CHART
   ════════════════════════════════════════════════════════════════════════════ */

.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 54px;
  margin-top: 10px;
}

.chart-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  height: 100%;
}

.chart-bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--accent), rgba(232, 184, 75, .4));
}

.chart-bar-lbl {
  font-size: 9px;
  color: var(--muted);
}

/* ════════════════════════════════════════════════════════════════════════════
   MATCH HEADER CARD
   ════════════════════════════════════════════════════════════════════════════ */

.mhc-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
}

.mhc-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

.mhc-stats {
  display: flex;
  gap: 18px;
  margin-top: 12px;
}

.mhc-val {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.mhc-lbl {
  font-size: 10px;
  color: var(--muted);
}

/* ════════════════════════════════════════════════════════════════════════════
   MATCH ROW
   ════════════════════════════════════════════════════════════════════════════ */

.match-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.match-row:last-child {
  border-bottom: none;
}

.match-row-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}

.match-row-icon.is-active {
  background: rgba(232, 184, 75, .12);
  border: 1px solid rgba(232, 184, 75, .3);
}

.match-row-info {
  flex: 1;
  min-width: 0;
}

.match-row-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-row-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.match-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

.match-stg-count {
  font-family: Rajdhani, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

.match-stg-lbl {
  font-size: 10px;
  color: var(--muted);
}

/* ════════════════════════════════════════════════════════════════════════════
   SEARCH & FILTERS
   ════════════════════════════════════════════════════════════════════════════ */

.search-wrap {
  position: relative;
  margin-bottom: 12px;
}

.search-input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px 12px 40px;
  color: var(--text);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  outline: none;
}

.search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
}

.filter-row {
  display: flex;
  gap: 7px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  color: var(--muted);
}

.filter-chip.active {
  background: rgba(232, 184, 75, .15);
  border-color: rgba(232, 184, 75, .4);
  color: var(--accent);
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION TITLES
   ════════════════════════════════════════════════════════════════════════════ */

.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  font-weight: 600;
  margin: 14px 0 10px;
}

.section-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin: 16px 0 8px;
}

/* ════════════════════════════════════════════════════════════════════════════
   FAB (FLOATING ACTION BUTTON)
   ════════════════════════════════════════════════════════════════════════════ */

.fab {
  position: fixed;
  bottom: 84px;
  right: calc(50% - 195px + 14px);
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(232, 184, 75, .4);
  z-index: 99;
}

@media (max-width: 390px) {
  .fab {
    right: 14px;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   MODALS
   ════════════════════════════════════════════════════════════════════════════ */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .75);
  z-index: 200;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-sheet {
  width: 100%;
  max-width: 390px;
  background: var(--bg2);
  border-radius: 24px 24px 0 0;
  padding: 0;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  animation: slideUp .28s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  flex-shrink: 0;
}

.modal-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 21px;
  font-weight: 700;
}

.modal-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--muted);
}

.modal-body {
  padding: 0 20px 20px;
  overflow-x: hidden;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.modal-footer {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   INPUT ROWS
   ════════════════════════════════════════════════════════════════════════════ */

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.input-full {
  margin-bottom: 10px;
}

/* ════════════════════════════════════════════════════════════════════════════
   SEGMENTED CONTROL
   ════════════════════════════════════════════════════════════════════════════ */

.seg-control {
  display: flex;
  background: var(--bg3);
  border-radius: var(--radius-sm);
  padding: 3px;
  margin-bottom: 14px;
}

.seg-btn {
  flex: 1;
  padding: 7px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  color: var(--muted);
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
}

.seg-btn.active {
  background: var(--card);
  color: var(--text);
}

/* ════════════════════════════════════════════════════════════════════════════
   HIT ROW
   ════════════════════════════════════════════════════════════════════════════ */

.hit-row {
  display: flex;
  gap: 6px;
}

.hit-cell {
  flex: 1;
  background: var(--bg3);
  border-radius: var(--radius-sm);
  padding: 10px 3px;
  text-align: center;
}

.hit-cell input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  text-align: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.hit-lbl {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 2px;
}

/* ════════════════════════════════════════════════════════════════════════════
   PROGNOSE INPUTS
   ════════════════════════════════════════════════════════════════════════════ */

.prognose-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 7px;
  margin-bottom: 12px;
}

.prog-field {
  background: var(--bg3);
  border-radius: var(--radius-sm);
  padding: 11px 7px;
  text-align: center;
}

.prog-field.prog-readonly {
  opacity: 0.7;
}

.prog-field input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--accent);
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

.prog-field input.prog-readonly-input {
  color: var(--muted);
}

.prog-field input.prog-accent-input {
  color: var(--accent);
}

.prog-field-lbl {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 3px;
}

.prognose-result {
  background: linear-gradient(135deg, rgba(232, 184, 75, .1), rgba(232, 184, 75, .05));
  border: 1px solid rgba(232, 184, 75, .2);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  margin-top: 10px;
}

.prog-pf-note {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 3px;
}

.prog-hf-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.prog-hf-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 46px;
  font-weight: 700;
  color: var(--accent);
}

.prog-delta-wrap {
  display: none;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.prog-delta-label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 2px;
}

.prog-delta-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.prog-breakdown {
  font-size: 12px;
  color: var(--sub);
  margin-top: 6px;
  line-height: 1.8;
}

.prog-breakdown-detail {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .05);
}

/* ════════════════════════════════════════════════════════════════════════════
   PASTE AREA
   ════════════════════════════════════════════════════════════════════════════ */

.paste-area {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  color: var(--text);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  outline: none;
  resize: none;
  height: 128px;
}

.parse-preview {
  background: var(--bg3);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: 10px;
  display: none;
}

.parse-preview.show {
  display: block;
}

.parse-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 3px 0;
}

.parse-key {
  color: var(--muted);
}

.parse-val {
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}

/* ════════════════════════════════════════════════════════════════════════════
   PROFILE CARD - SIMPLE CENTERED CARD (NO WRAPPER!)
   ════════════════════════════════════════════════════════════════════════════ */

.profile-card {
  text-align: center;
  padding: 32px 16px 24px;
}

.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #c97b2a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 36px;
  color: var(--bg);
  margin: 0 auto 16px;
}

.profile-header {
  text-align: center;
  padding: 0;
  margin-bottom: 20px;
}

.profile-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-div {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.profile-badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.profile-spacer {
  height: 20px;
}

/* ════════════════════════════════════════════════════════════════════════════
   INFO ROW (PROFILE CARD ROWS - NO INLINE STYLES)
   ════════════════════════════════════════════════════════════════════════════ */

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.info-row:last-child {
  border-bottom: none;
}

.info-key {
  color: var(--muted);
  font-size: 14px;
}

.info-val {
  font-size: 14px;
  font-weight: 500;
}

/* ════════════════════════════════════════════════════════════════════════════
   POWER FACTOR OPTIONS (NO INLINE STYLES)
   ════════════════════════════════════════════════════════════════════════════ */

.pf-options {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 6px;
}

.pf-option {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
}

.pf-option input {
  display: none;
}

.pf-option.active {
  border-color: var(--accent);
  background: rgba(232, 184, 75, .1);
}

.pf-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.pf-option.active .pf-label {
  color: var(--accent);
}

.pf-sub {
  font-size: 11px;
  color: var(--muted);
}

/* ════════════════════════════════════════════════════════════════════════════
   STANDINGS TABLE (NO INLINE STYLES)
   ════════════════════════════════════════════════════════════════════════════ */

.standings-table-wrap {
  overflow-x: auto;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
}

.standings-header-row {
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
}

.standings-th {
  padding: 8px;
}

.standings-th-rank {
  text-align: left;
}

.standings-th-shooter {
  text-align: left;
}

.standings-th-pts {
  text-align: right;
}

.standings-th-pct {
  text-align: right;
}

.standings-row {
  border-bottom: 1px solid rgba(255, 255, 255, .04);
}

.standings-td {
  padding: 10px;
}

.standings-td-rank {
  font-weight: 600;
}

.standings-shooter-name {
  font-weight: 600;
}

.standings-shooter-meta {
  font-size: 11px;
  color: var(--muted);
}

.standings-td-pts {
  text-align: right;
  font-weight: 600;
}

.standings-td-pct {
  text-align: right;
  color: var(--accent);
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
}

/* ════════════════════════════════════════════════════════════════════════════
   EMPTY STATE
   ════════════════════════════════════════════════════════════════════════════ */

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.empty-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--sub);
  margin-bottom: 6px;
}

.empty-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

/* ════════════════════════════════════════════════════════════════════════════
   NO MATCH BANNER
   ════════════════════════════════════════════════════════════════════════════ */

.no-match-banner {
  background: rgba(232, 184, 75, .07);
  border: 1px solid rgba(232, 184, 75, .2);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  cursor: pointer;
}

.nmb-text {
  flex: 1;
}

.nmb-title {
  font-weight: 600;
  font-size: 14px;
}

.nmb-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* ════════════════════════════════════════════════════════════════════════════
   SCROLLBAR HIDE
   ════════════════════════════════════════════════════════════════════════════ */

::-webkit-scrollbar {
  width: 0;
}
