/* ============================================================
   Bandar API KEY - tema premium navy/neon (T47 redesign)
   Kompatibel dgn seluruh class lama (order, admin, riwayat, dsb)
   ============================================================ */
:root {
  --navy-950: #040d20;
  --navy-900: #071a38;
  --navy-800: #0b2450;
  --navy-700: #10336e;
  --blue: #2563eb;
  --blue-2: #3b82f6;
  --blue-3: #60a5fa;
  --cyan: #38bdf8;
  --cyan-2: #7dd3fc;
  --violet: #a78bfa;
  --gold: #fbbf24;
  --gold-2: #f59e0b;
  --ink: #0e1b33;
  --muted: #5a6b87;
  --line: #d9e2f1;
  --card: #ffffff;
  --ok: #16a34a;
  --bad: #dc2626;
  --wait: #b45309;
  --wa: #25d366;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  line-height: 1.55;
  background:
    radial-gradient(1100px 480px at 110% -5%, rgba(59, 130, 246, .09), transparent 60%),
    radial-gradient(900px 420px at -10% 32%, rgba(56, 189, 248, .08), transparent 60%),
    linear-gradient(180deg, #eef4fd 0%, #f7faff 45%, #edf3fc 100%);
  min-height: 100vh;
}
body.popup-lock { overflow: hidden; }
.wrap { max-width: 780px; margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: 1100px; }
.wrap.narrow { max-width: 640px; }
h1 { font-size: 30px; margin: 10px 0 6px; letter-spacing: .3px; }
h2 { font-size: 19px; margin: 4px 0 10px; color: var(--navy-800); }
p { margin: 8px 0; }
a { color: var(--blue); }
code { font-family: 'Consolas', 'Menlo', monospace; }
.muted { color: var(--muted); font-size: 14px; }
.mt { margin-top: 22px; }
.nowrap { white-space: nowrap; }
.inline { display: inline-block; margin: 2px; }
.center { text-align: center; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(90deg, #04102b 0%, #0a2148 55%, #081a3c 100%);
  border-bottom: 1px solid rgba(125, 211, 252, .22);
  box-shadow: 0 6px 26px rgba(2, 8, 26, .45);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 11px; }
.logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff; font-weight: 800; font-size: 19px;
  box-shadow: 0 0 16px rgba(59, 130, 246, .55), inset 0 1px 3px rgba(255, 255, 255, .35);
}
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: .3px; font-style: italic; }
.brand-name em { color: var(--cyan-2); font-style: italic; }
.nav-actions { display: flex; gap: 8px; }
.topbar .btn.ghost {
  background: rgba(255, 255, 255, .08);
  border: 1.4px solid rgba(125, 211, 252, .5);
  color: #eaf3ff; border-radius: 999px; padding: 8px 16px; font-size: 13.5px;
}
.topbar .btn.ghost:hover { background: rgba(56, 189, 248, .18); filter: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  padding: 46px 0 34px;
  background:
    radial-gradient(880px 400px at 88% -12%, rgba(56, 189, 248, .20), transparent 62%),
    radial-gradient(720px 420px at 4% 112%, rgba(37, 99, 235, .40), transparent 64%),
    radial-gradient(420px 260px at 50% 118%, rgba(56, 189, 248, .16), transparent 70%),
    linear-gradient(155deg, #04102b 0%, #0a2148 55%, #0d2f66 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(148, 197, 255, .13) 1px, transparent 1.5px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 26%, #000 72%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 26%, #000 72%, transparent);
}
.hero::after {
  content: ""; position: absolute; left: -4%; right: -4%; bottom: -34px; height: 190px;
  pointer-events: none; opacity: .55;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201440%20320'%20preserveAspectRatio='none'%3E%3Cpath%20fill='%233b82f6'%20fill-opacity='.30'%20d='M0%2C170%20C240%2C260%20480%2C60%20720%2C150%20C960%2C230%201200%2C100%201440%2C190%20L1440%2C320%20L0%2C320%20Z'/%3E%3Cpath%20fill='%2338bdf8'%20fill-opacity='.18'%20d='M0%2C225%20C260%2C120%20520%2C300%20780%2C225%20C1040%2C150%201240%2C245%201440%2C205%20L1440%2C320%20L0%2C320%20Z'/%3E%3C/svg%3E") no-repeat bottom center / cover;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 700;
  color: #eaf6ff; border: 1.4px solid rgba(125, 211, 252, .55);
  background: rgba(10, 33, 72, .55);
  border-radius: 999px; padding: 8px 18px; margin-bottom: 10px;
  box-shadow: 0 0 20px rgba(56, 189, 248, .22);
}
.hero-badge svg { width: 15px; height: 15px; color: var(--cyan-2); }
.hero-title { font-size: 42px; margin: 8px 0 10px; letter-spacing: .5px; line-height: 1.12; }
.hero-title span { color: #fff; font-weight: 800; font-style: italic; }
.hero-title .grad {
  background: linear-gradient(92deg, #a5e6ff 0%, var(--cyan) 45%, #0ea5e9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 34px rgba(56, 189, 248, .35);
}
.hero-sub { color: #c3d7f5; max-width: 620px; margin: 0 auto 18px; font-size: 15px; }
.price-pill {
  display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center;
  background: rgba(7, 24, 55, .85);
  border: 1.6px solid #2f6fd8; border-radius: 999px;
  padding: 11px 24px; font-size: 17px; font-weight: 700; color: #fff;
  box-shadow: 0 0 30px rgba(47, 124, 246, .45), inset 0 0 18px rgba(47, 124, 246, .15);
}
.pp-item { display: inline-flex; align-items: center; gap: 8px; }
.pp-item b { font-size: 19px; }
.pp-dim { font-size: 13px; font-weight: 500; color: #b9cdef; }
.pp-sep { width: 1px; height: 22px; background: rgba(255, 255, 255, .3); }
.pp-coin { width: 22px; height: 22px; }
.pp-cart { width: 20px; height: 20px; color: var(--cyan-2); }

/* ---------- stats (di dalam hero) ---------- */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin: 26px 0 4px; }
.stats-row.four { grid-template-columns: repeat(4, 1fr); margin-top: 14px; }
.stat-card {
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: linear-gradient(165deg, rgba(16, 40, 86, .92), rgba(7, 22, 50, .92));
  border: 1px solid rgba(125, 211, 252, .30); border-radius: 16px;
  padding: 14px 15px;
  box-shadow: 0 12px 30px rgba(3, 10, 30, .38), inset 0 0 22px rgba(59, 130, 246, .08);
}
main .stat-card {
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .05); padding: 16px 10px;
  display: block; text-align: center;
}
main .stat-num { color: var(--blue); }
main .stat-label { color: var(--muted); }
.stat-num { font-size: 26px; font-weight: 800; color: #fff; line-height: 1.15; }
.stat-label { font-size: 12.5px; color: #9db8e8; margin-top: 2px; }
.stat-ic {
  width: 46px; height: 46px; min-width: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.stat-ic svg { width: 22px; height: 22px; }
.ic-cyan { background: linear-gradient(145deg, #38bdf8, #0369a1); box-shadow: 0 0 20px rgba(56, 189, 248, .55); }
.ic-violet { background: linear-gradient(145deg, #a78bfa, #6d28d9); box-shadow: 0 0 20px rgba(167, 139, 250, .5); }
.ic-gold { background: linear-gradient(145deg, #fbbf24, #b45309); box-shadow: 0 0 20px rgba(251, 191, 36, .5); }

/* ---------- card ---------- */
.card {
  background: var(--card); border: 1px solid #e3ebf7; border-radius: 20px;
  padding: 22px; margin: 18px 0;
  box-shadow: 0 14px 40px rgba(9, 30, 66, .10);
}
.card-title { display: flex; align-items: center; gap: 13px; margin-bottom: 12px; }
.card-title h2 { margin: 0; font-size: 21.5px; color: var(--navy-800); font-weight: 800; letter-spacing: .2px; }
.tile {
  width: 46px; height: 46px; min-width: 46px; border-radius: 13px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .35);
}
.tile svg { width: 23px; height: 23px; }

/* ---------- form ---------- */
label { display: block; font-size: 14px; font-weight: 700; margin: 12px 0 4px; color: var(--navy-800); }
.f-label { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 16px 0 6px; }
.f-label svg { width: 18px; height: 18px; color: var(--blue); min-width: 18px; }
input[type="text"], input[type="number"], input[type="password"], textarea, select {
  width: 100%; padding: 12px 14px; font-size: 15px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
  outline: none; transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--blue-2);
  box-shadow: 0 0 0 3.5px rgba(59, 130, 246, .16);
}
textarea { resize: vertical; font-family: 'Consolas', 'Menlo', monospace; font-size: 13.5px; }
select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%232563eb'%20stroke-width='2.4'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m6%209%206%206%206-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 16px;
  padding-right: 42px;
}
input[type="file"] { padding: 9px 12px; font-size: 13.5px; background: #f8fafc; }
.row-form { display: flex; gap: 8px; }
.row-form input { flex: 1; }
.total-line {
  background: #fffbeb; border: 1.6px dashed var(--gold); border-radius: 14px;
  padding: 14px 18px; margin: 18px 0 16px; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  color: var(--navy-800);
}
.total-line b, #totalBox { font-size: 24px; font-weight: 800; color: var(--blue); }
.form-msg { margin-top: 10px; font-size: 14px; min-height: 20px; }
.form-msg.err { color: var(--bad); font-weight: 600; }
.note { font-size: 13px; color: #33507e; background: #eff6ff; border: 1px solid #cfe0fb; border-radius: 12px; padding: 11px 14px; }
.file-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 10px; }
.chk { display: flex; align-items: flex-start; gap: 9px; font-weight: 600; font-size: 14px; cursor: pointer; margin: 10px 0; }
.chk input { width: auto; margin-top: 3px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: none; cursor: pointer; text-decoration: none;
  border-radius: 13px; padding: 12px 20px; font-size: 15px; font-weight: 800;
  font-family: inherit;
  transition: filter .15s, transform .05s, box-shadow .15s;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: linear-gradient(135deg, #3b82f6, #1e50d8); color: #fff;
  box-shadow: 0 10px 26px rgba(37, 99, 235, .40);
}
.btn.big { width: 100%; font-size: 16.5px; padding: 15px; border-radius: 14px; }
.btn.ghost { background: #fff; border: 1.5px solid var(--line); color: var(--ink); }
.btn.wa {
  background: linear-gradient(135deg, #2fe06f, #1eb85c); color: #fff;
  margin: 16px auto 0; padding: 11px 24px; border-radius: 12px;
  box-shadow: 0 10px 24px rgba(34, 197, 94, .35);
  display: inline-flex;
}
.btn.wa svg { width: 20px; height: 20px; }
.btn.danger { background: #fee2e2; color: var(--bad); border: 1.5px solid #fecaca; }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.btn:hover { filter: brightness(.96); }
.btn:disabled, .btn[disabled] { opacity: .55; cursor: not-allowed; filter: grayscale(.4); }

/* ---------- alerts & notices ---------- */
.alert { border-radius: 12px; padding: 12px 15px; margin: 10px 0; font-size: 14.5px; font-weight: 600; }
.alert.ok { background: #dcfce7; color: #14532d; border: 1px solid #bbf7d0; }
.alert.err { background: #fee2e2; color: #7f1d1d; border: 1px solid #fecaca; }
.notice.wait { border-left: 5px solid var(--wait); }
.notice.bad { border-left: 5px solid var(--bad); }
.notice.okbox { border-left: 5px solid var(--ok); }
.empty-note {
  background: #f8fafc; border: 1px dashed var(--line); border-radius: 14px;
  padding: 18px; color: var(--muted); text-align: center; font-weight: 600;
}
.empty-note.amber { background: #fffbeb; border-color: var(--gold); color: #7c4a03; }

/* pemberitahuan stok habis */
.stockout-card {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #fffef7 0%, #fff7df 70%, #fef3c7 100%);
  border: 1.6px solid var(--gold); border-radius: 20px;
  box-shadow: 0 16px 40px rgba(245, 158, 11, .18), inset 0 0 30px rgba(251, 191, 36, .10);
  text-align: center; padding: 26px 24px;
}
.stockout-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(340px 130px at 50% 0%, rgba(251, 191, 36, .18), transparent 70%);
}
.stockout-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #3d2c00;
  font-weight: 800; font-size: 12.5px; letter-spacing: 1.2px;
  padding: 7px 16px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(245, 158, 11, .40);
}
.stockout-badge svg { width: 14px; height: 14px; }
.stockout-title { font-size: 23px; color: #7c4a03; letter-spacing: .8px; margin: 13px 0 6px; font-weight: 800; }
.stockout-text { color: #6b4a10; font-size: 15.5px; max-width: 560px; margin: 0 auto; }

/* ---------- badge ---------- */
.badge { display: inline-block; border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 700; }
.st-menunggu_pembayaran { background: #fef3c7; color: #92400e; }
.st-menunggu_konfirmasi { background: #dbeafe; color: #1e40af; }
.st-berhasil, .st-ok { background: #dcfce7; color: #14532d; }
.st-ditolak, .st-off { background: #fee2e2; color: #7f1d1d; }

/* ---------- order page ---------- */
.order-code { font-size: 15px; margin-bottom: 8px; }
.order-head .badge { margin-bottom: 6px; }
.kv { width: 100%; border-collapse: collapse; margin: 10px 0 4px; font-size: 14.5px; }
.kv th { text-align: left; color: var(--muted); font-weight: 600; width: 130px; padding: 6px 0; vertical-align: top; }
.kv td { padding: 6px 0; }
.timeline { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tl { font-size: 12.5px; background: #f1f5f9; color: var(--muted); border-radius: 999px; padding: 5px 12px; font-weight: 600; }
.tl.done { background: #dcfce7; color: #14532d; }
.qris-box { text-align: center; margin: 12px 0; }
.qris-img { max-width: 340px; width: 100%; border: 1px solid var(--line); border-radius: 14px; }
.amount-copy { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 16px; }

/* ---------- keys ---------- */
.success-card { border: 1.5px solid #bbf7d0; }
.success-banner {
  background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff;
  border-radius: 13px; text-align: center; font-weight: 800; font-size: 20px;
  padding: 14px; letter-spacing: 1px; margin-bottom: 12px;
}
.keys-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 16px; }
.key-row {
  display: flex; align-items: center; gap: 10px;
  background: #f8fafc; border: 1px solid var(--line); border-radius: 11px; padding: 9px 12px;
}
.key-row .key-text { flex: 1; word-break: break-all; font-size: 13.5px; }
.key-row .key-text.sold { color: var(--muted); }
.key-idx {
  background: var(--blue); color: #fff; min-width: 26px; height: 26px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700;
}

/* ---------- riwayat ---------- */
.hist-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px; margin: 10px 0;
}
.hist-side { display: flex; align-items: center; gap: 8px; }

/* ---------- admin ---------- */
.admin-top { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 6px; gap: 10px; flex-wrap: wrap; }
.admin-title { font-size: 24px; margin: 0; color: var(--navy-800); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.table-scroll { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; background: #f1f5f9; padding: 9px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; color: var(--navy-800); }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.stock-list { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; }
.steps-list { list-style: none; counter-reset: st; padding: 0; margin: 10px 0; }
.steps-list li { counter-increment: st; position: relative; padding-left: 40px; margin: 11px 0; font-size: 15px; color: #1c2f55; }
.steps-list li::before {
  content: counter(st); position: absolute; left: 0; top: -2px;
  width: 27px; height: 27px; border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff;
  font-weight: 800; font-size: 13.5px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 5px 12px rgba(37, 99, 235, .35);
}
.steps-list li b { color: var(--navy-800); }
.login-card { max-width: 380px; margin: 40px auto; }

/* mini preview notifikasi di admin */
.mini-stockout {
  background: linear-gradient(160deg, #fffef7, #fef3c7); border: 1.5px solid var(--gold);
  border-radius: 14px; padding: 16px; text-align: center; margin-top: 12px;
}
.mini-stockout .stockout-title { font-size: 17px; margin: 9px 0 4px; }
.mini-stockout .stockout-text { font-size: 12.5px; }

/* ---------- footer ---------- */
.footer {
  margin-top: 44px; padding: 26px 0 34px; color: #41537a; font-size: 13.5px;
  text-align: center; border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #f2f7ff, #e7eefb);
}
.contact-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- popup keunggulan ---------- */
.popup-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(3, 10, 26, .68);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.popup-overlay[hidden] { display: none !important; }
.popup-card {
  position: relative; width: min(94vw, 620px); max-height: 92vh; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  color: #eaf3ff; padding: 22px 22px 20px;
  border-radius: 22px; border: 1.5px solid rgba(125, 211, 252, .5);
  background:
    radial-gradient(520px 260px at 88% 0%, rgba(56, 189, 248, .17), transparent 55%),
    radial-gradient(440px 280px at 0% 100%, rgba(37, 99, 235, .24), transparent 55%),
    linear-gradient(165deg, #0a1f45 0%, #071633 60%, #050f26 100%);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, .15), 0 30px 80px rgba(2, 8, 26, .6), 0 0 60px rgba(56, 189, 248, .16);
}
.popup-x {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .35);
  color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.popup-x svg { width: 15px; height: 15px; }
.popup-x:hover { background: rgba(255, 255, 255, .22); }
.popup-head { text-align: center; margin-bottom: 16px; }
.popup-head-inner {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1.4px solid rgba(125, 211, 252, .45); border-radius: 999px;
  background: rgba(10, 30, 66, .65); padding: 9px 18px;
  box-shadow: 0 0 18px rgba(56, 189, 248, .18);
}
.popup-head-inner h2 {
  margin: 0; font-size: 15px; letter-spacing: .7px; color: #fff;
  font-weight: 700; text-transform: uppercase;
}
.popup-head-inner h2 b { color: var(--gold); }
.popup-mega { width: 19px; height: 19px; color: var(--gold); min-width: 19px; }
.popup-grid { display: grid; grid-template-columns: 168px 1fr; gap: 16px; align-items: center; }
.popup-key { text-align: center; }
.key3d {
  width: 142px; height: 142px; margin: 6px auto 10px; border-radius: 26px;
  background: linear-gradient(145deg, #2f7cf6 0%, #164697 65%, #0b2a6e 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  transform: rotate(-8deg);
  box-shadow:
    0 0 36px rgba(56, 189, 248, .55),
    0 18px 42px rgba(2, 10, 30, .6),
    inset 0 2px 6px rgba(255, 255, 255, .4),
    inset 0 -9px 18px rgba(0, 0, 0, .35);
  animation: floaty 3.4s ease-in-out infinite;
}
.key3d svg { width: 52px; height: 52px; color: #fff; filter: drop-shadow(0 0 10px rgba(125, 211, 252, .8)); }
.key3d span { font-size: 11.5px; font-weight: 800; letter-spacing: .8px; color: #eaf6ff; }
@keyframes floaty {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(-8deg) translateY(-9px); }
}
.pop-eq { font-size: 19.5px; font-weight: 800; color: #fff; letter-spacing: .3px; }
.pop-eq b { color: var(--gold); }
.pop-total {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #fde68a, #f59e0b); color: #3a2503;
  font-weight: 800; font-size: 13.5px; padding: 8px 15px; border-radius: 11px;
  margin: 11px 0; box-shadow: 0 6px 18px rgba(245, 158, 11, .38);
}
.pop-total svg { width: 16px; height: 16px; }
.pop-list {
  list-style: none; margin: 10px 0 0; padding: 12px 15px;
  background: rgba(9, 26, 58, .65); border: 1px solid rgba(125, 211, 252, .32); border-radius: 13px;
}
.pop-list li { display: flex; gap: 9px; font-size: 13.5px; color: #d7e6ff; margin: 7px 0; align-items: flex-start; }
.pop-list svg { width: 15px; height: 15px; color: var(--cyan-2); min-width: 15px; margin-top: 2px; }
.pop-warning {
  display: flex; gap: 11px; align-items: flex-start;
  border: 1.4px solid rgba(251, 191, 36, .65); background: rgba(251, 191, 36, .09);
  border-radius: 13px; padding: 11px 14px; font-size: 13px; color: #ffe9b8; margin-top: 15px;
}
.pop-warning svg { width: 19px; height: 19px; min-width: 19px; color: var(--gold); margin-top: 1px; }
.pop-warning b { color: var(--gold); }
.pop-divider { display: flex; align-items: center; gap: 12px; margin: 17px 0 13px; }
.pop-divider::before, .pop-divider::after { content: ""; flex: 1; height: 1px; background: rgba(125, 211, 252, .32); }
.pop-divider span {
  background: rgba(10, 30, 66, .75); border: 1px solid rgba(125, 211, 252, .4);
  padding: 6px 16px; border-radius: 999px; color: #eaf3ff; font-size: 12.5px; font-weight: 700;
  white-space: nowrap;
}
.pop-logos { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.pop-logos img {
  width: 92px; height: 92px; border-radius: 50%; object-fit: cover; background: #000;
  border: 2px solid rgba(251, 191, 36, .55);
  box-shadow: 0 10px 26px rgba(2, 10, 30, .55);
}
.pop-support { display: flex; gap: 9px; font-size: 13.5px; color: #d7e6ff; margin: 15px 2px 2px; align-items: flex-start; }
.pop-support svg { width: 16px; height: 16px; color: var(--cyan-2); min-width: 16px; margin-top: 2px; }
.pop-support b { color: var(--gold); }
.pop-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 17px; }
.pop-btn {
  border: none; cursor: pointer; border-radius: 12px; padding: 13px 24px;
  font-weight: 800; font-size: 14.5px; letter-spacing: .4px; font-family: inherit;
  display: inline-flex; align-items: center; gap: 9px;
}
.pop-btn svg { width: 17px; height: 17px; }
.pop-btn.buy { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; box-shadow: 0 10px 26px rgba(37, 99, 235, .5); }
.pop-btn.close2 { background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .35); color: #fff; }
.pop-btn:hover { filter: brightness(1.08); }
.float-info {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #3a2503;
  font-weight: 900; font-size: 19px; font-family: Georgia, serif; font-style: italic;
  box-shadow: 0 10px 26px rgba(245, 158, 11, .45);
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .stats-row, .stats-row.four { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
  .stat-card { flex-direction: column; text-align: center; gap: 7px; padding: 12px 6px; }
  .stat-num { font-size: 21px; }
  .stat-label { font-size: 11px; }
  .stat-ic { width: 38px; height: 38px; min-width: 38px; }
  .stat-ic svg { width: 18px; height: 18px; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 34px 0 26px; }
  .hero-title { font-size: 30px; }
  .hero-sub { font-size: 14px; }
  h1 { font-size: 24px; }
  .card { padding: 17px 15px; }
  .price-pill { padding: 10px 16px; gap: 9px; font-size: 15px; }
  .pp-item b { font-size: 16px; }
  .pp-sep { height: 18px; }
  .hist-row { flex-direction: column; align-items: flex-start; }
  .total-line b, #totalBox { font-size: 21px; }
}
@media (max-width: 560px) {
  .popup-grid { grid-template-columns: 1fr; justify-items: center; }
  .popup-info { text-align: left; }
  .key3d { width: 112px; height: 112px; border-radius: 22px; }
  .key3d svg { width: 40px; height: 40px; }
  .pop-eq { font-size: 17px; }
  .pop-logos img { width: 72px; height: 72px; }
  .popup-card { padding: 18px 14px 16px; }
  .pop-btn { padding: 12px 18px; font-size: 13.5px; }
  .pop-actions { flex-direction: column; align-items: stretch; }
}
