/* ByteRaid — high-tech storefront/checkout FX (CSS-only, no markup/logic changes).
   v2 — checkout reworked into a glass "control panel". Layers over the brand color overlay. */

:root {
  --br-purple: #a855f7;
  --br-purple-deep: #9333ea;
  --br-cyan: #22d3ee;
  --br-bg: #0a0a0f;
  --br-card: #15151f;
  --br-glow-purple: rgba(168, 85, 247, 0.55);
  --br-glow-cyan: rgba(34, 211, 238, 0.45);
  --br-line: rgba(148, 163, 184, 0.14);
}

/* ---------- Animated tech background (fixed, behind everything) ---------- */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 12% -8%, rgba(168,85,247,0.20), transparent 60%),
    radial-gradient(50rem 36rem at 110% 6%, rgba(34,211,238,0.15), transparent 55%),
    radial-gradient(70rem 50rem at 50% 120%, rgba(147,51,234,0.12), transparent 60%);
}
body::after {
  content: ""; position: fixed; inset: -2px; z-index: -1; pointer-events: none; opacity: 0.6;
  background-image:
    linear-gradient(var(--br-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--br-line) 1px, transparent 1px);
  background-size: 46px 46px, 46px 46px;
  mask-image: radial-gradient(circle at 50% 24%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 24%, #000 0%, transparent 80%);
  animation: br-grid-drift 40s linear infinite;
}
@keyframes br-grid-drift { from { background-position: 0 0, 0 0; } to { background-position: 46px 46px, 46px 46px; } }

/* ---------- Headings ---------- */
h1, h2, h3, .font-display { font-family: "Space Grotesk", "Inter", sans-serif; letter-spacing: -0.01em; }

/* ============================================================
   CHECKOUT  (.container with the 4-col grid)
   ============================================================ */
.md\:grid-cols-4 { max-width: 1120px; margin-left: auto; margin-right: auto; gap: 1.5rem !important; }

/* Product title — gradient + glow, with an accent rule under it */
.md\:grid-cols-4 .col-span-3 > h1 {
  font-size: 2.1rem; line-height: 1.1; padding-bottom: 0.75rem; position: relative;
  background: linear-gradient(92deg, #fff 30%, var(--br-purple) 70%, var(--br-cyan));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 22px rgba(168,85,247,0.35));
}
.md\:grid-cols-4 .col-span-3 > h1::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 84px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--br-cyan), var(--br-purple)); box-shadow: 0 0 16px var(--br-glow-cyan);
}

/* Each form section (plan select + every config option) -> glass HUD panel */
.md\:grid-cols-4 .col-span-3 > .flex.flex-col.gap-1 {
  position: relative;
  background: linear-gradient(180deg, rgba(26,26,37,0.78), rgba(16,16,24,0.78));
  backdrop-filter: blur(12px) saturate(120%); -webkit-backdrop-filter: blur(12px) saturate(120%);
  border: 1px solid rgba(168,85,247,0.20);
  border-left: 2px solid var(--br-purple);
  border-radius: 12px; padding: 1rem 1.1rem;
  box-shadow: 0 14px 40px -24px rgba(0,0,0,0.85), 0 0 0 1px rgba(34,211,238,0.04) inset;
  transition: border-color .18s ease, box-shadow .18s ease, transform .12s ease;
}
.md\:grid-cols-4 .col-span-3 > .flex.flex-col.gap-1:hover {
  border-left-color: var(--br-cyan);
  box-shadow: 0 18px 44px -22px rgba(0,0,0,0.9), 0 0 30px -12px var(--br-glow-purple);
}

/* Section labels -> uppercase tech labels with a leading marker */
.md\:grid-cols-4 .col-span-3 label {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.7rem !important;
  font-weight: 700; color: var(--br-cyan) !important;
}
.md\:grid-cols-4 .col-span-3 label::before {
  content: "▸ "; color: var(--br-purple); font-weight: 700;
}

/* ---------- Inputs / selects ---------- */
.md\:grid-cols-4 select, .md\:grid-cols-4 input,
input, select, textarea, .bg-primary-800 {
  background-color: rgba(10,10,15,0.72) !important;
  border: 1px solid rgba(148,163,184,0.22) !important; border-radius: 10px !important;
  transition: border-color .18s ease, box-shadow .18s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none !important; border-color: var(--br-cyan) !important;
  box-shadow: 0 0 0 3px rgba(34,211,238,0.18), 0 0 22px -6px var(--br-glow-cyan) !important;
}

/* ============================================================
   ORDER SUMMARY — the hero "HUD" panel
   ============================================================ */
.col-span-1.bg-background-secondary {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(26,26,37,0.9), rgba(13,13,20,0.92)) !important;
  backdrop-filter: blur(16px) saturate(125%); -webkit-backdrop-filter: blur(16px) saturate(125%);
  border: 1px solid rgba(168,85,247,0.35) !important; border-radius: 16px !important;
  padding: 1.25rem 1.25rem 1.4rem !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.07) inset,
    0 24px 60px -26px rgba(0,0,0,0.85),
    0 0 50px -18px var(--br-glow-purple);
  animation: br-panel-pulse 5s ease-in-out infinite;
}
@keyframes br-panel-pulse {
  0%,100% { box-shadow: 0 1px 0 rgba(255,255,255,0.07) inset, 0 24px 60px -26px rgba(0,0,0,0.85), 0 0 46px -20px var(--br-glow-purple); }
  50%     { box-shadow: 0 1px 0 rgba(255,255,255,0.07) inset, 0 24px 60px -26px rgba(0,0,0,0.85), 0 0 60px -14px var(--br-glow-cyan); }
}
/* top scan-line */
.col-span-1.bg-background-secondary::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--br-cyan), var(--br-purple), transparent);
  animation: br-scan 4.5s ease-in-out infinite;
}
@keyframes br-scan { 0%,100% { transform: translateX(-28%); opacity: .3; } 50% { transform: translateX(28%); opacity: 1; } }
/* HUD corner brackets */
.col-span-1.bg-background-secondary::after {
  content: ""; position: absolute; top: 9px; right: 9px; width: 18px; height: 18px;
  border-top: 2px solid var(--br-cyan); border-right: 2px solid var(--br-cyan); opacity: .6;
}
.col-span-1.bg-background-secondary h2 {
  font-family: "Space Grotesk", sans-serif; text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 1.15rem !important; color: #fff;
}
.col-span-1.bg-background-secondary h2::after {
  content: ""; display: block; margin-top: .5rem; height: 1px;
  background: linear-gradient(90deg, var(--br-purple), transparent);
}
/* price rows: monospace readout */
.col-span-1.bg-background-secondary .flex.justify-between { font-variant-numeric: tabular-nums; }
.col-span-1.bg-background-secondary .text-lg.font-semibold {
  font-size: 1.35rem !important; padding-top: .25rem;
  color: var(--br-cyan) !important; text-shadow: 0 0 18px var(--br-glow-cyan);
  font-family: "JetBrains Mono","Space Grotesk",monospace;
}

/* ---------- Primary buttons: neon gradient + sheen + pulse ---------- */
button[type="submit"], a.bg-primary, button.bg-primary,
.col-span-1.bg-background-secondary button,
[class*="bg-primary"]:not(.bg-primary-800):not(input):not(select) {
  position: relative; overflow: hidden; width: 100%;
  background-image: linear-gradient(120deg, var(--br-purple-deep), var(--br-purple) 55%, var(--br-cyan)) !important;
  border: none !important; border-radius: 12px !important; color: #fff !important; font-weight: 700;
  letter-spacing: 0.03em; padding-top: .8rem !important; padding-bottom: .8rem !important;
  box-shadow: 0 12px 30px -10px var(--br-glow-purple), 0 0 0 1px rgba(255,255,255,0.06) inset;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
button[type="submit"]:hover, a.bg-primary:hover, button.bg-primary:hover,
.col-span-1.bg-background-secondary button:hover {
  transform: translateY(-1px); filter: brightness(1.07);
  box-shadow: 0 18px 42px -12px var(--br-glow-purple), 0 0 30px -6px var(--br-glow-cyan);
}
button[type="submit"]::after, a.bg-primary::after, button.bg-primary::after,
.col-span-1.bg-background-secondary button::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.30), transparent);
  transform: skewX(-18deg); animation: br-sheen 4.5s ease-in-out infinite;
}
@keyframes br-sheen { 0%,60% { left: -60%; } 100% { left: 130%; } }

/* ---------- Links, scrollbar ---------- */
a:not([class*="bg-"]):hover { color: var(--br-purple) !important; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--br-bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--br-purple-deep), var(--br-cyan)); border-radius: 9px; border: 2px solid var(--br-bg); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  body::after, .col-span-1.bg-background-secondary, .col-span-1.bg-background-secondary::before,
  button[type="submit"]::after, a.bg-primary::after, button.bg-primary::after,
  .col-span-1.bg-background-secondary button::after { animation: none !important; }
}
