/* ============================================================
   design.css  —  Phase 2
   Fonts:   Inter (readable, professional)
   Primary: #843db2 (purple from logo)
   Accent:  #5b92c2 (blue from logo)
   Buttons: 6px radius (squarish, not pill)
   Removes: gold accent entirely
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Custom properties ─────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:       #07050f;
  --bg-2:     #0d0919;
  --bg-card:  #110d1f;
  --bg-card-2:#16112a;

  /* Purple scale */
  --p-200: #d8b4fe;
  --p-300: #bf80f5;
  --p-400: #a855f7;
  --p-500: #843db2;
  --p-600: #6b2fa0;
  --p-700: #4a1d7a;
  --p-800: #2e0f52;
  --p-900: #1a0830;

  /* Blue accent */
  --b-200: #bfdbfe;
  --b-300: #93c5fd;
  --b-400: #5b92c2;
  --b-500: #3b78b0;
  --b-600: #1e5a94;

  /* Borders */
  --border:    rgba(132,61,178,0.18);
  --border-hi: rgba(132,61,178,0.42);

  /* Text */
  --txt:      #ede8f7;
  --txt-2:    #c0b4d8;
  --txt-muted:#8a7aaa;

  /* Typography */
  --ff-head: 'Inter', sans-serif;
  --ff-body: 'Inter', sans-serif;

  /* Sizing */
  --nav-h:  64px;
  --r-sm:   3px;
  --r-md:   6px;
  --r-lg:   8px;
  --r-xl:   12px;
  --r-2xl:  16px;
  --r-full: 9999px;

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 220ms ease;
  --t-slow: 380ms ease;
  --ease:   cubic-bezier(.4,0,.2,1);

  /* Shadows */
  --sh-btn:   0 2px 12px rgba(132,61,178,.35);
  --sh-hover: 0 8px 32px rgba(0,0,0,.55), 0 0 0 1px var(--border-hi);
  --glow:     0 0 24px rgba(132,61,178,.3);
  --glow-hi:  0 0 36px rgba(132,61,178,.55), 0 4px 12px rgba(0,0,0,.5);
  --glow-blue:0 0 24px rgba(91,146,194,.35);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--txt);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
ul, ol { list-style: none; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--p-700); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--p-500); }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--ff-head);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); }
h3 { font-size: 1.2rem; }
p  { color: var(--txt-2); line-height: 1.75; }

.label {
  display: inline-block;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--b-400);
  margin-bottom: 0.5rem;
}
.grad-purple {
  font-style: normal;
  background: linear-gradient(135deg, var(--p-300), var(--b-300));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Section header ────────────────────────────────────────── */
.sh { margin-bottom: 2rem; }
.sh-title { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }

/* ── Divider ───────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); }
hr       { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--r-md);
  font-weight: 600; font-size: 0.875rem;
  border: 1.5px solid transparent;
  transition: all var(--t-base);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--p-600), var(--p-500));
  color: #fff;
  box-shadow: var(--sh-btn);
}
.btn-primary:hover { box-shadow: var(--glow-hi); transform: translateY(-1px); }

.btn-blue {
  background: linear-gradient(135deg, var(--b-600), var(--b-400));
  color: #fff;
  box-shadow: var(--glow-blue);
}
.btn-blue:hover { box-shadow: 0 0 28px rgba(91,146,194,.6); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: var(--p-500);
  color: var(--p-300);
}
.btn-outline:hover { background: rgba(132,61,178,.15); }

.btn-ghost {
  background: rgba(255,255,255,.04);
  border-color: var(--border);
  color: var(--txt-muted);
}
.btn-ghost:hover { border-color: var(--border-hi); color: var(--txt); background: rgba(255,255,255,.08); }

.btn-danger {
  background: rgba(239,68,68,.08);
  border-color: rgba(239,68,68,.35);
  color: #fca5a5;
}
.btn-danger:hover { background: rgba(239,68,68,.16); border-color: rgba(239,68,68,.6); color: #fecaca; }

.btn-danger-icon {
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(239,68,68,.06); border: 1.5px solid rgba(239,68,68,.25);
  border-radius: var(--r-sm); color: #fca5a5;
  padding: .35rem; cursor: pointer; transition: all var(--t-base);
}
.btn-danger-icon:hover { background: rgba(239,68,68,.16); border-color: rgba(239,68,68,.6); color: #fecaca; }

.btn-sm  { padding: 0.4rem 0.9rem; font-size: 0.78rem; }
.btn-lg  { padding: 0.8rem 1.75rem; font-size: 0.95rem; font-weight: 700; }
.btn-full { width: 100%; justify-content: center; }

/* ── Spinner ───────────────────────────────────────────────── */
.spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Inputs ────────────────────────────────────────────────── */
.input {
  width: 100%; padding: 0.75rem 1rem;
  background: rgba(255,255,255,.04);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  color: var(--txt); font-size: 0.875rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: var(--txt-muted); }
.input:focus {
  border-color: var(--p-500);
  box-shadow: 0 0 0 3px rgba(132,61,178,.18);
}
.input:focus-visible { outline: none; }
/* Selects need explicit dark background globally — browser default is white */
select { color-scheme: dark; }
select option { background: var(--bg-card, #120e20); color: var(--txt, #e2e0ea); }

.form-group { margin-bottom: 1rem; }
.form-label {
  display: block;
  font-size: 0.78rem; font-weight: 600;
  color: var(--txt-2); margin-bottom: 0.35rem;
}

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--r-sm);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.badge-purple { background: rgba(132,61,178,.2); color: var(--p-300); border: 1px solid var(--border-hi); }
.badge-blue   { background: rgba(91,146,194,.2);  color: var(--b-300); border: 1px solid rgba(91,146,194,.35); }
.badge-green  { background: rgba(16,185,129,.15); color: #34d399;      border: 1px solid rgba(16,185,129,.3); }
.badge-red    { background: rgba(239,68,68,.15);  color: #fca5a5;      border: 1px solid rgba(239,68,68,.3); }
.badge-yellow { background: rgba(245,158,11,.15); color: #fbbf24;      border: 1px solid rgba(245,158,11,.3); }

/* ── Alerts ────────────────────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: 0.65rem;
  padding: 0.85rem 1rem; border-radius: var(--r-md);
  font-size: 0.875rem; line-height: 1.5;
}
.alert i { flex-shrink: 0; margin-top: 1px; }
.alert-success { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); color: #6ee7b7; }
.alert-error   { background: rgba(239,68,68,.1);  border: 1px solid rgba(239,68,68,.3);  color: #fca5a5; }
.alert-info    { background: rgba(91,146,194,.1);  border: 1px solid rgba(91,146,194,.3); color: var(--b-200); }
.alert-warning { background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.3); color: #fbbf24; }

/* ── Nav ───────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(7,5,15,0.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
/* Inner container caps width and adds consistent padding */
.nav-inner {
  max-width: 1280px;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-sizing: border-box;
}
@media(max-width:480px){ .nav-inner { padding: 0 1rem; } }
.nav-logo { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; flex-shrink: 0; }
.nav-logo img   { height: 30px; width: auto; }
.nav-logo span  { font-weight: 800; font-size: 1.05rem; color: #fff; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 0.15rem; flex: 1; justify-content: center; }
@media(max-width:768px){ .nav-links { display: none; } }
.nav-link {
  padding: 0.4rem 0.75rem; border-radius: var(--r-md);
  font-size: 0.82rem; font-weight: 500; color: var(--txt-muted);
  white-space: nowrap;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,.08); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.nav-cart-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--r-md);
  border: 1.5px solid var(--border); background: transparent;
  color: var(--txt-muted); font-size: 1rem;
  transition: all var(--t-fast);
}
.nav-cart-btn:hover { border-color: var(--border-hi); color: var(--txt); }
.nav-cart-count {
  position: absolute; top: -6px; right: -6px;
  min-width: 18px; height: 18px; border-radius: 9px; padding: 0 4px;
  background: var(--p-500); color: #fff;
  font-size: 0.62rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.nav-menu-btn {
  display: none;
  align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--r-md);
  border: 1.5px solid var(--border); background: transparent;
  color: var(--txt-muted); font-size: 1.1rem;
  transition: all var(--t-fast);
}
@media(max-width:768px){ .nav-menu-btn { display: flex; } }
.nav-menu-btn:hover { border-color: var(--border-hi); color: var(--txt); }

/* Mobile drawer */
.nav-drawer {
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; z-index: 99;
  background: rgba(7,5,15,.97);
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  padding: 1.5rem clamp(1rem,4vw,2.5rem);
  display: flex; flex-direction: column; gap: 0.25rem;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer .nav-link { font-size: 1.05rem; padding: 0.75rem 1rem; border-radius: var(--r-md); }
.nav-link--cart {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-cart-count--drawer {
  /* .nav-cart-count is normally absolutely positioned in the corner of
     the small circular icon-only cart button in the top bar — here it's
     sitting in a full-width row instead, so it needs to sit inline at
     the row's right end (per its wrapping .nav-link--cart's
     justify-content: space-between) rather than floating in a corner. */
  position: static; min-width: 20px; height: 20px; font-size: 0.72rem;
}

/* ── Toast ─────────────────────────────────────────────────── */
#toastContainer {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9998;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.toast {
  background: var(--bg-card-2); border: 1px solid var(--border-hi);
  border-radius: var(--r-lg); padding: 0.9rem 1.1rem;
  display: flex; align-items: center; gap: 0.65rem;
  font-size: 0.875rem; min-width: 260px; max-width: 400px;
  box-shadow: 0 8px 40px rgba(0,0,0,.7);
  animation: toastIn 0.32s var(--ease) both;
}
.toast.removing { animation: toastOut 0.28s var(--ease) both; }
.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.toast.ok    .toast-icon { color: #34d399; }
.toast.error .toast-icon { color: #fca5a5; }
.toast.info  .toast-icon { color: var(--b-300); }
@keyframes toastIn  { from { opacity:0; transform:translateY(12px) scale(.97); } to { opacity:1; transform:none; } }
@keyframes toastOut { from { opacity:1; transform:none; } to { opacity:0; transform:translateY(6px) scale(.97); } }
@media(max-width:480px){
  #toastContainer { bottom:1rem; right:.75rem; left:.75rem; }
  .toast { min-width:0; max-width:100%; width:100%; }
}

/* ── Payment dialog overlay ────────────────────────────────── */
.pay-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(7,5,15,.88);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
}
.pay-overlay.open { opacity: 1; visibility: visible; }
.pay-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem,4vw,2.5rem);
  width: 100%; max-width: 440px;
  box-shadow: 0 24px 64px rgba(0,0,0,.7), var(--glow);
  transform: translateY(12px);
  transition: transform 0.25s var(--ease);
}
.pay-overlay.open .pay-dialog { transform: translateY(0); }
.pay-dialog__icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(132,61,178,.12);
  border: 2px solid var(--border-hi);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; margin: 0 auto 1rem;
  color: var(--p-300);
}
.pay-dialog h3   { text-align: center; margin-bottom: 0.5rem; font-size: 1.2rem; }
.pay-dialog__sub { text-align: center; color: var(--txt-muted); font-size: 0.875rem; margin-bottom: 1rem; }
.pay-dialog__actions { display: flex; gap: 0.75rem; align-items: stretch; margin-top: 0.25rem; }
.pay-dialog__actions .btn { flex: 1; justify-content: center; padding: 0.8rem 1.5rem; font-size: 0.9rem; }
.pay-steps { display: flex; gap: 0.4rem; margin-bottom: 1.5rem; }
.pay-step  { flex: 1; height: 3px; border-radius: 2px; background: var(--border); transition: background 0.3s; }
.pay-step.done   { background: var(--p-500); }
.pay-step.active { background: linear-gradient(90deg,var(--p-500),var(--b-400)); }

/* ── Share prompt ──────────────────────────────────────────── */
.share-prompt {
  background: linear-gradient(135deg, rgba(132,61,178,.12), rgba(91,146,194,.12));
  border: 1px solid var(--border-hi);
  border-radius: var(--r-xl); padding: 1.5rem; text-align: center; margin-top: 1.5rem;
}
.share-prompt h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.share-prompt p  { font-size: 0.875rem; color: var(--txt-muted); margin-bottom: 1rem; }
.share-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }

/* ── Variant selector ──────────────────────────────────────── */
.variant-section { margin-bottom: 1.25rem; }
.variant-label   { font-size: 0.78rem; font-weight: 600; color: var(--txt-2); margin-bottom: 0.6rem; }
.variant-btns    { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.variant-btn {
  padding: 0.45rem 1rem; border-radius: var(--r-md);
  font-size: 0.82rem; font-weight: 600;
  border: 1.5px solid var(--border); background: transparent; color: var(--txt-muted);
  cursor: pointer; transition: all var(--t-fast);
}
.variant-btn:hover:not(:disabled) { border-color: var(--p-500); color: var(--p-300); }
.variant-btn.selected { background: rgba(132,61,178,.2); border-color: var(--p-500); color: var(--p-200); }
.variant-btn:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.variant-btn.sold-out { opacity: .4; cursor: not-allowed; position: relative; }
.colour-swatch {
  width: 32px; height: 32px; border-radius: var(--r-md); padding: 0;
  /* --border is a very low-opacity purple (rgba(132,61,178,.18)) meant for
     subtle section dividers on the dark theme background — fine for most
     UI, but a swatch whose fill colour is itself dark (black, navy, deep
     green, etc.) would visually fuse into the page through a border that
     faint. Swatches need a border that reads clearly regardless of what
     colour is inside it, so this uses a fixed higher-contrast tone instead
     of the theme border, plus a soft inset ring for extra separation on
     the darkest fills. */
  border: 2px solid rgba(255,255,255,0.35);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25);
}
.colour-swatch:hover:not(:disabled) { border-color: rgba(255,255,255,0.6); }
.colour-swatch.selected { border-color: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25), 0 0 0 2px var(--p-500); }
.colour-swatch:disabled { opacity: .35; }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--bg-2); border-top: 1px solid var(--border);
  padding: 3rem clamp(1rem,4vw,2.5rem) 1.5rem;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 2rem;
}
@media(max-width:768px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:480px){ .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-logo  { height: 28px; width: auto; }
.footer-tagline { font-size: 0.82rem; color: var(--txt-muted); line-height: 1.6; }
.footer-social  { display: flex; gap: 0.4rem; margin-top: 0.25rem; }
.footer-social a {
  width: 34px; height: 34px; border-radius: var(--r-md);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--txt-muted); font-size: 0.9rem; transition: all var(--t-fast);
}
.footer-social a:hover { border-color: var(--border-hi); color: var(--p-300); }
.footer-col h4 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--txt-muted); margin-bottom: 0.85rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-col li a { font-size: 0.85rem; color: var(--txt-muted); transition: color var(--t-fast); }
.footer-col li a:hover { color: var(--txt); }
.footer-bottom {
  max-width: 1200px; margin: 2rem auto 0;
  padding-top: 1.25rem; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem;
  font-size: 0.78rem; color: var(--txt-muted);
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes glow {
  0%,100% { box-shadow: 0 0 14px rgba(132,61,178,.3); }
  50%      { box-shadow: 0 0 28px rgba(132,61,178,.6); }
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.fade-up   { animation: fadeUp 0.5s var(--ease) both; }
.fade-up-2 { animation: fadeUp 0.5s var(--ease) 0.1s both; }
.fade-up-3 { animation: fadeUp 0.5s var(--ease) 0.2s both; }
.fade-in   { animation: fadeIn 0.4s var(--ease) both; }

/* ── Skeleton loader ───────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,.04) 25%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.04) 75%);
  background-size: 400px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--r-md);
}

/* ── Utility ───────────────────────────────────────────────── */
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }


/* ═══════════════════════════════════════════════════════
   MOBILE RESPONSIVENESS AUDIT FIXES
   Ensures full mobile-first coverage across all public pages
   ═══════════════════════════════════════════════════════ */

/* ── Base body / overflow guard ── */
html, body { max-width: 100%; overflow-x: hidden; }
img, video, iframe { max-width: 100%; }

/* ── Nav: ensure burger always visible, logo truncates ── */
@media(max-width:768px) {
  .nav-links { display: none !important; }
  .nav-logo span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media(min-width:769px) {
  .nav-menu-btn { display: none !important; }
  .nav-drawer   { display: none !important; }
}

/* ── Nav drawer: full-screen on mobile ── */
.nav-drawer {
  position: fixed; inset: 0; top: var(--nav-h);
  background: rgba(7,5,15,.98); backdrop-filter: blur(16px);
  padding: 1.5rem 1.25rem;
  display: flex; flex-direction: column; gap: .25rem;
  transform: translateX(100%); transition: transform .28s var(--ease);
  z-index: 999; overflow-y: auto;
}
.nav-drawer.open { transform: translateX(0); }

/* ── Cart button text hidden on very small screens ── */
@media(max-width:360px) {
  .nav-cart-btn { padding: .4rem; }
}

/* ── Forms: inputs full-width on mobile ── */
@media(max-width:600px) {
  .form-row,
  .db-grid.g1,
  .db-grid { grid-template-columns: 1fr !important; }

  .input, select.input, textarea.input {
    font-size: 16px; /* Prevents iOS zoom on focus */
  }
}

/* ── Buttons: no shrinking on mobile ── */
@media(max-width:480px) {
  .btn { white-space: nowrap; min-height: 40px; }
  .btn-full { width: 100%; }
}

/* ── Tables: horizontal scroll on small screens ── */
.db-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media(max-width:600px) {
  .db-table th, .db-table td { font-size: .72rem; padding: .5rem .6rem; }
}

/* ── Cards: full-bleed padding on small screens ── */
@media(max-width:480px) {
  .db-card { padding: 1rem; border-radius: var(--r-lg); }
}

/* ── Shop product grid ── */
@media(max-width:480px) {
  .products-grid { grid-template-columns: 1fr 1fr !important; gap: .75rem !important; }
  .product-card__img { height: 160px !important; }
}
@media(max-width:360px) {
  .products-grid { grid-template-columns: 1fr !important; }
}

/* ── Checkout layout ── */
@media(max-width:640px) {
  .checkout-wrap {
    padding-top: calc(var(--nav-h) + 1.25rem) !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* ── Ticket stub cards ── */
@media(max-width:480px) {
  .ticket-stub { grid-template-columns: 1fr auto !important; }
  .ticket-stub__price-col { min-width: 88px !important; }
  .ticket-stub__name { font-size: .9rem !important; }
}

/* ── Event hero on ticket page ── */
@media(max-width:480px) {
  .event-hero { min-height: 260px !important; }
  .event-hero__title { font-size: clamp(1.4rem,7vw,2rem) !important; }
  .event-hero__content { padding: 1.5rem 1rem 1.5rem !important; }
}

/* ── Bundle cards ── */
@media(max-width:560px) {
  .bundle-card { padding: 1.25rem !important; }
}

/* ── Footer: single column on mobile ── */
@media(max-width:640px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .footer { padding: 2.5rem 1.25rem 1.5rem !important; }
}

/* ── Payment dialog overlay: full-screen on mobile ── */
@media(max-width:520px) {
  .pay-dialog {
    max-width: 100% !important;
    border-radius: var(--r-xl) var(--r-xl) 0 0 !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    max-height: 90dvh !important;
    overflow-y: auto !important;
  }
  .pay-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }
}

/* ── Dashboard sidebar: collapsed on mobile ── */
@media(max-width:900px) {
  .db-layout { grid-template-columns: 1fr !important; }
  .db-sidebar {
    position: fixed; top: 0; left: -260px; width: 260px; height: 100vh;
    z-index: 500; overflow-y: auto;
    transition: left .28s var(--ease);
    box-shadow: 4px 0 32px rgba(0,0,0,.5);
  }
  .db-sidebar.open { left: 0; }
  .db-main { min-width: 0; }
}

/* ── Success/payment pages ── */
@media(max-width:480px) {
  .success-wrap, .wrap { padding: 1.5rem 1rem 4rem !important; }
  .success-card, .card { padding: 1.5rem 1.25rem !important; }
}

/* ── Qty stepper touch targets ── */
.qty-btn { min-width: 38px; min-height: 38px; }

/* ── Input autofill background fix (dark mode) ── */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--bg-card) inset !important;
  -webkit-text-fill-color: var(--txt) !important;
  caret-color: var(--txt);
}

/* ── Touch: remove 300ms delay on links/buttons ── */
a, button, [role="button"] { touch-action: manipulation; }

/* ── Safe area insets (iPhone notch / home bar) ── */
.nav { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
footer.footer { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }

/* ── Global mini audio player (band/static/js/shared.js: MiniPlayer) ──────
 * Single shared player used on the homepage and the music page (and any
 * future page that lists tracks). Markup is built by JS, not by the page
 * template, so there's exactly one implementation to fix instead of two
 * drifting copies.
 *
 * Centering approach: #gp-miniPlayerWrap is a fixed, full-width
 * (left:0;right:0) flex container that just centers its one child via
 * justify-content — no left:50%/transform math involved, so it can't be
 * thrown off by ancestor overflow, transformed ancestors, or scrollbar
 * width quirks the way left:50%+translateX centering can be. The actual
 * visible card is #gp-miniPlayer, a normal (non-fixed) flex item inside
 * it. */
#gp-miniPlayerWrap {
  position: fixed; left: 0; right: 0; bottom: 1.25rem;
  z-index: 90; display: flex; justify-content: center;
  padding: 0 1rem; box-sizing: border-box;
  pointer-events: none; /* only the card itself should catch clicks */
}
#gp-miniPlayerWrap { display: none; }
#gp-miniPlayerWrap.active { display: flex; animation: fadeUp 0.3s var(--ease) both; }
#gp-miniPlayer {
  pointer-events: auto;
  width: 100%; max-width: 460px; box-sizing: border-box;
  background: rgba(11,0,24,0.92); border: 1px solid var(--border-hi);
  border-radius: var(--r-xl); padding: 0.8rem 1.1rem;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 16px 60px rgba(0,0,0,0.7), var(--glow);
  display: flex; align-items: center; gap: 0.85rem;
}
#gp-miniPlayer .gp-art { width: 42px; height: 42px; border-radius: var(--r-md); object-fit: cover; flex-shrink: 0; background: var(--p-900); }
#gp-miniPlayer .gp-info { flex: 1 1 auto; min-width: 0; overflow: hidden; }
#gp-miniPlayer .gp-title { font-weight: 700; font-size: 0.85rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#gp-miniPlayer .gp-album { font-size: 0.72rem; color: var(--txt-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#gp-miniPlayer .gp-progress { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.3rem; width: 100%; min-width: 0; padding: 4px 0; }
#gp-miniPlayer .gp-time { font-size: 0.68rem; color: var(--txt-muted); font-variant-numeric: tabular-nums; flex: 0 0 auto; }
#gp-miniPlayer .gp-bar {
  flex: 1 1 0%; min-width: 0; width: 0; height: 3px; -webkit-appearance: none; appearance: none;
  background: rgba(255,255,255,0.14); border-radius: 2px; cursor: pointer; outline: none;
}
#gp-miniPlayer .gp-bar::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--p-400); margin-top: -4.5px; }
#gp-miniPlayer .gp-bar::-moz-range-thumb { width: 12px; height: 12px; border: none; border-radius: 50%; background: var(--p-400); }
#gp-miniPlayer .gp-ctrl { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
#gp-miniPlayer .gp-btn {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg,var(--p-600),var(--p-500)); border: none; color: #fff;
  font-size: 0.95rem; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-btn); transition: transform var(--t-fast); cursor: pointer;
}
#gp-miniPlayer .gp-btn:hover { transform: scale(1.08); }
#gp-miniPlayer .gp-close {
  background: none; border: none; color: var(--txt-muted); font-size: 1rem;
  cursor: pointer; flex-shrink: 0; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
}
#gp-miniPlayer .gp-close:hover { color: var(--txt); }

#gp-spotifyPopup {
  position: fixed; left: 50%; right: auto; bottom: 1.25rem;
  transform: translateX(-50%); margin: 0;
  width: calc(100% - 2rem); max-width: 420px; box-sizing: border-box;
  z-index: 91;
  border-radius: 12px; overflow: visible; box-shadow: 0 16px 60px rgba(0,0,0,.7);
}
#gp-spotifyPopup iframe { width: 100%; height: 152px; border: 0; border-radius: 12px; display: block; }
#gp-spotifyPopup .gp-spotify-close {
  position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.55); border: none;
  color: #fff; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}

@media (max-width: 480px) {
  #gp-miniPlayerWrap { bottom: 0.75rem; padding: 0 0.75rem; }
  #gp-spotifyPopup { width: calc(100% - 1.5rem); bottom: 0.75rem; }
  #gp-miniPlayer { padding: 0.8rem; gap: 0.6rem; border-radius: var(--r-lg); }
  #gp-miniPlayer .gp-art { width: 34px; height: 34px; }
  #gp-miniPlayer .gp-title { font-size: 0.78rem; }
  #gp-miniPlayer .gp-album { font-size: 0.66rem; }
  #gp-miniPlayer .gp-time { display: none; }
  #gp-miniPlayer .gp-btn { width: 30px; height: 30px; font-size: 0.85rem; }
}
