/* ═══════════════════════════════════════════════════════════════
   CrickHero — Premium Dark Cricket Theme
   ═══════════════════════════════════════════════════════════════ */

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
  --bg-primary:   #0a0f1e;
  --bg-secondary: #111827;
  --bg-card:      #161f35;
  --bg-card-hover:#1d2a47;
  --border:       #1e3357;
  --border-light: #2a4470;

  --accent:       #22d3ee;    /* Teal (Original) */
  --accent-dim:   #0891b2;
  --green:        #22c55e;
  --red:          #ef4444;
  --yellow:       #eab308;
  --orange:       #f97316;
  --ai-blue:      #3b82f6;
  --ai-purple:    #9333ea;

  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted:     #475569;

  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 32px rgba(34,211,238,0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #67e8f9; }

/* ─── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: rgba(10,15,30,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand a {
  display: flex; align-items: center; gap: .5rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}
.brand-icon { font-size: 1.6rem; }
.brand-name { background: linear-gradient(90deg,#7c3aed,#a78bfa); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.brand-rust { color: var(--orange); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-link { color: var(--text-secondary); font-size: .9rem; font-weight: 500; transition: color .2s; }
.nav-link:hover { color: var(--text-primary); }
.nav-form { margin: 0; }

/* ─── Main ──────────────────────────────────────────────────── */
.main-content { flex: 1; max-width: 1200px; margin: 0 auto; width: 100%; padding: 2rem; }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem;
  padding: .55rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 600;
  border: none; cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #22d3ee, #0891b2);
  color: #0a0f1e;
  box-shadow: 0 0 16px rgba(34,211,238,.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 24px rgba(34,211,238,.5); color: #0a0f1e; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}
.btn-outline-sm:hover { border-color: var(--accent); color: var(--accent); }
.btn-delete-icon {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
  flex-shrink: 0;
}
.btn-delete-icon:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

/* ─── Sidebar & Navigation Drawer (Material Light) ────────────── */
.sidebar {
  position: fixed;
  top: 0;
  left: -320px;
  width: 310px; /* Healthy Material standard width */
  height: 100vh;
  background: #ffffff; /* Material Light background */
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  display: flex;
  flex-direction: column;
  box-shadow: 8px 0 32px rgba(0,0,0,0.1);
  color: #333333;
}

.sidebar.active {
  transform: translateX(310px);
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(2px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* 👤 Top Profile Section */
.profile-section-mat {
  padding: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #f0f0f0;
  background: #ffffff;
}

.profile-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.purple-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #6200ee; /* Material Purple background */

  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.purple-avatar svg {
  width: 32px;
  height: 32px;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.profile-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 2px;
}

.profile-phone, .profile-email {
  font-size: 0.8rem;
  color: #666666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.verify-btn {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  color: #6200ee;

  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.verify-btn:hover { background: #f9f9f9; border-color: #6200ee; }

.user-tag-row {
  margin-top: 0.75rem;
}

.badge-free-user {
  display: inline-block;
  background: #f3e5f5; /* Light purple background */
  color: #6200ee;

  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #d0e0e0;
}

/* 💎 Subscription Banner */
.pro-banner {
  padding: 1rem 1.5rem;
  background: #fdfdfd;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: background 0.2s;
}
.pro-banner:hover { background: #f5f5f5; }

.pro-icon-circle {
  width: 32px;
  height: 32px;
  background: #facc15; /* Yellow/Gold for PRO */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.6rem;
  color: #000000;
}

.pro-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1a;
}

.sidebar-divider {
  height: 1px;
  background: #eeeeee;
  margin: 0;
}

/* 📋 Menu Items (ONLY these) */
.sidebar-nav-light {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.nav-item-light {
  display: flex;
  align-items: center;
  padding: 0.85rem 1.5rem;
  color: #444444;
  text-decoration: none;
  transition: all 0.2s;
  font-weight: 500;
  gap: 1.25rem;
}

.nav-item-light:hover {
  background: #f8f8f8;
  color: #000000;
}

.nav-icon-light {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6200ee; /* Purple for icons like original state */
}

.nav-icon-light svg {
  width: 20px;
  height: 20px;
}

.nav-label-light {
  font-size: 0.95rem;
  flex: 1;
}

.nav-badge-grey {
  background: #eeeeee;
  color: #666666;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.store-icon-yellow {
  color: #eab308;
}

/* ─── Navbar Toggle ─────────────────────────────────────────── */
.menu-toggle {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: -0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.btn-danger { background: linear-gradient(135deg,#ef4444,#dc2626); color: #fff; }
.btn-danger:hover { transform: translateY(-1px); }
.btn-lg { padding: .75rem 1.75rem; font-size: 1rem; }
.btn-full { width: 100%; }
.btn-primary-sm { padding: .4rem .9rem; font-size: .82rem; background: linear-gradient(135deg,#22d3ee,#0891b2); color: #0a0f1e; border-radius: var(--radius-sm); font-weight: 600; }
.btn-outline-sm { padding: .4rem .9rem; font-size: .82rem; background: transparent; border: 1px solid var(--border-light); color: var(--text-secondary); border-radius: var(--radius-sm); cursor: pointer; }

/* ─── Forms ─────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .83rem; font-weight: 500; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .05em; }
.form-input {
  padding: .65rem .9rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34,211,238,.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-actions { display: flex; gap: .75rem; justify-content: flex-end; margin-top: .5rem; }
.form-body { display: flex; flex-direction: column; gap: 1.25rem; }
.form-page { display: flex; justify-content: center; align-items: flex-start; padding-top: 2rem; }
.form-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; width: 100%; max-width: 560px; box-shadow: var(--shadow-card); }
.form-card h1 { font-family: 'Rajdhani', sans-serif; font-size: 1.8rem; margin-bottom: 1.5rem; }

/* ─── Auth ──────────────────────────────────────────────────── */
.auth-container { display: flex; justify-content: center; align-items: center; min-height: calc(100vh - 200px); }
.auth-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; width: 100%; max-width: 420px; box-shadow: var(--shadow-card); }
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-icon { font-size: 3rem; display: block; margin-bottom: .5rem; }
.auth-header h1 { font-family: 'Rajdhani', sans-serif; font-size: 2rem; }
.auth-subtitle { color: var(--text-secondary); margin-top: .3rem; }
.auth-form { display: flex; flex-direction: column; gap: 1.2rem; }
.remember-me {
  flex-direction: row !important;
  align-items: center;
  gap: 0.75rem;
  margin-top: -0.5rem;
  cursor: pointer;
}
.remember-me label {
  text-transform: none;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  letter-spacing: normal;
  user-select: none;
}
.form-checkbox {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent);
  cursor: pointer;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: .88rem; color: var(--text-secondary); }

/* ─── Flash Messages ────────────────────────────────────────── */
.flash { padding: .7rem 1rem; border-radius: var(--radius-sm); font-size: .88rem; font-weight: 500; margin-bottom: .5rem; }
.flash-error { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; }
.flash-success { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.3); color: #86efac; }

/* ─── Hero ──────────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #0f1f3d 0%, #0a1628 50%, #061020 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.page-hero::before {
  content: '🏏';
  position: absolute; right: -1rem; top: 50%;
  transform: translateY(-50%);
  font-size: 8rem; opacity: 0.04;
  pointer-events: none;
}
.hero-title { font-family: 'Rajdhani', sans-serif; font-size: 2.8rem; font-weight: 700; line-height: 1.15; }
.hero-subtitle { color: var(--text-secondary); margin: .75rem 0 1.5rem; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 1rem; }
.hero-stats { display: flex; gap: .75rem; }
.stat-pill { background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; padding: .4rem 1rem; font-size: .88rem; display: flex; gap: .4rem; align-items: center; }
.stat-num { color: var(--accent); font-weight: 700; font-size: 1.1rem; }

/* ─── Page Headers ──────────────────────────────────────────── */
.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 2rem; gap: 1rem; }
.page-header h1 { font-family: 'Rajdhani', sans-serif; font-size: 2rem; }
.breadcrumb { color: var(--text-muted); font-size: .85rem; display: block; margin-bottom: .25rem; }
.breadcrumb:hover { color: var(--text-secondary); }

/* ─── Section ───────────────────────────────────────────────── */
.section { margin-bottom: 2.5rem; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.section-header h2 { font-family: 'Rajdhani', sans-serif; font-size: 1.4rem; }
.link-more { font-size: .85rem; color: var(--accent); }

/* ─── Empty State ───────────────────────────────────────────── */
.empty-state { text-align: center; padding: 4rem 2rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.empty-icon { font-size: 3rem; display: block; margin-bottom: 1rem; }
.empty-state h3 { font-family: 'Rajdhani', sans-serif; font-size: 1.5rem; margin-bottom: .5rem; }
.empty-state p { color: var(--text-secondary); margin-bottom: 1.5rem; }

/* ─── Match Cards ───────────────────────────────────────────── */
.match-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.match-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: all .25s ease;
  text-decoration: none;
  color: var(--text-primary);
}
.match-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-glow); color: var(--text-primary); }
.match-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.status-badge { font-size: .75rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; }
.status-live { background: rgba(239,68,68,.15); color: #fca5a5; border: 1px solid rgba(239,68,68,.3); }
.status-completed { background: rgba(34,197,94,.12); color: #86efac; border: 1px solid rgba(34,197,94,.25); }
.status-setup { background: rgba(148,163,184,.08); color: var(--text-secondary); border: 1px solid var(--border); }
.match-format { font-size: .8rem; color: var(--text-muted); }
.match-teams { display: flex; align-items: center; gap: .75rem; }
.team-block { flex: 1; }
.team-block-right { text-align: right; }
.team-short { font-family: 'Rajdhani', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--accent); display: block; line-height: 1; }
.team-name { font-size: .8rem; color: var(--text-secondary); }
.vs { font-size: .75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
.match-venue { font-size: .8rem; color: var(--text-muted); margin-top: .75rem; }
.match-result { font-size: .85rem; color: var(--green); margin-top: .5rem; font-weight: 600; }
.match-format-badge { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 999px; padding: .25rem .75rem; font-size: .8rem; color: var(--text-secondary); }

/* ─── Tabs & Headers ────────────────────────────────────────── */
.premium-tabs {
  display: flex;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  padding-bottom: 0.25rem;
}
.tab-link {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 0.25rem;
  transition: all 0.2s;
  position: relative;
}
.tab-link:hover { color: var(--text-primary); }
.tab-link.active { color: var(--accent); }
.tab-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 99px;
}

.start-match-prompt {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 2rem;
  margin: -2rem -2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.start-match-prompt h2 { font-size: 1.05rem; color: var(--text-secondary); font-weight: 500; }

/* ─── Team Selection (Circles) ───────────────────────────────── */
.team-select-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 3rem 0;
}
.team-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.team-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 3px dashed var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.team-circle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(34, 211, 238, 0.05);
  transform: scale(1.05);
}
.team-circle.selected {
  border-style: solid;
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-card);
  box-shadow: var(--shadow-glow);
}
.vs-diamond {
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.vs-text {
  transform: rotate(-45deg);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ─── Community Grid ────────────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
}
@media (max-width: 360px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.category-card {
  background: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 1.5rem 0.5rem;
  text-align: center;
  transition: all 0.25s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.category-card:hover {
  border-color: #22d3ee;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.category-icon {
  width: 42px;
  height: 42px;
  color: #333333;
}
.category-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #333333;
}
.category-card:hover .category-label,
.category-card:hover .category-icon { color: #d91e27; opacity: 1; }

/* ─── Illustrations ─────────────────────────────────────────── */
.illustration-container {
  padding: 2rem 0;
  text-align: center;
}
.illustration-img {
  max-width: 280px;
  height: auto;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* ─── Team Cards ────────────────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.team-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  transition: all .25s;
  color: var(--text-primary);
}
.team-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-glow); color: var(--text-primary); }
.team-badge {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a5f, #0e2a4a);
  border: 2px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem; font-weight: 700; color: var(--accent);
  margin: 0 auto 1rem;
}
.team-card h3 { font-size: .95rem; font-weight: 600; }
.team-meta { font-size: .78rem; color: var(--text-muted); margin-top: .25rem; }
.team-short-badge { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 999px; padding: .2rem .7rem; font-size: .8rem; color: var(--accent); font-family: 'Rajdhani', sans-serif; font-weight: 700; margin-left: .5rem; }

/* ─── Player Cards ──────────────────────────────────────────── */
.player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.player-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color .2s;
}
.player-card:hover { border-color: var(--border-light); }
.player-avatar {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #1b3359, #0d1f3a);
  border: 2px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: .95rem; font-weight: 700; color: var(--accent);
}
.player-info h3 { font-size: .95rem; font-weight: 600; }
.player-role { font-size: .78rem; color: var(--text-muted); margin: .15rem 0 .5rem; }
.player-styles { display: flex; flex-direction: column; gap: .2rem; }
.style-tag { font-size: .73rem; color: var(--text-secondary); }

/* ─── Match Overview ────────────────────────────────────────── */
.match-overview-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; margin-bottom: 1.5rem; }
.match-teams-large { display: flex; align-items: center; justify-content: center; gap: 2rem; margin-bottom: 1.5rem; }
.team-block-lg { text-align: center; }
.team-badge-lg {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg,#1b3a6a,#0d2040);
  border: 2px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.2rem; font-weight: 700; color: var(--accent);
  margin: 0 auto .75rem;
}
.team-block-lg h2 { font-size: 1.1rem; }
.vs-lg { font-family: 'Rajdhani', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--text-muted); }
.match-detail-row { font-size: .88rem; color: var(--text-secondary); margin-top: .5rem; }
.match-stats-row { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.08); }
.stat-item { display: flex; flex-direction: column; align-items: center; gap: .1rem; }
.stat-label { font-size: .65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.stat-value { font-family: 'Rajdhani', sans-serif; font-weight: 700; color: var(--accent); font-size: 1rem; }
.partnership-info { margin-top: .75rem; font-size: .82rem; color: var(--text-muted); }
.partnership-info strong { color: var(--text-secondary); }

.action-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; }
.action-card h2 { font-family: 'Rajdhani', sans-serif; font-size: 1.4rem; margin-bottom: 1rem; }
.action-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.toss-form { display: flex; flex-direction: column; gap: 1rem; }
.result-text { font-size: 1.2rem; font-weight: 600; color: var(--green); margin: .5rem 0 1.25rem; }

/* ─── Standings & Table Enhancements ────────────────────────── */
.standings-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.standings-table th { text-align: left; padding: 1rem .75rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.standings-table td { padding: 1rem .75rem; font-size: .95rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.standings-table tr:hover td { background: rgba(255,255,255,0.02); }
.team-logo-sm { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: var(--bg-secondary); }

/* ─── MVP Banner ────────────────────────────────────────────── */
.mvp-banner {
  background: linear-gradient(135deg, rgba(234,179,8,0.15), rgba(234,179,8,0.05));
  border: 1px solid rgba(234,179,8,0.3);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  box-shadow: 0 0 20px rgba(234,179,8,0.1);
}
.mvp-label { font-weight: 600; color: var(--yellow); font-size: 1.1rem; }
.mvp-name { font-weight: 800; color: var(--text-primary); font-size: 1.2rem; font-family: 'Rajdhani', sans-serif; text-transform: uppercase; }

/* ─── Live Scorer ───────────────────────────────────────────── */
.scorer-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 768px) { .scorer-layout { grid-template-columns: 1fr; } }

.scorer-left { display: flex; flex-direction: column; gap: 1rem; }

.score-header {
  background: linear-gradient(135deg,#0f2a4f,#091a35);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
}
.score-team { font-size: .85rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .5rem; }
.score-main { display: flex; align-items: center; justify-content: center; gap: .25rem; }
.score-runs { font-family: 'Rajdhani', sans-serif; font-size: 4rem; font-weight: 700; color: var(--text-primary); line-height: 1; }
.score-sep { font-family: 'Rajdhani', sans-serif; font-size: 2.5rem; color: var(--text-muted); }
.score-wkts { font-family: 'Rajdhani', sans-serif; font-size: 2.5rem; color: var(--red); line-height: 1; }
.score-overs { font-size: .88rem; color: var(--text-muted); margin-top: .5rem; }
.match-stats-row { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.08); }
.stat-item { display: flex; flex-direction: column; align-items: center; gap: .1rem; }
.stat-label { font-size: .65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.stat-value { font-family: 'Rajdhani', sans-serif; font-weight: 700; color: var(--accent); font-size: 1rem; }
.partnership-info { margin-top: .75rem; font-size: .82rem; color: var(--text-secondary); }
.partnership-info strong { color: var(--text-primary); }

.batters-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.batter-row { display: flex; align-items: center; gap: .6rem; font-size: .95rem; }
.batter-on-strike { font-weight: 600; }
.strike-ind { color: var(--yellow); font-size: .7rem; }
.bowler-row { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--text-secondary); margin-top: .5rem; border-top: 1px solid rgba(255,255,255,0.05); padding-top: .5rem; }
.bowler-icon { font-size: .9rem; opacity: .7; }
.bwl-name { flex: 1; }
.bwl-stats { font-family: 'Rajdhani', sans-serif; font-weight: 600; color: var(--text-muted); font-size: .95rem; letter-spacing: .02em; }

.over-display { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; }
.over-label { font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; display: block; margin-bottom: .6rem; }
.balls-row { display: flex; flex-wrap: wrap; gap: .4rem; }

.free-hit-indicator {
  margin-top: 1rem;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(90deg, #f97316, #ef4444);
  color: #fff;
  font-weight: 800;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: 6px;
  animation: pulse-free-hit 1.5s infinite;
  display: inline-block;
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.4);
  border: 1px solid rgba(255,255,255,0.2);
}

@keyframes pulse-free-hit {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(249, 115, 22, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}
.ball-dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 700; color: var(--text-secondary);
}
.ball-wicket { background: rgba(239,68,68,.2); border-color: rgba(239,68,68,.5); color: #fca5a5; }
.ball-four { background: rgba(34,197,94,.2); border-color: rgba(34,197,94,.4); color: #86efac; }
.ball-six { background: linear-gradient(135deg,rgba(234,179,8,.25),rgba(234,179,8,.05)); border-color: rgba(234,179,8,.5); color: #fde68a; }
.ball-extra { background: rgba(148,163,184,.1); border-color: rgba(148,163,184,.2); color: var(--text-muted); }

.scorer-right { display: flex; flex-direction: column; gap: 1rem; }
.player-select-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.player-select-panel h3 { font-family: 'Rajdhani', sans-serif; font-size: 1.2rem; }

.action-top-row { display: flex; justify-content: space-between; margin-bottom: 0.75rem; }

.run-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.run-btn {
  height: 76px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.8rem; font-weight: 700;
  cursor: pointer; transition: transform .1s, border-color .15s;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.run-btn:active { transform: scale(0.96); }
.run-dot { color: var(--text-muted); }
.run-four { border-color: rgba(34,197,94,.5); color: var(--green); background: rgba(34,197,94,.05); }
.run-four:hover { background: rgba(34,197,94,.15); }
.run-six { border-color: rgba(34,197,94,.8); color: var(--green); background: rgba(34,197,94,.12); font-size: 2.2rem; }
.run-six:hover { background: rgba(34,197,94,.2); }
.run-wicket { 
  grid-column: span 3; height: 60px;
  background: linear-gradient(135deg, #ef4444, #dc2626); color: white; border: none; font-size: 1.5rem;
}
.run-wicket:hover { opacity: 0.9; }

.run-extra { color: var(--text-secondary); font-size: 1rem; }

.run-buttons form, .extras-compact-row form { display: contents; }
.run-btn, .btn-danger { width: 100%; }

.extras-compact-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 1rem; }
.extras-compact-row .run-btn { height: 48px; background: rgba(255,255,255,0.03); border-color: var(--border-light); }

/* Extra Sub-menus */
.extra-sub-menu {
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
  animation: slide-up 0.2s ease-out;
}
.extra-sub-menu.active { display: grid; }
.extra-sub-menu form { display: contents; }
.extra-sub-menu .run-btn { height: 48px; font-size: 0.9rem; background: rgba(34, 211, 238, 0.05); border-color: var(--accent-dim); }
.extra-sub-menu .btn-cancel { background: rgba(239,68,68,0.1); border-color: var(--red); color: var(--red); grid-column: span 5; height: 32px; font-size: 0.8rem; margin-top: 0.25rem; }

@keyframes slide-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hidden-extras { display: none !important; }

/* Wicket Modal */
.modal-dialog {
  border: none;
  background: transparent;
  margin: auto;
}
.modal-dialog[open] {
  animation: fade-in 0.2s ease-out;
}
.modal-dialog::backdrop { background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); }
.modal-content {
  background: var(--bg-card); display: flex; flex-direction: column; gap: 1rem;
  padding: 1.75rem; width: 90vw; max-width: 400px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); color: var(--text-primary);
  box-shadow: var(--shadow-card);
}
.modal-actions { display: flex; gap: 0.75rem; margin-top: 1rem; }
.modal-actions button { flex: 1; }

.innings-end-row { margin-top: 1.5rem; }

/* ─── Scorecard ─────────────────────────────────────────────── */
.innings-section { margin-bottom: 2.5rem; }
.innings-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); }
.innings-header h2 { font-family: 'Rajdhani', sans-serif; font-size: 1.4rem; }
.innings-num { font-size: .8rem; color: var(--text-muted); font-family: 'Inter', sans-serif; font-weight: 400; }
.innings-score { text-align: right; }
.big-score { font-family: 'Rajdhani', sans-serif; font-size: 2rem; font-weight: 700; color: var(--accent); }
.overs-info { font-size: .85rem; color: var(--text-muted); }

.scorecard-table-wrap { overflow-x: auto; margin-bottom: 1.5rem; }
.scorecard-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.scorecard-table th { padding: .5rem .75rem; text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.scorecard-table td { padding: .6rem .75rem; border-bottom: 1px solid rgba(30,51,87,.5); }
.scorecard-table tbody tr:hover { background: rgba(34,211,238,.03); }
.col-batsman { min-width: 140px; }
.col-dismissal { color: var(--text-secondary); font-size: .82rem; max-width: 200px; }
.col-num { text-align: right; width: 48px; font-family: 'Rajdhani', sans-serif; font-size: .95rem; }
.player-name-sc { font-weight: 600; }
.batting-now { color: var(--accent); }
.total-row td { font-weight: 700; font-family: 'Rajdhani', sans-serif; font-size: 1rem; }
.bowling-title { font-family: 'Rajdhani', sans-serif; font-size: 1.1rem; color: var(--text-secondary); margin-bottom: .5rem; margin-top: 1rem; }

/* ─── Over History ─────────────────────────────────────────── */
.overs-history { margin-top: 1rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; max-height: 400px; overflow-y: auto; }
.overs-history-list { display: flex; flex-direction: column; gap: 1rem; }
.over-history-row { display: grid; grid-template-columns: 80px 1fr 90px; align-items: center; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.over-history-row:last-child { border-bottom: none; padding-bottom: 0; }
.over-history-info { display: flex; flex-direction: column; gap: .1rem; }
.over-num-label { font-family: 'Rajdhani', sans-serif; font-weight: 700; color: var(--accent); font-size: 1.1rem; }
.history-bowler { font-size: .75rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 80px; }
.history-balls { display: flex; flex-wrap: wrap; gap: .3rem; }
.history-balls .ball-dot { width: 28px; height: 28px; font-size: .75rem; }
.history-sum { font-size: .8rem; color: var(--text-muted); text-align: right; font-weight: 500; }

/* ─── Error Page ────────────────────────────────────────────── */
.error-page { text-align: center; padding: 6rem 2rem; }
.error-code { font-family: 'Rajdhani', sans-serif; font-size: 7rem; font-weight: 700; color: var(--border-light); line-height: 1; }
.error-page h1 { font-size: 1.5rem; color: var(--text-secondary); margin: .5rem 0 2rem; }

/* ─── Footer ────────────────────────────────────────────────── */
.footer { text-align: center; padding: 1.5rem; font-size: .8rem; color: var(--text-muted); border-top: 1px solid var(--border); }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .main-content { padding: 1rem; }
  .form-row { grid-template-columns: 1fr; }
  .page-hero { flex-direction: column; gap: 1.5rem; }
  .run-buttons { grid-template-columns: repeat(4,1fr); }
  .hero-actions { flex-direction: column; }
}

/* ─── Marketplace (Looking) ─────────────────────────────────── */
.looking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #111827 0%, #0a0f1e 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.looking-search-bar { font-family: 'Rajdhani', sans-serif; font-size: 1.5rem; font-weight: 700; }
.search-title { color: var(--text-secondary); }
.looking-header .highlight { color: var(--accent); }
.looking-actions { display: flex; gap: 0.75rem; }
.btn-post { background: var(--green); color: #0a0f1e; }
.btn-post:hover { background: #4ade80; transform: translateY(-1px); }
.btn-user-icon { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary); }

.filter-tabs {
  margin-bottom: 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}
.filter-tabs::-webkit-scrollbar { display: none; } /* Chrome/Safari */

.filter-scroll { display: flex; gap: 0.75rem; padding-bottom: 0.5rem; }
.filter-tab {
  white-space: nowrap;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
}
.filter-tab:hover { border-color: var(--accent); color: var(--accent); }
.filter-tab.active { background: var(--accent); color: #0a0f1e; border-color: var(--accent); }

.marketplace-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 1.5rem; }
@media (max-width: 640px) { .marketplace-feed { grid-template-columns: 1fr; } }

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.post-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-glow); }

.post-header { display: flex; justify-content: space-between; align-items: flex-start; }
.user-info { display: flex; gap: 0.75rem; align-items: center; }
.avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--bg-secondary); border: 2px solid var(--border-light); flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: 'Rajdhani', sans-serif; font-weight: 700; color: var(--accent); font-size: 1.2rem; }
.user-name { font-size: 0.95rem; color: var(--text-primary); line-height: 1.4; }
.user-name strong { color: var(--accent); font-weight: 600; }

.post-badge { font-size: 1.2rem; filter: grayscale(0.5); opacity: 0.7; }

.post-title { font-family: 'Rajdhani', sans-serif; font-size: 1.25rem; font-weight: 700; color: var(--text-primary); }
.post_desc { 
  font-size: 0.9rem; 
  color: var(--text-secondary); 
  display: -webkit-box; 
  -webkit-line-clamp: 3; 
  line-clamp: 3; 
  -webkit-box-orient: vertical; 
  overflow: hidden; 
}

.post-meta { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.post-meta li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-muted); }
.post-meta .icon { color: var(--accent); font-size: 1rem; width: 20px; text-align: center; }

.post-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.05); }
.time-ago { font-size: 0.8rem; color: var(--text-muted); }
.btn-contact { color: var(--accent); font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; gap: 0.4rem; }
.btn-contact:hover { color: #fff; text-decoration: underline; }

/* ─── New Post Form ────────────────────────────────────────── */
.form-container { max-width: 600px; margin: 0 auto; padding: 2rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.form-header { margin-bottom: 2rem; text-align: center; }
.form-header h2 { font-family: 'Rajdhani', sans-serif; font-size: 2rem; margin-bottom: 0.5rem; }
.form-header p { color: var(--text-secondary); font-size: 0.95rem; }

.standard-form { display: flex; flex-direction: column; gap: 1.5rem; }
.standard-form select, 
.standard-form textarea, 
.standard-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
}
.standard-form select:focus, 
.standard-form textarea:focus, 
.standard-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

/* ─── Premium Header (Modern Red) ─────────────────────────── */
.premium-header {
  background: linear-gradient(135deg, #d91e27, #8b1318);
  color: white;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 110;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.premium-header h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.header-left { display: flex; align-items: center; gap: 1.25rem; }
.back-btn { 
  color: white; 
  font-size: 1.6rem; 
  cursor: pointer; 
  opacity: 0.8; 
  transition: opacity 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
}
.back-btn:hover { opacity: 1; transform: translateX(-2px); }

/* Progress Tracker */
.setup-progress { display: flex; align-items: center; gap: 0.5rem; }
.progress-step {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: rgba(255,255,255,0.6);
  transition: all 0.3s;
}
.progress-step.active { background: white; color: #d91e27; box-shadow: 0 0 10px rgba(255,255,255,0.5); }
.progress-line { width: 30px; height: 2px; background: rgba(255,255,255,0.2); }

/* ─── Match Setup Screen (Premium Dark) ──────────────────────── */
.setup-page { 
  background: var(--bg-primary); 
  color: var(--text-primary); 
  min-height: 100vh; 
  font-family: 'Inter', sans-serif;
}
.setup-container { 
  max-width: 800px; 
  margin: 0 auto; 
  padding: 2rem 1.5rem 120px; 
}

.setup-step { display: none; flex-direction: column; gap: 2rem; animation: slideIn 0.4s ease-out; }
.setup-step.active { display: flex; }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-header-card { margin-bottom: 2rem; }
.step-header-card h2 { font-family: 'Rajdhani', sans-serif; font-size: 2rem; margin-bottom: 0.5rem; color: var(--accent); }
.step-header-card p { color: var(--text-secondary); font-size: 1.1rem; }

/* Interactive Team Selection */
.team-selection-area { display: flex; align-items: center; gap: 2rem; }
.team-picker-col { flex: 1; display: flex; flex-direction: column; gap: 1rem; }
.team-picker-col label { font-size: 0.85rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; }
.team-cards-grid { display: flex; flex-direction: column; gap: 0.75rem; max-height: 480px; overflow-y: auto; padding-right: 0.5rem; }

.selectable-team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.selectable-team-card:hover { border-color: var(--border-light); background: var(--bg-card-hover); }
.selectable-team-card.selected { border-color: var(--accent); background: rgba(34, 211, 238, 0.1); }
.selectable-team-card.selected .selection-glow { position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(34,211,238,0.15) 0%, transparent 70%); animation: pulseGlow 2s infinite; }

@keyframes pulseGlow {
  0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; }
}

.team-logo-mini { width: 44px; height: 44px; background: var(--bg-secondary); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: 'Rajdhani', sans-serif; font-weight: 700; color: var(--accent); flex-shrink: 0; }
.team-logo-mini img { width: 85%; height: 85%; object-fit: contain; }
.team-info-mini { display: flex; flex-direction: column; gap: 2px; }
.t-name { font-weight: 600; font-size: 1rem; }
.t-cap { font-size: 0.75rem; color: var(--text-secondary); }

.vs-divider-vertical { font-family: 'Rajdhani', sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--text-muted); opacity: 0.3; }

/* Presets & Settings */
.presets-row { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.preset-pill { background: var(--bg-card); border: 1px solid var(--border); border-radius: 99px; padding: 0.6rem 1.75rem; color: var(--text-primary); cursor: pointer; font-weight: 600; transition: all 0.2s; }
.preset-pill:hover { border-color: var(--accent); box-shadow: var(--shadow-glow); }
.preset-pill.active { background: var(--accent); color: #0a0f1e; border-color: var(--accent); }

.settings-card.glass { background: rgba(22,31,53,0.6); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-card); }

.pro-settings-toggle { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0; border-top: 1px solid var(--border); margin-top: 1.5rem; cursor: pointer; color: var(--text-secondary); font-weight: 600; font-size: 0.9rem; }
.pro-settings-toggle:hover { color: var(--accent); }
.pro-panel { animation: slideDown 0.3s ease-out; }

@keyframes slideDown { from { opacity: 0; max-height: 0; } to { opacity: 1; max-height: 500px; } }

/* Squad Panels */
.squads-container { display: flex; gap: 2rem; }
.squad-panel { flex: 1; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; min-height: 400px; }
.squad-panel h3 { font-family: 'Rajdhani', sans-serif; font-size: 1.2rem; margin-bottom: 1.5rem; color: var(--accent); border-bottom: 1px solid var(--border); padding-bottom: 0.75rem; }
.squad-list-grid { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }

.squad-player-pill { display: flex; align-items: center; gap: 1rem; padding: 0.75rem; border-radius: 8px; background: var(--bg-secondary); border: 1px solid transparent; cursor: pointer; transition: all 0.2s; }
.squad-player-pill:hover { background: var(--bg-card-hover); }
.squad-player-pill input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.player-info-mini { display: flex; flex-direction: column; }
.p-name { font-size: 0.9rem; font-weight: 500; }
.p-role { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; }

/* Buttons */
.step-actions { display: flex; gap: 1rem; margin-top: 1rem; }
.btn-step-next { flex: 1; background: linear-gradient(135deg, #22d3ee, #0891b2); color: #0a0f1e; border: none; padding: 1rem; border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; box-shadow: 0 4px 15px rgba(34,211,238,0.2); }
.btn-step-prev { padding: 1rem 1.5rem; background: transparent; border: 1px solid var(--border); color: var(--text-secondary); border-radius: var(--radius-sm); cursor: pointer; }

.bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(10,15,30,0.9); backdrop-filter: blur(15px); border-top: 1px solid var(--border);
  padding: 1.25rem 2rem; display: flex; justify-content: center; z-index: 120;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}
.bottom-btn {
  background: linear-gradient(135deg, #22c55e, #16a34a); color: white; border: none; padding: 1rem 4rem; border-radius: var(--radius-sm); font-weight: 700; font-size: 1.1rem; cursor: pointer; transition: all 0.25s; box-shadow: 0 4px 15px rgba(34,197,94,0.3); text-transform: uppercase; letter-spacing: 0.1em;
}
.bottom-btn:hover { transform: scale(1.02); box-shadow: 0 6px 20px rgba(34,197,94,0.5); }

.hidden { display: none !important; }
.btn-secondary-light { color: #888; background: #fafafa; }
.btn-primary-teal { background: #0e9aaf; color: white; }

/* ─── Batch Player Addition ──────────────────────────────────── */
.player-row-card {
  background: white; border: 1px solid #eee; border-radius: 8px;
  padding: 1rem; margin-bottom: 1rem; position: relative;
}
.remove-row {
  position: absolute; top: 10px; right: 10px;
  color: #999; cursor: pointer; font-size: 1.25rem;
}
.toast-msg {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%);
  background: #333; color: white; padding: 0.75rem 1.5rem;
  border-radius: 4px; font-size: 0.85rem; z-index: 200;
  display: flex; align-items: center; gap: 0.5rem;
}

/* ─── Custom Toggle ─────────────────────────────────────────── */
.switch {
  position: relative; display: inline-block; width: 44px; height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc; transition: .4s; border-radius: 24px;
}
.slider:before {
  position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px;
  background-color: white; transition: .4s; border-radius: 50%;
}
input:checked + .slider { background-color: #0e9aaf; }
.bottom-nav-bar {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 64px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  display: flex !important;
  justify-content: space-evenly !important;
  align-items: center !important;
  border-top: none !important;
  z-index: 10000 !important;
  padding: 0 !important;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.08) !important;
}

.bottom-nav-bar.hidden {
  transform: translateY(100%);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex: 1;
  height: 100%;
  gap: 2px;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s ease;
}

.nav-icon {
  width: 24px;
  height: 24px;
  color: #757575; /* Dark grey inactive */
  transition: color 0.3s ease, transform 0.2s ease;
}

.nav-label {
  font-size: 0.65rem;
  font-weight: 500;
  color: #757575; /* Dark grey inactive */
  transition: color 0.3s ease;
  font-family: inherit;
  line-height: 1;
  margin-top: 2px;
}

/* Active State */
.nav-item.active .nav-icon {
  color: #d21d26 !important; /* Brighter Red */
}

.nav-item.active .nav-label {
  color: #d21d26 !important; /* Brighter Red */
  font-weight: 700 !important;
}

.nav-item.active .nav-icon svg {
  stroke: #d21d26 !important;
  stroke-width: 2.5px !important;
}

.nav-item .nav-icon {
  color: #757575 !important;
}

.nav-item .nav-label {
  color: #757575 !important;
}

.nav-item:active .nav-icon {
  transform: scale(0.9);
}

/* To ensure main content isn't hidden behind the bottom bar */
body {
  padding-bottom: 64px;
}

/* ─── Splash Screen ─────────────────────────────────────────── */
.splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.splash-icon {
  font-size: 5rem;
  line-height: 1;
}

.splash-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #333333;
  letter-spacing: -0.02em;
}

.splash-loader {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(217, 30, 39, 0.2);
  border-top-color: #d91e27;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-top: 1rem;
}

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

.splash-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Hidden immediately if session flag exists */
html.no-splash .splash-overlay {
  display: none !important;
}

/* ─── TV Broadcast Overlay (OBS) ───────────────────────────────────────── */
.tv-overlay-container {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 40px; /* Float at top for modern cricket broadcast look */
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  max-width: 95vw;
  font-family: 'Rajdhani', sans-serif;
  color: #fff;
}

/* The primary gradient + glassmorphism */
.tv-main-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(67, 20, 103, 0.85), rgba(185, 28, 28, 0.85));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), inset 0 2px 0 rgba(255,255,255,0.1);
  height: 95px;
  padding: 0 1.5rem;
}

.tv-left {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 1rem;
}

.tv-batsmen { display: flex; flex-direction: column; justify-content: center; }
.tv-striker { font-size: 1.6rem; font-weight: 700; text-shadow: 0 2px 4px rgba(0,0,0,0.5); display: flex; align-items: center; gap: 0.3rem; }
.tv-star { color: #facc15; text-shadow: 0 0 10px rgba(250, 204, 21, 0.8); font-size: 1.4rem; padding-bottom: 4px; }
.tv-non-striker { font-size: 1.15rem; color: rgba(255,255,255,0.7); font-weight: 600; }

.tv-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 2.5rem;
  border-left: 1px solid rgba(255,255,255,0.15);
  border-right: 1px solid rgba(255,255,255,0.15);
  height: 100%;
}

/* Giant glowing text for score */
.tv-score-huge {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 2px;
  text-shadow: 0 0 25px rgba(220, 38, 38, 0.95), 0 4px 10px rgba(0,0,0,0.8);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* HTMX Transition Hooks */
.htmx-swapping .tv-score-huge {
  transform: scale(0.9);
  opacity: 0.5;
}

.tv-overs-meta {
  display: flex;
  gap: 1.5rem;
  margin-top: 6px;
}

.tv-badge {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: 1px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.tv-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 1rem;
}

.tv-bowler-col { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; }
.tv-bowler-name { font-size: 1.6rem; font-weight: 700; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.tv-bowler-spell { font-size: 1.15rem; font-weight: 700; color: rgba(255,255,255,0.8); }

/* ── Overlay Animations ── */
.anim-base {
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.15s ease, color 0.15s ease, text-shadow 0.15s ease;
}

.anim-score-down {
  transform: scale(0.85);
  opacity: 0.8;
}

.anim-score-up {
  transform: scale(1.1);
}

.anim-wicket-flash {
  color: #ff3b30 !important;
  text-shadow: 0 0 30px rgba(255,59,48, 1) !important;
  transform: scale(1.15);
}

.anim-fade-out {
  opacity: 0;
}


/* ─── AI Commentary ─────────────────────────────────────────── */
.commentary-panel {
  margin-top: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.commentary-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.commentary-list::-webkit-scrollbar {
  width: 4px;
}

.commentary-list::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 99px;
}

.commentary-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  animation: fadeInComm 0.4s ease-out;
}

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

.comm-dot {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 40px;
  text-align: center;
  margin-top: 2px;
}

.comm-text {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.comm-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 1rem;
}

@keyframes fadeInComm {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Setup Wizard Step 2 ───────────────────────────────────── */
.setup-step {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeInStep 0.3s ease-in-out;
}
.setup-step.hidden {
  display: none !important;
}

@keyframes fadeInStep {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-header-card {
  text-align: center;
  margin-bottom: 0.5rem;
}

.step-header-card h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.step-header-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.presets-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.preset-pill {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.5rem 1.5rem;
  border-radius: 99px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.preset-pill:hover, .preset-pill.active {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.settings-card.glass {
  background: rgba(22, 31, 53, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.settings-grid, .details-grid, .pro-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 600px) {
  .settings-grid, .details-grid, .pro-grid {
    grid-template-columns: 1fr;
  }
}

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

.setup-form-group.checkbox-group {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
}

.setup-form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.setup-input, .setup-select {
  width: 100%;
  background: rgba(10, 15, 30, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
/* Ensure selects match height naturally */
.setup-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
  padding-right: 2.5rem;
}

.setup-input:focus, .setup-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent), 0 0 12px rgba(34, 211, 238, 0.1);
}

.pro-settings-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s;
}

.pro-settings-toggle:hover {
  color: var(--text-primary);
}

#pro-toggle-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}
#pro-toggle-icon.open {
  transform: rotate(180deg);
}

.pro-panel {
  padding-top: 1rem;
  animation: fadeInComm 0.3s ease;
}
.pro-panel.hidden {
  display: none !important;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  background-color: rgba(10, 15, 30, 0.8);
  border: 1px solid var(--border);
  border-radius: 34px;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: var(--text-muted);
  border-radius: 50%;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--accent);
  border-color: var(--accent);
}

input:checked + .slider:before {
  transform: translateX(20px);
  background-color: #000;
}

.toggle-label {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.bottom-bar.hidden {
  display: none !important;
}
.bottom-bar {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-end;
}
.bottom-btn {
  background: linear-gradient(135deg, #22d3ee, #0891b2);
  color: #0a0f1e;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.8rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: all 0.2s;
}
.bottom-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.6);
}

.step-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}
.btn-step-prev, .btn-step-next {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-step-next {
  background: var(--accent);
  color: #0a0f1e;
  border-color: var(--accent);
  margin-left: auto;
}
.btn-step-prev:hover {
  background: var(--bg-primary);
  border-color: var(--border-light);
}
.btn-step-next:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

/* ─── Setup Page Wizard Layout ──────────────────────────────── */
.setup-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

.premium-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-left h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.8rem;
  margin: 0;
  background: linear-gradient(90deg, #22d3ee, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 1.2rem;
  transition: all 0.2s;
}

.back-btn:hover {
  background: var(--bg-primary);
  border-color: var(--accent);
  color: var(--accent);
}

.setup-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.progress-step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.3s;
}

.progress-step.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0f1e;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.4);
}

.progress-step.completed {
  background: var(--bg-card);
  border-color: var(--accent);
  color: var(--accent);
}

.progress-line {
  width: 40px;
  height: 2px;
  background: var(--border);
  transition: all 0.3s;
}

.progress-line.active {
  background: var(--accent);
}

.setup-container {
  background: var(--bg-primary);
}

/* ─── Step 1: Team Selection ────────────────────────────────── */
.team-selection-area {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.team-picker-col {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.team-picker-col > label {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.team-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.team-cards-grid::-webkit-scrollbar {
  width: 4px;
}
.team-cards-grid::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 99px;
}

.selectable-team-card {
  position: relative;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.selectable-team-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.selectable-team-card.selected {
  border-color: var(--accent);
  background: rgba(34, 211, 238, 0.05);
}

.team-logo-mini {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a5f, #0e2a4a);
  border: 1px solid var(--border-light);
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}
.team-logo-mini img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.team-info-mini {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.t-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.t-cap {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.selection-glow {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 20px rgba(34, 211, 238, 0.2);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.selectable-team-card.selected .selection-glow {
  opacity: 1;
}

.vs-divider-vertical {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-secondary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  align-self: center;
}

@media (max-width: 768px) {
  .team-selection-area {
    flex-direction: column;
    align-items: stretch;
  }
  .vs-divider-vertical {
    align-self: center;
  }
}

/* ─── Step 3: Squad Selection ───────────────────────────────── */
.squads-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .squads-container {
    grid-template-columns: 1fr;
  }
}

.squad-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.squad-panel h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.squad-list-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  background: var(--bg-secondary);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

.squad-player-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

.squad-player-row input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--accent);
}

.squad-player-info {
  display: flex;
  flex-direction: column;
}

.squad-player-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.squad-player-role {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Quick toggle button inside squad */
.squad-actions {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.btn-sm-action {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
}
.btn-sm-action:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* --- Premium Features CSS --- */

.momentum-container { margin-top: 2rem; }
.chart-wrapper { background: rgba(22, 31, 53, 0.5); border-radius: 12px; padding: 1rem; border: 1px solid var(--border); }

/* Match Poster Styles */
.poster-card-hidden {
    position: fixed;
    top: -5000px;
    left: -5000px;
    width: 600px;
    z-index: -100;
}

.poster-card-visible {
    display: block !important;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.poster-content {
    width: 600px;
    padding: 3rem;
    background: linear-gradient(135deg, #0a0f1e 0%, #161f35 100%);
    border: 8px solid var(--accent);
    color: white;
    font-family: 'Rajdhani', sans-serif;
    text-align: center;
}

.poster-header { margin-bottom: 2rem; display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 1rem; }
.poster-brand { font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.poster-meta { font-size: 1rem; color: var(--text-secondary); }

.poster-main { margin: 3rem 0; display: flex; flex-direction: column; gap: 1.5rem; }
.poster-team-row { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 0.5rem; }
.p-team-name { font-size: 2.2rem; font-weight: 700; color: white; }
.p-team-score { font-size: 2.2rem; font-weight: 800; color: var(--accent); }
.poster-vs-text { font-size: 1.5rem; color: var(--text-muted); font-weight: 900; margin: 0.5rem 0; }

.poster-result { font-size: 1.8rem; font-weight: 700; color: var(--yellow); margin: 2rem 0; text-transform: uppercase; letter-spacing: 2px; }

.poster-mvp-box { background: rgba(5, 5, 5, 0.4); padding: 1.5rem; border-radius: 12px; border: 1px solid var(--yellow); margin-top: 2rem; }
.mvp-label { font-size: 0.9rem; color: var(--yellow); display: block; margin-bottom: 0.5rem; }
.mvp-val { font-size: 2.4rem; font-weight: 800; color: white; }

.poster-footer { margin-top: 3rem; font-size: 0.9rem; color: var(--text-muted); }

/* Wagon Wheel Styles */
.wagon-wheel-container { position: relative; width: 400px; height: 400px; margin: 0 auto; background: #228b22; border-radius: 50%; border: 4px solid #fff; }
.pitch-line { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 20px; height: 60px; background: #d2b48c; }

/* ?? Wagon Wheel UI ?? */
.wagon-wheel-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}

.wagon-field-mini {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background: #1e5128; /* Deep Cricket Green */
    border-radius: 50%;
    border: 3px solid #ffffff;
    position: relative;
    cursor: crosshair;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.pitch-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 24px;
    background: #d2b48c;
    border-radius: 1px;
}

.wagon-dot-temp {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ff0000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px #ff0000;
}

/* Scorecard Wagon Wheel */
.wagon-wheel-modal {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
}

.wagon-field-large {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    background: #1e5128;
    border-radius: 50%;
    border: 4px solid #ffffff;
    position: relative;
}

.wagon-dot-saved {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.dot-1 { background: #ffffff; } /* 1 run */
.dot-2 { background: #34d399; } /* 2 runs */
.dot-3 { background: #fbbf24; } /* 3 runs */
.dot-4 { background: #22d3ee; } /* 4 runs */
.dot-6 { background: #f472b6; } /* 6 runs */
.dot-w { background: #ef4444; } /* Wicket */

/* ?? Player Profile & Radars ?? */
.player-profile-container { max-width: 900px; margin: 0 auto; padding: 2rem 1rem; }
.profile-header { display: flex; align-items: center; padding: 2rem; background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); margin-bottom: 2rem; }
.profile-avatar-large { width: 100px; height: 100px; background: var(--accent-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; font-weight: 800; color: white; margin-right: 2rem; box-shadow: 0 0 20px rgba(239, 68, 68, 0.3); }
.profile-text h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.profile-meta { color: var(--text-secondary); font-size: 1.1rem; }

.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 768px) { .profile-grid { grid-template-columns: 1fr; } }

.radar-container { height: 350px; display: flex; align-items: center; justify-content: center; }
.stats-mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1rem; }
.stat-box { background: rgba(255,255,255,0.05); padding: 1rem; border-radius: 12px; text-align: center; border: 1px solid var(--border); }
.s-label { display: block; font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.4rem; text-transform: uppercase; }
.s-val { font-size: 1.5rem; font-weight: 700; color: white; }

.e-stat-row { display: flex; justify-content: space-between; padding: 0.8rem 0; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.e-stat-row span:last-child { color: white; font-weight: 600; }

/* ?? Highlights Reel ?? */
.highlights-container { max-width: 800px; margin: 0 auto; padding: 2rem 1rem; }
.timeline { position: relative; padding-left: 2rem; border-left: 2px solid var(--border); }
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-dot { position: absolute; left: -3.2rem; top: 0.5rem; width: 40px; height: 40px; background: var(--bg-card); border: 2px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; z-index: 2; box-shadow: 0 0 10px rgba(0,0,0,0.5); }
.timeline-content { padding: 1.5rem; border-radius: 16px; transition: transform 0.2s; }
.timeline-content:hover { transform: translateX(10px); background: rgba(255,255,255,0.05); }
.timeline-header { display: flex; justify-content: space-between; margin-bottom: 0.8rem; }
.timeline-over { color: var(--accent-primary); font-weight: 800; font-family: monospace; }
.timeline-type { font-weight: 900; letter-spacing: 1px; color: white; }
.timeline-desc { color: var(--text-secondary); line-height: 1.6; font-size: 1.05rem; }

/* ?? Glassmorphism & Misc ?? */
.glass { background: rgba(30, 41, 59, 0.7) !important; backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.05) !important; }
.wagon-mini-btn { background: none; border: 1px solid var(--border); border-radius: 4px; padding: 2px 6px; cursor: pointer; opacity: 0.6; transition: 0.2s; font-size: 0.9rem; }
.wagon-mini-btn:hover { opacity: 1; border-color: var(--accent-primary); transform: scale(1.1); }

/* --- Highlights Timeline ------------------------------------- */
.highlights-page { padding: 1rem 0; }
.highlights-container h1 { font-family: 'Rajdhani', sans-serif; font-weight: 700; color: var(--accent); }
.timeline { position: relative; padding-left: 3rem; margin-top: 2rem; }
.timeline::before { content: ''; position: absolute; left: 1rem; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-dot { 
  position: absolute; left: -3rem; width: 2.2rem; height: 2.2rem; 
  background: var(--bg-card); border: 2px solid var(--accent); 
  border-radius: 50%; display: flex; align-items: center; justify-content: center; 
  font-size: 1.1rem; z-index: 1; box-shadow: 0 0 15px rgba(34,211,238,0.2);
}
.timeline-content { padding: 1.25rem; border-radius: var(--radius); border: 1px solid var(--border); transition: transform 0.2s; }
.timeline-content:hover { transform: translateX(5px); border-color: var(--accent); }
.timeline-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.timeline-over { font-family: 'Rajdhani', sans-serif; font-weight: 700; color: var(--text-secondary); }
.timeline-type { font-weight: 800; color: var(--accent); font-size: 0.8rem; letter-spacing: 0.05em; flex: 1; margin-left: 1rem; }
.timeline-desc { font-size: 0.95rem; line-height: 1.5; color: var(--text-primary); }
.highlight-actions { display: flex; gap: 0.5rem; margin-top: 1rem; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 0.75rem; }
.share-btn-mini { background: none; border: 1px solid var(--border); color: var(--text-secondary); padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; transition: 0.2s; cursor: pointer; }
.share-btn-mini:hover { border-color: var(--accent); color: var(--accent); background: rgba(34, 211, 238, 0.05); }

/* --- Player Hero Card --------------------------------------- */
.hero-card-page { display: flex; justify-content: center; padding: 2rem 0; }
.hero-card-container { width: 100%; max-width: 500px; }
.player-hero-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid var(--accent);
  border-radius: 24px;
  padding: 2rem;
  color: #fff;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(34, 211, 238, 0.1);
  position: relative;
  overflow: hidden;
  animation: cardPulse 4s infinite alternate ease-in-out;
}
.player-hero-card.premium-border {
  border: 3px solid transparent;
  background-image: linear-gradient(#1e293b, #0f172a), linear-gradient(135deg, #fbbf24, #b45309, #fbbf24);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
@keyframes cardPulse {
  0% { transform: translateY(0); box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(34, 211, 238, 0.1); }
  100% { transform: translateY(-5px); box-shadow: 0 25px 60px rgba(0,0,0,0.6), 0 0 40px rgba(34,211,238,0.2); }
}
.player-hero-card::after {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.05) 0%, transparent 70%);
  pointer-events: none;
}
.hero-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2rem; }
.player-main-info h2 { font-family: 'Rajdhani', sans-serif; font-size: 2.2rem; font-weight: 800; text-transform: uppercase; line-height: 1; }
.player-role-badge { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin-top: 0.25rem; }
.player-number { font-family: 'Rajdhani', sans-serif; font-size: 3rem; font-weight: 900; opacity: 0.2; line-height: 0.8; }

.hero-card-body { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: center; }
.chart-section { position: relative; }
.stats-badges-section { display: flex; flex-direction: column; gap: 0.75rem; }
.hero-badge { display: flex; align-items: center; gap: 0.75rem; background: rgba(255,255,255,0.05); padding: 0.5rem 1rem; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); }
.badge-icon { font-size: 1.2rem; }
.badge-label { font-size: 0.75rem; text-transform: uppercase; color: var(--text-secondary); flex: 1; }
.badge-value { font-family: 'Rajdhani', sans-serif; font-weight: 700; color: var(--accent); font-size: 1.2rem; }

.achievement-badge { padding: 0.4rem 0.8rem; border-radius: 8px; font-size: 0.75rem; font-weight: 700; text-align: center; text-transform: uppercase; }
.achievement-badge.gold { background: linear-gradient(135deg, #fbbf24, #b45309); color: #000; }
.achievement-badge.silver { background: linear-gradient(135deg, #94a3b8, #475569); color: #fff; }

.hero-card-footer { margin-top: 2rem; text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1rem; }
.brand-watermark { font-family: 'Rajdhani', sans-serif; font-weight: 700; letter-spacing: 2px; opacity: 0.4; font-size: 0.8rem; }

/* --- Match Center 2.0 --------------------------------------- */
.momentum-meter-container { margin-top: 1.5rem; background: var(--bg-secondary); padding: 1.25rem; border-radius: var(--radius); border: 1px solid var(--border); }
.momentum-meter-label { font-size: 0.75rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; margin-bottom: 0.75rem; display: block; }
.momentum-bar { height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; position: relative; overflow: hidden; display: flex; }
.momentum-fill-left { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent)); transition: width 1s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 0 15px rgba(34, 211, 238, 0.15); }
.momentum-fill-right { height: 100%; background: linear-gradient(90deg, var(--accent), var(--red)); transition: width 1s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 0 15px rgba(239, 68, 68, 0.3); }
.momentum-center-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: #fff; opacity: 0.5; z-index: 2; }

.predictions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.prediction-card { background: rgba(34, 211, 238, 0.05); border: 1px solid rgba(34, 211, 238, 0.1); padding: 1rem; border-radius: 12px; text-align: center; }
.pred-label { font-size: 0.7rem; color: var(--text-secondary); text-transform: uppercase; margin-bottom: 0.25rem; display: block; }
.pred-value { font-family: 'Rajdhani', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--accent); }


.premium-tabs { display: flex; gap: 1.5rem; border-bottom: 1px solid var(--border); padding: 0.5rem 0; margin-bottom: 1.5rem; }
.tab-link { color: var(--text-secondary); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 0.5rem 0.25rem; transition: 0.2s; position: relative; }
.tab-link:hover { color: var(--accent); }
.tab-link.active { color: var(--accent); }
.tab-link.active::after { content: ''; position: absolute; bottom: -0.6rem; left: 0; right: 0; height: 3px; background: var(--accent); border-radius: 2px; box-shadow: 0 0 10px rgba(34, 211, 238, 0.5); }
.htmx-indicator { opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.htmx-request .htmx-indicator { opacity: 1; }
.htmx-request.tab-link { opacity: 0.7; }

/* --- Glassmorphism Utilities --- */
.glass { background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.08); }
.glass-hover:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.15); transform: translateY(-1px); }

/* --- Premium Glassmorphism & Social Suite --- */
.glass { background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); }
.glass-hover:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.15); transform: translateY(-1px); }
.si-wa { background: #25D366 !important; }
.si-fb { background: #1877F2 !important; }
.si-tw { background: #1DA1F2 !important; }
.si-copy { background: #64748b !important; }

/* --- Premium Glassmorphism & Social Suite --- */
.glass { background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); }
.glass-hover:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.15); transform: translateY(-1px); }
.si-wa { background: #25D366 !important; }
.si-fb { background: #1877F2 !important; }
.si-tw { background: #1DA1F2 !important; }
.si-copy { background: #64748b !important; }
/* --- Hero Reel Poster Modal ---------------------------------- */
.hero-poster-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.hero-poster-content {
  background: linear-gradient(145deg, #0f172a, #1e293b);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(34, 211, 238, 0.15);
  text-align: center;
}

.poster-accent-blob {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
}

.poster-header { margin-bottom: 2rem; }
.poster-title { font-family: 'Rajdhani', sans-serif; font-size: 2.4rem; font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: 0.25rem; }
.poster-subtitle { font-size: 0.9rem; color: #22d3ee; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }

.poster-stats { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
.poster-stat-row { display: flex; justify-content: space-between; align-items: center; background: rgba(255, 255, 255, 0.05); padding: 0.75rem 1rem; border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); transition: background 0.2s; }
.poster-stat-row:hover { background: rgba(255, 255, 255, 0.08); }
.p-stat-lbl { font-size: 0.9rem; color: #94a3b8; font-weight: 500; }
.p-stat-val { font-family: 'Rajdhani', sans-serif; font-size: 1.25rem; font-weight: 700; color: #f8fafc; }

.poster-footer { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1.5rem; }
.poster-brand { font-family: 'Rajdhani', sans-serif; font-size: 1.1rem; font-weight: 700; background: linear-gradient(90deg, #22d3ee, #0891b2); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 0.5rem; }

/* Custom Radio Pills for Forms (eg. Toss selection) */
.radio-group { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.25rem; }
.radio-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  text-align: center;
  min-width: 120px;
}
.radio-pill input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-pill span {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.radio-pill:hover {
  border-color: var(--accent-dim);
  background: rgba(34, 211, 238, 0.05);
}
.radio-pill input[type="radio"]:checked + span { color: var(--accent); }
.radio-pill:has(input[type="radio"]:checked) {
  border-color: var(--accent);
  background: rgba(34, 211, 238, 0.1);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.2);
}

/* ── AI Tactical Strategist ── */
.ai-tactical-console {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
}

.ai-header {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-badge {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(34, 211, 238, 0.2));
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f8fafc;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pressure-pulse-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.pressure-svg {
  width: 100%;
  height: 60px;
  display: block;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}
