/* ══════════════════════════════════════════════════
   FootGraphics UI v3 — Full Redesign
   Layout: Sidebar + Main  |  Themes: dark / light / orange
   Fonts: Outfit + Space Grotesk + JetBrains Mono
══════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600;700&display=swap');

/* ══ 1. VARIABLES — Dark theme (default) ══ */
:root {
  --bg:        #060a10;
  --bg2:       #0b1220;
  --bg3:       #111a2e;
  --bg4:       #182238;
  --bg5:       #1e2a44;
  --border:    rgba(0,210,120,.09);
  --border2:   rgba(0,210,120,.20);
  --border3:   rgba(0,210,120,.40);
  --neon:      #00e88a;
  --neon2:     #00ffaa;
  --neon-dim:  rgba(0,232,138,.12);
  --neon-glow: 0 0 16px rgba(0,232,138,.45), 0 0 40px rgba(0,232,138,.15);
  --blue:      #3d8bff;
  --blue-dim:  rgba(61,139,255,.12);
  --red:       #ff3d5a;
  --red-dim:   rgba(255,61,90,.12);
  --yellow:    #ffcc3d;
  --yel-dim:   rgba(255,204,61,.10);
  --purple:    #a855f7;
  --text:      #e2ecff;
  --text2:     rgba(226,236,255,.58);
  --text3:     rgba(226,236,255,.30);
  --radius:    9px;
  --radius-lg: 14px;
  --radius-sm: 6px;
  --shadow:    0 4px 28px rgba(0,0,0,.65);
  --card-shadow: 0 2px 16px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.035);
  --font:      'Outfit', system-ui, sans-serif;
  --font-head: 'Space Grotesk', 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  /* Layout */
  --sidebar-w:   240px;
  --sidebar-w-c: 64px;
  --topbar-h:    54px;
  --sidebar-bg:  rgba(6,10,16,.97);
}

/* ══ 2. RESET ══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 40% at 10% -10%, rgba(0,232,138,.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 110%, rgba(61,139,255,.05) 0%, transparent 60%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
}
a { color: var(--neon); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ══ 3. SCROLLBAR ══ */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg5); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,232,138,.25); }

/* ══ 4. LAYOUT ══ */
.layout { display: flex; min-height: 100vh; }
.layout-main {
  flex: 1; min-width: 0;
  margin-left: var(--sidebar-w);
  display: flex; flex-direction: column;
  transition: margin-left .3s cubic-bezier(.4,0,.2,1);
}
body.sidebar-collapsed .layout-main { margin-left: var(--sidebar-w-c); }
/* Graphics pages: no sidebar, no topbar → full screen */
body.graphics-page .layout-main { margin-left: 0; }

/* ══ 5. SIDEBAR ══ */
.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0;
  width: var(--sidebar-w);
  background: linear-gradient(170deg, #07091e 0%, #060d15 55%, #060a10 100%);
  border-right: 1px solid rgba(0,232,138,.07);
  display: flex; flex-direction: column;
  z-index: 200;
  transition: width .3s cubic-bezier(.4,0,.2,1), transform .3s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.sidebar::before {
  content: '';
  position: absolute;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(0,232,138,.09) 0%, transparent 65%);
  top: -70px; left: -50px;
  border-radius: 50%;
  pointer-events: none;
  animation: sideOrb 7s ease-in-out infinite;
}
.sidebar::after {
  content: '';
  position: absolute;
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(61,139,255,.06) 0%, transparent 65%);
  bottom: 60px; right: -40px;
  border-radius: 50%;
  pointer-events: none;
  animation: sideOrb 10s ease-in-out infinite reverse;
}
@keyframes sideOrb { 0%,100%{opacity:.7;transform:scale(1)} 50%{opacity:1;transform:scale(1.2)} }
body.sidebar-collapsed .sidebar { width: var(--sidebar-w-c); }
body.graphics-page .sidebar { transform: translateX(-100%); pointer-events: none; }

/* Logo */
.sidebar-logo {
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px; height: 56px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  overflow: hidden; white-space: nowrap; flex-shrink: 0;
}
.sidebar-logo-icon {
  width: 30px; height: 30px; flex-shrink: 0;
  color: var(--neon);
  filter: drop-shadow(0 0 6px rgba(0,232,138,.6));
}
.sidebar-logo-text {
  font-family: var(--font-head); font-size: 16px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  background: linear-gradient(90deg, var(--neon) 0%, var(--blue) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  transition: opacity .2s, width .2s;
}
body.sidebar-collapsed .sidebar-logo-text { opacity: 0; width: 0; overflow: hidden; }
body.sidebar-collapsed .sidebar-logo { justify-content: center; }

/* Nav */
.sidebar-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 10px 8px; }
.sidebar-section {
  font-size: 9.5px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--text3);
  padding: 14px 8px 5px; white-space: nowrap;
  transition: opacity .2s;
}
body.sidebar-collapsed .sidebar-section { opacity: 0; height: 0; padding: 0; overflow: hidden; }

.sidebar-link {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: var(--radius-sm);
  color: var(--text2); font-size: 13.5px; font-weight: 500;
  transition: all .15s; white-space: nowrap; overflow: hidden;
  position: relative; text-decoration: none; cursor: pointer;
}
.sidebar-link:hover {
  background: rgba(255,255,255,.05);
  color: var(--text);
  text-decoration: none;
}
.sidebar-link:hover::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,232,138,.05) 0%, transparent 80%);
  border-radius: inherit;
  pointer-events: none;
}
.sidebar-link.active {
  background: linear-gradient(90deg, rgba(0,232,138,.13) 0%, rgba(0,232,138,.04) 100%);
  color: var(--neon);
  text-shadow: 0 0 12px rgba(0,232,138,.35);
}
.sidebar-link.active::before {
  content: ''; position: absolute;
  left: 0; top: 18%; bottom: 18%; width: 3px;
  background: var(--neon); border-radius: 0 3px 3px 0;
  box-shadow: 0 0 10px rgba(0,232,138,.7), 0 0 20px rgba(0,232,138,.3);
}
.sl-icon { width: 18px; height: 18px; flex-shrink: 0; opacity: .55; transition: all .2s; }
.sidebar-link:hover .sl-icon { opacity: .85; }
.sidebar-link.active .sl-icon {
  opacity: 1;
  filter: drop-shadow(0 0 5px rgba(0,232,138,.6));
  color: var(--neon);
}
.sl-label { transition: opacity .2s; overflow: hidden; }
body.sidebar-collapsed .sl-label { opacity: 0; width: 0; }
body.sidebar-collapsed .sidebar-link { justify-content: center; padding: 10px; }
body.sidebar-collapsed .sidebar-link::before { display: none; }

/* Collapse button */
.sidebar-toggle-btn {
  position: absolute; right: -11px; top: 68px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--border2);
  color: var(--text3); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s; z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.sidebar-toggle-btn:hover { background: var(--bg4); border-color: var(--border3); color: var(--text); }
.sidebar-toggle-btn svg { width: 11px; height: 11px; transition: transform .3s; }
body.sidebar-collapsed .sidebar-toggle-btn svg { transform: rotate(180deg); }

/* Footer */
.sidebar-footer {
  padding: 10px 8px; border-top: 1px solid rgba(255,255,255,.05);
  display: flex; flex-direction: column; gap: 6px; flex-shrink: 0;
}
.sidebar-user {
  display: flex; align-items: center; gap: 9px;
  padding: 8px; border-radius: var(--radius-sm); overflow: hidden;
}
.sidebar-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(0,232,138,.2) 0%, rgba(61,139,255,.15) 100%);
  border: 1.5px solid rgba(0,232,138,.35);
  color: var(--neon); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  box-shadow: 0 0 12px rgba(0,232,138,.15), inset 0 1px 0 rgba(255,255,255,.08);
}
.sidebar-user-info { overflow: hidden; transition: opacity .2s, width .2s; }
.sidebar-user-name { font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-level { font-size: 10px; color: var(--text3); font-weight: 600; }
body.sidebar-collapsed .sidebar-user-info { opacity: 0; width: 0; }
body.sidebar-collapsed .sidebar-user { justify-content: center; }

.sidebar-actions { display: flex; gap: 5px; padding: 0 2px; }
body.sidebar-collapsed .sidebar-actions { flex-direction: column; align-items: center; }
.sidebar-btn {
  flex: 1; height: 32px; border-radius: var(--radius-sm);
  background: none; border: 1px solid var(--border);
  color: var(--text3); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 11px; font-weight: 600; font-family: var(--font);
  transition: all .15s; white-space: nowrap; overflow: hidden;
}
.sidebar-btn:hover { background: var(--bg3); border-color: var(--border2); color: var(--text); text-decoration: none; }
.sidebar-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.sidebar-btn-text { transition: opacity .2s, width .2s; }
body.sidebar-collapsed .sidebar-btn { flex: none; width: 32px; }
body.sidebar-collapsed .sidebar-btn-text { opacity: 0; width: 0; }

/* ══ 6. TOPBAR ══ */
.topbar {
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(11,18,32,.96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 100;
  flex-shrink: 0;
}
body.graphics-page .topbar { display: none; }
body.graphics-page .page-content { padding: 0; max-width: none; overflow: hidden; }

.topbar-menu-btn {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  background: none; border: 1px solid var(--border);
  color: var(--text3); cursor: pointer;
  display: none; align-items: center; justify-content: center;
  transition: all .15s;
}
.topbar-menu-btn svg { width: 16px; height: 16px; }
.topbar-menu-btn:hover { background: var(--bg3); color: var(--text); }

.topbar-search-wrap { position: relative; flex: 1; max-width: 400px; }
.topbar-search-wrap svg {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: var(--text3); pointer-events: none;
}
.nav-search-input {
  width: 100%; background: var(--bg3); border: 1px solid var(--border2);
  color: var(--text); border-radius: 7px; padding: 7px 12px 7px 34px;
  font-size: 13px; font-family: var(--font); outline: none; transition: all .18s;
}
.nav-search-input:focus { border-color: var(--neon); box-shadow: 0 0 0 3px var(--neon-dim); background: var(--bg2); }
.nav-search-input::placeholder { color: var(--text3); }

.nav-search-results {
  position: absolute; top: calc(100% + 5px); left: 0; right: 0;
  background: var(--bg2); border: 1px solid var(--border2); border-radius: 9px;
  box-shadow: var(--shadow); z-index: 9999; overflow: hidden;
}
.nsr-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; color: var(--text); text-decoration: none;
  font-size: 13px; border-bottom: 1px solid var(--border); transition: background .1s;
}
.nsr-item:last-child { border-bottom: none; }
.nsr-item:hover { background: var(--neon-dim); color: var(--neon); }

.topbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* ══ 7. PAGE CONTENT ══ */
.page-content { flex: 1; padding: 24px 28px 48px; max-width: 1700px; }

/* Legacy compat */
.main-content { padding: 24px; max-width: 1700px; }

/* ══ 8. PAGE HEADER ══ */
.page-header { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.page-title { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--text); letter-spacing: -.5px; }
.page-sub { color: var(--text2); font-size: 14px; margin-top: 2px; }
.breadcrumb { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: .5px; }
.id-badge {
  font-size: 13px; color: var(--neon); background: var(--neon-dim);
  padding: 2px 10px; border-radius: 5px; border: 1px solid rgba(0,232,138,.18);
  font-family: var(--font-mono);
}

/* ══ 9. FLASH ══ */
.flash-container { position: fixed; top: 16px; right: 20px; z-index: 999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.flash {
  padding: 12px 40px 12px 16px; border-radius: var(--radius); font-size: 13px;
  position: relative; min-width: 280px; max-width: 420px;
  font-weight: 500; pointer-events: all;
  animation: flashSlideIn .3s cubic-bezier(.34,1.56,.64,1);
  backdrop-filter: blur(8px);
}
@keyframes flashSlideIn { from { transform: translateX(40px) scale(.95); opacity: 0; } to { transform: translateX(0) scale(1); opacity: 1; } }
.flash-success { background: rgba(0,232,138,.09); border: 1px solid rgba(0,232,138,.28); color: var(--neon2); }
.flash-danger  { background: rgba(255,61,90,.09);  border: 1px solid rgba(255,61,90,.28);  color: #ff8888; }
.flash-warning { background: rgba(255,204,61,.09); border: 1px solid rgba(255,204,61,.28); color: var(--yellow); }
.flash-close { position: absolute; right: 12px; top: 10px; background: none; border: none; color: inherit; cursor: pointer; font-size: 16px; opacity: .5; }
.flash-close:hover { opacity: 1; }

/* ══ 10. CARDS ══ */
.card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .18s; }
.card:hover { border-color: var(--border2); }
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.card-title {
  font-family: var(--font-head); font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px; color: var(--neon);
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.card-body { padding: 18px; }

/* ── 3D tilt prep for DB elements ── */
.table-card, .card, .lineup-team-card, .bento-cell {
  transform-style: preserve-3d;
}

/* ══ 11. STATS GRID (Dashboard) ══ */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }

.stat-card {
  background: rgba(255,255,255,.028);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px; padding: 22px 24px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
  cursor: default;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform-style: preserve-3d;
  will-change: transform;
}
.stat-card::before {
  content: ''; position: absolute;
  top: 0; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  opacity: 0; transition: opacity .3s;
}
.stat-card::after {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 70px;
  background: linear-gradient(to bottom, rgba(0,232,138,.05), transparent);
  opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
.stat-card:hover {
  border-color: rgba(0,232,138,.22);
  box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(0,232,138,.1), inset 0 1px 0 rgba(255,255,255,.06);
}
.stat-card:hover::before, .stat-card:hover::after { opacity: 1; }

.stat-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,232,138,.15) 0%, rgba(0,232,138,.06) 100%);
  border: 1px solid rgba(0,232,138,.22);
  display: flex; align-items: center; justify-content: center;
  color: var(--neon); position: relative;
  box-shadow: 0 0 16px rgba(0,232,138,.12), inset 0 1px 0 rgba(255,255,255,.08);
  transition: box-shadow .2s, transform .2s;
}
.stat-card:hover .stat-icon {
  box-shadow: 0 0 24px rgba(0,232,138,.25), inset 0 1px 0 rgba(255,255,255,.08);
  transform: scale(1.05);
}
.stat-icon svg { width: 20px; height: 20px; filter: drop-shadow(0 0 4px rgba(0,232,138,.4)); }
.stat-value {
  font-family: var(--font-mono); font-size: 38px; font-weight: 700;
  color: var(--neon); text-shadow: var(--neon-glow);
  line-height: 1; letter-spacing: -1px; position: relative;
}
.stat-label { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: .8px; margin-top: 2px; font-family: var(--font-head); position: relative; }

/* ══ 12. BUTTONS ══ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 7px;
  font-family: var(--font); font-size: 13px; font-weight: 600;
  text-decoration: none; transition: all .17s;
  white-space: nowrap; letter-spacing: .2px;
  cursor: pointer; border: 1px solid transparent; line-height: 1.4;
}
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn:hover { text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg,#00c97a,#009a5e); color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(0,201,122,.25);
}
.btn-primary:hover { background: linear-gradient(135deg,#00e88a,#00b36a); box-shadow: 0 0 0 2px rgba(0,232,138,.3), 0 4px 18px rgba(0,201,122,.35); transform: translateY(-1px); color: #fff; }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: var(--bg3); color: var(--text2); border-color: var(--border2); }
.btn-ghost:hover { background: var(--bg4); color: var(--text); border-color: var(--border3); }
.btn-danger { background: var(--red-dim); color: var(--red); border-color: rgba(255,61,90,.28); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-blue { background: var(--blue-dim); color: var(--blue); border-color: rgba(61,139,255,.28); }
.btn-blue:hover { background: var(--blue); color: #fff; }
.btn-neon { background: var(--neon-dim); color: var(--neon); border-color: rgba(0,232,138,.3); }
.btn-neon:hover { background: var(--neon); color: #060a10; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-xs { padding: 3px 9px; font-size: 11px; border-radius: 5px; }
.btn-large { padding: 12px 30px; font-size: 15px; }
.btn-full { width: 100%; justify-content: center; }
.btn-logout {
  font-size: 12px; color: var(--text3); text-decoration: none;
  padding: 5px 12px; border: 1px solid var(--border); border-radius: 6px; transition: all .2s;
}
.btn-logout:hover { color: var(--red); border-color: var(--red); background: var(--red-dim); }

/* ══ 13. FORMS ══ */
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label { font-size: 11px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: .9px; font-family: var(--font-head); }
.form-input, .form-select, .form-textarea {
  background: var(--bg3); border: 1px solid var(--border2);
  color: var(--text); border-radius: 7px; padding: 9px 13px;
  font-family: var(--font); font-size: 13px; outline: none; transition: all .2s;
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--neon); box-shadow: 0 0 0 3px var(--neon-dim); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text3); }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(226,236,255,0.35)' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; padding-right: 32px;
}
.form-input-sm, .form-select-sm { padding: 5px 9px; font-size: 12px; border-radius: 6px; }
.form-input-xs { width: 60px; padding: 3px 7px; font-size: 12px; border-radius: 5px; }
.form-textarea { resize: vertical; min-height: 80px; }
.form-file { color: var(--text2); font-size: 12px; }
.form-color { height: 38px; width: 64px; border: 1px solid var(--border2); border-radius: 6px; background: var(--bg3); cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row { display: flex; gap: 16px; }
.form-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--card-shadow); }
.form-actions { display: flex; gap: 10px; margin-top: 18px; }
.form-group-wide { grid-column: 1/-1; }
.form-group-action { align-self: flex-end; }
.inline-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.check-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--text2); }
.check-label input[type=checkbox] { accent-color: var(--neon); }
.multi-select-box { background: var(--bg3); border: 1px solid var(--border); border-radius: 7px; padding: 10px; max-height: 200px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.section-label { font-size: 11px; font-weight: 700; color: var(--neon); text-transform: uppercase; letter-spacing: 1px; padding: 5px 0; grid-column: 1/-1; border-bottom: 1px solid var(--border); font-family: var(--font-head); }
.radio-group { display: flex; gap: 14px; flex-wrap: wrap; }
.radio-label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; color: var(--text2); }
.radio-label input { accent-color: var(--neon); }

/* Auto searchable select (global, also in base.html) */
.auto-ss-wrap { position: relative; display: inline-block; width: 100%; }
.auto-ss-input {
  width: 100%; box-sizing: border-box;
  background: var(--bg3); border: 1px solid var(--border2);
  color: var(--text); border-radius: 7px; padding: 9px 13px;
  font-size: 13px; font-family: var(--font); outline: none; transition: border .18s; cursor: pointer;
}
.auto-ss-input:focus { border-color: var(--neon); box-shadow: 0 0 0 2px var(--neon-dim); }
.auto-ss-dd {
  display: none; position: absolute; top: calc(100% + 3px); left: 0; right: 0;
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: 8px; max-height: 200px; overflow-y: auto; z-index: 9999;
  box-shadow: 0 8px 24px rgba(0,0,0,.55);
}
.auto-ss-wrap.open .auto-ss-dd { display: block; }
.auto-ss-opt { padding: 7px 11px; cursor: pointer; font-size: 13px; color: var(--text); transition: background .1s; border-bottom: 1px solid rgba(255,255,255,.04); }
.auto-ss-opt:last-child { border-bottom: none; }
.auto-ss-opt:hover, .auto-ss-opt.ss-focused { background: var(--neon-dim); color: var(--neon); }
.auto-ss-opt.ss-selected { color: var(--neon); font-weight: 600; }
.auto-ss-opt.ss-hidden { display: none !important; }
.auto-ss-empty { padding: 9px 11px; font-size: 12px; color: var(--text3); text-align: center; }

/* ══ 14. MODAL ══ */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.78);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(8px);
}
.modal-box {
  background: linear-gradient(165deg, var(--bg2) 0%, var(--bg3) 100%);
  border: 1px solid var(--border2); border-radius: 14px; padding: 28px;
  width: 100%; max-width: 500px; max-height: 92vh; overflow-y: auto;
  box-shadow: 0 0 0 1px rgba(0,232,138,.04), 0 24px 60px rgba(0,0,0,.7);
  animation: modalIn .25s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modalIn { from { transform: scale(.94) translateY(10px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.modal-small { max-width: 380px; }
.modal-large { max-width: 700px; }
.modal-xl { max-width: 900px; }
.modal-title { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 18px; letter-spacing: -.3px; }

/* ══ 15. TABLES ══ */
.table-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--card-shadow); }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  background: var(--bg3); color: var(--neon);
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; padding: 11px 14px; text-align: left;
  border-bottom: 1px solid var(--border2); font-family: var(--font-head);
  white-space: nowrap;
}
.data-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background .1s; }
.data-table tbody tr:hover td { background: rgba(0,232,138,.025); }
.id-cell { color: var(--text3); font-size: 11px; font-family: var(--font-mono); }
.img-cell { width: 54px; }
.actions-cell { text-align: right; white-space: nowrap; }
.empty-msg { padding: 28px; text-align: center; color: var(--text3); }

/* ══ 16. BADGES ══ */
.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 11px; font-weight: 700; background: var(--bg4); color: var(--text2); font-family: var(--font-head); }
.badge-green { background: rgba(0,232,138,.10); color: var(--neon); border: 1px solid rgba(0,232,138,.22); }
.badge-red { background: var(--red-dim); color: var(--red); border: 1px solid rgba(255,61,90,.28); }
.pos-badge { display: inline-block; padding: 1px 7px; border-radius: 4px; font-size: 11px; font-weight: 700; font-family: var(--font-mono); background: rgba(0,232,138,.09); color: var(--neon); margin-right: 3px; border: 1px solid rgba(0,232,138,.18); }

/* ══ 17. IMAGES ══ */
.flag-img { height: 20px; width: 32px; object-fit: cover; border-radius: 2px; }
.thumb-img { height: 38px; width: 62px; object-fit: cover; border-radius: 5px; }
.avatar-img { height: 36px; width: 36px; object-fit: cover; border-radius: 50%; border: 1px solid var(--border2); }
.avatar-placeholder { height: 36px; width: 36px; border-radius: 50%; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-size: 18px; }

/* ══ 18. DASHBOARD ══ */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(320px,1fr)); gap: 20px; }
.dash-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--card-shadow); transition: border-color .2s; }
.dash-card:hover { border-color: var(--border2); }
.dash-section { margin-bottom: 20px; }
.dash-section-title { font-family: var(--font-head); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text3); margin-bottom: 12px; }

.match-list { display: flex; flex-direction: column; gap: 8px; }
.match-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  background: var(--bg3); border-radius: 7px; border: 1px solid var(--border);
  flex-wrap: wrap; transition: all .18s;
}
.match-row:hover { border-color: var(--border2); background: var(--bg4); }
.live-row { border-color: rgba(0,232,138,.35); background: rgba(0,232,138,.04); animation: liveGlow 3s infinite; }
@keyframes liveGlow {
  0%,100% { box-shadow: 0 0 0 0 rgba(0,232,138,.0); }
  50%      { box-shadow: 0 0 0 3px rgba(0,232,138,.08); }
}
.live-score { color: var(--neon); font-weight: 800; }
.match-teams { display: flex; align-items: center; gap: 8px; flex: 1; }
.team-name { font-weight: 600; font-size: 13px; }
.match-score { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--neon); min-width: 54px; text-align: center; text-shadow: var(--neon-glow); }
.match-meta { display: flex; align-items: center; gap: 8px; }
.match-date { font-size: 11px; color: var(--text3); font-family: var(--font-mono); }
.match-actions { display: flex; gap: 6px; margin-left: auto; }

/* Quick links */
.quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-link {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: var(--bg3); border-radius: 8px; text-decoration: none; color: var(--text);
  transition: all .2s; border: 1px solid var(--border);
}
.quick-link:hover { background: var(--bg4); border-color: var(--neon); box-shadow: 0 0 12px var(--neon-dim); color: var(--neon); text-decoration: none; }
.ql-icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--neon); opacity: .7; }
.quick-link:hover .ql-icon { opacity: 1; }

/* ══ 19. MATCH STATUS ══ */
.match-status, .mc-status-badge {
  font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .8px; display: inline-block;
  font-family: var(--font-head);
}
.status-scheduled    { background: rgba(140,140,140,.1); color: #777; }
.status-first_half   { background: rgba(0,232,138,.14); color: var(--neon); border: 1px solid rgba(0,232,138,.28); animation: livePulse 2s infinite; }
.status-second_half  { background: rgba(0,232,138,.14); color: var(--neon); border: 1px solid rgba(0,232,138,.28); animation: livePulse 2s infinite; }
.status-half_time    { background: var(--yel-dim); color: var(--yellow); border: 1px solid rgba(255,204,61,.28); }
.status-extra_time_1, .status-extra_time_2 { background: var(--blue-dim); color: var(--blue); border: 1px solid rgba(61,139,255,.28); }
.status-penalty_shootout { background: var(--red-dim); color: var(--red); border: 1px solid rgba(255,61,90,.28); }
.status-finished     { background: rgba(100,100,100,.09); color: #555; }
@keyframes livePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(0,232,138,.3); } 50% { box-shadow: 0 0 0 3px rgba(0,232,138,.0); } }

/* ══ 20. LEVEL BADGES ══ */
.user-level { font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 20px; text-transform: uppercase; letter-spacing: .8px; font-family: var(--font-head); }
.level-1 { background: rgba(150,150,150,.12); color: #888; }
.level-2 { background: var(--neon-dim); color: var(--neon); border: 1px solid rgba(0,232,138,.25); }
.level-3 { background: var(--blue-dim); color: var(--blue); border: 1px solid rgba(61,139,255,.3); }
.level-4 { background: var(--yel-dim); color: var(--yellow); border: 1px solid rgba(255,204,61,.25); }
.level-5 { background: var(--red-dim); color: var(--red); border: 1px solid rgba(255,61,90,.3); }

/* ══ 21. DB LAYOUT / SIDENAV ══ */
.db-layout { display: flex; gap: 20px; align-items: flex-start; }
.db-sidenav {
  width: 185px; flex-shrink: 0; background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 0; position: sticky; top: calc(var(--topbar-h) + 12px);
  box-shadow: var(--card-shadow);
}
.sidenav-title { font-size: 10px; font-weight: 700; color: var(--neon); text-transform: uppercase; letter-spacing: 1.5px; padding: 6px 16px 10px; font-family: var(--font-head); }
.sidenav-link { display: block; padding: 8px 16px; color: var(--text2); text-decoration: none; font-size: 13px; transition: all .15s; border-left: 2px solid transparent; }
.sidenav-link:hover, .sidenav-link.active { color: var(--neon); background: var(--neon-dim); border-left-color: var(--neon); }
.sidenav-divider { height: 1px; background: var(--border); margin: 6px 0; }
.db-main { flex: 1; min-width: 0; }
.mb-4 { margin-bottom: 16px; }

/* ══ 22. FILTER BAR ══ */
.filter-bar { margin-bottom: 14px; }
.filter-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ══ 23. CLUBS GRID ══ */
.clubs-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 14px; }
.club-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; align-items: center; gap: 12px; transition: all .2s; }
.club-card:hover { border-color: var(--border3); box-shadow: 0 0 18px var(--neon-dim); }
.club-logo-wrap { width: 48px; height: 48px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.club-logo { width: 48px; height: 48px; object-fit: contain; }
.club-logo-placeholder { font-size: 30px; }
.club-name { font-weight: 700; font-size: 14px; }
.club-meta, .club-stadium { font-size: 12px; color: var(--text3); margin-top: 2px; }
.club-actions { margin-left: auto; display: flex; flex-direction: column; gap: 4px; }

/* ══ 24. MATCH CARD (list view) ══ */
.match-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border .2s; }
.match-card:hover { border-color: var(--border2); }
.match-card-header { display: flex; align-items: center; gap: 12px; padding: 8px 16px; background: var(--bg3); font-size: 11px; color: var(--text2); border-bottom: 1px solid var(--border); }
.match-id { font-family: var(--font-mono); color: var(--neon); font-size: 11px; }
.match-card-body { display: flex; align-items: center; padding: 16px; }
.match-club { display: flex; align-items: center; gap: 10px; flex: 1; }
.match-club.away { flex-direction: row-reverse; }
.match-club-logo { height: 40px; width: 40px; object-fit: contain; }
.match-club-name { font-family: var(--font-head); font-size: 20px; font-weight: 700; }
.match-score-big { font-family: var(--font-mono); font-size: 38px; font-weight: 700; color: var(--neon); min-width: 110px; text-align: center; text-shadow: var(--neon-glow); }
.match-card-footer { display: flex; align-items: center; justify-content: space-between; padding: 9px 16px; background: var(--bg3); font-size: 12px; color: var(--text2); border-top: 1px solid var(--border); }
.match-btns { display: flex; gap: 6px; }
.matches-list { display: flex; flex-direction: column; gap: 12px; }

/* ══ 25. PLAYER / CLUB PAGES ══ */
.page-header-player, .page-header-club { display: flex; align-items: center; gap: 14px; }
.page-player-photo { height: 60px; width: 60px; object-fit: cover; border-radius: 50%; border: 2px solid var(--border3); box-shadow: 0 0 12px var(--neon-dim); }
.page-club-logo { height: 52px; width: 52px; object-fit: contain; }
.player-pos-tags { display: flex; gap: 4px; margin-top: 4px; }
.club-pill { display: inline-block; font-size: 11px; padding: 1px 7px; background: var(--neon-dim); color: var(--neon); border-radius: 4px; border: 1px solid rgba(0,232,138,.18); }

/* ══ 26. MATCH CONTROL ══ */
.mc-wrapper { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
body.graphics-page .mc-wrapper { height: 100vh; }
/* Keep old height for non-graphics pages if they ever use mc-wrapper */
body:not(.graphics-page) .mc-wrapper { height: calc(100vh - var(--topbar-h, 54px)); }

/* Responsive match control */
@media (max-width: 1280px) { .mc-panel { width: 165px!important; } .mc-markers { width: 170px!important; } }
@media (max-width: 1100px) {
  .mc-panel { width: 145px!important; min-width: 120px; }
  .mc-markers { width: 150px!important; min-width: 130px; }
  .mc-ev-btn { font-size: 11px!important; padding: 6px 8px!important; }
  .mc-club-name { font-size: 13px!important; }
  .mc-score { font-size: 32px!important; }
  .mc-panel-title { font-size: 12px!important; }
}
@media (max-height: 780px) { .mc-topbar { padding: 4px 12px; } .mc-score { font-size: 30px!important; } .mc-timer { font-size: 17px!important; } .mc-club-logo { height: 26px!important; width: 26px!important; } }
@media (max-width: 1024px) { .mc-panel { width: 130px!important; min-width: 110px; } .mc-markers { width: 140px!important; min-width: 120px; } .mc-center { padding: 4px 5px!important; } .mc-ev-btn { font-size: 10px!important; padding: 5px 7px!important; } }

.mc-topbar { display: flex; align-items: center; justify-content: space-between; padding: 7px 14px; background: var(--bg2); border-bottom: 1px solid var(--border); gap: 14px; flex-shrink: 0; }
.mc-match-info { display: flex; gap: 10px; font-size: 11px; color: var(--text2); flex-wrap: wrap; }
.mc-league { font-weight: 700; color: var(--neon); font-family: var(--font-head); }
.mc-scoreboard { display: flex; align-items: center; gap: 0; flex: 1; justify-content: center; }
.mc-club { display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.mc-club-home { flex-direction: row; }
.mc-club-away { flex-direction: row-reverse; }
.mc-club-logo { height: 32px; width: 32px; object-fit: contain; }
.mc-club-name { font-family: var(--font-head); font-size: 17px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.mc-score-center { text-align: center; padding: 0 8px; }
.mc-score { font-family: var(--font-mono); font-size: 42px; font-weight: 700; color: var(--neon); line-height: 1; text-shadow: var(--neon-glow); }
.mc-timer { font-family: var(--font-mono); font-size: 22px; font-weight: 600; color: var(--text); }

.ovl-btn { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 6px; border: 1px solid var(--border2); background: var(--bg3); color: var(--text2); font-size: 11px; font-weight: 600; cursor: pointer; transition: all .15s; white-space: nowrap; font-family: var(--font); }
.ovl-btn:hover { background: var(--bg4); color: var(--text); }
.ovl-btn.ovl-active { background: var(--neon-dim); color: var(--neon); border-color: var(--neon); box-shadow: 0 0 8px var(--neon-dim); }
.ovl-row { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }

.mc-panel { width: 188px; flex-shrink: 0; background: var(--bg2); border-right: 1px solid var(--border); overflow-y: auto; display: flex; flex-direction: column; }
.mc-panel-away { border-right: none; border-left: 1px solid var(--border); }
.mc-panel-header { padding: 9px 11px; display: flex; align-items: center; gap: 8px; background: var(--bg3); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.mc-team-kit { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 800; flex-shrink: 0; border: 2px solid rgba(255,255,255,.3); }
.mc-panel-title { font-family: var(--font-head); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }

.ev-group { margin-bottom: 3px; border-bottom: 1px solid rgba(255,255,255,.04); padding-bottom: 3px; }
.ev-group-label { font-size: 9px; font-weight: 700; color: rgba(0,232,138,.5); text-transform: uppercase; letter-spacing: 1.2px; padding: 3px 8px 2px; font-family: var(--font-head); }
.mc-event-btns { padding: 5px; display: flex; flex-direction: column; gap: 2px; }
.mc-ev-btn { display: block; width: 100%; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg3); color: var(--text); font-size: 12px; font-weight: 600; font-family: var(--font); cursor: pointer; text-align: left; transition: all .14s; }
.mc-ev-btn:hover { background: var(--bg4); transform: translateX(2px); }
.btn-goal { border-color: rgba(0,232,138,.28); color: var(--neon); }
.btn-goal:hover { background: var(--neon-dim); box-shadow: 0 0 8px var(--neon-dim); }
.btn-assist { border-color: rgba(61,139,255,.25); color: var(--blue); }
.btn-assist:hover { background: var(--blue-dim); }
.btn-card { border-color: rgba(255,204,61,.22); color: var(--yellow); }
.btn-card:hover { background: var(--yel-dim); }
.btn-card.btn-red { border-color: rgba(255,61,90,.28); color: var(--red); }
.btn-card.btn-red:hover { background: var(--red-dim); }
.btn-card.btn-2y { border-color: rgba(255,130,0,.25); color: #ff9920; }
.btn-shot { border-color: rgba(61,139,255,.18); color: #7aaeff; }
.btn-shot:hover { background: rgba(61,139,255,.07); }
.btn-corner { border-color: rgba(100,180,255,.18); color: #9bbfff; }
.btn-foul { border-color: rgba(255,120,50,.22); color: #ff9966; }
.btn-foul:hover { background: rgba(255,120,50,.07); }
.btn-pass { color: var(--text3); }
.btn-new { border-color: rgba(168,85,247,.22); color: #c084fc; }
.btn-new:hover { background: rgba(168,85,247,.08); }
.btn-penalty-saved { border-color: rgba(0,232,138,.18); color: #66ddaa; }
.btn-throw { border-color: rgba(150,150,255,.18); color: #aaaaff; }

.mc-possession-ctrl { padding: 8px; margin-top: auto; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.mc-poss-label { font-size: 9px; color: var(--text3); text-transform: uppercase; letter-spacing: .8px; font-family: var(--font-head); }
.mc-poss-btn { width: 100%; padding: 6px 8px; border-radius: 5px; border: 1px solid var(--border); background: var(--bg3); color: var(--text2); font-size: 11px; font-weight: 600; cursor: pointer; transition: all .18s; font-family: var(--font); }
.mc-poss-btn.active { background: var(--neon-dim); color: var(--neon); border-color: var(--neon); box-shadow: 0 0 8px var(--neon-dim); }
.mc-poss-btn.poss-away.active { background: var(--blue-dim); color: var(--blue); border-color: var(--blue); box-shadow: 0 0 8px var(--blue-dim); }
.mc-poss-btn.poss-neutral.active { background: var(--yel-dim); color: var(--yellow); border-color: var(--yellow); }

.mc-center { flex: 1; display: flex; flex-direction: column; overflow-y: auto; padding: 6px 8px; gap: 6px; min-width: 0; }
.mc-timer-controls { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.mc-timer-btns { display: flex; gap: 3px; }
.mc-poss-bar { flex: 1; height: 8px; border-radius: 4px; background: var(--bg3); overflow: hidden; border: 1px solid var(--border); display: flex; }
.mc-field-wrap { display: flex; align-items: center; justify-content: center; flex: 1; }
.mc-field {
  position: relative; width: 100%; max-width: 720px; aspect-ratio: 16/9;
  background: linear-gradient(160deg,#1b6e2f 0%,#155825 50%,#1b6e2f 100%);
  border: 2px solid rgba(255,255,255,.65); border-radius: 5px; overflow: hidden;
  box-shadow: 0 0 40px rgba(0,232,138,.12), inset 0 0 60px rgba(0,0,0,.3);
  user-select: none; -webkit-user-select: none;
}
.mc-field::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg,transparent 0,transparent calc(12.5% - 1px),rgba(255,255,255,.035) calc(12.5% - 1px),rgba(255,255,255,.035) 12.5%); }
.field-center-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.5); transform: translateX(-50%); }
.field-center-circle { position: absolute; left: 50%; top: 50%; width: 18%; padding-bottom: 18%; transform: translate(-50%,-50%); border: 2px solid rgba(255,255,255,.5); border-radius: 50%; }
.field-penalty-home { position: absolute; left: 0; top: 20%; width: 13%; height: 60%; border: 2px solid rgba(255,255,255,.45); border-left: none; }
.field-penalty-away { position: absolute; right: 0; top: 20%; width: 13%; height: 60%; border: 2px solid rgba(255,255,255,.45); border-right: none; }
.field-goal-home { position: absolute; left: 0; top: 35%; width: 3%; height: 30%; border: 2px solid rgba(255,255,255,.65); border-left: none; background: rgba(255,255,255,.07); }
.field-goal-away { position: absolute; right: 0; top: 35%; width: 3%; height: 30%; border: 2px solid rgba(255,255,255,.65); border-right: none; background: rgba(255,255,255,.07); }
.field-team { position: absolute; inset: 0; pointer-events: none; }

.player-bubble { position: absolute; transform: translate(-50%,-50%); width: 44px; height: 44px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: grab; user-select: none; pointer-events: all; border: 2px solid rgba(255,255,255,.7); box-shadow: 0 2px 10px rgba(0,0,0,.6); transition: box-shadow .15s, transform .1s; z-index: 10; }
.player-bubble:hover { box-shadow: 0 0 0 3px rgba(255,255,255,.4), 0 0 18px rgba(0,232,138,.4); z-index: 20; transform: translate(-50%,-50%) scale(1.12); }
.player-bubble:active { cursor: grabbing; }
.player-bubble.has-yellow { border-color: var(--yellow); box-shadow: 0 0 8px rgba(255,204,61,.5); }
.pb-yc-icon { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-size: 10px; line-height: 1; pointer-events: none; white-space: nowrap; }
.pb-number { font-size: 14px; font-weight: 800; line-height: 1; font-family: var(--font-mono); }
.pb-pos { font-size: 8px; font-weight: 700; opacity: .85; line-height: 1; font-family: var(--font-head); }
.pb-tooltip { position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%); background: rgba(6,10,16,.96); color: var(--text); font-size: 11px; padding: 4px 9px; border-radius: 5px; white-space: nowrap; pointer-events: none; display: none; z-index: 100; border: 1px solid var(--border2); font-family: var(--font); }
.player-bubble:hover .pb-tooltip { display: block; }
.player-bubble.snapping { cursor: grabbing; }

.snap-dot { position: absolute; transform: translate(-50%,-50%); width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.06); border: 1.5px dashed rgba(255,255,255,0); pointer-events: none; z-index: 2; display: flex; align-items: center; justify-content: center; font-size: 0px; color: rgba(255,255,255,0.55); font-family: var(--font-head,sans-serif); font-weight: 700; white-space: nowrap; overflow: hidden; opacity: 0; transition: opacity .12s ease, width .1s, height .1s, border-color .1s, background .1s; }
.mc-field.is-dragging .snap-dot { opacity: 1; width: 16px; height: 16px; border-color: rgba(255,255,255,0.28); font-size: 5.5px; }
.snap-dot-active { width: 24px!important; height: 24px!important; background: rgba(157,226,48,0.28)!important; border: 2px solid #9DE230!important; box-shadow: 0 0 16px rgba(157,226,48,0.65); font-size: 7px!important; color: #9DE230!important; opacity: 1!important; z-index: 6; }

.mc-stats-bar { display: grid; grid-template-columns: repeat(4,1fr); gap: 3px; }
.mc-stat-row { display: flex; align-items: center; background: var(--bg2); border: 1px solid var(--border); border-radius: 5px; overflow: hidden; }
.mc-stat-home { padding: 4px 7px; font-family: var(--font-mono); font-size: 16px; font-weight: 700; color: var(--neon); min-width: 28px; text-align: center; }
.mc-stat-away { padding: 4px 7px; font-family: var(--font-mono); font-size: 16px; font-weight: 700; color: var(--blue); min-width: 28px; text-align: center; }
.mc-stat-label { flex: 1; text-align: center; font-size: 9px; color: var(--text3); text-transform: uppercase; letter-spacing: .3px; font-family: var(--font-head); }

.mc-markers { width: 200px; flex-shrink: 0; background: var(--bg2); border-left: 1px solid var(--border); overflow-y: auto; display: flex; flex-direction: column; }
.mc-markers-title { padding: 9px 12px; font-size: 10px; font-weight: 700; color: var(--neon); text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg2); z-index: 5; font-family: var(--font-head); }
.marker-item { padding: 7px 10px; border-bottom: 1px solid var(--border); font-size: 11px; transition: background .14s; }
.marker-item:hover { background: rgba(0,232,138,.025); }
.marker-minute { font-weight: 800; color: var(--neon); font-family: var(--font-mono); font-size: 12px; }
.marker-type { color: var(--text); font-weight: 600; }
.marker-player { color: var(--text2); font-size: 11px; display: block; margin-top: 1px; }
.marker-actions { display: flex; gap: 4px; margin-top: 5px; }
.marker-btn { font-size: 10px; padding: 2px 7px; border-radius: 3px; border: 1px solid var(--border); background: none; color: var(--text3); cursor: pointer; transition: all .15s; font-family: var(--font); }
.marker-btn:hover { color: var(--text); background: var(--bg3); }
.marker-btn.broadcast { color: var(--neon); border-color: rgba(0,232,138,.28); }
.marker-btn.broadcast:hover { background: var(--neon-dim); box-shadow: 0 0 8px var(--neon-dim); }
.marker-btn.active-broadcast { background: var(--red-dim)!important; color: var(--red)!important; border-color: var(--red)!important; }
.marker-btn.delete { color: var(--red); border-color: rgba(255,61,90,.28); }
.marker-btn.delete:hover { background: var(--red-dim); }
.marker-filter-btn { font-size: 9px; padding: 2px 5px; border-radius: 3px; border: 1px solid var(--border); background: none; color: var(--text3); cursor: pointer; font-family: var(--font); transition: all .14s; }
.marker-filter-btn.active { background: var(--neon-dim); color: var(--neon); border-color: rgba(0,232,138,.35); }
.marker-filter-btn:hover { color: var(--text); background: var(--bg3); }

/* Player mini-card */
.player-mini-card { background: var(--bg2); border: 1px solid var(--border2); border-radius: 8px; padding: 10px 14px; min-width: 140px; box-shadow: 0 8px 24px rgba(0,0,0,.6); }
.pmc-name { font-weight: 700; font-size: 13px; color: var(--text); margin-bottom: 2px; }
.pmc-pos { font-size: 10px; color: var(--text3); margin-bottom: 6px; }
.pmc-stats { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.pmc-sub { font-size: 11px; color: var(--text3); margin-top: 4px; }

/* Saved formations */
.saved-formation-item { display: flex; align-items: center; gap: 4px; background: var(--bg3); border: 1px solid var(--border); border-radius: 4px; padding: 2px 6px; font-size: 11px; }
.saved-formation-item .sf-name { color: var(--text); font-weight: 600; flex: 1; }
.saved-formation-item .sf-count { color: var(--text3); font-size: 10px; }
.saved-formation-item .sf-apply-btn { font-size: 10px; padding: 1px 5px; border: 1px solid var(--border2); border-radius: 3px; background: none; color: var(--neon); cursor: pointer; }
.saved-formation-item .sf-apply-btn:hover { background: var(--neon-dim); }
.saved-formation-item .sf-del-btn { font-size: 10px; padding: 1px 4px; border: none; background: none; color: var(--text3); cursor: pointer; line-height: 1; }
.saved-formation-item .sf-del-btn:hover { color: #ff4444; }

/* Penalty shootout */
.penalty-gate { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; max-width: 240px; width: 100%; border: 3px solid #d0d0d0; border-bottom: 5px solid #999; border-radius: 2px 2px 0 0; background: #1a6b2e; padding: 3px; position: relative; box-shadow: 0 0 0 1px rgba(255,255,255,.1), inset 0 0 20px rgba(0,0,0,.3); }
.gate-zone { aspect-ratio: 1.3; display: flex; align-items: center; justify-content: center; border: 1px dashed rgba(255,255,255,.25); border-radius: 2px; font-size: 9px; font-weight: 700; cursor: pointer; color: rgba(255,255,255,.55); transition: all .14s; background: rgba(255,255,255,.05); font-family: var(--font-mono); }
.gate-zone:hover { background: rgba(0,220,130,.25); color: #00dc82; border-color: rgba(0,220,130,.5); }
.gate-zone.selected { background: rgba(0,220,130,.35); color: #00dc82; border-color: #00dc82; box-shadow: 0 0 8px rgba(0,220,130,.4); }
.ps-scores { display: flex; gap: 24px; font-size: 18px; margin-bottom: 14px; font-family: var(--font-mono); font-weight: 700; }
.ps-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; max-height: 200px; overflow-y: auto; }
.ps-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 5px; background: var(--bg3); font-size: 12px; border: 1px solid var(--border); }
.ps-scored { color: var(--neon); font-weight: 800; font-size: 14px; }
.ps-missed { color: var(--red); font-weight: 800; font-size: 14px; }
.ps-add h4 { font-size: 13px; font-weight: 700; color: var(--neon); margin-bottom: 12px; font-family: var(--font-head); }

/* ══ 27. STATS PAGES ══ */
.stats-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.stats-nav { display: flex; gap: 2px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.stats-nav-link { padding: 8px 18px; color: var(--text2); text-decoration: none; font-size: 13px; font-weight: 600; border-bottom: 2px solid transparent; transition: all .2s; }
.stats-nav-link.active, .stats-nav-link:hover { color: var(--neon); border-bottom-color: var(--neon); }
.stats-list { display: flex; flex-direction: column; gap: 2px; }
.stats-match-row, .stats-item-row { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 6px; text-decoration: none; color: var(--text); font-size: 13px; transition: background .14s; }
.stats-match-row:hover, .stats-item-row:hover { background: var(--bg3); color: var(--neon); }
.sm-teams { flex: 1; font-weight: 600; }
.stats-item-club { font-size: 11px; color: var(--text3); margin-left: auto; }
.stats-table { width: 100%; border-collapse: collapse; }
.stats-table th { background: var(--bg3); color: var(--neon); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 9px 14px; border-bottom: 1px solid var(--border2); font-family: var(--font-head); }
.stats-table td { padding: 9px 14px; border-bottom: 1px solid var(--border); font-size: 13px; }
.stats-val { text-align: right; font-family: var(--font-mono); font-size: 19px; font-weight: 700; color: var(--neon); }
.stats-table-single td:first-child { color: var(--text2); }

/* ══ 28. MISC ══ */
.sub-info-box { background: var(--bg3); border: 1px solid var(--border2); border-radius: 6px; padding: 9px 12px; font-size: 13px; color: var(--neon); font-family: var(--font-head); }
.gfx-packages-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 16px; }
.gfx-pkg-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; transition: all .2s; }
.gfx-pkg-card:hover { border-color: var(--border3); box-shadow: 0 0 20px var(--neon-dim); }
.gfx-pkg-name { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.gfx-pkg-colors { display: flex; gap: 6px; margin-bottom: 10px; }
.gfx-color-swatch { width: 24px; height: 24px; border-radius: 4px; border: 1px solid rgba(255,255,255,.15); }
.analysis-layout { display: grid; grid-template-columns: 1fr 420px; gap: 20px; }
.analysis-events { display: flex; flex-direction: column; gap: 4px; max-height: calc(100vh - 200px); overflow-y: auto; }

/* Broadcast active state */
.marker-btn.active-broadcast { background: var(--red-dim)!important; color: var(--red)!important; border-color: var(--red)!important; }

/* ══ 29. LOGIN PAGE ══ */
.login-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); overflow: hidden; }
.login-bg { position: fixed; inset: 0; }
.login-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,232,138,.05) 1px,transparent 1px), linear-gradient(90deg,rgba(0,232,138,.05) 1px,transparent 1px);
  background-size: 48px 48px;
}
.login-grid::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%,rgba(0,232,138,.08) 0%,transparent 70%); }
.login-container { position: relative; z-index: 1; }
.login-card {
  background: rgba(11,18,32,.97); border: 1px solid var(--border2);
  border-radius: 20px; padding: 48px 44px; width: 400px;
  box-shadow: 0 0 60px rgba(0,232,138,.08), 0 32px 80px rgba(0,0,0,.7);
  backdrop-filter: blur(16px);
}
.login-logo { text-align: center; margin-bottom: 16px; color: var(--neon); filter: drop-shadow(0 0 12px rgba(0,232,138,.5)); }
.login-logo svg { width: 52px; height: 52px; }
.login-title {
  font-family: var(--font-head); font-size: 26px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 4px; text-align: center;
  background: linear-gradient(90deg,var(--neon),var(--blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.login-sub { font-size: 12px; color: var(--text3); text-align: center; margin-bottom: 32px; margin-top: 6px; }
.login-form { display: flex; flex-direction: column; gap: 16px; }

/* ══ 30. THEME SELECTOR (login) ══ */
.theme-selector { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border2); }
.theme-selector-label { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; font-family: var(--font-head); margin-bottom: 10px; text-align: center; }
.theme-options { display: flex; gap: 10px; justify-content: center; }
.theme-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--bg3); border: 2px solid var(--border); border-radius: 8px; padding: 10px 14px; cursor: pointer; transition: all .18s; color: var(--text2); font-size: 11px; font-weight: 600; font-family: var(--font); min-width: 80px; }
.theme-btn:hover { border-color: var(--border2); background: var(--bg4); }
.theme-btn.active { border-color: var(--neon); color: var(--neon); background: var(--neon-dim); }
.theme-preview { width: 40px; height: 26px; border-radius: 4px; border: 1px solid rgba(255,255,255,.15); }
.theme-preview-dark { background: linear-gradient(135deg,#060a10 50%,#00e88a 50%); }
.theme-preview-light { background: linear-gradient(135deg,#f0f4f8 50%,#007a45 50%); border-color: rgba(0,0,0,.15); }
.theme-preview-orange { background: linear-gradient(135deg,#0c0a06 50%,#f59e0b 50%); }

/* Theme toggle (topbar) */
.theme-toggle-btn { background: var(--bg3); border: 1px solid var(--border2); color: var(--text2); border-radius: 6px; padding: 5px 9px; cursor: pointer; font-size: 14px; transition: all .18s; line-height: 1; }
.theme-toggle-btn:hover { background: var(--bg4); border-color: var(--border3); color: var(--text); }

/* ══ 31. LIGHT THEME ══ */
[data-theme="light"] {
  --bg:        #f0f4f8;
  --bg2:       #ffffff;
  --bg3:       #e8eef5;
  --bg4:       #dde5ef;
  --bg5:       #d0dae8;
  --border:    rgba(0,100,60,.12);
  --border2:   rgba(0,100,60,.25);
  --border3:   rgba(0,100,60,.45);
  --neon:      #007a45;
  --neon2:     #009955;
  --neon-dim:  rgba(0,122,69,.10);
  --neon-glow: 0 0 10px rgba(0,122,69,.2);
  --blue:      #1a5cc8;
  --blue-dim:  rgba(26,92,200,.10);
  --red:       #cc1f35;
  --red-dim:   rgba(204,31,53,.10);
  --yellow:    #b87800;
  --yel-dim:   rgba(184,120,0,.10);
  --purple:    #7c3aed;
  --text:      #111827;
  --text2:     rgba(17,24,39,.65);
  --text3:     rgba(17,24,39,.38);
  --shadow:    0 4px 20px rgba(0,0,0,.12);
  --card-shadow: 0 2px 10px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.8);
  --sidebar-bg: rgba(255,255,255,.98);
  --font: 'Outfit', system-ui, sans-serif;
  --font-head: 'Space Grotesk', 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}
[data-theme="light"] body { background: var(--bg); background-image: radial-gradient(ellipse 80% 40% at 10% -10%, rgba(0,122,69,.04) 0%, transparent 60%), radial-gradient(ellipse 60% 40% at 90% 110%, rgba(26,92,200,.03) 0%, transparent 60%); color: var(--text); }
[data-theme="light"] .sidebar { background: var(--sidebar-bg); border-right-color: rgba(0,0,0,.08); }
[data-theme="light"] .sidebar-logo-text { background: linear-gradient(90deg, var(--neon), var(--blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
[data-theme="light"] .sidebar-link:hover { background: rgba(0,0,0,.04); color: var(--text); }
[data-theme="light"] .sidebar-link.active { background: var(--neon-dim); color: var(--neon); }
[data-theme="light"] .sidebar-footer { border-top-color: rgba(0,0,0,.08); }
[data-theme="light"] .sidebar-btn { border-color: rgba(0,0,0,.12); color: var(--text3); }
[data-theme="light"] .sidebar-btn:hover { background: rgba(0,0,0,.04); color: var(--text); border-color: rgba(0,0,0,.2); }
[data-theme="light"] .topbar { background: rgba(255,255,255,.97); border-bottom-color: rgba(0,0,0,.1); box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.08); }
[data-theme="light"] .nav-search-input { background: #f0f4f8; border-color: #c5d0e0; color: var(--text); }
[data-theme="light"] .nav-search-input:focus { border-color: var(--neon); }
[data-theme="light"] .nav-search-results { background: #fff; border-color: #c5d0e0; }
[data-theme="light"] .form-input, [data-theme="light"] .form-select, [data-theme="light"] .form-textarea { background: #fff; border-color: #c5d0e0; color: var(--text); }
[data-theme="light"] .form-input:focus, [data-theme="light"] .form-select:focus { border-color: var(--neon); }
[data-theme="light"] .modal-box { background: linear-gradient(165deg,#fff 0%,#f5f8ff 100%); border-color: var(--border2); }
[data-theme="light"] .stat-value { color: var(--neon); text-shadow: none; }
[data-theme="light"] .mc-score { color: var(--neon); text-shadow: none; }
[data-theme="light"] .login-card { background: rgba(255,255,255,.97); box-shadow: 0 0 40px rgba(0,122,69,.06), 0 16px 48px rgba(0,0,0,.1); }
[data-theme="light"] .login-body { background: #e8f0f8; }
[data-theme="light"] .login-grid { background-image: linear-gradient(rgba(0,122,69,.06) 1px,transparent 1px), linear-gradient(90deg,rgba(0,122,69,.06) 1px,transparent 1px); background-size: 48px 48px; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: #c5d0e0; }
[data-theme="light"] .pb-tooltip { color: #ffffff; }
[data-theme="light"] .auto-ss-input { background: #fff; border-color: #c5d0e0; color: var(--text); }
[data-theme="light"] .auto-ss-dd { background: #fff; border-color: #c5d0e0; }

/* ══ 32. ORANGE THEME ══ */
[data-theme="orange"] {
  --bg:        #0c0a06;
  --bg2:       #141008;
  --bg3:       #1e1a0e;
  --bg4:       #282214;
  --bg5:       #332b18;
  --border:    rgba(245,158,11,.09);
  --border2:   rgba(245,158,11,.22);
  --border3:   rgba(245,158,11,.44);
  --neon:      #f59e0b;
  --neon2:     #fbbf24;
  --neon-dim:  rgba(245,158,11,.12);
  --neon-glow: 0 0 16px rgba(245,158,11,.45), 0 0 40px rgba(245,158,11,.15);
  --blue:      #60a5fa;
  --blue-dim:  rgba(96,165,250,.12);
  --red:       #ff3d5a;
  --red-dim:   rgba(255,61,90,.12);
  --yellow:    #fb923c;
  --yel-dim:   rgba(251,146,60,.12);
  --purple:    #a78bfa;
  --text:      #fdf8f0;
  --text2:     rgba(253,248,240,.58);
  --text3:     rgba(253,248,240,.30);
  --shadow:    0 4px 28px rgba(0,0,0,.65);
  --card-shadow: 0 2px 16px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.035);
  --sidebar-bg: rgba(12,10,6,.97);
  --font: 'Outfit', system-ui, sans-serif;
  --font-head: 'Space Grotesk', 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}
[data-theme="orange"] body { background: var(--bg); background-image: radial-gradient(ellipse 80% 40% at 10% -10%, rgba(245,158,11,.07) 0%, transparent 60%), radial-gradient(ellipse 60% 40% at 90% 110%, rgba(251,146,60,.05) 0%, transparent 60%); color: var(--text); }
[data-theme="orange"] .sidebar { background: var(--sidebar-bg); border-right-color: rgba(245,158,11,.08); }
[data-theme="orange"] .sidebar-logo-text { background: linear-gradient(90deg, var(--neon), #fb923c); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
[data-theme="orange"] .topbar { background: rgba(20,16,8,.97); border-bottom-color: var(--border); box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(0,0,0,.5); }
[data-theme="orange"] .nav-title { background: linear-gradient(90deg, var(--neon) 0%, #fb923c 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
[data-theme="orange"] .modal-box { background: linear-gradient(165deg, var(--bg2) 0%, var(--bg3) 100%); box-shadow: 0 0 0 1px rgba(245,158,11,.05), 0 24px 60px rgba(0,0,0,.7); }
[data-theme="orange"] .stat-value { color: var(--neon); text-shadow: var(--neon-glow); }
[data-theme="orange"] .mc-score { color: var(--neon); text-shadow: var(--neon-glow); }
[data-theme="orange"] .login-card { background: rgba(20,16,8,.96); border: 1px solid var(--border2); box-shadow: 0 0 60px rgba(245,158,11,.08), 0 24px 60px rgba(0,0,0,.6); }
[data-theme="orange"] .login-body { background: var(--bg); }
[data-theme="orange"] .login-grid { background-image: linear-gradient(rgba(245,158,11,.05) 1px,transparent 1px), linear-gradient(90deg,rgba(245,158,11,.05) 1px,transparent 1px); background-size: 48px 48px; }
[data-theme="orange"] .login-grid::after { background: radial-gradient(ellipse at 50% 50%, rgba(245,158,11,.08) 0%, transparent 70%); }
[data-theme="orange"] .login-title { background: linear-gradient(90deg, var(--neon), #fb923c); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
[data-theme="orange"] ::-webkit-scrollbar-thumb:hover { background: rgba(245,158,11,.25); }
[data-theme="orange"] .sidenav-link:hover, [data-theme="orange"] .sidenav-link.active { color: var(--neon); background: var(--neon-dim); border-left-color: var(--neon); }
[data-theme="orange"] .btn-goal { border-color: rgba(245,158,11,.28); color: var(--neon); }
[data-theme="orange"] .btn-goal:hover { background: var(--neon-dim); box-shadow: 0 0 8px var(--neon-dim); }
[data-theme="orange"] .ovl-btn.ovl-active { background: var(--neon-dim); color: var(--neon); border-color: var(--neon); box-shadow: 0 0 8px var(--neon-dim); }
[data-theme="orange"] .auto-ss-input { background: var(--bg3); border-color: var(--border2); color: var(--text); }
[data-theme="orange"] .auto-ss-input:focus { border-color: var(--neon); box-shadow: 0 0 0 2px var(--neon-dim); }
[data-theme="orange"] .status-first_half, [data-theme="orange"] .status-second_half { background: rgba(245,158,11,.14); color: var(--neon); border: 1px solid rgba(245,158,11,.28); }

/* ══ 33. RESPONSIVE / MOBILE ══ */
@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }
  .sidebar { transform: translateX(-100%); width: 240px!important; transition: transform .3s cubic-bezier(.4,0,.2,1); box-shadow: 4px 0 24px rgba(0,0,0,.4); }
  .sidebar.mobile-open { transform: translateX(0); }
  .layout-main { margin-left: 0!important; }
  .topbar-menu-btn { display: flex; }
  .sidebar-toggle-btn { display: none; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .page-content { padding: 16px; }
}
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .login-card { width: calc(100vw - 32px); padding: 32px 24px; }
  .match-card-body { flex-direction: column; gap: 12px; }
}

/* ══ 34. MOTION.JS — animation helpers ══ */
.motion-fade-up { opacity: 0; }
.motion-fade-in { opacity: 0; }
.motion-slide-left { opacity: 0; }
.will-animate { will-change: transform, opacity; }
