:root {
  --bg: #050508;
  --bg2: #0c0a10;
  --panel: rgba(18, 10, 22, 0.92);
  --panel-solid: #120a16;
  --text: #f5f0f7;
  --muted: #9b8fa8;
  --line: rgba(255, 40, 80, 0.12);
  --line2: rgba(200, 60, 255, 0.22);
  --accent: #ff2d55;
  --accent2: #c44dff;
  --accent3: #ff7a9a;
  --glow: rgba(255, 45, 85, 0.4);
  --glow2: rgba(196, 77, 255, 0.35);
  --ok: #2ee59d;
  --warn: #ffb84d;
  --danger: #ff4d6a;
  --wa: #25d366;
  --radius: 14px;
  --nav-h: 72px;
  --font: "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  color: var(--text);
  font: 14.5px/1.55 var(--font);
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(255, 45, 85, 0.18), transparent 55%),
    radial-gradient(600px 380px at 0% 100%, rgba(140, 40, 220, 0.14), transparent 50%),
    radial-gradient(500px 300px at 50% 50%, rgba(80, 0, 40, 0.12), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255, 45, 85, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 77, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: none; background: none; color: inherit; }
.shell { position: relative; z-index: 1; min-height: 100vh; padding-bottom: calc(var(--nav-h) + 12px); }

.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px) saturate(1.3);
  background: rgba(5, 5, 8, 0.9);
  border-bottom: 1px solid var(--line);
}
.navin {
  max-width: 1100px; margin: auto; padding: 10px 14px;
  display: flex; align-items: center; gap: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; }
.brand-logo { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 0 12px var(--glow2)); }
.brand-text {
  font-size: 12px; letter-spacing: 0.04em;
  background: linear-gradient(90deg, #fff, var(--accent3), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.links { display: flex; gap: 2px; margin-left: auto; }
.links a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: 13px; font-weight: 650; }
.links a:hover { background: rgba(255,45,85,.1); color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 7px; }
.iconbtn {
  position: relative; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255,45,85,.06);
  transition: .15s;
}
.iconbtn:hover { border-color: var(--accent); box-shadow: 0 0 16px var(--glow); }
.iconbtn.wa-btn { color: var(--wa); }
.dot {
  position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px;
  padding: 0 4px; border-radius: 999px; background: var(--accent);
  font-size: 10px; display: grid; place-items: center; font-weight: 900;
  box-shadow: 0 0 10px var(--glow);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 11px;
  background: linear-gradient(135deg, #ff2d55, #c41228);
  color: #fff; font-weight: 800; font-size: 13.5px;
  box-shadow: 0 6px 22px var(--glow); transition: .15s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn:disabled { opacity: .4; pointer-events: none; }
.btn.secondary {
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  box-shadow: none; color: var(--text); font-weight: 700;
}
.btn.secondary:hover { border-color: rgba(255,45,85,.35); background: rgba(255,45,85,.1); }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }
.btn.ok { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 6px 18px rgba(46,229,157,.3); }
.btn.danger { background: var(--danger); box-shadow: 0 6px 18px rgba(255,77,106,.3); }

.layout { max-width: 1100px; margin: auto; padding: 22px 14px 28px; }
.section { max-width: 1100px; margin: auto; padding: 28px 14px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-head h2 { font-size: 22px; font-weight: 900; }
.section-head p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.row { display: flex; align-items: center; gap: 10px; }
.eyebrow {
  display: inline-flex; color: var(--accent); font-weight: 800; font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase;
}
.muted { color: var(--muted); }
.gradient {
  background: linear-gradient(100deg, #fff 5%, var(--accent3) 45%, var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-title { font-size: 24px; font-weight: 950; letter-spacing: -.02em; margin: 0; }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; backdrop-filter: blur(10px);
}
.form { max-width: 440px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; font-weight: 650; }
.field input, .field textarea, .field select,
input[type=text], input[type=email], input[type=password], input[type=number], input[type=file], textarea, select {
  width: 100%; background: #0a0810; border: 1px solid var(--line); border-radius: 11px;
  padding: 11px 13px; color: var(--text); outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,45,85,.15);
}
.field textarea { min-height: 84px; resize: vertical; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.product-card {
  display: flex; flex-direction: column; gap: 9px; padding: 16px;
  transition: .2s;
}
.product-card:hover {
  border-color: rgba(255,45,85,.4); transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(255, 20, 60, .2);
}
.pc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pc-badge {
  font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--accent3); background: rgba(255,45,85,.12); border: 1px solid rgba(255,45,85,.28);
  padding: 3px 9px; border-radius: 999px;
}
.pc-stock { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.pc-stock.ok { color: var(--ok); background: rgba(46,229,157,.1); }
.pc-stock.danger { color: var(--danger); background: rgba(255,77,106,.1); }
.product-title { font-size: 15px; font-weight: 800; line-height: 1.3; }
.product-title a:hover { color: var(--accent3); }
.pc-desc { font-size: 12.5px; line-height: 1.45; flex: 1; }
.pc-tag { font-size: 11px; color: var(--ok); font-weight: 650; }
.pc-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 2px; padding-top: 12px; border-top: 1px solid var(--line);
}
.price { font-size: 16px; font-weight: 900; color: #fff; }
.old { font-size: 11.5px; color: var(--muted); text-decoration: line-through; margin-left: 5px; }
.pc-discount {
  font-size: 10.5px; font-weight: 900; color: #fff; background: var(--accent);
  padding: 2px 7px; border-radius: 6px; margin-left: 6px;
}

.hero {
  max-width: 1100px; margin: auto; padding: 48px 14px 32px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center;
}
.hero h1 { font-size: 40px; line-height: 1.08; margin: 10px 0 12px; font-weight: 950; letter-spacing: -.03em; }
.hero p { color: var(--muted); max-width: 460px; margin: 0 0 18px; }
.hero-actions { gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.mini-stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 400px; }
.mini-stat > div {
  background: rgba(255,45,85,.06); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px;
}
.mini-stat strong { display: block; font-size: 16px; font-weight: 900; }
.mini-stat small { color: var(--muted); font-size: 10.5px; }
.hero-card {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,45,85,.14), rgba(18,10,22,.95));
  border: 1px solid rgba(255,45,85,.3); border-radius: 20px; padding: 24px; min-height: 300px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.hero-card .logo-big {
  width: min(220px, 70%); height: auto; object-fit: contain;
  filter: drop-shadow(0 0 32px var(--glow2)); margin-bottom: 12px;
}
.hero-card .orb {
  position: absolute; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(196,77,255,.35), transparent 70%);
  right: -40px; bottom: -40px; pointer-events: none;
}

.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
}
.badge.ok { background: rgba(46,229,157,.12); color: var(--ok); border: 1px solid rgba(46,229,157,.25); }
.badge.warn { background: rgba(255,184,77,.12); color: var(--warn); border: 1px solid rgba(255,184,77,.25); }
.badge.danger { background: rgba(255,77,106,.12); color: var(--danger); border: 1px solid rgba(255,77,106,.25); }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.feature-icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,45,85,.14); border: 1px solid rgba(255,45,85,.28);
  margin-bottom: 10px; font-weight: 900; font-size: 13px; color: var(--accent3);
}
.promo {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  background: linear-gradient(120deg, rgba(255,45,85,.12), rgba(18,10,22,.9));
  border-color: rgba(255,45,85,.28);
}
.faq details {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 15px; margin-bottom: 8px;
}
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 8px 0 0; font-size: 13.5px; }

.account-box {
  margin-top: 12px; background: rgba(46,229,157,.06); border: 1px solid rgba(46,229,157,.22);
  border-radius: 12px; padding: 13px;
}
.account-box-title { font-size: 11px; font-weight: 800; color: var(--ok); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 7px; }
.account-pre {
  white-space: pre-wrap; word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.55;
}
.qris-wrap { text-align: center; padding: 14px; }
.qris-wrap img {
  width: 100%; max-width: 240px; border-radius: 14px; background: #fff; padding: 10px;
  box-shadow: 0 10px 36px rgba(0,0,0,.5);
}
.qris-hint { margin-top: 10px; font-size: 12.5px; color: var(--muted); }

.timeline { display: flex; align-items: flex-start; justify-content: space-between; margin: 14px 0; }
.tl-step { display: flex; flex-direction: column; align-items: center; gap: 7px; max-width: 70px; text-align: center; }
.tl-dot {
  width: 13px; height: 13px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 2px solid var(--line2);
}
.tl-step.done .tl-dot { background: var(--ok); border-color: var(--ok); box-shadow: 0 0 10px rgba(46,229,157,.4); }
.tl-step.active .tl-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px var(--glow); transform: scale(1.15); }
.tl-label { font-size: 10px; color: var(--muted); font-weight: 650; }
.tl-step.done .tl-label, .tl-step.active .tl-label { color: var(--text); }
.tl-line { flex: 1; height: 2px; background: var(--line); margin-top: 11px; min-width: 10px; }

.announce { max-width: 1100px; margin: 12px auto 0; padding: 0 14px; }
.announce-inner {
  background: linear-gradient(90deg, rgba(255,45,85,.18), rgba(196,77,255,.08));
  border: 1px solid rgba(255,45,85,.3); border-radius: 12px; padding: 11px 14px;
  display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 650;
}
.ann-icon {
  width: 28px; height: 28px; border-radius: 8px; background: rgba(255,45,85,.25);
  display: grid; place-items: center; flex-shrink: 0; font-weight: 900;
}

.bottom {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  height: var(--nav-h); padding: 0 6px calc(env(safe-area-inset-bottom, 0px) + 4px);
  background: rgba(5, 5, 8, 0.96); backdrop-filter: blur(22px);
  border-top: 1px solid var(--line); justify-content: space-around; align-items: center;
  box-shadow: 0 -8px 32px rgba(0,0,0,.55);
}
.bnav {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; max-width: 78px; color: var(--muted); font-size: 10px; font-weight: 650;
  border-radius: 12px; padding: 6px 2px; position: relative;
}
.bnav svg { width: 22px; height: 22px; opacity: .75; }
.bnav:hover, .bnav.active { color: var(--accent3); }
.bnav.active svg { opacity: 1; stroke: var(--accent3); filter: drop-shadow(0 0 6px var(--glow)); }
.bnav.active::before {
  content: ""; position: absolute; top: 5px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--glow);
}
.bnav-fab {
  display: grid; place-items: center; width: 50px; height: 50px; margin-top: -20px;
  border-radius: 16px; background: linear-gradient(145deg, #ff2d55, #a01030); color: #fff;
  box-shadow: 0 8px 24px var(--glow), 0 0 0 4px var(--bg);
}
.bnav-fab svg { opacity: 1; stroke: #fff; }
.bnav-center.active::before { display: none; }

/* Admin tabs = buttons, not links */
.adminnav {
  display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 18px; padding: 5px;
  background: rgba(255,45,85,.04); border: 1px solid var(--line); border-radius: 14px;
}
.admin-tab, .adminnav a {
  padding: 9px 13px; border-radius: 10px; color: var(--muted);
  font-size: 12.5px; font-weight: 700; white-space: nowrap; background: transparent;
}
.admin-tab:hover, .adminnav a:hover { color: var(--text); background: rgba(255,45,85,.1); }
.admin-tab.active, .adminnav a.active {
  color: #fff; background: linear-gradient(135deg, #ff2d55, #c41228);
  box-shadow: 0 4px 14px var(--glow);
}
.statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat strong { font-size: 24px; display: block; margin-top: 6px; font-weight: 950; }

.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 14px 100px; }
.auth .card { width: 100%; max-width: 400px; }
.auth .brand-logo { width: 72px; height: 72px; margin: 0 auto 12px; display: block; filter: drop-shadow(0 0 18px var(--glow2)); }
.toast {
  position: fixed; bottom: calc(var(--nav-h) + 18px); left: 50%; transform: translateX(-50%);
  background: #1a0a14; border: 1px solid var(--line2); color: var(--text);
  padding: 11px 18px; border-radius: 12px; z-index: 100; font-size: 13.5px; font-weight: 700;
  box-shadow: 0 12px 40px rgba(0,0,0,.55); white-space: nowrap;
}
.empty {
  text-align: center; padding: 40px 16px; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--radius);
}
.footer {
  border-top: 1px solid var(--line); margin-top: 36px;
  padding: 22px 14px calc(var(--nav-h) + 16px); color: var(--muted); text-align: center; font-size: 12.5px;
}
.load-box { padding: 36px 14px; text-align: center; color: var(--muted); }
.wa-float {
  position: fixed; bottom: calc(var(--nav-h) + 14px); right: 14px; z-index: 55;
  width: 52px; height: 52px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 28px rgba(37,211,102,.4);
}
.proof-drop {
  display: block; border: 1.5px dashed var(--line2); border-radius: 14px; padding: 24px 14px;
  text-align: center; cursor: pointer; background: rgba(255,45,85,.04);
}
.proof-drop:hover { border-color: var(--accent); background: rgba(255,45,85,.1); }
.progress-wrap { margin-top: 12px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.progress-bar {
  height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .2s;
}
.qty-ctrl {
  display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.qty-ctrl button { width: 36px; height: 36px; background: rgba(255,45,85,.08); font-weight: 800; }
.qty-ctrl span { min-width: 36px; text-align: center; font-weight: 800; }
.linkish { color: var(--accent3); font-size: 12.5px; font-weight: 650; text-decoration: underline; cursor: pointer; }
.w-full { width: 100%; }
.filt.active, .cat-btn.active {
  background: linear-gradient(135deg, #ff2d55, #c41228) !important; border: none !important; color: #fff !important;
  box-shadow: 0 4px 14px var(--glow);
}
.admin-search {
  width: 100%; max-width: 320px; background: #0a0810; border: 1px solid var(--line);
  border-radius: 11px; padding: 10px 13px; color: var(--text); margin-bottom: 14px;
}
.warn-banner {
  background: rgba(255,184,77,.08); border: 1px solid rgba(255,184,77,.25);
  border-radius: 12px; padding: 10px 12px; color: var(--warn); font-weight: 650; font-size: 13px;
}

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .statgrid { grid-template-columns: repeat(2, 1fr); }
  .links { display: none; }
}
@media (max-width: 680px) {
  .hero { padding-top: 24px; }
  .hero h1 { font-size: 28px; }
  .grid { grid-template-columns: 1fr; }
  .promo { grid-template-columns: 1fr; }
  .bottom { display: flex; }
  .mini-stat { grid-template-columns: 1fr 1fr; }
  .mini-stat > div:last-child { display: none; }
  .brand-text { font-size: 10.5px; max-width: 100px; line-height: 1.15; }
}


/* ========== THEME PRESETS (real-time) ========== */
html[data-theme="gahar"] {
  --bg: #050508; --bg2: #0c0a10; --panel: rgba(18, 10, 22, 0.92); --panel-solid: #120a16;
  --text: #f5f0f7; --muted: #9b8fa8;
  --line: rgba(255, 40, 80, 0.12); --line2: rgba(200, 60, 255, 0.22);
  --accent: #ff2d55; --accent2: #c44dff; --accent3: #ff7a9a;
  --glow: rgba(255, 45, 85, 0.4); --glow2: rgba(196, 77, 255, 0.35);
  --ok: #2ee59d; --warn: #ffb84d; --danger: #ff4d6a;
}
html[data-theme="neon"] {
  --bg: #03050c; --bg2: #0a1020; --panel: rgba(10, 18, 36, 0.92); --panel-solid: #0c1428;
  --text: #e8f4ff; --muted: #7a93b0;
  --line: rgba(0, 200, 255, 0.14); --line2: rgba(80, 120, 255, 0.25);
  --accent: #00d4ff; --accent2: #5b8cff; --accent3: #7ef0ff;
  --glow: rgba(0, 212, 255, 0.4); --glow2: rgba(91, 140, 255, 0.35);
  --ok: #2ee59d; --warn: #ffb84d; --danger: #ff4d6a;
}
html[data-theme="violet"] {
  --bg: #0a0614; --bg2: #120a1f; --panel: rgba(22, 12, 40, 0.9); --panel-solid: #160c28;
  --text: #f4f0ff; --muted: #a89bc4;
  --line: rgba(180, 120, 255, 0.14); --line2: rgba(180, 120, 255, 0.25);
  --accent: #a855f7; --accent2: #c084fc; --accent3: #e9d5ff;
  --glow: rgba(168, 85, 247, 0.45); --glow2: rgba(192, 132, 252, 0.35);
  --ok: #34d399; --warn: #fbbf24; --danger: #f43f5e;
}
html[data-theme="emerald"] {
  --bg: #030a08; --bg2: #071410; --panel: rgba(8, 22, 18, 0.92); --panel-solid: #0a1814;
  --text: #ecfdf5; --muted: #86a89a;
  --line: rgba(16, 185, 129, 0.15); --line2: rgba(52, 211, 153, 0.28);
  --accent: #10b981; --accent2: #34d399; --accent3: #6ee7b7;
  --glow: rgba(16, 185, 129, 0.4); --glow2: rgba(52, 211, 153, 0.3);
  --ok: #34d399; --warn: #fbbf24; --danger: #f43f5e;
}
html[data-theme="gold"] {
  --bg: #0a0804; --bg2: #14100a; --panel: rgba(24, 18, 8, 0.92); --panel-solid: #1a140c;
  --text: #fff8eb; --muted: #b0a080;
  --line: rgba(245, 180, 50, 0.14); --line2: rgba(255, 200, 80, 0.28);
  --accent: #f5b432; --accent2: #ffd060; --accent3: #ffe4a0;
  --glow: rgba(245, 180, 50, 0.4); --glow2: rgba(255, 208, 96, 0.3);
  --ok: #34d399; --warn: #fbbf24; --danger: #f43f5e;
}
html[data-theme="ice"] {
  --bg: #06080c; --bg2: #0c1018; --panel: rgba(14, 18, 28, 0.92); --panel-solid: #101420;
  --text: #f0f4fa; --muted: #8a96a8;
  --line: rgba(148, 163, 184, 0.16); --line2: rgba(200, 210, 230, 0.22);
  --accent: #94a3b8; --accent2: #cbd5e1; --accent3: #e2e8f0;
  --glow: rgba(148, 163, 184, 0.3); --glow2: rgba(203, 213, 225, 0.25);
  --ok: #34d399; --warn: #fbbf24; --danger: #f43f5e;
}

/* Theme picker UI */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.theme-card {
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  background: rgba(255,255,255,0.03);
  transition: .15s;
}
.theme-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.theme-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--glow), 0 8px 24px var(--glow);
}
.theme-swatch {
  height: 28px; border-radius: 8px; margin-bottom: 8px;
  background: linear-gradient(90deg, var(--t1), var(--t2));
}
.theme-card span { font-size: 12px; font-weight: 700; }

/* Form controls match theme */
.search-row input,
.search-row select,
input.search-input,
select.sort-select {
  width: 100%;
  background: var(--panel-solid) !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  color: var(--text) !important;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.search-row input::placeholder { color: var(--muted); }
.search-row input:focus,
.search-row select:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--glow);
}
.search-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.search-row input { flex: 1; min-width: 160px; }
.search-row select { min-width: 140px; max-width: 180px; }

/* ===== SPIN WHEEL ===== */
.spin-page { max-width: 520px; margin: 0 auto; }
.spin-stage {
  position: relative;
  width: min(320px, 86vw);
  height: min(320px, 86vw);
  margin: 20px auto;
}
.spin-wheel {
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 4px solid var(--accent);
  box-shadow: 0 0 40px var(--glow), inset 0 0 30px rgba(0,0,0,.4);
  transition: transform 4.5s cubic-bezier(0.12, 0.75, 0.12, 1);
  position: relative;
  overflow: hidden;
  background: var(--panel-solid);
}
.spin-segment {
  position: absolute; left: 50%; top: 50%;
  width: 50%; height: 50%;
  transform-origin: 0 0;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 12%;
  font-size: 10px; font-weight: 800; color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
  pointer-events: none;
  box-sizing: border-box;
  overflow: hidden;
}
.spin-pointer {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 22px solid var(--accent);
  z-index: 5; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5));
}
.spin-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), var(--accent2));
  border: 3px solid #fff; z-index: 4;
  display: grid; place-items: center; font-weight: 900; font-size: 11px;
  box-shadow: 0 0 20px var(--glow);
}
.spin-result {
  margin-top: 16px; text-align: center;
  padding: 16px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--panel);
}
.spin-result.win {
  border-color: rgba(46,229,157,.4);
  background: rgba(46,229,157,.08);
}
