/* ==========================================================================
   WooshPay GameShop — Demo Design System
   出海游戏充值站 · 一键搭建 · 全球收款
   ========================================================================== */

:root {
  /* Brand */
  --brand-1: #6C5CE7;      /* violet */
  --brand-2: #00D4FF;      /* cyan   */
  --brand-3: #FF4D6D;      /* hot pink accent */
  --brand-grad: linear-gradient(120deg, #6C5CE7 0%, #4C6FFF 45%, #00D4FF 100%);
  --brand-grad-soft: linear-gradient(120deg, rgba(108,92,231,.18), rgba(0,212,255,.18));
  --accent-grad: linear-gradient(120deg, #FF4D6D 0%, #FF8A4C 100%);
  --gold: #FFC53D;

  /* Surfaces (dark) */
  --bg-0: #07070F;
  --bg-1: #0C0C1A;
  --bg-2: #12122A;
  --bg-3: #1A1A38;
  --card: rgba(255,255,255,.04);
  --card-2: rgba(255,255,255,.06);
  --line: rgba(255,255,255,.10);
  --line-2: rgba(255,255,255,.16);

  /* Text */
  --tx-0: #FFFFFF;
  --tx-1: #E7E8F2;
  --tx-2: #A9ACC6;
  --tx-3: #6E7298;

  /* Status */
  --ok: #2ED47A;
  --warn: #FFB020;
  --err: #FF5C5C;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --shadow: 0 20px 60px -20px rgba(0,0,0,.6);
  --shadow-glow: 0 0 0 1px rgba(108,92,231,.4), 0 24px 70px -24px rgba(76,111,255,.55);
  --maxw: 1200px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--tx-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: rgba(108,92,231,.4); }

/* Backdrop glow */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(800px 500px at 12% -5%, rgba(108,92,231,.25), transparent 60%),
    radial-gradient(700px 500px at 95% 0%, rgba(0,212,255,.16), transparent 55%),
    radial-gradient(900px 600px at 80% 100%, rgba(255,77,109,.10), transparent 60%);
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section.tight { padding: 56px 0; }
.center { text-align: center; }
.grid { display: grid; gap: 20px; }
.flex { display: flex; }
.between { justify-content: space-between; }
.aic { align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.muted { color: var(--tx-2); }
.dim { color: var(--tx-3); }
.hide { display: none !important; }

/* ---------- Typo ---------- */
h1,h2,h3 { color: var(--tx-0); line-height: 1.15; letter-spacing: -.02em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-2);
  padding: 7px 14px; border-radius: 999px;
  background: var(--brand-grad-soft); border: 1px solid var(--line);
}
.h-xl { font-size: clamp(34px, 5.4vw, 60px); font-weight: 800; }
.h-lg { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
.h-md { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; }
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--tx-2); max-width: 640px; }
.grad-text {
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: var(--shadow-glow); }
.btn-accent  { background: var(--accent-grad); color: #fff; box-shadow: 0 14px 40px -14px rgba(255,77,109,.7); }
.btn-ghost   { background: var(--card-2); color: var(--tx-0); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--brand-2); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px;
  backdrop-filter: blur(8px);
  transition: transform .2s ease, border-color .2s, background .2s;
}
.card.hov:hover { transform: translateY(-6px); border-color: var(--line-2); background: var(--card-2); }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px;
  background: var(--card-2); border: 1px solid var(--line); color: var(--tx-2);
}
.pill.ok   { color: var(--ok);   border-color: rgba(46,212,122,.4);  background: rgba(46,212,122,.12); }
.pill.warn { color: var(--warn); border-color: rgba(255,176,32,.4);  background: rgba(255,176,32,.12); }
.pill.hot  { color: #fff; border: none; background: var(--accent-grad); }
.pill.brand{ color: #fff; border: none; background: var(--brand-grad); }

/* ---------- Global demo nav ---------- */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7,7,15,.72); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topnav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; font-size: 18px; letter-spacing: -.01em; }
.logo .mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--brand-grad);
  display: grid; place-items: center; font-size: 17px; box-shadow: var(--shadow-glow);
}
.logo small { color: var(--tx-3); font-weight: 600; font-size: 12px; letter-spacing: .04em; }
.navlinks { display: flex; align-items: center; gap: 6px; }
.navlinks a {
  font-size: 14px; font-weight: 600; color: var(--tx-2);
  padding: 8px 14px; border-radius: 999px; transition: .15s;
}
.navlinks a:hover { color: #fff; background: var(--card-2); }
.navlinks a.active { color: #fff; background: var(--brand-grad-soft); border: 1px solid var(--line); }
.demo-tag {
  font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--gold);
  border: 1px dashed rgba(255,197,61,.5); padding: 4px 9px; border-radius: 7px;
}

/* ---------- Stat / KPI ---------- */
.kpi { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.kpi .card { padding: 22px; }
.kpi .num { font-size: 30px; font-weight: 800; color: #fff; line-height: 1.1; }
.kpi .lbl { font-size: 13px; color: var(--tx-2); margin-top: 4px; }
.kpi .delta { font-size: 12.5px; font-weight: 700; margin-top: 8px; display:inline-flex; gap:4px; align-items:center;}
.up { color: var(--ok); } .down { color: var(--err); }

/* ---------- Feature grid ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.feat .ic {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  font-size: 24px; background: var(--brand-grad-soft); border: 1px solid var(--line); margin-bottom: 16px;
}
.feat h3 { font-size: 18px; margin-bottom: 8px; }
.feat p { color: var(--tx-2); font-size: 14.5px; }

/* ---------- Table ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--tx-3); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line); color: var(--tx-1); }
.table tr:hover td { background: var(--card); }
.table .num-cell { font-variant-numeric: tabular-nums; font-weight: 600; }

/* compare table */
.compare td:first-child, .compare th:first-child { font-weight: 700; color: #fff; }
.compare .yes { color: var(--ok); font-weight: 700; }
.compare .no  { color: var(--tx-3); }
.compare .col-us { background: rgba(108,92,231,.10); }
.compare th.col-us { color: #fff; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--tx-3); font-size: 13.5px; }

/* =========================================================================
   SHOP (player webshop)
   ========================================================================= */
.shop-bar {
  position: sticky; top: 64px; z-index: 40;
  background: rgba(12,12,26,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.shop-bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.game-id { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.game-id .ava { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-grad); display:grid; place-items:center; }
.selects { display: flex; align-items: center; gap: 10px; }
.select {
  display: flex; align-items: center; gap: 8px;
  background: var(--card-2); border: 1px solid var(--line); color: var(--tx-1);
  padding: 8px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
}
.select select { background: transparent; color: var(--tx-1); border: none; font: inherit; font-weight: 600; outline: none; cursor: pointer; }
.select select option { background: var(--bg-2); color: var(--tx-1); }

/* hero / carousel */
.shop-hero {
  border-radius: var(--r-xl); overflow: hidden; position: relative;
  min-height: 280px; padding: 40px; display: flex; flex-direction: column; justify-content: flex-end;
  background:
    linear-gradient(0deg, rgba(7,7,15,.85), rgba(7,7,15,.15)),
    var(--brand-grad);
  border: 1px solid var(--line);
}
.shop-hero h2 { font-size: clamp(26px,4vw,40px); }
.carousel-dots { display: flex; gap: 8px; margin-top: 18px; }
.carousel-dots span { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.35); cursor:pointer; transition:.2s;}
.carousel-dots span.on { width: 24px; background: #fff; }

/* pack grid */
.pack-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.pack {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 22px 18px; text-align: center; transition: .18s; overflow: hidden;
}
.pack:hover { transform: translateY(-5px); border-color: var(--brand-2); box-shadow: var(--shadow-glow); }
.pack .badge {
  position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 800;
  padding: 3px 9px; border-radius: 999px; background: var(--accent-grad); color: #fff;
}
.pack .badge.gold { background: linear-gradient(120deg,#FFC53D,#FF8A00); color:#1a1300; }
.pack .gem { font-size: 38px; margin-bottom: 6px; }
.pack .amt { font-size: 22px; font-weight: 800; color: #fff; }
.pack .bonus { font-size: 12.5px; color: var(--gold); font-weight: 700; margin: 2px 0 12px; min-height: 16px; }
.pack .price { font-size: 17px; font-weight: 800; color: var(--brand-2); }
.pack .price s { color: var(--tx-3); font-size: 13px; font-weight: 500; margin-left: 6px; }
.pack .buy { margin-top: 14px; }

/* bundle */
.bundle {
  display: flex; gap: 16px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px;
}
.bundle .thumb { width: 78px; height: 78px; border-radius: 12px; display:grid; place-items:center; font-size: 38px; background: var(--brand-grad-soft); border:1px solid var(--line); flex:none;}
.bundle h4 { color:#fff; font-size: 16px; }
.bundle .items { font-size: 13px; color: var(--tx-2); }

/* promo */
.promo-box { display: flex; gap: 10px; flex-wrap: wrap; }
.promo-box input {
  flex: 1; min-width: 200px; background: var(--card-2); border: 1px solid var(--line);
  color: #fff; padding: 12px 16px; border-radius: 999px; font: inherit; outline: none;
}
.promo-box input:focus { border-color: var(--brand-2); }
.promo-msg { font-size: 13.5px; font-weight: 600; }

/* trust row */
.trust { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; color: var(--tx-2); font-size: 13.5px; }
.trust span { display: inline-flex; gap: 7px; align-items: center; }

/* ---------- Modal / drawer ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(4,4,10,.7);
  backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 20px;
}
.overlay.show { display: flex; }
.modal {
  width: 100%; max-width: 480px; background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow); animation: pop .25s ease;
  max-height: 90vh; overflow-y: auto;
}
.modal.wide { max-width: 560px; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.modal h3 { font-size: 22px; margin-bottom: 6px; }
.modal .x { position: absolute; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.close-x { font-size: 22px; color: var(--tx-3); line-height: 1; padding: 4px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--tx-2); margin-bottom: 6px; font-weight: 600; }
.field input {
  width: 100%; background: var(--card-2); border: 1px solid var(--line); color: #fff;
  padding: 12px 14px; border-radius: var(--r-sm); font: inherit; outline: none;
}
.field input:focus { border-color: var(--brand-2); }

/* payment methods */
.pm-group-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--tx-3); font-weight: 700; margin: 16px 0 8px; }
.pm-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pm {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card);
  cursor: pointer; transition: .15s; font-size: 14px; font-weight: 600;
}
.pm:hover { border-color: var(--line-2); background: var(--card-2); }
.pm.sel { border-color: var(--brand-2); background: rgba(0,212,255,.10); box-shadow: 0 0 0 1px var(--brand-2) inset; }
.pm .emoji { font-size: 20px; }
.pm .rate { margin-left: auto; font-size: 11px; color: var(--ok); font-weight: 700; }

/* order summary */
.osum { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; margin-bottom: 16px; }
.osum .row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; color: var(--tx-2); }
.osum .row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-size: 18px; font-weight: 800; color: #fff; }

/* success */
.success-check {
  width: 76px; height: 76px; border-radius: 999px; margin: 0 auto 16px;
  background: rgba(46,212,122,.15); border: 2px solid var(--ok); color: var(--ok);
  display: grid; place-items: center; font-size: 40px; animation: pop .3s ease;
}

/* =========================================================================
   ADMIN
   ========================================================================= */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 64px); }
.side {
  background: var(--bg-1); border-right: 1px solid var(--line); padding: 22px 14px;
  position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto;
}
.side .grp { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-3); margin: 16px 12px 8px; font-weight: 700; }
.side .nav-item {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 11px;
  font-size: 14.5px; font-weight: 600; color: var(--tx-2); cursor: pointer; transition: .15s; margin-bottom: 2px;
}
.side .nav-item:hover { background: var(--card-2); color: #fff; }
.side .nav-item.active { background: var(--brand-grad-soft); color: #fff; border: 1px solid var(--line); }
.side .nav-item .ic { font-size: 18px; }
.admin-main { padding: 28px 32px; overflow-x: hidden; }
.admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.admin-head h1 { font-size: 26px; }
.tabpane { display: none; animation: pop .25s ease; }
.tabpane.active { display: block; }

/* charts */
.chart-card { padding: 24px; }
.bars { display: flex; align-items: flex-end; gap: 14px; height: 200px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; justify-content: flex-end; height: 100%; }
.bar {
  width: 100%; max-width: 46px; border-radius: 8px 8px 4px 4px; background: var(--brand-grad);
  transition: height .6s cubic-bezier(.2,.8,.2,1); position: relative; min-height: 4px;
}
.bar-col .blbl { font-size: 12px; color: var(--tx-3); }
.bar-col .bval { font-size: 11px; color: var(--tx-2); font-weight: 700; }

/* region bars */
.rbar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 13.5px; }
.rbar-row .name { width: 110px; color: var(--tx-1); font-weight: 600; flex: none; }
.rbar-track { flex: 1; height: 10px; background: var(--card-2); border-radius: 999px; overflow: hidden; }
.rbar-fill { height: 100%; background: var(--brand-grad); border-radius: 999px; }
.rbar-row .val { width: 60px; text-align: right; color: var(--tx-2); font-variant-numeric: tabular-nums; }

/* toggle */
.toggle { width: 42px; height: 24px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); position: relative; cursor: pointer; transition: .2s; flex:none;}
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 999px; background: var(--tx-3); transition: .2s; }
.toggle.on { background: var(--brand-grad); border-color: transparent; }
.toggle.on::after { left: 20px; background: #fff; }

/* pm config grid */
.pm-config { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.pm-cfg {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card);
}
.pm-cfg .emoji { font-size: 22px; }
.pm-cfg .meta { flex: 1; }
.pm-cfg .meta b { color: #fff; font-size: 14px; display: block; }
.pm-cfg .meta small { color: var(--tx-3); font-size: 12px; }

.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 999px; margin-right: 6px; }
.sd-ok { background: var(--ok); } .sd-warn { background: var(--warn); } .sd-pend { background: var(--tx-3); }

/* badge inline */
.tag { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.tag-ok { background: rgba(46,212,122,.14); color: var(--ok); }
.tag-warn { background: rgba(255,176,32,.14); color: var(--warn); }
.tag-pend { background: var(--card-2); color: var(--tx-2); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .feat-grid, .pm-config { grid-template-columns: repeat(2,1fr); }
  .kpi { grid-template-columns: repeat(2,1fr); }
  .pack-grid { grid-template-columns: repeat(2,1fr); }
  .admin-shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; display: flex; flex-wrap: wrap; gap: 6px; }
  .side .grp { width: 100%; }
  .navlinks .lbl-full { display: none; }
}
@media (max-width: 600px) {
  .feat-grid, .kpi, .pack-grid, .pm-config, .pm-list { grid-template-columns: 1fr; }
  .selects { flex-wrap: wrap; }
  .section { padding: 56px 0; }
}
