/* ── Trippy Scripts · GZ galaxy UI ─────────────────────────── */
:root {
  --bg: #07061a;
  --bg-2: #0d0b26;
  --glass: rgba(20, 16, 48, 0.55);
  --glass-strong: rgba(16, 12, 40, 0.82);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(167, 139, 250, 0.35);
  --text: #e8e6ff;
  --muted: #9a97c4;
  --violet: #8b5cf6;
  --violet-2: #a78bfa;
  --violet-3: #c4b5fd;
  --cyan: #22d3ee;
  --cyan-2: #67e8f9;
  --green: #34d399;
  --red: #f87171;
  --grad: linear-gradient(90deg, var(--violet-3), var(--violet-2) 45%, var(--cyan-2));
  --grad-btn: linear-gradient(135deg, #7c3aed, #8b5cf6 40%, #06b6d4);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --glow: 0 0 0 1px rgba(167, 139, 250, 0.25), 0 0 30px -6px rgba(139, 92, 246, 0.55);
  --font-display: "Orbitron", "Inter", sans-serif;
  --font-label: "Rajdhani", "Inter", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan-2); text-decoration: none; }
a:hover { color: #fff; }
code { background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; text-align: center; margin: 10px 0 0; }
[hidden] { display: none !important; }

/* ── Background: stars + nebula ── */
#stars { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; }
.nebula { position: fixed; inset: 0; z-index: -3; overflow: hidden; pointer-events: none;
  background: radial-gradient(1200px 700px at 50% -10%, #1a1145 0%, transparent 60%), var(--bg); }
.nebula span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; animation: drift 28s ease-in-out infinite alternate; }
.nebula span:nth-child(1) { width: 620px; height: 620px; left: -160px; top: -120px; background: #6d28d9; }
.nebula span:nth-child(2) { width: 520px; height: 520px; right: -140px; top: 30vh; background: #0891b2; opacity: .32; animation-duration: 34s; }
.nebula span:nth-child(3) { width: 460px; height: 460px; left: 30vw; bottom: -220px; background: #a21caf; opacity: .22; animation-duration: 40s; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.12); } }

/* ── Glass ── */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), var(--shadow);
}

/* ── Buttons ── */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 22px; border-radius: 12px;
  font: 700 15px/1 var(--font-label); letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer; color: #fff;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, opacity .2s;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--grad-btn); box-shadow: 0 8px 30px -8px rgba(139,92,246,.75), inset 0 1px 0 rgba(255,255,255,.25); }
.btn.primary:hover { box-shadow: 0 10px 40px -6px rgba(34,211,238,.55), inset 0 1px 0 rgba(255,255,255,.3); color: #fff; }
.btn.ghost { background: rgba(255,255,255,.04); border-color: var(--line-strong); color: var(--text); }
.btn.ghost:hover { background: rgba(139,92,246,.14); color: #fff; }
.btn.sm { --h: 38px; padding: 0 16px; font-size: 13px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.in-cart { background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.4); color: var(--green); box-shadow: none; }

/* ── Topbar ── */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(7,6,26,.62); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand-logo { height: 42px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav a { font: 600 15px var(--font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav a:hover { color: #fff; }
.actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.cart-btn { position: relative; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid var(--line-strong); color: var(--text); transition: .2s; }
.cart-btn:hover { box-shadow: var(--glow); }
.cart-count { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--cyan); color: #04121a; font: 800 11px/20px var(--font-body); text-align: center; }
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }
.user-chip { display: inline-flex; align-items: center; gap: 8px; font: 600 14px var(--font-label); letter-spacing: .06em; color: var(--text); }
.user-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

.demo-banner { text-align: center; padding: 10px 16px; font-size: 13px; color: #fde68a; background: rgba(250,204,21,.08); border-bottom: 1px solid rgba(250,204,21,.2); }

/* ── Hero ── */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; padding: 84px 0 56px; }
.eyebrow { margin: 0 0 10px; font: 700 13px var(--font-label); letter-spacing: .32em; text-transform: uppercase; color: var(--cyan-2); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: .02em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(34px, 5.2vw, 60px); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 18px rgba(139,92,246,.45)); }
.lead { color: var(--muted); font-size: 17px; max-width: 540px; margin: 20px 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 420px; justify-self: center; width: 100%; }
.hero-mark { position: absolute; inset: 14%; width: 72%; filter: drop-shadow(0 0 40px rgba(139,92,246,.55)); animation: float 7s ease-in-out infinite; }
.orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(167,139,250,.25); }
.orbit::after { content: ""; position: absolute; top: 50%; left: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan-2); box-shadow: 0 0 16px var(--cyan); }
.orbit.o1 { transform: rotateX(68deg) rotateZ(-20deg); animation: spin 14s linear infinite; }
.orbit.o2 { inset: 8%; border-color: rgba(34,211,238,.18); transform: rotateX(70deg) rotateZ(40deg); animation: spin2 22s linear infinite; }
@keyframes spin { to { transform: rotateX(68deg) rotateZ(340deg); } }
@keyframes spin2 { to { transform: rotateX(70deg) rotateZ(400deg); } }
@keyframes float { 50% { transform: translateY(-12px); } }

/* ── Features ── */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-bottom: 40px; }
.feature { padding: 22px; border-radius: var(--radius); }
.feature .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(139,92,246,.35), rgba(34,211,238,.25)); border: 1px solid var(--line-strong); color: #fff; font: 800 14px var(--font-display); }
.feature h3 { font-size: 14px; letter-spacing: .06em; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

/* ── Store ── */
.store { padding: 40px 0 90px; scroll-margin-top: 80px; }
.store-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-title { font-size: 28px; }
.search { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 12px; color: var(--muted); width: min(320px, 100%); }
.search input { background: none; border: 0; outline: 0; color: var(--text); font: inherit; width: 100%; }
.search:focus-within { box-shadow: var(--glow); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.tab { height: 38px; padding: 0 18px; border-radius: 999px; cursor: pointer; background: rgba(255,255,255,.03); border: 1px solid var(--line);
  color: var(--muted); font: 700 13px var(--font-label); letter-spacing: .16em; text-transform: uppercase; transition: .2s; }
.tab:hover { color: #fff; border-color: var(--line-strong); }
.tab[aria-selected="true"] { color: #fff; background: linear-gradient(135deg, rgba(139,92,246,.35), rgba(34,211,238,.18)); border-color: var(--line-strong); box-shadow: var(--glow); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--glow), var(--shadow); }
.card:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.card-media { aspect-ratio: 16/10; position: relative; overflow: hidden; background: var(--bg-2); }
.card-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media > img { transform: scale(1.05); }
.ph { width: 100%; height: 100%; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 30% 30%, rgba(124,58,237,.55), transparent 55%), radial-gradient(circle at 75% 75%, rgba(6,182,212,.4), transparent 55%), #0e0a2a; }
.ph img { width: 34%; opacity: .9; filter: drop-shadow(0 0 20px rgba(139,92,246,.6)); }
.ph .ph-name { position: absolute; bottom: 12px; left: 14px; right: 14px; font: 700 12px var(--font-label); letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; font: 700 11px var(--font-label); letter-spacing: .14em; text-transform: uppercase; }
.badge.sale { background: rgba(34,211,238,.18); color: var(--cyan-2); border: 1px solid rgba(34,211,238,.4); }
.badge.free { background: rgba(52,211,153,.16); color: var(--green); border: 1px solid rgba(52,211,153,.4); }
.badge.sub { left: auto; right: 12px; background: rgba(139,92,246,.2); color: var(--violet-3); border: 1px solid var(--line-strong); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card-title { font: 700 15px/1.3 var(--font-display); letter-spacing: .03em; margin: 0; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font: 700 22px var(--font-label); letter-spacing: .04em; }
.price .was { font-size: 15px; color: var(--muted); text-decoration: line-through; margin-right: 6px; font-weight: 600; }
.price .per { font-size: 13px; color: var(--muted); }
.skeleton { min-height: 300px; cursor: default; background: linear-gradient(100deg, rgba(255,255,255,.03) 30%, rgba(255,255,255,.07) 50%, rgba(255,255,255,.03) 70%); background-size: 300% 100%; animation: shimmer 1.6s infinite; border: 1px solid var(--line); }
@keyframes shimmer { to { background-position: -150% 0; } }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ── Overlays / modal / drawer ── */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(4,3,14,.66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 16px; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { position: relative; width: min(720px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; border-radius: 20px; overflow: hidden;
  background: var(--glass-strong); border-color: var(--line-strong); animation: pop .25s cubic-bezier(.2,.9,.3,1.2); }
.modal.small { width: min(440px, 100%); }
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0; } }
.modal-media { aspect-ratio: 16/7; background: var(--bg-2); flex-shrink: 0; }
.modal-media > img { width: 100%; height: 100%; object-fit: cover; }
.modal-media:empty { display: none; }
.modal-body { padding: 24px 26px; overflow: auto; }
.modal-body.center { text-align: center; }
.modal-body h3 { font-size: 22px; margin-bottom: 10px; }
.modal-foot { padding: 16px 26px 22px; border-top: 1px solid var(--line); }
.price-row { margin-bottom: 16px; }
.desc { color: #cfcdf0; }
.desc h1, .desc h2, .desc h3, .desc h4 { font-family: var(--font-display); font-size: 16px; margin: 18px 0 8px; }
.desc img { border-radius: 10px; margin: 12px 0; }
.desc ul { padding-left: 20px; }
.desc li::marker { color: var(--cyan); }
.desc a { text-decoration: underline; }
.close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 10px; cursor: pointer;
  background: rgba(7,6,26,.7); border: 1px solid var(--line); color: var(--text); font-size: 22px; line-height: 1; }
.close:hover { border-color: var(--line-strong); color: #fff; }

.drawer-overlay { place-items: stretch end; padding: 0; }
.drawer { position: relative; width: min(420px, 100vw); height: 100%; display: flex; flex-direction: column; padding: 22px; gap: 14px;
  background: var(--glass-strong); border-left: 1px solid var(--line-strong); animation: slide .28s cubic-bezier(.2,.9,.3,1); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-head h3 { font-size: 18px; }
.drawer-head .close { position: static; }
.drawer-user { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.drawer-user button { background: none; border: 0; color: var(--cyan-2); cursor: pointer; font: inherit; }
.drawer-items { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.line-thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; }
.line-thumb > img { width: 100%; height: 100%; object-fit: cover; }
.line-thumb .ph img { width: 60%; }
.line-name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.line-price { font: 700 15px var(--font-label); color: var(--violet-3); }
.line-remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; }
.line-remove:hover { color: var(--red); }
.cart-empty { text-align: center; color: var(--muted); margin: auto; padding: 30px 0; }
.coupon { display: flex; gap: 8px; }
.coupon input, .login-methods input { flex: 1; height: 38px; border-radius: 10px; padding: 0 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--text); font: inherit; outline: 0; }
.coupon input:focus { border-color: var(--line-strong); }
.drawer-codes { display: flex; flex-wrap: wrap; gap: 6px; }
.drawer-codes:empty { display: none; }
.code-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.35); color: var(--cyan-2); }
.code-chip button { background: none; border: 0; color: inherit; cursor: pointer; padding: 0; font-size: 14px; }
.drawer-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--line); }
.drawer-total span { font: 700 13px var(--font-label); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.drawer-total strong { font: 700 26px var(--font-label); }

.login-mark { width: 84px; margin: 6px auto 14px; filter: drop-shadow(0 0 22px rgba(139,92,246,.6)); }
.login-methods { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

/* ── Toasts ── */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast { padding: 12px 16px; border-radius: 12px; background: var(--glass-strong); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  backdrop-filter: blur(14px); font-size: 14px; animation: pop .25s ease; }
.toast.error { border-color: rgba(248,113,113,.45); }
.toast.success { border-color: rgba(52,211,153,.45); }

/* ── Footer ── */
.footer { border-top: 1px solid var(--line); background: rgba(7,6,26,.6); padding: 44px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-logo { height: 46px; width: auto; margin-bottom: 10px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.footer-links a { font: 600 14px var(--font-label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.footer-links a:hover { color: #fff; }
.legal { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.legal p { margin: 4px 0; }
.legal a { color: var(--muted); text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; text-align: left; }
  .hero-art { max-width: 260px; order: -1; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .brand-logo { height: 34px; }
  .features { grid-template-columns: 1fr; }
  .topbar-inner { gap: 12px; }
  #loginBtn { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Framework badges under the hero headline */
.fw-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.fw-badges span { padding: 6px 14px; border-radius: 999px; font: 700 13px var(--font-label); letter-spacing: .18em; text-transform: uppercase;
  color: var(--text); background: linear-gradient(135deg, rgba(139,92,246,.22), rgba(34,211,238,.12)); border: 1px solid var(--line-strong); }
