@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@600;700;800&family=DM+Mono:wght@400;500&family=DM+Sans:ital,opsz,wght@0,9..40,400..700;1,9..40,400..700&family=Instrument+Sans:wght@400;500;600&family=Manrope:wght@400;500;600;700;800&family=Outfit:wght@400..800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --accent:        #8dfa04;  /* main brand cricket emerald green */
  --accent-light:  #a8fc0d;  /* hover state, highlights */
  --accent-deep:   #05c803;  /* pressed state, gradient end */
  --on-accent:     #080b0a;  /* text on top of accent */

  --bg:            #080b0a;  /* deep matte black page background */
  --surface:       #101613;  /* cards, panels, sections */
  --surface-2:     #16201a;  /* elevated tiles, highlighted rows, active tabs */
  --input-bg:      #0a0f0c;  /* inputs, search boxes, stat boxes */

  --border:        #1f2924;  /* card and input borders, dividers */
  --border-strong: #26302a;  /* pills, outlined buttons, avatar circle */
  --border-btn:    #2c3731;  /* secondary (outline) button border */

  --text:          #eef2ee;  /* headings and main text */
  --text-muted:    #a9b4ad;  /* paragraphs, nav links, descriptions */
  --text-dim:      #7d8a82;  /* placeholders, small labels, footer */

  /* Aliases & preserved status colors */
  --panel:         var(--surface);
  --panel2:        var(--surface-2);
  --muted:         var(--text-muted);
  --line:          var(--border);
  --green:         var(--accent);
  --green2:        var(--accent-deep);
  --radius:        24px;
  --danger:        #fb7185;
  --amber:         #fbbf24;
  --blue:          #38bdf8;

  font-family: 'Instrument Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-padding-top: 84px; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: #080b0a;
  background-image: 
    radial-gradient(ellipse at 50% 15%, rgba(8, 11, 10, 0.45) 0%, rgba(8, 11, 10, 0.88) 65%, #080b0a 100%),
    linear-gradient(180deg, rgba(8, 11, 10, 0.65) 0%, rgba(8, 11, 10, 0.95) 45%, #080b0a 100%),
    url('/assets/stadium_bg.jpg');
  background-size: cover;
  background-position: top center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}
button, input, select, textarea { font: inherit; }
button, a { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button {
  background: transparent;
  color: var(--text);
  border: 0;
  cursor: pointer;
}
input, select, textarea {
  font: inherit;
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--border);
  accent-color: #b6ff00;
}
input[type="checkbox"], input[type="radio"] {
  accent-color: #b6ff00;
}

/* Typography Helpers */
.font-space { font-family: 'Space Grotesk', sans-serif; }
.font-mono { font-family: 'DM Mono', monospace; }
.eyebrow {
  font: 500 10px 'DM Mono', monospace;
  letter-spacing: .18em;
  color: var(--green);
  text-transform: uppercase;
}

/* App Shell Layout */
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar {
  border-right: 1px solid var(--line);
  background: var(--surface);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
}
.sidebar .brand-logo-img {
  width: 210px;
  height: auto;
  display: block;
}

.nav-label {
  font: 500 10px 'DM Mono', monospace;
  color: var(--text-dim);
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 0 12px;
  margin-bottom: 8px;
}

.nav { display: grid; gap: 5px; position: relative; }
.nav button {
  background: transparent;
  color: var(--muted);
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.nav button:hover {
  background: var(--surface-2);
  color: var(--text);
  transform: translateX(4px) scale(1.01);
}
.nav button:hover .nav-icon {
  display: inline-block;
  animation: iconWiggle 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes iconWiggle {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-14deg) scale(1.15); }
  50% { transform: rotate(12deg) scale(1.15); }
  75% { transform: rotate(-6deg) scale(1.08); }
  100% { transform: rotate(0deg) scale(1); }
}
.nav button.active {
  background: linear-gradient(90deg, rgba(182, 255, 0, 0.16) 0%, rgba(182, 255, 0, 0.02) 100%) !important;
  color: var(--green) !important;
  border-left: 3.5px solid #b6ff00 !important;
  border-radius: 4px 12px 12px 4px;
  box-shadow: 0 0 16px rgba(182, 255, 0, 0.18);
  transform: translateX(3px);
}
.nav-icon { display: inline-block; width: 22px; text-align: center; font-size: 16px; transition: transform 0.2s ease; }

.sidebar-bottom {
  margin-top: auto;
  border: 1px solid var(--line);
  background: var(--input-bg);
  border-radius: 16px;
  padding: 16px;
}
.sidebar-bottom strong { font-size: 12px; color: var(--text); display: block; margin-bottom: 4px; }
.sidebar-bottom p { font-size: 11px; line-height: 1.5; color: var(--muted); margin: 0 0 10px; }

/* Sticky Header */
.main { min-width: 0; display: flex; flex-direction: column; }
.app-header {
  min-height: 75px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  gap: 16px;
  background: #080b0add;
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.app-header h2 { font: 700 18px 'Space Grotesk', sans-serif; margin: 0; letter-spacing: -.02em; }
.header-actions { display: flex; align-items: center; gap: 12px; }

/* Buttons with Polished Micro-Interactions */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 11px 18px;
  font-weight: 700;
  font-size: 13px;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  user-select: none;
}
.btn:hover:not(:disabled) {
  transform: scale(1.03);
}
.btn:active:not(:disabled) {
  transform: scale(0.96) !important;
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  border: 0;
  box-shadow: 0 4px 18px rgba(182, 255, 0, 0.25);
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-light);
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(182, 255, 0, 0.5), 0 4px 14px rgba(0, 0, 0, 0.4);
}
.btn-primary:active:not(:disabled) {
  background: var(--accent-deep);
  transform: scale(0.96) !important;
}
.btn-ghost {
  border: 1px solid var(--border-btn);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}
.btn-ghost:hover:not(:disabled) {
  background: var(--surface-2);
  border-color: rgba(182, 255, 0, 0.45);
  box-shadow: 0 0 14px rgba(182, 255, 0, 0.2);
  transform: scale(1.03);
}
.btn-ghost:active:not(:disabled) {
  transform: scale(0.96) !important;
}
.btn-danger {
  background: #35171e;
  border: 1px solid #713341;
  color: #fecdd3;
}
.btn-danger:hover:not(:disabled) {
  background: #4a1f29;
  border-color: #fb7185;
  box-shadow: 0 0 16px rgba(251, 113, 133, 0.4);
  transform: scale(1.03);
}
.btn-danger:active:not(:disabled) {
  transform: scale(0.96) !important;
}
.btn:disabled, .btn[disabled] {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}
.btn-sm { padding: 8px 12px; font-size: 11.5px; border-radius: 9px; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-strong);
  color: var(--on-accent);
  background: var(--accent);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}
.badge-live {
  background: #1c2b18;
  color: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 10px var(--accent)30;
}
.badge-live .live-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 1.4s infinite;
}
@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.6; box-shadow: 0 0 0 0 rgba(141, 250, 4, 0.7); }
  70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 6px rgba(141, 250, 4, 0); }
  100% { transform: scale(0.9); opacity: 0.6; box-shadow: 0 0 0 0 rgba(141, 250, 4, 0); }
}
.badge-upcoming { background: var(--surface-2); color: var(--blue); border-color: #0284c7; }
.badge-completed { background: var(--surface-2); color: var(--text-muted); border-color: var(--border); }
.badge-freehit { background: #451a03; color: #fbbf24; border-color: #f59e0b; animation: flash-freehit 1s infinite alternate; }
@keyframes flash-freehit { 0% { opacity: 0.8; } 100% { opacity: 1; filter: drop-shadow(0 0 8px #fbbf24); } }

/* Main Content Area */
.content {
  padding: 32px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.page-head h1 {
  font: 700 32px 'Space Grotesk', sans-serif;
  letter-spacing: -.03em;
  margin: 4px 0 0;
  color: var(--text);
}
.page-head p { font-size: 13.5px; color: var(--text-muted); margin: 6px 0 0; }

/* Metrics Row */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.metric, .panel {
  border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--surface), var(--surface));
  border-radius: var(--radius);
  padding: 22px;
  min-width: 0;
  box-shadow: 0 12px 36px rgba(0,0,0,0.35);
  position: relative;
  transition: border-color .2s;
}
.metric:hover, .panel:hover { border-color: var(--border-strong); }
.metric label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-family: 'DM Mono', monospace; }
.metric strong { display: block; font: 700 32px 'Space Grotesk', sans-serif; margin: 12px 0 6px; color: var(--text); }
.metric small { color: var(--green); font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

/* Panels & Cards */
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.section-title h3 {
  font: 700 18px 'Space Grotesk', sans-serif;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--text);
}

/* Match Hero Live Card */
.match-hero-card {
  border: 1px solid var(--border);
  background: radial-gradient(ellipse at 80% 0%, #16251b 0%, var(--surface) 65%);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px var(--accent)1f;
  position: relative;
  overflow: hidden;
}
.match-hero-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--green), transparent);
}
.match-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.match-hero-teams {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.team-score-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.team-code {
  font: 700 24px 'Space Grotesk', sans-serif;
  color: var(--text);
}
.team-score-big {
  font: 700 36px 'DM Mono', monospace;
  color: var(--green);
  letter-spacing: -.03em;
}
.team-overs {
  font: 500 14px 'DM Mono', monospace;
  color: var(--text-muted);
}
.match-equation {
  font: 600 13.5px 'Instrument Sans', sans-serif;
  color: var(--amber);
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* On-Field Live Duo Box */
.onfield-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  margin-top: 18px;
}
.batter-slot, .bowler-slot {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.player-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.player-name-main {
  font: 700 15px 'Space Grotesk', sans-serif;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.striker-star { color: var(--green); font-size: 16px; }
.player-figures {
  font: 600 16px 'DM Mono', monospace;
  color: var(--text);
}
.player-sub-stats {
  font: 500 11.5px 'DM Mono', monospace;
  color: var(--text-muted);
}

/* Ball-by-Ball Ribbon Ticker */
.ball-ribbon {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0;
  margin: 14px 0;
}
.ball-chip {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 12px 'DM Mono', monospace;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  transition: transform .15s;
}
.ball-chip.run-4 {
  background: #14532d;
  border-color: #22c55e;
  color: #86efac;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}
.ball-chip.run-6 {
  background: #713f12;
  border-color: #eab308;
  color: #fef08a;
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.5);
}
.ball-chip.wicket {
  background: #4c0519;
  border-color: #f43f5e;
  color: #fda4af;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.5);
}
.ball-chip.extra {
  background: #422006;
  border-color: #f97316;
  color: #fed7aa;
}

/* Scoring Console Keypad */
.scoring-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.btn-score-run {
  min-height: 58px;
  font: 700 20px 'Space Grotesk', sans-serif;
  background: var(--surface-2);
  border: 1.5px solid var(--border-strong);
  color: var(--text);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: all .15s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.btn-score-run small {
  font: 500 9px 'DM Mono', monospace;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.btn-score-run:hover {
  background: var(--border-strong);
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--accent)22;
}
.btn-score-run:active { transform: translateY(0); }
.btn-score-run.run-four {
  border-color: #22c55e;
  color: #4ade80;
}
.btn-score-run.run-six {
  border-color: #fbbf24;
  color: #fcd34d;
}

/* Extras & Actions Bar */
.extras-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr) 1.4fr 1.2fr;
  gap: 10px;
  margin-top: 14px;
}
.btn-extra {
  padding: 12px 10px;
  font: 700 12px 'Space Grotesk', sans-serif;
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 12px;
  transition: all .15s;
}
.btn-extra:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: var(--surface-2);
}
.btn-wicket-trigger {
  background: linear-gradient(145deg, #4c0519, #2b0610);
  border: 1px solid #e11d48;
  color: #ffe4e6;
  font: 800 13px 'Space Grotesk', sans-serif;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(225, 29, 72, 0.35);
  transition: all .15s;
}
.btn-wicket-trigger:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}
.btn-undo-trigger {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font: 700 12px 'DM Mono', monospace;
  border-radius: 12px;
  transition: all .15s;
}
.btn-undo-trigger:hover {
  color: var(--green);
  border-color: var(--green);
  background: var(--surface-2);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  white-space: nowrap;
}
th {
  text-align: left;
  font: 600 10.5px 'DM Mono', monospace;
  color: var(--text-dim);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--input-bg);
}
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
tr:last-child td { border-bottom: 0; }
tr:hover td { background: var(--surface-2); }

/* Forms & Inputs */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.span-2 { grid-column: span 2; }
.field { display: grid; gap: 7px; }
.field > label {
  font-size: 11.5px;
  color: var(--text);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
}
.field > input, .field > select, .field > textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 13px 14px;
  outline: none;
  font-size: 13.5px;
  transition: border-color .15s, box-shadow .15s;
}
.field > input:focus, .field > select:focus, .field > textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--accent)22;
}

/* Modals - Scale + Fade with Backdrop Blur */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  animation: backdropFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.modal {
  width: min(100%, 620px);
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--border-strong), 0 0 35px rgba(182, 255, 0, 0.1);
  position: relative;
  overflow: hidden;
  animation: modalScaleIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.modal-head h3 { font: 700 18px 'Space Grotesk', sans-serif; margin: 0; color: var(--text); }
.modal-close {
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  border: 0;
  padding: 4px;
  line-height: 1;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.15s ease;
}
.modal-close:hover { color: var(--text); transform: scale(1.15) rotate(90deg); }
.modal-close:active { transform: scale(0.9); }
.modal-body {
  padding: 24px;
  overflow-y: auto;
}
.modal-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: var(--surface);
}

/* Toasts - Slide in from top-right with auto-dismiss exit */
#toast-root {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  position: relative !important;
  background: var(--surface-2);
  border: 1px solid var(--green);
  color: var(--text);
  border-radius: 14px;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7), 0 0 24px rgba(182, 255, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: toastSlideInTopRight 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}
.toast.error {
  border-color: #e11d48;
  background: #2b0610;
  color: #ffe4e6;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7), 0 0 24px rgba(225, 29, 72, 0.35);
}
.toast.toast-dismissing {
  animation: toastSlideOutTopRight 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

/* Commentary Feed */
.comm-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.comm-item:last-child { border-bottom: 0; }
.comm-ball-num {
  font: 700 12.5px 'DM Mono', monospace;
  color: var(--green);
  min-width: 44px;
  flex-shrink: 0;
}
.comm-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}
.comm-text strong { color: var(--text); }

/* Broadcast Overlay Control Cards */
.overlay-preview-card {
  border: 1px solid var(--border);
  background: var(--input-bg);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.overlay-preview-card h4 {
  font: 700 15px 'Space Grotesk', sans-serif;
  margin: 0 0 4px;
  color: var(--text);
}
.overlay-preview-card p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* Tabs */
.tabs-bar {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  overflow-x: auto;
}
.tab-btn {
  background: transparent;
  color: var(--text-muted);
  font: 700 13px 'Instrument Sans', sans-serif;
  padding: 10px 16px;
  border-bottom: 2px solid transparent;
  transition: all .15s;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

/* Mobile Responsiveness */
.mobile-nav-bar { display: none; }
@media(max-width: 1000px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content { padding: 20px; }
  .app-header { padding: 14px 20px; }
  .scoring-grid { grid-template-columns: repeat(3, 1fr); }
  .extras-bar { grid-template-columns: repeat(3, 1fr); }
  .onfield-box { grid-template-columns: 1fr; }

  /* Mobile Bottom Navigation Bar */
  .mobile-nav-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: #101613ee;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    justify-content: space-around;
    padding: 8px 10px max(8px, env(safe-area-inset-bottom, 8px));
  }
  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: transparent;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
  }
  .mobile-nav-item.active { color: var(--green); }
  .mobile-nav-item span { font-size: 16px; }
  body { padding-bottom: 70px; }
}

@media(max-width: 560px) {
  .metrics { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .scoring-grid { grid-template-columns: repeat(3, 1fr); }
  .extras-bar { grid-template-columns: repeat(2, 1fr); }
}

/* ========================================================
   PUBLIC LANDING PAGE & FEATURE SHOWCASE (WITHOUT LOGIN)
   ======================================================== */
.landing-wrap {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========================================================
   GYMLEDGER-GRADE SITE HEADER & NAVBAR
   ======================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  z-index: 100;
  background: rgba(8, 11, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #1c2521;
  box-sizing: border-box;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  gap: 20px;
}
.site-header .brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.site-header .brand:hover {
  opacity: 0.92;
  transform: translateY(-0.5px);
}
.site-header .brand-logo {
  height: 40px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.6vw, 24px);
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  min-width: 0;
  flex-shrink: 1;
}
.site-nav-link {
  font-family: 'DM Sans', 'Instrument Sans', system-ui, sans-serif;
  font-size: clamp(12.5px, 1.05vw, 14px);
  font-weight: 500;
  color: #c3cdc6;
  text-decoration: none;
  padding: 8px 4px;
  position: relative;
  transition: color 0.18s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-nav-link:hover {
  color: #ffffff;
}
.site-nav-link.active {
  color: #ffffff;
  font-weight: 600;
}
.site-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.site-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.site-login-btn {
  background: var(--accent) !important;
  color: var(--on-accent) !important;
  font-family: 'DM Sans', 'Instrument Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.15s ease;
  box-shadow: 0 4px 18px rgba(141, 250, 4, 0.25);
  white-space: nowrap;
}
.site-login-btn:hover {
  transform: translateY(-1.5px);
  filter: brightness(1.08);
  box-shadow: 0 6px 22px rgba(141, 250, 4, 0.38);
}
.site-login-btn:active {
  transform: translateY(0);
}
.site-hamburger {
  display: none;
  width: 40px;
  height: 40px;
  padding: 9px 8px;
  background: transparent;
  border: 1px solid #1c2521;
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  box-sizing: border-box;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.site-hamburger:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #2c3731;
}
.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #c3cdc6;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, background-color 0.2s ease;
}
.site-hamburger.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
  background-color: var(--accent);
}
.site-hamburger.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.site-hamburger.is-active .hamburger-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  background-color: var(--accent);
}
.site-mobile-panel {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  height: calc(100vh - 72px);
  height: calc(100dvh - 72px);
  background: rgba(8, 11, 10, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 99;
  overflow-y: auto;
  border-top: 1px solid #1c2521;
  box-sizing: border-box;
  padding: 24px 20px 48px;
}
.site-mobile-panel.open {
  display: block;
}
.mobile-panel-inner {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-section-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: .12em;
  padding: 0 4px;
}
.mobile-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(16, 22, 19, 0.6);
  border: 1px solid rgba(28, 37, 33, 0.8);
  color: #c3cdc6;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}
.mobile-nav-row:hover {
  background: rgba(141, 250, 4, 0.08);
  border-color: rgba(141, 250, 4, 0.3);
  color: #ffffff;
}
.mobile-row-arrow {
  color: var(--text-dim);
  font-size: 16px;
}
.mobile-login-btn {
  width: 100%;
  min-height: 48px;
  background: var(--accent) !important;
  color: var(--on-accent) !important;
  font-family: 'DM Sans', 'Instrument Sans', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(141, 250, 4, 0.25);
}

/* ========================================================
   ASYMMETRIC HERO SECTION (GYMLEDGER LAYOUT LANGUAGE)
   ======================================================== */
.hero {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  background: radial-gradient(ellipse at 80% 20%, rgba(20, 50, 32, 0.32) 0%, transparent 60%);
  display: flex;
  align-items: center;
  padding: clamp(24px, 3.5vh, 44px) 0 32px;
}
.hero-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 3.5vw, 56px);
  position: relative;
  z-index: 2;
}
.hero-content {
  flex: 1 1 48%;
  max-width: 580px;
  min-width: 0;
  text-align: left;
}
.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(22, 32, 26, 0.9);
  border: 1px solid rgba(141, 250, 4, 0.25);
  color: var(--green);
  padding: 5px 12px;
  border-radius: 999px;
  font: 600 10.5px 'DM Mono', monospace;
  margin-bottom: 12px;
  box-shadow: 0 0 15px rgba(141, 250, 4, 0.15);
  letter-spacing: .08em;
}
.hero h1 {
  font: 700 clamp(34px, 3.8vw, 52px)/1.06 'Space Grotesk', sans-serif;
  letter-spacing: -0.04em;
  margin: 0 0 12px;
  color: var(--text);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
}
.hero h1 em {
  color: var(--green);
  font-style: normal;
}
.hero p {
  color: var(--text-muted);
  font-size: clamp(14px, 1.25vw, 16px);
  line-height: 1.7;
  margin: 0 0 18px;
  max-width: 580px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.hero-secondary-row {
  display: contents;
}
.proof {
  display: flex;
  gap: 8px 12px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
}
.proof span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 22, 19, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 10px;
  border-radius: 8px;
}

/* ========================================================
   RIGHT COLUMN: REALISTIC CRICKET PRODUCT VISUAL & FLOATING CARDS
   ======================================================== */
.hero-visual {
  flex: 1 1 52%;
  max-width: 620px;
  min-width: 0;
  position: relative;
}

/* Tasteful Floating Badges */
.floating-badge {
  position: absolute;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(12, 17, 14, 0.94);
  border: 1px solid rgba(141, 250, 4, 0.32);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 8px 14px;
  border-radius: 14px;
  box-shadow: 0 14px 35px rgba(0,0,0,0.65), 0 0 20px rgba(141, 250, 4, 0.12);
  pointer-events: none;
  animation: floatSubtle 4s ease-in-out infinite alternate;
}
@keyframes floatSubtle {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-6px); }
}
.badge-live-match {
  top: -16px;
  right: -10px;
}
.badge-scorer-connected {
  bottom: 24px;
  left: -20px;
  animation-delay: -2s;
}
.badge-stream-ready {
  bottom: -16px;
  right: 14px;
  animation-delay: -1s;
  border-color: rgba(56, 189, 248, 0.38);
}
.floating-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-size: 13px;
}
.floating-badge-text {
  display: flex;
  flex-direction: column;
}
.floating-badge-text strong {
  font: 700 11px 'Space Grotesk', sans-serif;
  color: var(--text);
  letter-spacing: .02em;
}
.floating-badge-text span {
  font: 500 9.5px 'DM Mono', monospace;
  color: var(--green);
}
.badge-stream-ready .floating-badge-text span {
  color: var(--blue);
}

/* Realistic Cricket Product Mockup Card */
.scoring-product-mockup {
  background: rgba(16, 22, 19, 0.88);
  border: 1px solid rgba(141, 250, 4, 0.22);
  border-radius: 22px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.85), 0 0 45px rgba(141, 250, 4, 0.12);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.scoring-product-mockup:hover {
  border-color: rgba(141, 250, 4, 0.4);
}

/* Window Bar */
.mockup-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(8, 11, 10, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mockup-window-dots {
  display: flex;
  gap: 6px;
}
.mockup-window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.mockup-window-title {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 340px;
}
.mockup-window-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(22, 32, 26, 0.9);
  border: 1px solid rgba(141, 250, 4, 0.3);
  color: var(--green);
  font: 700 9.5px 'DM Mono', monospace;
  padding: 2px 7px;
  border-radius: 6px;
}

/* Score Header */
.mockup-score-header {
  padding: 12px 18px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.mockup-team-block {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mockup-team-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #16251b, #0d1712);
  border: 1.5px solid var(--green);
  color: var(--green);
  font: 800 13px 'Space Grotesk', sans-serif;
  display: grid;
  place-items: center;
}
.mockup-team-name {
  font: 700 15.5px 'Space Grotesk', sans-serif;
  color: var(--text);
  letter-spacing: -.02em;
}
.mockup-subtext {
  font-size: 10.5px;
  color: var(--text-muted);
}
.mockup-score-figures {
  text-align: right;
}
.mockup-runs-wickets {
  font: 800 27px/1 'Space Grotesk', sans-serif;
  color: var(--green);
  letter-spacing: -.03em;
}
.mockup-overs-text {
  font: 600 11px 'DM Mono', monospace;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Equation Bar */
.mockup-equation-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  margin: 0 14px 8px;
  background: rgba(10, 15, 12, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 9px;
  font: 500 11px 'DM Mono', monospace;
  color: var(--text-muted);
}

/* Stats Grid */
.mockup-stats-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 8px;
  padding: 0 14px 8px;
}
.mockup-box {
  background: rgba(10, 15, 12, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
}
.mockup-box-head {
  display: flex;
  justify-content: space-between;
  font: 700 9px 'DM Mono', monospace;
  color: var(--text-dim);
  letter-spacing: .08em;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.mockup-player-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  padding: 3px 0;
}
.player-label-col {
  display: flex;
  align-items: center;
  gap: 5px;
}
.pill-onstrike {
  font: 700 8px 'DM Mono', monospace;
  background: var(--accent);
  color: var(--on-accent);
  padding: 1px 4px;
  border-radius: 4px;
}
.player-stat-col {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
}
.player-stat-col small {
  color: var(--text-muted);
}
.mockup-recent-ribbon {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.mockup-ribbon-label {
  font: 700 9px 'DM Mono', monospace;
  color: var(--text-dim);
  margin-right: 2px;
}
.mini-ball {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font: 700 10px 'DM Mono', monospace;
  color: var(--text);
}
.mini-ball.four {
  background: rgba(141, 250, 4, 0.2);
  border-color: var(--green);
  color: var(--green);
}
.mini-ball.six {
  background: rgba(251, 191, 36, 0.2);
  border-color: var(--amber);
  color: var(--amber);
}
.mini-ball.wicket {
  background: rgba(251, 113, 133, 0.25);
  border-color: var(--danger);
  color: var(--danger);
}
.mini-ball.current {
  border: 1.5px solid var(--green);
}

/* Tactile Scoring Keypad Dock */
.mockup-keypad-dock {
  background: rgba(8, 11, 10, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 14px 10px;
}
.dock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font: 700 9px 'DM Mono', monospace;
  color: var(--text-dim);
  letter-spacing: .08em;
}
.dock-freehit-pill {
  color: var(--green);
  background: rgba(22, 32, 26, 0.9);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(141, 250, 4, 0.2);
}
.dock-buttons-row {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
}
.mockup-key {
  height: 27px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: 700 11.5px 'DM Mono', monospace;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .1s, background .1s;
}
.mockup-key:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.mockup-key.four {
  color: var(--green);
  border-color: rgba(141, 250, 4, 0.3);
}
.mockup-key.six {
  color: var(--amber);
  border-color: rgba(251, 191, 36, 0.3);
}
.mockup-key.wicket {
  color: var(--danger);
  border-color: rgba(251, 113, 133, 0.3);
}
.mockup-key.undo {
  font-size: 9.5px;
  grid-column: span 1;
  color: var(--text-muted);
}

/* Responsive Breakpoints for Asymmetric Hero */
/* Responsive Breakpoints for Asymmetric Hero & Mobile Layout */
@media (max-width: 1023px) {
  .site-nav {
    display: none;
  }
  .site-hamburger {
    display: flex;
  }
  .hero-inner {
    flex-direction: column;
    gap: 36px;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .proof {
    justify-content: center;
  }
  .hero-visual {
    max-width: 100%;
    width: 100%;
  }
  .floating-badge {
    display: none !important;
  }
}

@media (max-width: 768px) {
  /* Consistent 16px Side Padding & Touch Targets */
  .landing-wrap {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .site-header {
    padding: 10px 16px;
    height: 64px;
  }
  .site-header-inner {
    padding: 0;
  }
  .site-hamburger {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  .site-login-btn {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 13px;
  }

  /* Full-Screen Slide-in Drawer with 48px Tap Targets */
  .site-mobile-panel {
    top: 0;
    height: 100vh;
    height: 100dvh;
    z-index: 200;
    padding: 20px 16px 36px;
  }
  .mobile-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .mobile-close-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text);
    font-size: 18px;
    display: grid;
    place-items: center;
    cursor: pointer;
  }
  .mobile-panel-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .mobile-nav-row {
    min-height: 48px;
    height: 48px;
    padding: 0 16px;
    border-radius: 14px;
    background: rgba(16, 22, 19, 0.85);
    border: 1px solid rgba(141, 250, 4, 0.14);
    color: #e2e8e5;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-nav-row span:first-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-signin-row {
    min-height: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
  }

  /* Hero Section: Order, Spacing, and ~1.5 Screens Fit */
  .hero {
    padding: 24px 0 28px !important;
  }
  .hero-inner {
    padding: 0 16px !important;
    gap: 20px !important;
    flex-direction: column !important;
  }
  .hero-content {
    max-width: 100% !important;
    text-align: left !important;
  }
  .hero h1 {
    font-size: clamp(32px, 8vw, 38px) !important;
    line-height: 1.08 !important;
    margin: 0 0 12px !important;
  }
  .hero p {
    font-size: clamp(15px, 4vw, 16px) !important;
    line-height: 1.5 !important;
    max-width: 100% !important;
    margin: 0 0 16px !important;
  }
  .hero-actions {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
  }
  .hero-btn-primary {
    width: 100% !important;
    min-height: 48px !important;
    justify-content: center !important;
    font-size: 15px !important;
  }
  .hero-secondary-row {
    display: flex !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .hero-secondary-row .hero-sec-btn {
    flex: 1 1 0 !important;
    width: 50% !important;
    min-height: 44px !important;
    padding: 10px 8px !important;
    font-size: 13px !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
  }
  /* 2x2 Badges Grid */
  .proof {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    margin-bottom: 14px !important;
  }
  .proof span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    font-size: 11px !important;
    padding: 6px 8px !important;
    min-height: 36px !important;
    border-radius: 8px !important;
    background: rgba(16, 22, 19, 0.75) !important;
    white-space: normal !important;
  }
  /* Hide Floating Badges & Keypad Console on Mobile */
  .floating-badge {
    display: none !important;
  }
  .mockup-keypad-dock {
    display: none !important;
  }

  /* Compact Match Preview Card (Reduced inner padding) */
  .hero-visual {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  .scoring-product-mockup {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75), 0 0 16px rgba(141, 250, 4, 0.1) !important;
  }
  .mockup-window-bar {
    padding: 6px 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  .mockup-window-dots {
    display: none !important;
  }
  .mockup-window-title {
    max-width: calc(100% - 100px) !important;
    font-size: 10px !important;
  }
  .mockup-window-tag {
    font-size: 8.5px !important;
    padding: 2px 6px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  .mockup-score-header {
    padding: 6px 10px 4px !important;
    gap: 4px !important;
  }
  .mockup-team-avatar {
    width: 26px !important;
    height: 26px !important;
    font-size: 10px !important;
  }
  .mockup-team-name {
    font-size: 13px !important;
  }
  .mockup-runs-wickets {
    font-size: 18px !important;
  }
  .mockup-overs-text {
    font-size: 9.5px !important;
  }
  .mockup-equation-bar {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2px 6px !important;
    padding: 4px 8px !important;
    margin: 0 8px 4px !important;
    font-size: 9.5px !important;
  }
  .mockup-stats-grid {
    grid-template-columns: 1fr !important;
    gap: 4px !important;
    padding: 0 8px 6px !important;
  }
  .mockup-box {
    padding: 5px 8px !important;
    border-radius: 8px !important;
  }
  .mockup-player-row {
    padding: 1px 0 !important;
    font-size: 10px !important;
  }
  .mockup-recent-ribbon {
    margin-top: 4px !important;
    padding-top: 3px !important;
    gap: 4px !important;
  }
  .mini-ball {
    width: 17px !important;
    height: 17px !important;
    font-size: 8.5px !important;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 10px 16px;
  }
  .brand-logo {
    height: 34px !important;
  }
  .site-login-btn {
    padding: 8px 12px;
    font-size: 12.5px;
  }
  .hero h1 {
    font-size: clamp(32px, 8.5vw, 38px);
  }
  .mockup-window-title {
    max-width: 140px;
  }
  .proof span {
    font-size: 10px;
    padding: 6px 8px;
  }
}

/* Section Head */
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}
.section-head h2 {
  font: 700 clamp(28px, 4vw, 42px) 'Space Grotesk', sans-serif;
  letter-spacing: -.03em;
  margin: 10px 0 14px;
  color: var(--text);
}
.section-head p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* Features Grid (6 Cards) */
.features-section {
  padding: 84px 24px;
  background: rgba(8, 11, 10, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(141, 250, 4, 0.12);
  border-bottom: 1px solid rgba(141, 250, 4, 0.12);
}
.features-wrap {
  max-width: 1200px;
  margin: 0 auto;
}
.features-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card-v2 {
  border: 1px solid rgba(141, 250, 4, 0.14);
  background: rgba(16, 22, 19, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.feature-card-v2:hover {
  border-color: rgba(141, 250, 4, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.6), 0 0 25px rgba(141, 250, 4, 0.15);
}
.feature-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.feature-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(22, 32, 26, 0.9);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 22px;
  border: 1px solid rgba(141, 250, 4, 0.2);
}
.feature-card-tag {
  font: 600 10px 'DM Mono', monospace;
  color: var(--green);
  background: rgba(22, 32, 26, 0.9);
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid rgba(141, 250, 4, 0.25);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.feature-card-v2 h3 {
  font: 700 19px 'Space Grotesk', sans-serif;
  margin: 0;
  letter-spacing: -.02em;
  color: var(--text);
}
.feature-card-v2 p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}
.feature-card-badge {
  font: 600 11px 'DM Mono', monospace;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.feature-card-badge::before {
  content: "●";
  color: var(--green);
  font-size: 8px;
}

/* How It Works (3 Steps) */
.how-it-works-section {
  padding: 84px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.steps-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 22, 19, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 22px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: transform .2s, border-color .2s;
}
.step-card:hover {
  border-color: rgba(141, 250, 4, 0.35);
  transform: translateY(-2px);
}
.step-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(8, 11, 10, 0.85);
  border: 1.5px solid var(--green);
  color: var(--green);
  font: 700 16px 'DM Mono', monospace;
  display: grid;
  place-items: center;
}
.step-card h3 {
  font: 700 19px 'Space Grotesk', sans-serif;
  margin: 0;
  letter-spacing: -.02em;
  color: var(--text);
}
.step-card p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}
.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(22, 32, 26, 0.9);
  border: 1px solid rgba(141, 250, 4, 0.25);
  color: var(--green);
  padding: 4px 10px;
  border-radius: 8px;
  font: 600 11px 'DM Mono', monospace;
  width: fit-content;
  margin-top: auto;
}

/* Overlays Showcase Section */
.overlays-section {
  padding: 84px 24px;
  background: rgba(8, 11, 10, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(141, 250, 4, 0.12);
  border-bottom: 1px solid rgba(141, 250, 4, 0.12);
}
.overlay-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.overlay-card-v2 {
  border: 1px solid rgba(141, 250, 4, 0.14);
  background: rgba(16, 22, 19, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
/* Dots for carousels (hidden on desktop) */
.carousel-dots {
  display: none;
}
.step-desc-short {
  display: none;
}
.step-desc-full {
  display: block;
}
.overlay-desc-short {
  display: none;
}
.overlay-desc-full {
  display: block;
}
.overlay-url-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(8, 11, 10, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 6px 12px;
  margin: 6px 0 12px;
  overflow: hidden;
}
.overlay-url-text {
  font-size: 11.5px;
  color: var(--text-muted);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  flex: 1;
}
.overlay-url-text::-webkit-scrollbar {
  display: none;
}
.overlay-copy-btn {
  background: rgba(141, 250, 4, 0.12);
  border: 1px solid rgba(141, 250, 4, 0.3);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.overlay-copy-btn:hover {
  background: rgba(141, 250, 4, 0.25);
  color: #ffffff;
}
.overlay-btn-row {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

/* Overlay Mockup Graphics */
.overlay-mockup-graphic {
  width: 100%;
  height: 56px;
  background: radial-gradient(circle at 50% 50%, rgba(20, 30, 24, 0.9), rgba(8, 11, 10, 0.95));
  border: 1px solid rgba(141, 250, 4, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 6px;
}
.mock-lt-bar {
  width: 90%;
  background: rgba(12, 18, 15, 0.95);
  border: 1px solid rgba(141, 250, 4, 0.35);
  border-left: 3px solid var(--green);
  border-radius: 5px;
  padding: 3px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.mock-lt-team {
  font: 700 11px 'Space Grotesk', sans-serif;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 4px;
}
.mock-lt-target {
  font: 500 9px 'DM Mono', monospace;
  color: var(--text-muted);
}
.mock-lt-badge {
  font: 700 8px 'DM Mono', monospace;
  background: rgba(141, 250, 4, 0.15);
  color: var(--green);
  padding: 1px 4px;
  border-radius: 3px;
}
.mock-bug-box {
  background: rgba(12, 18, 15, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-top: 2px solid var(--blue);
  border-radius: 5px;
  padding: 3px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.mock-bug-top {
  font: 700 9px 'DM Mono', monospace;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
}
.mock-bug-score {
  font: 800 12px 'Space Grotesk', sans-serif;
  color: var(--green);
}
.cta-secondary-row {
  display: contents;
}
.footer-links-group {
  display: contents;
}

/* ========================================================
   OBS BROADCAST OVERLAY STUDIO & CONTROL CENTER
   ======================================================== */
.studio-container {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 32px;
}
.studio-card {
  background: rgba(14, 20, 17, 0.85);
  border: 1px solid rgba(141, 250, 4, 0.16);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.studio-controls-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: flex-start;
}
@media (max-width: 900px) {
  .studio-controls-grid { grid-template-columns: 1fr; }
}
.studio-section-title {
  font: 800 13px 'Space Grotesk', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.studio-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.studio-layout-btn {
  background: rgba(22, 32, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 10px;
  font: 700 12.5px 'Space Grotesk', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.studio-layout-btn:hover {
  background: rgba(141, 250, 4, 0.1);
  border-color: rgba(141, 250, 4, 0.3);
  color: #ffffff;
}
.studio-layout-btn.active {
  background: rgba(141, 250, 4, 0.18);
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 15px rgba(141, 250, 4, 0.25);
}
.studio-theme-btn {
  background: rgba(22, 32, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 8px;
  font: 700 12px 'Space Grotesk', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.studio-theme-btn .theme-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 6px currentColor;
}
.studio-theme-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
}
.studio-theme-btn.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

/* Simulated 16:9 Broadcast Monitor */
.studio-preview-box {
  background: radial-gradient(circle at 50% 50%, #0d1e15, #060907);
  border: 1.5px solid rgba(141, 250, 4, 0.25);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), inset 0 0 40px rgba(0, 0, 0, 0.7);
  aspect-ratio: 16 / 9;
  width: 100%;
}
.studio-preview-header {
  position: absolute;
  top: 10px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}
.studio-preview-badge {
  font: 800 10px 'Space Grotesk', sans-serif;
  letter-spacing: .1em;
  background: rgba(8, 11, 10, 0.85);
  border: 1px solid rgba(141, 250, 4, 0.3);
  color: var(--green);
  padding: 3px 8px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
}
.studio-preview-frame {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  pointer-events: auto;
}

/* Stinger Test Station */
.studio-stingers-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.studio-stinger-btn {
  font: 700 11.5px 'Space Grotesk', sans-serif;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(20, 28, 23, 0.7);
  color: var(--text);
}
.studio-stinger-btn:hover {
  transform: translateY(-1px);
  color: #ffffff;
}
.studio-stinger-btn.w { border-color: rgba(244, 63, 94, 0.5); color: #fda4af; }
.studio-stinger-btn.w:hover { background: rgba(244, 63, 94, 0.2); }
.studio-stinger-btn.four { border-color: rgba(34, 197, 94, 0.5); color: #86efac; }
.studio-stinger-btn.four:hover { background: rgba(34, 197, 94, 0.2); }
.studio-stinger-btn.six { border-color: rgba(234, 179, 8, 0.5); color: #fef08a; }
.studio-stinger-btn.six:hover { background: rgba(234, 179, 8, 0.2); }
.studio-stinger-btn.milestone { border-color: rgba(56, 189, 248, 0.5); color: #7dd3fc; }
.studio-stinger-btn.milestone:hover { background: rgba(56, 189, 248, 0.2); }

/* Quick Catalog Grid for Overlays */
.studio-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.studio-overlay-card {
  background: rgba(14, 20, 17, 0.85);
  border: 1px solid rgba(141, 250, 4, 0.14);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
}
.studio-overlay-card:hover {
  border-color: rgba(141, 250, 4, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(141, 250, 4, 0.15);
}
.studio-overlay-card h4 {
  font: 800 16px 'Space Grotesk', sans-serif;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.studio-overlay-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
  flex: 1;
}


/* Public Live Spectator Feed Section */
.public-feed-section {
  padding: 84px 24px;
  background: rgba(8, 11, 10, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(141, 250, 4, 0.12);
  border-bottom: 1px solid rgba(141, 250, 4, 0.12);
}
.public-feed-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 30px;
}
.feed-match-card {
  border: 1px solid rgba(141, 250, 4, 0.16);
  background: rgba(16, 22, 19, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.feed-match-card:hover {
  border-color: rgba(141, 250, 4, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.6), 0 0 25px rgba(141, 250, 4, 0.12);
}
.feed-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.feed-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 700 10px 'DM Mono', monospace;
  color: var(--green);
  background: rgba(141, 250, 4, 0.12);
  border: 1px solid rgba(141, 250, 4, 0.3);
  padding: 2px 7px;
  border-radius: 6px;
}
.feed-final-pill {
  font: 700 10px 'DM Mono', monospace;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 7px;
  border-radius: 6px;
}
.feed-format-tag {
  color: var(--text-muted);
  font-size: 11px;
}
.feed-teams-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.feed-team-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.feed-team-line strong {
  color: var(--text);
  font-weight: 700;
}
.feed-team-muted {
  color: var(--text-muted);
}
.feed-team-score {
  font-family: 'DM Mono', monospace;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}
.feed-team-muted .feed-team-score {
  color: var(--text-muted);
  font-weight: 500;
}
.feed-card-status {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
}
.feed-status-highlight {
  color: var(--amber);
  font-weight: 600;
}
.feed-status-win {
  color: var(--green);
  font-weight: 600;
}
.public-feed-action {
  display: flex;
  justify-content: center;
}
.feed-view-all-btn {
  padding: 12px 28px;
  font-size: 14px;
  border-color: rgba(141, 250, 4, 0.35);
  color: var(--green);
}

/* Mobile Sticky Bottom CTA Bar (hidden on desktop) */
.mobile-sticky-cta {
  display: none;
}

/* Smooth Scrolling & Section Animation */
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: no-preference) {
  .landing-section-fade {
    animation: sectionFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  @keyframes sectionFadeUp {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.faq-plus-icon {
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(141, 250, 4, 0.08);
  border: 1px solid rgba(141, 250, 4, 0.25);
  display: grid;
  place-items: center;
  line-height: 1;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.faq-accordion-item.active .faq-plus-icon {
  background: rgba(141, 250, 4, 0.2);
  color: #ffffff;
}

/* FAQ Section */
.faq-section {
  padding: 80px 24px;
  background: rgba(8, 11, 10, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(141, 250, 4, 0.12);
  border-bottom: 1px solid rgba(141, 250, 4, 0.12);
}
.faq-wrap {
  max-width: 900px;
  margin: 0 auto;
}
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.faq-accordion-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 22, 19, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .2s ease, background-color .2s ease;
}
.faq-accordion-item:hover, .faq-accordion-item.active {
  border-color: rgba(141, 250, 4, 0.35);
  background: rgba(22, 32, 26, 0.85);
}
.faq-accordion-header {
  width: 100%;
  min-height: 52px;
  padding: 16px 20px;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font: 700 16px 'Space Grotesk', sans-serif;
  text-align: left;
  cursor: pointer;
}
.faq-accordion-header span:first-child::before {
  content: "Q. ";
  color: var(--green);
  font-family: 'DM Mono', monospace;
  margin-right: 4px;
}
.faq-chevron {
  font-size: 16px;
  color: var(--green);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(141, 250, 4, 0.08);
}
.faq-accordion-item.active .faq-chevron {
  transform: rotate(180deg);
  background: rgba(141, 250, 4, 0.2);
}
.faq-accordion-body {
  display: none;
  padding: 0 20px 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}
.faq-accordion-item.active .faq-accordion-body {
  display: block;
}
.faq-accordion-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

/* Final CTA Banner */
.cta-banner-section {
  max-width: 1100px;
  margin: 70px auto;
  padding: 0 24px;
  width: 100%;
}
.cta-banner-box {
  background: rgba(16, 22, 19, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(141, 250, 4, 0.25);
  border-radius: 26px;
  padding: 50px 36px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 40px rgba(141, 250, 4, 0.15);
}
.cta-banner-box h2 {
  font: 700 clamp(28px, 4vw, 42px) 'Space Grotesk', sans-serif;
  letter-spacing: -.04em;
  margin: 0 0 14px;
  color: var(--text);
}
.cta-banner-box p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.cta-banner-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Multi-Column Site Footer */
.site-footer-v2 {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 60px 24px 30px;
  margin-top: 60px;
}
.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1.1fr;
  gap: 40px;
}
.footer-col h4 {
  font: 700 12px 'DM Mono', monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 18px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.footer-col a {
  color: var(--text-muted);
  font-size: 13px;
  transition: color .15s;
}
.footer-col a:hover {
  color: var(--green);
}
.footer-brand-p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 14px 0;
}
.site-footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--text-dim);
}

@media(max-width: 1050px) {
  .features-grid-6 { grid-template-columns: repeat(2, 1fr); }
  .steps-grid-3 { grid-template-columns: 1fr; gap: 18px; }
  .site-footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media(max-width: 768px) {
  /* Safety Net: Zero Horizontal Page Overflow */
  html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Requirement 1 & 2: Every section wrapper and container bounded to 100% width with min-width: 0 */
  #app,
  .landing-container,
  .hero,
  .features-section,
  .how-it-works-section,
  .overlays-section,
  .public-feed-section,
  .faq-section,
  .cta-banner-section,
  .site-footer-v2,
  .features-wrap,
  .faq-wrap,
  .cta-banner-wrap,
  .site-header {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: clip !important;
    box-sizing: border-box !important;
  }

  /* Global Section Vertical Spacing */
  .hero,
  .how-it-works-section,
  .public-feed-section,
  .faq-section,
  .cta-banner-section {
    padding: 36px 16px !important;
    margin: 0 auto !important;
  }

  /* Sections with full-width carousels/grids use 0 horizontal padding so tracks handle 16px padding */
  .features-section,
  .overlays-section {
    padding: 36px 0 !important;
    margin: 0 auto !important;
  }

  /* Requirement 5: Section Headings, Labels, and Paragraphs as Centered Block Elements with 16px padding */
  .section-head {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    text-align: center !important;
    padding: 0 16px !important;
    margin: 0 auto 18px !important;
  }
  .section-head .eyebrow,
  .section-head h2,
  .section-head p {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    text-align: center !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
  .section-head h2 {
    font-size: clamp(22px, 5.5vw, 28px) !important;
    margin: 4px 0 6px !important;
  }
  .section-head p {
    font-size: clamp(14px, 3.8vw, 15px) !important;
    line-height: 1.45 !important;
  }

  /* Consistent Mobile Card Styles: rounded 14px, subtle green border, dark background */
  .feature-card-v2,
  .overlay-card-v2,
  .feed-match-card,
  .faq-accordion-item,
  .cta-banner-box {
    border-radius: 14px !important;
    border: 1px solid rgba(141, 250, 4, 0.16) !important;
    background: rgba(16, 22, 19, 0.88) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }

  /* Body text typography */
  .hero p,
  .overlay-card-v2 p,
  .faq-accordion-body p,
  .cta-banner-box p,
  .footer-brand-p {
    font-size: clamp(14px, 3.8vw, 15px) !important;
    line-height: 1.45 !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  /* Requirement 9: Features 2-column compact grid using repeat(2, minmax(0, 1fr)) */
  .features-grid-6 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    padding: 0 16px !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: visible !important;
  }
  .feature-card-v2 {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 14px !important;
    border-radius: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    cursor: pointer !important;
    user-select: none !important;
    transition: all 0.2s ease !important;
  }
  .feature-card-tag,
  .feature-card-badge {
    display: none !important;
  }
  .feature-card-top {
    margin-bottom: 8px !important;
    width: 100% !important;
    display: flex !important;
  }
  .feature-icon-v2 {
    width: 32px !important;
    height: 32px !important;
    font-size: 15px !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
  }
  .feature-card-v2 h3 {
    font-size: 13.5px !important;
    line-height: 1.3 !important;
    margin: 0 0 4px !important;
    color: var(--text) !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    max-width: 100% !important;
  }
  .feature-card-v2 p {
    font-size: 11.5px !important;
    line-height: 1.35 !important;
    color: var(--text-muted) !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }
  .feature-card-v2.expanded p {
    display: block !important;
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
  }
  .feature-card-v2.expanded {
    border-color: rgba(141, 250, 4, 0.45) !important;
    background: rgba(22, 32, 26, 0.95) !important;
  }
  #features-dots {
    display: none !important;
  }

  /* Requirement 3: How It Works Compact Vertical Timeline */
  .steps-grid-3.timeline-track {
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    gap: 16px !important;
    padding-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .steps-grid-3.timeline-track::before {
    content: '' !important;
    position: absolute !important;
    top: 13px !important;
    bottom: 13px !important;
    left: 12px !important;
    width: 1.5px !important;
    background: rgba(141, 250, 4, 0.28) !important;
    z-index: 1 !important;
  }
  .step-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 2 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .step-number {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    border-radius: 50% !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #0d1410 !important;
    color: var(--green) !important;
    border: 1.5px solid var(--green) !important;
    box-shadow: 0 0 8px rgba(141, 250, 4, 0.25) !important;
    flex-shrink: 0 !important;
    margin-top: 1px !important;
  }
  .step-card-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    min-width: 0 !important;
  }
  .step-pill {
    display: none !important;
  }
  .step-card h3 {
    font-size: 14px !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    color: var(--text) !important;
    overflow-wrap: anywhere !important;
  }
  .step-desc-short {
    display: block !important;
    font-size: 12.5px !important;
    line-height: 1.4 !important;
    color: var(--text-muted) !important;
    margin: 2px 0 0 !important;
    overflow-wrap: anywhere !important;
  }
  .step-desc-full {
    display: none !important;
  }

  /* Requirement 3, 4, 6 & 7: OBS Overlays Horizontal Swipe Carousel with Scroll-Snap */
  .overlay-preview-grid.overlays-carousel-track {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 16px 14px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    scrollbar-width: none !important;
  }
  .overlay-preview-grid.overlays-carousel-track::-webkit-scrollbar {
    display: none !important;
  }
  .overlay-preview-grid.overlays-carousel-track .overlay-card-v2 {
    flex: 0 0 85% !important;
    width: 85% !important;
    max-width: 85% !important;
    min-width: 0 !important;
    scroll-snap-align: center !important;
    padding: 14px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .overlay-card-v2 h3 {
    font-size: 15px !important;
    margin: 8px 0 4px !important;
    overflow-wrap: anywhere !important;
  }
  .overlay-desc-full {
    display: none !important;
  }
  .overlay-desc-short {
    display: block !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    color: var(--text-muted) !important;
    margin: 0 0 8px !important;
    overflow-wrap: anywhere !important;
  }

  /* Requirement 6: OBS Cards URL Box */
  .overlay-url-box {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin: 6px 0 10px !important;
    padding: 6px 10px !important;
    background: rgba(8, 11, 10, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
  }
  .overlay-url-text {
    font-size: 11px !important;
    color: var(--text-muted) !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    scrollbar-width: none !important;
    min-width: 0 !important;
    flex: 1 1 0 !important;
  }
  .overlay-url-text::-webkit-scrollbar {
    display: none !important;
  }
  .overlay-copy-btn {
    background: rgba(141, 250, 4, 0.14) !important;
    border: 1px solid rgba(141, 250, 4, 0.3) !important;
    color: var(--green) !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  /* Requirement 6: Side-by-Side Equal Columns OBS Buttons (never wider than card) */
  .overlay-btn-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .overlay-btn-row .btn,
  .overlay-btn-row .overlay-action-btn {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    font-size: 12px !important;
    padding: 8px 6px !important;
    justify-content: center !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  /* Requirement 7: Dot indicators below carousel, centered, inside section width */
  #overlays-dots {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 12px auto 0 !important;
    padding: 0 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    position: static !important;
  }
  #overlays-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.25s ease;
  }
  #overlays-dots .dot.active {
    width: 18px;
    border-radius: 4px;
    background: var(--green);
    box-shadow: 0 0 8px rgba(141, 250, 4, 0.4);
  }

  /* Requirement 5: FAQ Compact Accordion */
  .faq-accordion-header {
    padding: 12px 14px !important;
    font-size: 14px !important;
    min-height: 48px !important;
  }
  .faq-plus-icon {
    width: 24px !important;
    height: 24px !important;
    font-size: 15px !important;
  }
  .faq-accordion-body {
    padding: 0 14px 14px !important;
  }
  .faq-accordion-body p {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  /* Public Feed 3 Compact Cards */
  .public-feed-cards {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
  }
  .feed-match-card {
    padding: 12px 14px !important;
    gap: 8px !important;
  }
  .feed-view-all-btn {
    width: 100% !important;
    min-height: 44px !important;
    justify-content: center !important;
    font-size: 14px !important;
  }

  /* Requirement 7: Final CTA Banner Box with Side-by-Side Secondary Buttons */
  .cta-banner-box {
    padding: 24px 16px !important;
  }
  .cta-banner-box h2 {
    font-size: clamp(22px, 5.5vw, 28px) !important;
    margin-bottom: 6px !important;
  }
  .cta-banner-box p {
    font-size: 14px !important;
    margin-bottom: 16px !important;
  }
  .cta-banner-actions {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
  }
  .cta-banner-actions > .btn-primary {
    width: 100% !important;
    min-height: 48px !important;
    justify-content: center !important;
  }
  .cta-secondary-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .cta-sec-btn {
    flex: 1 1 0 !important;
    width: 50% !important;
    min-height: 44px !important;
    padding: 8px 6px !important;
    font-size: clamp(11.5px, 3.2vw, 13px) !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  /* Requirement 6: Sticky Bottom CTA (52px high, safe-area padding) */
  .mobile-sticky-cta {
    display: block !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 150 !important;
    padding: 8px 16px !important;
    padding-bottom: max(8px, env(safe-area-inset-bottom, 8px)) !important;
    background: rgba(8, 11, 10, 0.94) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-top: 1px solid rgba(141, 250, 4, 0.22) !important;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.65) !important;
    transform: translateY(115%) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    pointer-events: none !important;
  }
  .mobile-sticky-cta.visible {
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }
  .sticky-cta-btn {
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    background: var(--accent) !important;
    color: var(--on-accent) !important;
    font: 700 15px 'DM Sans', system-ui, sans-serif !important;
    border-radius: 12px !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 18px rgba(141, 250, 4, 0.35) !important;
  }
  .sticky-cta-btn:active {
    transform: scale(0.98) !important;
  }

  /* Requirement 8: Footer Layout - Features & Broadcasting in 2 Columns with 16px padding */
  .site-footer-v2 {
    margin-top: 36px !important;
    padding: 36px 16px 76px !important;
  }
  .site-footer-inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .footer-col-brand {
    width: 100% !important;
  }
  .footer-links-group {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .footer-col {
    min-width: 0 !important;
  }
  .footer-col h4 {
    font-size: 13.5px !important;
    margin-bottom: 6px !important;
  }
  .footer-col a {
    min-height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    font-size: 13px !important;
    word-break: break-word !important;
  }
  .footer-col-access {
    width: 100% !important;
  }
  .footer-col-access ul {
    display: flex !important;
    gap: 16px !important;
  }
  .site-footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin-top: 20px !important;
    padding-top: 16px !important;
  }
  .topbar-nav {
    display: none !important;
  }
}

/* Standalone Focused Co-Scorer Screen */
.coscorer-standalone-wrap {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.coscorer-header {
  background: rgba(8, 11, 10, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 20px;
}
.coscorer-header-inner {
  max-width: 1020px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.coscorer-main {
  max-width: 1020px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 16px 60px;
  box-sizing: border-box;
}

/* ==========================================
   PROFILE & GAMIFICATION STYLES
   ========================================== */
.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), #38bdf8, var(--green));
}
.profile-header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}
.profile-avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid var(--green);
  padding: 3px;
  background: var(--surface-2);
  box-shadow: 0 0 20px rgba(141, 250, 4, 0.2);
}
.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #141c17;
}
.profile-rank-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #080b0a;
  border: 1.5px solid var(--green);
  color: var(--green);
  font: 800 11px 'DM Mono', monospace;
  padding: 2px 7px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.profile-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.profile-username-tag {
  font: 700 13px 'DM Mono', monospace;
  color: var(--green);
  background: rgba(141, 250, 4, 0.08);
  border: 1px solid rgba(141, 250, 4, 0.25);
  padding: 3px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.profile-xp-box {
  background: rgba(13, 19, 16, 0.95);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  margin-top: 20px;
}
.xp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
}
.xp-bar-bg {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, var(--green));
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(141, 250, 4, 0.5);
  transition: width 0.4s ease;
}

/* Privacy Settings Box */
.privacy-settings-box {
  background: rgba(13, 19, 16, 0.9);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  margin-top: 18px;
}
.privacy-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.privacy-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #27342d;
  transition: .3s;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .toggle-slider {
  background-color: var(--green);
}
input:checked + .toggle-slider:before {
  transform: translateX(20px);
  background-color: #080b0a;
}

/* Badges & Achievements Grid */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.badge-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.2s ease;
  position: relative;
}
.badge-card.unlocked {
  border-color: rgba(141, 250, 4, 0.3);
  background: rgba(18, 26, 21, 0.8);
}
.badge-card.locked {
  opacity: 0.55;
  filter: grayscale(0.8);
}
.badge-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}
.badge-card.unlocked .badge-icon-box {
  background: rgba(141, 250, 4, 0.15);
  border: 1px solid rgba(141, 250, 4, 0.3);
}

/* Admin Moderation Layout */
.admin-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  overflow-x: auto;
}
.admin-tab-btn {
  background: none;
  border: none;
  padding: 10px 18px;
  color: var(--text-muted);
  font: 600 13px 'DM Sans', sans-serif;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}
.admin-tab-btn:hover {
  color: var(--text);
}
.admin-tab-btn.active {
  color: var(--green);
  border-bottom-color: var(--green);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font: 700 11px 'DM Mono', monospace;
  letter-spacing: 0.04em;
}
.status-pill.active {
  background: rgba(141, 250, 4, 0.12);
  color: var(--green);
  border: 1px solid rgba(141, 250, 4, 0.25);
}
.status-pill.blocked {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.3);
}
.status-pill.pending {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}
.status-pill.resolved {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* Activity Logs Feed */
.activity-log-item {
  display: flex;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  align-items: center;
}
.activity-log-item:last-child {
  border-bottom: none;
}
.log-action-tag {
  font: 700 11px 'DM Mono', monospace;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.log-time {
  margin-left: auto;
  font: 11px 'DM Mono', monospace;
  color: var(--text-dim);
  white-space: nowrap;
}

/* Language Selector Dropdown */
.lang-selector-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(18, 26, 21, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 4px 8px;
}
.lang-selector-wrap select {
  background: transparent;
  border: none;
  color: var(--text);
  font: 600 12px 'DM Sans', sans-serif;
  cursor: pointer;
  outline: none;
}

/* Help & Support FAQ Accordion */
.faq-accordion-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  background: none;
  border: none;
  color: var(--text);
  font: 600 15px 'DM Sans', sans-serif;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-answer {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

@media(max-width: 768px) {
  .profile-header-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .profile-avatar-wrap {
    margin: 0 auto;
  }
  .profile-name-row {
    justify-content: center;
  }
  .badges-grid {
    grid-template-columns: 1fr;
  }
}

/* Landing Search Bar & Live Dropdown */
.landing-search-wrapper {
  position: relative;
  width: 100%;
}
.landing-search-form:focus-within {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px rgba(141, 250, 4, 0.2), 0 12px 36px rgba(0,0,0,0.5) !important;
}
.search-result-item:hover {
  background: rgba(141, 250, 4, 0.08) !important;
}
.sample-profile-card:hover {
  border-color: rgba(141, 250, 4, 0.7) !important;
  transform: translateY(-2px);
}
@media (max-width: 540px) {
  .landing-search-form {
    flex-direction: column;
    padding: 10px !important;
  }
}

/* Dashboard Action Cards */
.dashboard-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.dashboard-action-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  position: relative;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}

.dashboard-action-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 18px 48px rgba(0,0,0,0.55);
}

.dashboard-action-card.primary {
  background: linear-gradient(155deg, rgba(141, 250, 4, 0.12), rgba(13, 20, 15, 0.96));
  border: 1.5px solid var(--accent);
  box-shadow: 0 14px 40px rgba(141, 250, 4, 0.16);
}

.dashboard-action-card.primary:hover {
  box-shadow: 0 20px 54px rgba(141, 250, 4, 0.28);
  border-color: #bbfd41;
}

.action-card-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.dashboard-action-card.primary .action-card-icon-wrap {
  background: rgba(141, 250, 4, 0.15);
  border-color: rgba(141, 250, 4, 0.4);
}

.action-card-title {
  font: 700 24px 'Space Grotesk', sans-serif;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.25;
}

.action-card-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 24px;
  flex: 1;
}

/* Sidebar Live Pulse Dot */
.sidebar-live-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 1.4s infinite;
  box-shadow: 0 0 8px var(--accent);
  flex-shrink: 0;
}

/* Responsive Stacking */
@media (max-width: 900px) {
  .dashboard-action-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .matches-overview-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
}

/* ========================================================
   START A QUICK MATCH SETUP WIZARD & EVENT-SOURCED ENGINE
   ======================================================== */
.wizard-progress-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 24px;
  padding: 0 8px;
}
.wizard-progress-track {
  position: absolute;
  top: 14px;
  left: 30px;
  right: 30px;
  height: 2px;
  background: #1b261f;
  z-index: 1;
}
.wizard-progress-fill {
  position: absolute;
  top: 14px;
  left: 30px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  transition: width 0.3s ease;
  z-index: 2;
}
.wizard-step-node {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.wizard-step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0d1410;
  border: 2px solid #233529;
  color: var(--text-muted);
  font: 700 12px 'DM Mono', monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.wizard-step-node.active .wizard-step-circle {
  background: var(--accent);
  color: #080c0a;
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(163, 255, 18, 0.45);
}
.wizard-step-node.done .wizard-step-circle {
  background: #132417;
  color: var(--accent);
  border-color: var(--accent);
}
.wizard-step-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.wizard-step-node.active .wizard-step-label {
  color: #fff;
}
.wizard-step-node.done .wizard-step-label {
  color: var(--accent);
}

/* PlayerInput & Chips */
.player-input-card {
  background: #0a0f0c;
  border: 1px solid #1c2b21;
  border-radius: 12px;
  padding: 10px 12px;
  transition: border-color 0.2s ease;
  position: relative;
}
.player-input-card:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(163, 255, 18, 0.2);
}
.player-chip-registered {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(163, 255, 18, 0.12);
  border: 1px solid rgba(163, 255, 18, 0.4);
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(163, 255, 18, 0.15);
}
.player-chip-registered img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--accent);
}
.player-tag-registered {
  background: var(--accent);
  color: #080c0a;
  font: 800 9px 'DM Mono', monospace;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.player-tag-guest {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font: 600 9.5px 'DM Mono', monospace;
  padding: 2px 7px;
  border-radius: 4px;
}


/* Mobile-First Scoring Keypad */
.scoring-grid-modern {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.btn-score-key {
  background: linear-gradient(160deg, #162019, #0d1410);
  border: 1px solid #233628;
  color: #fff;
  border-radius: 14px;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font: 800 24px 'Space Grotesk', sans-serif;
  cursor: pointer;
  transition: transform 0.08s ease, border-color 0.15s ease, background 0.15s ease;
  user-select: none;
  touch-action: manipulation;
}
.btn-score-key:active {
  transform: scale(0.96);
  border-color: var(--accent);
}
.btn-score-key small {
  font-size: 10px;
  color: var(--text-muted);
  font-family: 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.btn-score-key.run-boundary {
  border-color: rgba(163, 255, 18, 0.4);
  color: var(--accent);
  background: linear-gradient(160deg, #1b2e20, #0f1c13);
}
.btn-score-key.run-sixer {
  border-color: rgba(56, 189, 248, 0.45);
  color: #38bdf8;
  background: linear-gradient(160deg, #132733, #0b171e);
}

/* Wicket Action Trigger */
.btn-wicket-prominent {
  background: linear-gradient(145deg, #e11d48, #9f1239);
  color: #fff;
  border: none;
  font: 800 16px 'Space Grotesk', sans-serif;
  padding: 14px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(225, 29, 72, 0.35);
  touch-action: manipulation;
}
.btn-wicket-prominent:active {
  transform: scale(0.97);
}

/* Sync status pill */
.sync-pill-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
}
.sync-pill-synced {
  background: rgba(163, 255, 18, 0.12);
  color: var(--accent);
  border: 1px solid rgba(163, 255, 18, 0.3);
}
.sync-pill-offline {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.3);
}
.sync-pill-syncing {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

/* ========================================================
   TOURNAMENTS / NEW: INLINE ADD TEAM & 2-COLUMN CARDS
   ======================================================== */
.inline-team-card {
  background: rgba(12, 18, 14, 0.95);
  border: 1px solid rgba(182, 255, 0, 0.25);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}
.inline-team-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.inline-team-title {
  font: 800 12px 'Space Grotesk', sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #b6ff00;
  display: flex;
  align-items: center;
  gap: 6px;
}
.inline-team-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
}
@media (max-width: 600px) {
  .inline-team-row {
    flex-wrap: wrap !important;
  }
}
.inline-logo-preview-btn {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  border-radius: 50% !important;
  border: 1.5px dashed rgba(182, 255, 0, 0.45) !important;
  background: #090e0b !important;
  color: #b6ff00 !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
  overflow: hidden !important;
  position: relative !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}
.inline-logo-preview-btn:hover {
  background: rgba(182, 255, 0, 0.12) !important;
  border-color: #b6ff00 !important;
  border-style: solid !important;
  transform: scale(1.05) !important;
}
.inline-logo-preview-img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}
.inline-team-input {
  background: #090e0b !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px !important;
  padding: 9px 12px !important;
  color: #ffffff !important;
  font-size: 13px !important;
  outline: none !important;
  transition: border-color 0.2s !important;
}
.inline-team-input:focus {
  border-color: #b6ff00 !important;
  box-shadow: 0 0 10px rgba(182, 255, 0, 0.2) !important;
}
.inline-team-input-name {
  flex: 2 !important;
  min-width: 0 !important;
}
.inline-team-input-short {
  flex: 0 0 90px !important;
  width: 90px !important;
  min-width: 0 !important;
  text-transform: uppercase !important;
  font-family: 'DM Mono', monospace !important;
}
.inline-team-error {
  margin-top: 8px;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fda4af;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Team Selection List & Selectable Cards */
.team-select-wrapper {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: #090d0b;
  overflow: hidden;
}
.team-select-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(18, 25, 21, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.team-select-counter {
  font: 700 11.5px 'DM Mono', monospace;
  color: #b6ff00;
  background: rgba(182, 255, 0, 0.12);
  border: 1px solid rgba(182, 255, 0, 0.3);
  padding: 2px 8px;
  border-radius: 12px;
}
.team-select-scroll {
  max-height: 320px !important;
  overflow-y: auto !important;
  padding: 10px;
  scrollbar-width: thin;
  scrollbar-color: #b6ff00 rgba(255, 255, 255, 0.05);
}
.team-select-scroll::-webkit-scrollbar {
  width: 6px;
}
.team-select-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 3px;
}
.team-select-scroll::-webkit-scrollbar-thumb {
  background: #b6ff00;
  border-radius: 3px;
}
.team-select-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}
@media (max-width: 600px) {
  .team-select-grid {
    grid-template-columns: 1fr !important;
  }
}

.team-select-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  text-align: left !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  background: rgba(18, 26, 21, 0.75) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  cursor: pointer !important;
  user-select: none !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  position: relative !important;
  overflow: hidden !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease !important;
}
.team-select-card:hover {
  transform: translateY(-2px) scale(1.01) !important;
  border-color: rgba(182, 255, 0, 0.5) !important;
  background: rgba(25, 36, 29, 0.9) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 14px rgba(182, 255, 0, 0.2) !important;
}
.team-select-card:active {
  transform: scale(0.98) !important;
}
.team-select-card.selected {
  border-color: #b6ff00 !important;
  background: rgba(182, 255, 0, 0.08) !important;
  box-shadow: 0 0 16px rgba(182, 255, 0, 0.18) !important;
  animation: cardSelectBounce 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes cardSelectBounce {
  0% { transform: scale(1); }
  45% { transform: scale(1.045); }
  100% { transform: scale(1.02); }
}

.team-select-checkbox {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  accent-color: #b6ff00 !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.team-select-checkbox:checked {
  animation: checkBounce 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes checkBounce {
  0% { transform: scale(0.85); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.team-select-logo {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  flex-shrink: 0 !important;
}
.team-select-logo-fallback {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  font: 800 12px 'Space Grotesk', sans-serif !important;
  letter-spacing: .02em !important;
  background: rgba(16, 24, 19, 0.9) !important;
  border: 1.5px solid #b6ff00 !important;
  color: #b6ff00 !important;
  flex-shrink: 0 !important;
}
.team-select-name {
  font: 700 13.5px 'Space Grotesk', sans-serif !important;
  color: #ffffff !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-width: 0 !important;
  flex: 1 !important;
  text-align: left !important;
}

/* Submit button disabled state */
.btn-tournament-submit:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  filter: grayscale(40%);
}

/* ==========================================================================
   SCORINGDECK MOTION & ANIMATION SYSTEM
   Stiffness: 400, Damping: 30 Spring Consistency
   Neon Green Accent: #b6ff00 / #8dfa04
   ========================================================================== */

/* 1. Ripple Effect for Primary Buttons */
.ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: rippleAnim 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: none;
  z-index: 10;
}
@keyframes rippleAnim {
  0% { transform: scale(0); opacity: 0.6; }
  100% { transform: scale(3.5); opacity: 0; }
}

/* 2. Interactive Cards & Clickable Panels */
.panel, .card, .metric, .stat-card, .match-card, .onfield-box {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}
.panel:hover, .card:hover, .metric:hover, .stat-card:hover, .match-card:hover {
  transform: translateY(-2px) scale(1.008);
  border-color: rgba(182, 255, 0, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 14px rgba(182, 255, 0, 0.12);
}
.panel:active, .card:active {
  transform: scale(0.99);
}

/* 3. Mode A / Mode B Toggle Sliding Pill */
.mode-toggle-group {
  position: relative;
  display: flex !important;
  background: #090d0b !important;
  border: 1px solid #1f2d24 !important;
  border-radius: 9999px !important;
  padding: 4px !important;
  margin-bottom: 20px !important;
  overflow: hidden;
  box-sizing: border-box !important;
  width: 100% !important;
}
.mode-toggle-btn {
  position: relative;
  z-index: 2;
  flex: 1 1 50% !important;
  width: 50% !important;
  padding: 10px 16px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border-radius: 9999px !important;
  border: none !important;
  cursor: pointer;
  text-align: center !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: #ffffff !important;
  background: transparent !important;
  box-sizing: border-box !important;
}
.mode-toggle-btn:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.05) !important;
}
.mode-toggle-btn.btn-primary, .mode-toggle-btn.active {
  background: #b6ff00 !important;
  color: #080c0a !important;
  box-shadow: 0 2px 14px rgba(182, 255, 0, 0.45) !important;
}

/* 4. Page & Step Transitions */
.content-page-enter {
  animation: pageFadeSlide 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes pageFadeSlide {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Stepper Progress Bar & Active Circle Pop */
.wizard-stepper {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 24px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  padding-bottom: 16px !important;
}
.wizard-step-node {
  position: relative;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer;
  flex-shrink: 0 !important;
  user-select: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.wizard-step-node:hover {
  transform: scale(1.05);
}
.wizard-step-node.active .step-num {
  animation: stepCirclePop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  box-shadow: 0 0 14px rgba(182, 255, 0, 0.7);
}
.wizard-step-line {
  flex: 1 !important;
  height: 2px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  margin: 0 10px !important;
  min-width: 14px !important;
  transition: all 0.3s ease !important;
}
.wizard-step-line.completed {
  background: #b6ff00 !important;
  box-shadow: 0 0 8px rgba(182, 255, 0, 0.5) !important;
}
.wizard-progress-track {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 8px;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.wizard-progress-fill {
  height: 100%;
  background: #b6ff00;
  box-shadow: 0 0 10px rgba(182, 255, 0, 0.8);
  transition: width 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.wizard-step-node {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.wizard-step-node:hover {
  transform: scale(1.05);
}
.wizard-step-node.active .step-num {
  animation: stepCirclePop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  box-shadow: 0 0 14px rgba(182, 255, 0, 0.7);
}
@keyframes stepCirclePop {
  0% { transform: scale(0.8); }
  55% { transform: scale(1.22); }
  100% { transform: scale(1); }
}
.wizard-step-panel {
  animation: stepSlideIn 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes stepSlideIn {
  0% { opacity: 0; transform: translateX(20px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Stagger List & Cards */
.stagger-item {
  animation: staggerItemFade 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.stagger-item:nth-child(1) { animation-delay: 0.03s; }
.stagger-item:nth-child(2) { animation-delay: 0.07s; }
.stagger-item:nth-child(3) { animation-delay: 0.11s; }
.stagger-item:nth-child(4) { animation-delay: 0.15s; }
.stagger-item:nth-child(5) { animation-delay: 0.19s; }
.stagger-item:nth-child(6) { animation-delay: 0.23s; }
.stagger-item:nth-child(7) { animation-delay: 0.27s; }
.stagger-item:nth-child(8) { animation-delay: 0.31s; }
@keyframes staggerItemFade {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* 5. Scoring Screen Animations */
.btn-score-run {
  position: relative;
  overflow: hidden;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease !important;
}
.btn-score-run:hover {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(182, 255, 0, 0.35) !important;
  border-color: #b6ff00 !important;
}
.btn-score-run:active {
  transform: scale(0.92) !important;
}

/* Score Number Flip/Count-Up Pop */
.score-flip-up {
  display: inline-block;
  animation: scoreFlipUp 0.26s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes scoreFlipUp {
  0% { transform: scale(1); }
  45% { transform: scale(1.15) translateY(-3px); color: #fff; text-shadow: 0 0 20px rgba(182, 255, 0, 0.9); }
  100% { transform: scale(1) translateY(0); }
}

/* New Ball Pop In in Ribbon */
.ball-pop-in {
  animation: ballPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes ballPopIn {
  0% { transform: scale(0); opacity: 0; }
  65% { transform: scale(1.3); }
  100% { transform: scale(1); opacity: 1; }
}

/* Sequential Ball Dots Fill at Over End */
.over-complete-pulse {
  animation: ballDotPulse 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes ballDotPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.28); box-shadow: 0 0 14px #b6ff00; }
  100% { transform: scale(1); }
}

/* Extras Pulse (Wide / No-Ball) */
.pulse-yellow {
  animation: extrasPulseAnim 0.5s cubic-bezier(0.16, 1, 0.3, 1) 2;
}
@keyframes extrasPulseAnim {
  0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.85); border-color: #fbbf24; }
  70% { box-shadow: 0 0 0 16px rgba(251, 191, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}

/* Wicket Red Flash, Camera Shake & Batter Slide-Out */
.screen-red-flash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  animation: wicketFlashAnim 0.45s ease-out forwards;
}
@keyframes wicketFlashAnim {
  0% { background: rgba(239, 68, 68, 0.35); box-shadow: inset 0 0 80px rgba(239, 68, 68, 0.6); }
  100% { background: rgba(239, 68, 68, 0); box-shadow: inset 0 0 0 rgba(239, 68, 68, 0); }
}
.screen-shake {
  animation: cameraShakeAnim 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
}
@keyframes cameraShakeAnim {
  0%, 100% { transform: translate(0, 0); }
  15% { transform: translate(-8px, 5px); }
  30% { transform: translate(7px, -5px); }
  45% { transform: translate(-5px, 3px); }
  60% { transform: translate(4px, -2px); }
  75% { transform: translate(-2px, 1px); }
}
.batter-slide-out {
  animation: batterSlideOutAnim 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes batterSlideOutAnim {
  0% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(50px); opacity: 0; }
}

/* Six Screen Gold Pulse */
.screen-gold-pulse {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  animation: goldPulseAnim 0.5s ease-out forwards;
}
@keyframes goldPulseAnim {
  0% { background: rgba(251, 191, 36, 0.2); box-shadow: inset 0 0 100px rgba(251, 191, 36, 0.6); }
  100% { background: rgba(251, 191, 36, 0); box-shadow: inset 0 0 0 rgba(251, 191, 36, 0); }
}

/* Celebration Confetti Canvas */
#celebration-canvas {
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
}

/* 6. Modal Keyframe Animations */
@keyframes backdropFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes modalScaleIn {
  0% { opacity: 0; transform: scale(0.92) translateY(12px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes modalScaleOut {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.94) translateY(8px); }
}

/* 7. Toast Top-Right Keyframes */
@keyframes toastSlideInTopRight {
  0% { opacity: 0; transform: translateX(60px) scale(0.9); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastSlideOutTopRight {
  0% { opacity: 1; transform: translateX(0) scale(1); }
  100% { opacity: 0; transform: translateX(60px) scale(0.9); }
}

/* 8. Skeleton Shimmer & Button Spinner */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(182,255,0,0.08) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite linear;
  border-radius: 8px;
}
@keyframes skeletonShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(8, 11, 10, 0.3);
  border-top-color: #080b0a;
  border-radius: 50%;
  animation: btnSpin 0.6s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}
.btn-ghost .btn-spinner {
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
}
@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

/* 9. Tournament Points Table Row Layout Transitions */
table tbody tr {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease, box-shadow 0.2s ease;
}
table tbody tr:hover {
  transform: scale(1.008);
  background: rgba(182, 255, 0, 0.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

/* 10. Prefers Reduced Motion Accessibility Rule */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transform: none !important;
  }
}

/* 11. OTP Authentication & Modern Auth Modal Styling */
.auth-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 18px;
  gap: 4px;
}
.auth-tab-btn {
  flex: 1;
  padding: 9px 12px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.auth-tab-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.auth-tab-btn.active {
  background: rgba(182, 255, 0, 0.12);
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.otp-box-wrapper {
  margin: 16px 0;
  text-align: center;
}
.otp-code-input {
  width: 100%;
  max-width: 280px;
  height: 52px;
  font-size: 26px;
  letter-spacing: 12px;
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-weight: 700;
  color: #b6ff00;
  background: rgba(182, 255, 0, 0.04);
  border: 2px solid rgba(182, 255, 0, 0.4);
  border-radius: 14px;
  outline: none;
  box-shadow: 0 0 16px rgba(182, 255, 0, 0.12);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  margin: 0 auto;
  display: block;
}
.otp-code-input:focus {
  border-color: #b6ff00;
  box-shadow: 0 0 24px rgba(182, 255, 0, 0.25);
  background: rgba(182, 255, 0, 0.07);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 16px 0;
  color: var(--text-dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'DM Mono', monospace;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.auth-divider span {
  padding: 0 10px;
}

/* ==========================================================================
   MOBILE (<640px) ZERO-SCROLL LIVE SCORING ENGINE
   ========================================================================== */

/* 1. Desktop Preservation (Desktop layout is 100% untouched) */
@media (min-width: 640px) and (min-height: 501px) {
  .scoring-screen-mobile {
    display: none !important;
  }
  .scoring-screen-desktop {
    display: block !important;
  }
}

/* 2. Mobile Viewport Single-Screen Zero-Scroll Rules */
@media (max-width: 639.98px), ((max-height: 500px) and (orientation: landscape)) {
  .scoring-screen-desktop {
    display: none !important;
  }
  .scoring-screen-mobile {
    display: flex !important;
  }

  body.is-scoring-active {
    padding-bottom: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    height: 100dvh !important;
    height: 100vh !important;
    width: 100vw !important;
    max-width: 100vw !important;
    position: fixed;
    inset: 0;
  }

  .app-shell.is-scoring-page {
    height: 100dvh !important;
    height: 100vh !important;
    max-height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    grid-template-columns: 1fr !important;
  }

  .app-shell.is-scoring-page .sidebar {
    display: none !important;
  }

  .app-shell.is-scoring-page .app-header {
    display: none !important;
  }

  .app-shell.is-scoring-page .main {
    flex: 1 1 auto !important;
    height: 100% !important;
    max-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
  }

  .app-shell.is-scoring-page .content,
  .app-shell.is-scoring-page .content.is-scoring-content {
    flex: 1 1 auto !important;
    height: 100% !important;
    max-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
  }

  .app-shell.is-scoring-page .mobile-nav-bar {
    position: static !important;
    flex-shrink: 0 !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 2px 8px max(4px, env(safe-area-inset-bottom, 4px)) !important;
    background: #090e0c !important;
    border-top: 1px solid rgba(141, 250, 4, 0.15) !important;
    z-index: 90 !important;
  }
}

/* 3. Mobile Scoring Screen Flex Container */
.scoring-screen-mobile {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow: hidden;
  justify-content: space-between;
  padding: 4px 8px 4px;
  gap: 4px;
}

/* TOP STICKY COMPACT BANNER (max ~25% screen) */
.mobile-score-top {
  flex-shrink: 0;
  max-height: 25dvh;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px 10px;
  background: linear-gradient(180deg, rgba(20, 30, 24, 0.95), rgba(12, 19, 15, 0.95));
  border: 1px solid rgba(141, 250, 4, 0.25);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.mobile-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.mobile-icon-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 8px;
  width: 28px;
  height: 28px;
  min-width: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-icon-btn:active {
  background: rgba(141, 250, 4, 0.2);
  border-color: rgba(141, 250, 4, 0.4);
}

.mobile-match-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(0.78rem, 3.2vw, 0.92rem);
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
  min-width: 0;
}

.mobile-top-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.mobile-live-badge {
  font-size: 10px !important;
  padding: 2px 6px !important;
}

.mobile-score-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.mobile-batting-team {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: clamp(0.92rem, 3.8vw, 1.15rem);
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 48%;
  min-width: 0;
  letter-spacing: -0.01em;
}

.mobile-score-numbers {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.mobile-main-score {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 8vw, 2.35rem);
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.03em;
}

.mobile-overs-display {
  font-family: 'DM Mono', monospace;
  font-size: clamp(0.78rem, 3.2vw, 0.95rem);
  color: var(--text-muted);
  white-space: nowrap;
}

.mobile-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: clamp(0.66rem, 2.6vw, 0.78rem);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-meta-sub {
  color: var(--text-dim);
}

.mobile-equation-line {
  font-size: clamp(0.68rem, 2.7vw, 0.8rem);
  color: #8dfa04;
  background: rgba(141, 250, 4, 0.08);
  border: 1px solid rgba(141, 250, 4, 0.25);
  border-radius: 6px;
  padding: 2px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

/* MIDDLE STRIP: Ball Ribbon, Batsmen & Bowler Cards */
.mobile-score-middle {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.mobile-setup-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 8px;
  padding: 2px 6px;
  font-size: 11px;
  color: #fbbf24;
}

.mobile-ball-strip {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  padding: 1px 0;
  scrollbar-width: none;
  min-height: 24px;
  max-width: 100%;
}

.mobile-ball-strip::-webkit-scrollbar {
  display: none;
}

.mobile-no-balls {
  font-size: 11px;
  color: var(--text-dim);
  font-style: italic;
}

.mobile-batsmen-card {
  background: rgba(16, 24, 19, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 3px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-player-strip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  padding: 1px 0;
}

.mobile-player-strip-row.on-strike {
  border-left: 2px solid var(--accent);
  padding-left: 4px;
}

.mobile-player-left {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.mobile-strike-icon {
  font-size: 12px;
  flex-shrink: 0;
}

.mobile-nonstrike-dot {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1;
  width: 12px;
  text-align: center;
  flex-shrink: 0;
}

.mobile-player-name {
  font-size: clamp(0.76rem, 3.1vw, 0.88rem);
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.mobile-pick-link {
  color: var(--accent);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}

.mobile-player-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.mobile-player-stats {
  display: flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}

.mobile-runs-val {
  font-size: clamp(0.8rem, 3.3vw, 0.92rem);
  color: #fff;
  font-weight: 800;
}

.mobile-balls-val {
  font-size: clamp(0.68rem, 2.6vw, 0.78rem);
  color: var(--text-muted);
}

.mobile-sub-stat {
  font-family: 'DM Mono', monospace;
  font-size: clamp(0.62rem, 2.3vw, 0.72rem);
  color: var(--text-dim);
}

.mobile-swap-btn {
  background: rgba(141, 250, 4, 0.12);
  border: 1px solid rgba(141, 250, 4, 0.35);
  color: #8dfa04;
  border-radius: 6px;
  width: 24px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.mobile-swap-btn:active {
  background: var(--accent);
  color: #000;
}

.mobile-bowler-card {
  background: rgba(16, 24, 19, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 3px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.mobile-bowler-icon {
  font-size: 12px;
  flex-shrink: 0;
}

.mobile-bowler-figs {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.mobile-figs-val {
  font-family: 'DM Mono', monospace;
  font-size: clamp(0.76rem, 3.1vw, 0.88rem);
  font-weight: 700;
}

.mobile-change-bowler-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-change-bowler-btn:active {
  background: rgba(251, 191, 36, 0.2);
  border-color: #fbbf24;
  color: #fbbf24;
}

/* BOTTOM SECTION: Action Pills + 4-Column Keypad */
.mobile-score-bottom {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-action-pills {
  display: flex;
  gap: 6px;
  width: 100%;
}

.mobile-pill-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  border-radius: 8px;
  padding: 5px 8px;
  font-size: clamp(0.7rem, 2.9vw, 0.8rem);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.mobile-pill-btn:active {
  background: rgba(141, 250, 4, 0.15);
  border-color: rgba(141, 250, 4, 0.4);
}

/* 4-COLUMN KEYPAD GRID */
.mobile-keypad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  width: 100%;
}

.mobile-key-btn {
  min-height: 44px;
  height: clamp(44px, 6.2vh, 50px);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #141f18;
  color: #fff;
  padding: 2px 4px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: transform 0.08s ease, background-color 0.08s ease;
}

.mobile-key-btn:active {
  transform: scale(0.95);
}

.mobile-key-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: clamp(1.15rem, 4.6vw, 1.4rem);
  line-height: 1;
  color: #ffffff;
}

.mobile-key-sub {
  font-family: 'DM Mono', monospace;
  font-size: clamp(0.55rem, 2.1vw, 0.65rem);
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 2px;
  line-height: 1;
}

/* Specific button styles */
.mobile-key-btn.key-run-four {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(14, 28, 38, 0.95));
  border-color: rgba(56, 189, 248, 0.45);
}
.mobile-key-btn.key-run-four .mobile-key-num {
  color: #38bdf8;
}

.mobile-key-btn.key-run-six {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.22), rgba(28, 14, 42, 0.95));
  border-color: rgba(168, 85, 247, 0.5);
}
.mobile-key-btn.key-run-six .mobile-key-num {
  color: #c084fc;
}

.mobile-key-btn.key-extra {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.35);
}
.mobile-key-btn.key-extra .mobile-key-num {
  color: #fbbf24;
}

.mobile-key-btn.key-wicket {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(42, 14, 14, 0.95));
  border-color: rgba(239, 68, 68, 0.55);
}
.mobile-key-btn.key-wicket .mobile-key-num {
  color: #f87171;
}

.mobile-key-btn.key-undo {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}
.mobile-key-btn.key-undo .mobile-key-num {
  color: #e2e8f0;
}

/* Hide subtitles on screens under 400px (Requirement 2) */
@media (max-width: 400px) {
  .mobile-key-sub {
    display: none !important;
  }
  .mobile-key-num {
    font-size: clamp(1.1rem, 4.8vw, 1.35rem) !important;
  }
}

/* BOTTOM SHEET STYLES */
@media (max-width: 639.98px) {
  .modal-bottom-sheet-backdrop {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  .modal-bottom-sheet {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px 20px 0 0 !important;
    max-height: 85dvh !important;
    margin: 0 !important;
    animation: sheetSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 16px)) !important;
  }

  .mobile-sheet-handle {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.28);
    margin: 0 auto 10px;
  }

  .mobile-sheet-actions-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .mobile-sheet-action-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: all 0.12s ease;
  }

  .mobile-sheet-action-item:active {
    background: rgba(141, 250, 4, 0.12);
    border-color: rgba(141, 250, 4, 0.3);
  }

  .sheet-action-icon {
    font-size: 20px;
    flex-shrink: 0;
  }

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

  .sheet-action-info strong {
    display: block;
    font-size: 13.5px;
    color: #fff;
  }

  .sheet-action-info small {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 1px;
  }

  .sheet-action-arrow {
    font-size: 18px;
    color: var(--text-dim);
    flex-shrink: 0;
  }

  .mobile-admin-pin-card {
    background: rgba(141, 250, 4, 0.08);
    border: 1px solid rgba(141, 250, 4, 0.3);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 8px;
  }

  .mobile-admin-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    gap: 8px;
  }

  .mobile-modal-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
  }

  .mobile-modal-tab-btn {
    flex: 1;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
  }

  .mobile-modal-tab-btn.active {
    background: rgba(141, 250, 4, 0.15);
    border-color: rgba(141, 250, 4, 0.4);
    color: #8dfa04;
  }

  .mobile-modal-tab-scroll {
    max-height: 60dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* LANDSCAPE LAYOUT SUPPORT (e.g. 640x360, 844x390) */
@media (orientation: landscape) and (max-height: 500px) {
  .app-shell.is-scoring-page .mobile-nav-bar {
    display: none !important;
  }

  .scoring-screen-mobile {
    flex-direction: row !important;
    gap: 8px !important;
    padding: 4px 10px !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }

  .mobile-scoring-main {
    flex: 1 1 50% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: 4px !important;
    min-width: 0 !important;
  }

  .mobile-score-top {
    max-height: none !important;
    padding: 4px 8px !important;
  }

  .mobile-score-middle {
    display: flex !important;
    gap: 3px !important;
  }

  .mobile-score-bottom {
    flex: 1 1 50% !important;
    justify-content: center !important;
    min-width: 0 !important;
  }

  .mobile-key-btn {
    min-height: 34px !important;
    height: clamp(34px, 8vh, 42px) !important;
  }

  .mobile-key-num {
    font-size: 1.15rem !important;
  }
}



