/* ---------------------------------------------------------------------------
   Lumivite - Application Theme (Dark Luxury Champagne Gold & Botanical)
   Exact match to https://www.lumivite.net/ aesthetic:
   - Primary Gold: #c9a96e (Champagne Gold), hover #b8965d
   - Dark Surfaces: #0a0806 (Deep Warm Black), #120e0a (Dark Secondary), #1a1510 (Card Surface)
   - Botanical Accents: #4a7c59 (Sage Green), #2d3a2e (Deep Botanical)
   - Fonts: Cormorant Garamond (Serif), Jost (Clean Modern Sans), Great Vibes (Romantic Script)
   - Buttons: Luxury Gold Pill Buttons with crisp dark text & active scale animation
   --------------------------------------------------------------------------- */

:root {
  /* Brand Luxury Champagne Gold Palette */
  --brand-900: #543f1b;
  --brand-800: #7a5e2a;
  --brand-700: #a38143;
  --brand-600: #b8965d;
  --brand-500: #c9a96e; /* Signature Champagne Gold from lumivite.net */
  --brand-400: #d6bc89;
  --brand-300: #e4cfa6;
  --brand-200: #f0e3c5;
  --brand-100: #fbf7ee;

  /* Botanical Sage & Emerald Accents */
  --botanical-900: #141c15;
  --botanical-800: #202b21;
  --botanical-700: #2d3a2e; /* Deep Forest Green */
  --botanical-600: #3b5742;
  --botanical-500: #4a7c59; /* Sage Green */
  --botanical-400: #5e9b72;
  --botanical-300: #82b994;
  --emerald-400:   #4ade80; /* Status dot */

  /* Luxury Dark Surfaces */
  --ink:          #ffffff;
  --ink-soft:     rgba(255, 255, 255, 0.82);
  --muted:        rgba(255, 255, 255, 0.52);
  --line:         rgba(201, 169, 110, 0.22);
  --line-soft:    rgba(255, 255, 255, 0.08);
  --line-strong:  rgba(201, 169, 110, 0.45);
  --surface:      #0a0806; /* Deepest warm espresso black */
  --surface-2:    #120e0a; /* Elevated surface */
  --surface-card: #1a1510; /* Card / Panel surface */
  --surface-hover:#241d16;
  --surface-input:#0e0b08;
  --tint:         rgba(201, 169, 110, 0.12);
  --tint-green:   rgba(74, 124, 89, 0.15);

  /* Gradients */
  --brand-gradient:     linear-gradient(135deg, #c9a96e 0%, #dfc48e 45%, #b8965d 100%);
  --gold-glow-gradient: linear-gradient(135deg, #c9a96e 0%, #ffffff 40%, #c9a96e 70%, #d8be8a 100%);
  --soft-gradient:      linear-gradient(135deg, #15110c 0%, #0d0a08 100%);
  --panel-gradient:     linear-gradient(180deg, rgba(26, 21, 16, 0.95) 0%, rgba(18, 14, 10, 0.95) 100%);
  --mesh-gradient:      radial-gradient(at 0% 0%, rgba(201, 169, 110, 0.16) 0px, transparent 50%),
                        radial-gradient(at 100% 10%, rgba(74, 124, 89, 0.18) 0px, transparent 50%),
                        radial-gradient(at 50% 60%, rgba(201, 169, 110, 0.09) 0px, transparent 60%);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm:       0 2px 6px rgba(0, 0, 0, 0.5);
  --shadow:          0 10px 30px -5px rgba(0, 0, 0, 0.7), 0 0 15px rgba(201, 169, 110, 0.08);
  --shadow-lg:       0 24px 60px -10px rgba(0, 0, 0, 0.85), 0 0 25px rgba(201, 169, 110, 0.15);
  --shadow-3d:       0 28px 65px -15px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(201, 169, 110, 0.25) inset;
  --shadow-floating: 0 20px 40px -10px rgba(0, 0, 0, 0.75), 0 0 20px rgba(201, 169, 110, 0.2);
  --shadow-button:   0 8px 25px -4px rgba(201, 169, 110, 0.45);

  /* Fonts */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-ui:      "Jost", system-ui, -apple-system, sans-serif;
  --font-script:  "Great Vibes", cursive;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background-color: var(--surface);
}

body {
  font-family: var(--font-ui);
  color: var(--ink-soft);
  background-color: var(--surface);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

body.body--app {
  background-color: var(--surface-2);
}

a {
  color: var(--brand-500);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
a:hover {
  color: var(--brand-400);
  text-decoration: none;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.015em;
  color: var(--ink);
}
h1 { font-size: clamp(2.3rem, 4.8vw, 3.6rem); line-height: 1.14; }
h2 { font-size: clamp(1.85rem, 3.8vw, 2.6rem); line-height: 1.2; }
h3 { font-size: 1.35rem; }

.text-muted-2 { color: var(--muted) !important; }
.lead-2 { font-size: 1.14rem; color: var(--ink-soft); line-height: 1.7; }

.gradient-text {
  background: var(--gold-glow-gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: textShimmer 6s ease infinite;
}
@keyframes textShimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Focus visibility for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Buttons ------------------------------------------------------------------- */
.btn {
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 600;
  padding: .65rem 1.45rem;
  border: 1px solid transparent;
  transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.88rem;
}
.btn:active { transform: scale(0.96) !important; }

/* Primary Champagne Gold Button (same as lumivite.net) */
.btn-brand {
  background: var(--brand-500);
  color: #0a0806 !important;
  box-shadow: var(--shadow-button);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 600;
}
.btn-brand:hover, .btn-brand:focus {
  background: var(--brand-600);
  color: #0a0806 !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(201, 169, 110, 0.6);
  filter: brightness(1.05);
  text-decoration: none;
}

/* Outline Glass Gold Button */
.btn-outline-brand {
  border-color: rgba(201, 169, 110, 0.45);
  color: var(--brand-500) !important;
  background: rgba(26, 21, 16, 0.7);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-outline-brand:hover {
  background: rgba(201, 169, 110, 0.15);
  border-color: var(--brand-500);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(201, 169, 110, 0.25);
  text-decoration: none;
}

.btn-quiet {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(201, 169, 110, 0.2);
  color: var(--ink-soft) !important;
  backdrop-filter: blur(6px);
}
.btn-quiet:hover {
  background: rgba(201, 169, 110, 0.12);
  border-color: var(--brand-500);
  color: var(--brand-500) !important;
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-danger-soft {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171 !important;
}
.btn-danger-soft:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fff !important;
}

.btn-sm { padding: .45rem 1.1rem; font-size: .8rem; }
.btn-lg { padding: .85rem 2.1rem; font-size: .95rem; }

/* Header -------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 8, 6, 0.88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(201, 169, 110, 0.18);
  box-shadow: 0 4px 25px -10px rgba(0, 0, 0, 0.7);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: 0.03em;
  margin-right: auto;
  font-family: var(--font-display);
}
.brand:hover { color: var(--brand-500); text-decoration: none; }
.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-block;
  filter: drop-shadow(0 4px 10px rgba(201, 169, 110, 0.3));
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.08); }
.brand-mark svg { width: 100%; height: 100%; display: block; border-radius: 10px; }
.brand-mark--sm { width: 28px; height: 28px; }

.brand-name {
  color: #ffffff;
  letter-spacing: 0.06em;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-nav-links > a {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  font-size: .92rem;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}
.site-nav-links > a:hover { color: var(--brand-500); text-decoration: none; }
.site-nav-links > a.btn { color: inherit; }
.site-nav-links > a.btn-brand { color: #0a0806 !important; }

.nav-toggle {
  display: none;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  font-size: 1.3rem;
  color: var(--ink);
  line-height: 1;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: .4rem;
    padding: .8rem 0 1.2rem;
    background: var(--surface-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-top: .6rem;
  }
  .site-nav-links.is-open { display: flex; }
  .site-nav-links > a {
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--line-soft);
  }
  .site-nav-links > a.btn { text-align: center; margin: .5rem 1rem 0; border-bottom: 0; }
}

/* Flash messages ------------------------------------------------------------ */
.flash-stack { margin-top: 1.2rem; display: grid; gap: .7rem; }
.flash {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  padding: .9rem 1.15rem;
  border-radius: var(--radius);
  font-size: .95rem;
  border: 1px solid;
  backdrop-filter: blur(8px);
}
.flash i { font-size: 1.1rem; line-height: 1.45; }
.flash--success { background: rgba(74, 124, 89, 0.15); border-color: rgba(74, 124, 89, 0.4); color: #82b994; }
.flash--error   { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.35); color: #fca5a5; }
.flash--warning { background: rgba(201, 169, 110, 0.15); border-color: rgba(201, 169, 110, 0.35); color: #dfc48e; }
.flash--info    { background: var(--tint); border-color: var(--line); color: var(--brand-400); }

/* Landing page -------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(4rem, 8.5vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  background: var(--surface);
}
.hero > .container { position: relative; z-index: 10; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: rgba(201, 169, 110, 0.08);
  border: 1px solid rgba(201, 169, 110, 0.32);
  color: var(--brand-500);
  border-radius: 999px;
  padding: .45rem 1.05rem;
  font-size: .8rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .95rem; margin-top: 2rem; }

.hero-points { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .75rem; }
.hero-points li { display: flex; gap: .75rem; align-items: flex-start; color: var(--ink-soft); font-size: .98rem; }
.hero-points i { color: var(--brand-500); margin-top: .15rem; font-size: 1.1rem; }

/* 3D Hero Stage & Floating Badges ------------------------------------------- */
.hero-3d-stage {
  position: relative;
  perspective: 1200px;
  transform-style: preserve-3d;
  padding: 1.2rem 0;
}

.hero-card, .hero-3d-card {
  position: relative;
  background: rgba(26, 21, 16, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(201, 169, 110, 0.28);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-3d);
  padding: 1.8rem;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.hero-3d-card:hover {
  border-color: rgba(201, 169, 110, 0.45);
  box-shadow: 0 32px 75px -15px rgba(0, 0, 0, 0.95), 0 0 30px rgba(201, 169, 110, 0.15);
}

.tilt-glare { display: none !important; }

.hero-card-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.3rem;
}
.hero-chip {
  font-size: .78rem; font-weight: 600; color: var(--brand-500);
  background: rgba(201, 169, 110, 0.12); border-radius: 999px; padding: .35rem .85rem;
  border: 1px solid rgba(201, 169, 110, 0.28);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-preview {
  background: rgba(14, 11, 8, 0.95);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.2rem;
  text-align: center;
  border: 1px solid rgba(201, 169, 110, 0.18);
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* Floating 3D Elements */
.floating-3d-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .65rem 1.2rem;
  background: rgba(26, 21, 16, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(201, 169, 110, 0.35);
  border-radius: 999px;
  box-shadow: var(--shadow-floating);
  font-size: .86rem;
  font-weight: 500;
  color: var(--ink);
  z-index: 8;
  pointer-events: auto;
}

.floating-3d-badge--top {
  top: -16px;
  right: -10px;
  animation: float-3d-smooth 4.5s ease-in-out infinite alternate;
}

.floating-3d-badge--bottom {
  bottom: -18px;
  left: -12px;
  animation: float-3d-reverse 5s ease-in-out infinite alternate;
}

@keyframes float-3d-smooth {
  0%   { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-12px) rotate(2.5deg); }
}

@keyframes float-3d-reverse {
  0%   { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(10px) rotate(-2deg); }
}

.floating-mini-vinyl {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, #2d2315 0%, #110e0a 100%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), inset 0 0 0 2px rgba(201, 169, 110, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: vinyl-3d-spin 4s linear infinite;
  flex-shrink: 0;
}
.floating-mini-vinyl::after {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-500);
  border: 2px solid #0a0806;
}
@keyframes vinyl-3d-spin {
  100% { transform: rotate(360deg); }
}

.pulse-dot-3d {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulse-3d 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse-3d {
  0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70%  { transform: scale(1); box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.section { padding: clamp(4rem, 7.5vw, 6.5rem) 0; }
.section--tint {
  background: var(--surface-2);
  border-block: 1px solid rgba(201, 169, 110, 0.15);
}
.section-head { max-width: 700px; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
.section-head p { color: var(--muted); margin-top: .8rem; margin-bottom: 0; font-size: 1.08rem; }

.feature-card {
  height: 100%;
  background: var(--surface-card);
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.9rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 85% 0%, rgba(201, 169, 110, 0.08), transparent 60%);
  pointer-events: none;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(201, 169, 110, 0.45);
}

/* Party Popper & Falling Celebration Confetti Canvas (Background layer) */
.party-popper-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.popper-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(201, 169, 110, 0.15);
  border: 1px solid rgba(201, 169, 110, 0.4);
  color: var(--brand-400);
  padding: .35rem .9rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all .2s ease;
  backdrop-filter: blur(8px);
}
.popper-trigger-btn:hover {
  background: var(--brand-500);
  color: #0a0806;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 15px rgba(201, 169, 110, 0.4);
}
.popper-trigger-btn:active {
  transform: scale(0.95);
}

/* Subtle dot grid pattern with gold hue */
.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(201, 169, 110, 0.12) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at center, black 45%, transparent 85%);
  pointer-events: none;
}

.hero-aura-1 {
  position: absolute;
  top: -10%;
  left: 15%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.18), transparent 70%);
  filter: blur(70px);
  pointer-events: none;
  animation: aura-drift 10s ease-in-out infinite alternate;
}
.hero-aura-2 {
  position: absolute;
  bottom: -15%;
  right: 12%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(74, 124, 89, 0.18), transparent 70%);
  filter: blur(70px);
  pointer-events: none;
  animation: aura-drift 12s ease-in-out infinite alternate-reverse;
}
@keyframes aura-drift {
  0%   { transform: translateY(0) scale(1); }
  100% { transform: translateY(-30px) scale(1.15); }
}

/* 3D Hero Stage Aura & Tabs */
.hero-stage-aura {
  position: absolute;
  inset: 5% 5%;
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.22), rgba(74, 124, 89, 0.2));
  filter: blur(55px);
  border-radius: 40px;
  pointer-events: none;
  z-index: 0;
  animation: aura-pulse 5s ease-in-out infinite alternate;
}
@keyframes aura-pulse {
  0%   { transform: scale(0.95); opacity: 0.6; }
  100% { transform: scale(1.08); opacity: 0.95; }
}

.hero-tabs {
  position: relative;
  z-index: 35;
  display: inline-flex;
  padding: 4px;
  background: rgba(18, 14, 10, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.hero-tab-btn {
  position: relative;
  z-index: 40;
  border: none;
  background: transparent;
  padding: .45rem 1.1rem;
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all .25s ease;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  letter-spacing: 0.04em;
  pointer-events: auto;
}
.hero-tab-btn.is-active {
  background: var(--brand-500);
  color: #0a0806;
  box-shadow: 0 4px 14px rgba(201, 169, 110, 0.35);
}

.hero-tab-content {
  position: relative;
  z-index: 25;
  display: none;
}
.hero-tab-content.is-active { display: block; }

/* Platform Logos / Compatibility Strip */
.platforms-strip {
  padding: 1.8rem 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  font-size: .92rem;
  color: var(--muted);
  border-top: 1px solid rgba(201, 169, 110, 0.16);
  margin-top: 3.8rem;
}
.platform-item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 500;
  color: var(--ink-soft);
  opacity: 0.85;
  transition: opacity .2s ease;
  letter-spacing: 0.03em;
}
.platform-item:hover { opacity: 1; color: var(--brand-500); }
.platform-item i { font-size: 1.2rem; color: var(--brand-500); }

/* Luxury Feature Icons */
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 1.3rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(4deg);
}

.feature-icon--amber {
  background: linear-gradient(135deg, #c9a96e, #e8d5af) !important;
  color: #0a0806 !important;
  box-shadow: 0 8px 20px -3px rgba(201, 169, 110, 0.4) !important;
}
.feature-icon--pink {
  background: linear-gradient(135deg, #4a7c59, #6aa57c) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px -3px rgba(74, 124, 89, 0.4) !important;
}
.feature-icon--emerald {
  background: linear-gradient(135deg, #c9a96e, #a8813f) !important;
  color: #0a0806 !important;
  box-shadow: 0 8px 20px -3px rgba(201, 169, 110, 0.4) !important;
}
.feature-icon--indigo {
  background: linear-gradient(135deg, #2d3a2e, #4a7c59) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px -3px rgba(74, 124, 89, 0.4) !important;
}
.feature-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.feature-card p { color: var(--muted); margin: 0; font-size: .96rem; line-height: 1.6; }

/* Preset Music Library */
.preset-music-grid {
  display: grid;
  gap: .75rem;
  margin-bottom: 1.4rem;
}
.preset-track-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1.15rem;
  background: var(--surface-card);
  border: 1.5px solid rgba(201, 169, 110, 0.2);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .2s ease;
  position: relative;
  gap: .8rem;
}
.preset-track-card:hover {
  border-color: var(--brand-500);
  background: rgba(201, 169, 110, 0.08);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.preset-track-card.is-selected {
  border-color: var(--brand-500);
  background: rgba(201, 169, 110, 0.12);
  box-shadow: 0 4px 16px rgba(201, 169, 110, 0.2);
}
.preset-track-info {
  display: flex;
  align-items: center;
  gap: .85rem;
  flex: 1;
  min-width: 0;
}
.preset-track-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(201, 169, 110, 0.15);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.preset-track-text { min-width: 0; }
.preset-track-title {
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.preset-track-badge {
  font-size: .72rem;
  font-weight: 600;
  padding: .15rem .5rem;
  border-radius: 999px;
  background: rgba(201, 169, 110, 0.15);
  color: var(--brand-400);
}
.preset-track-sub {
  font-size: .82rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: .15rem;
}
.preset-track-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}
.btn-track-preview {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 110, 0.35);
  background: var(--surface-card);
  color: var(--brand-500);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all .15s ease;
  flex-shrink: 0;
  font-size: .95rem;
}
.btn-track-preview:hover {
  background: var(--brand-500);
  color: #0a0806;
  border-color: var(--brand-500);
  transform: scale(1.08);
}
.btn-track-preview.is-playing {
  background: var(--brand-500);
  color: #0a0806;
  border-color: var(--brand-500);
}
.preset-check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid rgba(201, 169, 110, 0.3);
  display: grid;
  place-items: center;
  font-size: .85rem;
  color: transparent;
  transition: all .2s ease;
}
.preset-track-card.is-selected .preset-check-icon {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: #0a0806;
}

.step-card {
  background: var(--surface-card);
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.9rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(201, 169, 110, 0.45);
}
.step-number {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 13px;
  background: var(--brand-500); color: #0a0806; font-weight: 700; margin-bottom: 1.1rem;
  box-shadow: 0 6px 16px -2px rgba(201, 169, 110, 0.4);
  transform: perspective(600px) rotateX(10deg);
  transition: transform 0.3s ease;
  font-family: var(--font-ui);
}
.step-card:hover .step-number {
  transform: perspective(600px) rotateX(0deg) scale(1.08);
}
.step-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }

.cta-panel {
  background: linear-gradient(135deg, #1c150e 0%, #241a12 50%, #17110c 100%);
  border: 1px solid rgba(201, 169, 110, 0.35);
  border-radius: var(--radius-xl);
  color: #fff;
  padding: clamp(2.8rem, 6vw, 4.5rem);
  text-align: center;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 30px rgba(201, 169, 110, 0.12);
  position: relative;
  overflow: hidden;
}
.cta-panel::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(circle at 25% 25%, rgba(201, 169, 110, 0.15), transparent 45%),
              radial-gradient(circle at 75% 75%, rgba(74, 124, 89, 0.15), transparent 50%);
  pointer-events: none;
}
.cta-panel h2 { color: #fff; font-size: clamp(2rem, 4.2vw, 3rem); position: relative; z-index: 1; }
.cta-panel p { color: rgba(255, 255, 255, .82); max-width: 580px; margin: 1rem auto 2rem; position: relative; z-index: 1; font-size: 1.1rem; }
.cta-panel .btn-light {
  border-radius: 999px;
  font-weight: 600;
  padding: .85rem 2.2rem;
  background: var(--brand-500) !important;
  color: #0a0806 !important;
  box-shadow: 0 8px 24px rgba(201, 169, 110, 0.35);
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.25s ease;
}
.cta-panel .btn-light:hover {
  background: var(--brand-600) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(201, 169, 110, 0.55);
}

/* Auth pages ---------------------------------------------------------------- */
.auth-wrap { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.auth-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface-card);
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: clamp(1.8rem, 4vw, 2.6rem);
}
.auth-card h1 { font-size: 1.85rem; margin-bottom: .35rem; }
.auth-sub { color: var(--muted); margin-bottom: 1.8rem; }
.auth-foot { text-align: center; margin-top: 1.6rem; color: var(--muted); font-size: .94rem; }

/* Forms --------------------------------------------------------------------- */
.form-label { font-weight: 500; font-size: .9rem; color: var(--ink-soft); margin-bottom: .4rem; letter-spacing: 0.02em; }
.form-control, .form-select {
  border-radius: 12px;
  border: 1px solid rgba(201, 169, 110, 0.25);
  padding: .7rem .95rem;
  font-size: .97rem;
  color: #ffffff;
  background-color: var(--surface-input);
  transition: all .2s ease;
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand-500);
  background-color: #14100c;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.22);
  outline: none;
}
.form-control::placeholder { color: rgba(255, 255, 255, 0.35); }
.form-hint { font-size: .83rem; color: var(--muted); margin-top: .4rem; }
.form-error { font-size: .85rem; color: #f87171; margin-top: .4rem; }
.is-invalid-soft { border-color: #f87171 !important; }

.field-error-list {
  background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.3); color: #fca5a5;
  border-radius: var(--radius); padding: .9rem 1.1rem; margin-bottom: 1.2rem; font-size: .93rem;
}
.field-error-list ul { margin: .4rem 0 0; padding-left: 1.1rem; }

/* Dashboard ----------------------------------------------------------------- */
.page-head {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: flex-end; justify-content: space-between;
  margin: 2rem 0 1.8rem;
}
.page-head h1 { font-size: clamp(1.8rem, 3.8vw, 2.3rem); margin: 0; }
.page-head p { color: var(--muted); margin: .35rem 0 0; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.stat-card {
  background: var(--surface-card);
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.5rem; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 1.1rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(201, 169, 110, 0.4);
}
.stat-icon {
  width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center;
  font-size: 1.3rem; background: rgba(201, 169, 110, 0.15); color: var(--brand-500); flex: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.stat-value { font-size: 1.75rem; font-weight: 700; line-height: 1.1; color: #fff; }
.stat-label { color: var(--muted); font-size: .88rem; }

.toolbar {
  background: var(--surface-card);
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.1rem; margin: 1.8rem 0; box-shadow: var(--shadow-sm);
}

.widget-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 1.3rem; }

.widget-card {
  background: var(--surface-card);
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, transform .25s cubic-bezier(0.16, 1, 0.3, 1), border-color .2s ease;
}
.widget-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: rgba(201, 169, 110, 0.45);
}

.widget-card-preview {
  height: 176px;
  background:
    linear-gradient(135deg, rgba(201, 169, 110, .05), rgba(74, 124, 89, .05)),
    repeating-conic-gradient(#15110c 0% 25%, #0f0c09 0% 50%) 50% / 16px 16px;
  display: grid; place-items: center; padding: .9rem; overflow: hidden;
  border-bottom: 1px solid rgba(201, 169, 110, 0.18);
}
.widget-card-preview .lv-widget {
  width: 100%;
  pointer-events: none;
  padding: 8px !important;
  --w-size: 20px !important;
}
.widget-card-preview .lv-title { font-size: 12px !important; margin-bottom: 8px !important; }
.widget-card-preview .lv-units { gap: 6px !important; }
.widget-card-preview .lv-unit { min-width: 0 !important; }
.widget-card-preview .lv-label { font-size: 8px !important; letter-spacing: .1em !important; margin-top: 3px !important; }
.widget-card-preview .lv-cd--cards .lv-unit,
.widget-card-preview .lv-cd--digital .lv-unit { min-width: 46px !important; padding: 6px 4px !important; }
.widget-card-preview .lv-done { font-size: 15px !important; }
.widget-card-preview .lv-music__head { margin-bottom: 8px !important; }
.widget-card-preview .lv-music__art { width: 32px !important; height: 32px !important; }
.widget-card-preview .lv-music__art svg { width: 16px; height: 16px; }
.widget-card-preview .lv-music__title { font-size: 13px !important; }
.widget-card-preview .lv-music__sub { font-size: 11px !important; }
.widget-card-preview .lv-play { padding: 7px 14px !important; font-size: 12px !important; max-width: 190px; }
.widget-card-preview .lv-hint { display: none; }
.widget-card-preview .lv-brand { font-size: 9px !important; margin-top: 6px !important; }

.widget-card-body { padding: 1.2rem 1.25rem; flex: 1; }
.widget-card-body h3 {
  font-size: 1.15rem; margin: 0 0 .3rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.widget-card-body .subtitle { color: var(--muted); font-size: .88rem; margin: 0; }

.badge-type {
  display: inline-flex; align-items: center; gap: .32rem;
  font-size: .75rem; font-weight: 600; border-radius: 999px;
  padding: .25rem .65rem; margin-bottom: .65rem;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.badge-type--countdown { background: rgba(201, 169, 110, 0.15); color: var(--brand-400); border: 1px solid rgba(201, 169, 110, 0.3); }
.badge-type--music { background: rgba(74, 124, 89, 0.18); color: #82b994; border: 1px solid rgba(74, 124, 89, 0.3); }

.widget-meta { margin-top: .9rem; font-size: .8rem; color: var(--muted); display: grid; gap: .2rem; }

.widget-card-actions {
  border-top: 1px solid rgba(201, 169, 110, 0.18); padding: .85rem 1.25rem;
  display: flex; flex-wrap: wrap; gap: .5rem; background: rgba(14, 11, 8, 0.7);
}

.empty-state {
  background: var(--surface-card);
  border: 1px dashed rgba(201, 169, 110, 0.35);
  border-radius: var(--radius-xl);
  padding: clamp(2.2rem, 6vw, 3.8rem); text-align: center;
}
.empty-state i { font-size: 2.5rem; color: var(--brand-500); }
.empty-state h2 { font-size: 1.45rem; margin: 1rem 0 .5rem; }
.empty-state p { color: var(--muted); max-width: 420px; margin: 0 auto 1.5rem; }

/* Create widget chooser ----------------------------------------------------- */
.choice-card {
  display: block; height: 100%; background: var(--surface-card);
  border: 1px solid rgba(201, 169, 110, 0.2); border-radius: var(--radius-xl);
  padding: 2rem; box-shadow: var(--shadow-sm); color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.choice-card:hover {
  text-decoration: none; color: inherit; transform: translateY(-4px);
  border-color: rgba(201, 169, 110, 0.45); box-shadow: var(--shadow-lg);
}
.choice-icon {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center;
  font-size: 1.6rem; color: #0a0806; background: var(--brand-500); margin-bottom: 1.2rem;
  box-shadow: 0 8px 20px rgba(201, 169, 110, 0.35);
}
.choice-card h2 { font-size: 1.4rem; margin-bottom: .5rem; }
.choice-card p { color: var(--muted); margin-bottom: 1.2rem; }
.choice-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.choice-list li { display: flex; gap: .55rem; font-size: .94rem; color: var(--ink-soft); }
.choice-list i { color: var(--brand-500); }

/* Builder ------------------------------------------------------------------- */
.builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 1.8rem;
  align-items: start;
  padding-bottom: 3.5rem;
}
@media (max-width: 1100px) {
  .builder-layout { grid-template-columns: minmax(0, 1fr); }
  .preview-col { order: -1; }
}

.panel {
  background: var(--surface-card);
  border: 1px solid rgba(201, 169, 110, 0.22);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.3rem;
  overflow: hidden;
}
.panel-head {
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid rgba(201, 169, 110, 0.18);
  display: flex; align-items: center; gap: .7rem;
  background: rgba(14, 11, 8, 0.6);
}
.panel-head i { color: var(--brand-500); font-size: 1.15rem; }
.panel-head h2 { font-size: 1.12rem; margin: 0; }
.panel-body { padding: 1.35rem; }

.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }

.color-field { display: flex; align-items: center; gap: .6rem; }
.color-field input[type="color"] {
  width: 46px; height: 42px; padding: 3px; border-radius: 10px;
  border: 1px solid rgba(201, 169, 110, 0.3); background: var(--surface-input); cursor: pointer; flex: none;
}
.color-field input[type="text"] { text-transform: lowercase; }

.range-field output {
  font-variant-numeric: tabular-nums; font-weight: 600;
  color: var(--brand-400); font-size: .88rem;
}
input[type="range"] { accent-color: var(--brand-500); width: 100%; }

.switch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .65rem; }
.switch {
  display: flex; align-items: center; gap: .6rem;
  border: 1px solid rgba(201, 169, 110, 0.2); border-radius: 12px;
  padding: .65rem .85rem; font-size: .92rem; cursor: pointer; background: var(--surface-input);
  color: var(--ink-soft);
  transition: all .2s ease;
}
.switch input { accent-color: var(--brand-500); width: 17px; height: 17px; margin: 0; }
.switch:hover { border-color: var(--brand-500); background: rgba(201, 169, 110, 0.08); }

.style-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .75rem; }
.style-option { position: relative; }
.style-option input { position: absolute; opacity: 0; pointer-events: none; }
.style-option span {
  display: block; text-align: center; padding: .8rem .5rem;
  border: 1px solid rgba(201, 169, 110, 0.2); border-radius: 12px;
  font-size: .92rem; font-weight: 500; cursor: pointer; background: var(--surface-input);
  color: var(--ink-soft);
  transition: all .2s ease;
}
.style-option input:checked + span {
  border-color: var(--brand-500); background: rgba(201, 169, 110, 0.15); color: var(--brand-400); font-weight: 600;
}
.style-option input:focus-visible + span { outline: 2px solid var(--brand-500); outline-offset: 2px; }

/* Visual Theme Cards */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1rem; }
.theme-card { position: relative; cursor: pointer; display: flex; flex-direction: column; gap: 0.5rem; }
.theme-card input { position: absolute; opacity: 0; pointer-events: none; }
.theme-card__preview {
  height: 100px;
  border-radius: 12px;
  border: 1.5px solid rgba(201, 169, 110, 0.22);
  background: var(--surface-input);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  overflow: hidden;
}
.theme-card__label {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.theme-card input:checked + .theme-card__preview {
  border-color: var(--brand-500);
  background: rgba(201, 169, 110, 0.15);
  box-shadow: 0 4px 14px rgba(201, 169, 110, 0.25);
}
.theme-card input:checked ~ .theme-card__label {
  color: var(--brand-400);
  font-weight: 600;
}
.theme-card:hover .theme-card__preview {
  border-color: var(--brand-400);
}

/* Theme Previews (CSS Art) */
.preview-art-vinyl {
  width: 50px; height: 50px; border-radius: 50%; background: #222;
  border: 4px solid #111; position: relative;
}
.preview-art-vinyl::after {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 16px; height: 16px; background: var(--brand-500); border-radius: 50%; border: 2px solid #0a0806;
}
.preview-art-minimal {
  width: 44px; height: 44px; border-radius: 50%; background: var(--brand-500);
  display: flex; align-items: center; justify-content: center;
}
.preview-art-minimal::after {
  content: ''; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 8px solid #0a0806; margin-left: 3px;
}
.preview-art-equalizer {
  width: 70px; height: 24px; border-radius: 12px; background: var(--brand-500);
  display: flex; align-items: center; gap: 3px; padding-left: 8px;
}
.preview-art-equalizer span { width: 3px; background: #0a0806; border-radius: 2px; }
.preview-art-equalizer span:nth-child(1) { height: 6px; }
.preview-art-equalizer span:nth-child(2) { height: 12px; }
.preview-art-equalizer span:nth-child(3) { height: 8px; }
.preview-art-equalizer span:nth-child(4) { height: 14px; }

.preview-art-note {
  width: 44px; height: 44px; background: var(--surface-card); border: 2px solid rgba(201, 169, 110, 0.35); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.preview-art-note::after { content: '🎵'; font-size: 20px; }

.preview-art-bear {
  width: 48px; height: 48px; background: rgba(201, 169, 110, 0.15); border-radius: 14px;
  border: 1px solid rgba(201, 169, 110, 0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.preview-art-bear::after {
  content: '💿'; font-size: 14px; position: absolute; bottom: 0px; right: 0px;
}

.preview-art-discoball {
  width: 50px; height: 50px; background: radial-gradient(circle, #e6cf9b, #7a5e2a);
  border-radius: 50%; box-shadow: inset -5px -5px 15px rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
}
.preview-art-discoball::after {
  content: ''; width: 16px; height: 16px; background: #0a0806; border-radius: 50%;
  border: 2px solid var(--brand-500);
}
.preview-art-cassette {
  width: 60px; height: 38px; border-radius: 4px; background: #221c15;
  border: 1px solid rgba(201, 169, 110, 0.3); display: flex; align-items: center; justify-content: center; gap: 8px; position: relative;
}
.preview-art-cassette::before {
  content: ''; position: absolute; top: 6px; left: 6px; right: 6px; height: 12px; background: var(--brand-500); border-radius: 2px;
}
.preview-art-cassette span { width: 12px; height: 12px; border-radius: 50%; background: #0a0806; border: 2px solid var(--brand-500); z-index: 1; }

/* Countdown Style Previews */
.preview-art-cards, .preview-art-circular, .preview-art-digital, .preview-art-minimal {
  display: flex; gap: 4px; align-items: center; justify-content: center;
}
.preview-art-cards span {
  width: 16px; height: 20px; border-radius: 4px; background: rgba(201, 169, 110, 0.18); border: 1px solid rgba(201, 169, 110, 0.4);
}
.preview-art-minimal span {
  width: 16px; height: 20px; border-left: 1px solid rgba(201, 169, 110, 0.35);
}
.preview-art-minimal span:first-child { border-left: none; }
.preview-art-circular span {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--brand-500); background: rgba(201, 169, 110, 0.15);
}
.preview-art-digital span {
  width: 18px; height: 20px; border-radius: 3px; background: #0a0806; border: 1px solid rgba(201, 169, 110, 0.3); position: relative;
}
.preview-art-digital span::after {
  content: '00'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  color: var(--brand-500); font-family: monospace; font-size: 8px;
}

/* Preview column */
.preview-col { position: sticky; top: 92px; }
@media (max-width: 1100px) { .preview-col { position: static; } }

.preview-shell {
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}
.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .4rem .35rem .85rem .35rem;
  border-bottom: none;
  background: transparent;
}
.preview-head h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  line-height: 1.4;
}
.live-pulse-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: live-pulse 2s infinite;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.device-switch { display: inline-flex; background: rgba(255, 255, 255, 0.08); border-radius: 999px; padding: 3px; }
.device-switch button {
  border: 0; background: transparent; border-radius: 999px;
  padding: .3rem .8rem; font-size: .82rem; font-weight: 600; color: var(--muted);
  transition: all .2s ease;
}
.device-switch button.is-active { background: var(--brand-500); color: #0a0806; box-shadow: var(--shadow-sm); }

.preview-stage {
  padding: 2rem;
  position: relative; width: 100%; transition: max-width .2s ease;
  background: rgba(14, 11, 8, 0.95);
  border: 1px dashed rgba(201, 169, 110, 0.35);
  border-radius: var(--radius-lg);
  display: flex; justify-content: center; align-items: center; min-height: 260px;
}
.preview-frame {
  width: 100%; max-width: 100%; transition: max-width .2s ease;
  background: transparent;
}
.preview-stage[data-device="mobile"] .preview-frame { max-width: 360px; }

.preview-foot { padding: 1rem 1.2rem; border-top: 1px solid rgba(201, 169, 110, 0.18); font-size: .88rem; color: var(--muted); }

.link-box {
  display: flex; gap: .5rem; align-items: center;
  background: var(--surface-input); border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: 12px; padding: .5rem .5rem .5rem .85rem;
}
.link-box code {
  flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap;
  color: var(--brand-400); font-size: .85rem; background: none; padding: 0;
}

.copy-btn.is-copied { background: rgba(74, 124, 89, 0.3) !important; border-color: rgba(74, 124, 89, 0.6) !important; color: #82b994 !important; }

.sticky-actions {
  position: sticky; bottom: 12px; z-index: 20;
  background: rgba(26, 21, 16, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: .9rem 1.2rem; margin-top: 1.3rem;
  display: flex; gap: .75rem; flex-wrap: wrap; align-items: center;
}

/* Canva instructions --------------------------------------------------------- */
.howto { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: .75rem; }
.howto li {
  counter-increment: step; position: relative; padding-left: 2.3rem;
  color: var(--ink-soft); font-size: .95rem;
}
.howto li::before {
  content: counter(step);
  position: absolute; left: 0; top: .05rem;
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--brand-500); color: #0a0806;
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}

/* Legal and 404 pages -------------------------------------------------------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 1.35rem; margin: 2.3rem 0 .7rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.3rem; }

.error-page { text-align: center; padding: clamp(3rem, 10vw, 6rem) 0; }
.error-code {
  font-size: clamp(4rem, 14vw, 7.5rem); font-weight: 700; line-height: 1;
  background: var(--gold-glow-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Footer -------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid rgba(201, 169, 110, 0.18);
  background: #080605;
  padding: 3rem 0 2.2rem;
  margin-top: 3.5rem;
}
.footer-grid {
  display: flex; flex-wrap: wrap; gap: 1.6rem;
  justify-content: space-between; align-items: flex-start;
}
.footer-note { color: var(--muted); font-size: .92rem; margin: .75rem 0 0; max-width: 360px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.footer-links a { color: rgba(255, 255, 255, 0.7); font-size: .92rem; }
.footer-links a:hover { color: var(--brand-500); }
.footer-copy {
  margin: 2rem 0 0; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted); font-size: .85rem;
}

.modal-backdrop-lv {
  position: fixed; inset: 0; background: rgba(10, 8, 6, 0.8);
  backdrop-filter: blur(6px);
  display: none; place-items: center; z-index: 200; padding: 1rem;
}
.modal-backdrop-lv.is-open { display: grid; }
.modal-card {
  background: var(--surface-card);
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: var(--radius-lg); padding: 1.8rem;
  max-width: 440px; width: 100%; box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.modal-card h2 { font-size: 1.25rem; margin-bottom: .5rem; }
.modal-card p { color: var(--muted); font-size: .95rem; }
.modal-actions { display: flex; gap: .7rem; justify-content: flex-end; margin-top: 1.4rem; flex-wrap: wrap; }

/* Video Tutorial Showcase ---------------------------------------------------- */
.tutorial-section {
  position: relative;
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 169, 110, 0.08), transparent 70%), var(--surface-2);
  border-block: 1px solid rgba(201, 169, 110, 0.18);
  overflow: hidden;
}

.tutorial-wrapper {
  max-width: 960px;
  margin: 0 auto;
}

.video-cinema-frame {
  position: relative;
  background: #0f0c0a;
  border: 1.5px solid rgba(201, 169, 110, 0.35);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.7), 0 0 40px rgba(201, 169, 110, 0.12);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.video-cinema-frame:hover {
  border-color: rgba(201, 169, 110, 0.6);
  box-shadow: 0 25px 70px -10px rgba(0, 0, 0, 0.8), 0 0 50px rgba(201, 169, 110, 0.2);
}

.video-cinema-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: rgba(25, 20, 16, 0.95);
  border-bottom: 1px solid rgba(201, 169, 110, 0.15);
}

.mac-dots {
  display: flex;
  gap: 8px;
}

.mac-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.video-cinema-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #e0c896;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
}

.video-viewport {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
}

.video-viewport iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-chapters-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #14100c;
  border-top: 1px solid rgba(201, 169, 110, 0.15);
}

@media (max-width: 768px) {
  .video-chapters-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

.chapter-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
  user-select: none;
}

.chapter-item:last-child {
  border-right: none;
}

.chapter-item:hover,
.chapter-item.is-active {
  background: rgba(201, 169, 110, 0.1);
}

.chapter-item.is-active {
  border-top: 2px solid var(--brand-500, #c9a96e);
}

.chapter-time {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  color: #0a0806;
  background: var(--brand-500, #c9a96e);
  padding: 3px 8px;
  border-radius: 6px;
  line-height: 1;
}

.chapter-info strong {
  display: block;
  font-size: 0.88rem;
  color: #f3efe6;
  line-height: 1.25;
}

.chapter-info small {
  display: block;
  font-size: 0.74rem;
  color: #a59e92;
  margin-top: 2px;
}

.video-feature-pill {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface-card, #17130f);
  border: 1px solid rgba(201, 169, 110, 0.18);
  border-radius: 16px;
  padding: 16px 20px;
  height: 100%;
  transition: transform 0.2s, border-color 0.2s;
}

.video-feature-pill:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 169, 110, 0.4);
}

.video-feature-pill i {
  font-size: 1.6rem;
  line-height: 1;
  margin-top: 2px;
}

.video-feature-pill strong {
  display: block;
  font-size: 0.95rem;
  color: #f3efe6;
  margin-bottom: 4px;
}

.video-feature-pill p {
  font-size: 0.84rem;
  color: var(--muted, #a59e92);
  margin-bottom: 0;
  line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
