/* ═══════════════════════════════════════════
   Football Predictor — Styles
   Dark theme, mobile-first, sports aesthetic
   ═══════════════════════════════════════════ */

/* ── Design Tokens ── */
/* ── Design Tokens ── */
:root {
  /* Common Brand Colors */
  --accent-green: #00ff87;
  --accent-yellow: #f0c040;
  --accent-red: #ff4757;
  --accent-blue: #58a6ff;

  --brand-purple: #667eea;
  --brand-purple-light: #764ba2;
  --brand-gradient: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-purple-light) 100%);

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: .25s cubic-bezier(.4, 0, .2, 1);

  /* Dark Theme (Default) */
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-card: #1c2128;
  --bg-card-hover: #242b35;
  --border: #30363d;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --navbar-bg: rgba(13, 17, 23, .92);
  --shadow: 0 4px 24px rgba(0, 0, 0, .4);
  --track-bg: rgba(255, 255, 255, .08);
  --pred-bg: rgba(0, 0, 0, .2);
}

/* Light Theme */
body.light-theme {
  --bg-primary: #f0f2f5;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f9fa;
  --border: #d0d7de;
  --text-primary: #1f2328;
  --text-secondary: #656d76;
  --navbar-bg: rgba(255, 255, 255, .92);
  --shadow: 0 4px 20px rgba(0, 0, 0, .08);

  /* Light Theme Accents (Accessible) */
  --accent-green: #6200ea;
  /* Deep Purple as Primary */
  --accent-yellow: #d97706;
  /* Darker Yellow/Orange */
  --accent-red: #d32f2f;
  /* Darker Red */
  --accent-blue: #0969da;
  /* Darker Blue */
  --track-bg: rgba(0, 0, 0, .1);
  --pred-bg: rgba(98, 0, 234, 0.05);
  /* Subtle Purple Tint */
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

/* ═══════════════ NAVBAR ═══════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navbar-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-green);
  transition: opacity var(--transition);
}

.navbar__brand:hover {
  opacity: .85;
}

.navbar__logo {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.3));
}

.navbar__logo svg {
  width: 32px;
  height: 32px;
}

.navbar__brand:hover .navbar__logo {
  transform: rotate(15deg) scale(1.1);
  filter: drop-shadow(0 0 12px rgba(102, 126, 234, 0.6));
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

@media (max-width: 1024px) {
  .navbar__links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .navbar__links.show {
    display: flex;
  }
}

.navbar__link {
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.navbar__link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, .06);
}

.navbar__link.active {
  color: var(--accent-green);
  background: rgba(0, 255, 135, .08);
}

.navbar__link--premium {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 165, 0, 0.1) 100%);
  border: 1px solid rgba(255, 215, 0, 0.2);
  color: #ffd700 !important;
}

.navbar__link--premium:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.2) 100%);
  border-color: rgba(255, 215, 0, 0.4);
  transform: translateY(-1px);
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 4px;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.navbar__hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__hamburger.open span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Language Selector ── */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-selector {
  position: relative;
}

.lang-selector__btn {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .4rem .75rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 700;
  transition: all var(--transition);
}

.lang-selector__btn:hover {
  background: rgba(255, 255, 255, .1);
  border-color: var(--text-secondary);
}

.icon-world {
  width: 18px;
  height: 18px;
  color: var(--accent-green);
}

/* ── Theme Toggle ── */
.theme-toggle {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .4rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

body.light-theme .theme-toggle {
  background: rgba(0, 0, 0, .03);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, .1);
  border-color: var(--text-secondary);
  transform: translateY(-1px);
}

body.light-theme .theme-toggle:hover {
  background: rgba(0, 0, 0, .06);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

body.light-theme .theme-toggle .icon-sun {
  display: block;
}

body.light-theme .theme-toggle .icon-moon {
  display: none;
}

.lang-selector__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  min-width: 160px;
  overflow: hidden;
  z-index: 101;
  animation: fadeInDown .2s ease;
}

.lang-selector__menu.show {
  display: flex;
}

.lang-opt {
  padding: .75rem 1rem;
  text-align: left;
  background: none;
  color: var(--text-secondary);
  font-size: .9rem;
  font-weight: 600;
  transition: all var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, .03);
}

.lang-opt:hover {
  background: rgba(255, 255, 255, .05);
  color: var(--accent-green);
}

.lang-opt:last-child {
  border-bottom: none;
}

/* RTL Support */
.lang-rtl {
  direction: rtl;
  text-align: right;
}

.lang-rtl .navbar__container,
.lang-rtl .navbar__links,
.lang-rtl .match-card__league,
.lang-rtl .match-card__prediction,
.lang-rtl .predictions-summary,
.lang-rtl .modal-detail__header,
.lang-rtl .modal-detail__pred-grid,
.lang-rtl .comp-row {
  direction: rtl;
}

.lang-rtl .lang-selector__menu {
  right: auto;
  left: 0;
}

.lang-rtl .lang-opt {
  text-align: right;
}

.lang-rtl .confidence-bar {
  transform: scaleX(-1);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════ MAIN ═══════════════ */
.main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: fadeIn .3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ═══════════════ LEAGUE FILTERS ═══════════════ */
.league-filters,
.league-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  padding-bottom: .75rem;
  margin-bottom: 1.5rem;
}

.league-filters::-webkit-scrollbar,
.league-tabs::-webkit-scrollbar {
  display: none;
}

.league-flag {
  width: 16px;
  height: 12px;
  border-radius: 2px;
  object-fit: cover;
  vertical-align: middle;
}

.league-flag-emoji {
  font-size: 1.1em;
  line-height: 1;
}

.chip,
.tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: .45rem 1rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all var(--transition);
  white-space: nowrap;
}

.chip:hover,
.tab:hover {
  border-color: var(--accent-green);
  color: var(--text-primary);
}

.chip.active,
.tab.active {
  background: rgba(0, 255, 135, .1);
  border-color: var(--accent-green);
  color: var(--accent-green);
}

/* ═══════════════ TOGGLE ═══════════════ */
.toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.toggle {
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  user-select: none;
}

.toggle input {
  display: none;
}

.toggle__slider {
  width: 40px;
  height: 22px;
  background: var(--border);
  border-radius: 999px;
  position: relative;
  transition: background var(--transition);
}

.toggle__slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: all var(--transition);
}

.toggle input:checked+.toggle__slider {
  background: var(--accent-green);
}

.toggle input:checked+.toggle__slider::after {
  left: 21px;
  background: var(--bg-primary);
}

.toggle__label {
  font-size: .85rem;
  color: var(--text-secondary);
}

/* ═══════════════ CARDS GRID ═══════════════ */
.cards-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

/* ═══════════════ MATCH CARD ═══════════════ */
.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.match-card:hover {
  border-color: rgba(0, 255, 135, .3);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.match-card__league {
  font-size: .8rem;
  color: var(--text-secondary);
  margin-bottom: .75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.match-card__date {
  color: var(--accent-blue);
  font-weight: 600;
}

.match-card__teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.match-card__team {
  text-align: center;
  flex: 1;
  min-width: 0;
}

.match-card__team-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-card__team-role {
  font-size: .75rem;
  color: var(--text-secondary);
}

.match-card__vs {
  font-family: var(--font-display);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
}

.match-card__prediction {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem;
  background: var(--pred-bg);
  border-radius: var(--radius-sm);
  margin-bottom: .75rem;
}

.match-card__pred-label {
  font-size: .8rem;
  color: var(--text-secondary);
}

.match-card__pred-result {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.confidence-bar {
  flex: 1;
  height: 6px;
  background: var(--track-bg);
  border-radius: 999px;
  overflow: hidden;
}

.confidence-bar__fill {
  height: 100%;
  border-radius: 999px;
  transition: width .6s ease;
}

.match-card__markets {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.market-badge {
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: transform .15s ease;
  cursor: default;
}

.market-badge:hover {
  transform: scale(1.05);
}

.market-badge.positive {
  background: rgba(0, 200, 83, .15);
  border-color: #00c853;
  color: #69f0ae;
}

.market-badge.negative {
  background: rgba(244, 67, 54, .15);
  border-color: #f44336;
  color: #ef9a9a;
}

.value-bet-glow {
  position: relative;
  margin: -1.25rem -1.25rem 0.75rem -1.25rem;
  width: calc(100% + 2.5rem);
  padding: .35rem .75rem;
  background: linear-gradient(135deg, var(--accent-green), #00cc6a);
  color: var(--bg-primary);
  font-size: .75rem;
  font-weight: 700;
  border-radius: var(--radius) var(--radius) 0 0;
  text-transform: uppercase;
  letter-spacing: .5px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 255, 135, 0.2);
}

/* Confidence colors */
.confidence-high {
  color: var(--accent-green);
}

.confidence-mid {
  color: var(--accent-yellow);
}

.confidence-low {
  color: var(--text-secondary);
}

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

.fill-mid {
  background: var(--accent-yellow);
}

.fill-low {
  background: var(--text-secondary);
}

/* ═══════════════ NO-DATA ═══════════════ */
.no-data {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

.no-data__emoji {
  font-size: 3rem;
  margin-bottom: .75rem;
}

.no-data__text {
  font-size: 1.1rem;
}

/* ═══════════════ PREDICTION SUMMARY ═══════════════ */
.predictions-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: .75rem 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: .9rem;
  color: var(--text-secondary);
}

.predictions-summary strong {
  color: var(--text-primary);
}

/* ═══════════════ SECTION TITLE ═══════════════ */
.section-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

/* ═══════════════ STANDINGS TABLE ═══════════════ */
.table-wrapper {
  overflow-x: auto;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}

.standings-table th {
  padding: .65rem .5rem;
  text-align: left;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  white-space: nowrap;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.standings-table td {
  padding: .6rem .5rem;
  border-bottom: 1px solid rgba(48, 54, 61, .5);
  white-space: nowrap;
}

.standings-table tr:hover td {
  background: rgba(255, 255, 255, .03);
}

.standings-table .team-name {
  font-weight: 600;
}

/* Position badges */
.pos-badge {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: .78rem;
}

.pos-top {
  background: rgba(0, 255, 135, .15);
  color: var(--accent-green);
}

.pos-mid {
  background: rgba(88, 166, 255, .1);
  color: var(--accent-blue);
}

.pos-bottom {
  background: rgba(255, 71, 87, .1);
  color: var(--accent-red);
}

/* Form dots */
.form-dots {
  display: flex;
  gap: 3px;
}

.form-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.form-win {
  background: var(--accent-green);
}

.form-draw {
  background: var(--accent-yellow);
}

.form-loss {
  background: var(--accent-red);
}

/* ═══════════════ STATS GRID ═══════════════ */
.stats-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition);
}

.stat-card:hover {
  border-color: rgba(0, 255, 135, .3);
  transform: translateY(-2px);
}

.stat-card__league {
  font-size: 1.1rem;
  margin-bottom: .75rem;
  color: var(--text-secondary);
}

.stat-card__value {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: .25rem;
}

.stat-card__label {
  font-size: .85rem;
  color: var(--text-secondary);
}

.stat-card__count {
  font-size: .8rem;
  color: var(--text-secondary);
  margin-top: .25rem;
}

/* ═══════════════ LOADING SPINNER ═══════════════ */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem;
  color: var(--text-secondary);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent-green);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin-bottom: .75rem;
}

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

/* ═══════════════ TOAST ═══════════════ */
.toast {
  position: fixed;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-red);
  color: #fff;
  padding: .75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  z-index: 200;
  transition: bottom .4s ease;
  white-space: nowrap;
}

.toast.show {
  bottom: 2rem;
}

/* ── Footer ── */
.footer {
  margin-top: 4rem;
  padding: 4rem 2rem 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__title {
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer__text {
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer__list {
  list-style: none;
  padding: 0;
}

.footer__list li {
  margin-bottom: 0.8rem;
}

.footer__list a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer__list a:hover {
  color: var(--accent-primary);
}

.footer__warning {
  grid-column: 1 / -1;
  background: rgba(255, 68, 68, 0.1);
  border-left: 4px solid #ff4444;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.footer__warning h4 {
  color: #ff4444;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__warning p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footer__help-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer__help-links a {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.footer__help-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-green);
}

.footer__bottom {
  max-width: 1280px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer__copyright {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer__credits {
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.8;
}

.lang-rtl .footer__container {
  direction: rtl;
}

.lang-rtl .footer__warning {
  border-left: none;
  border-right: 3px solid var(--accent-yellow);
}

.lang-rtl .footer__list a:hover {
  transform: translateX(-4px);
}

/* ═══════════════ LEAGUE GROUP ═══════════════ */
.league-group {
  margin-bottom: 2rem;
}

.league-group__header {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  padding-bottom: .5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

/* ═══════════════ PREDICTION CONTROLS ═══════════════ */
.prediction-controls {
  margin-bottom: .5rem;
}

/* ═══════════════ RESPONSIVE ═══════════════ */

/* Mobile: hamburger visible */
@media (max-width: 767px) {
  .navbar__hamburger {
    display: flex;
  }

  .navbar__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, .97);
    backdrop-filter: blur(12px);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .navbar__links.open {
    display: flex;
  }

  .navbar__link {
    padding: .75rem 1rem;
    font-size: 1.05rem;
  }
}

/* Tablet */
@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop */
@media (min-width: 1200px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ═══════════════ MODAL ═══════════════ */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.open {
  display: flex;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 48px rgba(0, 0, 0, .6);
  animation: modalSlideUp .35s cubic-bezier(.4, 0, .2, 1);
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, .05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-secondary);
  z-index: 10;
  transition: all var(--transition);
}

.modal__close:hover {
  background: var(--accent-red);
  color: #fff;
}

/* ── Modal Comparison Layout ── */
.modal-detail {
  padding: 2rem;
}

.modal-detail__header {
  text-align: center;
  margin-bottom: 2rem;
}

.modal-detail__league {
  font-size: .85rem;
  color: var(--accent-blue);
  font-weight: 700;
  margin-bottom: .5rem;
}

.modal-detail__teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.modal-detail__team {
  flex: 1;
  text-align: center;
}

.modal-detail__team-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.modal-detail__vs {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.modal-detail__prediction {
  background: rgba(0, 255, 135, .05);
  border: 1px solid rgba(0, 255, 135, .15);
  padding: 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.modal-detail__pred-title {
  font-size: .85rem;
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: .5rem;
}

.modal-detail__pred-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.comp-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: .75rem;
}

.comp-row__label {
  flex: 1;
  text-align: center;
  color: var(--text-secondary);
  font-size: .8rem;
  text-transform: uppercase;
  font-weight: 600;
}

.comp-row__val {
  width: 60px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.reasoning-box {
  background: rgba(255, 255, 255, .02);
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-top: 1.5rem;
}

.reasoning-box h4 {
  font-size: .9rem;
  margin-bottom: .5rem;
  color: var(--text-secondary);
}

.reasoning-box p {
  font-size: .9rem;
  line-height: 1.5;
  color: var(--text-primary);
}

.is-clickable {
  cursor: pointer;
}

@media (max-width: 600px) {
  .modal-detail__team-name {
    font-size: 1.4rem;
  }

  .modal-detail__teams {
    gap: 1rem;
  }

  .modal-detail {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 768px) {
  .legal-content {
    padding: 1.5rem;
  }

  .legal-content h1 {
    font-size: 1.8rem;
  }
}

/* ── Ultra-Responsive Optimization (Min 270px - Max 520px) ── */
@media (max-width: 520px) {
  :root {
    --container-padding: 0.5rem;
  }

  .header__container,
  .main,
  .footer__container {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
  }

  .navbar__brand {
    gap: 0.25rem;
  }

  .navbar__title {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .match-card {
    padding: 1rem 0.75rem;
  }

  .match-card__team-name {
    font-size: 0.85rem;
  }

  .match-card__vs {
    font-size: 0.7rem;
    width: 20px;
  }

  .match-card__pred-result {
    font-size: 0.9rem;
  }

  .market-badge {
    font-size: 11px;
    padding: 4px 8px;
  }

  .team-crest {
    width: 24px;
    height: 24px;
  }

  .team-crest-fallback {
    width: 24px;
    height: 24px;
    font-size: .55rem;
  }

  .footer__help-links {
    flex-direction: column;
    align-items: stretch;
  }

  .footer__help-links a {
    justify-content: center;
  }

  .legal-content {
    padding: 1.25rem 1rem;
  }

  .legal-content h1 {
    font-size: 1.5rem;
  }

  .stat-card__value {
    font-size: 1.5rem;
  }
}

/* ═══════════════ BRACKET VIEW ═══════════════ */
.bracket-section {
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.bracket-container {
  display: flex;
  gap: 2rem;
  min-width: min-content;
  padding: 0 1rem;
}

.bracket-round {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 220px;
}

.bracket-round__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: .5px;
  text-align: center;
  margin-bottom: .5rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--border);
}

.bracket-match {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .75rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  position: relative;
  transition: all var(--transition);
}

.bracket-match:hover {
  transform: translateY(-2px);
  border-color: var(--accent-green);
  box-shadow: var(--shadow);
}

.bracket-team {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .95rem;
  font-weight: 600;
}

.bracket-score {
  font-family: var(--font-display);
  font-weight: 700;
  text-align: center;
  background: rgba(0, 0, 0, .2);
  border-radius: 4px;
  padding: 2px 8px;
  align-self: center;
  width: 100%;
  margin: .25rem 0;
}

/* Light Mode tweak for score bg */
body.light-theme .bracket-score {
  background: rgba(0, 0, 0, 0.05);
}

.bracket-time {
  font-size: .8rem;
  color: var(--text-secondary);
  text-align: center;
  margin: .25rem 0;
}

/* Connectors (Optional visual polish) */
.bracket-round:not(:last-child) {
  position: relative;
}

.bracket-round:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -1rem;
  width: 1rem;
  height: 2px;
  background: var(--border);
  opacity: 0.3;
}

/* ═══════════════ STANDINGS VIEW TOGGLE ═══════════════ */
.standings-view-toggle {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

.standings-view-toggle .tab {
  flex: 1;
  text-align: center;
  padding: .6rem 1.25rem;
  font-size: .95rem;
}

/* ═══════════════ STANDINGS PANELS (animated) ═══════════════ */
.standings-panel {
  display: none;
  opacity: 0;
  animation: none;
}

.standings-panel--visible {
  display: block;
  opacity: 1;
  animation: fadeIn .3s ease;
}

/* ═══════════════ BRACKET MATCH STATUS ═══════════════ */
.bracket-match__status {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: .15rem .5rem;
  border-radius: 4px;
  text-align: center;
  margin-bottom: .25rem;
}

.bracket-status--finished {
  background: rgba(0, 255, 135, .1);
  color: var(--accent-green);
}

.bracket-status--scheduled {
  background: rgba(88, 166, 255, .1);
  color: var(--accent-blue);
}

.bracket-extra {
  font-size: .75rem;
  color: var(--accent-yellow);
  font-weight: 600;
}

/* ═══════════════ FULL-WIDTH BRACKET LAYOUT ═══════════════ */
.bracket-container--fullwidth {
  flex-direction: column;
  gap: 0;
  min-width: unset;
  padding: 0;
}

/* ═══════════════ BRACKET ROUND TABS ═══════════════ */
.bracket-round-tabs {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.bracket-round-tabs .tab {
  padding: .45rem 1rem;
  font-size: .85rem;
  white-space: nowrap;
}

/* ═══════════════ BRACKET ROUND PANELS ═══════════════ */
.bracket-round-panel {
  display: none;
  opacity: 0;
}

.bracket-round-panel--visible {
  display: block;
  opacity: 1;
  animation: fadeIn .3s ease;
}

/* ═══════════════ BRACKET MATCHES GRID ═══════════════ */
.bracket-matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

@media (max-width: 600px) {
  .bracket-matches-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════ REASONING BOX (STRUCTURED GRID) ═══════════════ */
.reasoning-box {
  margin-top: 1.5rem;
  padding: 1.2rem 1.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.reasoning-box__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--text-secondary);
  margin-bottom: .8rem;
}

.reasoning-box__empty {
  font-size: .88rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* Structured reasoning grid */
.reasoning-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.reasoning-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: background 0.2s;
}

.reasoning-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.reasoning-winner {
  border-left-color: #ffd700;
}

.reasoning-positions {
  border-left-color: #42a5f5;
}

.reasoning-goals {
  border-left-color: #00e676;
}

.reasoning-btts {
  border-left-color: #ab47bc;
}

.reasoning-over25 {
  border-left-color: #ff7043;
}

.reasoning-corners {
  border-left-color: #26c6da;
}

.reasoning-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
}

.reasoning-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.reasoning-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  font-weight: 600;
}

.reasoning-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

/* Legacy reasoning list fallback */
.reasoning-box__content p {
  font-size: .92rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0;
}

.reasoning-box__content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.reasoning-box__content li {
  font-size: .9rem;
  line-height: 1.55;
  color: var(--text-primary);
  padding: .45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.reasoning-box__content li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.reasoning-box__content li:first-child {
  padding-top: 0;
}

.reasoning-box__content li .reasoning-icon {
  margin-right: .35rem;
  font-size: .85rem;
}

/* Light theme overrides */
.light-theme .reasoning-box {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

.light-theme .reasoning-item {
  background: rgba(0, 0, 0, 0.02);
}

.light-theme .reasoning-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.light-theme .reasoning-box__content li {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

@media (max-width: 480px) {
  .reasoning-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════ PROBABILITY BAR (CARD) ═══════════════ */
.prob-bar {
  display: flex;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: .75rem;
  gap: 2px;
}

.prob-bar__seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  transition: width .6s ease;
  min-width: 4px;
}

.prob-bar__home {
  background: #00c853;
}

.prob-bar__draw {
  background: #546e7a;
}

.prob-bar__away {
  background: #f44336;
}

/* ═══════════════ PROBABILITY DOUGHNUT (MODAL) ═══════════════ */
.prob-doughnut-section {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
  margin-bottom: .5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.prob-doughnut {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.prob-doughnut__center {
  position: absolute;
  inset: 14px;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prob-doughnut__labels {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.prob-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--text-secondary);
}

.prob-label strong {
  color: var(--text-primary);
}

.prob-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ═══════════════ EXPECTED GOALS BAR (MODAL) ═══════════════ */
.expected-goals-bar {
  height: 10px;
  background: var(--track-bg);
  border-radius: 999px;
  overflow: visible;
  position: relative;
}

.expected-goals-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
  transition: width .6s ease;
}

.expected-goals-bar__markers {
  position: relative;
  height: 0;
}

.expected-goals-bar__markers span {
  position: absolute;
  top: 4px;
  transform: translateX(-50%);
  font-size: .65rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ═══════════════ MARKET BADGES (CARD) ═══════════════ */
.score-badge {
  background: rgba(33, 150, 243, .15) !important;
  border-color: #2196f3 !important;
  color: #64b5f6 !important;
}

.corners-badge {
  background: rgba(156, 39, 176, .15) !important;
  border-color: #9c27b0 !important;
  color: #ce93d8 !important;
}

/* ═══════════════ VALUE BET BADGE (MODAL) ═══════════════ */
.value-bet-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(0, 200, 83, .15);
  border: 1px solid #00c853;
  color: #69f0ae;
  text-transform: uppercase;
  letter-spacing: .02em;
}

/* Real Value Bet Diamond Style */
.value-bet-glow--real {
  background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%) !important;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3) !important;
}

.value-bet-badge--real {
  background: rgba(58, 123, 213, 0.15) !important;
  border-color: #3a7bd5 !important;
  color: #64b5f6 !important;
}

.value-bet-detail.real {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(58, 123, 213, 0.05);
  border: 1px solid rgba(58, 123, 213, 0.2);
  border-radius: var(--radius-sm);
}

.value-bet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.value-bet-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.value-bet-item .label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.value-bet-item .value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.value-bet-item .value.accent {
  color: var(--accent-green);
}

.light-theme .value-bet-badge--real {
  color: #1565c0 !important;
  border-color: #1565c0 !important;
  background: rgba(21, 101, 192, 0.1) !important;
}

.light-theme .value-bet-detail.real {
  background: rgba(21, 101, 192, 0.03);
  border-color: rgba(21, 101, 192, 0.1);
}


/* ═══════════════ TEAM CRESTS ═══════════════ */
.team-crest {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

.team-crest--lg {
  width: 56px;
  height: 56px;
}

.team-crest-fallback {
  width: 40px;
  height: 40px;
  clip-path: polygon(0% 0%, 100% 0%, 100% 80%, 50% 100%, 0% 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
  flex-shrink: 0;
  text-transform: uppercase;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  padding-bottom: 5px;
  /* Move text up slightly to center in shield */
}

.team-crest-fallback--lg {
  width: 56px;
  height: 56px;
  font-size: 1.1rem;
  padding-bottom: 6px;
}

.match-card__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
}

/* ═══════════════ MODEL VERSION TAG ═══════════════ */
.model-version-tag {
  text-align: center;
  font-size: .75rem;
  color: var(--text-secondary);
  padding: 1rem 0 .5rem;
  opacity: .7;
}

/* ═══════════════ LIGHT THEME OVERRIDES ═══════════════ */
.light-theme .prob-doughnut-section {
  border-top-color: rgba(0, 0, 0, 0.08);
}

.light-theme .prob-bar__seg {
  color: #fff;
}

.light-theme .score-badge {
  color: #1565c0 !important;
}

.light-theme .corners-badge {
  color: #7b1fa2 !important;
}

.light-theme .market-badge.positive {
  color: #2e7d32 !important;
}

.light-theme .market-badge.negative {
  color: #c62828 !important;
}

.light-theme .value-bet-badge {
  color: #2e7d32;
  border-color: #2e7d32;
  background: rgba(46, 125, 50, .1);
}

/* ═══════════════ MODAL GOAL BADGES ═══════════════ */
.modal-goal-badges {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.badge-score,
.badge-corners {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.badge-yes {
  background: rgba(0, 200, 83, 0.15);
  color: #00c853;
  border: 1px solid rgba(0, 200, 83, 0.3);
}

.badge-no {
  background: rgba(244, 67, 54, 0.15);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.badge-score {
  background: rgba(33, 150, 243, 0.15);
  color: #42a5f5;
  border: 1px solid rgba(33, 150, 243, 0.3);
}

.badge-corners {
  background: rgba(156, 39, 176, 0.15);
  color: #ce93d8;
  border: 1px solid rgba(156, 39, 176, 0.3);
}

/* ═══════════════ MODAL MARKETS SUMMARY ═══════════════ */
.modal-markets-summary {
  margin: 16px 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.markets-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin: 0 0 10px 0;
  font-weight: 600;
}

.markets-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.market-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}

.market-yes {
  background: rgba(0, 200, 83, 0.12);
  border: 1px solid rgba(0, 200, 83, 0.25);
  color: #00c853;
}

.market-no {
  background: rgba(244, 67, 54, 0.12);
  border: 1px solid rgba(244, 67, 54, 0.25);
  color: #f44336;
}

/* Light overrides for modal market/badge styles */
.light-theme .modal-markets-summary {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

.light-theme .badge-yes {
  color: #2e7d32;
  border-color: rgba(46, 125, 50, 0.3);
  background: rgba(46, 125, 50, 0.1);
}

.light-theme .badge-no {
  color: #c62828;
  border-color: rgba(198, 40, 40, 0.3);
  background: rgba(198, 40, 40, 0.1);
}

.light-theme .badge-score {
  color: #1565c0;
  border-color: rgba(21, 101, 192, 0.3);
  background: rgba(21, 101, 192, 0.1);
}

.light-theme .badge-corners {
  color: #7b1fa2;
  border-color: rgba(123, 31, 162, 0.3);
  background: rgba(123, 31, 162, 0.1);
}

.light-theme .market-yes {
  color: #2e7d32;
}

.light-theme .market-no {
  color: #c62828;
}

/* ═══════════════ TEAM CREST REFINEMENTS ═══════════════ */
.team-crest {
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px;
  border-radius: 4px;
}

.light-theme .team-crest {
  background: rgba(0, 0, 0, 0.04);
}

/* ═══════════════ HISTORY LIST REFINED ═══════════════ */
.history-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.25rem !important;
}

.history-item {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 0 !important;
  overflow: hidden !important;
  transition: all var(--transition) !important;
  position: relative !important;
}

.history-item:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow) !important;
  border-color: rgba(0, 255, 135, 0.2) !important;
}

.history-item__header {
  background: rgba(255, 255, 255, 0.02) !important;
  padding: 0.75rem 1rem !important;
  border-bottom: 1px solid var(--border) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin: 0 !important;
}

.history-match-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

.history-league {
  font-size: 0.75rem !important;
  color: var(--text-secondary) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.history-teams {
  font-family: var(--font-display) !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
}

.history-score {
  font-family: var(--font-display) !important;
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  background: var(--accent-blue) !important;
  padding: 2px 10px !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 8px rgba(88, 166, 255, 0.3) !important;
}

.history-item__preds {
  padding: 1rem !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)) !important;
  gap: 0.75rem !important;
}

.history-pred {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 8px !important;
  padding: 0.75rem 0.5rem !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  transition: background 0.2s !important;
  border-top: 3px solid transparent !important;
  min-width: 0 !important;
}

.history-pred:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}

.history-label {
  font-size: 0.65rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: var(--text-secondary) !important;
  margin-bottom: 4px !important;
  font-weight: 600 !important;
}

.history-val {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  margin-bottom: 4px !important;
}

.history-val-group {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  margin-bottom: 4px !important;
}

.history-val-main {
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  color: var(--text-primary) !important;
}

.history-val-sub {
  font-size: 0.65rem !important;
  color: var(--text-secondary) !important;
}

.history-icon {
  font-size: 1rem !important;
}

/* Status variants */
.pred-correct {
  border-top-color: var(--accent-green) !important;
  background: linear-gradient(180deg, rgba(0, 255, 135, 0.05) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
}

.pred-wrong {
  border-top-color: var(--accent-red) !important;
  background: linear-gradient(180deg, rgba(255, 71, 87, 0.05) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
}

.pred-pending {
  border-top-color: var(--text-secondary) !important;
}

/* ═══════════════ HISTORY LIST REFINED ═══════════════ */
.history-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.25rem !important;
}

.history-item {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 0 !important;
  overflow: hidden !important;
  transition: all var(--transition) !important;
  position: relative !important;
}

.history-item:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow) !important;
  border-color: rgba(0, 255, 135, 0.2) !important;
}

.history-item__header {
  background: rgba(255, 255, 255, 0.02) !important;
  padding: 0.75rem 1rem !important;
  border-bottom: 1px solid var(--border) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin: 0 !important;
}

.history-match-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

.history-league {
  font-size: 0.75rem !important;
  color: var(--text-secondary) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.history-teams {
  font-family: var(--font-display) !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
}

.history-score {
  font-family: var(--font-display) !important;
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  background: var(--accent-blue) !important;
  padding: 2px 10px !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 8px rgba(88, 166, 255, 0.3) !important;
}

.history-item__preds {
  padding: 1rem !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)) !important;
  gap: 0.75rem !important;
}

.history-pred {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 8px !important;
  padding: 0.75rem 0.5rem !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  transition: background 0.2s !important;
  border-top: 3px solid transparent !important;
  min-width: 0 !important;
}

.history-pred:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}

.history-label {
  font-size: 0.65rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: var(--text-secondary) !important;
  margin-bottom: 4px !important;
  font-weight: 600 !important;
}

.history-val {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  margin-bottom: 4px !important;
}

.history-val-group {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  margin-bottom: 4px !important;
}

.history-val-main {
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  color: var(--text-primary) !important;
}

.history-val-sub {
  font-size: 0.65rem !important;
  color: var(--text-secondary) !important;
}

.history-icon {
  font-size: 1rem !important;
}

/* Status variants */
.pred-correct {
  border-top-color: var(--accent-green) !important;
  background: linear-gradient(180deg, rgba(0, 255, 135, 0.05) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
}

.pred-wrong {
  border-top-color: var(--accent-red) !important;
  background: linear-gradient(180deg, rgba(255, 71, 87, 0.05) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
}

.pred-pending {
  border-top-color: var(--text-secondary) !important;
}

/* ═══════════════ HISTORY CORNERS ═══════════════ */
.history-score-group {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 4px !important;
}

.history-corners {
  font-size: 0.75rem !important;
  color: var(--text-secondary) !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
}

/* ═══════════════ AUTH & USER MENU (R9) ═══════════════ */
.user-menu {
  position: relative;
  margin: 0 1rem;
}

.btn-login {
  padding: 0.5rem 1.25rem;
  background: var(--accent-green);
  color: #000;
  border-radius: 8px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: 0.3s;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 135, 0.3);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  position: relative;
}

.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent-green);
  overflow: hidden;
}

.avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 200px;
  padding: 0.5rem 0;
  box-shadow: var(--shadow);
  display: none;
  z-index: 1000;
}

/* Puente invisible para mantener el hover entre el icono y el menú */
.user-dropdown::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
  background: transparent;
}

.user-profile:hover .user-dropdown {
  display: block;
}

.dropdown-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-dropdown a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.2s;
}

.user-dropdown a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-green);
}

/* Modales Auth/Upgrade */
.auth-modal,
.upgrade-modal {
  max-width: 400px !important;
  padding: 2rem !important;
}

.auth-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.auth-tab {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-display);
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
}

.auth-tab.active {
  color: var(--accent-green);
  border-bottom-color: var(--accent-green);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.form-group input {
  padding: 0.75rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 8px;
  outline: none;
}

.btn-auth-submit {
  padding: 0.75rem;
  background: var(--accent-green);
  color: #000;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}

.btn-auth-submit:hover:not(:disabled) {
  opacity: 0.9;
}

.auth-divider {
  text-align: center;
  position: relative;
  margin: 0.5rem 0;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  position: relative;
  background: var(--bg-card);
  padding: 0 10px;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.75rem;
  background: #fff;
  color: #000;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.upgrade-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.upgrade-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.upgrade-features ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.upgrade-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.market-premium-lock {
  font-size: 0.75rem;
  color: var(--accent-yellow);
  margin-left: 4px;
}

/* Reducción mobile */
@media (max-width: 600px) {
  .user-menu {
    margin: 0 0.5rem;
  }

  .btn-login {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* ═══════════════════════════════════════════
   PRICING PAGE
   ═══════════════════════════════════════════ */

.pricing-main {
  max-width: 960px;
  padding-top: 2rem;
}

/* Hero */
.pricing-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.pricing-hero__badge {
  display: inline-block;
  padding: .4rem 1.2rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1px;
  background: rgba(102, 126, 234, .1);
  border: 1px solid rgba(102, 126, 234, .3);
  color: var(--brand-purple);
  margin-bottom: 1rem;
}

.pricing-hero__title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: .75rem;
}

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Toggle Mensual/Anual */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.pricing-toggle__label {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.pricing-toggle__label.active {
  color: var(--text-primary);
}

.pricing-toggle__save {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  background: rgba(0, 255, 135, .15);
  color: var(--accent-green);
  margin-left: .25rem;
}

.pricing-toggle__switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.pricing-toggle__switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.pricing-toggle__slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition);
}

.pricing-toggle__slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: var(--text-primary);
  border-radius: 50%;
  transition: transform var(--transition);
}

.pricing-toggle__switch input:checked+.pricing-toggle__slider {
  background: var(--accent-green);
}

.pricing-toggle__switch input:checked+.pricing-toggle__slider::after {
  transform: translateX(22px);
  background: var(--bg-primary);
}

/* Plan Cards */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 900px) {
  .pricing-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .pricing-cards {
    grid-template-columns: 1fr;
  }
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  transition: all var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.pricing-card--premium {
  border-color: rgba(102, 126, 234, .5);
  background: linear-gradient(180deg, rgba(102, 126, 234, .05) 0%, var(--bg-card) 100%);
}

.pricing-card--premium:hover {
  border-color: var(--brand-purple);
  box-shadow: 0 8px 40px rgba(102, 126, 234, .2);
}

.pricing-card__popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: .35rem 1.2rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  background: var(--brand-gradient);
  color: white;
  white-space: nowrap;
}

.pricing-card__header {
  margin-bottom: 1rem;
}

.pricing-card__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.pricing-card__desc {
  font-size: .9rem;
  color: var(--text-secondary);
}

.pricing-card__price {
  margin-bottom: .5rem;
}

.pricing-card__amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
}

.pricing-card__period {
  font-size: .9rem;
  color: var(--text-secondary);
}

.pricing-card__iva {
  font-size: .75rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.pricing-card__features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.pricing-card__features li {
  padding: .4rem 0;
  font-size: .9rem;
  border-bottom: 1px solid rgba(255, 255, 255, .03);
}

.pricing-card__features li.excluded {
  color: var(--text-secondary);
  opacity: .6;
}

.pricing-card__features li.premium {
  color: var(--accent-green);
}

.pricing-card__btn {
  display: block;
  width: 100%;
  padding: .85rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  margin-bottom: .5rem;
}

.pricing-card__btn .btn-subtitle {
  display: block;
  font-size: .7rem;
  font-weight: 400;
  opacity: .8;
  margin-top: .15rem;
}

.pricing-card__btn--free {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.pricing-card__btn--free.inactive {
  opacity: .5;
  cursor: default;
}

.pricing-card__btn--stripe {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.pricing-card__btn--stripe:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(102, 126, 234, .4);
}

.pricing-card__btn--paypal {
  background: #0070ba;
  color: white;
}

.pricing-card__btn--paypal:hover:not(:disabled) {
  background: #005ea6;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 112, 186, .3);
}

.pricing-card__btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.pricing-card__btn--cancel {
  background: transparent;
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
}

.pricing-card__btn--cancel:hover {
  background: rgba(255, 71, 87, .1);
}

/* Legal Check */
.pricing-card__payment {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.pricing-card__payment-title {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.pricing-card__legal-check {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .8rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  cursor: pointer;
  line-height: 1.4;
}

.pricing-card__legal-check input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--brand-purple);
}

.pricing-card__legal-check a {
  color: var(--accent-blue);
  text-decoration: underline;
}

/* Comparison Table */
.pricing-comparison {
  margin-bottom: 3rem;
}

.pricing-comparison__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.pricing-table th,
.pricing-table td {
  padding: .75rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.pricing-table th:first-child,
.pricing-table td:first-child {
  text-align: left;
}

.pricing-table th {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-secondary);
  background: var(--bg-secondary);
}

.pricing-table th.highlight {
  color: var(--accent-green);
}

.pricing-table tr:hover td {
  background: rgba(255, 255, 255, .02);
}

/* Social Proof */
.pricing-social {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pricing-social__stat {
  text-align: center;
}

.pricing-social__number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-green);
}

.pricing-social__label {
  font-size: .85rem;
  color: var(--text-secondary);
}

/* FAQ */
.pricing-faq {
  margin-bottom: 3rem;
}

.pricing-faq__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.pricing-faq__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: .5rem;
  overflow: hidden;
}

.pricing-faq__item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}

.pricing-faq__item summary:hover {
  background: var(--bg-card-hover);
}

.pricing-faq__item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--text-secondary);
  transition: transform var(--transition);
}

.pricing-faq__item[open] summary::after {
  transform: rotate(45deg);
}

.pricing-faq__item p {
  padding: 0 1.25rem 1rem;
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Current Plan Status */
.current-plan-status {
  text-align: center;
}

.current-plan-status__badge {
  display: inline-block;
  padding: .5rem 1.5rem;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
  background: rgba(0, 255, 135, .15);
  color: var(--accent-green);
  margin-bottom: 1rem;
}

.current-plan-status__info {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.current-plan-status__note {
  font-size: .75rem;
  color: var(--text-secondary);
  margin-top: .5rem;
}

/* ═══════════════════════════════════════════
   SUCCESS PAGE
   ═══════════════════════════════════════════ */

.success-page,
.cancel-page {
  text-align: center;
  padding: 4rem 1rem;
  max-width: 560px;
  margin: 0 auto;
}

.success-page__animation {
  margin-bottom: 2rem;
}

.success-checkmark {
  width: 100px;
  height: 100px;
  margin: 0 auto;
}

.success-svg {
  width: 100%;
  height: 100%;
}

.success-circle {
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  animation: drawCircle 0.6s ease forwards;
}

.success-check {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: drawCheck 0.4s ease 0.6s forwards;
}

@keyframes drawCircle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

.success-page__title {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: .5rem;
}

.success-page__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.success-page__details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}

.success-page__details p {
  margin-bottom: .75rem;
  font-weight: 600;
}

.success-page__details ul {
  list-style: none;
}

.success-page__details li {
  padding: .4rem 0;
  font-size: .95rem;
}

.success-page__redirect {
  font-size: .9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.success-page__redirect span {
  font-weight: 700;
  color: var(--accent-green);
}

.success-page__btn {
  display: inline-block;
  padding: .85rem 2.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  background: var(--brand-gradient);
  color: white;
  text-decoration: none;
  transition: all var(--transition);
}

.success-page__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(102, 126, 234, .3);
}

/* ═══════════════════════════════════════════
   CANCEL PAGE
   ═══════════════════════════════════════════ */

.cancel-page__icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.cancel-page__title {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: .5rem;
}

.cancel-page__subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.cancel-page__offer {
  background: var(--bg-card);
  border: 2px solid var(--accent-yellow);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.cancel-page__offer-badge {
  display: inline-block;
  padding: .3rem .8rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  background: rgba(240, 192, 64, .15);
  color: var(--accent-yellow);
  margin-bottom: .75rem;
}

.cancel-page__offer h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: .5rem;
}

.cancel-page__code {
  display: inline-block;
  padding: .2rem .6rem;
  background: rgba(0, 255, 135, .1);
  border: 1px solid var(--accent-green);
  border-radius: 4px;
  color: var(--accent-green);
  font-family: monospace;
  letter-spacing: 1px;
}

.cancel-page__features {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}

.cancel-page__features p {
  margin-bottom: .75rem;
  font-weight: 600;
}

.cancel-page__features ul {
  list-style: none;
}

.cancel-page__features li {
  padding: .4rem 0;
  font-size: .9rem;
}

.cancel-page__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cancel-page__btn {
  display: inline-block;
  padding: .85rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
}

.cancel-page__btn--retry {
  background: var(--brand-gradient);
  color: white;
}

.cancel-page__btn--retry:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(102, 126, 234, .3);
}

.cancel-page__btn--home {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.cancel-page__btn--home:hover {
  border-color: var(--text-secondary);
}

/* ═══════════════════════════════════════════
   PLAN BADGE (Navbar)
   ═══════════════════════════════════════════ */

.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.plan-badge--free {
  background: rgba(139, 148, 158, .15);
  color: var(--text-secondary);
}

.plan-badge--premium {
  background: linear-gradient(135deg, rgba(102, 126, 234, .2), rgba(118, 75, 162, .2));
  color: var(--brand-purple);
  border: 1px solid rgba(102, 126, 234, .3);
}

/* ═══════════════════════════════════════════
   PAYWALL MODAL
   ═══════════════════════════════════════════ */

.paywall-modal {
  max-width: 420px;
}

.paywall-modal .upgrade-header {
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.paywall-modal .upgrade-features {
  margin: 1rem 0;
}

.paywall-modal .btn-upgrade-pricing {
  display: block;
  width: 100%;
  padding: .85rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  background: var(--brand-gradient);
  color: white;
  transition: all var(--transition);
}

.paywall-modal .btn-upgrade-pricing:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(102, 126, 234, .4);
}

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

.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: .85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  max-width: 90%;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.toast--info {
  background: var(--bg-card);
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue);
}

.toast--success {
  background: rgba(0, 200, 83, .15);
  border: 1px solid #00c853;
  color: #69f0ae;
}

.toast--error {
  background: rgba(244, 67, 54, .15);
  border: 1px solid #f44336;
  color: #ef9a9a;
}

/* =========================================
   SUCCESS PAGE SPINNER
   ========================================= */
.payment-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(102, 126, 234, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

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

/* ═══════════════════════════════════════════
   LEGAL PAGES
   ═══════════════════════════════════════════ */

.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: .5rem;
}

.legal-page .legal-update {
  font-size: .85rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}

.legal-page h3 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: .5rem;
}

.legal-page p {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.legal-page ul,
.legal-page ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-page li {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: .25rem;
}

.legal-page a {
  color: var(--accent-blue);
  text-decoration: underline;
}

.legal-page strong {
  color: var(--text-primary);
}

@media (max-width: 600px) {
  .pricing-hero__title {
    font-size: 1.8rem;
  }

  .pricing-social {
    flex-direction: column;
    gap: 1.5rem;
  }

  .pricing-toggle {
    gap: .5rem;
  }
}

/* --------------- PLAN BADGES --------------- */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.badge-free {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.badge-standard {
  background: rgba(88, 166, 255, 0.15);
  color: var(--accent-blue);
  border-color: rgba(88, 166, 255, 0.3);
}

.badge-premium {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 165, 0, 0.15) 100%);
  color: #ffd700;
  border-color: rgba(255, 215, 0, 0.4);
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
}

.locked {
  cursor: pointer;
  /* To ensure they can still click it for the upsell */
}

/* ═══════════════ PARLAYS SUGERIDOS ═══════════════ */

.parlays-section {
  margin-bottom: 1.5rem;
}

.parlays-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.parlays-toggle:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
  border-color: rgba(102, 126, 234, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
}

.parlays-toggle__badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.2) 100%);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.parlays-toggle__arrow {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: transform var(--transition);
}

.parlays-content {
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  max-height: 2000px;
  opacity: 1;
  padding-top: 1rem;
}

.parlays-content--collapsed {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
}

.parlays-group {
  margin-bottom: 1.25rem;
}

.parlays-group__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
  padding-left: 0.25rem;
}

.parlays-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .parlays-grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  }
}

.parlay-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.parlay-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-gradient);
  opacity: 0.7;
}

.parlay-card:hover {
  border-color: rgba(102, 126, 234, 0.3);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.parlay-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.parlay-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.parlay-card__risk {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.parlay-card__legs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.parlay-leg {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 0.65rem;
  background: var(--pred-bg);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--brand-purple);
}

.parlay-leg__match {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.parlay-leg__flag {
  font-size: 0.9rem;
  flex-shrink: 0;
}

.parlay-leg__teams {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.parlay-leg__info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.parlay-leg__market {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: rgba(102, 126, 234, 0.15);
  color: var(--accent-blue);
  text-transform: uppercase;
}

.parlay-leg__pick {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-green);
}

.parlay-leg__conf {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.parlay-leg__odd {
  font-size: 0.7rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(0, 255, 135, 0.1);
  color: var(--accent-green);
  font-weight: 700;
}

.parlay-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.parlay-card__prob {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.parlay-card__prob strong {
  color: var(--text-primary);
  font-size: 1rem;
}

.parlay-card__edge {
  font-size: 0.78rem;
  font-weight: 700;
}

/* Light theme adjustments for parlays */
body.light-theme .parlays-toggle {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
}

body.light-theme .parlay-card::before {
  opacity: 0.9;
}

body.light-theme .parlays-toggle__badge {
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.12) 0%, rgba(255, 140, 0, 0.12) 100%);
  color: #d97706;
  border-color: rgba(217, 119, 6, 0.3);
}

/* ═══════════════════════════════════════════
   ACCOUNT DRAWER
   ═══════════════════════════════════════════ */

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.account-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 901;
  width: 420px;
  max-width: 100vw;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 48px rgba(0, 0, 0, .4);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  overflow-y: auto;
}

.account-drawer.open {
  transform: translateX(0);
}

/* Header */
.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.25rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(102, 126, 234, .08) 0%, rgba(118, 75, 162, .08) 100%);
  flex-shrink: 0;
}

.drawer__avatar-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.drawer__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}

.drawer__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drawer__name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.drawer__email {
  font-size: .82rem;
  color: var(--text-secondary);
  margin-bottom: .3rem;
}

.drawer__provider {
  font-size: .72rem;
  color: var(--accent-green);
  background: rgba(0, 255, 135, .06);
  border: 1px solid rgba(0, 255, 135, .2);
  padding: .1rem .4rem;
  border-radius: 999px;
}

.drawer__close {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.drawer__close:hover {
  color: var(--text-primary);
  border-color: var(--accent-red);
}

/* Tabs */
.drawer__tabs {
  display: flex;
  gap: .25rem;
  padding: 1rem 1rem .5rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.drawer__tab {
  flex: 1;
  padding: .5rem .25rem;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: 1px solid transparent;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.drawer__tab.active {
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-light));
  color: #fff;
  border-color: transparent;
}

.drawer__tab:not(.active):hover {
  border-color: var(--border);
  color: var(--text-primary);
}

/* Panels */
.drawer__panel {
  padding: 1.25rem;
  flex: 1;
}

.drawer__panel .form-group {
  margin-bottom: 1.1rem;
}

.drawer__panel .form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: .4rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.drawer__panel input[type="text"],
.drawer__panel input[type="email"],
.drawer__panel input[type="url"],
.drawer__panel input[type="password"] {
  width: 100%;
  padding: .65rem .85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: .9rem;
  font-family: var(--font-body);
  transition: border-color var(--transition);
  box-sizing: border-box;
}

.drawer__panel input:focus {
  outline: none;
  border-color: var(--brand-purple);
}

.drawer__panel input:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.form-hint {
  font-size: .75rem;
  color: var(--text-secondary);
  margin-top: .3rem;
  display: block;
}

/* OAuth info box */
.drawer__info-box {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  background: rgba(102, 126, 234, .08);
  border: 1px solid rgba(102, 126, 234, .2);
  border-radius: var(--radius-sm);
  padding: 1rem 1rem;
  margin-bottom: 1rem;
}

.drawer__info-box span {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.drawer__info-box p {
  font-size: .88rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Buttons */
.btn-drawer-primary {
  width: 100%;
  padding: .7rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  background: var(--brand-gradient);
  color: #fff;
  border: none;
  transition: opacity var(--transition), transform var(--transition);
  margin-top: .5rem;
}

.btn-drawer-primary:hover {
  opacity: .88;
  transform: translateY(-1px);
}

.btn-drawer-primary:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

.btn-drawer-secondary {
  width: 100%;
  padding: .65rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  transition: all var(--transition);
  margin-top: .5rem;
}

.btn-drawer-secondary:hover {
  border-color: var(--brand-purple);
  color: var(--brand-purple);
}

/* Billing card */
.billing-plan-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1rem 1.1rem;
  margin-bottom: .75rem;
  background: var(--bg-card);
}

.billing-plan-card.plan-premium {
  border-color: rgba(102, 126, 234, .4);
  background: linear-gradient(135deg, rgba(102, 126, 234, .07) 0%, rgba(118, 75, 162, .07) 100%);
}

.billing-plan-card.plan-standard {
  border-color: rgba(240, 192, 64, .3);
  background: rgba(240, 192, 64, .04);
}

.billing-plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
}

.billing-plan-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.billing-plan-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.billing-plan-benefits li {
  font-size: .88rem;
  color: var(--text-secondary);
}

.billing-renewal {
  font-size: .88rem;
  color: var(--text-secondary);
  padding: .5rem .75rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: .4rem;
}

.billing-days {
  font-size: .82rem;
  color: var(--accent-green);
  font-weight: 600;
  margin-bottom: .75rem;
}

/* Upgrade CTA */
.billing-upgrade {
  padding: .9rem;
  border-radius: var(--radius-sm);
  background: rgba(102, 126, 234, .06);
  border: 1px solid rgba(102, 126, 234, .15);
  margin-top: .75rem;
}

.billing-upgrade-btns {
  display: flex;
  gap: .5rem;
}

.btn-upgrade-std,
.btn-upgrade-premium {
  flex: 1;
  padding: .6rem .5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-upgrade-std {
  background: rgba(240, 192, 64, .12);
  color: var(--accent-yellow);
  border: 1px solid rgba(240, 192, 64, .3);
}

.btn-upgrade-std:hover {
  background: rgba(240, 192, 64, .2);
}

.btn-upgrade-premium {
  background: var(--brand-gradient);
  color: #fff;
}

.btn-upgrade-premium:hover {
  opacity: .85;
}

/* Danger zone */
.drawer__danger-zone {
  border-top: 1px solid var(--border);
  padding: .75rem 1.25rem 1.25rem;
  flex-shrink: 0;
}

.danger-summary {
  cursor: pointer;
  font-weight: 600;
  font-size: .88rem;
  color: var(--accent-red);
  padding: .4rem 0;
  list-style: none;
  user-select: none;
}

.danger-summary::-webkit-details-marker {
  display: none;
}

.danger-content {
  padding-top: .75rem;
}

.danger-text {
  font-size: .85rem;
  color: var(--text-secondary);
  margin-bottom: .6rem;
}

.danger-content input {
  width: 100%;
  padding: .6rem .85rem;
  margin-bottom: .6rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 71, 87, .3);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: .88rem;
  box-sizing: border-box;
}

.danger-content input:focus {
  outline: none;
  border-color: var(--accent-red);
}

.btn-danger {
  width: 100%;
  padding: .65rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  background: rgba(255, 71, 87, .1);
  border: 1px solid rgba(255, 71, 87, .4);
  color: var(--accent-red);
  transition: all var(--transition);
}

.btn-danger:hover {
  background: rgba(255, 71, 87, .2);
  border-color: var(--accent-red);
}

.btn-cancel-sub {
  margin-top: .5rem;
}

/* Mobile: full-screen drawer */
@media (max-width: 480px) {
  .account-drawer {
    width: 100%;
    border-left: none;
  }
}

/* Light theme overrides */
body.light-theme .account-drawer {
  background: #fff;
}

body.light-theme .drawer__header {
  background: rgba(102, 126, 234, .05);
}

body.light-theme .billing-plan-card {
  background: #f8f9fa;
}

/* ═══════════════ PARLAY LEG DAY BADGE ═══════════════ */
.parlay-leg__day {
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(102, 126, 234, .15);
  color: var(--brand-purple);
  border: 1px solid rgba(102, 126, 234, .3);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ═══════════════ PARLAY EVIDENCE TAB ═══════════════ */
.parlay-evidence-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}

.parlay-evidence-table th {
  padding: .55rem .75rem;
  text-align: left;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}

.parlay-evidence-table td {
  padding: .6rem .75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.parlay-evidence-table tr:hover td {
  background: var(--bg-card-hover);
}

.parlay-legs-mini {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.parlay-legs-mini span {
  font-size: .78rem;
  color: var(--text-secondary);
}

.parlay-score-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
}

.parlay-score-badge.hit {
  background: rgba(0, 200, 83, .15);
  color: #69f0ae;
}

.parlay-score-badge.miss {
  background: rgba(244, 67, 54, .15);
  color: #ef9a9a;
}

.parlay-score-badge.partial {
  background: rgba(255, 193, 7, .15);
  color: #ffd740;
}

.parlay-score-badge.pending {
  background: rgba(255, 255, 255, .07);
  color: var(--text-secondary);
}

.parlay-evidence-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: .5rem;
}

.parlay-evidence-tab-btn {
  padding: .45rem 1.1rem;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-size: .88rem;
  font-weight: 600;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}

.parlay-evidence-tab-btn.active,
.parlay-evidence-tab-btn:hover {
  color: var(--accent-green);
  border-bottom-color: var(--accent-green);
}

/* ═══════════════ POSTPONED BADGE ═══════════════ */
.match-card__pst-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 193, 7, .15);
  color: #ffd740;
  border: 1px solid rgba(255, 193, 7, .35);
  white-space: nowrap;
}