/* ============================================================
   SquadFinder site — app-shell UI (zelfde design-taal als de app)
   ============================================================ */
:root {
  --bg: #0b0b12;
  --bg-raise: #12121d;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-strong: rgba(255, 255, 255, 0.14);
  --text: #eef0f8;
  --text-dim: #9aa0b5;
  --text-faint: #5d6377;
  --violet: #8b5cf6;
  --violet-deep: #6d28d9;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --green: #34d399;
  --red: #fb7185;
  --gold: #fbbf24;
  --grad-brand: linear-gradient(135deg, var(--violet) 0%, #6366f1 50%, var(--cyan) 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --titlebar-h: 44px;
  --font: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --hero-g1: rgba(217, 70, 239, .28);
  --hero-g2: rgba(59, 130, 246, .22);
  --hero-b1: rgba(109, 40, 217, .45);
  --hero-b2: rgba(49, 46, 129, .55);
  --hero-line: rgba(139, 92, 246, .4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { height: 100%; }
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button { font-family: var(--font); }
img, video { max-width: 100%; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.18); }

/* ============ Premium-thema's (live demo) ============ */
#app-frame[data-theme="ocean"]   { --violet:#0ea5e9; --violet-deep:#0369a1; --cyan:#22d3ee; --hero-g1:rgba(14,165,233,.3); --hero-g2:rgba(34,211,238,.22); --hero-b1:rgba(3,105,161,.5); --hero-b2:rgba(15,45,90,.6); --hero-line:rgba(14,165,233,.4); }
#app-frame[data-theme="ember"]   { --violet:#f97316; --violet-deep:#c2410c; --cyan:#f43f5e; --hero-g1:rgba(249,115,22,.3); --hero-g2:rgba(244,63,94,.22); --hero-b1:rgba(194,65,12,.5); --hero-b2:rgba(88,28,28,.6); --hero-line:rgba(249,115,22,.4); }
#app-frame[data-theme="emerald"] { --violet:#10b981; --violet-deep:#047857; --cyan:#34d399; --hero-g1:rgba(16,185,129,.3); --hero-g2:rgba(52,211,153,.2); --hero-b1:rgba(4,120,87,.5); --hero-b2:rgba(6,58,45,.62); --hero-line:rgba(16,185,129,.4); }
#app-frame[data-theme="rose"]    { --violet:#f43f5e; --violet-deep:#be123c; --cyan:#fb7185; --hero-g1:rgba(244,63,94,.3); --hero-g2:rgba(251,113,133,.2); --hero-b1:rgba(190,18,60,.5); --hero-b2:rgba(76,15,35,.62); --hero-line:rgba(244,63,94,.4); }
#app-frame[data-theme="goldy"]   { --violet:#f59e0b; --violet-deep:#b45309; --cyan:#fbbf24; --hero-g1:rgba(245,158,11,.3); --hero-g2:rgba(251,191,36,.2); --hero-b1:rgba(180,83,9,.5); --hero-b2:rgba(74,48,10,.62); --hero-line:rgba(245,158,11,.42); }

/* thema-gradiënt volgt de vars mee */
#app-frame[data-theme] .hh-text h2 span,
#app-frame[data-theme] .mo-title { background: linear-gradient(135deg, color-mix(in srgb, var(--violet) 60%, #fff), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ============ Ambient backdrop (achter het venster) ============ */
body.app-site { height: 100%; overflow: hidden; }
.bg-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; filter: blur(90px); }
.orb { position: absolute; border-radius: 50%; opacity: .18; animation: drift 24s ease-in-out infinite alternate; }
.orb-a { width: 560px; height: 560px; background: #7c3aed; top: -160px; left: -120px; }
.orb-b { width: 480px; height: 480px; background: #0891b2; bottom: -180px; right: -100px; animation-delay: -8s; }
.orb-c { width: 340px; height: 340px; background: #db2777; top: 42%; left: 56%; opacity: .09; animation-delay: -16s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(70px, 50px) scale(1.15); }
}

/* ============ Het "venster" ============ */
#app-frame {
  position: fixed; inset: 18px;
  display: flex; flex-direction: column;
  background: var(--bg);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .65);
  overflow: hidden;
  contain: paint;
  z-index: 1;
  transition: inset .25s ease, border-radius .25s ease;
}
#app-frame.fullbleed { inset: 0 !important; border-radius: 0; border: none; }
@media (min-width: 1720px) { #app-frame { inset: 28px max(28px, calc((100vw - 1660px) / 2)); } }

/* orbs ook subtiel ín het venster */
.frame-orbs { position: absolute; inset: 0; z-index: 0; pointer-events: none; filter: blur(90px); opacity: .55; }

/* ============ Titlebar ============ */
.titlebar {
  position: relative; z-index: 50;
  height: var(--titlebar-h); flex-shrink: 0;
  display: flex; align-items: stretch;
  background: rgba(11, 11, 18, 0.72);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--stroke);
}
.titlebar-drag { flex: 1; display: flex; align-items: center; gap: 10px; padding-left: 16px; min-width: 0; }
.app-brand { display: flex; align-items: center; gap: 9px; }
.brand-mark {
  width: 24px; height: 24px; border-radius: 7px; overflow: hidden;
  display: grid; place-items: center;
  background: var(--grad-brand);
  box-shadow: 0 2px 12px color-mix(in srgb, var(--violet) 50%, transparent);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { font-size: 13px; letter-spacing: .3px; color: var(--text-dim); font-weight: 400; white-space: nowrap; }
.brand-name b { color: var(--text); font-weight: 700; }
.preview-badge {
  padding: 3px 9px; border-radius: 999px;
  font-size: 9.5px; font-weight: 800; letter-spacing: 1.2px;
  color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--cyan) 35%, transparent);
  white-space: nowrap;
}
.titlebar-controls { display: flex; align-items: center; }
.tb-win-btns { display: flex; align-self: stretch; }
.tb-dl {
  display: inline-flex; align-items: center; gap: 7px;
  margin-right: 10px; padding: 6px 14px;
  border-radius: 9px; border: none;
  background: var(--grad-brand); color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: .2px;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--violet) 40%, transparent);
  transition: filter .15s, transform .15s;
  white-space: nowrap;
}
.tb-dl:hover { filter: brightness(1.12); transform: translateY(-1px); }
.tb-btn {
  width: 46px; border: none; background: transparent; color: var(--text-dim);
  display: grid; place-items: center; cursor: pointer; transition: background .15s, color .15s;
}
.tb-btn:hover { background: rgba(255,255,255,.07); color: var(--text); }
.tb-close:hover { background: #e81123; color: #fff; }

/* taal-switcher in titlebar */
.lang-dd { position: relative; margin-right: 8px; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-radius: 9px;
  border: 1px solid var(--stroke-strong); background: var(--surface);
  color: var(--text-dim); font-size: 11.5px; font-weight: 700; cursor: pointer;
  transition: all .15s; white-space: nowrap;
}
.lang-btn:hover { color: var(--text); border-color: rgba(255,255,255,.3); }
.lang-pop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 200;
  min-width: 170px; padding: 6px;
  background: #14141f; border: 1px solid var(--stroke-strong);
  border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.55);
  display: flex; flex-direction: column; gap: 2px;
}
.lang-pop button {
  padding: 9px 12px; border: none; border-radius: 9px; text-align: left;
  background: transparent; color: var(--text-dim);
  font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .12s;
}
.lang-pop button:hover { background: var(--surface-2); color: var(--text); }
.lang-pop button.on { background: color-mix(in srgb, var(--violet) 15%, transparent); color: var(--text); }

/* ============ Shell ============ */
.shell { position: relative; z-index: 1; display: flex; flex: 1; min-height: 0; }

/* ============ Sidebar ============ */
.sidebar {
  width: 216px; flex-shrink: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 22px 14px 16px;
  border-right: 1px solid var(--stroke);
  background: rgba(255,255,255,.015);
}
.nav-items { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border: none; border-radius: var(--radius-sm);
  background: transparent; color: var(--text-dim);
  font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: all .18s ease;
  text-align: left; text-decoration: none;
}
.nav-item:hover { background: var(--surface); color: var(--text); }
.nav-item.active {
  background: linear-gradient(135deg, color-mix(in srgb, var(--violet) 16%, transparent), color-mix(in srgb, var(--cyan) 8%, transparent));
  color: var(--text);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--violet) 25%, transparent);
}
.nav-item.active svg { color: var(--violet); }
.nav-badge {
  margin-left: auto;
  min-width: 20px; height: 20px; padding: 0 6px;
  display: grid; place-items: center;
  border-radius: 10px; font-size: 11px; font-weight: 700;
  background: var(--grad-brand); color: #fff;
}
.sidebar-bottom { display: flex; flex-direction: column; gap: 10px; }

/* LFG-radar-widget (demo, klik = download) */
.lfg-active {
  position: relative;
  display: flex; align-items: center; gap: 9px;
  padding: 11px 10px; border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--violet) 35%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--violet) 14%, transparent), color-mix(in srgb, var(--cyan) 7%, transparent));
  overflow: hidden; cursor: pointer; text-decoration: none;
}
.lfg-active::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, color-mix(in srgb, var(--violet) 12%, transparent) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: shimmer 2.4s linear infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -20% 0; } }
.lfg-radar {
  position: relative; width: 30px; height: 30px; flex-shrink: 0;
  display: grid; place-items: center;
  color: var(--cyan); z-index: 1;
}
.lfg-radar .ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid var(--cyan);
  animation: radar 2.2s ease-out infinite;
  opacity: 0;
}
.lfg-radar .r2 { animation-delay: .7s; }
.lfg-radar .r3 { animation-delay: 1.4s; }
@keyframes radar {
  0% { transform: scale(.45); opacity: .8; }
  100% { transform: scale(1.35); opacity: 0; }
}
.lfg-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; z-index: 1; }
.lfg-title { font-size: 10.5px; font-weight: 800; color: var(--cyan); letter-spacing: .3px; white-space: nowrap; }
.lfg-dots i { animation: dotBlink 1.4s infinite; font-style: normal; }
.lfg-dots i:nth-child(2) { animation-delay: .25s; }
.lfg-dots i:nth-child(3) { animation-delay: .5s; }
@keyframes dotBlink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
.lfg-detail { font-size: 11.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lfg-timer { font-size: 10.5px; color: var(--text-faint); font-variant-numeric: tabular-nums; }

/* Download-CTA (zelfde plek als "Squad zoeken" in de app) */
.lfg-cta {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px; border: none; border-radius: var(--radius-sm);
  background: var(--grad-brand); color: #fff;
  font-size: 13.5px; font-weight: 700; text-decoration: none;
  cursor: pointer; transition: transform .15s, box-shadow .25s, filter .2s;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--violet) 35%, transparent);
}
.lfg-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 28px color-mix(in srgb, var(--violet) 50%, transparent); filter: brightness(1.08); }

/* me-card */
.sidebar-me {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border: 1px solid var(--stroke); border-radius: var(--radius-sm);
  background: var(--surface); cursor: default;
}
.me-avatar {
  width: 36px; height: 36px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: #fff;
  background: var(--grad-brand);
}
.me-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.me-name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-status { font-size: 11px; color: var(--text-faint); display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; }
.me-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); flex-shrink: 0; }

/* ============ Main & views ============ */
.main { flex: 1; min-width: 0; position: relative; display: flex; }
.view { display: none; flex: 1; min-width: 0; flex-direction: column; overflow-y: auto; padding: 28px 32px 40px; }
.view.active { display: flex; }
.view-inner { width: 100%; max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.view-inner > * { flex-shrink: 0; }
.view.active .view-inner > * { animation: viewIn .35s cubic-bezier(.2,.9,.3,1) both; }
.view.active .view-inner > *:nth-child(2) { animation-delay: .04s; }
.view.active .view-inner > *:nth-child(3) { animation-delay: .08s; }
.view.active .view-inner > *:nth-child(4) { animation-delay: .12s; }
.view.active .view-inner > *:nth-child(5) { animation-delay: .16s; }
.view.active .view-inner > *:nth-child(6) { animation-delay: .2s; }
.view.active .view-inner > *:nth-child(7) { animation-delay: .24s; }
.view.active .view-inner > *:nth-child(8) { animation-delay: .28s; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.view-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -.4px; }
.view-head .subtitle { font-size: 13.5px; color: var(--text-dim); margin-top: 5px; max-width: 640px; }

.sec-label { font-size: 12px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-faint); display: flex; align-items: center; gap: 10px; }
.sec-label::after { content: ""; flex: 1; height: 1px; background: var(--stroke); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 20px; border-radius: 12px; border: none;
  font-family: var(--font); font-size: 13.5px; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: all .18s;
  white-space: nowrap;
}
.btn-brand {
  background: var(--grad-brand); color: #fff;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--violet) 35%, transparent);
}
.btn-brand:hover { transform: translateY(-2px); box-shadow: 0 10px 28px color-mix(in srgb, var(--violet) 50%, transparent); filter: brightness(1.08); }
.btn-ghost { background: var(--surface); color: var(--text-dim); border: 1px solid var(--stroke-strong); }
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,.3); background: var(--surface-2); }
.btn-gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #1c1200;
  box-shadow: 0 6px 22px rgba(251,191,36,.35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(251,191,36,.5); filter: brightness(1.06); }
.btn-lg { padding: 14px 26px; font-size: 14.5px; border-radius: 14px; }
.btn-sm { padding: 8px 14px; font-size: 12px; border-radius: 10px; }

/* ============ HOME ============ */
.home-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.home-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -.4px; }
.home-head .subtitle { font-size: 13.5px; color: var(--text-dim); margin-top: 5px; max-width: 560px; }
.home-headstats { display: flex; border: 1px solid var(--stroke); border-radius: 16px; background: var(--surface); overflow: hidden; }
.hhstat { display: flex; flex-direction: column; gap: 2px; padding: 12px 18px; }
.hhstat + .hhstat { border-left: 1px solid var(--stroke); }
.hhstat-v { font-size: 14px; font-weight: 800; white-space: nowrap; }
.hhstat-l { font-size: 11px; color: var(--text-faint); white-space: nowrap; }

/* hero-banner in app-stijl */
.home-hero {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 24px;
  padding: 34px 30px; border-radius: 24px; min-height: 168px;
  background:
    radial-gradient(ellipse 60% 130% at 88% 50%, var(--hero-g1), transparent 60%),
    radial-gradient(ellipse 50% 120% at 65% 0%, var(--hero-g2), transparent 65%),
    linear-gradient(115deg, var(--hero-b1), var(--hero-b2) 45%, rgba(15,23,42,.9));
  border: 1px solid var(--hero-line);
}
.hh-art {
  position: absolute; top: 0; bottom: 0; right: 0; width: 48%;
  pointer-events: none;
  background: url('banner.png') right 55px top 18% / auto 185% no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 42%, black calc(100% - 30px), transparent);
          mask-image: linear-gradient(90deg, transparent, black 42%, black calc(100% - 30px), transparent);
  filter: saturate(1.08);
}
.hh-art::before {
  content: ""; position: absolute; height: 1.5px; left: 6%; right: 30%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  transform: rotate(-18deg); top: 34%;
}
.hh-text { z-index: 1; flex: 1; min-width: 0; max-width: 55%; }
.hh-badge {
  display: inline-block; padding: 6px 13px; border-radius: 999px; margin-bottom: 12px;
  font-size: 11.5px; font-weight: 700;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); color: #fff;
  backdrop-filter: blur(4px);
}
.hh-text h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.6px; line-height: 1.12; }
.hh-text h2 span { background: linear-gradient(135deg, #c4b5fd, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hh-text p { font-size: 13.5px; color: rgba(238,240,248,.78); margin: 10px 0 18px; max-width: 480px; }
.hh-ctas { display: flex; gap: 10px; flex-wrap: wrap; }

/* stat-tegels */
.home-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-tile {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0;
  padding: 18px 20px; border-radius: 20px;
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--stroke);
  transition: border-color .2s, transform .18s;
}
.stat-tile:hover { border-color: var(--stroke-strong); transform: translateY(-2px); }
.st-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow: hidden; }
.st-value { font-size: 22px; font-weight: 800; letter-spacing: -.5px; white-space: nowrap; }
.st-label { font-size: 12px; font-weight: 700; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-ic { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 19px; }
.st-ic.green  { background: radial-gradient(circle, rgba(52,211,153,.22), rgba(52,211,153,.06)); box-shadow: inset 0 0 0 1px rgba(52,211,153,.3); }
.st-ic.violet { background: radial-gradient(circle, color-mix(in srgb, var(--violet) 22%, transparent), color-mix(in srgb, var(--violet) 6%, transparent)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--violet) 30%, transparent); }
.st-ic.blue   { background: radial-gradient(circle, rgba(56,189,248,.22), rgba(56,189,248,.06)); box-shadow: inset 0 0 0 1px rgba(56,189,248,.3); }
.st-ic.gold   { background: radial-gradient(circle, rgba(251,191,36,.25), rgba(251,191,36,.07)); box-shadow: inset 0 0 0 1px rgba(251,191,36,.35); }

/* features als app-kaarten */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feat-card {
  padding: 22px; border-radius: 20px;
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--stroke);
  transition: border-color .2s, transform .18s, box-shadow .25s;
}
.feat-card:hover {
  border-color: color-mix(in srgb, var(--violet) 40%, transparent);
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
}
.feat-ic {
  width: 44px; height: 44px; border-radius: 14px; margin-bottom: 14px;
  display: grid; place-items: center; font-size: 20px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--violet) 22%, transparent), color-mix(in srgb, var(--cyan) 12%, transparent));
  border: 1px solid color-mix(in srgb, var(--violet) 30%, transparent);
}
.feat-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.feat-card p { font-size: 12.5px; line-height: 1.6; color: var(--text-dim); }

/* recommended squads (mock) */
.rec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rec-card {
  border-radius: 16px; overflow: hidden;
  background: var(--bg-raise); border: 1px solid var(--stroke);
  transition: transform .18s, border-color .2s;
  display: flex; flex-direction: column;
}
.rec-card:hover { transform: translateY(-4px); border-color: var(--stroke-strong); }
.rec-hero { height: 104px; position: relative; display: grid; place-items: center; overflow: hidden; }
.rec-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(10,10,18,.78)); }
.rec-logo {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  font-size: 22px; font-weight: 900; color: #fff;
  border: 2px solid rgba(255,255,255,.25); z-index: 1;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.rec-overlay { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 2; display: flex; gap: 5px; flex-wrap: wrap; }
.rec-overlay span {
  padding: 4px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700;
  background: rgba(11,11,18,.65); backdrop-filter: blur(8px);
  border: 1px solid var(--stroke-strong); color: var(--text);
}
.rec-body { padding: 12px 14px; }
.rec-title { font-size: 13.5px; font-weight: 800; }
.rec-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 11.5px; color: var(--text-faint); }
.rec-join {
  padding: 6px 14px; border-radius: 9px; border: none;
  font-size: 11.5px; font-weight: 800; color: #fff; text-decoration: none;
  background: var(--grad-brand); cursor: pointer;
}

/* video-paneel */
.video-panel { border-radius: 24px; overflow: hidden; border: 1px solid var(--stroke-strong); box-shadow: 0 24px 70px rgba(0,0,0,.5); }
.video-panel video { display: block; width: 100%; }

/* games-marquee */
.games-strip { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
.games-track { display: flex; gap: 10px; width: max-content; animation: marquee 36s linear infinite; }
.games-strip:hover .games-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.game-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 999px; white-space: nowrap;
  font-size: 12px; font-weight: 700; color: var(--text-dim);
  background: var(--surface); border: 1px solid var(--stroke);
}

/* ============ DISCOVER (swipe-demo) ============ */
.deck-area { display: flex; flex-direction: column; align-items: center; padding: 8px 0 4px; }
.card-deck { position: relative; width: min(400px, 92vw); height: 500px; }
.player-card {
  position: absolute; inset: 0;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--bg-raise), #0d0d16);
  border: 1px solid var(--stroke-strong);
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
  overflow: hidden;
  display: flex; flex-direction: column;
  will-change: transform;
}
.player-card.behind  { transform: scale(.94) translateY(18px); filter: brightness(.55); pointer-events: none; }
.player-card.behind2 { transform: scale(.88) translateY(34px); filter: brightness(.35); pointer-events: none; }
.player-card.reveal { animation: cardReveal .35s cubic-bezier(.2,.9,.3,1.1); }
@keyframes cardReveal {
  from { transform: scale(.94) translateY(18px); filter: brightness(.55); }
  to   { transform: scale(1) translateY(0); filter: brightness(1); }
}
.player-card.fly-like { transition: transform .5s cubic-bezier(.3,.6,.4,1), opacity .5s; transform: translate(120%, -8%) rotate(18deg); opacity: 0; }
.player-card.fly-nope { transition: transform .5s cubic-bezier(.3,.6,.4,1), opacity .5s; transform: translate(-120%, -8%) rotate(-18deg); opacity: 0; }
.pc-hero { height: 42%; position: relative; flex-shrink: 0; display: grid; place-items: center; }
.pc-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(13,13,22,.95) 100%); }
.pc-avatar {
  width: 104px; height: 104px; border-radius: 32px;
  display: grid; place-items: center;
  font-size: 36px; font-weight: 800; color: #fff;
  border: 2px solid rgba(255,255,255,.25);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
  z-index: 1;
}
.pc-live {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(11,11,18,.65); backdrop-filter: blur(8px);
  border: 1px solid rgba(52,211,153,.35);
  font-size: 11px; font-weight: 700; color: var(--green);
}
.pc-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.pc-region {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(11,11,18,.65); backdrop-filter: blur(8px);
  border: 1px solid var(--stroke-strong);
  font-size: 12px; font-weight: 600; color: var(--text-dim);
}
.pc-body { flex: 1; padding: 4px 22px 18px; display: flex; flex-direction: column; gap: 11px; position: relative; z-index: 1; min-height: 0; }
.pc-name-row { display: flex; align-items: baseline; gap: 10px; }
.pc-name { font-size: 23px; font-weight: 800; letter-spacing: -.3px; }
.pc-age { font-size: 15px; color: var(--text-faint); font-weight: 600; }
.pc-rank-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.badge {
  padding: 5px 11px; border-radius: 8px;
  font-size: 11px; font-weight: 700;
  background: var(--surface-2); border: 1px solid var(--stroke);
  color: var(--text-dim);
}
.badge-rank {
  background: linear-gradient(135deg, color-mix(in srgb, var(--violet) 22%, transparent), color-mix(in srgb, var(--violet) 12%, transparent));
  border-color: color-mix(in srgb, var(--violet) 40%, transparent);
  color: color-mix(in srgb, var(--violet) 55%, #fff);
}
.badge-style { border-color: color-mix(in srgb, var(--cyan) 35%, transparent); color: color-mix(in srgb, var(--cyan) 70%, #fff); background: color-mix(in srgb, var(--cyan) 8%, transparent); }
.pc-games { display: flex; gap: 6px; flex-wrap: wrap; }
.pc-bio { font-size: 12.5px; line-height: 1.55; color: var(--text-dim); margin-top: auto; }
.stamp {
  position: absolute; top: 26px; z-index: 5;
  padding: 8px 18px; border-radius: 10px;
  font-size: 26px; font-weight: 900; letter-spacing: 2px;
  border: 3.5px solid; opacity: 0; transition: opacity .15s;
  pointer-events: none;
}
.stamp-like { left: 20px; color: var(--green); border-color: var(--green); transform: rotate(-16deg); }
.stamp-nope { right: 20px; color: var(--red); border-color: var(--red); transform: rotate(16deg); }
.player-card.fly-like .stamp-like, .player-card.fly-nope .stamp-nope { opacity: 1; }

.deck-actions { display: flex; gap: 18px; align-items: center; margin-top: 22px; }
.action-btn {
  width: 60px; height: 60px; border-radius: 50%;
  border: 1px solid var(--stroke-strong);
  background: var(--bg-raise);
  display: grid; place-items: center; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.action-btn:hover { transform: translateY(-3px) scale(1.06); }
.action-btn:active { transform: scale(.94); }
.act-nope { color: var(--red); }
.act-nope:hover { box-shadow: 0 10px 30px rgba(251,113,133,.35); background: rgba(251,113,133,.1); }
.act-like { color: var(--green); }
.act-like:hover { box-shadow: 0 10px 30px rgba(52,211,153,.35); background: rgba(52,211,153,.1); }

.deck-empty {
  position: absolute; inset: 0;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center; padding: 24px;
  border-radius: 24px; border: 1px dashed var(--stroke-strong);
  background: var(--surface);
}
.deck-empty.show { display: flex; }
.deck-empty .empty-ico { font-size: 40px; }
.deck-empty h2 { font-size: 19px; }
.deck-empty p { color: var(--text-dim); font-size: 13px; margin-bottom: 10px; max-width: 280px; }

/* match-overlay */
.match-overlay {
  position: fixed; inset: 0; z-index: 400;
  display: none; align-items: center; justify-content: center;
  background: rgba(5,5,10,.8); backdrop-filter: blur(10px);
}
.match-overlay.show { display: flex; }
.mo-card { text-align: center; animation: moIn .5s cubic-bezier(.2,.9,.3,1.15); padding: 24px; }
@keyframes moIn { from { opacity: 0; transform: scale(.8) translateY(24px); } }
.mo-title {
  font-size: clamp(38px, 6vw, 58px); font-weight: 900; letter-spacing: -1px;
  background: linear-gradient(135deg, #c4b5fd, var(--cyan), var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 10px 40px color-mix(in srgb, var(--violet) 45%, transparent));
}
.mo-avatars { display: flex; align-items: center; justify-content: center; margin: 26px 0 18px; }
.mo-av {
  width: 92px; height: 92px; border-radius: 28px;
  display: grid; place-items: center;
  font-size: 30px; font-weight: 800; color: #fff;
  border: 3px solid var(--bg);
  box-shadow: 0 14px 44px rgba(0,0,0,.5);
}
.mo-heart { font-size: 30px; margin: 0 -6px; z-index: 1; animation: heartBeat 1s ease-in-out infinite; }
@keyframes heartBeat { 0%,100% { transform: scale(1); } 30% { transform: scale(1.25); } }
.mo-sub { color: var(--text-dim); font-size: 14px; max-width: 380px; margin: 0 auto 22px; line-height: 1.6; }
.mo-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ============ MATCHES (chat-demo) ============ */
.matches-shell {
  display: flex; height: calc(100vh - 240px); min-height: 480px;
  border: 1px solid var(--stroke); border-radius: 22px; overflow: hidden;
  background: rgba(255,255,255,.015);
}
.match-list { width: 280px; flex-shrink: 0; border-right: 1px solid var(--stroke); padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.ml-head { font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-faint); padding: 4px 10px 10px; }
.match-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border: none; border-radius: 14px; text-align: left;
  background: transparent; cursor: pointer; transition: background .15s;
  width: 100%;
}
.match-row:hover { background: var(--surface); }
.match-row.active { background: linear-gradient(135deg, color-mix(in srgb, var(--violet) 14%, transparent), color-mix(in srgb, var(--cyan) 7%, transparent)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--violet) 22%, transparent); }
.mr-avatar { position: relative; width: 42px; height: 42px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; font-size: 14px; font-weight: 800; color: #fff; }
.mr-status { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; background: #4b5163; border: 2.5px solid #12121c; }
.mr-status.on { background: var(--green); box-shadow: 0 0 8px var(--green); }
.mr-meta { min-width: 0; flex: 1; }
.mr-name { font-size: 13px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.mr-last { font-size: 11.5px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mr-voice { color: var(--green); flex-shrink: 0; font-size: 13px; }
.pro-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px; border-radius: 999px;
  font-size: 8.5px; font-weight: 900; letter-spacing: .8px;
  color: #1c1200; background: linear-gradient(135deg, #fbbf24, #f59e0b);
  flex-shrink: 0;
}
.chat-pane { flex: 1; display: flex; flex-direction: column; min-width: 0; background: rgba(0,0,0,.14); }
.chat-head {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 18px; border-bottom: 1px solid var(--stroke);
  background: rgba(11,11,18,.4);
}
.ch-avatar { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; flex-shrink: 0; }
.ch-meta { min-width: 0; }
.ch-name { font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 7px; }
.ch-rating { font-size: 11px; color: var(--gold); font-weight: 700; }
.ch-status { font-size: 11.5px; color: var(--text-faint); display: flex; align-items: center; gap: 5px; }
.ch-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.btn-voice {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 11px;
  border: 1px solid rgba(52,211,153,.45); background: rgba(52,211,153,.08);
  color: var(--green); font-size: 12.5px; font-weight: 700;
  cursor: pointer;
}
.chat-messages { flex: 1; overflow-y: auto; padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.msg {
  max-width: 66%; padding: 10px 15px; border-radius: 16px;
  font-size: 13px; line-height: 1.5;
  opacity: 0; transform: translateY(10px);
  transition: opacity .35s, transform .35s;
}
.msg.in { opacity: 1; transform: none; }
.msg.them { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--stroke); border-bottom-left-radius: 4px; }
.msg.me {
  align-self: flex-end; color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  border-bottom-right-radius: 4px;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--violet) 30%, transparent);
}
.msg-call {
  align-self: center; display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; color: var(--text-dim);
  background: var(--surface); border: 1px solid var(--stroke);
  opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s;
}
.msg-call.in { opacity: 1; transform: none; }
.msg-call b { color: var(--text); }
.msg-call .cic { color: var(--green); }
.msg-clip { max-width: 300px; padding: 6px; }
.msg-clip video { display: block; width: 100%; border-radius: 12px; }
.msg-clip .clip-cap { font-size: 11px; color: rgba(255,255,255,.75); padding: 6px 4px 2px; }
.chat-input { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--stroke); }
.chat-input input {
  flex: 1; padding: 12px 16px; border-radius: 13px;
  border: 1px solid var(--stroke-strong); background: var(--surface);
  color: var(--text); font-family: var(--font); font-size: 13px;
  outline: none;
}
.chat-input input::placeholder { color: var(--text-faint); }
.chat-send {
  width: 44px; height: 44px; border-radius: 13px; border: none;
  background: var(--grad-brand); color: #fff; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 5px 16px color-mix(in srgb, var(--violet) 35%, transparent);
}
.demo-note { font-size: 11.5px; color: var(--text-faint); text-align: center; }

/* ============ PREMIUM ============ */
.prem-band {
  position: relative; overflow: hidden;
  border-radius: 26px; padding: 38px;
  background:
    radial-gradient(ellipse 70% 120% at 90% 10%, rgba(251,191,36,.14), transparent 60%),
    linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid rgba(251,191,36,.28);
}
.prem-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: center; }
.prem-tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 16px;
  font-size: 11px; font-weight: 800; letter-spacing: 1.4px;
  color: var(--gold); background: rgba(251,191,36,.09);
  border: 1px solid rgba(251,191,36,.35);
}
.prem-band h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.6px; line-height: 1.15; }
.prem-band h2 span { background: linear-gradient(135deg, #fbbf24, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.prem-band .lead { color: var(--text-dim); font-size: 14px; line-height: 1.65; margin: 12px 0 20px; max-width: 480px; }
.prem-perks { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.prem-perks li { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; }
.prem-perks .pk {
  width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 15px;
  background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.3);
}
.prem-perks b { display: block; font-weight: 800; }
.prem-perks .d { color: var(--text-faint); font-size: 12.5px; }
.prem-price-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.prem-price-big { font-size: 34px; font-weight: 900; letter-spacing: -1px; }
.prem-price-big small { font-size: 13px; font-weight: 600; color: var(--text-faint); margin-left: 4px; }
.prem-note-sm { font-size: 11.5px; color: var(--text-faint); margin-top: 12px; }
.prem-art img { width: 100%; border-radius: 20px; border: 1px solid rgba(251,191,36,.25); box-shadow: 0 24px 70px rgba(0,0,0,.45); }

/* thema-picker demo */
.theme-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 22px 26px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--stroke);
}
.theme-info h3 { font-size: 16px; font-weight: 800; }
.theme-info p { font-size: 12.5px; color: var(--text-dim); margin-top: 4px; max-width: 460px; }
.theme-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.tsw {
  width: 46px; height: 46px; border-radius: 15px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s, border-color .2s, box-shadow .2s;
}
.tsw:hover { transform: translateY(-3px) scale(1.06); }
.tsw.on { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.15), 0 10px 26px rgba(0,0,0,.4); }
.tsw-default { background: linear-gradient(135deg, #8b5cf6, #22d3ee); }
.tsw-ocean   { background: linear-gradient(135deg, #0ea5e9, #22d3ee); }
.tsw-ember   { background: linear-gradient(135deg, #f97316, #f43f5e); }
.tsw-emerald { background: linear-gradient(135deg, #10b981, #34d399); }
.tsw-rose    { background: linear-gradient(135deg, #f43f5e, #fb7185); }
.tsw-goldy   { background: linear-gradient(135deg, #f59e0b, #fbbf24); }

/* ============ FAQ ============ */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.faq-item {
  border: 1px solid var(--stroke); border-radius: 16px;
  background: var(--surface); overflow: hidden;
  transition: border-color .2s;
}
.faq-item[open] { border-color: color-mix(in srgb, var(--violet) 35%, transparent); background: var(--surface-2); }
.faq-item summary {
  padding: 16px 20px; cursor: pointer; list-style: none;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 19px; font-weight: 400; color: var(--text-faint); transition: transform .2s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--violet); }
.faq-item p { padding: 0 20px 18px; font-size: 13px; line-height: 1.7; color: var(--text-dim); }

/* ============ DOWNLOAD-view ============ */
.dl-band {
  position: relative; overflow: hidden; text-align: center;
  padding: 54px 30px 44px; border-radius: 26px;
  background:
    radial-gradient(ellipse 60% 90% at 50% 0%, color-mix(in srgb, var(--violet) 20%, transparent), transparent 65%),
    linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid color-mix(in srgb, var(--violet) 30%, transparent);
}
.dl-band .mark { width: 74px; height: 74px; border-radius: 22px; margin-bottom: 18px; box-shadow: 0 14px 44px color-mix(in srgb, var(--violet) 40%, transparent); }
.dl-band h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.5px; }
.dl-band > p { color: var(--text-dim); font-size: 14px; max-width: 480px; margin: 10px auto 24px; line-height: 1.6; }
.dl-sub { font-size: 12px; color: var(--text-faint); margin-top: 14px; }
.news-row { display: flex; gap: 10px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.news-row input {
  width: min(320px, 100%); padding: 12px 16px; border-radius: 13px;
  border: 1px solid var(--stroke-strong); background: rgba(11,11,18,.5);
  color: var(--text); font-family: var(--font); font-size: 13px; outline: none;
}
.news-row input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet) 15%, transparent); }
.news-ok { display: none; margin-top: 18px; color: var(--green); font-size: 13.5px; font-weight: 700; }

.dl-footrow {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 4px 6px;
  font-size: 12px; color: var(--text-faint);
}
.foot-social { display: flex; gap: 8px; }
.foot-social a {
  width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center;
  color: var(--text-dim); background: var(--surface); border: 1px solid var(--stroke);
  transition: all .18s;
}
.foot-social a:hover { color: var(--text); border-color: color-mix(in srgb, var(--violet) 45%, transparent); background: color-mix(in srgb, var(--violet) 10%, transparent); transform: translateY(-2px); }
.legal-links { display: flex; gap: 16px; flex-wrap: wrap; }
.legal-links a { color: var(--text-faint); text-decoration: none; }
.legal-links a:hover { color: var(--text); }

/* ============ Overlay-demo toast (in-game overlay) ============ */
.game-toast {
  position: absolute; right: 22px; bottom: 22px; z-index: 300;
  width: 330px; padding: 15px 16px 13px;
  border-radius: 16px;
  background: rgba(13,13,22,.92); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,70,85,.45);
  box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 30px rgba(255,70,85,.12);
  transform: translateX(calc(100% + 40px));
  transition: transform .5s cubic-bezier(.2,.9,.3,1.05);
}
.game-toast.show { transform: none; }
.gt-head { display: flex; align-items: flex-start; gap: 10px; }
.gt-badge {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 16px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, #ff4655, #b3202c);
  box-shadow: 0 6px 18px rgba(255,70,85,.4);
}
.gt-meta { flex: 1; min-width: 0; }
.gt-title { font-size: 12.5px; font-weight: 800; color: #ff8a93; }
.gt-sub { font-size: 11.5px; color: var(--text); margin-top: 1px; font-weight: 600; }
.gt-close { border: none; background: transparent; color: var(--text-faint); cursor: pointer; font-size: 15px; padding: 2px 4px; }
.gt-close:hover { color: var(--text); }
.gt-note { font-size: 10.5px; color: var(--text-faint); margin-top: 9px; }
.gt-bar { height: 3px; border-radius: 2px; background: rgba(255,255,255,.08); margin-top: 9px; overflow: hidden; }
.gt-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ff4655, #ff8a93); transform-origin: left; }
.game-toast.show .gt-bar i { animation: gtCount 8s linear forwards; }
@keyframes gtCount { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ============ Toast (algemeen) ============ */
.sf-toast {
  position: absolute; left: 50%; bottom: 26px; z-index: 350;
  transform: translate(-50%, 80px); opacity: 0;
  padding: 13px 22px; border-radius: 14px;
  background: rgba(13,13,22,.95); backdrop-filter: blur(14px);
  border: 1px solid var(--stroke-strong);
  font-size: 13px; font-weight: 600; color: var(--text);
  box-shadow: 0 16px 50px rgba(0,0,0,.55);
  transition: transform .35s cubic-bezier(.2,.9,.3,1.1), opacity .3s;
  max-width: 90%; text-align: center;
}
.sf-toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ============ Legal-pagina's (klassieke layout) ============ */
.bg-glow { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 40% at 70% -5%, rgba(139,92,246,.16), transparent 60%),
    radial-gradient(ellipse 45% 35% at 15% 10%, rgba(34,211,238,.08), transparent 60%);
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.nav { position: sticky; top: 0; z-index: 100; background: rgba(11,11,18,.75); backdrop-filter: blur(18px); border-bottom: 1px solid var(--stroke); }
.nav-inner { display: flex; align-items: center; gap: 26px; height: 62px; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 16px; font-weight: 400; color: var(--text-dim); }
.nav-brand img { width: 30px; height: 30px; border-radius: 9px; }
.nav-brand b { color: var(--text); font-weight: 800; }
.nav-spacer { flex: 1; }
.legal-wrap { max-width: 780px; margin: 0 auto; padding: 54px 24px 90px; }
.legal-wrap h1 { font-size: 32px; letter-spacing: -.5px; margin-bottom: 6px; }
.legal-updated { color: var(--text-faint); font-size: 13px; margin-bottom: 34px; }
.legal-wrap h2 { font-size: 19px; margin: 34px 0 10px; }
.legal-wrap p, .legal-wrap li { font-size: 14px; line-height: 1.75; color: var(--text-dim); }
.legal-wrap ul { padding-left: 22px; margin: 10px 0; }
.legal-wrap li { margin-bottom: 7px; }
.legal-wrap a { color: #a78bfa; }
.legal-wrap b { color: var(--text); }

/* ============ Bottom-tabbar (mobiel) ============ */
.tabbar {
  display: none;
  position: relative; z-index: 60;
  flex-shrink: 0;
  border-top: 1px solid var(--stroke);
  background: rgba(11,11,18,.85); backdrop-filter: blur(20px);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}
.tabbar .nav-item { flex: 1; flex-direction: column; gap: 3px; padding: 8px 4px; font-size: 10px; align-items: center; }
.tabbar .nav-badge { position: absolute; top: 4px; right: 50%; margin-right: -24px; min-width: 16px; height: 16px; font-size: 9px; }

/* ============ Responsief ============ */
@media (max-width: 1100px) {
  .home-stats { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .rec-grid { grid-template-columns: repeat(2, 1fr); }
  .rec-grid .rec-card:nth-child(3) { display: none; }
  .prem-grid { grid-template-columns: 1fr; }
  .prem-art { max-width: 480px; margin: 0 auto; }
}
@media (max-width: 900px) {
  #app-frame { inset: 0; border-radius: 0; border: none; }
  .sidebar { display: none; }
  .tabbar { display: flex; }
  .view { padding: 20px 16px 30px; }
  .matches-shell { height: auto; min-height: 0; flex-direction: column; }
  .match-list { width: 100%; flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--stroke); padding: 10px; }
  .ml-head { display: none; }
  .match-row { width: auto; flex-shrink: 0; }
  .mr-last { display: none; }
  .chat-messages { min-height: 320px; }
  .msg { max-width: 84%; }
  .tb-win-btns { display: none; }
  .hh-text { max-width: 100%; }
  .hh-art { opacity: .3; }
  .home-hero { padding: 26px 22px; }
  .game-toast { width: min(330px, calc(100vw - 32px)); right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); }
  .sf-toast { bottom: calc(80px + env(safe-area-inset-bottom)); white-space: normal; }
}
@media (max-width: 620px) {
  .feat-grid { grid-template-columns: 1fr; }
  .rec-grid { grid-template-columns: 1fr; }
  .rec-grid .rec-card:nth-child(3) { display: flex; }
  .home-stats { grid-template-columns: repeat(2, 1fr); }
  .home-headstats { display: none; }
  .preview-badge { display: none; }
  .card-deck { height: 440px; }
  .prem-band { padding: 26px 20px; }
}

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