:root {
  --bg: #0b0d10;
  --panel: rgba(20, 22, 28, 0.86);
  --text: #e8eaf0;
  --muted: #b7becc;
  --accent: #68e1ff;
  --accent-2: #7affaf;
  --error: #ff6b6b;
  --ok: #36d399;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text); background: var(--bg);
}

/* Header */
/* Header – crisp text, blurred background */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 20;
    /* put the blur on a pseudo-element instead (keeps text sharp) */
    background: transparent;
}

/* background glass layer */
.site-header::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(5,7,10,.65), rgba(5,7,10,0));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 0;
}

/* keep header content above the glass; no filters on content */
.site-header .container {
    position: relative; z-index: 1;
    padding: 14px 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* defensive: never let header text inherit filters/transforms */
.site-header, .site-header * {
    filter: none !important;
    transform: none !important;
    opacity: 1 !important;
}
.brand { font-weight: 800; letter-spacing: .2px; color: var(--text); text-decoration: none; font-size: 20px; }
.brand-mark { color: var(--text); }
.brand-accent { color: var(--accent); }
.nav a { color: var(--muted); margin-left: 18px; text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--text); }
.login-btn { color: var(--muted); text-decoration: none; font-weight: 600; margin-left: 18px; }
.login-btn:hover { color: var(--text); }
.linklike { background: none; border: none; color: var(--muted); font-weight: 600; cursor: pointer; margin-left: 18px; }
.linklike:hover { color: var(--text); }
.balance-pill {
  margin-left: 18px; padding: 6px 10px; border-radius: 999px;
  background: rgba(104,225,255,.15); color: var(--accent); font-weight: 700; font-size: 12px;
  text-decoration: none; display: inline-block;
}

/* Layout utilities */
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.row { display: flex; gap: 16px; }
.center { align-items: center; }
.space-between { justify-content: space-between; }

.flash-wrap { margin-top: 64px; }
.flash { padding: 10px 12px; border-radius: 10px; background: #222833; box-shadow: var(--shadow); margin: 12px 0; }
.flash-error { border-left: 4px solid var(--error); }
.flash-success { border-left: 4px solid var(--ok); }

/* Hero */
.hero { position: relative; min-height: 86vh; display: grid; place-items: center; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1) contrast(1.05) brightness(.65); }
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(7,9,12,0.2) 0%, rgba(7,9,12,0.7) 55%, rgba(7,9,12,0.95) 100%); }
.hero-inner { position: relative; margin-top: 64px; text-align: center; }
.hero-title { font-size: clamp(38px, 6.2vw, 64px); margin: 0 0 6px; font-weight: 800; }
.hero-subtitle { margin: 0 0 26px; font-size: clamp(16px, 2.1vw, 22px); color: var(--muted); }

.cta-card { margin: 22px auto 0; display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; background: var(--panel); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); max-width: 900px; }
.cta-left h3 { margin: 0 0 10px; font-weight: 800; }
.accent { color: var(--accent); }
.steps { margin: 10px 0 0 18px; text-align: left; color: var(--muted); }
.steps li { margin: 8px 0; }

.match-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.match-form input,
.match-form select { padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.15); background: rgba(8,10,14,.8); color: var(--text); }
.match-form button { padding: 12px 16px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #0a0f12; font-weight: 800; border: 0; cursor: pointer; }
.match-form button:hover { filter: brightness(1.05); }
.disclaimer { color: var(--muted); font-size: 12px; margin: 8px 2px 0; text-align: left; }

/* Features */
.features { padding: 72px 0 120px; }
.features h2 { text-align: center; margin: 0 0 18px; }
.features .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: #131720; border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); padding: 18px; }
.card h4 { margin: 0 0 8px; }

/* Gate page */
.gate { padding: 120px 0; background: radial-gradient(ellipse at top, #111726, #0b0d10 60%); }
.gate-inner { display: grid; gap: 28px; grid-template-columns: 1.1fr .9fr; }
.gate-left h2 { margin: 0 0 8px; font-size: clamp(28px, 4.8vw, 40px); }
.lead { color: var(--muted); }
.bullets { margin: 14px 0 0; color: var(--muted); }
.bullets li { margin: 8px 0; }

.account-form { display: grid; gap: 10px; background: #121621; border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.account-form label { font-weight: 600; color: #d6dbea; }
.account-form input,
.account-form select { padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.1); background: rgba(8,10,14,.85); color: var(--text); }
.account-form button,
.primary-btn { padding: 12px 16px; border-radius: 10px; border: 0; cursor: pointer; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #0a0f12; font-weight: 800; }
.primary-btn:hover { filter: brightness(1.05); }
.tiny { font-size: 12px; color: var(--muted); }

/* Helper + outline button */
.helper-heading { margin: 0 0 8px; color: var(--muted); }
.btn-outline { display: inline-block; margin-top: 10px; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.22); color: var(--text); text-decoration: none; background: rgba(8,10,14,.4); font-weight: 700; }
.btn-outline:hover { filter: brightness(1.05); }
.cta-right .add-more { display: inline-block; }

/* Shop */
.shop-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-card { background: #141a25; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.product-card .art { position: relative; height: 120px; background: linear-gradient(135deg, #213044, #162130); display: grid; place-items: center; }
.product-card .art img { max-height: 100%; max-width: 100%; object-fit: cover; }
.product-card .art .art-fallback { font-size: 42px; opacity: .8; }
.pc-body { padding: 14px; display: grid; gap: 8px; }
.pc-name { margin: 0; font-size: 18px; }
.pc-meta { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pc-meta .price { color: var(--text); font-weight: 800; }
.pc-meta .dot { opacity: .45; }
.pill { padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); font-size: 12px; color: #b9ffea; background: rgba(122,255,175,.1); }
.buy-btn { width: 100%; }

/* Modal (using <dialog>) */
dialog { border: none; padding: 0; border-radius: 12px; max-width: 520px; width: 92vw; background: #111722; color: var(--text); box-shadow: var(--shadow); }
.dialog-inner { padding: 18px; display: grid; gap: 12px; }
.dlg-summary { color: var(--muted); }
.dlg-actions { display: flex; gap: 10px; justify-content: flex-end; }
dialog::backdrop { background: rgba(0,0,0,.45); }

@media (max-width: 1020px) { .shop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .shop-grid { grid-template-columns: 1fr; } }

/* A11y */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

@media (max-width: 860px) {
  .cta-card, .gate-inner, .features .grid { grid-template-columns: 1fr; }
  .hero { min-height: 92vh; }
}
