/* ═══════════════════════════════════════════════════════════════════════════
   BASKETBALL BROADCAST SYSTEM · Design System v2.0
   Material Design 3 × Dark Court Aesthetic
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. DESIGN TOKENS ─────────────────────────────────────────────────────── */
:root {
  /* ── Surfaces ── */
  --bg:   #060401;
  --bg1:  #0C0802;
  --bg2:  #141005;
  --bg3:  #1C1608;
  --bg4:  #26200E;
  --bg5:  #322C18;

  /* ── Primary · Orange (Basketball) ── */
  --orange:            #FF7A1A;
  --orange-dim:        #CC5A00;
  --orange-bright:     #FF9A4A;
  --orange-container:  rgba(255,122,26,0.13);
  --orange-glow:       rgba(255,122,26,0.35);

  /* ── Secondary · Gold ── */
  --gold:            #D4A827;
  --gold-dim:        #A07C10;
  --gold-container:  rgba(212,168,39,0.13);

  /* ── Tertiary · Blue (court lines) ── */
  --blue:            #5BA8D4;
  --blue-container:  rgba(91,168,212,0.12);

  /* ── State ── */
  --green:   #3DC98C;
  --red:     #FF4F4F;
  --red-dim: rgba(255,79,79,0.12);
  --yellow:  #F0B429;

  /* ── Text ── */
  --text:  #F0E0C8;
  --text2: #B89A72;
  --text3: rgba(240,224,200,0.45);
  --text4: rgba(240,224,200,0.20);

  /* ── Borders ── */
  --border:  rgba(255,122,26,0.18);
  --border2: rgba(255,122,26,0.09);
  --border3: rgba(240,224,200,0.06);

  /* ── Typography ── */
  --font-cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', 'Barlow', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* ── Shape ── */
  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-2xl:  28px;
  --r-full: 100px;

  /* ── Shadows ── */
  --shadow-1: 0 1px 3px rgba(0,0,0,.6),  0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 3px 8px rgba(0,0,0,.7),  0 1px 4px rgba(0,0,0,.5);
  --shadow-3: 0 8px 24px rgba(0,0,0,.8), 0 3px 8px rgba(0,0,0,.6);
  --shadow-4: 0 16px 40px rgba(0,0,0,.85), 0 6px 16px rgba(0,0,0,.7);

  /* ── Motion ── */
  --ease-standard:   cubic-bezier(0.2, 0, 0, 1.0);
  --ease-decelerate: cubic-bezier(0, 0, 0, 1);
  --ease-spring:     cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:   120ms;
  --dur-normal: 200ms;
  --dur-slow:   320ms;
}

/* ── 2. RESET ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }
img { max-width: 100%; display: block; }

/* ── 3. BACKGROUND ────────────────────────────────────────────────────────── */
body {
  background:
    radial-gradient(ellipse 90% 45% at 50% -5%, rgba(255,122,26,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 100% 100%, rgba(212,168,39,0.04) 0%, transparent 60%),
    #060401;
}
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(255,122,26,0.022) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(255,122,26,0.022) 60px);
}

/* ── 4. LAYOUT ────────────────────────────────────────────────────────────── */
.layout { display: flex; min-height: 100vh; position: relative; z-index: 1; }
.main   { flex: 1; padding: 28px 32px; overflow-x: hidden; min-width: 0; }

/* ── 5. SIDEBAR ───────────────────────────────────────────────────────────── */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(13,9,2,.97) 0%, rgba(8,5,1,.97) 100%);
  border-right: 1px solid var(--border2);
  display: flex;
  flex-direction: column;
  position: sticky; top: 0;
  height: 100vh;
  overflow-y: auto; overflow-x: hidden;
  z-index: 100;
}
.sidebar::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 5%, var(--orange) 40%, var(--gold) 70%, transparent 95%);
  pointer-events: none;
}

/* Logo */
.sidebar-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--border2);
  flex-shrink: 0;
}
.sidebar-logo-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--orange-dim), var(--orange));
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(255,122,26,0.45), 0 0 0 1px rgba(255,122,26,0.2);
}
.sidebar-logo-icon svg { width: 22px; height: 22px; }
.sidebar-brand { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sidebar-brand-name {
  font-family: var(--font-cond);
  font-size: 15px; font-weight: 800;
  color: var(--text); letter-spacing: .3px;
  white-space: nowrap;
}
.sidebar-brand-sub {
  font-size: 9.5px; font-weight: 600;
  color: var(--text4); letter-spacing: 1px;
  text-transform: uppercase; font-family: var(--font-cond);
}

/* Navigation */
.sidebar-nav { flex: 1; padding: 8px; overflow-y: auto; }
.nav-section { margin-bottom: 2px; }
.nav-section-label {
  display: block;
  font-size: 9px; font-weight: 700;
  color: var(--text4);
  text-transform: uppercase; letter-spacing: 1.3px;
  padding: 10px 10px 4px;
  font-family: var(--font-cond);
}
.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px;
  border-radius: var(--r-md);
  color: var(--text2);
  font-size: 13px; font-weight: 500;
  transition:
    background var(--dur-fast) var(--ease-standard),
    color var(--dur-fast) var(--ease-standard);
  position: relative; margin-bottom: 1px;
  white-space: nowrap; overflow: hidden;
}
.nav-item svg { width: 15px; height: 15px; flex-shrink: 0; opacity: .65; transition: opacity var(--dur-fast); }
.nav-item:hover { background: rgba(255,122,26,0.08); color: var(--text); }
.nav-item:hover svg { opacity: 1; }
.nav-item.active {
  background: var(--orange-container);
  color: var(--orange-bright); font-weight: 600;
}
.nav-item.active svg { opacity: 1; color: var(--orange); }
.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 22%; bottom: 22%;
  width: 3px; border-radius: 0 var(--r-full) var(--r-full) 0;
  background: linear-gradient(180deg, var(--orange-bright), var(--orange-dim));
}

/* Footer */
.sidebar-footer {
  padding: 10px 8px;
  border-top: 1px solid var(--border2);
  flex-shrink: 0;
}
.sidebar-user {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px;
  border-radius: var(--r-md);
  background: var(--bg2);
  margin-bottom: 4px;
  border: 1px solid var(--border2);
}
.sidebar-avatar {
  width: 30px; height: 30px; border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--orange-dim), var(--bg3));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-cond); font-size: 12px; font-weight: 800;
  color: var(--orange); flex-shrink: 0;
  border: 1px solid var(--border);
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-username {
  font-size: 12px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-userlevel { font-size: 10px; color: var(--text4); }

/* ── 6. PAGE TITLE ────────────────────────────────────────────────────────── */
.page-title {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 24px; gap: 12px; flex-wrap: wrap;
}
.page-title h1 {
  font-family: var(--font-cond);
  font-size: 28px; font-weight: 900;
  color: var(--text); letter-spacing: .2px; line-height: 1.1;
}
.page-title h1::after {
  content: '';
  display: block; width: 28px; height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
  margin-top: 5px; border-radius: var(--r-full);
}

/* ── 7. CARDS ─────────────────────────────────────────────────────────────── */
.card {
  background: linear-gradient(145deg, rgba(24,17,3,.96) 0%, rgba(12,8,1,.98) 100%);
  border: 1px solid var(--border2);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-2);
  transition:
    border-color var(--dur-normal) var(--ease-standard),
    box-shadow var(--dur-normal) var(--ease-standard);
  margin-bottom: 20px;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(255,122,26,0.28) 50%, transparent 90%);
}
.card:hover { border-color: var(--border); box-shadow: var(--shadow-3); }
.card-title {
  font-family: var(--font-cond);
  font-size: 10px; font-weight: 700;
  color: var(--orange); text-transform: uppercase; letter-spacing: 1.6px;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.card-title::before {
  content: ''; width: 3px; height: 13px;
  background: var(--orange); border-radius: var(--r-full);
}

/* ── 8. STATS GRID ────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px; margin-bottom: 24px;
}
.stat-card {
  background: linear-gradient(145deg, rgba(24,17,3,.9), rgba(12,8,1,.95));
  border: 1px solid var(--border2);
  border-radius: var(--r-lg);
  padding: 16px 20px; text-align: center;
  position: relative; overflow: hidden;
  transition:
    transform var(--dur-fast) var(--ease-spring),
    border-color var(--dur-normal) var(--ease-standard),
    box-shadow var(--dur-normal) var(--ease-standard);
  box-shadow: var(--shadow-1);
}
.stat-card::after {
  content: ''; position: absolute; bottom: 0; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,122,26,0.45), transparent);
}
.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border);
  box-shadow: var(--shadow-2), 0 0 20px rgba(255,122,26,0.08);
}
.stat-value {
  font-family: var(--font-cond);
  font-size: 38px; font-weight: 900;
  color: var(--orange); line-height: 1;
  margin-bottom: 4px; letter-spacing: -1px;
}
.stat-label {
  font-size: 10.5px; font-weight: 600;
  color: var(--text3); text-transform: uppercase; letter-spacing: .8px;
  font-family: var(--font-cond);
}

/* ── 9. TABLES ────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  background: rgba(18,12,2,.98);
  color: var(--text3);
  font-family: var(--font-cond);
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 10px 14px; text-align: left; white-space: nowrap;
  border-bottom: 1px solid var(--border2);
}
tbody tr { border-bottom: 1px solid var(--border3); transition: background var(--dur-fast); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(255,122,26,0.045); }
tbody td { padding: 10px 14px; vertical-align: middle; }
.td-mono  { font-family: var(--font-mono); color: var(--text2); font-size: 12px; }
.td-muted { color: var(--text3); font-size: 12px; }
.td-actions { white-space: nowrap; text-align: right; }

/* ── 10. BUTTONS ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 18px;
  border-radius: var(--r-full);
  font-family: var(--font-cond);
  font-size: 13px; font-weight: 700; letter-spacing: .4px;
  transition:
    background var(--dur-fast) var(--ease-standard),
    box-shadow var(--dur-fast) var(--ease-standard),
    transform var(--dur-fast) var(--ease-spring),
    border-color var(--dur-fast) var(--ease-standard);
  white-space: nowrap; cursor: pointer;
  position: relative; overflow: hidden;
  border: 1px solid transparent;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .38; pointer-events: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--orange-dim) 0%, var(--orange) 100%);
  color: #1a0600;
  box-shadow: 0 2px 10px rgba(255,122,26,0.38);
  border-color: rgba(255,155,74,.2);
}
.btn-primary:hover {
  box-shadow: 0 4px 20px rgba(255,122,26,0.55);
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-bright) 100%);
}

.btn-secondary {
  background: var(--orange-container);
  color: var(--orange-bright);
  border-color: rgba(255,122,26,0.22);
}
.btn-secondary:hover { background: rgba(255,122,26,0.2); }

.btn-ghost {
  background: transparent; color: var(--text2);
  border-color: var(--border2);
}
.btn-ghost:hover { background: rgba(240,224,200,0.06); border-color: var(--border); color: var(--text); }

.btn-danger {
  background: var(--red-dim); color: var(--red);
  border-color: rgba(255,79,79,0.22);
}
.btn-danger:hover { background: rgba(255,79,79,.2); }

.btn-court {
  background: var(--gold-container); color: var(--gold);
  border-color: rgba(212,168,39,0.22);
}
.btn-court:hover { background: rgba(212,168,39,.2); }

.btn-sm  { padding: 5px 14px; font-size: 12px; }
.btn-xs  { padding: 3px 10px; font-size: 11px; }
.btn-full { width: 100%; }

.btn-icon {
  width: 32px; height: 32px; padding: 0;
  border-radius: var(--r-full);
  background: rgba(240,224,200,0.05);
  color: var(--text2); border: 1px solid var(--border2);
  font-size: 15px;
}
.btn-icon:hover { background: var(--orange-container); color: var(--orange); border-color: var(--border); }

/* ── 11. FORMS ────────────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-group:last-of-type { margin-bottom: 0; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 110px; }
.form-label {
  font-size: 10.5px; font-weight: 700;
  color: var(--text2); letter-spacing: .4px;
  text-transform: uppercase; font-family: var(--font-cond);
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(8,5,1,.85);
  border: 1px solid var(--border2);
  border-radius: var(--r-sm);
  color: var(--text); padding: 9px 12px;
  font-size: 13px; outline: none;
  transition:
    border-color var(--dur-fast) var(--ease-standard),
    box-shadow var(--dur-fast) var(--ease-standard);
  appearance: none; -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,122,26,0.14);
}
.form-input::placeholder { color: var(--text4); }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%23b89a72' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
  padding-right: 30px; cursor: pointer;
}
.form-select option { background: #1a1200; color: var(--text); }
.form-textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.form-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding-top: 16px; border-top: 1px solid var(--border2); margin-top: 4px;
}
.radio-group { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.radio-label { display: flex; align-items: center; gap: 6px; cursor: pointer; color: var(--text2); font-size: 13px; }
.radio-label input { accent-color: var(--orange); cursor: pointer; }

/* ── 12. MODALS ───────────────────────────────────────────────────────────── */
.modal {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal.show { display: flex; animation: modalBgIn var(--dur-normal) var(--ease-standard); }
@keyframes modalBgIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  background: linear-gradient(145deg, #1e1708 0%, #110d03 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px; width: 100%; max-width: 500px;
  box-shadow: var(--shadow-4), 0 0 0 1px rgba(255,122,26,0.06);
  position: relative; overflow: hidden;
  animation: modalBoxIn var(--dur-slow) var(--ease-spring);
}
@keyframes modalBoxIn {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
.modal-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange) 40%, var(--gold) 70%, transparent);
}
.modal-title {
  font-family: var(--font-cond);
  font-size: 19px; font-weight: 800; color: var(--text); letter-spacing: .2px;
  margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border2);
}

/* ── 13. BADGES ───────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: var(--r-full);
  font-family: var(--font-cond); font-size: 10px; font-weight: 700;
  letter-spacing: .6px; text-transform: uppercase; white-space: nowrap;
  border: 1px solid transparent;
}
.badge-orange { background: var(--orange-container); color: var(--orange-bright); border-color: rgba(255,122,26,0.22); }
.badge-gold   { background: var(--gold-container);   color: var(--gold);          border-color: rgba(212,168,39,0.22); }
.badge-green  { background: rgba(61,201,140,.12);    color: var(--green);         border-color: rgba(61,201,140,.22); }
.badge-red    { background: var(--red-dim);           color: var(--red);           border-color: rgba(255,79,79,.22); }
.badge-blue   { background: var(--blue-container);   color: var(--blue);          border-color: rgba(91,168,212,.2); }
.badge-muted  { background: rgba(240,224,200,.05);   color: var(--text3);         border-color: var(--border3); }
.badge-live {
  background: var(--red-dim); color: var(--red); border-color: rgba(255,79,79,.3);
}
.badge-live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--red);
  animation: pulseLive 1.4s ease-in-out infinite;
}
@keyframes pulseLive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.7); }
}

/* ── 14. FLASH MESSAGES ───────────────────────────────────────────────────── */
.flash-messages { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.flash {
  padding: 12px 16px; border-radius: var(--r-md);
  font-size: 13px; font-weight: 500; border-left: 3px solid;
}
.flash-success { background: rgba(61,201,140,.1); border-color: var(--green); color: var(--green); }
.flash-danger  { background: var(--red-dim);       border-color: var(--red);   color: var(--red); }
.flash-warning { background: var(--gold-container); border-color: var(--gold); color: var(--gold); }
.flash-info    { background: var(--orange-container); border-color: var(--orange); color: var(--orange); }

/* ── 15. TOAST ────────────────────────────────────────────────────────────── */
#toast-container {
  position: fixed; top: 16px; right: 16px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
@keyframes toastIn  { from { opacity: 0; transform: translateX(16px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateX(16px) scale(.95); } }

/* ── 16. GAME CARD (list/dashboard) ──────────────────────────────────────── */
.game-card {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-radius: var(--r-md);
  background: var(--bg2); border: 1px solid var(--border2);
  margin-bottom: 6px; color: inherit; text-decoration: none;
  transition:
    background var(--dur-fast), border-color var(--dur-fast),
    transform var(--dur-fast) var(--ease-spring);
}
.game-card:hover { background: var(--bg3); border-color: var(--border); transform: translateX(3px); }
.game-score { font-family: var(--font-mono); font-size: 17px; font-weight: 700; color: var(--orange); min-width: 56px; text-align: center; }
.game-meta  { flex: 1; min-width: 0; }
.game-teams { font-family: var(--font-cond); font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-info  { font-size: 11px; color: var(--text3); margin-top: 2px; }

/* ── 17. AVATAR / MEDIA ───────────────────────────────────────────────────── */
.avatar    { border-radius: var(--r-full); object-fit: cover; background: var(--bg3); }
.avatar-sq { border-radius: var(--r-xs); object-fit: contain; }
.avatar-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg3); border: 1px solid var(--border2); color: var(--text4);
}
.color-swatch { width: 16px; height: 16px; border-radius: var(--r-xs); border: 1px solid rgba(255,255,255,.15); display: inline-block; }

/* ──────────────────────────────────────────────────────────────────────────
   18. GAME CONTROL INTERFACE
   ────────────────────────────────────────────────────────────────────────── */
.gc-wrap {
  display: flex; flex-direction: column; height: 100vh; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(255,122,26,0.07) 0%, transparent 60%),
    #060401;
  font-family: var(--font-body); color: var(--text);
}
.gc-wrap::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(255,122,26,0.018) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(255,122,26,0.018) 60px);
}

/* Top bar */
.gc-topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 14px;
  background: linear-gradient(180deg, rgba(18,12,2,.99) 0%, rgba(12,8,1,.99) 100%);
  border-bottom: 1px solid var(--border2);
  flex-shrink: 0; z-index: 10; position: relative;
  box-shadow: 0 2px 20px rgba(0,0,0,.6);
}

/* Scoreboard */
.scoreboard {
  display: flex; align-items: center; gap: 6px;
  flex: 1; min-width: 0; justify-content: center;
}
.sb-team { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; }
.sb-name {
  font-family: var(--font-cond); font-size: 10.5px; font-weight: 700;
  color: var(--text2); text-transform: uppercase; letter-spacing: .8px;
  white-space: nowrap; max-width: 90px; overflow: hidden; text-overflow: ellipsis;
}
.sb-score {
  font-family: var(--font-cond); font-size: 40px; font-weight: 900;
  color: var(--text); line-height: 1; letter-spacing: -1px;
  text-shadow: 0 0 24px rgba(255,122,26,.25);
}
.sb-meta { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 0 10px; }
.sb-quarter {
  font-family: var(--font-cond); font-size: 12px; font-weight: 800;
  color: var(--orange); letter-spacing: 1px; text-transform: uppercase;
}
.sb-timer {
  font-family: var(--font-mono); font-size: 22px; font-weight: 700;
  letter-spacing: 1.5px; line-height: 1;
}
.sb-timer.running { color: var(--green); text-shadow: 0 0 16px rgba(61,201,140,.45); }
.sb-timer.stopped { color: var(--text2); }

.quarter-bar { display: flex; gap: 3px; margin-top: 3px; }
.qb-cell {
  text-align: center; padding: 2px 5px; border-radius: var(--r-xs);
  background: var(--bg2); border: 1px solid var(--border2); min-width: 34px;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.qb-cell.current { background: var(--orange-container); border-color: rgba(255,122,26,.3); }
.qb-cell .lbl { font-family: var(--font-cond); font-size: 7.5px; font-weight: 700; color: var(--text4); text-transform: uppercase; }
.qb-cell .val { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--text2); }
.qb-cell.current .val { color: var(--orange-bright); }

.sb-fouls-row { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.sb-foul-badge {
  font-family: var(--font-cond); font-size: 10px; font-weight: 700;
  color: var(--text3); padding: 1px 8px; border-radius: var(--r-full);
  background: var(--bg2); border: 1px solid var(--border2);
  transition: all var(--dur-fast);
}
.sb-foul-badge.bonus { color: var(--red); background: var(--red-dim); border-color: rgba(255,79,79,.3); }

/* Body */
.gc-body {
  display: grid; grid-template-columns: 1fr 256px 1fr;
  flex: 1; overflow: hidden; position: relative; z-index: 1;
}
.gc-col { display: flex; flex-direction: column; overflow: hidden; border-right: 1px solid var(--border2); }
.gc-col:last-child { border-right: none; }
.gc-col-center { display: flex; flex-direction: column; overflow: hidden; border-left: 1px solid var(--border2); border-right: 1px solid var(--border2); }

/* Team header in column */
.gc-team-header {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border2); flex-shrink: 0;
}
.gc-team-logo { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; border-radius: var(--r-xs); }
.gc-team-label {
  font-family: var(--font-cond); font-size: 13px; font-weight: 800;
  color: var(--text); letter-spacing: .2px; flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Tabs */
.tab-bar { display: flex; border-bottom: 1px solid var(--border2); flex-shrink: 0; background: rgba(6,4,1,.6); }
.tab-btn {
  flex: 1; padding: 7px 4px;
  font-family: var(--font-cond); font-size: 10.5px; font-weight: 700;
  color: var(--text4); letter-spacing: .6px; text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast), border-color var(--dur-fast);
  cursor: pointer;
}
.tab-btn.active { color: var(--orange); border-bottom-color: var(--orange); }
.tab-btn:hover:not(.active) { color: var(--text2); }
.tab-panel { display: none; flex: 1; overflow-y: auto; }
.tab-panel.active { display: flex; flex-direction: column; }

/* Section label */
.sec-label {
  font-family: var(--font-cond); font-size: 8.5px; font-weight: 700;
  color: var(--text4); text-transform: uppercase; letter-spacing: 1.2px;
  padding: 7px 12px 3px;
}

/* Player line */
.player-line {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-bottom: 1px solid var(--border3);
  transition: background var(--dur-fast);
}
.player-line:hover { background: rgba(255,122,26,0.05); }
.player-line.on-court { background: rgba(255,122,26,0.07); }
.player-line.on-court .player-number { color: var(--orange); }
.player-line.fouled-out { opacity: .35; }
.player-number {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  color: var(--text3); min-width: 24px; flex-shrink: 0;
}
.player-name {
  font-size: 12.5px; font-weight: 600; color: var(--text);
  flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player-pos {
  font-family: var(--font-cond); font-size: 9px; font-weight: 700;
  color: var(--text4); padding: 1px 4px; background: var(--bg3); border-radius: var(--r-xs);
}
/* Позиция-селектор для Старт-5 (в строке игрока) */
.pos-sel {
  font-family: var(--font-cond); font-size: 9px; font-weight: 700;
  color: var(--text3);
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--r-xs);
  padding: 1px 2px;
  cursor: pointer;
  appearance: none; -webkit-appearance: none;
  width: 34px; text-align: center;
  outline: none;
  transition: border-color var(--dur-fast), color var(--dur-fast);
  flex-shrink: 0;
}
.pos-sel:hover { border-color: var(--border); color: var(--text2); }
.pos-sel:focus { border-color: var(--orange); color: var(--orange); box-shadow: 0 0 0 2px rgba(255,122,26,.12); }
.pos-sel option { background: #1a1200; color: var(--text); }
.player-stats { font-family: var(--font-mono); font-size: 9.5px; color: var(--text4); white-space: nowrap; flex-shrink: 0; }

/* Event buttons */
.ev-group { padding: 7px 8px; }
.ev-group-label {
  font-family: var(--font-cond); font-size: 8.5px; font-weight: 700;
  color: var(--text4); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px;
}
.ev-btns { display: flex; flex-wrap: wrap; gap: 3px; }
.ev-btn {
  padding: 4px 9px; border-radius: var(--r-sm);
  font-family: var(--font-cond); font-size: 11px; font-weight: 700; letter-spacing: .2px;
  cursor: pointer; background: var(--bg3); color: var(--text2);
  border: 1px solid var(--border2);
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform 80ms var(--ease-spring);
}
.ev-btn:hover { background: var(--bg4); color: var(--text); border-color: var(--border); }
.ev-btn:active { transform: scale(.95); }
.btn-2pt  { background: rgba(61,201,140,.1);   color: var(--green); border-color: rgba(61,201,140,.22); }
.btn-2pt:hover  { background: rgba(61,201,140,.18); }
.btn-3pt  { background: var(--orange-container); color: var(--orange-bright); border-color: rgba(255,122,26,.25); }
.btn-3pt:hover  { background: rgba(255,122,26,.2); }
.btn-ft   { background: var(--gold-container);  color: var(--gold); border-color: rgba(212,168,39,.2); }
.btn-ft:hover   { background: rgba(212,168,39,.2); }
.btn-foul { background: var(--red-dim); color: var(--red); border-color: rgba(255,79,79,.22); }
.btn-foul:hover { background: rgba(255,79,79,.2); }

/* Status grid */
.status-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: 3px;
}
.status-btn {
  padding: 5px 6px; border-radius: var(--r-sm);
  font-family: var(--font-cond); font-size: 10px; font-weight: 700; letter-spacing: .2px;
  cursor: pointer; background: var(--bg2); color: var(--text3);
  border: 1px solid var(--border2); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: all var(--dur-fast) var(--ease-standard);
}
.status-btn:hover { background: var(--bg3); color: var(--text2); border-color: var(--border); }
.status-btn.active {
  background: var(--orange-container); color: var(--orange-bright);
  border-color: rgba(255,122,26,.35);
  box-shadow: 0 0 10px rgba(255,122,26,.2);
}

/* Overlay buttons */
.ovl-btn {
  padding: 5px 10px; border-radius: var(--r-sm);
  font-family: var(--font-cond); font-size: 11px; font-weight: 700;
  cursor: pointer; background: var(--bg3); color: var(--text2);
  border: 1px solid var(--border2);
  transition: all var(--dur-fast) var(--ease-standard);
}
.ovl-btn:hover { background: var(--bg4); color: var(--text); border-color: var(--border); }
.ovl-btn.active {
  background: var(--orange-container); color: var(--orange-bright);
  border-color: rgba(255,122,26,.35); box-shadow: 0 0 8px rgba(255,122,26,.22);
}

/* Event log */
.marker-item {
  padding: 7px 12px; border-bottom: 1px solid var(--border3);
  display: flex; flex-direction: column; gap: 2px;
  transition: background var(--dur-fast);
}
.marker-item:hover { background: rgba(255,122,26,.04); }
.marker-qtr {
  font-family: var(--font-cond); font-size: 9px; font-weight: 700;
  background: var(--bg3); color: var(--text3); border-radius: var(--r-xs); padding: 0 4px;
}
.marker-time  { font-family: var(--font-mono); font-size: 10.5px; color: var(--text3); }
.marker-type  { font-size: 12px; font-weight: 600; color: var(--text); }
.marker-player { font-family: var(--font-cond); font-size: 12px; font-weight: 700; color: var(--orange); }
.marker-actions { display: flex; gap: 4px; margin-top: 2px; }
.marker-btn {
  padding: 2px 8px; border-radius: var(--r-xs);
  font-family: var(--font-cond); font-size: 9.5px; font-weight: 700;
  cursor: pointer;
  background: var(--bg3); color: var(--text3); border: 1px solid var(--border2);
  transition: filter var(--dur-fast);
}
.marker-btn.broadcast     { color: var(--blue);   background: var(--blue-container);   border-color: rgba(91,168,212,.22); }
.marker-btn.active-broadcast { color: var(--orange); background: var(--orange-container); border-color: rgba(255,122,26,.3); }
.marker-btn.delete        { color: var(--red);    background: var(--red-dim);           border-color: rgba(255,79,79,.22); }
.marker-btn:hover { filter: brightness(1.35); }

/* ── 19. RESPONSIVE ───────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .sidebar { width: 56px; }
  .sidebar-brand, .nav-section-label, .sidebar-user-info { display: none !important; }
  .nav-item span:last-child { display: none; }
  .nav-item { justify-content: center; padding: 10px; }
  .nav-item.active::before { display: none; }
  .sidebar-logo { padding: 14px 10px; justify-content: center; }
  .sidebar-logo-icon { width: 30px; height: 30px; }
  .sidebar-user { padding: 8px; justify-content: center; }
  .main { padding: 16px; }
  .gc-body { grid-template-columns: 1fr 220px; }
  .gc-col:last-child { display: none; }
}
@media (max-width: 640px) {
  .sb-score { font-size: 30px; }
  .quarter-bar { display: none; }
  .gc-body { grid-template-columns: 1fr; }
  .gc-col-center { display: none; }
}

/* ── 20. SCROLLBARS ───────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,122,26,.22); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,122,26,.42); }

/* ── 21. UTILITY ──────────────────────────────────────────────────────────── */
.flex       { display: flex; }
.flex-center { display: flex; align-items: center; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.text-orange { color: var(--orange); } .text-gold { color: var(--gold); }
.text-green  { color: var(--green);  } .text-red  { color: var(--red);  }
.text-muted  { color: var(--text3);  }
.font-mono   { font-family: var(--font-mono); }
.font-cond   { font-family: var(--font-cond); }
.fw-700 { font-weight: 700; } .fw-900 { font-weight: 900; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden   { display: none !important; }

/* ══════════════════════════════════════════════════════════════════════════════
   22. ANIMATIONS & MICRO-INTERACTIONS
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Keyframes library ─────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.93); }
  to   { opacity: 1; transform: none; }
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,122,26,0); }
  50%       { box-shadow: 0 0 16px 3px rgba(255,122,26,0.22); }
}
@keyframes borderFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes scanLine {
  0%   { transform: translateY(-100%); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(400%); opacity: 0; }
}
@keyframes numberFlash {
  0%   { color: var(--orange-bright); text-shadow: 0 0 20px rgba(255,122,26,.8); }
  100% { color: var(--text); text-shadow: 0 0 24px rgba(255,122,26,.25); }
}
@keyframes timerTick {
  0%   { opacity: 1; }
  45%  { opacity: 1; }
  50%  { opacity: .4; }
  55%  { opacity: 1; }
  100% { opacity: 1; }
}
@keyframes liveRing {
  0%   { transform: scale(1);   opacity: .7; }
  100% { transform: scale(2.4); opacity: 0; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes rotateGlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Page entrance: staggered fade-up ─────────────────────────────────────── */
.main > * {
  animation: fadeUp var(--dur-slow) var(--ease-decelerate) both;
}
.main > *:nth-child(1) { animation-delay: 40ms; }
.main > *:nth-child(2) { animation-delay: 90ms; }
.main > *:nth-child(3) { animation-delay: 140ms; }
.main > *:nth-child(4) { animation-delay: 190ms; }
.main > *:nth-child(5) { animation-delay: 240ms; }

/* ── Stat cards: stagger + float on hover ─────────────────────────────────── */
.stats-grid .stat-card {
  animation: scaleIn var(--dur-slow) var(--ease-spring) both;
}
.stats-grid .stat-card:nth-child(1) { animation-delay: 60ms; }
.stats-grid .stat-card:nth-child(2) { animation-delay: 110ms; }
.stats-grid .stat-card:nth-child(3) { animation-delay: 160ms; }
.stats-grid .stat-card:nth-child(4) { animation-delay: 210ms; }

/* Animated shimmer on stat value */
.stat-value {
  background: linear-gradient(90deg,
    var(--orange) 0%,
    var(--orange-bright) 40%,
    var(--gold) 60%,
    var(--orange) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s linear infinite;
}

/* ── Cards: animated top-border + hover lift ──────────────────────────────── */
.card::before {
  background-size: 200% auto;
  animation: gradientShift 6s linear infinite;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-3), 0 0 24px rgba(255,122,26,0.08);
}
.card { transition: transform var(--dur-normal) var(--ease-spring), border-color var(--dur-normal), box-shadow var(--dur-normal); }

/* ── Sidebar nav: slide-in on load ────────────────────────────────────────── */
.nav-item {
  animation: slideInLeft 280ms var(--ease-decelerate) both;
}
.nav-section:nth-child(1) .nav-item:nth-child(1) { animation-delay: 80ms; }
.nav-section:nth-child(1) .nav-item:nth-child(2) { animation-delay: 110ms; }
.nav-section:nth-child(2) .nav-item:nth-child(1) { animation-delay: 150ms; }
.nav-section:nth-child(2) .nav-item:nth-child(2) { animation-delay: 175ms; }
.nav-section:nth-child(2) .nav-item:nth-child(3) { animation-delay: 200ms; }
.nav-section:nth-child(2) .nav-item:nth-child(4) { animation-delay: 225ms; }
.nav-section:nth-child(2) .nav-item:nth-child(5) { animation-delay: 250ms; }
.nav-section:nth-child(2) .nav-item:nth-child(6) { animation-delay: 275ms; }
.nav-section:nth-child(2) .nav-item:nth-child(7) { animation-delay: 300ms; }
.nav-section:nth-child(2) .nav-item:nth-child(8) { animation-delay: 325ms; }
.nav-section:nth-child(3) .nav-item:nth-child(1) { animation-delay: 360ms; }
.nav-section:nth-child(3) .nav-item:nth-child(2) { animation-delay: 385ms; }

/* Active nav item pulsing indicator */
.nav-item.active::before {
  animation: glowPulse 2.5s ease-in-out infinite;
  box-shadow: 2px 0 8px rgba(255,122,26,0.6);
}

/* ── Buttons: gradient sweep on hover ─────────────────────────────────────── */
.btn-primary {
  background-size: 200% auto;
  background-image: linear-gradient(135deg,
    var(--orange-dim) 0%, var(--orange) 40%, var(--orange-bright) 60%, var(--orange-dim) 100%);
  transition: background-position var(--dur-slow) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard),
              transform var(--dur-fast) var(--ease-spring);
}
.btn-primary:hover {
  background-position: right center;
  box-shadow: 0 6px 24px rgba(255,122,26,0.55), 0 2px 8px rgba(255,122,26,0.3);
}

/* Ripple shimmer overlay */
.btn::before {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: skewX(-20deg);
  transition: left var(--dur-slow) var(--ease-standard);
  pointer-events: none;
}
.btn:hover::before { left: 150%; }

/* ── Buttons: bounce on click ────────────────────────────────────────────── */
.btn:active { animation: none; transform: scale(.96); }

/* ── Table rows: stagger on load ──────────────────────────────────────────── */
tbody tr {
  animation: fadeIn 300ms var(--ease-standard) both;
}
tbody tr:nth-child(1)  { animation-delay: 60ms; }
tbody tr:nth-child(2)  { animation-delay: 80ms; }
tbody tr:nth-child(3)  { animation-delay: 100ms; }
tbody tr:nth-child(4)  { animation-delay: 120ms; }
tbody tr:nth-child(5)  { animation-delay: 140ms; }
tbody tr:nth-child(6)  { animation-delay: 160ms; }
tbody tr:nth-child(7)  { animation-delay: 180ms; }
tbody tr:nth-child(8)  { animation-delay: 200ms; }
tbody tr:nth-child(n+9){ animation-delay: 220ms; }

/* ── Game cards: slide-in ─────────────────────────────────────────────────── */
.game-card {
  animation: slideInLeft 280ms var(--ease-decelerate) both;
}

/* ── Badges: pop on hover ─────────────────────────────────────────────────── */
.badge {
  transition: transform 100ms var(--ease-spring), filter 100ms;
}
.badge:hover { transform: scale(1.06); filter: brightness(1.15); }

/* Live badge: double-ring pulse ──────────────────────────────────────────── */
.badge-live { position: relative; }
.badge-live::after {
  content: '';
  position: absolute; inset: -1px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255,79,79,0.5);
  animation: liveRing 1.8s ease-out infinite;
  pointer-events: none;
}

/* ── Score numbers: flash animation (triggered via JS class) ──────────────── */
.score-flash { animation: numberFlash 600ms var(--ease-decelerate) both; }

/* ── Timer: subtle tick when running ─────────────────────────────────────── */
.sb-timer.running { animation: timerTick 1s steps(1) infinite; }

/* ── Stat cards: scan line hover effect ──────────────────────────────────── */
.stat-card { overflow: hidden; }
.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,122,26,0.6), transparent);
  opacity: 0;
  transition: opacity var(--dur-normal);
}
.stat-card:hover::before { opacity: 1; animation: scanLine 600ms var(--ease-standard) forwards; }

/* ── Overlay/status buttons: active glow ─────────────────────────────────── */
.status-btn.active { animation: glowPulse 2.8s ease-in-out infinite; }
.ovl-btn.active    { animation: glowPulse 3s ease-in-out infinite; }

/* ── Sidebar logo icon: subtle float ─────────────────────────────────────── */
.sidebar-logo-icon { animation: floatY 4s ease-in-out infinite; }

/* ── Modal backdrop: smoother ────────────────────────────────────────────── */
.modal.show {
  animation: fadeIn var(--dur-fast) var(--ease-standard);
}

/* ── Event log: new item flash ───────────────────────────────────────────── */
.marker-item.new-event {
  animation: fadeUp 250ms var(--ease-spring) both,
             glowPulse 600ms var(--ease-standard) both;
}

/* ── gc-topbar gradient border: animated ─────────────────────────────────── */
.gc-topbar::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%, rgba(255,122,26,0.5) 30%,
    rgba(212,168,39,0.5) 60%, transparent 100%);
  background-size: 200% auto;
  animation: gradientShift 5s linear infinite;
}

/* ── Infobasket status dot: when active ──────────────────────────────────── */
#ib-status-dot[style*="green"] {
  animation: glowPulse 1.5s ease-in-out infinite !important;
}

/* ── Form focus: border glow expansion ───────────────────────────────────── */
.form-input:focus, .form-select:focus, .form-textarea:focus {
  transition:
    border-color 100ms var(--ease-standard),
    box-shadow 200ms var(--ease-spring);
}

/* ── Sidebar footer user card: slide-up ──────────────────────────────────── */
.sidebar-footer { animation: fadeUp 400ms var(--ease-decelerate) both; animation-delay: 350ms; }

/* ── Page title underline: grow on load ──────────────────────────────────── */
.page-title h1::after {
  animation: scaleInX 400ms var(--ease-spring) both;
  animation-delay: 200ms;
  transform-origin: left;
}
@keyframes scaleInX {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

/* ── Prevent animation on reduced-motion ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
