:root {
  --bg: #07070a;
  --bg-2: #0e0e13;
  --panel: rgba(20, 20, 26, 0.72);
  --line: rgba(255, 40, 60, 0.18);
  --line-strong: rgba(255, 40, 60, 0.45);
  --red: #ff1f3d;
  --red-2: #c3001f;
  --red-glow: rgba(255, 31, 61, 0.55);
  --text: #f2f2f5;
  --muted: #8d8d99;
  --radius: 14px;
  --font-display: "Orbitron", system-ui, sans-serif;
  --font-body: "Rajdhani", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input { font: inherit; }

/* ---------- Background ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255,31,61,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,31,61,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}
.bg-glow {
  position: fixed; top: -30vh; left: 50%; transform: translateX(-50%);
  width: 120vw; height: 80vh; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(195,0,31,.45), transparent 65%);
  filter: blur(40px);
  animation: pulse 8s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .65; } }

/* ---------- Ticker ---------- */
.ticker {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, transparent, rgba(255,31,61,.12), transparent);
  overflow: hidden; white-space: nowrap;
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: #ffb3bd;
  padding: 6px 0;
}
.ticker span { display: inline-block; padding-left: 100%; animation: tick 22s linear infinite; }
@keyframes tick { to { transform: translateX(-100%); } }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(7,7,10,.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--red); }
.brand-mark { width: 34px; height: 34px; filter: drop-shadow(0 0 8px var(--red-glow)); }
.brand-name { font-family: var(--font-display); font-weight: 900; letter-spacing: .14em; color: var(--text); }
.links { display: flex; gap: 28px; }
.links a {
  font-family: var(--font-display); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); position: relative; padding: 4px 0; transition: color .2s;
}
.links a:hover, .links a.active { color: var(--text); }
.links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--red); box-shadow: 0 0 10px var(--red);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn {
  position: relative; width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(255,31,61,.08);
  transition: box-shadow .2s, background .2s;
}
.cart-btn:hover { background: rgba(255,31,61,.18); box-shadow: 0 0 18px var(--red-glow); }
.cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--red); font-size: 12px; font-weight: 700; display: grid; place-items: center;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border-radius: 10px;
  font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 8px 30px -6px var(--red-glow);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: transform .15s, filter .2s;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.15); }
.btn-primary:disabled { opacity: .5; pointer-events: none; }
.btn-outline {
  padding: 12px 24px; border-radius: 10px; border: 1px solid var(--line-strong);
  font-family: var(--font-display); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(255,255,255,.02); transition: background .2s, border-color .2s;
}
.btn-outline:hover { background: rgba(255,31,61,.1); border-color: var(--red); }
.btn-ghost {
  padding: 9px 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,.1);
  font-weight: 600; letter-spacing: .06em; color: var(--muted); transition: color .2s, border-color .2s;
}
.btn-ghost:hover { color: var(--text); border-color: var(--line-strong); }
.full { width: 100%; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: clamp(64px, 12vw, 140px) 16px 72px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255,31,61,.08);
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: #ffc2ca;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2bff88; box-shadow: 0 0 10px #2bff88; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.hero-title {
  margin-top: 26px; font-family: var(--font-display); font-weight: 900;
  font-size: clamp(38px, 8vw, 96px); line-height: 1.02; letter-spacing: .04em;
}
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--red); text-shadow: 0 0 40px rgba(255,31,61,.35); }
.glitch { position: relative; display: inline-block; text-shadow: 0 0 30px rgba(255,31,61,.5); }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; overflow: hidden;
}
.glitch::before { color: var(--red); transform: translate(2px, 0); clip-path: inset(0 0 60% 0); animation: g1 3.5s infinite steps(1); opacity: .8; }
.glitch::after { color: #6ef2ff; transform: translate(-2px, 0); clip-path: inset(60% 0 0 0); animation: g2 3.5s infinite steps(1); opacity: .5; }
@keyframes g1 { 0%,92%,100% { transform: none; } 94% { transform: translate(4px,-2px); } 96% { transform: translate(-3px,1px); } }
@keyframes g2 { 0%,90%,100% { transform: none; } 93% { transform: translate(-4px,2px); } 97% { transform: translate(3px,-1px); } }
.hero-sub { margin: 20px auto 0; max-width: 560px; color: var(--muted); font-size: 19px; }
.hero-cta { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats { margin: 56px auto 0; display: flex; justify-content: center; gap: clamp(24px, 6vw, 72px); flex-wrap: wrap; }
.stat b { display: block; font-family: var(--font-display); font-size: 30px; color: var(--text); }
.stat span { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Features ---------- */
.features {
  max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
}
.feature {
  padding: 22px; border-radius: var(--radius); background: var(--panel);
  border: 1px solid var(--line); backdrop-filter: blur(8px);
}
.feature i {
  font-style: normal; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,31,61,.14); color: var(--red); margin-bottom: 12px; font-size: 18px;
}
.feature h3 { font-family: var(--font-display); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.feature p { color: var(--muted); margin-top: 6px; font-size: 16px; }

/* ---------- Store ---------- */
.store, .faq { max-width: 1200px; margin: 0 auto; padding: 96px clamp(16px, 4vw, 48px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(26px, 4vw, 40px); letter-spacing: .08em; }
.accent { color: var(--red); text-shadow: 0 0 16px var(--red-glow); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1);
  font-weight: 600; letter-spacing: .08em; color: var(--muted); transition: all .2s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-color: var(--red); background: rgba(255,31,61,.14); box-shadow: 0 0 16px -4px var(--red-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;
  background: linear-gradient(180deg, rgba(28,28,36,.9), rgba(14,14,19,.95));
  border: 1px solid var(--line); transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 20px 50px -20px var(--red-glow); }
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, transparent 40%, rgba(255,31,61,.12) 50%, transparent 60%);
  transform: translateX(-100%); transition: transform .7s;
}
.card:hover::before { transform: translateX(100%); }
.card-media {
  aspect-ratio: 16/10; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 50% 60%, rgba(255,31,61,.35), transparent 60%), #0b0b10;
  border-bottom: 1px solid var(--line);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .glyph { font-family: var(--font-display); font-weight: 900; font-size: 44px; color: var(--red); text-shadow: 0 0 24px var(--red-glow); }
.badge {
  position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: var(--red); box-shadow: 0 0 14px var(--red-glow);
}
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-family: var(--font-display); font-size: 15px; letter-spacing: .06em; }
.card-desc { color: var(--muted); font-size: 15px; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.price s { color: var(--muted); font-size: 14px; margin-right: 6px; }
.add-btn {
  padding: 9px 16px; border-radius: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 13px;
  border: 1px solid var(--red); color: var(--text); background: rgba(255,31,61,.12); transition: background .2s, box-shadow .2s;
}
.add-btn:hover { background: var(--red); box-shadow: 0 0 18px var(--red-glow); }
.loader, .empty { grid-column: 1/-1; text-align: center; color: var(--muted); padding: 60px 0; letter-spacing: .1em; }

/* ---------- FAQ ---------- */
.faq h2 { margin-bottom: 24px; }
details {
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-bottom: 12px; padding: 16px 20px;
}
summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; }
summary::after { content: "+"; color: var(--red); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin-top: 10px; }

.footer {
  margin-top: 110px; padding: 28px clamp(16px, 4vw, 48px); border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 14px;
}
.powered { letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Drawer ---------- */
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%); z-index: 40;
  background: rgba(12,12,16,.96); backdrop-filter: blur(18px); border-left: 1px solid var(--line-strong);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.drawer.open { transform: none; box-shadow: -30px 0 80px -30px var(--red-glow); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3, .modal-card h3 { font-family: var(--font-display); letter-spacing: .2em; }
.icon-btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid rgba(255,255,255,.1); }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.line-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.line-item b { display: block; }
.line-item small { color: var(--muted); }
.remove { color: var(--muted); font-size: 13px; text-decoration: underline; }
.remove:hover { color: var(--red); }
.coupon { display: flex; gap: 8px; padding: 0 20px 14px; }
.coupon input, .mc-login input {
  flex: 1; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03); color: var(--text); outline: none;
}
.coupon input:focus, .mc-login input:focus { border-color: var(--red); }
.drawer-foot { padding: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.total { display: flex; justify-content: space-between; font-size: 18px; }
.total b { font-family: var(--font-display); }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 30; opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.show { opacity: 1; pointer-events: auto; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; padding: 16px; background: rgba(0,0,0,.7); }
.modal.show { display: grid; }
.modal-card {
  width: min(420px, 100%); padding: 28px; border-radius: 16px; background: var(--bg-2);
  border: 1px solid var(--line-strong); box-shadow: 0 0 60px -20px var(--red-glow); display: flex; flex-direction: column; gap: 14px;
}
.modal-card p { color: var(--muted); }
#authOptions { display: flex; flex-direction: column; gap: 10px; }
.mc-login { display: flex; gap: 8px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); z-index: 60;
  padding: 12px 20px; border-radius: 10px; background: #15151b; border: 1px solid var(--red);
  box-shadow: 0 0 24px -6px var(--red-glow); opacity: 0; pointer-events: none; transition: all .3s; font-weight: 600;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 720px) {
  .links { display: none; }
  #loginBtn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Package details popup ---------- */
.card { cursor: pointer; }
.card:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.pkg-modal { z-index: 55; backdrop-filter: blur(6px); }
.pkg-card {
  position: relative; width: min(860px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  display: grid; grid-template-columns: 1fr 1.1fr;
  border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line-strong);
  box-shadow: 0 0 80px -20px var(--red-glow);
  animation: pop .25s cubic-bezier(.2,.8,.2,1);
}
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(10px); } }
.pkg-close { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(7,7,10,.7); }
.pkg-media {
  min-height: 320px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 55%, rgba(255,31,61,.4), transparent 62%), #0b0b10;
  border-right: 1px solid var(--line);
}
.pkg-media img { width: 100%; height: 100%; object-fit: cover; }
.pkg-media .glyph { font-family: var(--font-display); font-weight: 900; font-size: 84px; color: var(--red); text-shadow: 0 0 40px var(--red-glow); }
.pkg-info { padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; }
.pkg-cat { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--red); }
.pkg-info h3 { font-family: var(--font-display); font-size: 26px; letter-spacing: .06em; padding-right: 36px; }
.pkg-price { font-size: 26px; }
.pkg-desc { color: #c9c9d3; font-size: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.pkg-desc p { margin-bottom: 10px; }
.pkg-desc ul, .pkg-desc ol { margin: 0 0 12px 0; list-style: none; display: grid; gap: 6px; }
.pkg-desc li { position: relative; padding-left: 20px; }
.pkg-desc li::before { content: "▸"; position: absolute; left: 0; color: var(--red); }
.pkg-desc img, .pkg-desc iframe { max-width: 100%; border-radius: 10px; margin: 8px 0; }
.pkg-desc a { color: var(--red); text-decoration: underline; }
.pkg-actions { display: flex; gap: 12px; align-items: center; margin-top: auto; padding-top: 10px; }
.pkg-actions .btn-primary { flex: 1; }
.qty { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.qty-btn { width: 38px; height: 44px; font-size: 20px; color: var(--muted); }
.qty-btn:hover { color: var(--text); background: rgba(255,31,61,.12); }
.qty-val { min-width: 28px; text-align: center; font-family: var(--font-display); }
@media (max-width: 720px) {
  .pkg-card { grid-template-columns: 1fr; }
  .pkg-media { min-height: 200px; border-right: 0; border-bottom: 1px solid var(--line); }
  .pkg-info { padding: 24px 20px; }
}
