:root {
  --bg: #11122B;
  --panel: #1E1F4A;
  --panel-2: #2A2A5C;
  --shadow: #0A0B1F;
  --text: #FFFFFF;
  --muted: #C9CCF2;
  --faint: #8F92C6;
  --gold: #FFD24A;
  --gold-d: #C98F12;
  --orange: #FF6B3D;
  --orange-d: #B23E17;
  --display: "Lilita One", system-ui, sans-serif;
  --body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 700 16px/1.5 var(--body);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--gold); }
a:hover { color: #FFE48F; }
img { display: block; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
[hidden] { display: none !important; }

/* ── Sky band ─────────────────────────────────────────────────── */
.sky {
  position: absolute; inset: 0 0 auto 0; height: 440px; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, #2E8CE0 0%, #4FA8EB 45%, var(--bg) 100%);
}
.cloud { position: absolute; border-radius: 999px; background: #fff; opacity: .5; }
.c1 { left: 7%; top: 90px; width: 200px; height: 58px; }
.c2 { left: 11%; top: 64px; width: 100px; height: 76px; }
.c3 { right: 6%; top: 130px; width: 240px; height: 62px; }
.c4 { right: 11%; top: 100px; width: 120px; height: 84px; }

.wrap { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; padding: 0 20px 60px; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 12px;
  font: 900 16px var(--body); color: #fff; text-decoration: none; cursor: pointer;
  transition: transform .08s, box-shadow .08s, filter .15s;
}
.btn:hover { filter: brightness(1.08); color: inherit; }
.btn:active { transform: translateY(3px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn:focus-visible, .side-btn:focus-visible, .nav-link:focus-visible, .ip-btn:focus-visible, .user-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.btn-orange { background: var(--orange); box-shadow: 0 5px 0 var(--orange-d); color: #fff; }
.btn-indigo { background: #3A3B7A; box-shadow: 0 5px 0 #222350; color: #fff; }
.btn-green  { background: #5BD46E; box-shadow: 0 5px 0 #2E9440; color: #0E3D17; }
.btn-cyan   { background: #3FC8F5; box-shadow: 0 4px 0 #1A86B0; color: #08384D; min-height: 46px; padding: 0 16px; }
.btn-block  { width: 100%; min-height: 56px; font-size: 19px; }

/* ── Top bar ──────────────────────────────────────────────────── */
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.logo { margin-right: 8px; }
.logo img { width: 54px; height: 54px; object-fit: contain; }
.nav-link {
  min-height: 40px; padding: 0 14px; border-radius: 10px; display: flex; align-items: center;
  color: #fff; text-decoration: none; font-weight: 900; font-size: 14px; letter-spacing: .04em;
}
.nav-link:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-link.active { background: var(--orange); box-shadow: 0 3px 0 var(--orange-d); }
.top-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.user-btn, .ip-btn {
  min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px; cursor: pointer;
  display: flex; align-items: center; gap: 8px; font: 900 13px var(--body); letter-spacing: .04em;
}
.user-btn { background: #3A3B7A; box-shadow: 0 3px 0 #222350; color: #fff; }
.ip-btn { background: var(--gold); box-shadow: 0 3px 0 var(--gold-d); color: #3A2400; }
.online { display: flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; background: #3A2400; color: #8CF0A0; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #5BE07C; }

/* ── Floating side buttons ────────────────────────────────────── */
.side-buttons { position: fixed; right: 16px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; z-index: 20; }
.side-btn {
  position: relative; width: 46px; height: 46px; border-radius: 12px; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.side-btn svg { width: 22px; height: 22px; }
.side-btn.discord { background: #5865F2; box-shadow: 0 4px 0 #3A45B8; }
.side-btn.basket  { background: var(--orange); box-shadow: 0 4px 0 var(--orange-d); }
.side-btn.help    { background: var(--gold); box-shadow: 0 4px 0 var(--gold-d); color: #3A2400; }
.badge-count {
  position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: #5BD46E; color: #0E3D17; font-size: 12px; font-weight: 900; display: flex; align-items: center; justify-content: center;
}

/* ── Banner ───────────────────────────────────────────────────── */
.banner {
  margin-top: 12px; background: var(--panel); border: 3px solid var(--gold); border-radius: 22px;
  box-shadow: 0 8px 0 var(--shadow); padding: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px;
}
.banner-text { flex: 999 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.banner h1 { margin: 0; font: 400 clamp(34px, 5vw, 46px)/1.05 var(--display); }
.banner p { margin: 0; color: var(--muted); }
.banner strong { color: #fff; font-weight: 900; }
.gold { color: var(--gold); }
.perks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.perks li { width: 78px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12px; color: #E3E5FF; }
.perk-ico { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; }
.perk-ico svg { width: 22px; height: 22px; }
.perk-ico.purple { background: #B57BFF; box-shadow: 0 3px 0 #7240C0; }
.perk-ico.yellow { background: var(--gold); box-shadow: 0 3px 0 var(--gold-d); color: #5C3D00; }
.perk-ico.pink   { background: #FF6FB5; box-shadow: 0 3px 0 #C03C7E; }
.perk-ico.cyan   { background: #3FC8F5; box-shadow: 0 3px 0 #1A86B0; }
.perk-ico.green  { background: #5BD46E; box-shadow: 0 3px 0 #2E9440; }
.banner-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.banner-art { flex: 1 1 240px; display: flex; justify-content: center; }
.logo-ring {
  width: 250px; height: 250px; border-radius: 50%; background: #2E8CE0;
  box-shadow: 0 0 0 10px #24256A, 0 0 0 20px var(--panel);
  display: flex; align-items: center; justify-content: center;
}
.logo-ring img { width: 256px; height: 256px; object-fit: contain; transform: scale(1.1); }

/* ── Packages ─────────────────────────────────────────────────── */
#credits { margin-top: 36px; }
.status { text-align: center; color: var(--muted); padding: 12px; }
.status.demo { background: #3A2400; color: var(--gold); border-radius: 12px; margin-bottom: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }

.card {
  --c: #1F6FD1; --c-d: #12458A; --c-ink: #fff;
  position: relative; background: var(--panel); border-radius: 20px;
  box-shadow: 0 6px 0 var(--shadow); padding: 18px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  transition: transform .15s;
}
.card:hover { transform: translateY(-4px); }
.card .art {
  width: 100%; height: 160px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 60%, #1B2A5E 0%, #12133A 75%);
  box-shadow: inset 0 0 0 3px var(--c);
}
.card .art img { width: 150px; height: 150px; object-fit: contain; transition: transform .2s; }
.card:hover .art img { transform: scale(1.06) rotate(-2deg); }
.card .info { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.card h3 { margin: 0; font: 400 26px/1.15 var(--display); }
.bonus { padding: 3px 10px; border-radius: 6px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 900; }
.base { color: var(--faint); font-size: 13px; text-decoration: line-through; }
.subtitle { color: #FFC4E2; font-size: 14px; }
.btn-buy {
  margin-top: auto; align-self: stretch; min-height: 46px;
  background: var(--c); box-shadow: 0 4px 0 var(--c-d); color: var(--c-ink);
}
.btn-buy.busy { opacity: .7; cursor: progress; }
.corner-badge {
  position: absolute; top: -12px; right: -8px; z-index: 1; padding: 5px 10px; border-radius: 8px;
  background: var(--c); box-shadow: 0 3px 0 var(--c-d); color: var(--c-ink);
  font-size: 12px; font-weight: 900; letter-spacing: .06em;
}
.card:has(.corner-badge) { box-shadow: 0 6px 0 var(--shadow), 0 0 0 3px var(--c); }

.c-green  { --c: #5BD46E; --c-d: #2E9440; --c-ink: #0E3D17; }
.c-blue   { --c: #3FA9F5; --c-d: #1A6EB0; --c-ink: #06294D; }
.c-purple { --c: #B57BFF; --c-d: #7240C0; --c-ink: #2A0B57; }
.c-orange { --c: #FF6B3D; --c-d: #B23E17; --c-ink: #fff; }
.c-teal   { --c: #4FE0D6; --c-d: #1A9A92; --c-ink: #063B38; }
.c-gold   { --c: #FFD24A; --c-d: #C98F12; --c-ink: #3A2400; }
.c-pink   { --c: #FF6FB5; --c-d: #C03C7E; --c-ink: #fff; }

.card.featured { margin-top: 26px; flex-direction: row; flex-wrap: wrap; padding: 22px; gap: 22px; box-shadow: 0 6px 0 var(--shadow), 0 0 0 3px var(--c); }
.card.featured .art { flex: 1 1 300px; width: auto; height: 190px; }
.card.featured .art img { width: 270px; height: 180px; }
.card.featured .info { flex: 1 1 260px; justify-content: center; }
.card.featured h3 { font-size: 34px; }
.card.featured .btn-buy { margin-top: 6px; align-self: center; width: 100%; max-width: 280px; min-height: 50px; font-size: 17px; }

/* ── FAQ ──────────────────────────────────────────────────────── */
.faq { margin-top: 48px; display: flex; flex-direction: column; gap: 12px; }
.faq h2 { margin: 0 0 6px; text-align: center; font: 400 36px var(--display); color: #6ED3FF; text-shadow: 0 3px 0 #0F4F7A; }
.faq details { background: var(--panel); border-radius: 14px; box-shadow: 0 4px 0 var(--shadow); padding: 16px 20px; }
.faq summary { font-weight: 900; font-size: 17px; cursor: pointer; }
.faq p { margin: 10px 0 0; color: var(--muted); line-height: 1.6; }
.faq strong { color: #fff; }

/* ── Footer ───────────────────────────────────────────────────── */
.footer { margin-top: 48px; border-radius: 20px; overflow: hidden; box-shadow: 0 6px 0 var(--shadow); }
.footer-top { background: var(--orange); padding: 14px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer-left { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.footer-left img { width: 44px; height: 44px; object-fit: contain; }
.chip { padding: 6px 12px; border-radius: 8px; background: var(--orange-d); font-weight: 900; font-size: 13px; letter-spacing: .04em; }
.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; background: var(--orange-d); color: #fff; display: flex; align-items: center; justify-content: center; }
.footer-bottom { background: #C9481F; padding: 18px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; color: #FFE6DB; }
.footer-bottom nav { display: flex; gap: 16px; }
.footer-bottom a { color: #fff; }

/* ── Login dialog ─────────────────────────────────────────────── */
.modal { border: 0; padding: 0; border-radius: 22px; background: var(--panel); color: #fff; width: min(440px, calc(100% - 32px)); box-shadow: 0 8px 0 var(--shadow), 0 0 0 3px var(--gold); }
.modal::backdrop { background: rgba(5, 6, 20, .7); }
.modal-body { padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.modal h2 { margin: 0; font: 400 28px var(--display); }
.modal p { margin: 0; }
.modal label { font-size: 14px; color: var(--muted); }
.user-row { display: flex; gap: 12px; align-items: center; }
.user-row img { width: 48px; height: 48px; border-radius: 10px; image-rendering: pixelated; background: #12133A; }
input[type="text"] {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border-radius: 12px;
  border: 2px solid #3A3B7A; background: #12133A; color: #fff; font: 700 16px var(--body);
}
input[type="text"]:focus { outline: none; border-color: var(--gold); }
.error { color: #FF9A9A; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }

/* ── Basket drawer ────────────────────────────────────────────── */
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%); z-index: 40;
  background: var(--panel); box-shadow: -6px 0 0 var(--shadow); padding: 22px;
  display: flex; flex-direction: column; gap: 14px; overflow-y: auto;
  transform: translateX(105%); transition: transform .25s ease; visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.scrim { position: fixed; inset: 0; z-index: 30; background: rgba(5, 6, 20, .6); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-head h2 { margin: 0; font: 400 30px var(--display); color: var(--gold); }
.drawer-user { margin: -6px 0 0; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: #3A3B7A; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.drawer-items { display: flex; flex-direction: column; gap: 10px; }
.empty { text-align: center; padding: 24px 0; }
.line { display: flex; align-items: center; gap: 12px; background: var(--panel-2); border-radius: 14px; padding: 10px; box-shadow: inset 0 0 0 2px var(--c); }
.line img { width: 56px; height: 56px; object-fit: contain; }
.line-name { flex: 1; min-width: 0; font-weight: 900; }
.qty { display: flex; align-items: center; background: #12133A; border-radius: 10px; }
.qty button { width: 40px; height: 40px; border: 0; background: none; color: #fff; font: 900 20px var(--body); cursor: pointer; }
.qty span { min-width: 22px; text-align: center; }
.coupon { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.coupon label { font-size: 14px; color: var(--muted); }
.coupon-row { display: flex; gap: 8px; }
.coupon p { margin: 0; min-height: 1em; }
.drawer-total { display: flex; justify-content: space-between; font-size: 22px; font-weight: 900; border-top: 3px solid #3A3B7A; padding-top: 14px; }
.drawer-total span:last-child { color: var(--gold); }

/* ── Toast ────────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50;
  background: #5BD46E; color: #0E3D17; padding: 12px 20px; border-radius: 12px; box-shadow: 0 4px 0 #2E9440;
  font-weight: 900; max-width: calc(100% - 32px); text-align: center;
}
.toast.error { background: #FF7A7A; color: #3A0000; box-shadow: 0 4px 0 #B23E3E; }

@media (max-width: 600px) {
  .side-buttons { top: auto; bottom: 16px; transform: none; flex-direction: row; right: 50%; translate: 50% 0; }
  .banner { padding: 20px; }
  .logo-ring { width: 200px; height: 200px; }
  .logo-ring img { width: 200px; height: 200px; }
  .toast { bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
