/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --font: 'Poppins', 'Kantumruy Pro', system-ui, sans-serif;
  --font-display: 'Luckiest Guy', 'Poppins', sans-serif;

  --page-bg: linear-gradient(115deg, #e56500 0%, #ff8f0a 30%, #ffbb17 68%, #ffe23d 100%);
  --pattern-ink: rgba(255, 255, 255, 0.13);
  --header-bg: linear-gradient(180deg, #ff8c06 0%, #f26e00 100%);
  --header-line: #ffd23a;

  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.82);
  --ink-dim: rgba(255, 255, 255, 0.62);
  --ink-dark: #3a1d00;

  --panel: #e06c09;
  --panel-head: #c95a02;
  --panel-border: #ffd54a;
  --panel-inner: rgba(255, 255, 255, 0.1);

  --accent: #ffd91f;
  --accent-2: #ffeb6b;
  --accent-ink: #7a3700;
  --brand-red: #e1232e;
  --aba: #015d82;
  --ok: #22c55e;
  --warn: #fff4c2;
  --warn-ink: #7a4300;
  --danger: #ff4d4d;

  --field-bg: #ffffff;
  --field-ink: #2a1600;
  --field-border: #ffcf3f;

  --sheet: #ffffff;
  --sheet-ink: #1e1b16;
  --sheet-soft: #6b625a;
  --sheet-line: #eee6dc;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(120, 50, 0, 0.25);
  --gutter: 16px;
  --float-bottom: 20px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --page-bg: linear-gradient(115deg, #1a0e04 0%, #2b1606 45%, #3a2207 100%);
    --pattern-ink: rgba(255, 170, 40, 0.06);
    --header-bg: linear-gradient(180deg, #2f1a06 0%, #241303 100%);
    --header-line: #ff9f1a;
    --panel: #2d1a08;
    --panel-head: #3a220a;
    --panel-border: #b8690d;
    --panel-inner: rgba(255, 255, 255, 0.05);
    --warn: #3d2d0b;
    --warn-ink: #ffd98a;
    --sheet: #221608;
    --sheet-ink: #f7efe6;
    --sheet-soft: #bba995;
    --sheet-line: #3a2a18;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  }
}
:root[data-theme='dark'] {
  --page-bg: linear-gradient(115deg, #1a0e04 0%, #2b1606 45%, #3a2207 100%);
  --pattern-ink: rgba(255, 170, 40, 0.06);
  --header-bg: linear-gradient(180deg, #2f1a06 0%, #241303 100%);
  --header-line: #ff9f1a;
  --panel: #2d1a08;
  --panel-head: #3a220a;
  --panel-border: #b8690d;
  --panel-inner: rgba(255, 255, 255, 0.05);
  --warn: #3d2d0b;
  --warn-ink: #ffd98a;
  --sheet: #221608;
  --sheet-ink: #f7efe6;
  --sheet-soft: #bba995;
  --sheet-line: #3a2a18;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

/* ── Base ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background-color: #f07d00;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='white' stroke-opacity='0.16' stroke-width='1.4'%3E%3Cpath d='M16 10c3 0 4 3 4 6s-1 6-4 6-4-3-4-6 1-6 4-6zM10 16c0-3 3-4 6-4s6 1 6 4-3 4-6 4-6-1-6-4z'/%3E%3Ccircle cx='16' cy='16' r='1.5'/%3E%3Cpath d='M48 42c3 0 4 3 4 6s-1 6-4 6-4-3-4-6 1-6 4-6zM42 48c0-3 3-4 6-4s6 1 6 4-3 4-6 4-6-1-6-4z'/%3E%3Ccircle cx='48' cy='48' r='1.5'/%3E%3C/g%3E%3C/svg%3E"),
    var(--page-bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
:root[data-theme='dark'] body,
:root:not([data-theme='light']) body { background-color: #1f1105; }
@media (prefers-color-scheme: light) { :root:not([data-theme='dark']) body { background-color: #f07d00; } }

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
main { padding-bottom: 48px; }
[hidden] { display: none !important; }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  border-bottom: 2px solid var(--header-line);
  box-shadow: 0 4px 18px rgba(120, 45, 0, 0.25);
}
.site-header .bar { display: flex; align-items: center; gap: 12px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { width: 66px; height: 66px; flex: none; filter: drop-shadow(0 0 8px rgba(255, 190, 40, 0.55)) drop-shadow(0 3px 4px rgba(90, 30, 0, 0.35)); transition: transform 0.4s cubic-bezier(0.2, 1.4, 0.4, 1); }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.site-footer .brand img { width: 84px; height: 84px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.5px;
  color: var(--accent);
  -webkit-text-stroke: 1.2px #a13f00;
  text-shadow: 0 3px 0 #a13f00;
  transform: skewX(-6deg);
  white-space: nowrap;
  line-height: 1.05;
}
.brand-tag { font-size: 10.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  color: var(--ink);
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.24); }
.icon-btn svg { width: 20px; height: 20px; }
.login-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: 12px;
  border: 2px solid var(--accent);
  background: linear-gradient(180deg, #ff9a1a, #f27500);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 3px 0 #b44f00;
}
.login-btn .g { width: 18px; height: 18px; }
@media (max-width: 640px) {
  .site-header .bar { height: 66px; gap: 8px; }
  .brand img { width: 52px; height: 52px; }
  .brand-name { font-size: 19px; }
  .brand-tag { font-size: 8.5px; letter-spacing: 1.4px; }
  .login-btn { display: none; }
  .icon-btn { width: 38px; height: 38px; }
}

/* ── Drawer ──────────────────────────────────────────────── */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(20, 8, 0, 0.45); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61;
  width: min(380px, 86vw);
  background: var(--sheet);
  color: var(--sheet-ink);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 18px 18px; border-bottom: 1px solid var(--sheet-line); }
.drawer-head .brand-name { font-size: 20px; }
.drawer-head .brand-tag { color: #e08a00; }
.drawer-close { margin-left: auto; background: none; border: 0; color: var(--sheet-soft); padding: 6px; }
.drawer-close svg { width: 22px; height: 22px; }
.drawer nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.drawer nav a {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 22px;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--sheet-line);
}
.drawer nav a svg { width: 21px; height: 21px; color: #ff5a1f; flex: none; }
.drawer nav a[aria-current='page'] { background: rgba(255, 140, 0, 0.1); }
.drawer .nav-label { padding: 18px 22px 6px; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: var(--sheet-soft); }
.drawer-foot { padding: 16px 18px 22px; border-top: 1px solid var(--sheet-line); }
.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-radius: 999px;
  background: #ff4f1f;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}
.btn-primary svg { width: 20px; height: 20px; }

/* ── Search overlay ──────────────────────────────────────── */
.search-panel {
  position: fixed; left: 50%; top: 84px; z-index: 61;
  width: min(560px, calc(100vw - 2 * var(--gutter)));
  transform: translate(-50%, -10px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
  background: var(--sheet); color: var(--sheet-ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.search-panel.open { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.search-panel input { width: 100%; padding: 16px 18px; border: 0; border-bottom: 1px solid var(--sheet-line); background: transparent; color: inherit; font-size: 16px; outline: none; }
.search-results { max-height: 50vh; overflow-y: auto; }
.search-results a { display: flex; align-items: center; gap: 12px; padding: 10px 16px; text-decoration: none; font-weight: 600; }
.search-results a:hover, .search-results a:focus { background: rgba(255, 140, 0, 0.1); }
.search-results .tile { width: 40px; border-radius: 10px; font-size: 18px; }
.search-empty { padding: 18px; color: var(--sheet-soft); }

/* ── Carousel ────────────────────────────────────────────── */
.hero { position: relative; margin: 28px 0 34px; overflow: hidden; }
.hero-track { display: flex; gap: 40px; transition: transform 0.5s cubic-bezier(0.22, 0.8, 0.3, 1); will-change: transform; touch-action: pan-y; }
.slide {
  flex: 0 0 min(840px, calc(100vw - 2 * var(--gutter)));
  aspect-ratio: 16 / 9;
  max-height: 472px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  opacity: 0.4;
  transform: scale(0.9);
  transition: opacity 0.5s, transform 0.5s;
  box-shadow: var(--shadow);
}
.slide.active { opacity: 1; transform: none; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-link { display: block; width: 100%; height: 100%; }
.hero-arrow {
  position: absolute; top: 50%; z-index: 2;
  width: 40px; height: 40px;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 0;
  background: rgba(30, 14, 0, 0.82);
  color: #fff;
  display: grid; place-items: center;
}
.hero-arrow svg { width: 18px; height: 18px; }
.hero-arrow.prev { left: max(var(--gutter), calc(50% - 600px)); }
.hero-arrow.next { right: max(var(--gutter), calc(50% - 600px)); }
.hero-dots { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 7px; z-index: 2; }
.hero-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.55); }
.hero-dots button[aria-current='true'] { background: var(--accent); width: 22px; border-radius: 6px; }
@media (max-width: 640px) {
  .hero { margin: 16px 0 24px; }
  .hero-track { gap: 12px; }
  .hero-arrow { display: none; }
}

/* Drawn banners */
.banner { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 6% 7%; color: #fff; overflow: hidden; }
.banner::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(-35deg, rgba(255, 255, 255, 0.16) 0 28px, transparent 28px 64px);
}
.banner > * { position: relative; }
.banner .kicker { font-weight: 800; letter-spacing: 3px; text-transform: uppercase; font-size: clamp(10px, 1.6vw, 15px); opacity: 0.95; }
.banner .big {
  font-family: var(--font-display);
  font-size: clamp(30px, 7.4vw, 76px);
  line-height: 0.95;
  margin: 8px 0 10px;
  color: #fff;
  -webkit-text-stroke: 2px #8a2a00;
  text-shadow: 0 5px 0 #8a2a00, 0 10px 18px rgba(0, 0, 0, 0.25);
}
.banner .big em { font-style: normal; color: var(--accent); }
.banner .sub { font-weight: 600; font-size: clamp(11px, 1.8vw, 17px); max-width: 32em; }
.banner .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.banner .chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(60, 15, 0, 0.55); border-radius: 999px; padding: 6px 12px; font-size: clamp(10px, 1.5vw, 13px); font-weight: 700; }
.banner .chip svg { width: 15px; height: 15px; }
.banner .deco { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); font-size: clamp(64px, 16vw, 170px); filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.25)); }
.banner.b1 { background: linear-gradient(120deg, #ffe066 0%, #ffb21a 50%, #ff7b00 100%); }
.banner.b2 { background: linear-gradient(120deg, #4f7bff 0%, #6d3cff 60%, #2b1a8f 100%); }
.banner.b3 { background: linear-gradient(120deg, #ff3b4a 0%, #d2142a 55%, #7a0716 100%); }
.banner.b4 { background: radial-gradient(circle at 80% 30%, rgba(127, 227, 255, 0.45), transparent 55%), linear-gradient(120deg, #0b1830 0%, #10284d 55%, #070d18 100%); text-decoration: none; }
.banner.b4 .big em { color: #7fe3ff; }
.banner.b4 .chip { background: rgba(127, 227, 255, 0.18); }
@media (max-width: 640px) { .banner .deco { opacity: 0.35; right: -4%; } .banner .chips { display: none; } }

/* ── Section title ───────────────────────────────────────── */
.section-title { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; margin: 0 0 20px; border-bottom: 2px solid rgba(255, 230, 120, 0.7); }
.section-title .badge { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 3px 0 #c98a00; flex: none; }
.section-title .badge svg { width: 22px; height: 22px; }
.section-title h2 { margin: 0; font-size: 26px; font-weight: 800; text-shadow: 0 2px 0 rgba(140, 50, 0, 0.45); }
.section-title .count { margin-left: auto; font-weight: 700; color: var(--ink-soft); font-size: 14px; }

/* ── Game grid ───────────────────────────────────────────── */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.game-card {
  display: block;
  text-decoration: none;
  padding: 7px 7px 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #ff9d1c, #ec6a00);
  border: 2px solid #ffc35c;
  box-shadow: 0 6px 0 #b85200, var(--shadow);
  transition: transform 0.15s;
}
.game-card:hover { transform: translateY(-4px); }
.game-card .name { display: block; text-align: center; font-weight: 700; font-size: 14px; padding: 10px 4px 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) { .game-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } .game-card .name { font-size: 12px; padding: 8px 2px 9px; } }
@media (max-width: 360px) { .game-grid { grid-template-columns: repeat(2, 1fr); } }

.tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  display: grid; place-items: center;
  overflow: hidden;
  font-size: clamp(38px, 7vw, 64px);
  color: #fff;
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.35), transparent 55%); }
.tile .glyph { position: relative; z-index: 1; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3)); line-height: 1; }
.tile .glyph.square { width: 46%; aspect-ratio: 1; background: #fff; border-radius: 10%; transform: rotate(-14deg); display: grid; place-items: center; }
.tile .glyph.square::after { content: ''; width: 34%; aspect-ratio: 1; background: #2a55ea; }
.tile .region { position: absolute; top: 6px; right: 6px; z-index: 2; font-size: 10px; font-weight: 800; background: #032ea1; color: #fff; padding: 2px 6px; border-radius: 6px; border: 1.5px solid #fff; box-shadow: inset 0 -4px 0 #e00025; }

/* ── Panels (game page) ──────────────────────────────────── */
.panel { background: var(--panel); border: 3px solid var(--panel-border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; overflow: hidden; }
.panel-head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--panel-head); border-bottom: 2px solid rgba(255, 213, 74, 0.35); }
.step { width: 38px; height: 38px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 18px; border-radius: 8px 8px 8px 2px; box-shadow: 0 3px 0 #c98a00; flex: none; }
.panel-head h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; }
.panel-body { padding: 18px; }

.game-hero { display: flex; gap: 16px; align-items: center; padding: 16px; }
.game-hero .tile { width: 92px; flex: none; font-size: 44px; border: 2px solid var(--panel-border); }
.game-hero h1 { margin: 0 0 8px; font-size: 24px; font-weight: 800; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 7px; background: rgba(0, 0, 0, 0.18); font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.tag svg { width: 14px; height: 14px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 7px; font-size: 14px; }
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; min-width: 0; }
.field-row .field.zone { flex: 0 0 34%; }
.input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 3px solid var(--field-border);
  background: var(--field-bg);
  color: var(--field-ink);
  font-size: 16px;
  font-weight: 600;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}
.input:focus { border-color: #fff07a; box-shadow: 0 0 0 3px rgba(255, 240, 122, 0.4); }
.input.invalid { border-color: var(--danger); }
.field-error { color: #fff; background: rgba(160, 0, 0, 0.45); border-radius: 8px; padding: 6px 10px; margin-top: 6px; font-size: 13px; font-weight: 600; }
.btn-yellow {
  width: 100%;
  padding: 13px 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 4px 0 #c98a00;
}
.btn-yellow:active { transform: translateY(2px); box-shadow: 0 2px 0 #c98a00; }
.btn-yellow:disabled { opacity: 0.55; cursor: not-allowed; }
.verify-result { margin-top: 14px; }
.verify-result .who { font-weight: 800; color: var(--accent); font-size: 17px; text-shadow: 0 2px 0 rgba(120, 50, 0, 0.5); margin-bottom: 8px; }
.verify-result .who small { display: block; font-weight: 600; font-size: 12px; color: var(--ink-soft); text-shadow: none; }
.avatar-box { background: #fff; border-radius: 14px; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.avatar-box img { height: 100%; width: auto; object-fit: contain; }
.note { margin-top: 14px; background: var(--warn); color: var(--warn-ink); border: 2px solid #ffd76a; border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.55; }
.note strong { display: block; margin-bottom: 2px; }
.community-box { margin-top: 12px; border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5; border: 2px solid; }
.community-box > strong { display: block; margin-bottom: 2px; font-size: 15px; }
.community-box.ok { background: #dcfce7; color: #14532d; border-color: #86efac; }
.community-box.no { background: #fff4e5; color: #7a3d00; border-color: #ffc98a; }
.cg-progress { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; }
.cg-progress .bar { flex: 1; height: 8px; border-radius: 99px; background: rgba(0, 0, 0, 0.1); overflow: hidden; }
.cg-progress .bar span { display: block; height: 100%; border-radius: inherit; background: currentColor; }
.cg-tip { margin: 10px 0 0; font-size: 13px; opacity: 0.9; }
.community-list li.cg-join { background: rgba(255, 255, 255, 0.85); }
.eta { display: inline-block; margin-top: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; line-height: 1.6; }
.eta.fast { background: #bbf7d0; color: #14532d; }
.eta.slow { background: #ffe7b3; color: #7a4a00; }
.eta.soon { background: rgba(255, 255, 255, 0.18); color: inherit; }
.method.soon { opacity: 0.55; cursor: not-allowed; filter: grayscale(0.4); }
.picker .eta { display: table; margin-top: 8px; }
.community-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.community-list li { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.65); border-radius: 9px; padding: 7px 10px; }
.community-list .cg-name { flex: 1; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.community-list .cg-status { flex: none; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #eee; color: #555; }
.community-list .cg-status.ok { background: #bbf7d0; color: #14532d; }
.community-list .cg-status.wait { background: #fff3cd; color: #8a5a00; }
.community-list .cg-join { flex: none; font-size: 13px; font-weight: 800; padding: 5px 14px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); text-decoration: none; }
[data-gamepass] { margin-top: 4px; }
.checking { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); border: 2px dashed rgba(255, 217, 31, 0.5); font-size: 14px; }
.spinner { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(255, 217, 31, 0.3); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

/* Amount picker (Robux Community) */
.picker { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px 18px; padding: 16px; margin-bottom: 14px; border-radius: 14px; border: 2px solid var(--accent); background: rgba(255, 230, 80, 0.14); }
.picker .row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.picker .coin { width: 52px; height: 52px; flex: none; }
.picker .price { font-size: 28px; font-weight: 800; color: var(--accent); line-height: 1.1; text-shadow: 0 2px 0 rgba(120, 50, 0, 0.35); }
.picker small { color: var(--ink-soft); font-weight: 600; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--accent); background: transparent; color: var(--accent); font-size: 24px; font-weight: 800; line-height: 1; cursor: pointer; }
.stepper button:hover:not(:disabled) { background: var(--accent); color: var(--accent-ink); }
.stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper output { min-width: 112px; text-align: center; font-size: 14px; }
.stepper output strong { display: block; font-size: 20px; }
.picker .chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.picker .chips button { flex: 1 1 0; min-width: 56px; padding: 8px 0; border-radius: 10px; border: 2px solid rgba(255, 217, 31, 0.45); background: transparent; color: inherit; font-weight: 800; cursor: pointer; }
.picker .chips button[aria-pressed='true'] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pending-warn { margin: 0 0 20px; }@media (max-width: 520px) {
  .picker { grid-template-columns: 1fr; }
  .stepper { justify-content: space-between; }
  .stepper output { flex: 1; }
}

/* Packages */
.group-label { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; font-size: 14px; }
.group-label::before { content: ''; width: 4px; height: 18px; background: var(--accent); border-radius: 2px; }
.group-label .line { flex: 1; height: 1px; background: rgba(255, 255, 255, 0.3); }
.group-label .n { color: var(--ink-dim); font-weight: 600; letter-spacing: 0; }
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 20px; }
@media (max-width: 520px) { .pkg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.pkg { min-width: 0; }
.method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.method { text-align: left; color: inherit; font: inherit; }
.method .pname { font-size: 16px; display: block; }
.method small { color: var(--ink-soft); display: block; line-height: 1.35; }
@media (max-width: 520px) { .method .coin { display: none; } .method { padding: 12px; } }
.pkg {
  position: relative;
  background: var(--panel-inner);
  border: 2px solid rgba(255, 213, 74, 0.55);
  border-radius: 14px;
  padding: 16px 12px 12px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color 0.15s, background 0.15s;
}
.pkg-art { display: grid; gap: 4px; text-align: center; padding: 8px 8px 12px; }
.pkg-art .pkg-img { aspect-ratio: 1; border-radius: 10px; overflow: hidden; margin-bottom: 6px; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35); }
.pkg-art .pkg-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.pkg-art:hover .pkg-img img { transform: scale(1.06); }
.pkg-art .pkg-img.placeholder { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(255, 220, 120, 0.35), rgba(80, 30, 0, 0.5)); }
.pkg-art .pkg-img.placeholder svg { width: 55%; height: 55%; }
.pkg-art .pname { font-size: 15px; }
.pkg-art .robux-val { color: var(--ink-soft); font-size: 12px; margin-bottom: 6px; }
.pkg.selected { border-color: var(--accent); background: rgba(255, 230, 80, 0.2); box-shadow: 0 0 0 3px rgba(255, 217, 31, 0.35); }
.pkg .off { position: absolute; top: -10px; left: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 12px; padding: 2px 8px; border-radius: 7px; }
.pkg .row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pkg .coin { width: 46px; height: 46px; flex: none; }
.pkg .price { font-size: 20px; font-weight: 800; color: var(--accent); line-height: 1.1; text-shadow: 0 2px 0 rgba(120, 50, 0, 0.35); }
.pkg .was { font-size: 12px; color: var(--ink-dim); text-decoration: line-through; margin-left: 4px; font-weight: 600; text-shadow: none; }
.pkg .pname { font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.pkg .add {
  width: 100%;
  padding: 9px;
  border-radius: 10px;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-weight: 800;
}
.pkg.selected .add { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 520px) { .pkg .coin { width: 36px; height: 36px; } .pkg .price { font-size: 17px; } .pkg .pname { font-size: 13px; } }

/* Payment */
.coupon { display: flex; gap: 10px; }
.coupon .input { text-transform: uppercase; }
.coupon button { flex: none; padding: 0 20px; border-radius: 12px; border: 0; background: #7d6e60; color: #fff; font-weight: 700; }
.coupon button.ready { background: var(--accent); color: var(--accent-ink); }
.coupon-msg { margin-top: 8px; font-size: 13px; font-weight: 600; }
.coupon-msg.ok { color: #d8ffd8; }
.coupon-msg.bad { color: #ffe0e0; }
.label-caps { margin: 18px 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; color: var(--ink-soft); text-transform: uppercase; }
.pay-option {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 3px solid var(--accent);
  background: var(--panel-inner);
  color: inherit;
  text-align: left;
}
.pay-option .aba-logo { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; flex: none; display: flex; flex-direction: column; }
.pay-option .aba-logo span:first-child { flex: 1.4; background: var(--aba); color: #fff; font-weight: 900; display: grid; place-items: center; font-size: 15px; letter-spacing: 1px; }
.pay-option .aba-logo span:last-child { flex: 1; background: var(--brand-red); color: #fff; font-weight: 900; display: grid; place-items: center; font-size: 10px; letter-spacing: 1px; }
.pay-option strong { display: block; font-size: 17px; }
.pay-option small { color: var(--ink-soft); font-size: 13px; }
.pay-option .check { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.pay-option .check svg { width: 16px; height: 16px; }
.fine { text-align: center; font-size: 13px; color: var(--ink-soft); margin: 14px 0 0; }
.fine a { color: var(--accent); font-weight: 700; }
.test-banner { background: #4b0b0b; color: #ffdede; border: 2px dashed #ff8080; border-radius: 12px; padding: 10px 14px; margin: 16px 0; font-size: 13.5px; font-weight: 600; }

/* Sticky checkout bar */
.checkout-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 0 var(--gutter) max(10px, env(safe-area-inset-bottom));
  pointer-events: none;
}
.checkout-bar .inner {
  pointer-events: auto;
  max-width: 760px; margin: 0 auto;
  background: var(--panel-head);
  border: 3px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: 0 -6px 26px rgba(90, 30, 0, 0.35);
  padding: 12px 16px;
}
.checkout-bar .items { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.25); font-size: 14px; min-width: 0; }
.checkout-bar .items .lbl { font-weight: 700; flex: none; }
.checkout-bar .items .mini { width: 34px; height: 34px; flex: none; background: rgba(0, 0, 0, 0.2); border-radius: 8px; display: grid; place-items: center; }
.checkout-bar .items .mini svg { width: 24px; height: 24px; }
.checkout-bar .items .what { font-weight: 600; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.checkout-bar .total-row { display: flex; align-items: center; gap: 12px; }
.checkout-bar .total-row .lbl { font-weight: 700; font-size: 14px; white-space: nowrap; }
@media (max-width: 400px) { .checkout-bar .total-row .lbl { font-size: 12px; } .checkout-bar .total { font-size: 19px; } .checkout-bar .pay-btn { padding: 11px 14px; } }
.checkout-bar .total { font-size: 22px; font-weight: 800; }
.checkout-bar .total s { font-size: 13px; color: var(--ink-dim); margin-left: 6px; font-weight: 600; }
.checkout-bar .pay-btn {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border: 0; border-radius: 12px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: var(--accent-ink);
  font-weight: 800; font-size: 16px;
  box-shadow: 0 4px 0 #c98a00;
  white-space: nowrap;
}
.checkout-bar .pay-btn svg { width: 18px; height: 18px; }
.checkout-bar .pay-btn:disabled { opacity: 0.55; cursor: not-allowed; }
body.has-checkout { --float-bottom: 150px; }
body.has-checkout main { padding-bottom: 170px; }

/* ── Floating buttons ────────────────────────────────────── */
.fab {
  position: fixed; bottom: var(--float-bottom); z-index: 35;
  width: 62px; height: 62px;
  border-radius: 50%;
  border: 3px solid #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(80, 30, 0, 0.35);
  transition: bottom 0.2s;
}
.fab svg { width: 28px; height: 28px; }
.fab.support { left: 18px; background: #fff; color: #ff5a1f; }
.fab.support::after { content: ''; position: absolute; right: 2px; bottom: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--ok); border: 2px solid #fff; }
.fab.gift { right: 18px; background: linear-gradient(180deg, #ffb02e, #ff6a00); color: #fff; animation: pulse 2.4s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 8px 20px rgba(80, 30, 0, 0.35), 0 0 0 0 rgba(255, 170, 40, 0.6); } 50% { box-shadow: 0 8px 20px rgba(80, 30, 0, 0.35), 0 0 0 12px rgba(255, 170, 40, 0); } }
@media (prefers-reduced-motion: reduce) { .fab.gift { animation: none; } .hero-track, .slide { transition: none; } }
@media (max-width: 520px) { .fab { width: 54px; height: 54px; } .fab.support { left: 12px; } .fab.gift { right: 12px; } }

.pop {
  position: fixed; z-index: 62; bottom: calc(var(--float-bottom) + 76px);
  width: min(340px, calc(100vw - 24px));
  background: var(--sheet); color: var(--sheet-ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.pop.left { left: 12px; }
.pop.right { right: 12px; }
.pop-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--sheet-line); }
.pop-head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.pop-head strong { display: block; }
.pop-head small { color: var(--sheet-soft); }
.pop-head button { margin-left: auto; background: none; border: 0; color: var(--sheet-soft); }
.pop-head button svg { width: 18px; height: 18px; }
.pop-body { padding: 14px 16px 16px; display: grid; gap: 10px; }
.pop-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; text-decoration: none; font-weight: 700; color: #fff; }
.pop-link svg { width: 22px; height: 22px; }
.pop-link.tg { background: #229ed9; }
.pop-link.fb { background: #1877f2; }
.promo { display: flex; align-items: center; gap: 10px; border: 2px dashed #ffb02e; border-radius: 12px; padding: 10px 12px; }
.promo code { font-weight: 800; font-size: 16px; color: #e86a00; font-family: inherit; }
.promo small { display: block; color: var(--sheet-soft); }
.promo button { margin-left: auto; border: 0; border-radius: 8px; background: #ff6a00; color: #fff; padding: 7px 12px; font-weight: 700; }
.pop-empty { color: var(--sheet-soft); font-size: 14px; }

/* ── Sheets (track / order / help) ───────────────────────── */
.sheet { background: var(--sheet); color: var(--sheet-ink); border-radius: 20px; box-shadow: var(--shadow); padding: 22px; margin-bottom: 18px; }
.page-head { text-align: center; padding: 32px 0 20px; }
.page-head .icon { width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.25); display: grid; place-items: center; }
.page-head .icon svg { width: 28px; height: 28px; }
.page-head h1 { margin: 0 0 6px; font-size: 30px; font-weight: 800; text-shadow: 0 2px 0 rgba(140, 50, 0, 0.4); }
.page-head p { margin: 0; color: var(--ink-soft); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--sheet); border-radius: 999px; padding: 6px; box-shadow: var(--shadow); margin-bottom: 14px; }
.tabs button { border: 0; border-radius: 999px; padding: 12px; font-weight: 700; background: transparent; color: var(--sheet-ink); }
.tabs button[aria-selected='true'] { background: #ff4f1f; color: #fff; }
.search-row { display: flex; gap: 10px; }
.search-row .input { border-color: var(--sheet-line); border-width: 2px; }
.btn-red { flex: none; border: 0; border-radius: 12px; background: #ff4f1f; color: #fff; font-weight: 700; padding: 0 22px; }
.result-list { display: grid; gap: 10px; margin-top: 16px; }
.result {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--sheet-line);
  border-radius: 12px;
  text-decoration: none;
}
.result:hover { border-color: #ffb02e; }
.result .meta { min-width: 0; }
.result .meta strong { display: block; }
.result .meta small { color: var(--sheet-soft); }
.result .status { margin-left: auto; }
.empty { text-align: center; color: var(--sheet-soft); padding: 18px 0 4px; }
.err { color: #d11a1a; font-weight: 600; margin-top: 10px; }

.status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.5px;
  white-space: nowrap;
}
.status.PENDING_PAYMENT { background: #fff3cd; color: #8a5a00; }
.status.PAID { background: #dbeafe; color: #1d4ed8; }
.status.DELIVERED { background: #dcfce7; color: #15803d; }
.status.CANCELLED { background: #eee; color: #666; }
.status.NEEDS_REVIEW { background: #fee2e2; color: #b91c1c; }

.receipt-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.receipt-head h1 { margin: 0; font-size: 22px; }
.receipt-head .oid { font-family: ui-monospace, Consolas, monospace; font-size: 15px; color: var(--sheet-soft); display: flex; align-items: center; gap: 8px; }
.receipt-head .oid button { border: 1px solid var(--sheet-line); background: none; color: inherit; border-radius: 8px; padding: 3px 8px; font-size: 12px; font-weight: 700; }
.receipt-head .status { margin-left: auto; }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); margin: 8px 0 22px; }
.timeline .st { text-align: center; position: relative; font-size: 13px; font-weight: 600; color: var(--sheet-soft); }
.timeline .st::before { content: ''; position: absolute; top: 15px; left: -50%; right: 50%; height: 3px; background: var(--sheet-line); }
.timeline .st:first-child::before { display: none; }
.timeline .st .dot { position: relative; z-index: 1; width: 32px; height: 32px; margin: 0 auto 6px; border-radius: 50%; background: var(--sheet-line); display: grid; place-items: center; color: #fff; }
.timeline .st .dot svg { width: 16px; height: 16px; }
.timeline .st.done { color: var(--sheet-ink); }
.timeline .st.done .dot, .timeline .st.done::before { background: var(--ok); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; }
.kv dt { color: var(--sheet-soft); font-size: 14px; }
.kv dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.kv .total { font-size: 20px; font-weight: 800; color: #e86a00; }
.kv hr { grid-column: 1 / -1; width: 100%; border: 0; border-top: 1px dashed var(--sheet-line); margin: 2px 0; }
.callout { border-radius: 12px; padding: 12px 14px; margin-top: 16px; font-size: 14px; line-height: 1.5; }
.callout.info { background: #fff3cd; color: #6b4600; }
.callout.ok { background: #dcfce7; color: #14532d; }
.callout.bad { background: #fee2e2; color: #7f1d1d; }
.actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.actions > * { flex: 1; min-width: 160px; }
.btn-outline { display: flex; align-items: center; justify-content: center; padding: 13px 16px; border-radius: 999px; border: 2px solid var(--sheet-line); background: none; color: var(--sheet-ink); font-weight: 700; text-decoration: none; }

.faq details { border-bottom: 1px solid var(--sheet-line); padding: 14px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { color: var(--sheet-soft); margin: 10px 0 0; line-height: 1.6; }
.prose h2 { font-size: 18px; margin: 22px 0 8px; }
.prose p, .prose li { color: var(--sheet-soft); line-height: 1.65; }

/* ── Payment modal ───────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: var(--gutter); background: rgba(20, 8, 0, 0.6); backdrop-filter: blur(4px); overflow-y: auto; }
.khqr-card { width: min(380px, 100%); background: #fff; color: #1b1b1b; border-radius: 22px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); position: relative; }
.khqr-top { background: var(--brand-red); color: #fff; text-align: center; padding: 14px; font-weight: 900; letter-spacing: 3px; font-size: 20px; position: relative; }
.khqr-top::after { content: ''; position: absolute; right: 0; bottom: -18px; border-left: 18px solid var(--brand-red); border-bottom: 18px solid transparent; }
.khqr-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.2); color: #fff; display: grid; place-items: center; }
.khqr-close svg { width: 18px; height: 18px; }
.khqr-merchant { padding: 22px 26px 4px; }
.khqr-merchant .m { font-size: 14px; color: #555; font-weight: 600; }
.khqr-merchant .amt { font-size: 30px; font-weight: 800; }
.khqr-merchant .amt small { font-size: 15px; color: #555; margin-left: 4px; }
.khqr-sep { border: 0; border-top: 2px dashed #ddd; margin: 14px 0; }
.khqr-qr { position: relative; width: 240px; max-width: 80%; margin: 0 auto; aspect-ratio: 1; }
.khqr-qr img { width: 100%; height: 100%; image-rendering: pixelated; }
.khqr-qr .center { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; display: grid; place-items: center; }
.khqr-qr .center img { width: 36px; height: 36px; image-rendering: auto; }
.khqr-qr .veil { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.92); display: grid; place-items: center; text-align: center; font-weight: 700; padding: 10px; gap: 8px; align-content: center; }
.khqr-qr .spinner { width: 40px; height: 40px; border: 4px solid #eee; border-top-color: var(--brand-red); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.khqr-timer { text-align: center; margin: 12px 0 2px; font-weight: 700; color: #333; }
.khqr-timer.low { color: var(--brand-red); }
.khqr-status { text-align: center; font-size: 13.5px; color: #666; min-height: 20px; padding: 0 18px; }
.khqr-status.ok { color: #15803d; font-weight: 700; }
.khqr-status.bad { color: #b91c1c; font-weight: 700; }
.khqr-actions { display: grid; gap: 8px; padding: 14px 20px 20px; }
.khqr-actions button, .khqr-actions a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 2px solid #eee; background: #fff; color: #222; font-size: 15px; }
.khqr-actions svg { width: 18px; height: 18px; flex: none; }
.khqr-actions button:disabled { opacity: 0.6; cursor: wait; }
.khqr-actions .main { background: var(--aba); border-color: var(--aba); color: #fff; }
.khqr-actions .mock { background: #fff7e0; border-style: dashed; border-color: #ffb02e; color: #8a5300; }
.khqr-order { text-align: center; font-size: 12.5px; color: #888; padding-bottom: 14px; }
.khqr-done { text-align: center; padding: 34px 24px 26px; }
.khqr-done .big-check { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; }
.khqr-done .big-check svg { width: 40px; height: 40px; }
.khqr-done h3 { margin: 0 0 6px; font-size: 22px; }
.khqr-done p { color: #555; margin: 0 0 18px; }

/* ── Toasts ──────────────────────────────────────────────── */
.toasts { position: fixed; top: 86px; left: 50%; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { background: #2a1503; color: #fff; padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); border-left: 5px solid var(--accent); animation: tin 0.2s ease; }
.toast.bad { border-left-color: var(--danger); }
.toast.ok { border-left-color: var(--ok); }
@keyframes tin { from { opacity: 0; transform: translateY(-6px); } }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background: var(--sheet); color: var(--sheet-ink); padding: 36px 0 28px; margin-top: 40px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer .brand-name { font-size: 22px; }
.site-footer .brand-tag { color: #e08a00; }
.trust { display: inline-flex; align-items: center; gap: 6px; margin: 14px 0 10px; padding: 5px 12px; border-radius: 999px; background: #fff6d6; border: 1px solid #ffd76a; color: #9a5a00; font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.site-footer p { margin: 0; line-height: 1.6; }
.site-footer p em { font-style: normal; color: #e89a00; font-weight: 700; }
.site-footer h3 { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--sheet-soft); margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer ul a { text-decoration: none; font-weight: 600; }
.site-footer ul a:hover { color: #ff5a1f; }
.accept { display: flex; gap: 10px; margin-top: 10px; }
.accept span { padding: 9px 14px; border-radius: 8px; color: #fff; font-weight: 900; letter-spacing: 1px; font-size: 14px; }
.accept .aba { background: var(--aba); }
.accept .khqr { background: var(--brand-red); }
.copyright { border-top: 1px solid var(--sheet-line); margin-top: 26px; padding-top: 16px; font-size: 13px; color: var(--sheet-soft); }

.skeleton { background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.12)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 14px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ── Admin ───────────────────────────────────────────────── */
.admin table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin th, .admin td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--sheet-line); vertical-align: top; }
.admin th { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--sheet-soft); }
.admin .table-wrap { overflow-x: auto; }
.admin .toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.admin select, .admin .toolbar .input { width: auto; padding: 9px 12px; border-width: 2px; border-color: var(--sheet-line); font-size: 14px; }
.admin .mini-btn, .kb-dialog .mini-btn { border: 0; border-radius: 8px; padding: 6px 12px; font-weight: 700; background: #ff4f1f; color: #fff; font-size: 13px; cursor: pointer; }
.admin .mini-btn.grey, .kb-dialog .mini-btn.grey { background: #8a8178; }
.kb-dialog .kb-d-form .mini-btn { padding: 9px 16px; }
.admin .whoami { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 22px; }
.admin .row-actions { white-space: nowrap; }
.admin .row-actions .mini-btn + .mini-btn { margin-left: 6px; }
.login-sheet { max-width: 460px; margin-left: auto; margin-right: auto; }
.stack { display: grid; gap: 8px; }
.stack label { font-weight: 700; font-size: 14px; margin-top: 4px; }
.stack label small { font-weight: 500; color: var(--sheet-soft); }
.stack .input { border-color: var(--sheet-line); border-width: 2px; }
.stack .btn-red { padding: 13px 22px; margin-top: 8px; font-size: 15px; }
/* Customer account */
.avatar { flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 14px; }
.avatar.lg { width: 64px; height: 64px; font-size: 28px; }
.account-btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding-left: 6px; }
.account-btn span { max-width: 9ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-foot a.btn-primary { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.signin-card { position: relative; width: min(380px, 100%); background: var(--sheet); color: var(--sheet-ink); border-radius: 22px; padding: 30px 26px 22px; text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
.signin-card h2 { margin: 10px 0 6px; font-size: 22px; }
.signin-card p { margin: 0 0 16px; font-size: 14px; line-height: 1.5; }
.signin-card .gbtn { min-height: 44px; display: grid; place-items: center; margin-bottom: 6px; }
.signin-card .fine { font-size: 12px; color: var(--sheet-soft); margin: 14px 0 0; }
.signin-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(127, 127, 127, 0.15); color: inherit; display: grid; place-items: center; cursor: pointer; }
.signin-close svg { width: 18px; height: 18px; }
.profile { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.profile .who { flex: 1; min-width: 0; }
.profile .who strong { display: block; font-size: 18px; }
.profile .who small { color: var(--sheet-soft); overflow-wrap: anywhere; }
.owner-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; border: 2px solid var(--accent); }
.owner-card .btn-red { padding: 12px 22px; text-decoration: none; }
.order-list { display: grid; gap: 8px; }
.order-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--sheet-line); color: inherit; text-decoration: none; }
.order-row:hover { border-color: var(--accent); }
.order-row small { color: var(--sheet-soft); }
.order-row .right { text-align: right; font-weight: 800; flex: none; }
.owner-google { margin-top: 18px; display: grid; justify-items: center; gap: 12px; }
.owner-google .or { width: 100%; display: flex; align-items: center; gap: 10px; color: var(--sheet-soft); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.owner-google .or::before, .owner-google .or::after { content: ''; flex: 1; height: 1px; background: var(--sheet-line); }
.owner-login { margin-top: 18px; font-size: 14px; }
.owner-login summary { cursor: pointer; color: var(--sheet-soft); font-weight: 600; }

/* Admin tabs */
.admin-tabs { position: sticky; top: 84px; z-index: 30; display: flex; gap: 6px; overflow-x: auto; padding: 6px; margin-bottom: 18px; border-radius: 16px; background: var(--sheet); box-shadow: var(--shadow); scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs button { flex: none; padding: 10px 16px; border: 0; border-radius: 11px; background: transparent; color: var(--sheet-soft); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background 0.2s, color 0.2s; }
.admin-tabs button:hover { color: var(--sheet-ink); }
.admin-tabs button.on { background: linear-gradient(180deg, #ffb21a, #ff7b00); color: #fff; box-shadow: 0 3px 0 #b85200; }
.admin-tabs button[hidden] { display: none; }
.kb-settings [hidden] { display: none !important; }
.cat-game { margin-top: 10px; border: 2px solid var(--sheet-line); border-radius: 14px; overflow: hidden; }
.cat-game[open] { border-color: rgba(255, 157, 28, 0.6); }
.cat-game > summary { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; list-style: none; }
.cat-game > summary::-webkit-details-marker { display: none; }
.cat-game > summary::after { content: '▾'; margin-left: auto; color: var(--sheet-soft); transition: transform 0.2s; }
.cat-game[open] > summary::after { transform: rotate(180deg); }
.cat-game > summary .cat-thumb { width: 48px; height: 48px; }
.cat-game > summary small { display: block; color: var(--sheet-soft); font-weight: 500; }
.cat-game-body { display: grid; gap: 10px; padding: 4px 14px 16px; border-top: 1px solid var(--sheet-line); }
.cat-game-body .lbl { display: block; font-weight: 600; margin-bottom: 4px; }
.cat-section { margin-top: 8px; padding: 12px; border-radius: 12px; background: rgba(127, 127, 127, 0.07); }
.cat-section-head { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.cat-section-head .input { flex: 1; min-width: 140px; }
.cat-section-head select.input { flex: 0 0 auto; width: auto; }
.cat-rate { display: grid; gap: 6px; align-content: start; padding: 12px; border-radius: 12px; border: 1px solid var(--sheet-line); }
.cat-thumb { display: block; width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.cat-thumb.lg { width: 110px; height: 110px; }
.cat-thumb.empty { display: grid; place-items: center; font-size: 11px; color: var(--sheet-soft); border: 2px dashed var(--sheet-line); text-align: center; }
.cat-upload { display: inline-block !important; margin-top: 6px; padding: 5px 10px; border-radius: 8px; background: #ff7b00; color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.cat-table td { vertical-align: middle; }
.cat-table .input { min-width: 90px; }
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.kb-inline { display: flex !important; align-items: center; gap: 8px; font-weight: 600; }
.kb-inline input { width: 18px; height: 18px; accent-color: #ff7b00; }

/* Admin: Korblox order window + settings */
.kb-dialog { width: min(980px, calc(100vw - 24px)); max-height: calc(100vh - 32px); border: 0; border-radius: 20px; padding: 22px; background: var(--sheet); color: var(--sheet-ink); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.kb-dialog::backdrop { background: rgba(10, 5, 0, 0.6); }
.kb-dialog h3 { margin: 18px 0 8px; font-size: 15px; }
.kb-d-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; padding-bottom: 12px; border-bottom: 1px solid var(--sheet-line); }
.kb-d-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.kb-d-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
.kb-d-dl dt { color: var(--sheet-soft); }
.kb-d-dl dd { margin: 0; overflow-wrap: anywhere; }
.kb-d-form, .kb-settings { display: grid; gap: 10px; font-size: 14px; }
.kb-d-form label, .kb-settings label { display: grid; gap: 4px; font-weight: 600; }
.kb-d-form .input, .kb-settings .input { border-width: 2px; border-color: var(--sheet-line); font-size: 14px; padding: 9px 12px; }
.kb-d-form button, .kb-settings button { justify-self: start; }
.kb-d-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kb-d-history { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; max-height: 260px; overflow-y: auto; }
.kb-d-history li { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--sheet-line); }
.kb-d-history li.note { background: rgba(255, 200, 80, 0.12); }
.kb-d-history p { margin: 4px 0 0; font-size: 14px; }
.kb-settings table { margin: 6px 0; }
.kb-settings td .input { min-width: 70px; }
@media (max-width: 720px) { .kb-d-grid, .kb-d-row { grid-template-columns: 1fr; } .kb-d-dl { grid-template-columns: 1fr; } }

/* ── Korblox product pages: dark theme with icy blue highlights ── */
body.kb {
  --kb-bg: #070d18; --kb-card: #0e1a2d; --kb-card2: #13233c; --kb-line: rgba(127, 227, 255, 0.18);
  --kb-ice: #7fe3ff; --kb-ice2: #3b8bff; --kb-text: #e6f3ff; --kb-soft: #9fb6cf; --kb-warn: #ffd27a; --kb-bad: #ff8a8a;
  color: var(--kb-text);
  background: radial-gradient(1200px 600px at 70% -10%, rgba(59, 139, 255, 0.22), transparent 60%),
    radial-gradient(900px 500px at 0% 20%, rgba(127, 227, 255, 0.12), transparent 60%), var(--kb-bg);
  background-attachment: fixed;
}
.kb-wrap { padding-top: 22px; padding-bottom: 40px; display: grid; gap: 18px; }
.kb-card { background: linear-gradient(180deg, var(--kb-card2), var(--kb-card)); border: 1px solid var(--kb-line); border-radius: 20px; padding: 22px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); min-width: 0; }
.kb-card h1 { margin: 4px 0 8px; font-size: clamp(26px, 5vw, 38px); line-height: 1.1; }
.kb-card h2 { margin: 0 0 14px; font-size: 22px; }
.kb-card h3 { margin: 0 0 6px; font-size: 16px; color: var(--kb-ice); }
.kb-card p { line-height: 1.6; }
.kb-card a { color: var(--kb-ice); }
.kb-kicker { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--kb-ice); }
.kb-hero { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 26px; align-items: center; }
.kb-art { aspect-ratio: 1; border-radius: 18px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(127, 227, 255, 0.25), transparent 65%), #0a1426; border: 1px solid var(--kb-line); }
.kb-art img { width: 100%; height: 100%; object-fit: cover; }
.kb-art svg { width: 82%; height: 82%; }
.kb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.kb-chip { padding: 6px 12px; border-radius: 999px; background: rgba(127, 227, 255, 0.1); border: 1px solid var(--kb-line); font-size: 13px; font-weight: 600; }
.kb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 12px; border: 1px solid var(--kb-ice); background: transparent; color: var(--kb-ice); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.kb-card a.kb-btn { color: var(--kb-ice); }
.kb-btn:hover:not(:disabled) { background: rgba(127, 227, 255, 0.12); }
.kb-btn.primary { background: linear-gradient(135deg, var(--kb-ice), var(--kb-ice2)); color: #04101f; border: 0; }
.kb-btn.primary:hover:not(:disabled) { filter: brightness(1.08); background: linear-gradient(135deg, var(--kb-ice), var(--kb-ice2)); }
.kb-btn.big { width: 100%; padding: 15px; font-size: 16px; margin-top: 14px; }
.kb-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.kb-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kb-ways > div { padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--kb-line); }
.kb-ways p { margin: 0; color: var(--kb-soft); }
.kb-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 5px; border-radius: 14px; background: rgba(0, 0, 0, 0.25); margin-bottom: 16px; }
.kb-tabs button { padding: 11px 8px; border: 0; border-radius: 10px; background: transparent; color: var(--kb-soft); font: inherit; font-weight: 700; cursor: pointer; }
.kb-tabs button.on { background: linear-gradient(135deg, var(--kb-ice), var(--kb-ice2)); color: #04101f; }
.kb-tabs button:disabled { opacity: 0.45; cursor: not-allowed; }
.kb-packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kb-pkg { display: grid; gap: 6px; align-content: start; text-align: left; padding: 16px; border-radius: 14px; border: 1px solid var(--kb-line); background: rgba(255, 255, 255, 0.03); color: inherit; font: inherit; cursor: pointer; }
.kb-pkg.on { border-color: var(--kb-ice); box-shadow: 0 0 0 3px rgba(127, 227, 255, 0.25), 0 10px 26px rgba(59, 139, 255, 0.2); background: rgba(127, 227, 255, 0.07); }
.kb-pkg-label { font-weight: 700; }
.kb-price { font-size: 26px; font-weight: 800; color: var(--kb-ice); }
.kb-dl .kb-price, .kb-summary .kb-price, .kb-pay .kb-price { font-size: inherit; }
.kb-cur { font-size: 13px; font-weight: 800; color: var(--kb-soft); letter-spacing: 1px; }
.kb-pkg-robux { color: var(--kb-soft); font-size: 14px; }
.kb-tag { justify-self: start; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: rgba(127, 227, 255, 0.12); color: var(--kb-ice); }
.kb-tag.warn { background: rgba(255, 210, 122, 0.14); color: var(--kb-warn); }
.kb-help { color: var(--kb-soft); font-size: 14px; }
.kb-eta, .kb-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: rgba(127, 227, 255, 0.08); border: 1px solid var(--kb-line); font-size: 14px; line-height: 1.55; }
.kb-note { display: block; margin-top: 14px; }
.kb-cashback { padding: 16px; border-radius: 14px; border: 1px solid var(--kb-line); background: rgba(127, 227, 255, 0.06); }
.kb-cb-amount { font-size: 22px; font-weight: 800; color: var(--kb-ice); }
.kb-cashback dl, .kb-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 14px 0; }
.kb-cashback dt, .kb-dl dt { color: var(--kb-soft); }
.kb-cashback dd, .kb-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.kb-warn { color: var(--kb-warn); font-weight: 600; }
.kb-card .kb-step { margin: 22px 0 10px; padding-top: 18px; border-top: 1px solid var(--kb-line); }
.kb-field { display: grid; gap: 6px; margin-bottom: 12px; min-width: 0; }
.kb-field label { font-weight: 700; font-size: 14px; }
.kb-field small { color: var(--kb-soft); font-weight: 500; }
.kb-input { width: 100%; min-width: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--kb-line); background: #081222; color: var(--kb-text); font: inherit; }
.kb-input:focus { outline: none; border-color: var(--kb-ice); box-shadow: 0 0 0 3px rgba(127, 227, 255, 0.2); }
.kb-row { display: flex; gap: 8px; }
.kb-row .kb-input { flex: 1; }
.kb-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; }
.kb-profile { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; background: rgba(127, 227, 255, 0.07); border: 1px solid var(--kb-line); margin-top: 6px; }
.kb-profile img, .kb-noavatar { width: 72px; height: 72px; border-radius: 12px; background: #fff; flex: none; object-fit: cover; }
.kb-noavatar { display: grid; place-items: center; color: #555; font-weight: 800; }
.kb-profile span { color: var(--kb-soft); font-size: 13px; }
.kb-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; font-size: 14px; cursor: pointer; }
.kb-check input { width: 20px; height: 20px; flex: none; accent-color: var(--kb-ice); }
.kb-err { color: var(--kb-bad); font-weight: 600; }
.kb-safety { margin-top: 6px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 210, 122, 0.08); border: 1px solid rgba(255, 210, 122, 0.25); font-size: 13.5px; }
.kb-summary { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: rgba(0, 0, 0, 0.25); }
.kb-summary strong { font-size: 20px; }
.kb-test { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 138, 138, 0.12); color: var(--kb-bad); font-weight: 700; font-size: 13px; }
.kb-fine { font-size: 12.5px; color: var(--kb-soft); text-align: center; }
.kb-faq { border-bottom: 1px solid var(--kb-line); padding: 12px 0; }
.kb-faq summary { cursor: pointer; font-weight: 700; }
.kb-faq p { margin: 10px 0 0; color: var(--kb-soft); }
.kb-faq + .kb-btn { margin-top: 16px; }
.kb-disclaimer { text-align: center; font-size: 12.5px; color: var(--kb-soft); margin: 0; }
.kb-order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.kb-order-head h1 { font-family: ui-monospace, monospace; font-size: clamp(20px, 4vw, 26px); }
.kb-status { padding: 6px 12px; border-radius: 999px; background: rgba(127, 227, 255, 0.14); color: var(--kb-ice); font-weight: 800; font-size: 13px; }
.kb-status.bad { background: rgba(255, 138, 138, 0.14); color: var(--kb-bad); }
.kb-steps { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.kb-steps li { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 12.5px; color: var(--kb-soft); position: relative; }
.kb-steps li::before { content: ''; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: var(--kb-line); z-index: 0; }
.kb-steps li:first-child::before { display: none; }
.kb-steps li.done::before, .kb-steps li.now::before { background: var(--kb-ice); }
.kb-steps .dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #0a1426; border: 2px solid var(--kb-line); font-weight: 800; }
.kb-steps li.done .dot { background: var(--kb-ice); color: #04101f; border-color: var(--kb-ice); }
.kb-steps li.now .dot { border-color: var(--kb-ice); color: var(--kb-ice); box-shadow: 0 0 0 4px rgba(127, 227, 255, 0.18); }
.kb-steps li.now { color: var(--kb-text); font-weight: 700; }
.kb-pay { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px; border-radius: 14px; border: 1px solid var(--kb-ice); background: rgba(127, 227, 255, 0.08); margin-bottom: 8px; }
.kb-pay small { color: var(--kb-soft); }
.kb-instructions { padding: 16px; border-radius: 14px; border: 1px solid var(--kb-warn); background: rgba(255, 210, 122, 0.07); margin: 10px 0; }
.kb-instructions small { color: var(--kb-soft); }
.kb-updates { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.kb-updates li { padding-left: 14px; border-left: 2px solid var(--kb-ice); }
.kb-updates time { font-size: 12px; color: var(--kb-soft); }
.kb-updates p { margin: 2px 0 0; }
.kb-private p { color: var(--kb-soft); font-size: 14px; }
@media (max-width: 760px) {
  .kb-hero { grid-template-columns: 1fr; }
  .kb-art { max-width: 260px; justify-self: center; width: 100%; }
  .kb-ways, .kb-packages, .kb-grid2 { grid-template-columns: 1fr; }
  .kb-card { padding: 18px; }
  .kb-steps { grid-auto-flow: row; justify-items: start; }
  .kb-steps li { grid-template-columns: 32px 1fr; justify-items: start; align-items: center; text-align: left; }
  .kb-steps li::before { display: none; }
  .kb-cashback dl, .kb-dl { grid-template-columns: 1fr; gap: 2px; }
  .kb-cashback dd, .kb-dl dd { margin-bottom: 8px; }
}

/* ── Loading screen, page progress, notices, recent-orders ticker ── */
.loader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #4a1d00, #160800 70%); transition: opacity 0.5s ease, visibility 0.5s; }
.loader.out { opacity: 0; visibility: hidden; }
.loader-inner { display: grid; justify-items: center; gap: 16px; }
.loader-inner img { width: 140px; height: 140px; filter: drop-shadow(0 0 24px rgba(255, 190, 40, 0.6)); animation: loaderPulse 1.4s ease-in-out infinite; }
.loader-bar { width: min(260px, 70vw); height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.loader-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffd21f, #ff8a00); box-shadow: 0 0 12px rgba(255, 190, 40, 0.8); transition: width 0.1s linear; }
.loader-pct { font-family: 'Luckiest Guy', var(--font); font-size: 34px; color: #ffd21f; letter-spacing: 2px; text-shadow: 0 3px 0 rgba(120, 50, 0, 0.6); }
@keyframes loaderPulse { 50% { transform: scale(1.06); } }

.route-progress { position: fixed; top: 0; left: 0; z-index: 999; height: 3px; width: 0; background: linear-gradient(90deg, #ffd21f, #ff6a00); box-shadow: 0 0 10px rgba(255, 190, 40, 0.9); transition: width 8s cubic-bezier(0.1, 0.8, 0.2, 1); }
.route-progress.go { width: 92%; }

.site-notice { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 44px 9px var(--gutter); font-size: 14px; font-weight: 600; text-align: center; position: relative; }
.site-notice.ann { background: linear-gradient(90deg, #ffd21f, #ffb000, #ffd21f); background-size: 200% 100%; color: #3d1a00; animation: annSlide 6s linear infinite; }
.site-notice.ann a { color: inherit; font-weight: 800; }
.site-notice.maint { background: #b3261e; color: #fff; }
.ann-close { position: absolute; right: 10px; top: 50%; translate: 0 -50%; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.12); color: inherit; display: grid; place-items: center; cursor: pointer; }
.ann-close svg { width: 14px; height: 14px; }
@keyframes annSlide { to { background-position: -200% 0; } }

.ticker { position: fixed; left: 16px; bottom: calc(var(--float-bottom, 24px) + 74px); z-index: 45; display: flex; align-items: center; gap: 10px; max-width: min(320px, calc(100vw - 32px)); padding: 10px 36px 10px 12px; border-radius: 14px; background: rgba(30, 12, 0, 0.92); color: #fff; border: 1px solid rgba(255, 210, 31, 0.4); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); font-size: 13px; line-height: 1.35; opacity: 0; transform: translateY(12px); transition: opacity 0.35s, transform 0.35s; pointer-events: none; }
.ticker.in { opacity: 1; transform: none; pointer-events: auto; }
.ticker small { color: #ffd88a; }
.tk-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); animation: tkPing 1.6s ease-out infinite; }
@keyframes tkPing { to { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } }
.tk-close { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.tk-close svg { width: 12px; height: 12px; }
@media (prefers-reduced-motion: reduce) { .site-notice.ann, .tk-dot, .loader-inner img { animation: none; } }

/* ── Korblox tile on the home grid ─────────────────────────── */
.kb-tile { background: linear-gradient(180deg, #2b6bff, #0b1f4d); border-color: #7fe3ff; box-shadow: 0 6px 0 #0a1a40, 0 0 16px rgba(127, 227, 255, 0.45); color: #eaffff; }
.kb-tile .tile { background: #0b1a36; }
.kb-badge { position: absolute; top: 6px; left: 6px; z-index: 2; font-size: 10px; font-weight: 800; letter-spacing: 1px; padding: 3px 7px; border-radius: 6px; background: linear-gradient(135deg, #7fe3ff, #3b8bff); color: #04101f; box-shadow: 0 2px 10px rgba(127, 227, 255, 0.6); }
.banner .deco-img { position: absolute; right: 4%; top: 50%; translate: 0 -50%; height: 92%; aspect-ratio: 1; border-radius: 22px; box-shadow: 0 0 40px rgba(127, 227, 255, 0.45); }
@media (max-width: 640px) { .banner .deco-img { opacity: 0.35; right: -10%; } }

/* ── Motion: everything below only runs when the visitor allows animation ── */
.site-header { transition: box-shadow 0.3s, background-color 0.3s; }
.site-header.scrolled { box-shadow: 0 10px 30px rgba(60, 20, 0, 0.45); }

@media (prefers-reduced-motion: no-preference) {
  /* Fade/slide in as things scroll into view (class added by common.js) */
  .reveal { opacity: 0; transform: translateY(18px) scale(0.985); transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: var(--d, 0ms); }
  .reveal.in { opacity: 1; transform: none; }

  /* Game cards: lift, tilt and a light sweep */
  .game-card { position: relative; overflow: hidden; transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s; }
  .game-card::after { content: ''; position: absolute; top: 0; left: -70%; width: 45%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent); transform: skewX(-18deg); transition: left 0.7s ease; pointer-events: none; z-index: 3; }
  .game-card:hover { transform: translateY(-6px) rotate(-1.2deg); box-shadow: 0 10px 0 #b85200, 0 20px 34px rgba(0, 0, 0, 0.35); }
  .game-card:hover::after { left: 140%; }
  .game-card:hover .tile .glyph { animation: bob 1.1s ease-in-out infinite; }
  @keyframes bob { 50% { translate: 0 -7px; } }

  /* Korblox tile: icy pulse + a shimmer every few seconds */
  .kb-tile { animation: kbGlow 2.4s ease-in-out infinite; }
  .kb-tile::after { animation: kbShine 4s ease-in-out infinite; }
  .kb-tile:hover { box-shadow: 0 10px 0 #0a1a40, 0 0 40px rgba(127, 227, 255, 0.95); }
  .kb-badge { animation: badgePop 2.4s ease-in-out infinite; }
  @keyframes kbGlow { 0%, 100% { box-shadow: 0 6px 0 #0a1a40, 0 0 12px rgba(127, 227, 255, 0.35); } 50% { box-shadow: 0 6px 0 #0a1a40, 0 0 30px rgba(127, 227, 255, 0.9); } }
  @keyframes kbShine { 0%, 60% { left: -70%; } 85%, 100% { left: 140%; } }
  @keyframes badgePop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

  /* Buttons: a light sweep on hover */
  .pay-btn, .btn-yellow, .btn-red, .btn-primary, .login-btn, .kb-btn.primary { position: relative; overflow: hidden; }
  .pay-btn::after, .btn-yellow::after, .btn-red::after, .btn-primary::after, .login-btn::after, .kb-btn.primary::after {
    content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent); transform: skewX(-20deg); transition: left 0.6s ease;
  }
  .pay-btn:hover::after, .btn-yellow:hover::after, .btn-red:hover::after, .btn-primary:hover::after, .login-btn:hover::after, .kb-btn.primary:hover::after { left: 140%; }
  .pay-btn:not(:disabled) { animation: payPulse 2.6s ease-in-out infinite; }
  @keyframes payPulse { 0%, 100% { box-shadow: 0 4px 0 #c98a00, 0 0 0 0 rgba(255, 217, 31, 0.55); } 50% { box-shadow: 0 4px 0 #c98a00, 0 0 0 8px rgba(255, 217, 31, 0); } }

  /* Banners: slowly shifting colours, floating decoration */
  .banner.b1, .banner.b2, .banner.b3 { background-size: 220% 220%; animation: bannerShift 14s ease-in-out infinite alternate; }
  @keyframes bannerShift { from { background-position: 0% 40%; } to { background-position: 100% 60%; } }
  .banner .deco, .banner .deco-img { animation: float 4.5s ease-in-out infinite; }
  @keyframes float { 0%, 100% { margin-top: 0; } 50% { margin-top: -12px; } }

  /* Packages and method cards respond to the pointer */
  .pkg, .kb-pkg { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
  .pkg:hover, .kb-pkg:hover { transform: translateY(-3px); }
  .picker .price { animation: pricePop 0.35s cubic-bezier(0.2, 1.4, 0.4, 1); }
  @keyframes pricePop { from { transform: scale(0.88); opacity: 0.4; } }
  .community-list li { animation: rowIn 0.4s ease both; }
  @keyframes rowIn { from { opacity: 0; transform: translateX(-8px); } }
  .section-title .badge { animation: spinIn 0.8s cubic-bezier(0.2, 1.3, 0.4, 1); }
  @keyframes spinIn { from { transform: rotate(-180deg) scale(0.4); opacity: 0; } }

  /* Korblox pages */
  .kb-art img, .kb-art svg { animation: float 5s ease-in-out infinite; }
  .kb-art { box-shadow: 0 0 0 1px var(--kb-line, transparent), 0 0 50px rgba(127, 227, 255, 0.25); }
  .kb-btn.primary.big:not(:disabled) { animation: kbPulse 2.8s ease-in-out infinite; }
  @keyframes kbPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(127, 227, 255, 0.5); } 50% { box-shadow: 0 0 0 10px rgba(127, 227, 255, 0); } }
  .kb-steps li.now .dot { animation: kbPulse 2s ease-in-out infinite; }
}
.riel { display: block; font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.checkout-bar .riel { display: inline; margin-left: 6px; }
.stock-left { display: table; margin-top: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; background: rgba(61, 220, 132, 0.18); color: #b6ffd6; }
.stock-left.low { background: rgba(255, 170, 40, 0.22); color: #ffd88a; }

/* ── Live chat (customer) ──────────────────────────────────── */
.fab.support.has-unread { animation: pulse 1.6s infinite; }
.fab.support.has-unread::after { background: #ff3b30; }
.chat-panel { position: fixed; left: 18px; bottom: calc(var(--float-bottom, 24px) + 76px); z-index: 60; width: min(370px, calc(100vw - 24px)); max-height: min(560px, calc(100vh - 140px)); display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--sheet); color: var(--sheet-ink); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); animation: chatIn 0.25s cubic-bezier(0.2, 1, 0.3, 1); }
.chat-panel[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: linear-gradient(135deg, #ff9d1c, #ff5a1f); color: #fff; }
.chat-head .dot { width: 10px; height: 10px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35); flex: none; }
.chat-head small { display: block; opacity: 0.9; font-size: 12px; }
.chat-head button { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.2); color: #fff; display: grid; place-items: center; cursor: pointer; }
.chat-head button svg { width: 16px; height: 16px; }
.chat-start { display: grid; gap: 10px; padding: 14px; overflow-y: auto; font-size: 14px; }
.chat-start p { margin: 0; line-height: 1.5; }
.chat-start label { display: grid; gap: 4px; font-weight: 700; font-size: 13px; }
.chat-start small { font-weight: 500; color: var(--sheet-soft); }
.chat-input { width: 100%; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--sheet-line); background: #fff; color: #1b1b1b; font: inherit; font-size: 14px; resize: none; }
.chat-input:focus { outline: none; border-color: #ff9d1c; }
.chat-safe { margin: 0; padding: 6px 14px 10px; font-size: 11.5px; color: var(--sheet-soft); text-align: center; }
.chat-alt { display: grid; gap: 6px; font-size: 13px; }
.chat-log { flex: 1; min-height: 220px; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { display: grid; max-width: 84%; gap: 2px; }
.msg .bubble { padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.msg time { font-size: 10.5px; color: var(--sheet-soft); }
.msg .who { font-size: 11px; font-weight: 800; color: #ff7b00; }
.msg.customer { align-self: flex-end; justify-items: end; }
.msg.customer .bubble { background: linear-gradient(135deg, #ffb21a, #ff7b00); color: #fff; border-bottom-right-radius: 4px; }
.msg.staff .bubble { background: rgba(127, 127, 127, 0.15); border-bottom-left-radius: 4px; }
.msg.system { align-self: center; max-width: 92%; justify-items: center; }
.msg.system .bubble { background: rgba(255, 210, 31, 0.15); font-size: 12.5px; text-align: center; }
.chat-send { display: flex; gap: 8px; padding: 10px 12px 4px; border-top: 1px solid var(--sheet-line); }
.chat-send button { flex: none; width: 44px; border-radius: 12px; border: 0; background: linear-gradient(135deg, #ffb21a, #ff7b00); color: #fff; font-size: 18px; cursor: pointer; }
@media (max-width: 520px) { .chat-panel { left: 12px; right: 12px; width: auto; } }

/* ── Live chat (admin) ─────────────────────────────────────── */
.tab-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: #ff3b30; color: #fff; font-size: 11px; }
.tab-badge[hidden] { display: none; }
.admin-chat:not([hidden]) { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; height: min(72vh, 720px); }
.ac-list { border-right: 1px solid var(--sheet-line); display: flex; flex-direction: column; min-height: 0; }
.ac-tools { display: flex; gap: 6px; padding: 10px; border-bottom: 1px solid var(--sheet-line); }
.ac-tools .input { flex: 1; min-width: 0; padding: 8px 10px; font-size: 13px; border-width: 2px; border-color: var(--sheet-line); }
.ac-tools select { border-radius: 10px; }
[data-ac-items] { overflow-y: auto; flex: 1; }
.ac-item { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; width: 100%; padding: 11px 12px; border: 0; border-bottom: 1px solid var(--sheet-line); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ac-item:hover { background: rgba(255, 157, 28, 0.08); }
.ac-item.on { background: rgba(255, 157, 28, 0.16); }
.ac-item.unread .ac-name { font-weight: 800; }
.ac-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-name small { color: #3ddc84; font-weight: 700; }
.ac-time { font-size: 11px; color: var(--sheet-soft); }
.ac-last { grid-column: 1 / -1; font-size: 12.5px; color: var(--sheet-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 26px; }
.ac-unread { position: absolute; right: 10px; bottom: 10px; min-width: 20px; height: 20px; border-radius: 99px; background: #ff3b30; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 6px; }
.ac-thread { display: flex; flex-direction: column; min-height: 0; }
.ac-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--sheet-line); }
.ac-head small { color: var(--sheet-soft); }
.ac-log { flex: 1; min-height: 0; }
.ac-empty { padding: 20px; color: var(--sheet-soft); text-align: center; }
.ac-order { margin-top: 6px; padding: 10px 12px; border-radius: 12px; border: 2px solid rgba(255, 157, 28, 0.5); background: rgba(255, 157, 28, 0.08); font-size: 13px; display: grid; gap: 4px; }
.ac-order.missing { border-style: dashed; color: var(--sheet-soft); }
.ac-order-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
@media (max-width: 760px) { .admin-chat:not([hidden]) { grid-template-columns: 1fr; height: auto; } .ac-list { border-right: 0; max-height: 260px; } .ac-thread { height: 60vh; } }
.login-sheet .or { display: flex; align-items: center; gap: 10px; color: var(--sheet-soft); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.login-sheet .or::before, .login-sheet .or::after { content: ''; flex: 1; height: 1px; background: var(--sheet-line); }
/* Turnstile challenge (only visible when Cloudflare asks for a click) */
.ts-box { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1100; }
.ts-box:empty { display: none; }
/* Admin: home page banners */
.banner-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; padding: 12px; border: 2px solid var(--sheet-line); border-radius: 14px; }
.banner-thumb { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: rgba(127, 127, 127, 0.12); display: grid; place-items: center; font-size: 12px; color: var(--sheet-soft); }
.banner-thumb img { width: 100%; height: 100%; object-fit: cover; }
.banner-fields { display: grid; gap: 8px; align-content: start; }
@media (max-width: 640px) { .banner-row { grid-template-columns: 1fr; } }
