/* =========================================================
   GoalFixed — night stadium theme
   ========================================================= */
:root {
  /* Surfaces */
  --bg: #0B1220;
  --bg-2: #0D1526;
  --card: #111A2E;
  --card-2: #152036;
  --glass: rgba(17, 26, 46, .82);
  --line: #1F2A40;
  --line-2: #2A3752;
  /* Text */
  --text: #F1F5F9;
  --text-2: #CBD5E1;
  --muted: #94A3B8;
  /* Brand: emerald (actions, odds, wins) */
  --lime: #10B981;
  --lime-2: #0EA371;
  --lime-glow: rgba(16, 185, 129, .18);
  --on-lime: #03271A;
  --brand-text: #34D399;
  /* Status & tiers */
  --green: #22C55E;
  --gold: #F5B301;
  --gold-2: #E0A200;
  --red: #EF4444;
  --blue: #38BDF8;
  --cyan: #22D3EE;
  --silver: #CBD5E1;
  --diamond: #67E8F9;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 24px rgba(2, 6, 17, .45);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Barlow Condensed', 'Inter', 'Arial Narrow', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
[dir="rtl"] { --font: 'Cairo', 'Inter', system-ui, sans-serif; --display: 'Cairo', 'Barlow Condensed', sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text);
  background: var(--bg); min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 90% -5%, rgba(16, 185, 129, .08), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(245, 179, 1, .05), transparent 60%),
    url('/assets/img/pitch-lines.svg') center 120px / 1100px auto no-repeat;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
h2 { font-size: 1.35rem; }
p { margin: 0 0 .8em; }
[hidden] { display: none !important; }
::selection { background: var(--lime); color: var(--on-lime); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 6px; }

.display { font-family: var(--display); font-weight: 700; letter-spacing: -.005em; line-height: .95; }
[dir="rtl"] .display { font-weight: 800; text-transform: none; line-height: 1.2; }
.display-sm { font-family: var(--display); font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 700; letter-spacing: -.005em; line-height: 1; }
[dir="rtl"] .display-sm { font-weight: 800; text-transform: none; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.3; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 780px; }
.section { padding-block: 44px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.ms-auto { margin-inline-start: auto; }
.link { color: var(--lime); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.link:hover { text-decoration: underline; }

.icon { width: 20px; height: 20px; flex: none; }
.icon-sm { width: 16px; height: 16px; flex: none; }
.icon-xs { width: 12px; height: 12px; flex: none; }
.icon-lg { width: 44px; height: 44px; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

.glass {
  background: var(--glass); border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
}

/* ===== Buttons ===== */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 800; font-size: .95rem; cursor: pointer; white-space: nowrap; overflow: hidden;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s, filter .2s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { min-height: 36px; padding: 7px 13px; font-size: .85rem; border-radius: 10px; }
.btn-lg { min-height: 52px; padding: 13px 26px; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--lime); color: var(--on-lime); box-shadow: none; }
.btn-gold { background: var(--gold); color: #1c1100; box-shadow: none; }
.btn-telegram { background: #1673AC; color: #fff; box-shadow: none; }
.btn-crypto { background: #2563EB; color: #fff; box-shadow: none; }
.btn-ghost { background: rgba(255, 255, 255, .03); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .3); }
.btn-danger { background: rgba(239, 68, 68, .12); color: #fca5a5; border-color: rgba(239, 68, 68, .35); }
.btn-danger:hover { background: rgba(239, 68, 68, .22); }
.btn:disabled { opacity: .6; cursor: wait; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); color: var(--text); cursor: pointer; transition: background .2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .08); }

/* ===== Pills & badges ===== */
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; margin: 0;
  background: rgba(16, 185, 129, .1); color: #6EE7B7; border: 1px solid rgba(16, 185, 129, .3);
  font-size: .8rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.pill-gold { background: rgba(245, 179, 1, .1); color: #FCD34D; border-color: rgba(245, 179, 1, .35); }
.pill-warn { background: rgba(245, 179, 1, .08); color: #fcd34d; border-color: rgba(245, 179, 1, .25); text-transform: none; letter-spacing: 0; }
.pill-danger { background: rgba(239, 68, 68, .12); color: #fca5a5; border-color: rgba(239, 68, 68, .3); padding: 2px 8px; text-transform: none; letter-spacing: 0; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); animation: pulse-red 1.6s infinite; }
@keyframes pulse-red { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); } 70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 8px; font-size: .74rem; font-weight: 800; letter-spacing: .03em; white-space: nowrap; text-transform: uppercase; }
.lvl-0 { background: rgba(16, 185, 129, .14); color: #6EE7B7; border: 1px solid rgba(16, 185, 129, .3); }
.lvl-1 { background: linear-gradient(135deg, rgba(203, 213, 225, .22), rgba(203, 213, 225, .06)); color: var(--silver); border: 1px solid rgba(203, 213, 225, .35); }
.lvl-2 { background: linear-gradient(135deg, rgba(245, 179, 1, .28), rgba(245, 179, 1, .08)); color: #FCD34D; border: 1px solid rgba(245, 179, 1, .45); }
.lvl-3 { background: linear-gradient(135deg, rgba(103, 232, 249, .25), rgba(167, 139, 250, .2)); color: #a5f3fc; border: 1px solid rgba(103, 232, 249, .45); }

/* ===== Top bar ===== */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(11, 18, 32, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.topbar::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(16, 185, 129, .5), transparent); }
.topbar-inner { display: flex; align-items: center; gap: 20px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.75rem; letter-spacing: -.005em; line-height: 1; }
.brand em { font-style: normal; color: var(--lime); }
.brand-ball { width: 34px; height: 34px; filter: none; transition: transform .6s var(--ease); }
.brand:hover .brand-ball { transform: rotate(180deg); }

.nav { display: flex; gap: 4px; margin-inline-start: 14px; }
.nav a { position: relative; padding: 10px 14px; border-radius: 10px; color: var(--muted); font-weight: 700; font-size: .93rem; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav a.is-active { color: var(--text); }
.nav a.is-active::after { content: ""; position: absolute; inset-inline: 14px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--lime);  }
.nav-mobile-only { display: none; }
.topbar-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; }

.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; min-height: 42px;
  padding: 7px 12px; border-radius: 12px; border: 1px solid var(--line-2); font-weight: 800; font-size: .8rem;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary .icon { width: 16px; height: 16px; }
.lang-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 160px; padding: 6px; border-radius: 14px; background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: pop .18s var(--ease); }
.lang-menu a { display: block; padding: 9px 12px; border-radius: 9px; font-weight: 700; }
.lang-menu a:hover, .lang-menu a.is-active { background: rgba(16, 185, 129, .1); color: var(--lime); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

.user-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 1px solid var(--line-2); border-radius: 999px; min-height: 42px; }
[dir="rtl"] .user-chip { padding: 4px 4px 4px 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; background: linear-gradient(135deg, #334766, #1f2c44); font-weight: 800; font-size: .85rem; color: var(--text); }
.avatar-lg { width: 68px; height: 68px; font-size: 1.7rem; }
.avatar-admin { background: radial-gradient(circle at 35% 30%, #6EE7B7, var(--lime-2) 60%, #3f6212); color: var(--on-lime); box-shadow: 0 0 0 2px rgba(16, 185, 129, .25); }

/* ===== Flash ===== */
.flashes { padding-top: 16px; display: grid; gap: 8px; }
.flash { padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid; font-weight: 700; font-size: .92rem; animation: pop .25s var(--ease); }
.flash-success { background: rgba(16, 185, 129, .1); border-color: rgba(16, 185, 129, .35); color: #6EE7B7; }
.flash-error { background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .35); color: #fca5a5; }
.flash-info { background: rgba(56, 189, 248, .1); border-color: rgba(56, 189, 248, .35); color: #7dd3fc; }

/* ===== Hero ===== */
.page-home .flashes { position: absolute; z-index: 5; inset-inline: 0; }
.hero { position: relative; overflow: hidden; isolation: isolate; min-height: min(760px, 92vh); display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 18, 32, .92) 0%, rgba(11, 18, 32, .65) 45%, rgba(11, 18, 32, .25) 100%), linear-gradient(to bottom, transparent 60%, var(--bg)); }
[dir="rtl"] .hero-shade { background: linear-gradient(270deg, rgba(11, 18, 32, .92) 0%, rgba(11, 18, 32, .65) 45%, rgba(11, 18, 32, .25) 100%), linear-gradient(to bottom, transparent 60%, var(--bg)); }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-block: 64px; }
.hero-copy { display: grid; gap: 18px; justify-items: start; }
.hero h1 { font-size: clamp(3rem, 7.2vw, 5.6rem); margin: 0; text-shadow: 0 6px 40px rgba(0, 0, 0, .5); }
.hero h1::after { content: ""; display: block; width: 110px; height: 5px; border-radius: 5px; margin-top: 18px; background: linear-gradient(90deg, var(--lime), var(--gold));  }
.lead { font-size: 1.12rem; color: var(--text-2); max-width: 560px; margin: 0; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.hs { display: grid; padding: 12px 18px; min-width: 120px; border-radius: 14px; background: rgba(15, 23, 41, .6); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hs strong { font-family: var(--display); font-size: 2.1rem; font-weight: 700; line-height: 1; color: var(--lime); letter-spacing: .02em; }
.hs span { color: var(--muted); font-size: .8rem; font-weight: 600; }
.form-guide { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.form-guide .muted { margin-inline-end: 4px; }
.fg { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-size: .75rem; font-weight: 900; }
.fg-won { background: var(--green); color: #032b12; }
.fg-lost { background: var(--red); color: #fff; }

.hero-art { position: relative; display: grid; justify-items: center; }
.hero-ball { position: absolute; width: 190px; height: 190px; top: -70px; inset-inline-end: -10px; z-index: 2; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .55)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(25deg); } }
.slip-card { position: relative; z-index: 1; width: min(420px, 100%); border-radius: 14px; padding: 18px; display: grid; gap: 14px; box-shadow: var(--shadow), 0 0 0 1px rgba(16, 185, 129, .12); transform: rotate(-2deg); transition: transform .4s var(--ease); }
[dir="rtl"] .slip-card { transform: rotate(2deg); }
.slip-card:hover, [dir="rtl"] .slip-card:hover { transform: rotate(0) translateY(-4px); }
.slip-card-head { display: flex; justify-content: space-between; align-items: center; }
.slip-card-title { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 1.4rem; letter-spacing: -.005em; color: var(--lime); }
[dir="rtl"] .slip-card-title { font-weight: 800; font-size: 1.1rem; }

/* ===== Ticker ===== */
.ticker { position: relative; overflow: hidden; border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(16, 185, 129, .06), rgba(245, 179, 1, .04)); }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 1; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
[dir="rtl"] .ticker-track { animation-name: ticker-rtl; }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes ticker-rtl { to { transform: translateX(50%); } }
.tick { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-inline-end: 1px solid var(--line); white-space: nowrap; font-size: .9rem; }
.tick b { font-weight: 800; }
.tick-tip { color: var(--text-2); font-weight: 600; }
.tick-odds { font-weight: 900; color: var(--on-lime); background: var(--lime); border-radius: 7px; padding: 2px 8px; font-size: .82rem; }
.tick-vip { display: inline-flex; align-items: center; gap: 4px; color: #FCD34D; font-weight: 800; font-size: .78rem; background: rgba(245, 179, 1, .12); border: 1px solid rgba(245, 179, 1, .35); padding: 2px 8px; border-radius: 7px; }

/* ===== Features ===== */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform .25s var(--ease), border-color .25s; }
.feature:hover { border-color: rgba(16, 185, 129, .35); }
.feature h3 { font-size: 1.05rem; margin: 14px 0 6px; }
.feature p { margin: 0; font-size: .92rem; }
.feature-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; }
.feature-icon .icon { width: 24px; height: 24px; }
.tone-green { background: rgba(16, 185, 129, .14); color: var(--lime); }
.tone-gold { background: rgba(245, 179, 1, .14); color: var(--gold); }
.tone-blue { background: rgba(56, 189, 248, .14); color: var(--blue); }
.tone-cyan { background: rgba(34, 211, 238, .14); color: var(--cyan); }

/* ===== Sections & cards ===== */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.section-head h2, .section-head h1 { margin: 0; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.section-head.center p { max-width: 620px; margin: 0; }
.section-title { margin: 34px 0 14px; }
.page-head { margin-bottom: 22px; }
.page-banner { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.page-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; z-index: -2; }
.page-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(11, 18, 32, .55), var(--bg)); }
.page-banner .container { padding-block: 64px 36px; display: grid; gap: 10px; justify-items: center; text-align: center; }
.page-banner h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 6vw, 4rem); letter-spacing: -.005em; line-height: 1; margin: 0; }
[dir="rtl"] .page-banner h1 { font-weight: 800; text-transform: none; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.3; }
.page-banner p { margin: 0; max-width: 620px; color: var(--text-2); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card-title { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin-bottom: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stack { display: grid; gap: 18px; }
.grid-2 > *, .grid-3 > *, .stack > *, .post > *, .bubble > *, .slip-card > * { min-width: 0; }
.empty { text-align: center; padding: 52px 16px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); background: rgba(255, 255, 255, .015); }
.empty .icon-lg { margin: 0 auto 10px; opacity: .5; }

/* ===== Posts ===== */
.post { display: grid; gap: 14px; height: 100%; align-content: start; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.post:hover { border-color: rgba(16, 185, 129, .28); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.post-head { display: flex; align-items: center; gap: 10px; }
.post-head > div { display: grid; line-height: 1.3; }
.post-body { overflow-wrap: anywhere; color: var(--text-2); }
.post-body a, .bubble-text a { color: var(--lime); text-decoration: underline; }
.post-img img { border-radius: 14px; max-height: 420px; width: 100%; object-fit: cover; border: 1px solid var(--line); }
.upsell { display: flex; align-items: center; gap: 12px; padding: 14px 18px; margin-bottom: 18px; border-radius: 14px; background: linear-gradient(135deg, rgba(245, 179, 1, .16), rgba(245, 179, 1, .03)); border: 1px solid rgba(245, 179, 1, .35); color: #FCD34D; transition: transform .2s var(--ease); }
.upsell:hover { transform: translateY(-2px); }
.upsell span { flex: 1; font-size: .92rem; }
.upsell .icon { color: var(--gold); }

/* ===== Match card ===== */
.match { position: relative; overflow: hidden; border-radius: 16px; padding: 14px; display: grid; gap: 14px; background: linear-gradient(180deg, #0c2a1a, #0a1a14 70%); border: 1px solid rgba(16, 185, 129, .22); }
.match::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .8; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 28px, transparent 28px 56px), radial-gradient(circle at 50% 50%, transparent 42px, rgba(255, 255, 255, .07) 43px 44px, transparent 45px); }
.match::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: rgba(255, 255, 255, .07); pointer-events: none; }
.match > * { position: relative; z-index: 1; }
.match-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.match-league, .match-time { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; color: #A7F3D0; text-transform: uppercase; letter-spacing: .06em; }
.match-time { color: var(--muted); font-weight: 700; text-transform: none; letter-spacing: 0; }
.match-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.team { display: grid; justify-items: center; gap: 6px; text-align: center; min-width: 0; }
.team-name { font-weight: 800; font-size: .98rem; overflow-wrap: anywhere; line-height: 1.2; }
.crest {
  --h: 140; width: 46px; height: 46px; border-radius: 50% 50% 46% 46% / 40% 40% 60% 60%; display: grid; place-items: center; flex: none;
  font-weight: 900; font-size: .78rem; letter-spacing: .02em; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
  background: linear-gradient(160deg, hsl(var(--h) 75% 55%), hsl(var(--h) 70% 30%));
  border: 2px solid hsl(var(--h) 80% 75% / .6); box-shadow: 0 6px 16px hsl(var(--h) 70% 20% / .5), inset 0 2px 0 rgba(255, 255, 255, .25);
}
.crest-xs { width: 24px; height: 24px; font-size: .55rem; border-width: 1px; }
.vs { font-family: var(--display); font-size: 1.5rem; color: var(--gold); line-height: 1; letter-spacing: .05em;  }
.slip { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }
.slip-pick, .slip-odds { display: grid; padding: 8px 12px; border-radius: 10px; line-height: 1.2; }
.slip-pick { flex: 1; min-width: 120px; background: rgba(11, 18, 32, .55); border: 1px solid var(--line-2); }
.slip-pick strong { font-size: .98rem; }
.slip-odds { min-width: 76px; text-align: center; background: var(--lime); color: var(--on-lime);  }
.slip-odds strong { font-family: var(--display); font-size: 1.6rem; font-weight: 700; line-height: 1; letter-spacing: .03em; }
.slip small { font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.status { display: inline-flex; align-items: center; gap: 4px; align-self: center; padding: 5px 10px; border-radius: 8px; font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.status-pending { background: rgba(148, 163, 184, .15); color: var(--text-2); }
.status-won { background: rgba(34, 197, 94, .2); color: #4ade80; border: 1px solid rgba(34, 197, 94, .4); }
.status-lost { background: rgba(239, 68, 68, .18); color: #f87171; border: 1px solid rgba(239, 68, 68, .4); }
.match.status-is-won { border-color: rgba(34, 197, 94, .5); }
.match.status-is-lost { border-color: rgba(239, 68, 68, .35); }
.match.status-is-lost .slip-odds { background: rgba(148, 163, 184, .25); color: var(--text-2); box-shadow: none; }

/* ===== Plans ===== */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; padding-top: 8px; }
.plan { --accent: var(--silver); position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px 24px; border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.plan::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--accent);  }
.plan::after { content: ""; position: absolute; width: 260px; height: 260px; top: -130px; inset-inline-end: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .08), transparent 70%); pointer-events: none; }
.plan > * { position: relative; z-index: 1; }
.plan:hover { box-shadow: var(--shadow); }
.plan-2 { --accent: var(--gold); }
.plan-2::after { background: radial-gradient(circle, rgba(245, 179, 1, .2), transparent 70%); }
.plan-3 { --accent: var(--diamond); border-color: rgba(103, 232, 249, .35); }
.plan-3::after { background: radial-gradient(circle, rgba(103, 232, 249, .18), transparent 70%); }
.plan h3 { font-family: var(--display); font-size: 1.9rem; font-weight: 700; letter-spacing: -.005em; margin: 0; line-height: 1; }
[dir="rtl"] .plan h3 { font-weight: 800; font-size: 1.35rem; }
.plan-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: var(--accent); background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); }
.plan-icon .icon { width: 28px; height: 28px; }
.plan-featured { border-color: rgba(245, 179, 1, .6); box-shadow: 0 0 0 1px rgba(245, 179, 1, .25), 0 24px 60px rgba(245, 179, 1, .1); }

.plan-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan-price strong { font-family: var(--display); font-size: 3.4rem; font-weight: 700; line-height: 1; letter-spacing: .01em; color: var(--accent); }
.plan-features { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; flex: 1; align-content: start; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: .94rem; }
.plan-features .icon-sm { color: var(--lime); margin-top: 3px; padding: 2px; width: 18px; height: 18px; border-radius: 50%; background: rgba(16, 185, 129, .14); }
.plan-actions { display: grid; gap: 8px; }
.plan-ribbon { position: absolute; top: 18px; inset-inline-end: 18px; z-index: 2; font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; padding: 5px 10px; border-radius: 8px; background: var(--lime); color: var(--on-lime); }

.status-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line-2); margin-bottom: 22px; }
.status-bar .muted { display: inline-flex; align-items: center; gap: 6px; }

.how { margin-top: 34px; }
.steps { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 14px; background: rgba(11, 18, 32, .5); border: 1px solid var(--line); }
.steps span { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-size: 1.4rem; background: var(--lime); color: var(--on-lime); }
.steps p { margin: 6px 0 0; color: var(--text-2); font-size: .93rem; }

/* ===== CTA band ===== */
.cta-band { position: relative; overflow: hidden; isolation: isolate; border-radius: 16px; padding: 54px 48px; border: 1px solid rgba(16, 185, 129, .25); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; }
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; z-index: -2; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 18, 32, .95), rgba(11, 18, 32, .55)); }
[dir="rtl"] .cta-band::before { background: linear-gradient(270deg, rgba(11, 18, 32, .95), rgba(11, 18, 32, .55)); }
.cta-copy { display: grid; gap: 12px; max-width: 600px; }
.cta-copy h2 { margin: 0; }
.cta-copy p { margin: 0 0 6px; color: var(--text-2); font-size: 1.05rem; }
.cta-ball { width: 160px; height: 160px; filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .6)); animation: float 7s ease-in-out infinite; }

/* ===== Chat ===== */
.chat-wrap { display: grid; grid-template-columns: 250px 1fr; gap: 18px; padding-block: 24px; }
.rooms, .room-list { display: grid; gap: 8px; align-content: start; }
.room { display: flex; align-items: center; gap: 10px; padding: 12px; min-height: 52px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); font-weight: 700; transition: background .2s, border-color .2s, transform .2s var(--ease); }
.room:hover { background: var(--card-2); transform: translateX(2px); }
[dir="rtl"] .room:hover { transform: translateX(-2px); }
.room.is-active { border-color: rgba(16, 185, 129, .6); background: linear-gradient(90deg, rgba(16, 185, 129, .1), var(--card-2)); box-shadow: inset 3px 0 0 var(--lime); }
[dir="rtl"] .room.is-active { background: linear-gradient(270deg, rgba(16, 185, 129, .1), var(--card-2)); box-shadow: inset -3px 0 0 var(--lime); }
.room-name { flex: 1; }
.room-lock { color: var(--muted); }
.room-icon { width: 32px; height: 32px; border-radius: 10px; display: inline-grid; place-items: center; flex: none; }
.room-icon-lg { width: 50px; height: 50px; border-radius: 15px; }
.room-0 .room-icon { background: rgba(16, 185, 129, .15); color: var(--lime); }
.room-1 .room-icon, .room-icon.room-1 { background: rgba(203, 213, 225, .14); color: var(--silver); }
.room-2 .room-icon, .room-icon.room-2 { background: rgba(245, 179, 1, .16); color: var(--gold); }
.room-3 .room-icon, .room-icon.room-3 { background: rgba(103, 232, 249, .14); color: var(--diamond); }

.chat { padding: 0; display: flex; flex-direction: column; height: calc(100vh - 70px - 48px); min-height: 540px; overflow: hidden; }
.chat-head { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.chat-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 18, 32, .9), rgba(11, 18, 32, .55)), url('/assets/img/stadium.svg') center 40% / cover; }
.chat-head h1 { font-family: var(--display); font-weight: 700; font-size: 1.8rem; letter-spacing: -.005em; margin: 0; line-height: 1; }
[dir="rtl"] .chat-head h1 { font-weight: 800; font-size: 1.2rem; text-transform: none; }
.chat-head p { margin: 2px 0 0; }
.live-dot { display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 900; color: #fff; text-transform: uppercase; letter-spacing: .08em; padding: 5px 10px; border-radius: 8px; background: rgba(239, 68, 68, .9); }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }

.chat-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; position: relative; background: url('/assets/img/pitch-lines.svg') center / 90% auto no-repeat, radial-gradient(circle at 20% 20%, rgba(16, 185, 129, .05), transparent 40%), var(--bg); }
#chatList { display: flex; flex-direction: column; gap: 14px; }
.chat-foot { padding: 10px 18px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 6px; background: var(--card); }
.load-older { align-self: center; }
.day-sep { align-self: center; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 5px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.msg { display: flex; gap: 10px; align-items: flex-end; max-width: 660px; }
.js .msg { animation: msgIn .35s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.bubble { position: relative; background: var(--card); border: 1px solid var(--line-2); border-radius: 18px 18px 18px 6px; padding: 11px 13px 24px; min-width: 150px; display: grid; gap: 9px; box-shadow: 0 8px 22px rgba(0, 0, 0, .3); }
[dir="rtl"] .bubble { border-radius: 18px 18px 6px 18px; }
.chat-lvl-1 .bubble { border-color: rgba(203, 213, 225, .28); }
.chat-lvl-2 .bubble { border-color: rgba(245, 179, 1, .3); }
.chat-lvl-3 .bubble { border-color: rgba(103, 232, 249, .3); }
.bubble-author { font-size: .8rem; font-weight: 900; color: var(--lime); display: flex; align-items: center; gap: 5px; }
.verified { color: var(--on-lime); background: var(--lime); border-radius: 50%; padding: 1px; width: 14px; height: 14px; }
.bubble-text { overflow-wrap: anywhere; color: var(--text-2); }
.bubble-img img { border-radius: 12px; max-height: 360px; object-fit: cover; }
.bubble-time { position: absolute; bottom: 6px; inset-inline-end: 12px; font-size: .7rem; color: var(--muted); }
.bubble .match { min-width: min(430px, 62vw); }
.msg.is-new .bubble { box-shadow: 0 0 0 2px var(--lime-glow), 0 8px 22px rgba(0, 0, 0, .3); }

.chat-locked { overflow: hidden; }
.fake-msgs { display: grid; gap: 14px; filter: blur(6px); opacity: .5; }
.skeleton { height: 12px; border-radius: 6px; background: var(--line-2); }
.fake-msgs .bubble { min-width: 0; max-width: 70vw; }
.skeleton { max-width: 100%; }
.w40 { width: 120px; } .w50 { width: 150px; } .w60 { width: 190px; } .w70 { width: 220px; } .w80 { width: 260px; } .w90 { width: 300px; }
.locked-overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 8px; padding: 24px; background: radial-gradient(circle at center, rgba(11, 18, 32, .7), rgba(11, 18, 32, .96)); }
.locked-overlay h2 { font-family: var(--display); font-weight: 700; font-size: 2.2rem; letter-spacing: -.005em; margin: 0; }
[dir="rtl"] .locked-overlay h2 { font-weight: 800; font-size: 1.5rem; text-transform: none; }
.locked-icon { width: 80px; height: 80px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 8px; background: linear-gradient(135deg, rgba(245, 179, 1, .28), rgba(245, 179, 1, .05)); color: var(--gold); border: 1px solid rgba(245, 179, 1, .45); box-shadow: 0 0 40px rgba(245, 179, 1, .2); }
.locked-icon .icon { width: 36px; height: 36px; }
.locked-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 10px 0; }

/* ===== Forms ===== */
.auth-wrap { display: grid; place-items: center; }
.auth-card { position: relative; overflow: hidden; width: min(450px, 100%); display: grid; gap: 14px; padding: 32px 28px; box-shadow: var(--shadow); }
.auth-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 130px; z-index: 0; background: linear-gradient(to bottom, rgba(11, 18, 32, .1), var(--card-2)), url('/assets/img/stadium.svg') center 45% / cover; }
.auth-card > * { position: relative; z-index: 1; }
.auth-card h1 { text-align: center; font-family: var(--display); font-weight: 700; font-size: 2.2rem; letter-spacing: -.005em; line-height: 1; }
[dir="rtl"] .auth-card h1 { font-weight: 800; font-size: 1.5rem; text-transform: none; }
.auth-icon { width: 62px; height: 62px; margin: 30px auto 0; border-radius: 18px; display: grid; place-items: center; background: var(--lime); color: var(--on-lime); box-shadow: 0 10px 30px var(--lime-glow); }
.auth-icon .icon { width: 30px; height: 30px; }

.field { display: grid; gap: 6px; }
.field > span { font-size: .85rem; font-weight: 700; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=datetime-local], input:not([type]), select, textarea {
  width: 100%; min-height: 46px; font: inherit; color: var(--text); background: rgba(11, 18, 32, .7); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: 11px 14px; transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea { resize: vertical; min-height: 100px; }
input:hover, select:hover, textarea:hover { border-color: rgba(148, 163, 184, .35); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-glow); background: var(--bg); }
input[type=datetime-local] { color-scheme: dark; }
select { cursor: pointer; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; font-size: .92rem; min-height: 32px; }
.check input { width: 18px; height: 18px; accent-color: var(--lime); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }

/* ===== Admin ===== */
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); margin-bottom: 24px; width: fit-content; }
.admin-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; min-height: 44px; border-radius: 11px; font-weight: 800; color: var(--muted); font-size: .92rem; transition: color .2s, background .2s; }
.admin-tabs a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.admin-tabs a.is-active { background: var(--lime); color: var(--on-lime); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { display: flex; align-items: center; gap: 14px; }
.stat > div { display: grid; }
.stat strong { font-family: var(--display); font-size: 2.2rem; font-weight: 700; line-height: 1; letter-spacing: .02em; }
.stat span:not(.stat-icon) { color: var(--muted); font-size: .85rem; font-weight: 600; }
.stat-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: rgba(56, 189, 248, .14); color: var(--blue); }
.stat-icon.gold { background: rgba(245, 179, 1, .15); color: var(--gold); }
.stat-icon.green { background: rgba(16, 185, 129, .15); color: var(--lime); }
.level-rows { display: grid; gap: 10px; margin-bottom: 16px; }
.level-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(11, 18, 32, .5); border: 1px solid var(--line); }
.level-row .muted { flex: 1; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.list li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(11, 18, 32, .5); border: 1px solid var(--line); flex-wrap: wrap; }
.admin-grid { display: grid; grid-template-columns: 430px 1fr; gap: 22px; align-items: start; }
.composer { position: sticky; top: 90px; display: grid; gap: 16px; }
.segmented { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 5px; border-radius: 14px; background: rgba(11, 18, 32, .7); border: 1px solid var(--line); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 40px; padding: 8px 4px; border-radius: 10px; font-weight: 900; font-size: .82rem; cursor: pointer; color: var(--muted); transition: background .2s, color .2s; }
.seg span:hover { color: var(--text); }
.seg input:checked + span { color: var(--on-lime); }
.seg-0 input:checked + span { background: var(--lime); }
.seg-1 input:checked + span { background: var(--silver); }
.seg-2 input:checked + span { background: var(--gold); }
.seg-3 input:checked + span { background: linear-gradient(135deg, var(--diamond), #a78bfa); }
.seg input:focus-visible + span { box-shadow: 0 0 0 2px var(--lime); }
.file-drop { position: relative; display: flex; align-items: center; gap: 10px; padding: 16px; border-radius: var(--radius-sm); border: 1px dashed var(--line-2); background: rgba(11, 18, 32, .6); color: var(--muted); cursor: pointer; font-size: .88rem; transition: border-color .2s, color .2s; }
.file-drop:hover { border-color: var(--lime); color: var(--text); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.img-preview { margin-top: 8px; border-radius: 12px; max-height: 200px; object-fit: cover; border: 1px solid var(--line); }
.match-fields { padding: 14px; border-radius: 14px; background: rgba(11, 18, 32, .55); border: 1px solid var(--line); display: grid; gap: 12px; }
.grid-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.filter-tabs a { padding: 8px 15px; border-radius: 10px; border: 1px solid var(--line-2); font-weight: 800; font-size: .85rem; color: var(--muted); transition: color .2s, border-color .2s; }
.filter-tabs a:hover { color: var(--text); }
.filter-tabs a.is-active { color: var(--on-lime); background: var(--lime); border-color: var(--lime); }
.admin-post { display: grid; }
.admin-post .post { border-end-start-radius: 0; border-end-end-radius: 0; }
.admin-post .post:hover { transform: none; }
.admin-post-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); background: var(--bg-2); }
form.inline { display: inline-flex; align-items: center; gap: 6px; margin: 0; flex-wrap: wrap; }
.chip { font: inherit; font-size: .74rem; font-weight: 900; min-height: 32px; padding: 5px 11px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; text-transform: uppercase; letter-spacing: .03em; }
.chip:hover { color: var(--text); }
.chip-won.is-active { background: rgba(34, 197, 94, .2); color: #4ade80; border-color: rgba(34, 197, 94, .5); }
.chip-lost.is-active { background: rgba(239, 68, 68, .2); color: #f87171; border-color: rgba(239, 68, 68, .5); }
.chip-pending.is-active { background: var(--card-2); color: var(--text); }
.toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar input { flex: 1; min-width: 200px; }
.toolbar select { width: auto; }
.table-wrap { padding: 0; overflow-x: auto; margin-bottom: 10px; }
.table { width: 100%; border-collapse: collapse; min-width: 840px; }
.table th { text-align: start; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 13px 14px; border-bottom: 1px solid var(--line); background: var(--card); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr { transition: background .2s; }
.table tbody tr:hover { background: rgba(255, 255, 255, .02); }
.table tr:last-child td { border-bottom: 0; }
.table tr.is-banned { opacity: .55; }
.user-cell { display: flex; align-items: center; gap: 10px; }
.vip-form { display: flex; align-items: center; gap: 6px; }
.vip-form select { width: auto; padding: 7px 9px; min-height: 38px; }
.vip-form input[type=number] { width: 76px; padding: 7px 9px; min-height: 38px; }
.settings { display: grid; gap: 16px; }
.crypto-settings { display: grid; gap: 14px; }
.plan-settings { border-top: 3px solid var(--silver); }
.plan-settings.plan-2 { border-top-color: var(--gold); }
.plan-settings.plan-3 { border-top-color: var(--diamond); }

.account { display: grid; gap: 18px; }
.account-head { display: flex; align-items: center; gap: 16px; }
.account-head h1 { margin: 0; font-size: 1.5rem; }
.account-head p { margin: 0; }
.account .status-bar { margin: 0; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 24px; }
.pager a { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2); font-weight: 800; }
.pager a.is-active { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }

/* ===== Footer ===== */
.footer { position: relative; overflow: hidden; margin-top: 50px; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), #0A101C); }
.footer-pitch { position: absolute; inset: 0; background: url('/assets/img/pitch-lines.svg') center / 900px auto no-repeat; opacity: .8; pointer-events: none; }
.footer-inner { position: relative; display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 28px; align-items: center; padding-block: 34px; }
.footer-brand p { margin: 10px 0 0; max-width: 380px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 700; font-size: .92rem; min-height: 32px; }
.footer-links a:hover { color: var(--lime); }
.age-badge { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: .86rem; color: var(--text-2); font-weight: 600; }
.age-badge span { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--red); color: #fca5a5; font-weight: 900; font-size: .85rem; }
.footer-bottom { position: relative; border-top: 1px solid var(--line); padding-block: 14px; color: var(--muted); font-size: .82rem; }
.page-chat .footer { margin-top: 0; }

/* ===== Reveal on scroll ===== */
.js .hero-in { animation: heroIn .7s var(--ease) both; }
.js .hero-in-2 { animation-delay: .15s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Pro Sportsbook — component system
   Emerald = actions/odds/wins · Gold = VIP only · Red = live/lost
   ========================================================= */

/* Base */
body::before {
  background:
    linear-gradient(180deg, rgba(16, 185, 129, .05), transparent 420px),
    url('/assets/img/pitch-lines.svg') center 120px / 1100px auto no-repeat;
  opacity: .9;
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.005em; }
.card-title, .feature h3, .account-head h1 { font-family: var(--font); font-weight: 700; letter-spacing: -.01em; }
.display { line-height: 1; }
.display-sm { font-size: clamp(1.75rem, 3vw, 2.3rem); line-height: 1.05; }
.link { color: var(--brand-text); }
:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 2px; }
::selection { background: var(--lime); color: var(--on-lime); }

/* Buttons: one height scale, flat fills, colour change on hover */
.btn {
  min-height: 44px; padding: 10px 18px; border-radius: 10px; font-weight: 700; font-size: .94rem;
  letter-spacing: .005em; box-shadow: none; overflow: visible;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.btn:hover { filter: none; }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 2px; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: .84rem; border-radius: 8px; }
.btn-lg { min-height: 50px; padding: 12px 24px; font-size: 1rem; border-radius: 10px; }
.btn-primary { background: var(--lime); color: var(--on-lime); }
.btn-primary:hover { background: var(--lime-2); }
.btn-gold { background: var(--gold); color: #1A1200; }
.btn-gold:hover { background: var(--gold-2); }
.btn-telegram { background: #1673AC; color: #fff; }
.btn-telegram:hover { background: #13659A; }
.btn-crypto { background: #2563EB; color: #fff; }
.btn-crypto:hover { background: #1D4ED8; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--card-2); border-color: #3A4A6B; }
.btn-danger { background: transparent; color: #FCA5A5; border: 1px solid rgba(239, 68, 68, .45); }
.btn-danger:hover { background: rgba(239, 68, 68, .12); }
.icon-btn { border-radius: 10px; border-color: var(--line-2); background: transparent; }
.icon-btn:hover { background: var(--card-2); }

/* Cards: flat surface, 1px border, 12px radius */
.card, .feature, .kpi, .comp, .room, .day-tabs a, .steps li, .level-row, .list li { border-radius: var(--radius); }
.card, .feature, .kpi { background: var(--card); border: 1px solid var(--line); box-shadow: none; }
.feature:hover, .post:hover { border-color: var(--line-2); box-shadow: none; }
.post { gap: 12px; }
.empty { border-radius: var(--radius); background: transparent; }

/* Top bar */
.topbar { background: rgba(11, 18, 32, .94); border-bottom: 1px solid var(--line); }
.topbar::after { display: none; }
.brand { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.65rem; letter-spacing: 0; }
.brand em { color: var(--brand-text); }
.brand:hover .brand-ball { transform: rotate(90deg); }
.nav a { font-weight: 600; border-radius: 8px; }
.nav a.is-active { background: var(--card-2); }
.nav a.is-active::after { height: 2px; bottom: 0; background: var(--lime); box-shadow: none; }
.lang-switch summary, .user-chip { border-color: var(--line-2); }

/* Pills & badges: flat tints, small caps labels */
.pill { border-radius: 6px; padding: 5px 10px; font-size: .74rem; font-weight: 700; letter-spacing: .06em;
  background: rgba(16, 185, 129, .1); color: #6EE7B7; border: 1px solid rgba(16, 185, 129, .3); }
.pill-gold { background: rgba(245, 179, 1, .1); color: #FCD34D; border-color: rgba(245, 179, 1, .35); }
.badge { border-radius: 6px; font-weight: 700; font-size: .7rem; letter-spacing: .05em; padding: 3px 8px; }
.lvl-0 { background: rgba(16, 185, 129, .12); color: #6EE7B7; border: 1px solid rgba(16, 185, 129, .3); }
.lvl-1 { background: rgba(203, 213, 225, .1); color: var(--silver); border: 1px solid rgba(203, 213, 225, .3); }
.lvl-2 { background: rgba(245, 179, 1, .12); color: #FCD34D; border: 1px solid rgba(245, 179, 1, .4); }
.lvl-3 { background: rgba(103, 232, 249, .1); color: #A5F3FC; border: 1px solid rgba(103, 232, 249, .35); }
.avatar-admin { background: var(--lime); color: var(--on-lime); box-shadow: none; }

/* Hero */
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); text-shadow: none; line-height: 1; }
.hero h1::after { width: 64px; height: 3px; margin-top: 18px; background: var(--lime); box-shadow: none; }
.hs { border-radius: 10px; background: rgba(17, 26, 46, .82); border-color: var(--line-2); }
.hs strong { color: var(--text); font-weight: 700; font-size: 2rem; }
.hs:first-child strong { color: var(--brand-text); }
.slip-card, [dir="rtl"] .slip-card { transform: none; background: rgba(17, 26, 46, .92); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.slip-card:hover, [dir="rtl"] .slip-card:hover { transform: none; border-color: #3A4A6B; }
.slip-card-title { font-size: 1.35rem; color: var(--text); }
.slip-card-title .icon-sm { color: var(--brand-text); }
.hero-ball { animation-duration: 8s; }

/* Match card: neutral surface, emerald odds button */
.match { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; }
.match::before { opacity: .35; background: radial-gradient(circle at 50% 50%, transparent 42px, rgba(255, 255, 255, .06) 43px 44px, transparent 45px); }
.match::after { background: rgba(255, 255, 255, .04); }
.match-league { color: var(--text-2); }
.vs { color: var(--muted); font-size: 1.15rem; text-shadow: none; }
.crest { border-width: 1px; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.slip-pick { background: var(--card); border-color: var(--line-2); border-radius: 8px; }
.slip-odds { background: var(--lime); color: var(--on-lime); border-radius: 8px; box-shadow: none; }
.slip-odds strong { font-weight: 700; font-size: 1.45rem; }
.match.status-is-won { border-color: rgba(34, 197, 94, .45); }

/* Plans */
.plan { border-radius: 14px; padding: 26px 22px; background: var(--card); border: 1px solid var(--line); }
.plan::before { height: 3px; box-shadow: none; }
.plan::after, .plan-2::after, .plan-3::after { display: none; }
.plan:hover { box-shadow: none; border-color: var(--line-2); }
.plan-featured { border-color: rgba(245, 179, 1, .55); box-shadow: none; }
.plan-featured:hover { border-color: rgba(245, 179, 1, .8); }
.plan h3 { font-size: 1.6rem; }
.plan-price strong { font-weight: 700; font-size: 3rem; }
.plan-icon { border-radius: 10px; background: transparent; }
.plan-ribbon { border-radius: 6px; }

/* Ticker, features, steps, CTA */
.ticker { background: var(--bg-2); }
.tick-odds { border-radius: 6px; }
.feature-icon { border-radius: 10px; }
.steps span { border-radius: 8px; font-weight: 700; font-size: 1.25rem; }
.cta-band { border-color: var(--line-2); }
.cta-ball { animation-duration: 9s; }

/* Forms */
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=datetime-local], input:not([type]), select, textarea {
  background: var(--bg-2); border-color: var(--line-2); border-radius: var(--radius-sm);
}
input:focus, select:focus, textarea:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(16, 185, 129, .2); }
.auth-icon { background: var(--lime); color: var(--on-lime); box-shadow: none; border-radius: 12px; }
.auth-card h1 { font-size: 2rem; }

/* Admin & data */
.admin-tabs { border-radius: 12px; }
.admin-tabs a { border-radius: 8px; font-weight: 700; }
.admin-tabs a.is-active { background: var(--lime); color: var(--on-lime); }
.filter-tabs a { border-radius: 8px; font-weight: 700; }
.segmented, .seg span { border-radius: 8px; }
.stat strong, .kpi strong { font-weight: 700; }
.day-tabs a.is-active { box-shadow: none; }
.day-tabs strong { font-weight: 700; font-size: 1.55rem; }
.fx-score { font-weight: 700; border-radius: 8px; }
.fx-tip { border-radius: 6px; }
.bar { border-radius: 4px 4px 0 0; background: var(--lime); }
.kpi-main { background: var(--card); }
.kpi-main strong { color: var(--brand-text); }
.kpi-meter span, .mini-meter span { background: var(--lime); }
.live-dot { border-radius: 6px; background: var(--red); }
.locked-icon { box-shadow: none; border-radius: 16px; }
.locked-overlay h2 { font-size: 2rem; }
.chat-head h1 { font-size: 1.6rem; }
.bubble { border-radius: 14px 14px 14px 4px; background: var(--card); box-shadow: none; }
[dir="rtl"] .bubble { border-radius: 14px 14px 4px 14px; }
.msg.is-new .bubble { box-shadow: 0 0 0 2px rgba(16, 185, 129, .35); }
.room.is-active { background: var(--card-2); }
[dir="rtl"] .room.is-active { background: var(--card-2); }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .admin-grid { grid-template-columns: 1fr; }
  .composer { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .menu-toggle { display: inline-grid; }
  .desktop-only { display: none !important; }
  .nav { position: absolute; top: 70px; inset-inline: 0; margin: 0; flex-direction: column; gap: 2px; background: rgba(13, 21, 38, .98); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; display: none; }
  .nav.is-open { display: flex; animation: pop .2s var(--ease); }
  .nav a { min-height: 44px; display: flex; align-items: center; }
  .nav a.is-active::after { inset-inline: 14px auto; width: 24px; }
  .nav-mobile-only { display: grid; gap: 2px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
  .hero { min-height: 0; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 48px 40px; gap: 56px; }
  .hero-art { margin-top: 20px; }
  .hero-ball { width: 100px; height: 100px; top: -92px; inset-inline-end: 6px; }
  .hero-shade, [dir="rtl"] .hero-shade { background: linear-gradient(180deg, rgba(11, 18, 32, .55), rgba(11, 18, 32, .85) 60%, var(--bg)); }
  .slip-card, [dir="rtl"] .slip-card { transform: none; }
  .plans, .grid-2, .steps { grid-template-columns: 1fr; }
  .plan-featured { transform: none; }
  .chat-wrap { grid-template-columns: 1fr; padding-block: 12px; }
  .rooms { grid-template-columns: repeat(3, 1fr); }
  .rooms .room { position: relative; justify-content: center; padding: 9px 6px; font-size: .78rem; flex-direction: column; gap: 4px; text-align: center; }
  .rooms .room .room-lock { position: absolute; top: 6px; inset-inline-end: 6px; }
  .chat { height: calc(100vh - 70px - 140px); }
  .bubble .match { min-width: 0; }
  .cta-band { grid-template-columns: 1fr; padding: 40px 24px; }
  .cta-ball { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .grid-fields { grid-template-columns: 1fr; }
  .section { padding-block: 30px; }
  .hs { min-width: 0; flex: 1; padding: 10px 12px; }
  .hs strong { font-size: 1.7rem; }
  .crest { width: 40px; height: 40px; }
  .hero-cta .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Batch 1: matches, results, football API
   ========================================================= */
.league-dot { --h: 140; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 6px; flex: none; background: hsl(var(--h) 80% 60%); box-shadow: 0 0 8px hsl(var(--h) 80% 60% / .6); }
.match-score { font-weight: 900; font-size: .78rem; padding: 3px 8px; border-radius: 7px; background: rgba(255, 255, 255, .08); letter-spacing: .03em; }
.match-score.is-live { background: var(--red); color: #fff; }
.crest-logo { background: rgba(255, 255, 255, .92); border: 2px solid rgba(255, 255, 255, .25); padding: 6px; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); border-radius: 50%; }
.crest-logo img { width: 100%; height: 100%; object-fit: contain; }
.crest-sm { width: 30px; height: 30px; font-size: .6rem; border-width: 1px; }
.crest-sm.crest-logo { padding: 4px; }
.crest-xs.crest-logo { padding: 3px; }

/* Matches page */
.day-tabs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 18px; }
.day-tabs a { display: grid; justify-items: center; gap: 0; padding: 10px 4px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); transition: border-color .2s, background .2s, transform .2s var(--ease); line-height: 1.15; }
.day-tabs a:hover { border-color: var(--line-2); transform: translateY(-2px); }
.day-tabs small { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.day-tabs strong { font-family: var(--display); font-size: 1.7rem; font-weight: 700; }
.day-tabs a.is-active { background: var(--lime); border-color: var(--lime); color: var(--on-lime); box-shadow: none; }
.day-tabs a.is-active small { color: var(--on-lime); opacity: .8; }
.admin-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 18px; border-radius: 12px; border: 1px dashed rgba(16, 185, 129, .35); background: rgba(16, 185, 129, .05); }
.admin-bar .muted { display: inline-flex; align-items: center; gap: 6px; }

.comp { margin-bottom: 16px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.comp-head { --h: 140; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: linear-gradient(90deg, hsl(var(--h) 60% 30% / .35), transparent 70%), var(--card-2); border-bottom: 1px solid var(--line); box-shadow: inset 3px 0 0 hsl(var(--h) 80% 60%); }
[dir="rtl"] .comp-head { background: linear-gradient(270deg, hsl(var(--h) 60% 30% / .35), transparent 70%), var(--card-2); box-shadow: inset -3px 0 0 hsl(var(--h) 80% 60%); }
.comp-head > div { display: grid; line-height: 1.2; }
.comp-emblem { width: 34px; height: 34px; object-fit: contain; border-radius: 9px; background: #fff; padding: 4px; flex: none; }
.comp-emblem-fallback { display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--gold); }
.fx-list { list-style: none; margin: 0; padding: 0; }
.fx { display: grid; grid-template-columns: 54px minmax(0, 1fr) 64px minmax(0, 1fr); grid-template-areas: "time home score away" "tips tips tips tips"; align-items: center; gap: 6px 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); transition: background .2s; }
.fx:last-child { border-bottom: 0; }
.fx:hover { background: rgba(255, 255, 255, .02); }
.fx.has-tip { background: linear-gradient(90deg, rgba(16, 185, 129, .06), transparent 60%); }
[dir="rtl"] .fx.has-tip { background: linear-gradient(270deg, rgba(16, 185, 129, .06), transparent 60%); }
.fx-time { grid-area: time; font-weight: 800; font-size: .88rem; color: var(--text-2); }
.fx-live { display: inline-flex; align-items: center; gap: 5px; color: #fff; background: var(--red); font-size: .66rem; font-weight: 900; letter-spacing: .06em; padding: 3px 6px; border-radius: 6px; text-transform: uppercase; }
.fx-ft { font-size: .75rem; font-weight: 900; color: var(--muted); }
.fx-pst { font-size: .72rem; font-weight: 900; color: #fcd34d; }
.fx-team { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 700; }
.fx-home { grid-area: home; justify-content: flex-end; text-align: end; }
.fx-away { grid-area: away; }
.fx-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-score { grid-area: score; text-align: center; font-family: var(--display); font-size: 1.5rem; line-height: 1; letter-spacing: .04em; padding: 6px 0; border-radius: 10px; background: rgba(11, 18, 32, .6); border: 1px solid var(--line); }
.fx-score i { font-style: normal; color: var(--muted); }
.fx-score .muted { font-family: var(--font); font-size: .8rem; font-weight: 700; }
.fx.is-live .fx-score { border-color: rgba(239, 68, 68, .5); color: #fff; box-shadow: 0 0 18px rgba(239, 68, 68, .2); }
.fx-tips { grid-area: tips; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.fx-tips:empty { display: none; }
.fx-tip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 10px; border-radius: 8px; font-size: .8rem; font-weight: 800; background: rgba(16, 185, 129, .12); color: #6EE7B7; border: 1px solid rgba(16, 185, 129, .35); transition: transform .2s var(--ease); }
.fx-tip:hover { transform: translateY(-1px); }
.fx-tip b { color: var(--on-lime); background: var(--lime); padding: 1px 6px; border-radius: 5px; }
.fx-tip-won { background: rgba(34, 197, 94, .18); border-color: rgba(34, 197, 94, .5); }
.fx-tip-lost { background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .4); color: #fca5a5; }
.fx-tip-locked { background: rgba(245, 179, 1, .1); border-color: rgba(245, 179, 1, .4); color: #FCD34D; }
.fx-add { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 10px; border-radius: 8px; font-size: .78rem; font-weight: 800; color: var(--muted); border: 1px dashed var(--line-2); }
.fx-add:hover { color: var(--lime); border-color: var(--lime); }

/* Admin composer & API card */
.match-fields-body { display: grid; gap: 12px; }
.hint { display: flex; align-items: center; gap: 6px; margin: 0; }
.api-card { margin-bottom: 16px; border-color: rgba(16, 185, 129, .25); }
.api-card .card-title { margin-bottom: 6px; }
.api-form { display: grid; gap: 12px; }
.api-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.api-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.api-status .muted { display: inline-flex; align-items: center; gap: 6px; }
.lvl-err { background: rgba(239, 68, 68, .15); color: #fca5a5; border: 1px solid rgba(239, 68, 68, .4); }

/* Results page */
.center-tabs { justify-content: center; margin-bottom: 24px; }
.kpis { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.kpi { display: grid; gap: 4px; align-content: start; padding: 18px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.kpi-label { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.kpi strong { font-family: var(--display); font-weight: 700; font-size: 2.6rem; line-height: 1; letter-spacing: .02em; }
.kpi strong i { font-style: normal; }
.kpi-sub { font-size: .8rem; }
.kpi-main { border-color: rgba(16, 185, 129, .35); background: radial-gradient(circle at 100% 0, rgba(16, 185, 129, .14), transparent 60%), linear-gradient(180deg, var(--card-2), var(--card)); }
.kpi-main strong { font-size: 3.4rem; color: var(--lime); }
.kpi-meter, .mini-meter { height: 8px; border-radius: 8px; background: rgba(148, 163, 184, .15); overflow: hidden; margin-top: 6px; }
.kpi-meter span, .mini-meter span { display: block; height: 100%; border-radius: 8px; background: var(--lime); }
.mini-meter { display: inline-block; width: 56px; height: 6px; margin: 0 6px 0 0; vertical-align: middle; }
[dir="rtl"] .mini-meter { margin: 0 0 0 6px; }
.txt-won { color: #4ade80; }
.txt-lost { color: #f87171; }
.form-guide-lg { margin-bottom: 22px; }
.form-guide-lg .fg { width: 30px; height: 30px; border-radius: 8px; }
.results-grid { align-items: start; }

.bars { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; height: 220px; padding: 8px 0 26px 38px; margin-bottom: 16px; }
[dir="rtl"] .bars { padding: 8px 38px 26px 0; }
.bars-grid { position: absolute; inset: 8px 0 26px 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.bars-grid span { position: relative; font-size: .68rem; color: var(--muted); line-height: 0; }
.bars-grid span::after { content: ""; position: absolute; inset-inline: 38px 0; top: 0; border-top: 1px dashed rgba(148, 163, 184, .14); }
.bar-col { position: relative; display: grid; grid-template-rows: 1fr auto; outline: none; }
.bar-track { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 100%; border-radius: 8px; transition: background .2s; }
.bar { width: min(34px, 70%); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--lime), var(--lime-2)); transition: filter .2s; transform-origin: bottom; }
.js .reveal .bar { transform: scaleY(0); transition: transform .8s var(--ease), filter .2s; }
.js .reveal.is-in .bar { transform: scaleY(1); }
.bar-label { position: absolute; bottom: -22px; inset-inline: 0; text-align: center; font-size: .74rem; font-weight: 700; color: var(--muted); }
.bar-col:hover .bar-track, .bar-col:focus-visible .bar-track { background: rgba(255, 255, 255, .04); }
.bar-col:hover .bar, .bar-col:focus-visible .bar { filter: brightness(1.15); }
.bar-tip { position: absolute; bottom: calc(100% - 20px); left: 50%; z-index: 5; display: grid; gap: 2px; min-width: 150px; padding: 10px 12px; border-radius: 12px; background: #0D1526; border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: .8rem; color: var(--text-2); opacity: 0; pointer-events: none; transform: translate(-50%, 6px); transition: opacity .15s, transform .15s; white-space: nowrap; }
.bar-tip strong { color: var(--text); }
.bar-col:hover .bar-tip, .bar-col:focus-visible .bar-tip { opacity: 1; transform: translate(-50%, 0); }
.table-compact { min-width: 0; font-size: .88rem; }
.table-compact td, .table-compact th { padding: 9px 10px; }
.res-match { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.res-match .muted { font-weight: 800; padding: 0 2px; }
.cta-inline { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 30px; padding: 20px; border-radius: var(--radius); border: 1px solid rgba(245, 179, 1, .3); background: linear-gradient(135deg, rgba(245, 179, 1, .1), transparent); }
.cta-inline p { margin: 0; font-weight: 700; }

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .results-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .day-tabs { grid-template-columns: repeat(3, 1fr); }
  .fx { grid-template-columns: 44px minmax(0, 1fr) 54px minmax(0, 1fr); padding: 10px 12px; gap: 6px 6px; }
  .fx-team { font-size: .84rem; gap: 5px; }
  .fx-home .crest, .fx-away .crest { width: 24px; height: 24px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi strong { font-size: 2rem; }
  .kpi-main { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal .bar { transform: none; }
}
/* keep edge tooltips inside the card */
.bar-col:nth-child(2) .bar-tip { left: auto; inset-inline-start: 0; transform: translate(0, 6px); }
.bar-col:nth-last-child(-n+2) .bar-tip { left: auto; inset-inline-end: 0; transform: translate(0, 6px); }
.bar-col:nth-child(2):hover .bar-tip, .bar-col:nth-child(2):focus-visible .bar-tip,
.bar-col:nth-last-child(-n+2):hover .bar-tip, .bar-col:nth-last-child(-n+2):focus-visible .bar-tip { transform: translate(0, 0); }
/* Latin labels inside Arabic text: keep their own direction */
.fx-tip, .slip-pick strong, .tick-tip, .table td { unicode-bidi: plaintext; }
/* Telegram settings */
.tg-card { border-color: rgba(56, 189, 248, .3); }
.tg-steps { margin: 4px 0 14px; padding-inline-start: 20px; display: grid; gap: 4px; }
.toggles { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: rgba(11, 18, 32, .5); border: 1px solid var(--line); }
/* Admin stat tiles: let text shrink inside 2-column phone grid */
.stats > *, .stat > div { min-width: 0; }
.stat span:not(.stat-icon) { overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .stat { gap: 10px; padding: 14px; }
  .stat-icon { width: 40px; height: 40px; }
  .stat strong { font-size: 1.8rem; }
}
/* Quick access to the member's VIP room */
.vip-quick { gap: 6px; }
.vip-quick-short { display: none; }
.vip-quick.is-here { background: transparent; color: var(--gold); border: 1px solid rgba(245, 179, 1, .55); }
.nav-vip-link { color: var(--gold) !important; font-weight: 700 !important; gap: 8px; background: rgba(245, 179, 1, .08); border: 1px solid rgba(245, 179, 1, .3); margin-bottom: 4px; }
.nav-vip-link .badge { margin-inline-start: auto; }
@media (max-width: 1180px) and (min-width: 901px) {
  .vip-quick-full { display: none; }
  .vip-quick-short { display: inline; }
}
@media (max-width: 900px) {
  .vip-quick { min-height: 40px; padding: 6px 12px; }
  .vip-quick-full { display: none; }
  .vip-quick-short { display: inline; }
}
@media (max-width: 900px) {
  .nav { background: var(--bg-2); box-shadow: 0 16px 32px rgba(2, 6, 17, .6); }
}

/* =========================================================
   Responsive fixes: collapse the menu earlier, small phones
   ========================================================= */
.nav a { white-space: nowrap; }

/* Tablets & small laptops: 6+ links don't fit in one row → use the ☰ menu */
@media (max-width: 1180px) {
  .menu-toggle { display: inline-grid; }
  .nav {
    position: absolute; top: 70px; inset-inline: 0; margin: 0; flex-direction: column; gap: 2px;
    background: var(--bg-2); border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(2, 6, 17, .6);
    padding: 10px 16px 16px; display: none; max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .nav.is-open { display: flex; animation: pop .2s var(--ease); }
  .nav a { min-height: 44px; display: flex; align-items: center; }
  .nav a.is-active::after { inset-inline: 14px auto; width: 24px; }
  .nav-mobile-only { display: grid; gap: 2px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
}
/* With the menu collapsed there is room again for the full VIP label */
@media (max-width: 1180px) and (min-width: 901px) {
  .vip-quick-full { display: inline; }
  .vip-quick-short { display: none; }
}

/* Small phones (iPhone SE, older Android) */
@media (max-width: 380px) {
  .container { width: calc(100% - 24px); }
  .topbar-inner { gap: 8px; }
  .topbar-actions { gap: 6px; }
  .brand { font-size: 1.35rem; gap: 7px; }
  .brand-ball { width: 28px; height: 28px; }
  .lang-switch summary { padding: 6px 8px; gap: 4px; }
  .lang-switch summary .icon { display: none; }
  .vip-quick { padding: 6px 10px; }
  .icon-btn { width: 40px; height: 40px; }
  .hero h1 { font-size: 2.3rem; }
  .btn-lg { padding: 12px 16px; }
}

/* Tables inside cards scroll instead of pushing the page wider */
.results-grid .card { overflow-x: auto; }
@media (max-width: 400px) {
  .table-compact td, .table-compact th { padding: 8px 6px; font-size: .82rem; }
  .mini-meter { display: none; }
}
