/* ============================================================
   NEW SOUND STUDIO — Design System (style.css)
   Base layer: custom properties, reset, typography, utilities,
   components. Dark/light overrides live in dark.css / light.css.
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&family=Syne:wght@400;500;600;700;800&family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Colour palette */
  --black:      #060606;
  --white-dark: #F0EDE8;
  --white-light:#F5F2EC;
  --gold:       #f51919;
  --gold-dim:   #cc1515;
  --gray-1:     #1A1A1A;
  --gray-2:     #252525;
  --gray-3:     #333333;
  --gray-4:     #666666;
  --gray-5:     #999999;

  /* Semantic aliases (overridden per theme) */
  --bg:         var(--black);
  --bg-card:    var(--gray-1);
  --bg-hover:   var(--gray-2);
  --text:       var(--white-dark);
  --text-muted: var(--gray-5);
  --text-faint: var(--gray-4);
  --border:     var(--gray-3);
  --border-dim: var(--gray-2);
  --accent:     var(--gold);
  --accent-dim: var(--gold-dim);

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body:    'Syne', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  /* Scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;

  /* Spacing */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;

  /* Layout */
  --max-w:     1200px;
  --max-w-sm:  640px;
  --max-w-md:  768px;
  --max-w-lg:  1024px;

  /* Radii */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.4);
  --shadow:     0 4px 12px rgba(0,0,0,.5);
  --shadow-lg:  0 8px 24px rgba(0,0,0,.6);
  --shadow-gold:0 0 20px rgba(245,25,25,.25);

  /* Transitions */
  --ease:       cubic-bezier(0.4,0,0.2,1);
  --duration:   200ms;
  --duration-lg:400ms;

  /* Z-index layers */
  --z-base:    1;
  --z-sticky:  100;
  --z-modal:   200;
  --z-toast:   300;
  --z-cursor:  9999;

  /* Nav height */
  --nav-h: 64px;
}

/* ── Reset ────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
  transition: background-color var(--duration) var(--ease),
              color var(--duration) var(--ease);
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { line-height: 1.15; font-weight: 700; }

/* ── Custom Gold Cursor (desktop) ────────────────────────── */
@media (pointer: fine) {
  body { cursor: none; }

  #cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--gold);
    pointer-events: none;
    z-index: var(--z-cursor);
    transform: translate(-50%,-50%);
    opacity: 0;
    transition: transform 80ms var(--ease),
                opacity var(--duration) var(--ease);
  }

  #cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    pointer-events: none;
    z-index: var(--z-cursor);
    transform: translate(-50%,-50%);
    opacity: 0;
    transition: transform 140ms var(--ease),
                width var(--duration) var(--ease),
                height var(--duration) var(--ease),
                opacity var(--duration) var(--ease);
    opacity: 0.6;
  }

  body:has(a:hover) #cursor-ring,
  body:has(button:hover) #cursor-ring,
  body:has([data-cursor-expand]:hover) #cursor-ring {
    width: 48px; height: 48px; opacity: 1;
  }

  a, button, [data-cursor-expand] { cursor: none; }
}

/* ── Layout Helpers ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section { padding: var(--space-24) 0; }
.section-sm { padding: var(--space-16) 0; }
.section-lg { padding: calc(var(--space-24) * 1.5) 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--space-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-8); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--space-6); }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ── Typography ───────────────────────────────────────────── */
.font-display { font-family: var(--font-display); }
.font-body    { font-family: var(--font-body); }
.font-mono    { font-family: var(--font-mono); }

.text-xs   { font-size: var(--text-xs); }
.text-sm   { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg   { font-size: var(--text-lg); }
.text-xl   { font-size: var(--text-xl); }
.text-2xl  { font-size: var(--text-2xl); }
.text-3xl  { font-size: var(--text-3xl); }
.text-4xl  { font-size: var(--text-4xl); }
.text-5xl  { font-size: var(--text-5xl); }
.text-6xl  { font-size: var(--text-6xl); }
.text-7xl  { font-size: var(--text-7xl); }

.text-muted  { color: var(--text-muted); }
.text-faint  { color: var(--text-faint); }
.text-gold   { color: var(--gold); }
.text-center { text-align: center; }
.text-upper  { text-transform: uppercase; letter-spacing: 0.1em; }
.text-small-caps { font-variant: small-caps; letter-spacing: 0.05em; }

.heading-xl {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(var(--text-5xl), 12vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.heading-lg {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(var(--text-4xl), 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.heading-md {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.subheading {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* ── Logo ─────────────────────────────────────────────────── */
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}

.logo__nsw {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.logo__full {
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
  border: 2px solid var(--gold);
}
.btn-primary:hover {
  background: transparent;
  color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 2px solid transparent;
  padding-left: var(--space-2);
  padding-right: var(--space-2);
}
.btn-ghost:hover { color: var(--gold); }

.btn-danger {
  background: #c0392b;
  color: #fff;
  border: 2px solid #c0392b;
}
.btn-danger:hover { background: #a93226; border-color: #a93226; }

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn-lg {
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-base);
}

.btn-full { width: 100%; }

.btn:disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  height: var(--nav-h);
  background: rgba(6,6,6,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dim);
  transition: background var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-6);
}

.nav__links {
  display: flex;
  gap: var(--space-6);
  align-items: center;
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--duration) var(--ease);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width var(--duration) var(--ease);
}
.nav__link:hover, .nav__link.active {
  color: var(--text);
}
.nav__link:hover::after, .nav__link.active::after { width: 100%; }

.nav__controls {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav__lang-toggle {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.nav__lang-toggle span {
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--duration) var(--ease),
              background var(--duration) var(--ease);
}
.nav__lang-toggle span.active {
  color: var(--gold);
  background: rgba(245,25,25,.12);
}
.nav__lang-toggle .sep { color: var(--border); user-select: none; }

.nav__theme-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: color var(--duration) var(--ease),
              background var(--duration) var(--ease);
}
.nav__theme-btn:hover { color: var(--gold); background: rgba(245,25,25,.1); }
.nav__theme-btn svg { width: 18px; height: 18px; }

.nav__cart-btn {
  position: relative;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: color var(--duration) var(--ease),
              background var(--duration) var(--ease);
}
.nav__cart-btn:hover { color: var(--gold); background: rgba(245,25,25,.1); }
.nav__cart-btn svg { width: 20px; height: 20px; }

.cart-badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  background: var(--gold);
  color: var(--black);
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  display: none;
}
.cart-badge.visible { display: flex; }

/* Mobile hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text);
  cursor: pointer;
  z-index: var(--z-sticky);
  padding: 0;
  line-height: 1;
}

@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav__links { display: none; }
}

.nav__mobile-menu {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--bg);
  padding: var(--space-8) var(--space-6);
  flex-direction: column;
  gap: var(--space-6);
  z-index: calc(var(--z-sticky) - 1);
}

.nav__mobile-menu .nav__link { font-size: var(--text-2xl); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 50%,
    rgba(245,25,25,0.06) 0%,
    transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--nav-h) + var(--space-8));
  padding-bottom: var(--space-16);
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-4);
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: var(--space-6);
}

.hero__sub {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: var(--space-10);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ── Trust Bar / Marquee ──────────────────────────────────── */
.trust-bar {
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
  padding: var(--space-4) 0;
  overflow: hidden;
  background: var(--bg-card);
}

.marquee {
  display: flex;
  gap: var(--space-12);
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  will-change: transform;
}

.marquee-wrap {
  display: flex;
  overflow: hidden;
}

.marquee__item {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}

.marquee__item::before {
  content: '✦';
  color: var(--gold);
  font-size: var(--text-xs);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Section Headers ──────────────────────────────────────── */
.section-header {
  margin-bottom: var(--space-12);
}

.section-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-3);
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--duration) var(--ease),
              transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}
.card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-body { padding: var(--space-6); }

/* Product Card */
.product-card { display: flex; flex-direction: column; }

.product-card__image {
  aspect-ratio: 16/9;
  background: var(--gray-2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--duration-lg) var(--ease);
}

.product-card:hover .product-card__image img {
  transform: scale(1.04);
}

.product-card__placeholder {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  color: var(--gold-dim);
  opacity: 0.4;
  letter-spacing: 0.1em;
}

.product-card__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.badge-new        { background: var(--gold); color: var(--black); }
.badge-bestseller { background: rgba(245,25,25,.12); color: var(--gold); border: 1px solid var(--gold-dim); }
.badge-coming     { background: transparent; color: var(--text-muted); border: 1px dashed var(--gray-5); letter-spacing: 0.05em; }

.product-card__body { padding: var(--space-5); flex: 1; display: flex; flex-direction: column; }
.product-card__name { font-family: var(--font-body); font-weight: 700; font-size: var(--text-base); margin-bottom: var(--space-2); }
.product-card__desc { font-family: var(--font-body); font-weight: 400; font-size: var(--text-sm); color: var(--text-muted); flex: 1; margin-bottom: var(--space-4); line-height: 1.5; }
.product-card__footer { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.product-card__price { font-family: var(--font-mono); font-size: var(--text-lg); font-weight: 500; color: var(--gold); }
.product-card__compare {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: var(--space-2);
}

/* Pain Cards */
.pain-card {
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  position: relative;
  overflow: hidden;
  transition: border-color var(--duration) var(--ease);
}
.pain-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245,25,25,.05) 0%, transparent 60%);
}
.pain-card:hover { border-color: var(--gold-dim); }

.pain-card__number {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: var(--space-4);
}

.pain-card__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-2xl);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.pain-card__body { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.7; }

/* ── Launch Banner ────────────────────────────────────────── */
.launch-banner {
  background: linear-gradient(90deg, var(--gold-dim), var(--gold), var(--gold-dim));
  color: var(--black);
  text-align: center;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  position: relative;
}

.launch-banner__close {
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--black);
  opacity: 0.5;
  line-height: 1;
  font-size: var(--text-base);
}
.launch-banner__close:hover { opacity: 1; }

/* ── Forms ────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: var(--space-2); }

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: var(--text-base);
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}
.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,25,25,.15);
}
.form-input::placeholder { color: var(--text-faint); }

.form-input-row {
  display: flex;
  gap: 0;
}
.form-input-row .form-input {
  border-radius: var(--radius) 0 0 var(--radius);
  flex: 1;
  border-right: none;
}
.form-input-row .btn {
  border-radius: 0 var(--radius) var(--radius) 0;
  border: 1px solid var(--border);
  border-left: none;
}

.form-error { font-size: var(--text-xs); color: #e74c3c; }
.form-hint  { font-size: var(--text-xs); color: var(--text-muted); }

/* ── Badges / Tags ────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(245,25,25,.12);
  color: var(--gold);
  border: 1px solid rgba(245,25,25,.25);
}

/* ── Dividers ─────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border-dim);
  margin: var(--space-8) 0;
}

.divider-gold {
  border-top-color: var(--gold-dim);
}

/* ── Modals ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,6,6,0.85);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration) var(--ease);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  width: 100%;
  max-width: 480px;
  transform: translateY(16px);
  transition: transform var(--duration) var(--ease);
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.modal__close {
  color: var(--text-muted);
  font-size: var(--text-xl);
  line-height: 1;
  margin-top: 2px;
}
.modal__close:hover { color: var(--text); }

/* ── Toast Notifications ─────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  box-shadow: var(--shadow-lg);
  pointer-events: all;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transform: translateX(110%);
  transition: transform var(--duration) var(--ease);
  max-width: 320px;
}
.toast.show { transform: translateX(0); }
.toast.success { border-left: 3px solid #27ae60; }
.toast.error   { border-left: 3px solid #e74c3c; }
.toast.info    { border-left: 3px solid var(--gold); }

/* ── Scroll Reveal ────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-lg) var(--ease),
              transform var(--duration-lg) var(--ease);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="left"]  { transform: translateX(-24px); }
[data-reveal="right"] { transform: translateX(24px); }
[data-reveal="left"].revealed,
[data-reveal="right"].revealed { transform: translateX(0); }

/* Stagger children */
[data-reveal-group] > * { opacity: 0; transform: translateY(20px); transition: opacity var(--duration-lg) var(--ease), transform var(--duration-lg) var(--ease); }
[data-reveal-group] > *.revealed { opacity: 1; transform: translateY(0); }

/* ── Push Notification Prompt ─────────────────────────────── */
.push-prompt {
  position: fixed;
  bottom: var(--space-6);
  left: var(--space-6);
  z-index: var(--z-toast);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  max-width: 320px;
  box-shadow: var(--shadow-lg);
  transform: translateY(calc(100% + var(--space-6)));
  transition: transform var(--duration-lg) var(--ease);
}
.push-prompt.show { transform: translateY(0); }
.push-prompt__title { font-weight: 700; margin-bottom: var(--space-2); font-size: var(--text-sm); }
.push-prompt__text  { font-size: var(--text-xs); color: var(--text-muted); margin-bottom: var(--space-4); line-height: 1.6; }
.push-prompt__actions { display: flex; gap: var(--space-3); }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--gray-1);
  border-top: 1px solid var(--border-dim);
  padding: var(--space-16) 0 var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer__brand-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: var(--space-4);
  max-width: 260px;
}

.footer__heading {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--space-4);
}

.footer__links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer__link {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--duration) var(--ease);
}
.footer__link:hover { color: var(--gold); }

.footer__social {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.footer__social-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: color var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}
.footer__social-icon:hover { color: var(--gold); border-color: var(--gold-dim); }
.footer__social-icon svg { width: 16px; height: 16px; }

.footer__bottom {
  border-top: 1px solid var(--border-dim);
  padding-top: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer__copyright {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--text-faint);
}

.footer__legal {
  display: flex;
  gap: var(--space-6);
}

.footer__legal a {
  font-size: var(--text-xs);
  color: var(--text-faint);
  transition: color var(--duration) var(--ease);
}
.footer__legal a:hover { color: var(--gold); }

/* ── Utility ──────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.visually-hidden { visibility: hidden; }
.hidden { display: none !important; }
.block  { display: block; }
.inline { display: inline; }
.relative { position: relative; }

.mt-2  { margin-top: var(--space-2); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }

.w-full  { width: 100%; }
.h-full  { height: 100%; }
.min-h-screen { min-height: 100svh; }

.overflow-hidden { overflow: hidden; }
.truncate {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Loading spinner */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Gold shimmer for skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--gray-2) 25%, var(--gray-3) 50%, var(--gray-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius);
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}

@media (max-width: 768px) {
  :root { --nav-h: 56px; }

  .container { padding: 0 var(--space-4); }
  .section { padding: var(--space-16) 0; }

  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }

  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .hero__headline { font-size: clamp(2.5rem, 12vw, 5rem); }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .footer__bottom { flex-direction: column; text-align: center; }

  .toast-container { left: var(--space-4); right: var(--space-4); bottom: var(--space-4); }
  .toast { max-width: none; }
  .push-prompt { left: var(--space-4); right: var(--space-4); max-width: none; }

  .modal { padding: var(--space-6); }
}

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
  .hero__ctas { flex-direction: column; align-items: flex-start; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
}

/* ── Toggle Switch (Audio Engine) ────────────────────────── */
.toggle-switch {
  display: inline-flex;
  cursor: pointer;
  user-select: none;
}

.toggle-switch input {
  display: none;
}

.toggle-label {
  display: flex;
  background: var(--black);
  border: 2px solid var(--gold);
  border-radius: 24px;
  padding: 4px;
  width: 160px;
}

.raw-label,
.processed-label {
  flex: 1;
  text-align: center;
  padding: 8px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 12px;
  transition: all 0.3s ease;
  color: var(--white-dark);
}

.toggle-switch input:not(:checked) ~ .toggle-label .raw-label {
  background: var(--gold);
  color: var(--black);
}

.toggle-switch input:checked ~ .toggle-label .processed-label {
  background: var(--gold);
  color: var(--black);
}

.toggle-container {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-4);
}

/* ══════════════════════════════════════════════════════════════
   NSS Global Audio Player
══════════════════════════════════════════════════════════════ */
#nss-player {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 68px;
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.65), 0 -1px 0 rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 0 var(--space-6);
  z-index: 9000;
  transform: translateY(100%);
  transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}
#nss-player.nss-player--visible { transform: translateY(0); }

.nss-player__info {
  display: flex; align-items: center; gap: var(--space-3);
  flex: 0 0 200px; min-width: 0;
}
.nss-player__thumb {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: var(--gray-3);
  flex-shrink: 0;
}
.nss-player__meta { min-width: 0; overflow: hidden; }
.nss-player__title {
  display: block;
  font-size: var(--text-sm); font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nss-player__artist {
  display: block;
  font-size: 11px; font-family: var(--font-mono); color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nss-player__centre {
  flex: 1; display: flex; align-items: center; gap: var(--space-4); min-width: 0;
}
.nss-player__playpause {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gold); color: var(--black);
  border: none; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.nss-player__playpause:hover { transform: scale(1.1); box-shadow: var(--shadow-gold); }
.nss-player__prog-wrap { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nss-player__progress {
  width: 100%; height: 4px;
  background: var(--gray-3); border-radius: 2px;
  cursor: pointer; position: relative;
  transition: height var(--duration) var(--ease);
}
.nss-player__progress:hover { height: 6px; }
.nss-player__progress-fill {
  height: 100%; width: 0; background: var(--gold);
  border-radius: 2px; transition: width 100ms linear; pointer-events: none;
}
.nss-player__time {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px; color: var(--text-muted);
}
.nss-player__close {
  background: none; border: none; cursor: pointer; color: var(--text-muted);
  padding: var(--space-2); display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); transition: color var(--duration) var(--ease);
  flex-shrink: 0;
}
.nss-player__close:hover { color: var(--text); }

.nss-player__vol-wrap {
  display: flex; align-items: center; gap: var(--space-2);
  flex-shrink: 0; color: var(--text-muted);
  margin-right: var(--space-2);
}
.nss-player__volume {
  -webkit-appearance: none; appearance: none;
  width: 72px; height: 3px;
  background: rgba(255,255,255,0.15); border-radius: 2px;
  cursor: pointer; outline: none;
  accent-color: var(--gold);
  transition: width var(--duration) var(--ease);
}
.nss-player__volume:hover { width: 96px; }
.nss-player__volume::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px;
  border-radius: 50%; background: var(--gold); cursor: pointer;
  box-shadow: 0 0 0 0 rgba(245,25,25,0);
  transition: box-shadow var(--duration) var(--ease);
}
.nss-player__volume:hover::-webkit-slider-thumb {
  box-shadow: 0 0 8px rgba(245,25,25,0.5);
}
.nss-player__volume::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); cursor: pointer; border: none;
}

.nss-player__mic {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gray-2, #1c1c1c); color: var(--text);
  border: 1px solid var(--border); cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--duration) var(--ease), background var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.nss-player__mic:hover {
  transform: scale(1.1);
  border-color: var(--gold);
}
.nss-player__mic--recording {
  background: #f51919 !important;
  color: #fff !important;
  border-color: #f51919 !important;
  animation: mic-pulse 1.2s infinite ease-in-out;
}

@keyframes mic-pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 25, 25, 0.7); }
  70% { transform: scale(1.08); box-shadow: 0 0 0 10px rgba(245, 25, 25, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 25, 25, 0); }
}

#nss-scratchpad-overlay {
  transition: all 0.3s ease-in-out;
}

@media (max-width: 640px) {
  #nss-player { padding: 0 var(--space-4); gap: var(--space-3); }
  .nss-player__info { flex: 0 0 130px; }
}

/* ── Beat card play button — centered overlay on cover image ─── */
.card-play-btn {
  /* Hard reset — kills Windows native white-box appearance */
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  border: none;
  padding: 0;
  margin: 0;
  background: none;
  font: inherit;

  /* Absolute centering inside the image container */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;

  /* Frosted-glass disc */
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(6, 6, 6, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 0 1.5px rgba(255,255,255,0.18), 0 4px 24px rgba(0,0,0,0.45);

  /* Flex to center the icon */
  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  /* Hidden by default, revealed on card hover or when playing */
  opacity: 0;
  transition: opacity 160ms ease, transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

/* Reveal on parent card hover */
.product-card:hover .card-play-btn,
.card:hover .card-play-btn {
  opacity: 1;
}

/* Hover state — scale up slightly */
.card-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(6, 6, 6, 0.75);
  box-shadow: 0 0 0 1.5px rgba(255,255,255,0.28), 0 6px 28px rgba(0,0,0,0.55);
}

/* Playing state — always visible, accent colour ring */
.card-play-btn--playing {
  opacity: 1;
  background: rgba(245, 25, 25, 0.45);
  box-shadow: 0 0 0 1.5px rgba(245,25,25,0.55), 0 4px 24px rgba(245,25,25,0.25);
}
.card-play-btn--playing:hover {
  transform: translate(-50%, -50%) scale(1.06);
  background: rgba(245, 25, 25, 0.65);
}

/* Play triangle icon — CSS controls size, overriding any HTML attributes */
.card-play-btn .icon-play {
  width: 20px;
  height: 20px;
  display: block;
  color: #ffffff;
  flex-shrink: 0;
  /* Optical centering: right-pointing triangle sits slightly left of geometric center */
  margin-left: 3px;
  pointer-events: none;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
}

/* Equalizer bars (playing state) */
.card-play-btn .icon-eq {
  display: none;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

/* Toggle: play ↔ equalizer */
.card-play-btn--playing .icon-play { display: none; }
.card-play-btn--playing .icon-eq   { display: flex; }

/* Legacy __inner wrapper — kept for backwards compat, no visual effect */
.card-play-btn__inner {
  display: contents;
}

/* Equalizer bar animation */
@keyframes nss-eq {
  0%, 100% { transform: scaleY(0.3); }
  50%       { transform: scaleY(1);   }
}
.nss-eq {
  display: flex; align-items: flex-end; gap: 2px;
  height: 18px; width: 18px; justify-content: center;
}
.nss-eq__bar {
  width: 3px; height: 100%; background: currentColor;
  border-radius: 1px; transform-origin: bottom;
  animation: nss-eq 0.7s ease-in-out infinite;
}
.nss-eq__bar:nth-child(2) { animation-delay: 0.17s; }
.nss-eq__bar:nth-child(3) { animation-delay: 0.34s; }

/* ── Cart Add-to-Cart Animations ────────────────────────────────── */
@keyframes nss-cart-bounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.4) rotate(-10deg); }
  55%  { transform: scale(1.2) rotate(7deg); }
  75%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}
@keyframes nss-cart-glow {
  0%, 100% { box-shadow: none; }
  40%       { box-shadow: 0 0 0 5px rgba(212, 168, 71, 0.4), 0 0 14px rgba(212, 168, 71, 0.2); }
}
.cart-btn--bounce {
  animation: nss-cart-bounce 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) both,
             nss-cart-glow 0.55s ease-in-out both;
}
.btn--added {
  background: rgba(80, 200, 120, 0.12) !important;
  color: #50c878 !important;
  border-color: rgba(80, 200, 120, 0.5) !important;
  cursor: default;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   Beat Detail Modal (BDM)
   ═══════════════════════════════════════════════════════════════ */

/* Overlay backdrop */
.bdm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: bdm-fade-in .18s ease both;
}
@keyframes bdm-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Modal container */
.bdm {
  position: relative;
  background: var(--gray-1);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 840px;
  max-height: 92vh;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.8);
  animation: bdm-slide-up .22s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes bdm-slide-up {
  from { transform: translateY(28px) scale(.97); opacity: 0; }
  to   { transform: translateY(0)    scale(1);   opacity: 1; }
}

/* Close button */
.bdm-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.bdm-close:hover { background: rgba(255,255,255,.14); color: var(--text); }

/* Scrollable inner */
.bdm-scroll {
  height: 92vh;
  max-height: 92vh;
  overflow-y: auto;
  padding: 36px;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-3) transparent;
}
.bdm-scroll::-webkit-scrollbar { width: 5px; }
.bdm-scroll::-webkit-scrollbar-track { background: transparent; }
.bdm-scroll::-webkit-scrollbar-thumb { background: var(--gray-3); border-radius: 3px; }

/* ── Header ─────────────────────────────────────────── */
.bdm-header {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  margin-bottom: 24px;
  align-items: flex-end;
}
@media (max-width: 600px) {
  .bdm-header { grid-template-columns: 1fr; }
  .bdm-scroll  { padding: 24px 20px; }
}

.bdm-cover-wrap {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-2);
  flex-shrink: 0;
}
.bdm-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bdm-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 56px;
  color: var(--text-faint);
  font-style: italic;
}
.bdm-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.5);
  color: #fff;
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}
.bdm-cover-wrap:hover .bdm-play-btn,
.bdm-play-btn--on { opacity: 1; }
.bdm-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 4px;
}
.bdm-producer-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.bdm-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-style: italic;
  font-weight: 500;
  color: var(--text);
  line-height: 1.05;
}
.bdm-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bdm-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--gray-2);
  border-radius: var(--radius);
  padding: 7px 13px;
}
.bdm-stat-lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.bdm-stat-val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

/* ── Engagement bar ─────────────────────────────────── */
.bdm-engage {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--gray-2);
  border-bottom: 1px solid var(--gray-2);
  margin-bottom: 28px;
}
.bdm-eng-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius);
  background: var(--gray-2);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.bdm-eng-btn:hover { background: var(--gray-3); color: var(--text); }
.bdm-eng-btn--on   { color: var(--gold); background: rgba(245,25,25,.1); }

/* ── Section label ──────────────────────────────────── */
.bdm-sec-lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* ── License selector ───────────────────────────────── */
.bdm-license-section { margin-bottom: 36px; }
.bdm-lic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (max-width: 500px) { .bdm-lic-grid { grid-template-columns: 1fr; } }
.bdm-lic-card {
  display: block;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--gray-2);
  background: var(--gray-2);
  cursor: pointer;
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.bdm-lic-card:hover  { border-color: var(--gray-4); }
.bdm-lic-card--on    { border-color: var(--gold); background: rgba(245,25,25,.06); }
.bdm-lic-radio       { display: none; }
.bdm-lic-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.bdm-lic-name  { font-size: var(--text-sm); font-weight: 700; color: var(--text); }
.bdm-lic-price { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--gold); font-weight: 600; }
.bdm-lic-rights {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.6;
  letter-spacing: .03em;
}
.bdm-lic-card--on .bdm-lic-name { color: var(--text); }

/* ── Recommendations ────────────────────────────────── */
.bdm-recs-section { margin-bottom: 36px; }
.bdm-recs-block   { margin-bottom: 24px; }
.bdm-recs-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-3) transparent;
}
.bdm-recs-scroll::-webkit-scrollbar { height: 4px; }
.bdm-recs-scroll::-webkit-scrollbar-track { background: transparent; }
.bdm-recs-scroll::-webkit-scrollbar-thumb { background: var(--gray-3); border-radius: 2px; }
.bdm-rcard {
  flex-shrink: 0;
  width: 138px;
  background: var(--gray-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--duration) var(--ease);
  border: 1px solid transparent;
}
.bdm-rcard:hover { transform: translateY(-3px); border-color: var(--gray-3); }
.bdm-rcard-art {
  position: relative;
  aspect-ratio: 1;
  background: var(--gray-3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bdm-rcard-init { font-family: var(--font-display); font-size: 30px; color: var(--text-faint); font-style: italic; }
.bdm-rcard-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 9px 10px 2px;
}
.bdm-rcard-genre {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 0 10px;
}
.bdm-rcard-price {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
  padding: 4px 10px 10px;
}

/* ── Discussion ─────────────────────────────────────── */
.bdm-discussion {
  border-top: 1px solid var(--gray-2);
  padding-top: 28px;
  padding-bottom: 16px;
}
.bdm-comments { margin-bottom: 20px; }
.bdm-comment {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-2);
}
.bdm-comment:last-child { border-bottom: none; }
.bdm-comment-ava {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}
.bdm-comment-body  { flex: 1; }
.bdm-comment-meta  { display: flex; align-items: baseline; gap: 10px; margin-bottom: 5px; }
.bdm-comment-user  { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--text); letter-spacing: .07em; }
.bdm-comment-time  { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); }
.bdm-comment-text  { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.6; }
.bdm-comment-row   { display: flex; gap: 10px; align-items: center; }
.bdm-comment-inp {
  flex: 1;
  background: var(--gray-2);
  border: 1px solid var(--gray-2);
  border-radius: var(--radius);
  padding: 11px 16px;
  font-size: var(--text-sm);
  color: var(--text);
  transition: border-color var(--duration) var(--ease);
}
.bdm-comment-inp:focus { border-color: var(--gray-4); }
.bdm-comment-inp::placeholder { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════════
   Download Gate (dgate)
   ═══════════════════════════════════════════════════════════════ */
.dgate {
  background: var(--gray-2);
  border-radius: var(--radius-xl);
  padding: 24px;
  animation: bdm-slide-up .2s cubic-bezier(0.22,1,0.36,1) both;
}

/* Back button */
.dgate-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding: 4px 0;
  transition: color var(--duration) var(--ease);
}
.dgate-back:hover { color: var(--text); }

/* Hero */
.dgate-hero   { text-align: center; margin-bottom: 24px; }
.dgate-dl-icon {
  font-size: 40px;
  margin-bottom: 12px;
  display: block;
  filter: drop-shadow(0 0 12px rgba(245,25,25,.3));
}
.dgate-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}
.dgate-sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 380px;
  margin: 0 auto;
}

/* Step tracker dots */
.dgate-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.dgate-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  transition: all var(--duration) var(--ease);
}
.dgate-steps .dgate-step-dot + .dgate-step-dot::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gray-3);
  margin-right: 10px;
}
.dgate-step-dot--active { border-color: var(--gold); color: var(--gold); }
.dgate-step-dot--done   { border-color: #50c878; background: rgba(80,200,120,.12); color: #50c878; }

/* Panel */
.dgate-panel {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.dgate-panel--center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.dgate-panel-lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Email step */
.dgate-email-row { display: flex; gap: 8px; margin-bottom: 8px; }
.dgate-email-inp {
  flex: 1;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--gray-3);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: var(--text-sm);
  color: var(--text);
  transition: border-color var(--duration) var(--ease);
}
.dgate-email-inp:focus { border-color: var(--gold); outline: none; }
.dgate-email-inp::placeholder { color: var(--text-muted); }
.dgate-err { font-family: var(--font-mono); font-size: 11px; color: var(--gold); margin-top: 4px; }

/* Completed step indicator */
.dgate-done-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(80,200,120,.08);
  border: 1px solid rgba(80,200,120,.2);
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.dgate-check-chip { color: #50c878; font-size: 13px; }
.dgate-done-txt { font-family: var(--font-mono); font-size: 11px; color: #50c878; letter-spacing: .05em; }

/* Follow button */
.dgate-follow-btn { width: 100%; padding: 14px; font-size: 1rem; margin-bottom: 10px; }

/* Countdown */
.dgate-countdown {
  font-family: var(--font-display);
  font-size: 5rem;
  font-style: italic;
  color: var(--gold);
  line-height: 1;
  animation: dgate-pulse 1s ease-in-out infinite;
}
@keyframes dgate-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .7; transform: scale(.92); }
}
.dgate-verifying {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Success state */
.dgate-success-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(80,200,120,.15);
  border: 2px solid #50c878;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #50c878;
  animation: dgate-pop .35s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes dgate-pop {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.dgate-success-txt {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text);
}
.dgate-dl-btn { padding: 14px 32px; font-size: 1rem; }

/* Shared note */
.dgate-note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 10px;
}

/* ============================================================
   NSS PREMIUM VISUAL LAYER — Cohesive Subpages Polish
   Upgrades all subpages to the state-of-the-art glassmorphism
   dark-theme look of the main homepage.
   ============================================================ */

/* ── Global Subpage Enhancements ── */
body {
  background: radial-gradient(circle at 50% 0%, #151515 0%, #050505 100%) !important;
  background-attachment: fixed !important;
}

/* ── Frosted-Glass Premium Cards & Modal ── */
.card, .auth-card, .faq-card, .modal, .modal-card {
  background: rgba(12, 12, 12, 0.65) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

/* ── Hover Micro-Animations ── */
.card:hover, .auth-card:hover, .faq-card:hover {
  border-color: rgba(245, 25, 25, 0.3) !important;
  transform: translateY(-5px) !important;
  box-shadow: 0 20px 45px rgba(245, 25, 25, 0.08) !important;
}

/* ── Input and Form Fields Redesign ── */
.form-input, .new-req-form input, .new-req-form textarea, .new-req-form select,
.auth-input, .dgate-email-inp {
  background: rgba(5, 5, 5, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 4px !important;
  color: #fff !important;
  padding: 14px 16px !important;
  font-family: var(--font-body), 'Syne', sans-serif !important;
  transition: all 0.3s !important;
}

.form-input:focus, .new-req-form input:focus, .new-req-form textarea:focus, .new-req-form select:focus,
.auth-input:focus, .dgate-email-inp:focus {
  border-color: var(--gold) !important;
  background: rgba(245, 25, 25, 0.03) !important;
  box-shadow: 0 0 10px rgba(245, 25, 25, 0.15) !important;
  outline: none !important;
}

/* ── Premium Badges and Tags ── */
.tag, .forum-tag, .req-card__tag {
  display: inline-block !important;
  padding: 4px 12px !important;
  font-family: var(--font-mono), 'DM Mono', monospace !important;
  font-size: 9px !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  border: 1px solid rgba(245, 25, 25, 0.2) !important;
  border-radius: 4px !important;
  color: var(--gold, #f51919) !important;
  background: rgba(245, 25, 25, 0.05) !important;
  font-weight: 600 !important;
  transition: all 0.25s ease !important;
}

.card:hover .tag, .req-card:hover .req-card__tag {
  background: rgba(245, 25, 25, 0.08) !important;
  border-color: rgba(245, 25, 25, 0.4) !important;
}

/* ── Subpage Typography Elements ── */
.heading-lg, .auth-header h1, .forum-hero h1 {
  font-family: var(--font-display), 'Cormorant Garamond', serif !important;
  font-size: clamp(38px, 6vw, 80px) !important;
  font-style: italic !important;
  text-transform: uppercase !important;
  letter-spacing: -0.01em !important;
  margin-bottom: 20px !important;
  line-height: 1.1 !important;
}

.subheading, .auth-header p, .forum-hero p {
  font-family: var(--font-body), 'Syne', sans-serif !important;
  color: var(--text-muted) !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  letter-spacing: 0 !important;
}

/* ── FAQ styling refinement ── */
.faq-question {
  font-family: var(--font-display) !important;
  font-size: 22px !important;
  font-style: italic !important;
  color: #fff !important;
}

.faq-answer {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}
