[data-theme="dark"],
:root {
  --bg: #0d0f14;
  --bg2: #13161d;
  --surface: #1a1e28;
  --surface2: #212636;
  --surface3: #2a3040;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);

  --t1: #f0f2f7;
  --t2: #9aa3b8;
  --t3: #5c6478;
  --t-inv: #0d0f14;

  --topbar-bg: rgba(13, 15, 20, 0.92);
  --card-bg: #1a1e28;
  --card-hover: #212636;
  --input-bg: #212636;
  --skeleton-from: #1a1e28;
  --skeleton-to: #252a38;

  --soon: #f59e0b;
}

[data-theme="light"] {
  --bg: #f0f2f7;
  --bg2: #e8ebf2;
  --surface: #ffffff;
  --surface2: #f5f7fc;
  --surface3: #eaecf4;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.15);

  --t1: #0d1117;
  --t2: #4a5568;
  --t3: #9aa3b8;
  --t-inv: #ffffff;

  --topbar-bg: rgba(240, 242, 247, 0.92);
  --card-bg: #ffffff;
  --card-hover: #f5f7fc;
  --input-bg: #f0f2f7;
  --skeleton-from: #e8ebf2;
  --skeleton-to: #dde0ea;

  --soon: #d97706;
}

/* ═══ RESET & BASE ══════════════════════════════════════════════ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

* {
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--t1);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: calc(60px + env(safe-area-inset-bottom));
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}
input,
textarea {
  font-family: inherit;
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
    display: grid;
    grid-template-columns: 240px 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "sidebar topbar"
      "sidebar main";
    min-height: 100vh;
  }

  #topbarMount {
    grid-area: topbar;
  }
  #sidebarMount {
    grid-area: sidebar;
  }
  #main {
    grid-area: main;
  }
  #bottomNavMount {
    display: none;
  }
}

#main {
  padding: 16px;
  max-width: 100%;
  min-width: 0;
}

@media (min-width: 640px) {
  #main {
    padding: 20px 24px;
  }
}

@media (min-width: 1024px) {
  #main {
    padding: 28px 32px;
    max-width: none;
    overflow-y: auto;
  }
}

@media (min-width: 1440px) {
  body {
    grid-template-columns: 260px 1fr;
  }
}

/* ═══ TOPBAR ════════════════════════════════════════════════════ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--topbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  height: 56px;
}

@media (min-width: 1024px) {
  .topbar {
    padding: 0 28px;
    height: 60px;
  }
}

.topbar-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin: 0 4px 0 -4px;
  padding: 10px;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--t1);
  cursor: pointer;
  flex-shrink: 0;
}
.topbar-menu-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.topbar-menu-btn-bar {
  display: block;
  height: 2px;
  width: 18px;
  border-radius: 1px;
  background: currentColor;
}
.topbar-menu-btn-bar:nth-child(2) {
  width: 13px;
}

@media (max-width: 1023px) {
  .topbar {
    z-index: 100;
  }
  .topbar-menu-btn {
    display: flex;
  }
}

.logo {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--t1);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.logo em {
  font-style: normal;
  color: var(--brand);
}

/* Ortak marka SVG (ana index + maçlar / alt sayfalar) */
.brand-logo-with-img {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  color: inherit;
}
.brand-logo-img {
  display: block;
  height: 32px;
  width: auto;
  max-width: min(240px, 42vw);
  filter: none;
}
[data-theme="light"] .brand-logo-img {
  filter: invert(1);
}
.topbar .brand-logo-img {
  height: 30px;
}
.sidebar .sidebar-logo .brand-logo-img {
  height: 36px;
  max-width: 100%;
}
.fg-standalone-brand {
  margin-bottom: 24px;
  display: inline-block;
  line-height: 0;
}
.fg-standalone-brand .brand-logo-img {
  height: 48px;
  max-width: min(280px, 80vw);
}

.topbar-center {
  flex: 1;
  max-width: 480px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ═══ SIDEBAR (Desktop) ════════════════════════════════════════ */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow-y: auto;
  z-index: 80;
}

@media (min-width: 1440px) {
  .sidebar {
    width: 260px;
  }
}

.sidebar-logo {
  padding: 20px 20px 16px;
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--t1);
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.5px;
}

.sidebar-logo em {
  font-style: normal;
  color: var(--brand);
}

.sidebar-nav {
  padding: 12px 8px;
  flex: 1;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--t2);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  transition: all var(--transition-fast);
  cursor: pointer;
  margin-bottom: 2px;
  min-height: 44px;
}

.sidebar-item:hover {
  background: var(--surface2);
  color: var(--t1);
}

.sidebar-item.active {
  background: var(--brand-glow);
  color: var(--brand);
}

.sidebar-item .nav-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-section-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 12px 12px 4px;
  margin-top: 8px;
}

.sidebar-bottom {
  padding: 12px 8px;
  border-top: 1px solid var(--border);
}

.sidebar-backdrop {
  display: none;
}

@media (max-width: 1023px) {
  #sidebarMount .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    z-index: 92;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.45);
  }
  body.nav-drawer-open #sidebarMount .sidebar {
    transform: translateX(0);
  }
  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 91;
    background: rgba(0, 0, 0, 0.52);
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .sidebar-backdrop[hidden] {
    display: none !important;
  }
}

[data-theme="light"] .sidebar-backdrop {
  background: rgba(0, 0, 0, 0.35);
}

@media (min-width: 1024px) {
  .sidebar-backdrop {
    display: none !important;
  }
  body.nav-drawer-open #sidebarMount .sidebar {
    transform: none !important;
  }
}

/* ═══ BOTTOM NAV (Mobile) ══════════════════════════════════════ */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--topbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: flex;
  padding-bottom: env(safe-area-inset-bottom);
  height: calc(60px + env(safe-area-inset-bottom));
}

@media (min-width: 1024px) {
  .bottom-nav {
    display: none;
  }
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px;
  color: var(--t3);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  transition: color var(--transition-fast);
  touch-action: manipulation;
  min-height: 44px;
  text-decoration: none;
  cursor: pointer;
}

.nav-item.active {
  color: var(--brand);
}
.nav-item:hover {
  color: var(--t1);
}

.nav-icon {
  font-size: 20px;
  line-height: 1;
}
.nav-label {
  font-size: 10px;
  font-weight: var(--weight-medium);
}

/* ═══ SEARCH BAR ════════════════════════════════════════════════ */

.search-bar {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: var(--text-sm);
  color: var(--t1);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-bar::placeholder {
  color: var(--t3);
}
.search-bar:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  touch-action: manipulation;
}
.btn-primary:hover {
  background: var(--brand-dim);
  transform: translateY(-1px);
  box-shadow: var(--shadow-brand);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  background: transparent;
  color: var(--t2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  transition: all var(--transition-fast);
  cursor: pointer;
  touch-action: manipulation;
}
.btn-ghost:hover {
  background: var(--surface2);
  color: var(--t1);
  border-color: var(--border-strong);
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
}
.btn-accent:hover {
  background: var(--accent-dim);
}

.pro-btn {
  padding: 7px 14px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.3px;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  touch-action: manipulation;
}
.pro-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.auth-pill {
  padding: 7px 14px;
  background: var(--surface2);
  color: var(--t1);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  transition: all var(--transition-fast);
  cursor: pointer;
  touch-action: manipulation;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-pill:hover {
  background: var(--surface3);
}

.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: var(--surface2);
  color: var(--t2);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1px solid var(--border);
  touch-action: manipulation;
}
.theme-toggle:hover {
  background: var(--surface3);
  color: var(--t1);
}

.modal-form .btn-primary,
.modal-card .btn-primary {
  width: 100%;
}

/* ═══ CARDS ═════════════════════════════════════════════════════ */

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.profile-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
}

/* ═══ SKELETON ══════════════════════════════════════════ */

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--skeleton-from) 25%,
    var(--skeleton-to) 50%,
    var(--skeleton-from) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--radius-md);
}

.skeleton-card {
  height: 120px;
  border-radius: var(--radius-lg);
}

.skeleton-line {
  height: 14px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.skeleton-line.short {
  width: 60%;
}
.skeleton-line.medium {
  width: 80%;
}

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

.form-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
}
.form-badge.w {
  background: rgba(34, 197, 94, 0.15);
  color: var(--win);
}
.form-badge.d {
  background: rgba(245, 158, 11, 0.15);
  color: var(--draw);
}
.form-badge.l {
  background: rgba(239, 68, 68, 0.15);
  color: var(--loss);
}
.form-badge.ns {
  background: var(--surface2);
  color: var(--t3);
}

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

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
}

.status-badge.live {
  background: var(--live-glow);
  color: var(--live);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.live-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  animation: pulse 1.2s ease infinite;
}

/* ═══ TOAST ═════════════════════════════════════════════════════ */

.fg-toast {
  position: fixed;
  bottom: calc(72px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--surface3);
  color: var(--t1);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-base);
  z-index: 9999;
  white-space: nowrap;
  border: 1px solid var(--border);
}

@media (min-width: 1024px) {
  .fg-toast {
    bottom: 24px;
  }
}

.fg-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.fg-toast--success {
  background: rgba(34, 197, 94, 0.15);
  color: var(--win);
  border-color: rgba(34, 197, 94, 0.3);
}
.fg-toast--error {
  background: rgba(239, 68, 68, 0.15);
  color: var(--live);
  border-color: rgba(239, 68, 68, 0.3);
}
.fg-toast--info {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent);
  border-color: rgba(59, 130, 246, 0.3);
}

/* ═══ SPINNER ═══════════════════════════════════════════════════ */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

.spinner-lg {
  width: 32px;
  height: 32px;
  border-width: 3px;
}

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

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  color: var(--t3);
  font-size: var(--text-sm);
  text-align: center;
  gap: 12px;
}

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

.input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: var(--text-sm);
  color: var(--t1);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.input::placeholder {
  color: var(--t3);
}
.input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

/* ═══ SECTION HEADERS ═══════════════════════════════════════════ */

.section {
  margin-bottom: 20px;
}

.section-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--t2);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ═══ UTILITY ═══════════════════════════════════════════════════ */

.muted {
  color: var(--t3);
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--brand-glow);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-bold);
  font-size: var(--text-base);
  flex-shrink: 0;
}

button,
a,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button,
a,
input[type="button"],
input[type="submit"] {
  cursor: pointer;
}

.nav-item,
.subnav button,
.tab,
.date-tab,
.sidebar-item {
  min-height: 44px;
}

#couponFab {
  z-index: 200;
}
.fg-toast {
  z-index: 9999;
}

/* ═══ MATCH GRID & CARDS ════════════════════════════════════════ */

.match-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 600px) {
  .match-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (min-width: 1024px) {
  .match-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (min-width: 1280px) {
  .match-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.match-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}
.match-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.match-card.is-live {
  border-color: rgba(239, 68, 68, 0.3);
}
.match-card.is-live:hover {
  border-color: rgba(239, 68, 68, 0.5);
}

.card-inner {
  padding: 12px 14px;
}

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

.league-info {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.league-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.league-name {
  font-size: var(--text-xs);
  color: var(--t3);
  font-weight: var(--weight-medium);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.teams-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.team {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.team.away {
  align-items: flex-end;
}

.team-logo-wrap {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.team-name {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--t1);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.team.away .team-name {
  text-align: right;
}

.score-col {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 64px;
}

.score-num {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--t1);
  letter-spacing: -0.5px;
  line-height: 1;
}
.score-num.live {
  color: var(--live);
}

.score-time {
  font-size: var(--text-xs);
  color: var(--t3);
}

.score-vs {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--t3);
}

.mini-form {
  display: flex;
  gap: 3px;
  margin-top: 4px;
}
.mini-form-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.mini-form-dot.w {
  background: var(--win);
}
.mini-form-dot.d {
  background: var(--draw);
}
.mini-form-dot.l {
  background: var(--loss);
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--surface2);
  border-top: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--t3);
}

.ai-icon {
  color: var(--brand);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
}

.ai-text {
  flex: 1;
}

.locked-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--surface2);
  border-top: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--t3);
}

.coupon-add-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--t3);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all var(--transition-fast);
  line-height: 1;
}
.coupon-add-btn.added {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.date-tab {
  flex-shrink: 0;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--t2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.date-tab.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.league-shortcut {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--t2);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.league-shortcut:hover {
  background: var(--surface2);
  color: var(--t1);
}

.tab {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--t3);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  white-space: nowrap;
}
.tab.active {
  background: var(--surface2);
  color: var(--t1);
  border-color: var(--border);
}

.tabs-wrap {
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
}
.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}

.coupon-fab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  background: var(--brand);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  box-shadow: var(--shadow-brand);
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.coupon-fab-btn:hover {
  background: var(--brand-dim);
  transform: translateY(-1px);
}

.pro-chip {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--accent);
  background: rgba(59, 130, 246, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.fav-banner {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent);
  background: rgba(59, 130, 246, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fav-banner-match {
  color: var(--t1);
  text-decoration: none;
  font-size: var(--text-sm);
  padding: 4px 0;
  display: block;
}
.fav-banner-match:hover {
  color: var(--accent);
}

.recent-chip {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  color: var(--t2);
  text-decoration: none;
  font-size: var(--text-xs);
  white-space: nowrap;
  transition: background var(--transition-fast);
}
.recent-chip:hover {
  background: var(--surface2);
}

.notif-prompt {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--surface2);
  font-size: var(--text-sm);
  color: var(--t1);
}

.accuracy-widget {
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface2);
  margin-bottom: 12px;
}
.acc-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  margin-bottom: 10px;
  color: var(--t1);
}
.acc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.acc-item {
  text-align: center;
}
.acc-val {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--accent);
}
.acc-label {
  font-size: var(--text-xs);
  color: var(--t3);
  margin-top: 2px;
}

/* ═══ MATCH DETAIL ══════════════════════════════════════════════ */

.detail-hero {
  background: linear-gradient(180deg, var(--surface2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 24px 16px 0;
  margin: -16px -16px 0;
}

@media (min-width: 1024px) {
  .detail-hero {
    margin: -28px -32px 0;
    padding: 32px 32px 0;
  }
}

.detail-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: var(--text-xs);
  color: var(--t3);
  margin-bottom: 20px;
}

.detail-meta img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.detail-scores {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  max-width: 480px;
  margin: 0 auto 20px;
}

.detail-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.detail-team img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

@media (min-width: 640px) {
  .detail-team img {
    width: 72px;
    height: 72px;
  }
}

.detail-team .team-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--t1);
  text-align: center;
  max-width: 120px;
}

.detail-score {
  font-size: 40px;
  font-weight: var(--weight-bold);
  color: var(--t1);
  letter-spacing: -2px;
  line-height: 1;
  text-align: center;
}

@media (min-width: 640px) {
  .detail-score {
    font-size: 52px;
  }
}

.detail-score.is-live {
  color: var(--live);
}
.detail-score.is-vs {
  font-size: 28px;
  color: var(--t3);
  letter-spacing: 0;
}

.subnav {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--border);
  margin: 0 -16px;
  padding: 0 16px;
  scrollbar-width: none;
  background: var(--bg);
  position: sticky;
  top: 56px;
  z-index: 40;
}
.subnav::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1024px) {
  .subnav {
    top: 60px;
    margin: 0 -32px;
    padding: 0 32px;
  }
}

.subnav button {
  flex-shrink: 0;
  padding: 12px 16px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--t3);
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
  background: none;
  border-radius: 0;
  min-height: 44px;
  white-space: nowrap;
}
.subnav button.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}
.subnav button:hover {
  color: var(--t1);
}

.panel {
  padding: 16px 0;
  display: none;
}
.panel.active {
  display: block;
}

.stat-bar-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.stat-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: var(--text-xs);
  color: var(--t2);
}

.stat-bar-label .stat-val-home {
  font-weight: var(--weight-semibold);
  color: var(--t1);
}
.stat-bar-label .stat-val-away {
  font-weight: var(--weight-semibold);
  color: var(--t1);
}
.stat-bar-label .stat-name {
  color: var(--t3);
}

.stat-bar-track {
  height: 4px;
  background: var(--surface3);
  border-radius: var(--radius-full);
  overflow: hidden;
  display: flex;
}

.stat-bar-home {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

.stat-bar-away {
  height: 100%;
  background: var(--live);
  border-radius: var(--radius-full);
  margin-left: auto;
  transition: width var(--transition-slow);
}

.lineup-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 10px;
}

.lineup-formation {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface2);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--t2);
  margin-bottom: 12px;
}

.lineup-section-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 10px 0 6px;
}

.player-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--t1);
}
.player-row:last-child {
  border-bottom: none;
}

.player-number {
  width: 24px;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--t3);
  font-weight: var(--weight-semibold);
  flex-shrink: 0;
}

.h2h-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
  text-decoration: none;
  color: var(--t1);
  transition: background var(--transition-fast);
}
.h2h-row:last-child {
  border-bottom: none;
}
.h2h-row:hover {
  background: var(--surface2);
  margin: 0 -16px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
}

.h2h-score {
  font-weight: var(--weight-bold);
  font-size: var(--text-base);
  min-width: 48px;
  text-align: center;
}

.pred-card {
  background: linear-gradient(135deg, rgba(0, 195, 137, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
  border: 1px solid rgba(0, 195, 137, 0.2);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
}

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

.pred-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--brand);
}

.pred-risk {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
}

.pred-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.pred-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  text-align: center;
}

.pred-label {
  font-size: var(--text-xs);
  color: var(--t3);
  margin-bottom: 4px;
}

.pred-value {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--t1);
  margin-bottom: 2px;
}

.pred-conf {
  font-size: var(--text-xs);
  color: var(--brand);
  font-weight: var(--weight-semibold);
}

.pred-share {
  width: 100%;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  color: var(--t2);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.pred-share:hover {
  background: var(--surface2);
  color: var(--t1);
}

.ai-block {
  font-size: var(--text-sm);
  color: var(--t2);
  line-height: 1.7;
  white-space: pre-wrap;
}

.chat-box {
  max-height: 280px;
  overflow-y: auto;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-msg {
  font-size: var(--text-sm);
  line-height: 1.5;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: var(--surface3);
  color: var(--t1);
  max-width: 90%;
}

.chat-msg.user {
  background: var(--brand-glow);
  border: 1px solid rgba(0, 195, 137, 0.2);
  align-self: flex-end;
}

.chat-input-row {
  display: flex;
  gap: 8px;
}

.chat-input-row input {
  flex: 1;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: var(--text-sm);
  color: var(--t1);
  outline: none;
}
.chat-input-row input:focus {
  border-color: var(--brand);
}

.chat-input-row button {
  padding: 8px 14px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: background var(--transition-fast);
  border: none;
  white-space: nowrap;
}
.chat-input-row button:hover {
  background: var(--brand-dim);
}

/* ═══ TEAM PAGE ═════════════════════════════════════════════════ */

.team-hero {
  background: linear-gradient(135deg, var(--surface2) 0%, var(--surface3) 100%);
  border-bottom: 1px solid var(--border);
  padding: 28px 16px 20px;
  margin: -16px -16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

@media (min-width: 1024px) {
  .team-hero {
    flex-direction: row;
    text-align: left;
    gap: 24px;
    padding: 32px 32px 24px;
    margin: -28px -32px 24px;
  }
}

.team-hero-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3));
}

@media (min-width: 1024px) {
  .team-hero-logo {
    width: 88px;
    height: 88px;
  }
}

.team-hero-info {
  flex: 1;
}

.team-hero-name {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--t1);
  margin-bottom: 4px;
}

.team-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

@media (min-width: 1024px) {
  .team-hero-meta {
    justify-content: flex-start;
  }
}

.team-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  color: var(--t3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 3px 10px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

@media (min-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 12px;
  text-align: center;
}

.stat-box-val {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--t1);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-box-label {
  font-size: var(--text-xs);
  color: var(--t3);
}

.fixture-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fixture-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--t1);
  transition: background var(--transition-fast);
}
.fixture-row:last-child {
  border-bottom: none;
}
.fixture-row:hover {
  background: var(--surface2);
}

.fixture-row-result {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
}
.fixture-row-result.w {
  background: rgba(34, 197, 94, 0.15);
  color: var(--win);
}
.fixture-row-result.d {
  background: rgba(245, 158, 11, 0.15);
  color: var(--draw);
}
.fixture-row-result.l {
  background: rgba(239, 68, 68, 0.15);
  color: var(--loss);
}
.fixture-row-result.ns {
  background: var(--surface2);
  color: var(--t3);
}

.fixture-row-teams {
  flex: 1;
  font-size: var(--text-sm);
  min-width: 0;
}

.fixture-row-score {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--t1);
  flex-shrink: 0;
  min-width: 40px;
  text-align: center;
}

.fixture-row-date {
  font-size: var(--text-xs);
  color: var(--t3);
  flex-shrink: 0;
}

/* ═══ PLAYER PAGE ═══════════════════════════════════════════════ */

.player-hero {
  background: linear-gradient(135deg, var(--surface2) 0%, var(--surface3) 100%);
  border-bottom: 1px solid var(--border);
  padding: 24px 16px 20px;
  margin: -16px -16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

@media (min-width: 1024px) {
  .player-hero {
    padding: 32px 32px 24px;
    margin: -28px -32px 24px;
    gap: 24px;
  }
}

.player-photo {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid var(--border-strong);
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .player-photo {
    width: 96px;
    height: 96px;
  }
}

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

.player-name {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--t1);
  margin-bottom: 4px;
}

.player-rating-circle {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex-shrink: 0;
}

.player-rating-val {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: #fff;
  line-height: 1;
}

.player-rating-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 1px;
}

.player-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.player-hero-stat {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 8px;
  text-align: center;
}

.player-hero-stat-val {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--t1);
  line-height: 1;
  margin-bottom: 4px;
}

.player-hero-stat-label {
  font-size: var(--text-xs);
  color: var(--t3);
}

/* ═══ LEAGUE PAGE ═══════════════════════════════════════════════ */

.league-hero {
  background: linear-gradient(135deg, var(--surface2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 20px 16px;
  margin: -16px -16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

@media (min-width: 1024px) {
  .league-hero {
    padding: 24px 32px;
    margin: -28px -32px 24px;
  }
}

.league-hero-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.league-hero-name {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--t1);
}

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

.standings-table th {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 10px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.standings-table th:first-child,
.standings-table th:nth-child(2) {
  text-align: left;
}

.standings-table td {
  padding: 10px;
  font-size: var(--text-sm);
  color: var(--t1);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.standings-table td:first-child {
  color: var(--t3);
  font-weight: var(--weight-semibold);
  width: 28px;
}
.standings-table td:nth-child(2) {
  text-align: left;
}

.standings-table tr:last-child td {
  border-bottom: none;
}
.standings-table tr:hover td {
  background: var(--surface2);
}

.standings-team-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.standings-team-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.standings-team-name {
  font-weight: var(--weight-medium);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

@media (min-width: 480px) {
  .standings-team-name {
    max-width: 160px;
  }
}

.standings-form {
  display: flex;
  gap: 2px;
  justify-content: center;
}

.standings-pts {
  font-weight: var(--weight-bold);
  color: var(--t1);
}

.scorer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--t1);
  transition: background var(--transition-fast);
}
.scorer-row:last-child {
  border-bottom: none;
}
.scorer-row:hover {
  background: var(--surface2);
}

.scorer-rank {
  width: 24px;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--t3);
  flex-shrink: 0;
}
.scorer-rank.top {
  color: var(--draw);
}

.scorer-photo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface2);
}

.scorer-info {
  flex: 1;
  min-width: 0;
}
.scorer-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}
.scorer-team {
  font-size: var(--text-xs);
  color: var(--t3);
  margin-top: 1px;
}

.scorer-goals {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.scorer-goals-num {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--brand);
  line-height: 1;
}

.scorer-goals-label {
  font-size: var(--text-xs);
  color: var(--t3);
}

.fx-day-header {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px 6px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}

.fx-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--t1);
  transition: background var(--transition-fast);
}
.fx-row:last-child {
  border-bottom: none;
}
.fx-row:hover {
  background: var(--surface2);
}
.fx-row.fx-live-row {
  background: rgba(239, 68, 68, 0.04);
}

.fx-team {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.fx-team img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.fx-team span {
  font-size: var(--text-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fx-away {
  justify-content: flex-end;
  flex-direction: row-reverse;
}

.fx-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  min-width: 64px;
}

.fx-center strong {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
}

.fx-live {
  color: var(--live);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
}

.league-subnav {
  display: flex;
  gap: 4px;
  padding: 10px 0 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 8px;
}
.league-subnav::-webkit-scrollbar {
  display: none;
}
.lsn-btn {
  flex-shrink: 0;
  font-family: inherit;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--t2);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.lsn-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.league-panel {
  display: none;
  padding: 0 0 16px;
}
.league-panel.active {
  display: block;
}

.show-sm {
  display: none !important;
}
@media (min-width: 640px) {
  .show-sm {
    display: table-cell !important;
  }
}

/* ═══ BLUR LOCK (mac AI guest) ════════════════════════════════ */

.blur-wrap {
  position: relative;
  min-height: 120px;
}
.blur-content {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}
.lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(13, 15, 20, 0.55);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  padding: 20px;
  text-align: center;
}
.lock-overlay .lock-ico {
  font-size: 28px;
}
.lock-overlay p {
  color: var(--t2);
  font-size: var(--text-sm);
  max-width: 260px;
}

[data-theme="light"] .lock-overlay {
  background: rgba(240, 242, 247, 0.75);
}

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

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  z-index: 1000;
}
.modal-card {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 22px;
  z-index: 1001;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-card--wide {
  max-width: 440px;
}
.modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--card-bg);
  color: var(--t2);
  cursor: pointer;
}
.modal-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  margin-bottom: 12px;
  padding-right: 28px;
}
.modal-sub {
  font-size: var(--text-sm);
  color: var(--t2);
  margin-bottom: 14px;
}
.btn-google {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: #fff;
  color: #333;
  font-weight: var(--weight-semibold);
  cursor: pointer;
  font-family: inherit;
}
.modal-or {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--t3);
  margin: 12px 0;
}
.modal-form .input {
  width: 100%;
  margin-bottom: 10px;
}
.form-error {
  color: var(--live);
  font-size: var(--text-xs);
  margin: 6px 0;
}
.link-toggle {
  display: block;
  width: 100%;
  margin-top: 12px;
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: var(--text-sm);
  font-family: inherit;
}
.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}
.plan-btn {
  padding: 14px 10px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--t1);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  font-family: inherit;
  font-size: var(--text-sm);
}
.plan-btn--best {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.1);
}
.modal-trust {
  font-size: var(--text-xs);
  color: var(--t3);
  text-align: center;
  margin-top: 8px;
}

.stat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.stat-table th,
.stat-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.stat-table th {
  color: var(--t3);
  font-size: var(--text-xs);
  text-transform: uppercase;
}

/* ── FutGPT (index.html ile hizalı siyah-beyaz tema — diğer sayfalar için isteğe bağlı) ── */
html[data-theme="dark"] {
  --quiz-bg: #0a0a0a;
  --quiz-surface: #111111;
  --quiz-accent: #ffffff;
  --quiz-t1: #ffffff;
  --quiz-t2: #888888;
}
html[data-theme="light"] {
  --quiz-bg: #f5f5f5;
  --quiz-surface: #ffffff;
  --quiz-accent: #000000;
  --quiz-t1: #0a0a0a;
  --quiz-t2: #666666;
}
