/* Look of the new homepage (preview/v3, 2026-10-27) applied to the other public pages: Store (/store, /store/<slug>),
   Login and the product pages (/games/<slug>). Loaded LAST on those pages, after theme.css (and landing.css / game.css).
   Also loaded by the dashboard, just before panel-v3.css (the panel's own look). The homepage itself uses home.css.
   Same palette, fonts (Archivo for titles, Manrope for text), rounded corners, soft borders and orange accent as home.css. */
:root {
  --bg: #050507;
  --surface: #0B0B0E;
  --surface-2: #0F0F13;
  --surface-3: #141419;
  --border: rgba(255, 255, 255, .07);
  --border-strong: rgba(255, 255, 255, .13);
  --text: #EDEDF0;
  --muted: #8E8E98;
  --primary: #FF7A1A;
  --primary-hover: #FF8C3A;
  --primary-muted: #FFC18A;
  --primary-deep: #E86A10;
  --primary-rgb: 255 122 26;
  --on-primary: #0B0B0E;
  --ok: #2BD98F;
  --danger: #F26D6D;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Archivo", "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --bar-grad: transparent;
  --pattern: none;
  --radius: 14px;
}
html { background: var(--bg); color-scheme: dark; }
body, body.app, body.k-home { background: var(--bg); color: var(--muted); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
::selection { background: rgb(var(--primary-rgb) / .3); }

/* ---------- titles: Archivo, sentence case, tight (theme.css made them uppercase Oswald) ---------- */
h1, h2, h3, h4, .page-head h1, .card h2, .modal h3, .section h2, .k-head h2, .k-hero h1, .g-hero h1, .auth-card h1 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; text-transform: none; color: var(--text);
}
h1, .page-head h1, .g-hero h1 { letter-spacing: -.03em; line-height: 1.05; }
.kicker, .label, .k-head span, .g-hero .g-type, .crumbs, .g-crumbs {
  font-family: var(--font-sans); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; font-size: 12px; color: var(--muted);
}
.grad, .accent { color: var(--primary); text-shadow: none; }
p, li { color: var(--muted); }
a { color: inherit; }

/* ---------- header ---------- */
.site-header, .site-header.solid, .site-header.scrolled {
  background: rgba(5, 5, 7, .72); border-bottom: 1px solid var(--border); box-shadow: none;
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.logo { font: 800 19px/1 var(--font-display); letter-spacing: .01em; text-transform: uppercase; color: var(--text); }
.logo .accent { color: var(--primary); }
.logo-mark { width: 30px; height: 30px; }
.nav-links a, .nav-links a:last-child {
  border: 0; border-radius: 10px; padding: 8px 14px; font: 500 14px var(--font-sans); letter-spacing: 0; text-transform: none; color: var(--muted);
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav-links a.active { color: var(--text); background: rgba(255, 255, 255, .05); box-shadow: none; }

/* ---------- buttons ---------- */
button, .btn {
  border-radius: 12px; border: 1px solid var(--border-strong); background: transparent; color: var(--text);
  box-shadow: none; text-shadow: none; filter: none;
  font: 600 14px var(--font-sans); letter-spacing: .005em; text-transform: none;
  transition: background-color .2s, border-color .2s, color .2s, transform .15s;
}
button:hover, .btn:hover { border-color: rgba(255, 255, 255, .26); background: rgba(255, 255, 255, .03); filter: none; }
button:active, .btn:active { transform: scale(.98); }
.btn-primary, button.primary, button.btn-primary {
  background: var(--primary); border-color: var(--primary); color: var(--on-primary); box-shadow: 0 10px 28px -14px var(--primary);
}
.btn-primary:hover, button.primary:hover, button.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary); }
.btn-ghost, button.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); box-shadow: none; }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.btn-lg, .btn-xl, button.small, .btn.small, .small-btn { border-radius: 10px; }
button:disabled, .btn:disabled { opacity: .45; transform: none; }
button.danger, .btn-danger { color: var(--danger); }
.tabs { border-radius: 12px; background: var(--surface); border: 1px solid var(--border); padding: 4px; }
.tabs button { border-radius: 9px; border-color: transparent; background: transparent; }
.tabs button.active { background: var(--surface-3); color: var(--text); }

/* ---------- fields ---------- */
input, select, textarea {
  border-radius: 10px; background: #030304; border: 1px solid rgba(255, 255, 255, .11); color: var(--text);
  box-shadow: none; font-family: var(--font-sans);
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgb(var(--primary-rgb) / .15); outline: 0; }
label { font-weight: 600; color: var(--text); }
input::placeholder, textarea::placeholder { color: #5a5a64; }

/* ---------- panels ---------- */
.card, .stat, .modal, .pmodal, .pcard, .plan, .ov-strip, .callout, .announcement, .toast, .auth-card, .recovery-codes,
.feature, .loader-icon, .qr-box, .g-card, .g-feature, .g-step, .g-plan, .g-faq details, .k-srow, .k-review, .g-review {
  border-radius: 18px;
}
.card, .pcard, .auth-card, .modal, .pmodal, .plan, .g-card, .g-feature, .g-plan {
  background: var(--surface); border: 1px solid var(--border); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}
.card > h2:first-child, .card > .card-head:first-child, .auth-card h1 {
  background: transparent; box-shadow: none; border-bottom: 1px solid var(--border);
}
.pcard { overflow: hidden; transition: transform .25s, border-color .25s; }
.pcard:hover { border-color: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.stat { border-left: 0; border: 1px solid var(--border); background: var(--surface); }
.badge, .chip, .pill, .tag { border-radius: 999px; font-family: var(--font-sans); font-weight: 600; letter-spacing: .02em; }
th { background: transparent; font: 600 11px var(--font-sans); letter-spacing: .08em; color: var(--muted); }
.toast { border: 1px solid var(--border-strong); background: var(--surface-2); }
.modal-backdrop { background: rgba(3, 3, 4, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

/* ---------- login page ---------- */
.auth-card { padding-top: 0; overflow: hidden; }
.auth-card h1 { font-size: 22px; letter-spacing: -.02em; }

/* ---------- footer ---------- */
.site-footer, footer { border-top-color: var(--border); }

/* ---------- product pages (/games/<slug>) ---------- */
.g-copy h1 span { font-family: var(--font-sans); font-size: 13px; font-weight: 600; letter-spacing: .1em; margin-top: 14px; }
.g-crumbs { text-transform: none; letter-spacing: .02em; }

/* Final CTA banner: tone down the flashy full-orange block (landing.css "2021" override) to a dark v3 panel */
.k-banner { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: 18px; color: var(--text); margin: 40px 0; }
.k-banner .wrap { padding: 36px 40px; }
.k-banner h2 { font-size: 30px; font-weight: 700; color: var(--text); }
.k-banner p { color: var(--muted); opacity: 1; }
.k-banner .btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.k-banner .btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary); }
