/* ============================================================
   PROXY FORGE — dark arcane gaming aesthetic
   ============================================================ */

:root {
  --bg: #06030d;
  --bg-2: #0c0618;
  --panel: rgba(22, 12, 42, 0.55);
  --panel-border: rgba(168, 85, 247, 0.25);
  --neon: #c084fc;
  --neon-hot: #e879f9;
  --neon-deep: #7c3aed;
  --text: #e9e3f5;
  --text-dim: #9d8fbd;
  --glow-sm: 0 0 8px rgba(192, 132, 252, 0.55);
  --glow-md: 0 0 18px rgba(168, 85, 247, 0.5), 0 0 60px rgba(124, 58, 237, 0.25);
  --glow-lg: 0 0 30px rgba(192, 132, 252, 0.6), 0 0 90px rgba(124, 58, 237, 0.45);
  --font-display: 'Cinzel', serif;
  --font-ui: 'Rajdhani', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 18px;
  overflow-x: hidden;
}

::selection { background: var(--neon-deep); color: #fff; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--neon-deep), var(--neon));
  border-radius: 6px;
}

a { color: var(--neon); text-decoration: none; }

.neon {
  color: var(--neon);
  text-shadow: var(--glow-sm);
}

.is-hidden { display: none !important; }

/* ============ BACKGROUND LAYERS ============ */

.bg-nebula, .bg-stars, .bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
}

.bg-nebula {
  background:
    radial-gradient(ellipse 60% 45% at 18% 12%, rgba(124, 58, 237, 0.22), transparent 60%),
    radial-gradient(ellipse 55% 40% at 85% 30%, rgba(232, 121, 249, 0.12), transparent 60%),
    radial-gradient(ellipse 70% 55% at 50% 95%, rgba(88, 28, 135, 0.28), transparent 65%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
  animation: nebulaDrift 24s ease-in-out infinite alternate;
}

@keyframes nebulaDrift {
  from { filter: hue-rotate(0deg) brightness(1); }
  to   { filter: hue-rotate(-18deg) brightness(1.18); }
}

.bg-stars {
  z-index: -2;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,.8), transparent),
    radial-gradient(1px 1px at 32% 68%, rgba(255,255,255,.5), transparent),
    radial-gradient(2px 2px at 51% 14%, rgba(216,180,254,.9), transparent),
    radial-gradient(1px 1px at 64% 81%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.5px 1.5px at 78% 38%, rgba(232,121,249,.8), transparent),
    radial-gradient(1px 1px at 89% 64%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 8% 86%, rgba(216,180,254,.7), transparent),
    radial-gradient(1.5px 1.5px at 43% 44%, rgba(255,255,255,.65), transparent),
    radial-gradient(1px 1px at 95% 9%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 23% 51%, rgba(232,121,249,.6), transparent);
  background-size: 1200px 800px;
  animation: starTwinkle 6s ease-in-out infinite alternate;
}

@keyframes starTwinkle {
  from { opacity: .55; }
  to   { opacity: 1; }
}

.bg-grid {
  z-index: -1;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 0%, transparent 75%);
}

/* ============ NAV ============ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 5vw;
  background: linear-gradient(180deg, rgba(6,3,13,0.92), rgba(6,3,13,0.55) 70%, transparent);
  backdrop-filter: blur(8px);
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 2px;
  color: var(--text);
}

.nav__logo-bolt {
  color: var(--neon-hot);
  text-shadow: var(--glow-md);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 15px;
}

.nav__links a:not(.btn) { color: var(--text-dim); transition: color .2s, text-shadow .2s; }
.nav__links a:not(.btn):hover { color: var(--neon); text-shadow: var(--glow-sm); }

/* ============ BUTTONS ============ */

.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--neon-deep), #a21caf);
  border: 1px solid rgba(232, 121, 249, 0.6);
  border-radius: 10px;
  padding: 13px 28px;
  cursor: pointer;
  box-shadow: var(--glow-md), inset 0 0 18px rgba(232, 121, 249, 0.18);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--glow-lg), inset 0 0 24px rgba(232, 121, 249, 0.3);
  filter: brightness(1.15);
}

.btn:active { transform: translateY(0) scale(.99); }

.btn--big { font-size: 19px; padding: 16px 40px; border-radius: 12px; }
.btn--small { font-size: 14px; padding: 9px 18px; }
.btn--full { width: 100%; }

/* ============ HERO ============ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 5vw 80px;
  perspective: 1200px;
  overflow: hidden;
}

.hero__cards {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 36px);
  transform-style: preserve-3d;
  pointer-events: none;
}

.hero-card {
  width: clamp(150px, 17vw, 300px);
  filter: brightness(0.55) saturate(1.1);
  border-radius: 4.6% / 3.4%;
  box-shadow:
    0 0 24px rgba(124, 58, 237, 0.55),
    0 0 80px rgba(124, 58, 237, 0.3),
    0 30px 60px rgba(0, 0, 0, 0.8);
  opacity: .92;
  will-change: transform;
  animation: cardFloat 7s ease-in-out infinite alternate;
}

.hero-card:nth-child(1) { animation-delay: 0s; }
.hero-card:nth-child(2) { animation-delay: -1.7s; }
.hero-card:nth-child(3) { animation-delay: -3.1s; }
.hero-card:nth-child(4) { animation-delay: -4.6s; }
.hero-card:nth-child(5) { animation-delay: -5.8s; }

.hero-card--center {
  width: clamp(190px, 21vw, 380px);
  opacity: 1;
  filter: brightness(0.6) saturate(1.1);
  box-shadow:
    0 0 36px rgba(232, 121, 249, 0.65),
    0 0 120px rgba(124, 58, 237, 0.45),
    0 40px 80px rgba(0, 0, 0, 0.85);
}

/* `translate`, not `margin-top`: a layout property here counts as a layout
   shift on every frame of the loop and was most of the page's CLS. The
   individual `translate` property composes with the `transform` that
   initParallax() sets from JS, so the two don't fight. */
@keyframes cardFloat {
  from { translate: 0 -14px; }
  to   { translate: 0 14px; }
}

.hero__content {
  position: relative;
  z-index: 2;
  background: radial-gradient(ellipse 65% 70% at 50% 50%, rgba(6, 3, 13, 0.95) 0%, rgba(6,3,13,.8) 55%, transparent 100%);
  padding: 70px 60px;
  border-radius: 40px;
}

.hero__sub { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95); }

.hero__kicker {
  font-weight: 600;
  letter-spacing: 6px;
  font-size: 15px;
  color: var(--neon);
  text-shadow: var(--glow-sm);
  margin-bottom: 18px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(44px, 8vw, 104px);
  line-height: 1.02;
  margin-bottom: 26px;
}

.hero__title-line { display: block; }

.hero__title-line--neon {
  background: linear-gradient(95deg, #d8b4fe 0%, var(--neon-hot) 45%, var(--neon-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(192, 132, 252, 0.65));
  animation: titlePulse 3.6s ease-in-out infinite alternate;
}

@keyframes titlePulse {
  from { filter: drop-shadow(0 0 14px rgba(192, 132, 252, 0.45)); }
  to   { filter: drop-shadow(0 0 34px rgba(232, 121, 249, 0.85)); }
}

.hero__sub {
  color: var(--text-dim);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.55;
  margin-bottom: 38px;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 44px;
  border: 2px solid rgba(192, 132, 252, 0.6);
  border-radius: 14px;
  box-shadow: var(--glow-sm);
}

.hero__scroll-hint span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 9px;
  margin-left: -2px;
  border-radius: 3px;
  background: var(--neon);
  box-shadow: var(--glow-sm);
  animation: scrollNudge 1.8s ease-in-out infinite;
}

@keyframes scrollNudge {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(14px); opacity: .2; }
}

/* ============ SECTIONS ============ */

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 54px);
  letter-spacing: 3px;
  text-align: center;
  margin-bottom: 56px;
}

.how, .builder {
  position: relative;
  padding: 110px 5vw;
  max-width: 1500px;
  margin: 0 auto;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(46px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.3,1);
}

.reveal.is-visible { opacity: 1; transform: none; }

/* How it works */
.how__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 30px;
}

.step {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 42px 34px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.3,1), box-shadow .3s, border-color .3s;
}

.step:hover {
  border-color: rgba(232, 121, 249, 0.6);
  box-shadow: var(--glow-md);
}

.step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  opacity: .8;
}

.step__num {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 900;
  color: var(--neon);
  text-shadow: var(--glow-md);
  margin-bottom: 14px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 23px;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.step p { color: var(--text-dim); line-height: 1.6; }

/* ============ IMPORT PANEL ============ */

.import-panel {
  max-width: 860px;
  margin: 0 auto 60px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 34px;
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
}

.import-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.import-tab {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all .2s;
}

.import-tab.is-active {
  color: var(--neon);
  border-color: var(--panel-border);
  background: rgba(124, 58, 237, 0.12);
  text-shadow: var(--glow-sm);
}

.import-row { display: flex; gap: 14px; }

input[type="text"], input[type="email"], textarea, select {
  flex: 1;
  width: 100%;
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  background: rgba(6, 3, 13, 0.7);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 14px 18px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%), linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position: right 20px center, right 14px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

select option { background: #0d0817; color: var(--text); }

input:focus, textarea:focus, select:focus {
  border-color: var(--neon);
  box-shadow: var(--glow-sm);
}

textarea { resize: vertical; margin-bottom: 16px; }

.import-status {
  margin-top: 16px;
  min-height: 24px;
  font-weight: 600;
  color: var(--neon);
  text-shadow: var(--glow-sm);
}

.import-status.is-error { color: #fb7185; text-shadow: 0 0 8px rgba(251, 113, 133, 0.5); }

.import-hint {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dim);
}

.import-hint strong { color: var(--neon); font-weight: 600; }
.import-hint em { color: var(--text); font-style: normal; font-weight: 600; }

.import-link { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.import-link:hover { text-shadow: var(--glow-sm); }

/* ============ MOXFIELD HELPER ============ */

.mox-helper {
  margin-top: 22px;
  padding: 20px 22px;
  background: rgba(6, 3, 13, 0.5);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
}

.mox-helper__title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .5px;
  margin-bottom: 6px;
}

.mox-helper__lead { color: var(--text-dim); margin-bottom: 22px; }

.mox-helper__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.mox-way {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 20px;
}

.mox-way p { color: var(--text-dim); font-size: 15px; line-height: 1.5; }
.mox-way strong { color: var(--text); }

.mox-way__badge {
  display: inline-block;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.mox-way__note { margin-top: 12px; font-size: 13.5px; }

.mox-bookmarklet {
  display: inline-block;
  margin: 4px 0 2px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: .5px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 9px;
  padding: 9px 18px;
  cursor: grab;
  user-select: none;
}

.mox-bookmarklet:active { cursor: grabbing; }

.mox-steps {
  margin: 10px 0 16px 18px;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.7;
}

.mox-steps em { color: var(--text); font-style: normal; font-weight: 600; }

@media (max-width: 640px) {
  .mox-helper__cols { grid-template-columns: 1fr; }
}

/* ============ SINGLE-CARD SEARCH ============ */

.add-card-panel {
  max-width: 860px;
  margin: -30px auto 60px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 24px 34px 28px;
  backdrop-filter: blur(12px);
}

.add-card-panel__label {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.add-card-box { position: relative; }

.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  z-index: 40;
  background: linear-gradient(160deg, #140a26, #0b0517);
  border: 1px solid rgba(232, 121, 249, 0.4);
  border-radius: 12px;
  box-shadow: var(--glow-md), 0 24px 60px rgba(0,0,0,.7);
  overflow: hidden;
}

.search-results__item {
  padding: 11px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.search-results__item:hover {
  background: rgba(124, 58, 237, 0.25);
  color: var(--neon);
  text-shadow: var(--glow-sm);
}

.search-results__item + .search-results__item { border-top: 1px solid rgba(124, 58, 237, 0.12); }

.search-results__empty {
  padding: 11px 18px;
  color: var(--text-dim);
}

/* ============ DECK AREA ============ */

.deck-head { text-align: center; margin-bottom: 44px; }

.deck-head h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 42px);
  letter-spacing: 2px;
  color: var(--neon);
  text-shadow: var(--glow-md);
}

.deck-head p { color: var(--text-dim); margin-top: 8px; font-size: 17px; }

.deck-tip { letter-spacing: 1px; }

.board { margin-bottom: 54px; }

.board__title {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--panel-border);
}

.board__title small { color: var(--text-dim); font-size: 15px; letter-spacing: 1px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 22px;
}

.card-tile {
  position: relative;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .18s ease;
  transform-style: preserve-3d;
}

.card-tile:hover { z-index: 3; }

.card-tile__img-wrap {
  position: relative;
  border-radius: 4.6% / 3.4%;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.65);
  transition: box-shadow .25s;
}

.card-tile:hover .card-tile__img-wrap {
  box-shadow: 0 0 22px rgba(192, 132, 252, 0.55), 0 0 70px rgba(124, 58, 237, 0.3), 0 14px 36px rgba(0,0,0,.7);
}

.card-tile__img-wrap img {
  display: block;
  width: 100%;
  aspect-ratio: 488 / 680;
  object-fit: cover;
  background: #150b28;
}

.card-tile__qty {
  position: absolute;
  top: 8px; right: 8px;
  min-width: 34px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  background: rgba(12, 6, 24, 0.85);
  border: 1px solid var(--neon);
  border-radius: 8px;
  padding: 3px 8px;
  box-shadow: var(--glow-sm);
  backdrop-filter: blur(4px);
}

.card-tile__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px 10px 10px;
  background: linear-gradient(180deg, transparent, rgba(6,3,13,.92));
  border-radius: 0 0 4.6% 4.6%;
  opacity: 0;
  transition: opacity .2s;
  text-align: center;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 13px;
  color: var(--neon);
  text-shadow: var(--glow-sm);
  text-transform: uppercase;
  pointer-events: none;
}

.card-tile:hover .card-tile__overlay { opacity: 1; }

.card-tile__meta {
  margin-top: 9px;
  text-align: center;
}

/* Quantity / foil / remove controls */
.card-tile__controls {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ctl {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  width: 28px;
  height: 28px;
  color: var(--text-dim);
  background: rgba(6, 3, 13, 0.6);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
}

.ctl:hover { color: var(--neon); border-color: var(--neon); box-shadow: var(--glow-sm); }

.ctl--remove:hover { color: #fb7185; border-color: #fb7185; box-shadow: 0 0 8px rgba(251, 113, 133, 0.5); }

.ctl-qty {
  min-width: 32px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

/* Foil toggle + holo shimmer */
.card-tile__foil {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 1.5px;
  height: 28px;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 0 10px;
  cursor: pointer;
  transition: all .2s;
}

.card-tile__foil:hover { color: var(--neon); border-color: var(--neon); box-shadow: var(--glow-sm); }

.card-tile.is-foil .card-tile__foil {
  color: #0c0618;
  font-weight: 700;
  background: linear-gradient(100deg, #f0abfc, #93c5fd, #6ee7b7, #fde68a, #f0abfc);
  background-size: 300% 100%;
  border-color: transparent;
  box-shadow: 0 0 14px rgba(192, 132, 252, 0.7);
  animation: foilSweep 3s linear infinite;
}

.card-tile.is-foil .card-tile__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg,
    transparent 18%,
    rgba(240, 171, 252, 0.28) 32%,
    rgba(147, 197, 253, 0.30) 44%,
    rgba(110, 231, 183, 0.26) 54%,
    rgba(253, 230, 138, 0.24) 64%,
    transparent 80%);
  background-size: 250% 250%;
  mix-blend-mode: screen;
  animation: foilSweep 3.6s ease-in-out infinite alternate;
}

.card-tile.is-foil .card-tile__img-wrap {
  box-shadow: 0 0 18px rgba(240, 171, 252, 0.55), 0 0 50px rgba(147, 197, 253, 0.3), 0 10px 30px rgba(0,0,0,.7);
}

@keyframes foilSweep {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

.card-tile__name {
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-tile__set {
  color: var(--text-dim);
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============ ORDER BAR ============ */

.order-bar {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 30px;
  background: rgba(14, 7, 28, 0.88);
  border: 1px solid rgba(232, 121, 249, 0.45);
  border-radius: 18px;
  padding: 14px 16px 14px 30px;
  backdrop-filter: blur(14px);
  box-shadow: var(--glow-md), 0 20px 60px rgba(0,0,0,.6);
  animation: barRise .5s cubic-bezier(.2,.8,.3,1.2);
}

@keyframes barRise {
  from { transform: translate(-50%, 120px); opacity: 0; }
  to   { transform: translate(-50%, 0); opacity: 1; }
}

.order-bar__info { display: flex; flex-direction: column; line-height: 1.2; }

.order-bar__count {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.order-bar__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--neon);
  text-shadow: var(--glow-sm);
}

.order-bar__note {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--text-dim);
  white-space: nowrap;
}

/* ============ MODALS ============ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 1, 8, 0.8);
  backdrop-filter: blur(6px);
}

.modal__box {
  position: relative;
  width: min(1100px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(160deg, #140a26, #0b0517);
  border: 1px solid rgba(232, 121, 249, 0.4);
  border-radius: 22px;
  padding: 38px;
  box-shadow: var(--glow-lg), 0 40px 120px rgba(0,0,0,.8);
  animation: modalPop .3s cubic-bezier(.2,.8,.3,1.15);
}

.modal__box--narrow { width: min(520px, 100%); }

@keyframes modalPop {
  from { transform: scale(.92) translateY(24px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.modal__close {
  position: absolute;
  top: 16px; right: 18px;
  font-size: 20px;
  color: var(--text-dim);
  background: none;
  border: none;
  cursor: pointer;
  transition: color .2s, text-shadow .2s;
}

.modal__close:hover { color: var(--neon-hot); text-shadow: var(--glow-sm); }

.modal__title {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 1px;
  margin-bottom: 24px;
  padding-right: 40px;
}

.version-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px;
}

.version-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-dim);
  padding: 40px 0;
  letter-spacing: 2px;
}

.version-tile {
  cursor: pointer;
  border-radius: 10px;
  text-align: center;
  transition: transform .15s;
}

.version-tile:hover { transform: translateY(-4px) scale(1.03); }

.version-tile img {
  width: 100%;
  border-radius: 4.6% / 3.4%;
  box-shadow: 0 6px 20px rgba(0,0,0,.6);
  transition: box-shadow .2s;
  background: #150b28;
  aspect-ratio: 488 / 680;
  object-fit: cover;
}

.version-tile:hover img { box-shadow: 0 0 18px rgba(192,132,252,.6), 0 10px 26px rgba(0,0,0,.7); }

.version-tile.is-selected img {
  outline: 2px solid var(--neon-hot);
  box-shadow: var(--glow-md);
}

.version-tile__label {
  margin-top: 7px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.3;
}

/* Order form */
#orderForm label {
  display: block;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 18px;
}

#orderForm input, #orderForm textarea { margin-top: 7px; }

.order-summary-line {
  color: var(--text-dim);
  margin: -10px 0 22px;
  font-size: 17px;
}

.order-success { text-align: center; padding: 14px 0; }

.order-success__icon {
  font-size: 64px;
  color: var(--neon-hot);
  text-shadow: var(--glow-lg);
  margin-bottom: 12px;
  animation: titlePulse 2.4s ease-in-out infinite alternate;
}

.order-success p { color: var(--text-dim); margin-bottom: 12px; }

.order-success .btn { margin-top: 14px; }

/* ============ FOOTER ============ */

.footer {
  text-align: center;
  padding: 70px 5vw 110px;
  border-top: 1px solid rgba(124, 58, 237, 0.15);
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 2px;
}

.footer__small {
  font-family: var(--font-ui);
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 14px;
  line-height: 1.7;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 760px) {
  .nav__links a:not(.btn) { display: none; }
  .hero__content { padding: 40px 18px; }
  .hero-card { width: 26vw; }
  .hero-card:nth-child(1), .hero-card:nth-child(5) { display: none; }
  .import-row { flex-direction: column; }
  .order-bar { width: calc(100% - 24px); justify-content: space-between; gap: 12px; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
}
