:root {
  --sea-0: #070a18;
  --sea-1: #0e1330;
  --sea-2: #18204a;
  --line: #2a3263;
  --gold: #f5b83d;
  --gold-2: #ffe08a;
  --gold-3: #c9831a;
  --ember: #ff7a45;
  --violet: #6d4bff;
  --teal: #19c3b4;
  --text: #f1f0fa;
  --muted: #a0a6c8;
  --gold-grad: linear-gradient(180deg, #fff1bf 0%, #ffd56b 35%, #f5b83d 65%, #c9831a 100%);
  --ok: #3ddc97;
  --warn: #f4b942;
  --bad: #ff5d6c;
  --info: #5cb8ff;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Outfit', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 50% -120px, #f5b83d38, transparent 65%),
    radial-gradient(800px 600px at 105% 25%, #6d4bff2e, transparent 60%),
    radial-gradient(700px 600px at -10% 70%, #19c3b41f, transparent 60%),
    radial-gradient(900px 500px at 50% 110%, #ff7a451c, transparent 60%),
    linear-gradient(180deg, #0b1028 0%, var(--sea-0) 45%, #0a0b1d 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.5;
}
a { color: var(--gold-2); }
h1, h2, h3, .brand { font-family: 'Bungee', 'Outfit', sans-serif; letter-spacing: .3px; font-weight: 400; }
.brand, .section-title, .hero h1, .cart-head h2, .receipt h1, .drawer h3 {
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px #ffe08a55, 0 4px 14px #f5b83d55; }
.hero-logo { width: 128px; height: 128px; border-radius: 30px; display: block; margin: 0 auto 22px; box-shadow: 0 0 0 1px #ffe08a66, 0 18px 60px #f5b83d66, 0 0 120px #f5b83d33; animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px) saturate(140%); background: #090c20b8; border-bottom: 1px solid #f5b83d26; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; color: var(--gold); text-decoration: none; }
.brand img { -webkit-text-fill-color: initial; }
.nav-links { display: flex; gap: 18px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 14px; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 640px) { .nav-links a.hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 10px; padding: 12px 20px; cursor: pointer;
  font: 600 15px 'Outfit', sans-serif; text-decoration: none; transition: transform .1s, filter .15s;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(180deg, #ffe08a 0%, #f5b83d 55%, #e39a22 100%); color: #2b1600; box-shadow: inset 0 1px 0 #fff6d0, 0 8px 28px #f5b83d40; }
.btn-gold:hover { filter: brightness(1.07) saturate(1.1); }
.btn-ghost { background: #ffffff08; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--gold); background: #f5b83d12; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn-danger { background: #ff5d6c22; color: var(--bad); border: 1px solid #ff5d6c55; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* Hero */
.hero { padding: 56px 0 32px; text-align: center; }
.hero .badge { display: inline-block; padding: 6px 14px; border: 1px solid #f5b83d40; background: #f5b83d10; border-radius: 99px; color: var(--gold-2); font-size: 13px; }
.hero h1 { font-size: clamp(32px, 6vw, 62px); line-height: 1.05; margin: 18px 0 12px; filter: drop-shadow(0 6px 30px #f5b83d40); }
.hero p { color: var(--muted); max-width: 620px; margin: 0 auto 28px; font-size: 18px; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

section { padding: 48px 0; }
.section-title { text-align: center; font-size: 34px; margin: 0 0 8px; }
.section-sub { text-align: center; color: var(--muted); margin: 0 0 32px; }

/* Packs */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .packs { grid-template-columns: repeat(2, 1fr); } }

.pack {
  position: relative;
  background:
    radial-gradient(260px 160px at 50% 0%, #f5b83d1f, transparent 70%),
    linear-gradient(180deg, #1a2252 0%, #11173a 60%, #0d1230 100%);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 20px 20px; text-align: center;
  box-shadow: inset 0 1px 0 #ffffff12, 0 10px 30px #00000040;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.pack:hover { transform: translateY(-4px); border-color: #f5b83d99; box-shadow: inset 0 1px 0 #ffffff14, 0 16px 40px #f5b83d22; }
.pack.featured { border-color: #f5b83daa; box-shadow: inset 0 1px 0 #ffffff14, 0 12px 44px #f5b83d2a; }
.pack.selected { border-color: var(--gold-2); box-shadow: 0 0 0 2px #f5b83d66, 0 16px 48px #f5b83d40; }
.pack .tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: linear-gradient(90deg, var(--ember), #ff4f7b); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 99px; white-space: nowrap; box-shadow: 0 4px 14px #ff7a4555; }
.pack h3 { font-size: 22px; margin: 4px 0 10px; }
.coin { width: 76px; height: 76px; margin: 4px auto 10px; display: block; border-radius: 18px; box-shadow: 0 8px 26px #f5b83d40; transition: transform .2s; }
.pack:hover .coin { transform: rotate(-6deg) scale(1.05); }
.coin.reward { object-fit: contain; border-radius: 0; box-shadow: none; filter: drop-shadow(0 8px 18px #f5b83d55); }
.pack .tokens { font-family: 'Bungee', sans-serif; font-size: 34px; font-weight: 400; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pack .tokens small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }
.pack .price { font-size: 24px; font-weight: 700; margin: 14px 0 4px; }
.pack .eta { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.pack .btn { width: 100%; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step { background: var(--sea-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #f4b94222; color: var(--gold); font-weight: 800; margin-bottom: 10px; }
.step h4 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--sea-1); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 10px 0 0; }

/* Cards / forms */
.card { background: var(--sea-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; font-weight: 500; }
input, select, textarea {
  width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--sea-0); color: var(--text); font: 15px 'Outfit', sans-serif;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
textarea { resize: vertical; min-height: 70px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
.error { color: var(--bad); font-size: 14px; min-height: 20px; margin-top: 10px; }
.hint { color: var(--muted); font-size: 12px; margin-top: 6px; }


/* Modal */
.modal { position: fixed; inset: 0; background: #000a; display: none; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal.open { display: flex; }
.modal .card { width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto; position: relative; }
.modal .close { position: absolute; top: 12px; right: 12px; background: none; border: 0; color: var(--muted); font-size: 22px; cursor: pointer; }
.summary { display: flex; justify-content: space-between; align-items: center; background: var(--sea-0); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.summary b { color: var(--gold-2); }

/* Status pills */
.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.paid, .pill.delivered { background: #3ddc9722; color: var(--ok); }
.pill.pending, .pill.queued { background: #f4b94222; color: var(--warn); }
.pill.in_progress { background: #5cb8ff22; color: var(--info); }
.pill.failed, .pill.expired, .pill.cancelled { background: #ff5d6c22; color: var(--bad); }
.pill.refunded { background: #b48cff22; color: #c7a8ff; }
.pill.none { background: #94a3c422; color: var(--muted); }

.banner { padding: 12px 16px; border-radius: 10px; margin: 16px 0; font-size: 14px; }
.banner.warn { background: #f4b94218; border: 1px solid #f4b94255; color: var(--gold-2); }
.banner.info { background: #5cb8ff18; border: 1px solid #5cb8ff55; color: #a9d8ff; }

footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 13px; text-align: center; margin-top: 40px; }

/* Success page */
.center-page { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 32px 16px; }
.receipt { max-width: 520px; width: 100%; text-align: center; }
.receipt h1 { font-size: 34px; color: var(--gold); margin: 8px 0; }
.kv { text-align: left; margin: 20px 0; border-top: 1px solid var(--line); }
.kv div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); gap: 12px; }
.kv span { color: var(--muted); }
.spinner { width: 42px; height: 42px; border: 4px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Cart button + drawer */
.cart-btn { position: relative; }
.cart-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--ember); color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.cart-count:empty { display: none; }
.overlay { position: fixed; inset: 0; background: #0009; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.overlay.open { opacity: 1; pointer-events: auto; }
.cart { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--sea-1); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .22s; z-index: 50; display: flex; flex-direction: column; }
.cart.open { transform: none; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 18px 0; }
.cart-head h2 { margin: 0; font-size: 22px; color: var(--gold); }
.tabs { display: flex; gap: 6px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.tab { flex: 1; background: var(--sea-0); border: 1px solid var(--line); color: var(--muted); border-radius: 10px; padding: 9px; font: 600 14px 'Outfit', sans-serif; cursor: pointer; }
.tab.active { border-color: var(--gold); color: var(--gold-2); }
.cart-body { flex: 1; overflow-y: auto; padding: 16px 18px; }
.cart-foot { border-top: 1px solid var(--line); padding: 16px 18px; }
.cart-total { display: flex; justify-content: space-between; font-size: 18px; margin-bottom: 12px; }
.cart-total b { color: var(--gold-2); }
.line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line .info { flex: 1; min-width: 0; }
.line .info b { display: block; }
.line .info span { color: var(--muted); font-size: 13px; }
.remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 18px; }
.remove:hover { color: var(--bad); }
.empty-state { text-align: center; color: var(--muted); padding: 40px 0; }
.purchase { background: var(--sea-0); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.purchase-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.purchase .items { color: var(--muted); font-size: 13px; margin: 8px 0; }
.id-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; padding: 6px 0; border-top: 1px dashed var(--line); }
.id-row span { color: var(--muted); }
.id-row code { font-family: ui-monospace, Consolas, monospace; color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.copy { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 6px; padding: 2px 8px; font-size: 12px; cursor: pointer; flex-shrink: 0; }
.copy:hover { color: var(--gold-2); border-color: var(--gold); }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { filter: brightness(1.1); }
.btn-discord svg { width: 20px; height: 20px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--sea-2); border: 1px solid var(--gold); color: var(--text); padding: 10px 18px; border-radius: 10px; opacity: 0; transition: .2s; z-index: 60; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%); }
.line-logo { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 4px 14px #f5b83d40; }
.step { background: linear-gradient(180deg, #151c44, #0e1330); }
.step .n { background: var(--gold-grad); color: #2b1600; }
.cart { background: linear-gradient(180deg, #121940, #0b1029); }

/* Sticky cart bar (phones only) */
.mobile-bar { display: none; }

/* ---------- Phones & small tablets ---------- */
@media (max-width: 640px) {
  .nav .wrap { height: 58px; }
  .brand { font-size: 17px; gap: 8px; }
  .logo { width: 30px; height: 30px; }
  .hero { padding: 32px 0 16px; }
  .hero-logo { width: 92px; height: 92px; border-radius: 22px; margin-bottom: 16px; }
  .hero h1 { font-size: clamp(28px, 9vw, 40px); }
  .hero p { font-size: 16px; margin-bottom: 22px; }
  .hero .cta .btn { flex: 1 1 140px; }
  section { padding: 32px 0; }
  .section-title { font-size: 26px; }
  .section-sub { margin-bottom: 20px; font-size: 14px; }
  .btn { min-height: 44px; }
  .btn-sm { min-height: 36px; }

  .packs { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pack { padding: 20px 10px 12px; }
  .pack:hover { transform: none; }
  .coin { width: 54px; height: 54px; border-radius: 13px; margin-bottom: 6px; }
  .pack .tokens { font-size: 26px; }
  .pack .tokens small { font-size: 11px; }
  .pack .price { font-size: 19px; margin: 8px 0 2px; }
  .pack .eta { font-size: 12px; margin-bottom: 10px; }
  .pack .btn { padding: 10px 8px; font-size: 14px; }
  .pack .tag { font-size: 11px; padding: 2px 10px; }

  .steps { grid-template-columns: 1fr 1fr; gap: 10px; }
  .step { padding: 14px; }
  .step h4 { font-size: 15px; }
  .step p { font-size: 13px; }
  .faq details { padding: 14px; }

  .cart { width: 100%; border-left: 0; }
  .cart-body, .cart-foot { padding-left: 16px; padding-right: 16px; }
  .cart-foot { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .id-row { flex-wrap: wrap; }
  .id-row code { flex: 1 1 100%; order: 2; word-break: break-all; white-space: normal; }
  .id-row .copy { order: 1; margin-left: auto; }

  .kv div { flex-wrap: wrap; }
  .kv b, .kv .mono { word-break: break-all; }
  .center-page { padding: 20px 16px; align-items: start; }

  .mobile-bar.show {
    display: flex; align-items: center; gap: 12px; position: fixed; left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; padding: 10px 10px 10px 16px;
    background: #121940f2; border: 1px solid #f5b83d66; border-radius: 14px;
    box-shadow: 0 12px 40px #000a, 0 0 30px #f5b83d22; backdrop-filter: blur(10px);
  }
  .mobile-bar .info { flex: 1; min-width: 0; font-size: 14px; }
  .mobile-bar .info b { display: block; color: var(--gold-2); }
  .mobile-bar .info span { color: var(--muted); font-size: 12px; }
  body.has-bar footer { padding-bottom: 96px; }
  .toast { bottom: 90px; max-width: calc(100% - 32px); text-align: center; }
}

@media (max-width: 360px) {
  .packs { gap: 8px; }
  .pack .tokens { font-size: 22px; }
  .steps { grid-template-columns: 1fr; }
}

/* "Open a Discord ticket" note after purchase */
.note { display: block; text-align: left; background: #5865f21f; border: 1px solid #5865f266; border-left: 4px solid #5865f2; border-radius: 10px; padding: 12px 14px; margin: 12px 0; font-size: 14px; }
.note b { display: block; color: #c9cdff; margin-bottom: 4px; }
.note span { color: var(--muted); }
.note code { font-family: ui-monospace, Consolas, monospace; color: var(--gold-2); background: #0006; padding: 1px 6px; border-radius: 5px; white-space: nowrap; }

/* Language picker */
.lang-select {
  width: auto; padding: 6px 28px 6px 10px; border-radius: 8px; font: 600 13px 'Outfit', sans-serif; cursor: pointer;
  background: #ffffff08 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a0a6c8' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none; -webkit-appearance: none; border: 1px solid var(--line); color: var(--text); min-height: 34px;
}
.lang-select:hover, .lang-select:focus { border-color: var(--gold); }
.lang-select option { background: var(--sea-1); color: var(--text); }
@media (max-width: 640px) { .nav-links { gap: 8px; } .lang-select { min-height: 36px; padding-left: 8px; } .brand { white-space: nowrap; font-size: 15px; } }

/* Boost progress in My purchases */
.boost-progress { padding: 6px 0 2px; font-size: 13px; color: var(--muted); }
.boost-progress .progress { height: 6px; background: var(--line); border-radius: 99px; margin-top: 6px; overflow: hidden; }
.boost-progress .progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--ok)); }

/* VIP promo + cart line */
.vip-promo:empty { display: none; }
.vip-promo { display: flex; align-items: center; gap: 18px; padding: 18px 20px; margin-top: 8px; border-radius: 18px;
  background: radial-gradient(400px 160px at 0% 50%, #f5b83d33, transparent 70%), linear-gradient(135deg, #2a1f4a, #141a40);
  border: 1px solid #f5b83d88; box-shadow: 0 12px 40px #f5b83d22; }
.vip-promo.on { border-color: var(--gold-2); box-shadow: 0 0 0 2px #f5b83d66, 0 12px 40px #f5b83d33; }
.vip-avatar { width: 88px; height: 88px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 3px #f5b83d, 0 8px 30px #f5b83d66; }
.vip-copy { flex: 1; min-width: 0; }
.vip-copy h3 { margin: 4px 0; font-size: 20px; line-height: 1.2; }
.vip-copy p { margin: 0; color: var(--muted); }
.vip-tag, .vip-chip { display: inline-block; background: var(--gold-grad); color: #2b1600; font-weight: 800; font-size: 12px; padding: 2px 10px; border-radius: 99px; }
.vip-chip { font-size: 11px; padding: 1px 8px; vertical-align: middle; }
.btn-vip { background: #f5b83d1f; color: var(--gold-2); border: 1px solid #f5b83d88; }
.btn-vip:hover { background: #f5b83d33; }
.vip-line .line-logo { border-radius: 50%; }
.vip-line.on { background: #f5b83d12; border-radius: 10px; }
@media (max-width: 640px) {
  .vip-promo { flex-wrap: wrap; text-align: center; justify-content: center; padding: 16px; }
  .vip-promo .btn { width: 100%; }
  .vip-copy h3 { font-size: 17px; }
}
