/* ==========================================================================
   Lumina Bio — Design System, 5 Curated Themes & Kinetic Motion Engine
   ========================================================================== */

@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes spinBorderAngle {
  to {
    --border-angle: 360deg;
  }
}

:root {
  --font-sans: 'Be Vietnam Pro', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Be Vietnam Pro', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 15px;
  --radius-sm: 11px;
  --radius-pill: 9999px;

  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* Default Royal Sapphire & Champagne Gold Tokens (NQ HOTEL) */
  --bg-base: #070e1a;
  --bg-elevated: rgba(11, 22, 40, 0.88);
  --surface: rgba(12, 23, 40, 0.72);
  --surface-hover: rgba(18, 34, 58, 0.9);
  --surface-strong: #0b1628;
  --surface-pill: rgba(232, 194, 122, 0.1);
  --border: rgba(232, 198, 138, 0.22);
  --border-strong: rgba(242, 212, 154, 0.46);
  --highlight-top: rgba(250, 227, 180, 0.28);

  --text-primary: #f8fafc;
  --text-secondary: #b6c7dc;
  --text-muted: #7e95b0;

  --accent: #e8c27a;
  --accent-2: #d49b42;
  --accent-3: #38bdf8;
  --accent-contrast: #141008;
  --accent-soft: rgba(232, 194, 122, 0.15);
  --spotlight-color: rgba(232, 194, 122, 0.18);
  --ring-glow: rgba(232, 194, 122, 0.45);

  --blob-1: rgba(14, 116, 144, 0.36);
  --blob-2: rgba(232, 194, 122, 0.24);
  --blob-3: rgba(37, 99, 235, 0.28);
  --blob-4: rgba(52, 211, 153, 0.16);

  --name-gradient: linear-gradient(110deg, #ffffff 12%, #fae3b4 38%, #e8c27a 56%, #7dd3fc 78%, #ffffff 94%);
  --cursor-glow-color: rgba(232, 194, 122, 0.15);
  --cursor-blend: screen;

  --hero-banner: linear-gradient(135deg, rgba(11, 32, 64, 0.96) 0%, rgba(232, 194, 122, 0.34) 52%, rgba(14, 116, 144, 0.5) 100%);
  --featured-bg: linear-gradient(135deg, rgba(232, 194, 122, 0.2) 0%, rgba(14, 116, 144, 0.2) 55%, rgba(7, 15, 28, 0.86) 100%);
  --shadow-card: 0 18px 45px -18px rgba(0, 0, 0, 0.72);
  --shadow-glow: 0 10px 30px -10px rgba(232, 194, 122, 0.48);

  --status-dot: #34d399;
  --badge-hot-bg: rgba(232, 194, 122, 0.2);
  --badge-hot-text: #fae3b4;
  --badge-new-bg: rgba(52, 211, 153, 0.18);
  --badge-new-text: #6ee7b7;
  --badge-free-bg: rgba(56, 189, 248, 0.18);
  --badge-free-text: #7dd3fc;
  --noise-opacity: 0.04;
  --drawer-bg: rgba(7, 14, 26, 0.95);
  --input-bg: rgba(255, 255, 255, 0.05);
}

[data-theme="royal"] {
  --bg-base: #070e1a;
  --bg-elevated: rgba(11, 22, 40, 0.88);
  --surface: rgba(12, 23, 40, 0.72);
  --surface-hover: rgba(18, 34, 58, 0.9);
  --surface-strong: #0b1628;
  --surface-pill: rgba(232, 194, 122, 0.1);
  --border: rgba(232, 198, 138, 0.22);
  --border-strong: rgba(242, 212, 154, 0.46);
  --highlight-top: rgba(250, 227, 180, 0.28);

  --text-primary: #f8fafc;
  --text-secondary: #b6c7dc;
  --text-muted: #7e95b0;

  --accent: #e8c27a;
  --accent-2: #d49b42;
  --accent-3: #38bdf8;
  --accent-contrast: #141008;
  --accent-soft: rgba(232, 194, 122, 0.15);
  --spotlight-color: rgba(232, 194, 122, 0.18);
  --ring-glow: rgba(232, 194, 122, 0.45);

  --blob-1: rgba(14, 116, 144, 0.36);
  --blob-2: rgba(232, 194, 122, 0.24);
  --blob-3: rgba(37, 99, 235, 0.28);
  --blob-4: rgba(52, 211, 153, 0.16);

  --name-gradient: linear-gradient(110deg, #ffffff 12%, #fae3b4 38%, #e8c27a 56%, #7dd3fc 78%, #ffffff 94%);
  --cursor-glow-color: rgba(232, 194, 122, 0.15);
  --cursor-blend: screen;

  --hero-banner: linear-gradient(135deg, rgba(11, 32, 64, 0.96) 0%, rgba(232, 194, 122, 0.34) 52%, rgba(14, 116, 144, 0.5) 100%);
  --featured-bg: linear-gradient(135deg, rgba(232, 194, 122, 0.2) 0%, rgba(14, 116, 144, 0.2) 55%, rgba(7, 15, 28, 0.86) 100%);
  --shadow-card: 0 18px 45px -18px rgba(0, 0, 0, 0.72);
  --shadow-glow: 0 10px 30px -10px rgba(232, 194, 122, 0.48);

  --status-dot: #34d399;
  --badge-hot-bg: rgba(232, 194, 122, 0.2);
  --badge-hot-text: #fae3b4;
  --badge-new-bg: rgba(52, 211, 153, 0.18);
  --badge-new-text: #6ee7b7;
  --badge-free-bg: rgba(56, 189, 248, 0.18);
  --badge-free-text: #7dd3fc;
  --noise-opacity: 0.04;
  --drawer-bg: rgba(7, 14, 26, 0.95);
  --input-bg: rgba(255, 255, 255, 0.05);
}

/* Theme 2: Aurora Noir */
[data-theme="aurora"] {
  --bg-base: #07080d;
  --bg-elevated: rgba(17, 20, 34, 0.82);
  --surface: rgba(255, 255, 255, 0.055);
  --surface-hover: rgba(255, 255, 255, 0.095);
  --surface-strong: rgba(20, 24, 42, 0.92);
  --surface-pill: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.11);
  --border-strong: rgba(255, 255, 255, 0.22);
  --highlight-top: rgba(255, 255, 255, 0.2);

  --text-primary: #f4f6fb;
  --text-secondary: #a8b0c7;
  --text-muted: #76809e;

  --accent: #818cf8;
  --accent-2: #f472b6;
  --accent-3: #38bdf8;
  --accent-contrast: #ffffff;
  --accent-soft: rgba(129, 140, 248, 0.16);
  --spotlight-color: rgba(129, 140, 248, 0.2);
  --ring-glow: rgba(129, 140, 248, 0.45);

  --blob-1: rgba(99, 102, 241, 0.36);
  --blob-2: rgba(236, 72, 153, 0.28);
  --blob-3: rgba(56, 189, 248, 0.24);
  --blob-4: rgba(168, 85, 247, 0.22);

  --name-gradient: linear-gradient(110deg, #ffffff 10%, #c7d2fe 35%, #f9a8d4 55%, #7dd3fc 78%, #ffffff 95%);
  --cursor-glow-color: rgba(129, 140, 248, 0.16);
  --cursor-blend: screen;

  --hero-banner: linear-gradient(135deg, rgba(99, 102, 241, 0.42), rgba(236, 72, 153, 0.3), rgba(56, 189, 248, 0.28));
  --featured-bg: linear-gradient(135deg, rgba(99, 102, 241, 0.24) 0%, rgba(236, 72, 153, 0.16) 55%, rgba(15, 23, 42, 0.55) 100%);
  --shadow-card: 0 18px 45px -18px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 10px 30px -10px rgba(99, 102, 241, 0.45);

  --status-dot: #34d399;
  --badge-hot-bg: rgba(244, 63, 94, 0.18);
  --badge-hot-text: #fda4af;
  --badge-new-bg: rgba(56, 189, 248, 0.18);
  --badge-new-text: #7dd3fc;
  --badge-free-bg: rgba(52, 211, 153, 0.18);
  --badge-free-text: #6ee7b7;
  --noise-opacity: 0.045;
  --drawer-bg: rgba(12, 14, 24, 0.94);
  --input-bg: rgba(255, 255, 255, 0.05);
}

/* Theme 2: Editorial Paper (Light Warm Tactile) */
[data-theme="editorial"] {
  --bg-base: #f6f3ec;
  --bg-elevated: rgba(255, 253, 249, 0.92);
  --surface: rgba(255, 253, 248, 0.84);
  --surface-hover: #ffffff;
  --surface-strong: #fffdf9;
  --surface-pill: rgba(25, 23, 21, 0.055);
  --border: rgba(25, 23, 21, 0.11);
  --border-strong: rgba(25, 23, 21, 0.22);
  --highlight-top: rgba(255, 255, 255, 0.95);

  --text-primary: #191715;
  --text-secondary: #58514a;
  --text-muted: #847b72;

  --accent: #c85a32;
  --accent-2: #9b3d1c;
  --accent-3: #d97706;
  --accent-contrast: #fffdf9;
  --accent-soft: rgba(200, 90, 50, 0.12);
  --spotlight-color: rgba(200, 90, 50, 0.14);
  --ring-glow: rgba(200, 90, 50, 0.32);

  --blob-1: rgba(200, 90, 50, 0.16);
  --blob-2: rgba(217, 119, 6, 0.14);
  --blob-3: rgba(168, 162, 158, 0.22);
  --blob-4: rgba(234, 88, 12, 0.11);

  --name-gradient: linear-gradient(110deg, #191715 15%, #9b3d1c 45%, #c85a32 65%, #191715 90%);
  --cursor-glow-color: rgba(200, 90, 50, 0.11);
  --cursor-blend: multiply;

  --hero-banner: linear-gradient(135deg, rgba(200, 90, 50, 0.24), rgba(217, 119, 6, 0.16), rgba(231, 224, 212, 0.9));
  --featured-bg: linear-gradient(135deg, rgba(200, 90, 50, 0.13) 0%, rgba(217, 119, 6, 0.08) 55%, rgba(255, 253, 248, 0.92) 100%);
  --shadow-card: 0 14px 36px -18px rgba(45, 34, 24, 0.18);
  --shadow-glow: 0 10px 26px -10px rgba(200, 90, 50, 0.34);

  --status-dot: #15803d;
  --badge-hot-bg: rgba(200, 90, 50, 0.14);
  --badge-hot-text: #a53c18;
  --badge-new-bg: rgba(29, 78, 216, 0.11);
  --badge-new-text: #1d4ed8;
  --badge-free-bg: rgba(21, 128, 61, 0.12);
  --badge-free-text: #15803d;
  --noise-opacity: 0.03;
  --drawer-bg: rgba(250, 247, 242, 0.96);
  --input-bg: rgba(25, 23, 21, 0.045);
}

/* Theme 3: Matcha Botanical */
[data-theme="matcha"] {
  --bg-base: #08110d;
  --bg-elevated: rgba(12, 27, 21, 0.85);
  --surface: rgba(236, 253, 245, 0.055);
  --surface-hover: rgba(236, 253, 245, 0.1);
  --surface-strong: rgba(14, 32, 24, 0.94);
  --surface-pill: rgba(167, 243, 208, 0.08);
  --border: rgba(167, 243, 208, 0.14);
  --border-strong: rgba(167, 243, 208, 0.28);
  --highlight-top: rgba(209, 250, 229, 0.22);

  --text-primary: #ecfdf5;
  --text-secondary: #a7d7c5;
  --text-muted: #6ea391;

  --accent: #10b981;
  --accent-2: #84cc16;
  --accent-3: #2dd4bf;
  --accent-contrast: #042f2e;
  --accent-soft: rgba(16, 185, 129, 0.17);
  --spotlight-color: rgba(16, 185, 129, 0.2);
  --ring-glow: rgba(16, 185, 129, 0.42);

  --blob-1: rgba(16, 185, 129, 0.3);
  --blob-2: rgba(132, 204, 22, 0.2);
  --blob-3: rgba(45, 212, 191, 0.22);
  --blob-4: rgba(52, 211, 153, 0.18);

  --name-gradient: linear-gradient(110deg, #ecfdf5 15%, #6ee7b7 45%, #bef264 68%, #ecfdf5 92%);
  --cursor-glow-color: rgba(16, 185, 129, 0.16);
  --cursor-blend: screen;

  --hero-banner: linear-gradient(135deg, rgba(16, 185, 129, 0.36), rgba(45, 212, 191, 0.24), rgba(6, 78, 59, 0.45));
  --featured-bg: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(132, 204, 22, 0.12) 55%, rgba(6, 30, 22, 0.65) 100%);
  --shadow-card: 0 18px 45px -18px rgba(0, 0, 0, 0.72);
  --shadow-glow: 0 10px 30px -10px rgba(16, 185, 129, 0.42);

  --status-dot: #34d399;
  --badge-hot-bg: rgba(251, 146, 60, 0.18);
  --badge-hot-text: #fdba74;
  --badge-new-bg: rgba(45, 212, 191, 0.18);
  --badge-new-text: #5eead4;
  --badge-free-bg: rgba(163, 230, 53, 0.18);
  --badge-free-text: #bef264;
  --drawer-bg: rgba(10, 22, 17, 0.95);
  --input-bg: rgba(236, 253, 245, 0.06);
}

/* Theme 4: Sunset Dune */
[data-theme="sunset"] {
  --bg-base: #130b09;
  --bg-elevated: rgba(31, 18, 15, 0.86);
  --surface: rgba(255, 247, 237, 0.06);
  --surface-hover: rgba(255, 247, 237, 0.105);
  --surface-strong: rgba(36, 20, 16, 0.94);
  --surface-pill: rgba(253, 186, 116, 0.09);
  --border: rgba(253, 186, 116, 0.15);
  --border-strong: rgba(253, 186, 116, 0.28);
  --highlight-top: rgba(254, 215, 170, 0.22);

  --text-primary: #fff7ed;
  --text-secondary: #e2bfb0;
  --text-muted: #a68275;

  --accent: #f97316;
  --accent-2: #f43f5e;
  --accent-3: #facc15;
  --accent-contrast: #ffffff;
  --accent-soft: rgba(249, 115, 22, 0.18);
  --spotlight-color: rgba(249, 115, 22, 0.22);
  --ring-glow: rgba(249, 115, 22, 0.45);

  --blob-1: rgba(249, 115, 22, 0.32);
  --blob-2: rgba(244, 63, 94, 0.28);
  --blob-3: rgba(250, 204, 21, 0.18);
  --blob-4: rgba(251, 146, 60, 0.2);

  --name-gradient: linear-gradient(110deg, #fff7ed 15%, #fdba74 42%, #fda4af 66%, #fff7ed 92%);
  --cursor-glow-color: rgba(249, 115, 22, 0.17);
  --cursor-blend: screen;

  --hero-banner: linear-gradient(135deg, rgba(249, 115, 22, 0.42), rgba(244, 63, 94, 0.34), rgba(124, 45, 18, 0.45));
  --featured-bg: linear-gradient(135deg, rgba(249, 115, 22, 0.24) 0%, rgba(244, 63, 94, 0.18) 55%, rgba(30, 14, 12, 0.65) 100%);
  --shadow-card: 0 18px 45px -18px rgba(0, 0, 0, 0.72);
  --shadow-glow: 0 10px 30px -10px rgba(249, 115, 22, 0.45);

  --status-dot: #4ade80;
  --badge-hot-bg: rgba(244, 63, 94, 0.22);
  --badge-hot-text: #fda4af;
  --badge-new-bg: rgba(250, 204, 21, 0.2);
  --badge-new-text: #fde047;
  --badge-free-bg: rgba(74, 222, 128, 0.18);
  --badge-free-text: #86efac;
  --drawer-bg: rgba(25, 14, 11, 0.95);
  --input-bg: rgba(255, 247, 237, 0.06);
}

/* Theme 5: Pearl Frost (Daylight Acrylic) */
[data-theme="pearl"] {
  --bg-base: #edf2f8;
  --bg-elevated: rgba(255, 255, 255, 0.84);
  --surface: rgba(255, 255, 255, 0.76);
  --surface-hover: rgba(255, 255, 255, 0.96);
  --surface-strong: #ffffff;
  --surface-pill: rgba(15, 23, 42, 0.06);
  --border: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.19);
  --highlight-top: rgba(255, 255, 255, 1);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --accent: #0284c7;
  --accent-2: #7c3aed;
  --accent-3: #06b6d4;
  --accent-contrast: #ffffff;
  --accent-soft: rgba(2, 132, 199, 0.12);
  --spotlight-color: rgba(2, 132, 199, 0.14);
  --ring-glow: rgba(2, 132, 199, 0.3);

  --blob-1: rgba(56, 189, 248, 0.28);
  --blob-2: rgba(167, 139, 250, 0.24);
  --blob-3: rgba(103, 232, 249, 0.24);
  --blob-4: rgba(14, 165, 233, 0.18);

  --name-gradient: linear-gradient(110deg, #0f172a 15%, #0284c7 45%, #7c3aed 68%, #0f172a 92%);
  --cursor-glow-color: rgba(2, 132, 199, 0.12);
  --cursor-blend: normal;

  --hero-banner: linear-gradient(135deg, rgba(56, 189, 248, 0.34), rgba(139, 92, 246, 0.24), rgba(224, 242, 254, 0.85));
  --featured-bg: linear-gradient(135deg, rgba(14, 165, 233, 0.13) 0%, rgba(139, 92, 246, 0.11) 55%, rgba(255, 255, 255, 0.92) 100%);
  --shadow-card: 0 16px 40px -18px rgba(15, 23, 42, 0.14);
  --shadow-glow: 0 10px 28px -10px rgba(2, 132, 199, 0.3);

  --status-dot: #10b981;
  --badge-hot-bg: rgba(225, 29, 72, 0.11);
  --badge-hot-text: #be123c;
  --badge-new-bg: rgba(2, 132, 199, 0.12);
  --badge-new-text: #0369a1;
  --badge-free-bg: rgba(5, 150, 105, 0.12);
  --badge-free-text: #047857;
  --noise-opacity: 0.025;
  --drawer-bg: rgba(248, 250, 252, 0.96);
  --input-bg: rgba(15, 23, 42, 0.045);
}

/* Card Surface Variants */
[data-card-style="solid"] .surface-card {
  background: var(--surface-strong);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

[data-card-style="outline"] .surface-card {
  background: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: var(--border-strong);
  box-shadow: none;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-base);
  line-height: 1.55;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease-smooth), color 0.35s var(--ease-smooth);
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font-family: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Ambient Aurora Background & Grain Overlay
   ========================================================================== */
.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.92;
  will-change: transform;
  animation: auroraFloat 10s ease-in-out infinite alternate;
}

.aurora-blob--1 {
  width: 520px;
  height: 520px;
  top: -150px;
  left: -120px;
  background: radial-gradient(circle, var(--blob-1) 0%, transparent 70%);
}

.aurora-blob--2 {
  width: 480px;
  height: 480px;
  top: 22%;
  right: -140px;
  background: radial-gradient(circle, var(--blob-2) 0%, transparent 70%);
  animation-delay: -3.5s;
  animation-duration: 12s;
}

.aurora-blob--3 {
  width: 540px;
  height: 540px;
  bottom: -180px;
  left: 18%;
  background: radial-gradient(circle, var(--blob-3) 0%, transparent 70%);
  animation-delay: -6s;
  animation-duration: 13s;
}

.aurora-blob--4 {
  width: 380px;
  height: 380px;
  top: 48%;
  left: -100px;
  background: radial-gradient(circle, var(--blob-4) 0%, transparent 70%);
  animation-delay: -2s;
  animation-duration: 9s;
}

.particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transform: translate3d(-999px, -999px, 0);
  background: radial-gradient(circle, var(--cursor-glow-color) 0%, transparent 68%);
  mix-blend-mode: var(--cursor-blend);
  transition: opacity 0.3s ease;
  will-change: transform;
}

.cursor-glow.is-active {
  opacity: 1;
}

.fx-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  overflow: hidden;
}

.spark-particle {
  position: fixed;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
}

body.no-motion .aurora-blob {
  animation: none;
}

body.no-motion .particle-canvas,
body.no-particles .particle-canvas,
body.no-motion .cursor-glow,
body.no-cursor-fx .cursor-glow {
  display: none;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes auroraFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }
  33% {
    transform: translate3d(48px, -22px, 0) scale(1.1) rotate(8deg);
  }
  66% {
    transform: translate3d(-26px, 44px, 0) scale(0.94) rotate(-6deg);
  }
  100% {
    transform: translate3d(32px, 34px, 0) scale(1.06) rotate(4deg);
  }
}

/* ==========================================================================
   Layout Container & Top Utility Bar
   ========================================================================== */
.page-shell {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  padding: 20px 18px 64px;
  position: relative;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
  position: sticky;
  top: 12px;
  z-index: 25;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--shadow-card);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  max-width: 240px;
}

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

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-dot);
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  animation: pulseDot 2.2s infinite;
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--shadow-card);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  height: 34px;
  min-width: 34px;
  padding: 0 9px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: transform 0.2s var(--ease-spring), background-color 0.2s, color 0.2s, border-color 0.2s;
}

.icon-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.icon-btn:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.icon-btn--accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-contrast);
  padding: 0 13px;
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
  transform: translate3d(var(--mag-x, 0px), var(--mag-y, 0px), 0);
}

.icon-btn--accent::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -80%;
  width: 55%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.36), transparent);
  transform: rotate(24deg);
  animation: sheenSweep 3.8s ease-in-out infinite;
  pointer-events: none;
}

.icon-btn--accent:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-contrast);
  filter: brightness(1.07);
  transform: translate3d(var(--mag-x, 0px), calc(var(--mag-y, 0px) - 1px), 0);
}

/* Visitor Preview Mode & Locked Production Mode */
body.visitor-mode .studio-only,
body.edit-locked .studio-only,
body.edit-locked .exit-visitor-pill,
body.edit-locked #studioDrawer,
body.edit-locked #studioBackdrop {
  display: none !important;
}

.exit-visitor-pill {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: none;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface-strong);
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.exit-visitor-pill svg {
  width: 15px;
  height: 15px;
}

body.visitor-mode .exit-visitor-pill {
  display: inline-flex;
}

/* ==========================================================================
   Shared Glass Surface & Spotlight Card
   ========================================================================== */
.surface-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card), inset 0 1px 0 0 var(--highlight-top);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.spotlight-card {
  position: relative;
  overflow: hidden;
  --mx: 50%;
  --my: 50%;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    280px circle at var(--mx) var(--my),
    var(--spotlight-color),
    transparent 70%
  );
  transition: opacity 0.28s var(--ease-smooth);
}

.spotlight-card:hover::before {
  opacity: 1;
}

/* Rotating Conic Border Beam & 3D Tilt Physics */
.beam-card {
  position: relative;
}

.beam-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--border-angle),
    transparent 0deg 220deg,
    var(--accent) 275deg,
    var(--accent-2) 320deg,
    var(--accent-3) 355deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  animation: spinBorderAngle 4.2s linear infinite;
  transition: opacity 0.3s ease;
}

.beam-card--always::after {
  opacity: 0.72;
}

.beam-card:hover::after {
  opacity: 0.95;
}

.tilt-card {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate3d(0, var(--lift, 0px), 0);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-spring), border-color 0.25s, background-color 0.25s;
  will-change: transform;
}

.tilt-card.is-tilting {
  transition: transform 0.08s linear, border-color 0.25s, background-color 0.25s;
}

body.no-motion .beam-card::after,
body.no-tilt .beam-card::after {
  display: none;
}

body.no-motion .tilt-card,
body.no-tilt .tilt-card {
  transform: none !important;
}

/* ==========================================================================
   Profile Hero Card
   ========================================================================== */
.hero-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 16px;
  animation: fadeSlideUp 0.55s var(--ease-spring) both;
}

.hero-banner {
  height: 116px;
  background: var(--hero-banner);
  background-size: 180% 180%;
  animation: bannerShimmer 10s ease-in-out infinite alternate;
  position: relative;
  overflow: hidden;
}

.hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.24) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.35;
}

.banner-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
  animation: orbDrift 7s ease-in-out infinite alternate;
}

.banner-orb--1 {
  width: 58px;
  height: 58px;
  top: 14px;
  left: 12%;
}

.banner-orb--2 {
  width: 34px;
  height: 34px;
  top: 46px;
  right: 16%;
  animation-delay: -2.4s;
  animation-duration: 5.8s;
}

.banner-orb--3 {
  width: 22px;
  height: 22px;
  top: 18px;
  right: 32%;
  animation-delay: -4.1s;
  animation-duration: 6.4s;
}

.hero-body {
  padding: 0 24px 24px;
  text-align: center;
  position: relative;
}

.avatar-wrap {
  width: 106px;
  height: 106px;
  margin: -53px auto 14px;
  position: relative;
  border-radius: 50%;
  padding: 4px;
  cursor: pointer;
  box-shadow: 0 14px 34px -8px var(--ring-glow);
  animation: avatarLevitate 4.2s ease-in-out infinite;
  transition: transform 0.28s var(--ease-spring);
}

.avatar-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from var(--border-angle), var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  animation: spinBorderAngle 3.6s linear infinite;
  z-index: 0;
}

.avatar-wrap::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  pointer-events: none;
  animation: avatarPulseRing 3s ease-out infinite;
}

.avatar-wrap:hover {
  transform: scale(1.06);
}

.avatar-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-base);
  background: var(--surface-strong);
}

.verified-badge {
  position: absolute;
  right: 2px;
  bottom: 2px;
  z-index: 2;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-base);
  color: var(--accent-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.verified-badge svg {
  width: 20px;
  height: 20px;
}

.hero-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  background: var(--name-gradient);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: textShimmer 5.5s linear infinite;
}

.hero-handle {
  margin: 4px 0 8px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--accent);
  font-weight: 500;
}

.hero-typewriter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 26px;
  padding: 4px 12px;
  margin-bottom: 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
}

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--accent);
  margin-left: 2px;
  animation: cursorBlink 0.9s steps(2, start) infinite;
}

.hero-meta-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--surface-pill);
  border: 1px solid var(--border);
  font-size: 0.77rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.meta-chip svg {
  width: 13px;
  height: 13px;
  color: var(--accent);
}

.hero-bio {
  margin: 0 auto 18px;
  max-width: 44ch;
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface-pill);
  color: var(--text-primary);
  transition: transform 0.22s var(--ease-spring), background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

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

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-contrast);
  border-color: transparent;
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
  transform: translate3d(var(--mag-x, 0px), var(--mag-y, 0px), 0);
}

.btn--primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -80%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: rotate(24deg);
  animation: sheenSweep 3.6s ease-in-out infinite;
  pointer-events: none;
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  filter: brightness(1.06);
  transform: translate3d(var(--mag-x, 0px), calc(var(--mag-y, 0px) - 2px), 0);
}

.btn--sm {
  padding: 7px 13px;
  font-size: 0.79rem;
}

.social-dock {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-pill);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transform: translate3d(var(--mag-x, 0px), var(--mag-y, 0px), 0);
  transition: transform 0.24s var(--ease-spring), color 0.2s, border-color 0.2s, background-color 0.2s, box-shadow 0.24s;
  animation: popSpring 0.5s var(--ease-spring) backwards;
  animation-delay: calc(var(--i, 0) * 55ms);
}

.social-btn svg {
  width: 18px;
  height: 18px;
}

.social-btn:hover {
  transform: translate3d(var(--mag-x, 0px), calc(var(--mag-y, 0px) - 4px), 0) scale(1.1);
  color: var(--text-primary);
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 8px 22px -4px var(--ring-glow);
}

/* ==========================================================================
   Bento Highlights Grid
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
  animation: fadeSlideUp 0.62s var(--ease-spring) both;
}

.bento-card {
  border-radius: var(--radius-lg);
  padding: 18px;
}

.bento-card:hover {
  border-color: var(--border-strong);
}

.bento-featured {
  grid-column: 1 / -1;
  background: var(--featured-bg);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
}

.bento-featured__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bento-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--border);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bento-badge svg {
  width: 12px;
  height: 12px;
}

.bento-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-pill);
  border: 1px solid var(--border);
  color: var(--text-primary);
  transition: transform 0.25s var(--ease-spring), background-color 0.2s;
}

.bento-featured:hover .bento-arrow {
  transform: translate(2px, -2px);
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: transparent;
}

.bento-arrow svg {
  width: 15px;
  height: 15px;
}

.bento-featured__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.bento-featured__sub {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.bento-featured__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 2px;
}

/* Room Tier Bento Cards */
.bento-room {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 11px;
  text-decoration: none;
}

.bento-room__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bento-room__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
}

.bento-room__prices {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 9px;
  border-radius: 10px;
  background: var(--surface-pill);
  border: 1px solid var(--border);
  font-size: 0.77rem;
}

.price-row__label {
  color: var(--text-secondary);
}

.price-row__value {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
}

.bento-room__meta {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Vibe Music Widget */
.bento-vibe {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}

.floating-note {
  position: absolute;
  bottom: 22px;
  right: 26px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-2);
  pointer-events: none;
  z-index: 3;
  animation: floatNoteUp 1.9s ease-out forwards;
}

@keyframes floatNoteUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 6px, 0) scale(0.7) rotate(-8deg);
  }
  20% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--nx, 14px), -54px, 0) scale(1.15) rotate(12deg);
  }
}

.bento-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.vibe-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vinyl-disc {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  background:
    radial-gradient(circle at center, var(--bg-base) 0 18%, var(--accent) 19% 25%, #18181b 26% 100%);
  border: 1px solid var(--border-strong);
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.5);
  position: relative;
}

.bento-vibe.is-playing .vinyl-disc {
  animation: spinVinyl 4s linear infinite;
}

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

.vibe-info {
  min-width: 0;
  flex: 1;
}

.vibe-title {
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vibe-artist {
  font-size: 0.76rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vibe-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.vibe-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring), background-color 0.2s;
}

.vibe-play-btn:hover {
  transform: scale(1.04);
}

.vibe-play-btn svg {
  width: 13px;
  height: 13px;
}

.eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 18px;
}

.eq-bars span {
  width: 2.5px;
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(to top, var(--accent), var(--accent-2));
  opacity: 0.45;
  animation: eqIdle 1.6s ease-in-out infinite alternate;
}

.eq-bars span:nth-child(2n) { animation-delay: 0.25s; }
.eq-bars span:nth-child(3n) { animation-delay: 0.55s; }
.eq-bars span:nth-child(4n) { animation-delay: 0.8s; }

.bento-vibe.is-playing .eq-bars span {
  opacity: 1;
  animation: eqBounce 0.72s ease-in-out infinite alternate;
}

.bento-vibe.is-playing .eq-bars span:nth-child(2) { animation-delay: 0.1s; animation-duration: 0.62s; }
.bento-vibe.is-playing .eq-bars span:nth-child(3) { animation-delay: 0.28s; animation-duration: 0.82s; }
.bento-vibe.is-playing .eq-bars span:nth-child(4) { animation-delay: 0.16s; animation-duration: 0.58s; }
.bento-vibe.is-playing .eq-bars span:nth-child(5) { animation-delay: 0.38s; animation-duration: 0.74s; }
.bento-vibe.is-playing .eq-bars span:nth-child(6) { animation-delay: 0.08s; animation-duration: 0.66s; }
.bento-vibe.is-playing .eq-bars span:nth-child(7) { animation-delay: 0.44s; animation-duration: 0.79s; }
.bento-vibe.is-playing .eq-bars span:nth-child(8) { animation-delay: 0.22s; animation-duration: 0.64s; }
.bento-vibe.is-playing .eq-bars span:nth-child(9) { animation-delay: 0.34s; animation-duration: 0.71s; }
.bento-vibe.is-playing .eq-bars span:nth-child(10) { animation-delay: 0.14s; animation-duration: 0.6s; }
.bento-vibe.is-playing .eq-bars span:nth-child(11) { animation-delay: 0.4s; animation-duration: 0.77s; }
.bento-vibe.is-playing .eq-bars span:nth-child(12) { animation-delay: 0.26s; animation-duration: 0.68s; }

@keyframes eqIdle {
  0% { height: 4px; }
  100% { height: 8px; }
}

@keyframes eqBounce {
  0% { height: 4px; }
  100% { height: 18px; }
}

/* Clock Widget */
.bento-clock {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.clock-time {
  font-family: var(--font-mono);
  font-size: 1.48rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.clock-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
}

.clock-sub svg {
  width: 13px;
  height: 13px;
  color: var(--accent-2);
  flex-shrink: 0;
}

/* ==========================================================================
   Category Filter Pills
   ========================================================================== */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.filter-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.filter-pill.is-active {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   Smart Link Stack
   ========================================================================== */
.links-stack {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 28px;
}

.link-card {
  border-radius: var(--radius-lg);
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 13px;
  animation: fadeSlideUp 0.48s var(--ease-spring) both;
}

.link-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.link-card__anchor {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: 1;
  min-width: 0;
}

.link-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  color: var(--accent);
  transition: transform 0.28s var(--ease-spring), background-color 0.22s, color 0.22s;
}

.link-icon-box svg {
  width: 20px;
  height: 20px;
}

.link-card:hover .link-icon-box {
  transform: scale(1.09) rotate(-5deg);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-contrast);
  border-color: transparent;
  box-shadow: 0 8px 20px -6px var(--ring-glow);
  animation: iconWiggle 0.45s var(--ease-spring);
}

.link-content {
  flex: 1;
  min-width: 0;
}

.link-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.link-title {
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.3;
}

.link-badge {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
}

.link-badge--hot {
  background: var(--badge-hot-bg);
  color: var(--badge-hot-text);
  animation: badgePulse 2.1s ease-in-out infinite;
}

.link-badge--new {
  background: var(--badge-new-bg);
  color: var(--badge-new-text);
  animation: badgeTwinkle 2.6s ease-in-out infinite;
}

.link-badge--free {
  background: var(--badge-free-bg);
  color: var(--badge-free-text);
}

.link-sub {
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.link-copy-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-pill);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.link-copy-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.link-copy-btn svg {
  width: 14px;
  height: 14px;
}

.link-go-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 0.24s var(--ease-spring), color 0.2s;
}

.link-card:hover .link-go-icon {
  color: var(--text-primary);
  transform: translate(2px, -2px);
}

.link-card:hover .link-go-icon svg {
  animation: arrowLaunch 0.45s var(--ease-spring);
}

.link-go-icon svg {
  width: 16px;
  height: 16px;
}

.empty-state {
  text-align: center;
  padding: 28px 18px;
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-studio-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 600;
  transition: all 0.2s;
}

.footer-studio-link:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.footer-studio-link svg {
  width: 13px;
  height: 13px;
}

/* ==========================================================================
   Share & QR Modal
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(5, 7, 14, 0.68);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-backdrop.is-open {
  display: flex;
  animation: fadeIn 0.2s ease both;
}

.modal-dialog {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-xl);
  background: var(--drawer-bg);
  border: 1px solid var(--border-strong);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  padding: 22px;
  position: relative;
  animation: popIn 0.28s var(--ease-spring) both;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.close-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-pill);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.close-circle:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.close-circle svg {
  width: 16px;
  height: 16px;
}

.qr-card {
  background: #ffffff;
  color: #111827;
  border-radius: var(--radius-lg);
  padding: 18px;
  text-align: center;
  margin-bottom: 14px;
}

.qr-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.qr-profile img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.qr-profile-meta {
  text-align: left;
}

.qr-profile-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: #0f172a;
}

.qr-profile-handle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #475569;
}

.qr-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.qr-box img,
.qr-box canvas {
  border-radius: 10px;
}

.qr-fallback {
  padding: 18px 12px;
  border: 1.5px dashed #cbd5e1;
  border-radius: 14px;
  color: #475569;
  font-size: 0.8rem;
}

.share-url-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.share-url-input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--input-bg);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

/* ==========================================================================
   Customize Studio Slide-Over Drawer
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(5, 7, 14, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.studio-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 75;
  width: min(460px, 100vw);
  background: var(--drawer-bg);
  border-left: 1px solid var(--border-strong);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.36s var(--ease-spring);
}

.studio-drawer.is-open {
  transform: translateX(0);
}

.studio-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.studio-header h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.studio-header h2 svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.studio-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
}

.studio-tab {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.studio-tab:hover {
  background: var(--surface-pill);
  color: var(--text-primary);
}

.studio-tab.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--border);
}

.studio-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
}

.studio-panel {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.studio-panel.is-active {
  display: flex;
}

.studio-section {
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.studio-section-title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 0.84rem;
  transition: border-color 0.2s, background-color 0.2s;
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--accent);
}

.textarea {
  resize: vertical;
  min-height: 76px;
}

.select option {
  background: #141826;
  color: #f4f6fb;
}

[data-theme="editorial"] .select option,
[data-theme="pearl"] .select option {
  background: #ffffff;
  color: #0f172a;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  font-weight: 500;
}

.switch-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Avatar Picker in Studio */
.avatar-presets {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.avatar-preset-btn {
  width: 48px;
  height: 48px;
  padding: 2px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s var(--ease-spring), border-color 0.2s;
}

.avatar-preset-btn img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-preset-btn:hover {
  transform: scale(1.07);
}

.avatar-preset-btn.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.upload-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  border: 1px dashed var(--border-strong);
  background: var(--surface-pill);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.upload-label svg {
  width: 14px;
  height: 14px;
}

/* Link Editor Item */
.editor-link-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--input-bg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.editor-link-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.editor-link-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mini-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mini-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.mini-btn--danger:hover {
  color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.45);
}

.mini-btn svg {
  width: 14px;
  height: 14px;
}

/* Theme Swatch Cards */
.theme-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.theme-option {
  width: 100%;
  text-align: left;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--input-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.2s, transform 0.2s var(--ease-spring);
}

.theme-option:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.theme-option.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.theme-option__name {
  font-weight: 700;
  font-size: 0.88rem;
}

.theme-option__desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.swatch-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.swatch-dots span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.segment-btn {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--input-bg);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.segment-btn.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.studio-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.studio-footer-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.studio-footer-row > .btn {
  flex: 1;
  min-width: 120px;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
.toast-container {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 32px);
}

.toast {
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 0.83rem;
  font-weight: 600;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px);
  animation: toastIn 0.25s var(--ease-spring) both;
}

/* ==========================================================================
   Animations & Responsive
   ========================================================================== */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bannerShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes orbDrift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(14px, -10px, 0) scale(1.12); }
}

@keyframes avatarLevitate {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes avatarPulseRing {
  0% {
    opacity: 0.6;
    transform: scale(0.98);
  }
  100% {
    opacity: 0;
    transform: scale(1.24);
  }
}

@keyframes textShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes sheenSweep {
  0%, 58% { left: -85%; }
  100% { left: 145%; }
}

@keyframes popSpring {
  0% {
    opacity: 0;
    transform: scale(0.65) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes iconWiggle {
  0% { transform: scale(1) rotate(0deg); }
  35% { transform: scale(1.12) rotate(-9deg); }
  70% { transform: scale(1.06) rotate(4deg); }
  100% { transform: scale(1.09) rotate(-5deg); }
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
  50% { transform: scale(1.05); box-shadow: 0 0 12px rgba(244, 63, 94, 0.32); }
}

@keyframes badgeTwinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

@keyframes arrowLaunch {
  0% { transform: translate(0, 0); opacity: 1; }
  45% { transform: translate(6px, -6px); opacity: 0; }
  46% { transform: translate(-6px, 6px); opacity: 0; }
  100% { transform: translate(0, 0); opacity: 1; }
}

body.no-motion .hero-banner,
body.no-motion .banner-orb,
body.no-motion .avatar-wrap,
body.no-motion .avatar-wrap::before,
body.no-motion .avatar-wrap::after,
body.no-motion .hero-name,
body.no-motion .btn--primary::after,
body.no-motion .icon-btn--accent::after,
body.no-motion .link-badge--hot,
body.no-motion .link-badge--new {
  animation: none !important;
}

@media (max-width: 560px) {
  .page-shell {
    padding: 14px 13px 56px;
  }

  .top-bar {
    top: 8px;
  }

  .status-pill {
    max-width: 165px;
    padding: 6px 10px;
    font-size: 0.73rem;
  }

  .icon-btn--accent span {
    display: none;
  }

  .icon-btn--accent {
    padding: 0 10px;
  }

  .hero-body {
    padding: 0 16px 20px;
  }

  .hero-name {
    font-size: 1.44rem;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
