/* eFootball Arena — dizayn (Flarnix) */
:root {
  --bg: #f6f3fb;
  --bg2: #eee8f7;
  --card: #ffffff;
  --card2: #f7f3fc;
  --line: #e4dcef;
  --text: #1d0b2e;
  --muted: #6c5f80;
  --purple: #8a2be2;
  --violet: #a238ff;
  --coral: #ff5a3c;
  --red: #ef2b45;
  --accent: #8a2be2;
  --accent2: #ff4d5e;
  --accent-ink: #ffffff;
  --grad: linear-gradient(115deg, #9b2cff 0%, #c026d3 45%, #ff4d5e 80%, #ff7a3c 100%);
  --grad-soft: linear-gradient(115deg, rgba(155,44,255,.14), rgba(255,77,94,.14));
  --gold: #d49b0b;
  --danger: #e11d48;
  --warn: #d97706;
  --ok: #16a34a;
  --ok-bg: #dcfce7; --ok-tx: #166534;
  --info-bg: #efe4ff; --info-tx: #6b21a8;
  --warn-bg: #fef3c7; --warn-tx: #92400e;
  --bad-bg: #ffe4e8; --bad-tx: #9f1239;
  --shadow: 0 1px 2px rgba(29,11,46,.05), 0 10px 30px -10px rgba(29,11,46,.15);
  --shadow-lg: 0 30px 60px -20px rgba(80,20,140,.35);
  --radius: 18px;
  --brand-text: #2a0a3a;
  --emblem: url(/img/emblem.png);
  --glow-a: rgba(162,56,255,.18);
  --glow-b: rgba(255,77,94,.14);
  --head: 'Unbounded', 'Manrope', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0716; --bg2: #140c22; --card: #150d24; --card2: #1c1230; --line: #2c1f45;
    --text: #f1eafb; --muted: #a497bb; --accent-ink: #ffffff;
    --gold: #fbbf24; --danger: #fb7185; --warn: #fbbf24; --ok: #4ade80;
    --ok-bg: #0f2a1b; --ok-tx: #86efac; --info-bg: #26153f; --info-tx: #d8b4fe;
    --warn-bg: #33250a; --warn-tx: #fcd34d; --bad-bg: #3a1020; --bad-tx: #fda4af;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 40px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 30px 70px -20px rgba(155,44,255,.35);
    --brand-text: #ffffff; --emblem: url(/img/emblem-dark.png);
    --glow-a: rgba(162,56,255,.22); --glow-b: rgba(255,77,94,.16);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0716; --bg2: #140c22; --card: #150d24; --card2: #1c1230; --line: #2c1f45;
  --text: #f1eafb; --muted: #a497bb; --accent-ink: #ffffff;
  --gold: #fbbf24; --danger: #fb7185; --warn: #fbbf24; --ok: #4ade80;
  --ok-bg: #0f2a1b; --ok-tx: #86efac; --info-bg: #26153f; --info-tx: #d8b4fe;
  --warn-bg: #33250a; --warn-tx: #fcd34d; --bad-bg: #3a1020; --bad-tx: #fda4af;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 40px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 30px 70px -20px rgba(155,44,255,.35);
  --brand-text: #ffffff; --emblem: url(/img/emblem-dark.png);
  --glow-a: rgba(162,56,255,.22); --glow-b: rgba(255,77,94,.16);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.55;
  min-height: calc(100vh / var(--z, 1)); display: flex; flex-direction: column; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(162,56,255,.35); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.15; letter-spacing: -.01em; }
h1, h2 { font-family: var(--head); font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: 32px; }
h2 { font-size: 21px; }
h3 { font-size: 17px; font-weight: 800; }
h4 { font-size: 15px; font-weight: 800; }
small { color: var(--muted); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
main.wrap { flex: 1; padding-top: 26px; padding-bottom: 60px; position: relative; z-index: 1; }
.muted { color: var(--muted); }
.center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; }
.hidden { display: none !important; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; animation: shine 6s linear infinite; }

/* ---------- animated background ---------- */
.bg-glow { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-glow span { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(90px); opacity: 1; animation: drift 22s ease-in-out infinite alternate; }
.bg-glow span:nth-child(1) { background: var(--glow-a); top: -160px; left: -120px; }
.bg-glow span:nth-child(2) { background: var(--glow-b); top: 30%; right: -180px; animation-duration: 28s; animation-delay: -6s; }
.bg-glow span:nth-child(3) { background: var(--glow-a); bottom: -220px; left: 30%; animation-duration: 32s; animation-delay: -12s; }
@keyframes drift { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,40px) scale(1.15); } 100% { transform: translate(-40px,80px) scale(.95); } }
@keyframes shine { to { background-position: 200% center; } }

/* ---------- topbar & brand ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.topbar.scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); }
.topbar-in { display: flex; align-items: center; gap: 14px; height: 70px; transition: height .3s; }
.topbar.scrolled .topbar-in { height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand-emblem { width: 52px; height: 52px; background: var(--emblem) center/contain no-repeat; flex: none; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.brand:hover .brand-emblem { transform: rotate(-12deg) scale(1.08); }
.brand-text { display: flex; flex-direction: column; line-height: .95; font-family: var(--head); }
.brand-text b { font-weight: 900; font-size: 15px; letter-spacing: .02em; color: var(--brand-text); }
.brand-text i { font-style: normal; font-weight: 900; font-size: 15px; letter-spacing: .14em; color: var(--red); }
.brand-sm .brand-emblem { width: 40px; height: 40px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a, .nav button {
  position: relative; padding: 9px 13px; border-radius: 12px; font-weight: 700; font-size: 14px; color: var(--muted);
  white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; cursor: pointer; font-family: inherit; transition: color .2s, background .2s;
}
.nav a:hover, .nav button:hover { color: var(--text); background: var(--card2); }
.nav a.active { color: var(--text); background: var(--grad-soft); }
.nav a.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--grad); }
.nav a.cta { color: #fff; background: var(--grad); background-size: 200% auto; box-shadow: 0 6px 20px -6px rgba(192,38,211,.6); }
.nav a.cta:hover { background-position: right center; color: #fff; }
.nav .pill { background: var(--red); color: #fff; border-radius: 99px; font-size: 11px; padding: 0 6px; line-height: 18px; animation: pulse 2s infinite; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  color: var(--text); display: grid; place-items: center; cursor: pointer; flex: none; transition: transform .3s, border-color .2s; }
.icon-btn:hover { border-color: var(--violet); transform: rotate(20deg); }
@media (max-width: 720px) {
  .topbar .brand-text { display: none; }
  .nav .lbl { display: none; }
  .brand-emblem { width: 44px; height: 44px; }
}

/* ---------- footer ---------- */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--line); background: var(--card); }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--grad); opacity: .8; }
.footer-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.footer-credit { display: flex; gap: 16px; align-items: center; color: var(--muted); font-weight: 700; flex-wrap: wrap; }
.tg-link { display: inline-flex; gap: 6px; align-items: center; color: #29a9eb; font-weight: 700; }
.tg-link:hover { text-decoration: underline; }

/* ---------- cards & ui ---------- */
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card-h h3 { margin: 0; display: flex; gap: 8px; align-items: center; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.section { margin-top: 44px; }
.section-h { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.section-h h2 { margin: 0; }
.section-h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.section-h .count { background: var(--grad-soft); border: 1px solid var(--line); border-radius: 99px; padding: 1px 11px; font-weight: 800; color: var(--text); font-size: 13px; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 800; color: var(--violet); }

.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card2); color: var(--text); font: 800 14px/1.2 inherit; font-family: inherit;
  cursor: pointer; transition: transform .15s, box-shadow .25s, border-color .2s, background-position .5s; white-space: nowrap;
}
.btn:hover { border-color: var(--violet); transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--grad); background-size: 200% auto; border-color: transparent; color: #fff; box-shadow: 0 10px 26px -10px rgba(192,38,211,.7); }
.btn.primary:hover { background-position: right center; box-shadow: 0 14px 32px -10px rgba(255,77,94,.7); }
.btn.primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); transform: translateX(-120%); transition: transform .7s; }
.btn.primary:hover::after { transform: translateX(120%); }
.btn.danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.btn.danger:hover { background: var(--bad-bg); border-color: var(--danger); }
.btn.ghost { background: transparent; }
.btn.glass { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; backdrop-filter: blur(8px); }
.btn.glass:hover { background: rgba(255,255,255,.18); border-color: #fff; }
.btn.sm { padding: 7px 11px; font-size: 13px; border-radius: 10px; }
.btn.lg { padding: 14px 24px; font-size: 15px; border-radius: 14px; }
.btn.block { width: 100%; }

label.f { display: block; margin-bottom: 14px; }
label.f > span { display: block; font-weight: 800; font-size: 13px; margin-bottom: 6px; color: var(--muted); }
label.f > span .req { color: var(--red); }
label.f > em { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 5px; }
input, select, textarea {
  width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2);
  color: var(--text); font: 600 15px inherit; font-family: inherit; outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--violet); background: var(--card); box-shadow: 0 0 0 4px rgba(162,56,255,.18); }
textarea { min-height: 90px; resize: vertical; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--violet); }
.check { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; font-size: 14px; cursor: pointer; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 14px; }
.input-icon { position: relative; }
.input-icon > svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon > input { padding-left: 40px; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; background: var(--card2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok-tx); border-color: transparent; }
.badge.info { background: var(--info-bg); color: var(--info-tx); border-color: transparent; }
.badge.warn { background: var(--warn-bg); color: var(--warn-tx); border-color: transparent; }
.badge.bad { background: var(--bad-bg); color: var(--bad-tx); border-color: transparent; }
.badge.gold { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); border-color: transparent; }
.badge.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.alert { padding: 13px 15px; border-radius: 14px; font-weight: 700; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.alert.info { background: var(--info-bg); color: var(--info-tx); }
.alert.warn { background: var(--warn-bg); color: var(--warn-tx); }
.alert.bad { background: var(--bad-bg); color: var(--bad-tx); }
.alert.ok { background: var(--ok-bg); color: var(--ok-tx); }

.empty { text-align: center; padding: 40px 16px; color: var(--muted); border: 1.5px dashed var(--line); border-radius: var(--radius); font-weight: 600; background: color-mix(in srgb, var(--card) 50%, transparent); }
.loader { width: 54px; height: 54px; margin: 110px auto; background: var(--emblem) center/contain no-repeat; animation: spinY 1.2s ease-in-out infinite; }
@keyframes spinY { 0% { transform: rotateY(0) scale(1); } 50% { transform: rotateY(180deg) scale(.85); } 100% { transform: rotateY(360deg) scale(1); } }

/* ---------- page & reveal animations ---------- */
.page { animation: pageIn .55s cubic-bezier(.2,.8,.2,1) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { animation: pageIn .6s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 60ms); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-radius: 28px; padding: 64px 48px 46px; color: #fff; min-height: 470px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; box-shadow: var(--shadow-lg); }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: url(/img/hero-stadium.jpg) center/cover; animation: kenburns 24s ease-in-out infinite alternate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(20,6,38,.94) 0%, rgba(42,10,70,.82) 42%, rgba(120,20,120,.35) 75%, rgba(255,77,94,.25) 100%),
              linear-gradient(0deg, rgba(12,7,22,.85), transparent 55%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(115deg, transparent 0 80px, rgba(255,255,255,.025) 80px 160px); }
@keyframes kenburns { from { transform: scale(1.05) translate(0, 0); } to { transform: scale(1.18) translate(-2%, 1%); } }
.hero-emblem { position: absolute; right: 6%; top: 50%; width: min(34vw, 380px); aspect-ratio: 1; background: url(/img/emblem-dark.png) center/contain no-repeat; transform: translateY(-50%); animation: float 6s ease-in-out infinite; filter: drop-shadow(0 30px 50px rgba(162,56,255,.55)); z-index: -1; }
@keyframes float { 0%, 100% { transform: translateY(-50%) rotate(-4deg); } 50% { transform: translateY(-56%) rotate(3deg); } }
.hero .kicker { display: inline-flex; gap: 8px; align-items: center; width: fit-content; text-transform: uppercase; letter-spacing: .18em; font-size: 11px; font-weight: 800; color: #fff; padding: 7px 14px; border-radius: 99px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(8px); margin-bottom: 18px; }
.hero .kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff5a3c; box-shadow: 0 0 12px #ff5a3c; animation: pulse 1.6s infinite; color: #ff5a3c; }
.hero h1 { font-size: clamp(30px, 5vw, 56px); line-height: 1.04; margin-bottom: 16px; max-width: 760px; }
.hero h1 .grad-text { background: linear-gradient(115deg, #d38bff, #ff6a7a, #ffb36b, #d38bff); background-size: 300% auto; -webkit-background-clip: text; background-clip: text; }
.hero p { color: rgba(255,255,255,.8); max-width: 560px; margin: 0 0 26px; font-size: 16.5px; }
.hero-stats { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats > div { padding: 12px 18px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); min-width: 130px; }
.hero-stats b { display: block; font-family: var(--head); font-size: 28px; line-height: 1.1; }
.hero-stats span { color: rgba(255,255,255,.7); font-size: 13px; font-weight: 700; }
.hero > * { animation: pageIn .8s cubic-bezier(.2,.8,.2,1) both; }
.hero > *:nth-child(3) { animation-delay: .08s; } .hero > *:nth-child(4) { animation-delay: .16s; } .hero > *:nth-child(5) { animation-delay: .24s; } .hero > *:nth-child(6) { animation-delay: .32s; } .hero > *:nth-child(7) { animation-delay: .4s; }
@media (max-width: 760px) {
  .hero { padding: 40px 22px 28px; min-height: 0; }
  .hero-emblem { width: 180px; right: -30px; top: 28%; opacity: .45; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-stats > div { min-width: 0; padding: 10px 12px; }
  .hero-stats b { font-size: 22px; }
}

/* ---------- features / types ---------- */
.feature { position: relative; padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; overflow: hidden; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature .num { position: absolute; right: 16px; top: 8px; font-family: var(--head); font-size: 54px; font-weight: 900; opacity: .07; }
.feature .fi { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--grad); margin-bottom: 14px; box-shadow: 0 10px 24px -8px rgba(192,38,211,.6); }
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

.typecard { position: relative; overflow: hidden; border-radius: var(--radius); min-height: 190px; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; isolation: isolate; box-shadow: var(--shadow); }
.typecard .tbg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.typecard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(18,6,34,.92) 10%, rgba(18,6,34,.35) 70%, rgba(18,6,34,.15)); }
.typecard:hover .tbg { transform: scale(1.1); }
.typecard h3 { font-family: var(--head); font-size: 17px; margin: 10px 0 4px; }
.typecard p { margin: 0; font-size: 13px; color: rgba(255,255,255,.78); }

/* ---------- tournament cards ---------- */
.tcard { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .3s; overflow: hidden; }
.tcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--violet) 45%, var(--line)); }
.tcard .tc-img { position: relative; height: 128px; overflow: hidden; }
.tcard .tc-img > div { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.tcard:hover .tc-img > div { transform: scale(1.1); }
.tcard .tc-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--card) 2%, rgba(18,6,34,.25) 60%, rgba(18,6,34,.1)); }
.tcard .tc-top { position: absolute; left: 14px; right: 14px; top: 12px; z-index: 2; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.tcard .tc-body { padding: 4px 18px 18px; display: flex; flex-direction: column; gap: 10px; margin-top: -26px; position: relative; z-index: 2; }
.tcard h3 { margin: 0; font-family: var(--head); font-size: 18px; font-weight: 800; }
.tcard .meta { color: var(--muted); font-size: 13px; font-weight: 700; display: flex; gap: 6px; align-items: center; }
.tcard .champ { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 12px; background: color-mix(in srgb, var(--gold) 14%, transparent); font-weight: 800; font-size: 13px; }
.tcard .tbar { height: 6px; border-radius: 6px; background: var(--bg2); overflow: hidden; }
.tcard .tbar i { display: block; height: 100%; background: var(--grad); border-radius: 6px; transform-origin: left; animation: grow 1.2s cubic-bezier(.2,.8,.2,1) both; }
@keyframes grow { from { transform: scaleX(0); } }
.type-ico { width: 30px; height: 30px; border-radius: 10px; display: inline-grid; place-items: center; color: #fff; flex: none; box-shadow: 0 6px 14px -4px rgba(0,0,0,.4); }
.type-ico.ucl { background: linear-gradient(135deg, #1e3a8a, #6366f1); }
.type-ico.wc { background: linear-gradient(135deg, #b45309, #f59e0b); }
.type-ico.league { background: linear-gradient(135deg, #7e22ce, #c026d3); }
.type-ico.cup { background: linear-gradient(135deg, #e11d48, #ff7a3c); }
.chip-dark { display: inline-flex; gap: 6px; align-items: center; padding: 5px 10px 5px 5px; border-radius: 99px; background: rgba(12,6,22,.55); color: #fff; font-size: 12px; font-weight: 800; backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.15); }
.chip-dark .type-ico { width: 24px; height: 24px; border-radius: 99px; }

/* ---------- logos ---------- */
.logo { border-radius: 50%; object-fit: cover; flex: none; background: var(--card2); }
.logo.flag { box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--line); }
.logo.custom { border-radius: 10px; object-fit: contain; background: transparent; }
:root[data-theme="dark"] .logo.custom { background: #f4f1fa; border-radius: 50%; padding: 3px; }
:root[data-theme="dark"] .bteam .logo.custom, :root[data-theme="dark"] .champ-banner .logo.custom, :root[data-theme="dark"] .tpick .logo.custom { padding: 8px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo.custom { background: #f4f1fa; border-radius: 50%; padding: 3px; }
  :root:not([data-theme="light"]) .bteam .logo.custom, :root:not([data-theme="light"]) .champ-banner .logo.custom, :root:not([data-theme="light"]) .tpick .logo.custom { padding: 8px; }
}
.crest { flex: none; display: block; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }

/* ---------- match rows ---------- */
.mrow { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 16px; border: 1px solid var(--line); background: var(--card); transition: transform .25s, border-color .25s, box-shadow .25s; }
.mrow + .mrow { margin-top: 9px; }
.mrow:hover { border-color: color-mix(in srgb, var(--violet) 55%, var(--line)); transform: translateX(3px); box-shadow: var(--shadow); }
.mrow.mine { background: linear-gradient(90deg, rgba(162,56,255,.09), rgba(255,77,94,.06)), var(--card); border-color: color-mix(in srgb, var(--violet) 40%, var(--line)); }
.mrow.mine::before { content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--grad); }
.mrow .side { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mrow .side.home { justify-content: flex-end; text-align: right; }
.mrow .tn { min-width: 0; display: flex; flex-direction: column; }
.mrow .tn b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow .tn small { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow .mid { min-width: 92px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.mrow .sc { font-family: var(--head); font-weight: 800; font-size: 17px; letter-spacing: .04em; padding: 4px 12px; border-radius: 10px; background: var(--grad); color: #fff; box-shadow: 0 6px 16px -8px rgba(192,38,211,.7); }
.mrow .vs { font-family: var(--head); font-weight: 800; font-size: 12px; color: var(--muted); letter-spacing: .14em; padding: 5px 12px; border-radius: 10px; border: 1px dashed var(--line); }
.mrow .mid small { font-size: 11px; font-weight: 800; }
.mrow .meta-line { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 700; border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 2px; flex-wrap: wrap; }
.tag { font-style: normal; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 6px; }
.tag.auto { background: var(--warn-bg); color: var(--warn-tx); }
.tag.grp { background: var(--info-bg); color: var(--info-tx); }
@media (max-width: 560px) {
  .mrow { padding: 10px 8px; gap: 6px; }
  .mrow .side { gap: 6px; }
  .mrow .side .logo, .mrow .side .crest { width: 28px !important; height: 28px !important; }
  .mrow .tn b { font-size: 12.5px; }
  .mrow .mid { min-width: 66px; }
  .mrow .sc { font-size: 14px; padding: 3px 8px; }
}

.round { margin-bottom: 26px; }
.round-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.round-h h4 { margin: 0; font-family: var(--head); font-size: 14px; letter-spacing: .02em; }
.dl { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--muted); background: var(--card2); border: 1px solid var(--line); padding: 5px 11px; border-radius: 99px; }
.dl b { color: var(--violet); font-variant-numeric: tabular-nums; }
.dl b.urgent { color: var(--warn); animation: blink 1.4s ease-in-out infinite; }
.dl b.over { color: var(--danger); }
@keyframes blink { 50% { opacity: .45; } }

/* ---------- tabs ---------- */
.tabs { position: relative; display: flex; gap: 4px; padding: 5px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; box-shadow: var(--shadow); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button, .tabs a { position: relative; z-index: 1; flex: none; padding: 9px 16px; border-radius: 12px; border: 0; background: none; color: var(--muted); font: 800 14px inherit; font-family: inherit; cursor: pointer; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; transition: color .25s; }
.tabs button.active, .tabs a.active { color: #fff; }
.tabs .ink { position: absolute; z-index: 0; top: 5px; bottom: 5px; border-radius: 12px; background: var(--grad); box-shadow: 0 8px 20px -8px rgba(192,38,211,.7); transition: left .35s cubic-bezier(.2,.8,.2,1), width .35s cubic-bezier(.2,.8,.2,1); }
.pane { animation: pageIn .45s cubic-bezier(.2,.8,.2,1) both; }

/* ---------- tournament header ---------- */
.thero { position: relative; overflow: hidden; border-radius: 24px; padding: 36px 30px 28px; color: #fff; margin-bottom: 22px; isolation: isolate; box-shadow: var(--shadow-lg); }
.thero .tbg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; animation: kenburns 30s ease-in-out infinite alternate; }
.thero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(20,6,38,.95) 0%, rgba(50,12,80,.82) 50%, rgba(255,77,94,.35) 100%); }
.thero h1 { margin: 12px 0 8px; font-size: clamp(26px, 4vw, 40px); }
.thero .sub { color: rgba(255,255,255,.78); font-weight: 700; }
.thero .desc { color: rgba(255,255,255,.72); max-width: 720px; white-space: pre-line; margin: 10px 0 0; }
.thero .row.top { justify-content: space-between; align-items: flex-start; }
.champ-banner { position: relative; overflow: hidden; display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: var(--radius); margin-bottom: 22px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--gold) 26%, var(--card)), var(--card) 70%); border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); box-shadow: var(--shadow); }
.champ-banner::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -40%; background: linear-gradient(105deg, transparent, rgba(255,255,255,.35), transparent); animation: sweep 3.5s ease-in-out infinite; }
@keyframes sweep { to { left: 120%; } }
.champ-banner .big { font-family: var(--head); font-size: 22px; font-weight: 800; }
.trophy { color: var(--gold); animation: float2 3s ease-in-out infinite; }
@keyframes float2 { 50% { transform: translateY(-5px) rotate(-6deg); } }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 11px 8px; text-align: center; white-space: nowrap; }
.tbl th { font-size: 11px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: var(--card2); border-bottom: 1px solid var(--line); }
.tbl td { border-bottom: 1px solid var(--line); font-weight: 700; font-variant-numeric: tabular-nums; }
.tbl tbody tr { transition: background .2s; animation: pageIn .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 30ms); }
.tbl tbody tr:hover td { background: var(--card2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .l { text-align: left; }
.tbl .pos { width: 46px; font-family: var(--head); font-weight: 800; position: relative; }
.tbl tr.z-direct .pos { box-shadow: inset 4px 0 0 #22c55e; }
.tbl tr.z-playoff .pos { box-shadow: inset 4px 0 0 var(--violet); }
.tbl tr.z-out .pos { box-shadow: inset 4px 0 0 var(--red); }
.tbl tr.z-champ .pos { box-shadow: inset 4px 0 0 var(--gold); }
.tbl tr.me td { background: rgba(162,56,255,.08); }
.tbl .pts { font-family: var(--head); font-weight: 800; font-size: 15px; }
.tbl .tcell { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.tbl .tcell div { display: flex; flex-direction: column; line-height: 1.2; }
.tbl .tcell small { font-size: 12px; font-weight: 700; }
.form { display: inline-flex; gap: 3px; }
.form i { width: 19px; height: 19px; border-radius: 6px; display: inline-grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 800; color: #fff; }
.form i.W { background: #16a34a; } .form i.D { background: #94a3b8; } .form i.L { background: #e11d48; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--muted); font-weight: 700; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: var(--c); }
@media (max-width: 640px) { .hide-sm { display: none; } }

/* ---------- bracket ---------- */
.bracket { display: flex; gap: 26px; overflow-x: auto; padding: 4px 2px 12px; align-items: stretch; }
.bcol { min-width: 250px; display: flex; flex-direction: column; animation: pageIn .6s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 90ms); }
.bcol h4 { text-align: center; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.bcol .ties { display: flex; flex-direction: column; justify-content: space-around; gap: 16px; flex: 1; }
.tie { display: block; border: 1px solid var(--line); background: var(--card); border-radius: 14px; overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s; box-shadow: var(--shadow); }
.tie:hover { border-color: var(--violet); transform: scale(1.03); box-shadow: var(--shadow-lg); }
.tie .tl { display: flex; align-items: center; gap: 8px; padding: 9px 11px; font-weight: 700; font-size: 14px; }
.tie .tl + .tl { border-top: 1px solid var(--line); }
.tie .tl .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.tie .tl .nm b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.tie .tl .nm small { font-size: 11px; }
.tie .tl .g { font-family: var(--head); font-weight: 800; min-width: 22px; text-align: right; font-variant-numeric: tabular-nums; }
.tie .tl.win { background: linear-gradient(90deg, rgba(162,56,255,.14), transparent); }
.tie .tl.win b { color: var(--violet); }
.tie .tl.lose { opacity: .5; }
.tie .foot { font-size: 11px; color: var(--muted); padding: 5px 11px; border-top: 1px dashed var(--line); font-weight: 800; display: flex; justify-content: space-between; gap: 6px; }

/* ---------- team picker ---------- */
.tpicker { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tpick { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 16px 8px 12px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--card2); cursor: pointer; font: 800 13px inherit; font-family: inherit; color: var(--text); transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .2s, box-shadow .25s; }
.tpick:hover:not(:disabled) { border-color: var(--violet); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tpick:hover:not(:disabled) .logo, .tpick:hover:not(:disabled) .crest { transform: scale(1.1) rotate(-4deg); }
.tpick .logo, .tpick .crest { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.tpick:disabled { cursor: not-allowed; opacity: .4; filter: grayscale(.8); }
.tpick.mine { border-color: transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box; border: 2px solid transparent; box-shadow: 0 12px 30px -12px rgba(192,38,211,.6); }
.tpick.mine::after { content: "✓"; position: absolute; top: 8px; right: 10px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 12px; }
.tpick small { font-size: 11px; font-weight: 700; }

/* ---------- participants ---------- */
.plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.pcard { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); transition: transform .25s, border-color .25s; animation: pageIn .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 35ms); }
.pcard:hover { transform: translateY(-3px); border-color: var(--violet); }
.pcard .info { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.pcard .info b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .info small { font-weight: 700; }
.tg { color: #29a9eb; font-weight: 800; font-size: 13px; }
.tg:hover { text-decoration: underline; }

/* ---------- match page ---------- */
.board { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; padding: 44px 24px 36px; border-radius: 28px; color: #fff; isolation: isolate; box-shadow: var(--shadow-lg); }
.board .bbg { position: absolute; inset: 0; z-index: -2; background: url(/img/arena-night.jpg) center/cover; animation: kenburns 26s ease-in-out infinite alternate; }
.board::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.12), transparent 60%), linear-gradient(100deg, rgba(60,10,110,.9), rgba(20,6,38,.85) 50%, rgba(160,20,60,.85)); }
.board::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(transparent, rgba(255,255,255,.18), transparent); z-index: -1; }
.bteam { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; min-width: 0; animation: pageIn .7s cubic-bezier(.2,.8,.2,1) both; }
.bteam:last-child { animation-delay: .1s; }
.bteam > .logo, .bteam > .crest, .bteam > img { filter: drop-shadow(0 14px 24px rgba(0,0,0,.45)); animation: float3 5s ease-in-out infinite; }
@keyframes float3 { 50% { transform: translateY(-6px); } }
.bteam h2 { margin: 10px 0 0; font-size: 19px; }
.bteam .nick { font-weight: 800; color: rgba(255,255,255,.88); }
.bteam .tg { color: #7dd3fc; }
.bscore { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 8px; }
.bscore .rn { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.75); padding: 5px 12px; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.bscore .big { font-family: var(--head); font-size: 60px; font-weight: 900; line-height: 1; letter-spacing: .02em; font-variant-numeric: tabular-nums; padding: 14px 26px; border-radius: 20px; background: rgba(0,0,0,.32); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); animation: pop .7s cubic-bezier(.3,1.6,.5,1) both .15s; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.bscore .pens { font-weight: 800; color: rgba(255,255,255,.85); font-size: 14px; }
.bscore .dl { background: rgba(0,0,0,.3); color: rgba(255,255,255,.82); border-color: rgba(255,255,255,.16); }
.bscore .dl b { color: #f0abfc; }
.bscore .dl b.urgent { color: #fcd34d; } .bscore .dl b.over { color: #fda4af; }
@media (max-width: 640px) {
  .board { padding: 26px 10px; gap: 6px; border-radius: 22px; }
  .bteam h2 { font-size: 13px; }
  .bteam .nick { font-size: 12px; }
  .bteam .tg { font-size: 11px; }
  .bteam .logo, .bteam .crest { width: 58px !important; height: 58px !important; }
  .bscore .big { font-size: 32px; padding: 9px 12px; }
}

.score-form { max-width: 580px; margin: 0 auto; }
.score-inputs { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 10px 0 18px; }
.score-inputs input { width: 90px; height: 80px; text-align: center; font-family: var(--head); font-size: 36px; font-weight: 800; padding: 0; border-radius: 18px; border-width: 2px; }
.score-inputs .colon { font-family: var(--head); font-size: 36px; font-weight: 800; color: var(--muted); }
.score-inputs.pen input { width: 66px; height: 54px; font-size: 22px; }
.score-labels { display: grid; grid-template-columns: 1fr 1fr; text-align: center; font-weight: 800; font-size: 13px; color: var(--muted); gap: 40px; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 2px dashed var(--line); border-radius: 18px; padding: 26px; cursor: pointer; text-align: center; color: var(--muted); font-weight: 700; transition: border-color .2s, background .2s; background: var(--card2); }
.drop:hover, .drop.over { border-color: var(--violet); color: var(--text); background: var(--grad-soft); }
.drop > div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.drop svg { color: var(--violet); }
.drop img { max-height: 220px; border-radius: 12px; }
.shot { display: block; max-height: 540px; width: auto; margin: 0 auto; border-radius: 14px; border: 1px solid var(--line); transition: transform .3s; }
.shot:hover { transform: scale(1.01); }

.hist { list-style: none; padding: 0; margin: 0; position: relative; }
.hist li { position: relative; display: flex; gap: 10px; justify-content: space-between; padding: 10px 0 10px 22px; border-bottom: 1px dashed var(--line); font-size: 14px; flex-wrap: wrap; }
.hist li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 9px; height: 9px; border-radius: 50%; background: var(--grad); }
.hist li:last-child { border-bottom: 0; }

/* ---------- profile ---------- */
.profile-card { overflow: hidden; padding: 0; }
.profile-cover { height: 130px; background: url(/img/stadium-pitch.jpg) center/cover; position: relative; }
.profile-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,7,22,.55), transparent 60%), linear-gradient(100deg, rgba(60,10,110,.35), rgba(255,77,94,.15)); }
.profile-cover { height: auto; aspect-ratio: 4 / 1; min-height: 120px; max-height: 300px; }
.profile-head { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; padding: 0 24px 22px; margin-top: -42px; position: relative; z-index: 1; }
.avatar { width: 90px; height: 90px; border-radius: 26px; display: grid; place-items: center; font-family: var(--head); font-size: 36px; font-weight: 900; color: #fff; background: var(--grad); flex: none; border: 4px solid var(--card); box-shadow: var(--shadow-lg); }
.profile-head .nickname { font-family: var(--head); font-size: 26px; font-weight: 800; line-height: 1.1; }
.profile-head .tg { font-size: 15px; }
.profile-form { padding: 0 24px 22px; }

/* ---------- auth ---------- */
.auth { display: grid; grid-template-columns: 1.05fr 1fr; max-width: 980px; margin: 10px auto; border-radius: 28px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.auth-side { position: relative; padding: 40px 34px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; min-height: 520px; isolation: isolate; overflow: hidden; }
.auth-side .abg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; animation: kenburns 24s ease-in-out infinite alternate; }
.auth-side::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(20,6,38,.95) 15%, rgba(60,10,110,.55) 60%, rgba(255,77,94,.25)); }
.auth-side .ae { width: 92px; height: 92px; background: url(/img/emblem-dark.png) center/contain no-repeat; margin-bottom: 18px; animation: float2 4s ease-in-out infinite; }
.auth-side h2 { font-size: 26px; }
.auth-side p { color: rgba(255,255,255,.78); margin: 0; }
.auth-form { padding: 40px 34px; display: flex; flex-direction: column; justify-content: center; }
.auth-form h2 { margin-bottom: 4px; }
.auth .sub { color: var(--muted); margin-bottom: 24px; font-weight: 600; }
.auth .alt { text-align: center; margin-top: 18px; color: var(--muted); font-size: 14px; font-weight: 600; }
.auth .alt a { color: var(--violet); font-weight: 800; }
@media (max-width: 820px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { min-height: 200px; padding: 26px; }
  .auth-side .ae { width: 60px; height: 60px; margin-bottom: 10px; }
  .auth-form { padding: 26px 22px; }
}

/* ---------- admin ---------- */
.admin-layout { display: grid; grid-template-columns: 230px 1fr; gap: 22px; align-items: start; }
.side-nav { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 4px; padding: 10px; }
.side-nav a { position: relative; padding: 11px 13px; border-radius: 12px; font-weight: 800; font-size: 14px; color: var(--muted); display: flex; gap: 10px; align-items: center; transition: background .2s, color .2s, transform .2s; }
.side-nav a:hover { background: var(--card2); color: var(--text); transform: translateX(3px); }
.side-nav a.active { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(192,38,211,.7); }
.side-nav .pill { margin-left: auto; background: var(--red); color: #fff; border-radius: 99px; font-size: 11px; padding: 0 7px; line-height: 18px; }
.side-nav a.active .pill { background: #fff; color: var(--red); }
@media (max-width: 860px) {
  .admin-layout { grid-template-columns: 1fr; }
  .side-nav { position: static; flex-direction: row; overflow-x: auto; }
  .side-nav a { white-space: nowrap; }
}
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.li:last-child { border-bottom: 0; }
.li .info { flex: 1; min-width: 180px; display: flex; flex-direction: column; line-height: 1.3; }
.report { border: 1px solid var(--line); border-radius: 16px; padding: 15px; background: var(--card2); }
.report + .report { margin-top: 12px; }
.report.open { border-color: color-mix(in srgb, var(--danger) 50%, var(--line)); }
.report .thumb { width: 120px; height: 80px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.dl-table td { padding: 8px 6px; }
.dl-table input[type=datetime-local] { min-width: 210px; }

/* ---------- toasts ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 100; display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 32px); }
.toast { padding: 13px 16px 13px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-weight: 800; font-size: 14px; animation: tin .45s cubic-bezier(.3,1.4,.5,1); position: relative; overflow: hidden; }
.toast::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); }
.toast.err::before { background: var(--danger); }
.toast::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--grad); opacity: .5; transform-origin: left; animation: shrink 4.2s linear forwards; }
@keyframes shrink { to { transform: scaleX(0); } }
@keyframes tin { from { transform: translateX(40px); opacity: 0; } }

/* ---------- avatar, kartochkalar ---------- */
.ava { flex: none; border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; color: #fff; font-family: var(--head); font-weight: 800; background: var(--grad); overflow: hidden; box-shadow: 0 0 0 2px var(--card); }
img.ava { background: var(--card2); }
.cards-ic { display: inline-flex; gap: 3px; vertical-align: middle; margin-left: 4px; }
.cards-ic i { display: inline-block; width: 10px; height: 14px; border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.35); transform: rotate(8deg); }
.cards-ic i.y { background: #facc15; } .cards-ic i.r { background: #ef4444; animation: blink 1.6s ease-in-out infinite; }
.card-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.btn.yc { background: #facc15; color: #3b2a00; border-color: #eab308; }
.btn.rc { background: #ef4444; color: #fff; border-color: #dc2626; }
.tag.ff { background: var(--bad-bg); color: var(--bad-tx); }
.plink { color: inherit; font-weight: 800; }
.plink:hover { color: var(--violet); text-decoration: underline; }

/* ---------- profil (yangi) ---------- */
.profile-cover { background-size: cover; background-position: center; }
.profile-cover.editable { cursor: pointer; }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.media-edit { display: grid; grid-template-columns: 140px 1fr; gap: 16px; margin-bottom: 14px; }
.media-edit .drop { padding: 14px; min-height: 120px; }
.media-edit .ava-prev { width: 110px; height: 110px; border-radius: 28px; object-fit: cover; }
.media-edit .ban-prev { width: 100%; aspect-ratio: 4 / 1; object-fit: cover; border-radius: 12px; }
@media (max-width: 560px) { .media-edit { grid-template-columns: 1fr; } }
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; padding: 0 24px 22px; }
.stat-strip > div { padding: 12px 14px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); }
.stat-strip b { display: block; font-family: var(--head); font-size: 22px; }
.stat-strip span { color: var(--muted); font-size: 12px; font-weight: 800; }
.tstat { display: flex; gap: 8px; flex-wrap: wrap; }
.tstat span { font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 8px; background: var(--card2); border: 1px solid var(--line); }
.tstat span b { color: var(--violet); }

/* ---------- mobil menyu ---------- */
.menu-btn { display: none; }
@media (max-width: 760px) {
  .menu-btn { display: grid; }
  .nav { position: absolute; top: calc(100% + 6px); right: 12px; left: 12px; flex-direction: column; align-items: stretch; gap: 4px; padding: 10px;
    background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); margin: 0;
    opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none; transition: opacity .2s, transform .25s; overflow: visible; }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav .lbl { display: inline !important; }
  .nav a, .nav button { padding: 12px 14px; font-size: 15px; }
  .nav a.active::after { display: none; }
  .topbar-in { position: relative; }
  .topbar .brand { margin-right: auto; }
  .topbar .brand-text { display: flex; }
  .brand-text b, .brand-text i { font-size: 13px; }
}
/* planshet */
@media (min-width: 761px) and (max-width: 1024px) {
  .nav a, .nav button { padding: 8px 10px; font-size: 13px; }
  .nav .lbl { display: inline; }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .hero-emblem { width: 260px; right: 2%; opacity: .7; }
}
@media (max-width: 760px) {
  main.wrap { padding-top: 16px; }
  .g4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .typecard { min-height: 150px; padding: 14px; }
  .typecard h3 { font-size: 14px; }
  .typecard p { display: none; }
  .feature { padding: 16px; }
  .thero { padding: 24px 18px 20px; }
  .card { padding: 16px; }
  .section { margin-top: 32px; }
  .champ-banner { padding: 14px; gap: 12px; }
  .champ-banner .big { font-size: 17px; }
  .tpicker { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
  .score-inputs input { width: 72px; height: 66px; font-size: 28px; }
  .footer-in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) { .g4 { grid-template-columns: 1fr; } }

/* ---------- footer (yangi) ---------- */
.footer-in { flex-direction: column; align-items: stretch; gap: 14px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-contact { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font-weight: 700; }
.footer-contact .tg-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: linear-gradient(135deg, #2aabee, #229ed9); color: #fff; font-weight: 800; box-shadow: 0 8px 20px -8px rgba(34,158,217,.7); transition: transform .2s; }
.footer-contact .tg-btn:hover { transform: translateY(-2px); }
.footer-copy { border-top: 1px solid var(--line); padding-top: 14px; color: var(--muted); font-weight: 700; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
