/* ===========================================================================
   LookMax AI — Deep Dark Cyber-Luxury & Interactive Gold-Cyan Card System
   Obsidian Night (#060913), Midnight Sapphire (#0E162B),
   Imperial Metallic Gold (#F59E0B / #FEF08A) & Electric Cyan (#38BDF8 / #00F0FF).
   =========================================================================== */
:root {
  --cursor-x: 50%;
  --cursor-y: 30%;
  --bg: #060913;
  --bg-2: #0b1122;
  --surface: rgba(14, 22, 43, 0.86);
  --surface-2: rgba(21, 32, 59, 0.92);
  --surface-hover: #1e2d4f;
  --panel: rgba(14, 22, 43, 0.88);
  --panel-2: rgba(19, 30, 56, 0.94);
  --line: rgba(245, 158, 11, 0.36);
  --line-soft: rgba(245, 158, 11, 0.20);
  --line-chrome: rgba(56, 189, 248, 0.34);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --muted-light: #94a3b8;
  --gold-light: #fef08a;
  --gold: #f59e0b;
  --gold-deep: #d97706;
  --cyan-neon: #00f0ff;
  --blue: #f59e0b;
  --blue-dark: #38bdf8;
  --cyan: #38bdf8;
  --blue-soft: rgba(245, 158, 11, 0.14);
  --cyan-soft: rgba(56, 189, 248, 0.15);
  --emerald: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.14);
  --grad-gold: linear-gradient(135deg, #fff7c2 0%, #fbbf24 45%, #d97706 100%);
  --grad-cyan: linear-gradient(135deg, #e0f2fe 0%, #38bdf8 45%, #00f0ff 100%);
  --grad-rainbow:
    repeating-linear-gradient(125deg, rgba(255, 255, 255, 0.24) 0px, rgba(255, 255, 255, 0.24) 2px, transparent 2px, transparent 8px),
    linear-gradient(110deg, #ff3366 0%, #ff9933 16%, #fef08a 32%, #10b981 48%, #00f0ff 64%, #818cf8 80%, #f472b6 92%, #ff3366 100%);
  --grad-primary: linear-gradient(135deg, #f59e0b 0%, #d97706 52%, #0284c7 100%);
  --grad-surface: linear-gradient(180deg, rgba(17, 26, 48, 0.92) 0%, rgba(10, 16, 32, 0.95) 100%);
  --shadow-sm: 0 4px 14px -2px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 20px 48px -12px rgba(0, 0, 0, 0.72), 0 0 24px -8px rgba(245, 158, 11, 0.18);
  --shadow-blue: 0 12px 30px -6px rgba(245, 158, 11, 0.38), 0 0 18px rgba(56, 189, 248, 0.25);
  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --luxury: 'Cinzel', 'Outfit', serif;
  --display: 'Outfit', system-ui, -apple-system, sans-serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.65;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Luminous Holographic Rainbow Spectrum Pattern Flowing Across Letters ------ */
@keyframes rainbow-wave-flow {
  0% {
    background-position: 0px 0px, 0% 50%;
  }
  50% {
    background-position: 18px 18px, 100% 50%;
  }
  100% {
    background-position: 36px 36px, 200% 50%;
  }
}

h1, h2, h3, h4 {
  font-family: var(--luxury);
  font-weight: 700;
  letter-spacing: 0.015em;
  background-image: var(--grad-rainbow);
  background-size: 18px 18px, 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rainbow-wave-flow 6.5s linear infinite;
  filter: drop-shadow(0 2px 12px rgba(244, 114, 182, 0.24)) drop-shadow(0 0 10px rgba(0, 240, 255, 0.2));
  text-wrap: balance;
  transition: filter 0.22s ease;
}

h1:hover, h2:hover, h3:hover, h4:hover {
  filter: drop-shadow(0 0 16px rgba(0, 240, 255, 0.6)) drop-shadow(0 0 22px rgba(244, 114, 182, 0.48));
}

/* Interactive Rainbow Patterned Word Spans: Continuous Wave + Cursor Ripple */
.ix-word {
  display: inline-block;
  background-image: var(--grad-rainbow);
  background-size: 18px 18px, 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  cursor: pointer;
  animation: rainbow-wave-flow 6s linear infinite;
  animation-delay: calc(var(--word-idx, 0) * -0.35s);
  transform: translateY(var(--w-lift, 0px)) scale(var(--w-scale, 1));
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), filter 0.18s ease;
  will-change: transform, filter;
}

.ix-word.ix-wave-near {
  animation-duration: 2.8s;
  filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.58)) drop-shadow(0 0 18px rgba(244, 114, 182, 0.42));
}

.ix-word:hover,
.ix-word:focus {
  animation-duration: 1.8s;
  transform: translateY(-4px) scale(1.07);
  filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.85)) drop-shadow(0 0 24px rgba(255, 51, 102, 0.65));
}

.mono, .num, .score-val b, .kb-stats b, .fit-num, .deck-counter {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* Vibrant Cosmic Nebula & Galaxy Space Photograph + Parallax Starlight ------ */
.bg-fx {
  position: fixed;
  inset: -4%;
  z-index: -3;
  background-color: #04060e;
  background-image:
    /* Interactive cursor nebula glow */
    radial-gradient(38vw 38vw at var(--cursor-x, 50%) var(--cursor-y, 35%), rgba(0, 240, 255, 0.14), rgba(244, 114, 182, 0.10) 42%, transparent 74%),
    /* Modern dark atmospheric vignette so text & cards stay crystal-clear */
    linear-gradient(180deg, rgba(4, 6, 15, 0.52) 0%, rgba(6, 9, 20, 0.62) 50%, rgba(4, 6, 15, 0.78) 100%),
    /* Vibrant Cosmic Nebula & Glowing Galaxies Space Photograph */
    url('https://images.unsplash.com/photo-1462331940025-496dfbfc7564?auto=format&fit=crop&w=2400&q=85'),
    /* Fallback deep-space nebula clouds */
    radial-gradient(60vw 50vw at 18% 22%, rgba(139, 92, 246, 0.35), transparent 68%),
    radial-gradient(55vw 50vw at 82% 28%, rgba(0, 240, 255, 0.28), transparent 68%),
    radial-gradient(65vw 55vw at 50% 85%, rgba(244, 114, 182, 0.25), transparent 72%);
  background-size: auto, cover, cover, auto, auto, auto;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.04) translate3d(var(--nebula-x, 0px), var(--nebula-y, 0px), 0);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  pointer-events: none;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: transparent;
  overflow: hidden;
  pointer-events: none;
  transform: translate3d(var(--star-x, 0px), var(--star-y, 0px), 0);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.starfield-canvas {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.bg-grain { display: none; }

/* Container ----------------------------------------------------------------- */
.container {
  width: min(100% - 44px, var(--maxw));
  margin-inline: auto;
}

/* 3-Zone Top Bar Contract --------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(6, 9, 19, 0.84);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--luxury);
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--gold-light);
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.brand:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.55));
}

.brand b {
  background-image: var(--grad-rainbow);
  background-size: 18px 18px, 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  animation: rainbow-wave-flow 5.5s linear infinite;
}

.brand:hover b {
  animation-duration: 1.8s;
  filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.7));
}

header:nth-of-type(1) > div:nth-of-type(1) > a:nth-of-type(1) > span:nth-of-type(1),
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: var(--grad-gold);
  color: #060913;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1.5px solid rgba(251, 191, 36, 0.85);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.48), 0 0 10px rgba(0, 240, 255, 0.25);
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.06);
  border-color: var(--cyan-neon);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.65), 0 0 14px rgba(251, 191, 36, 0.45);
}

header:nth-of-type(1) > div:nth-of-type(1) > a:nth-of-type(1) > span:nth-of-type(1) > img:nth-of-type(1),
.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--gold-light);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  transition: color 0.16s ease, text-shadow 0.16s ease, transform 0.16s ease;
}

.nav-links a:hover {
  color: var(--cyan-neon);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.65);
  transform: translateY(-1px);
}

.nav-cta {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

@media (max-width: 920px) {
  .nav-links { display: none; }
}

/* Tactile Futuristic Buttons ------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  border: 1px solid rgba(254, 240, 138, 0.55);
  border-radius: 12px;
  padding: 13px 24px;
  color: #060913;
  background: var(--grad-gold);
  box-shadow: var(--shadow-blue);
  text-decoration: none;
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.16s ease, background 0.18s ease, color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--grad-cyan);
  color: #04101f;
  border-color: #ffffff;
  box-shadow: 0 16px 34px -6px rgba(0, 240, 255, 0.52), 0 0 20px rgba(245, 158, 11, 0.35);
}

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

.btn:focus-visible {
  outline: 2px solid var(--cyan-neon);
  outline-offset: 2px;
}

.btn.ghost {
  background: rgba(14, 22, 43, 0.78);
  color: var(--gold-light);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.btn.ghost:hover {
  border-color: var(--cyan-neon);
  color: var(--cyan-neon);
  background: rgba(14, 29, 58, 0.95);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.28);
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn.sm {
  padding: 9px 18px;
  font-size: 0.86rem;
  border-radius: 10px;
}

/* Hero Section with Interactive Mini Card Deck ------------------------------ */
.hero {
  position: relative;
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line-soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  background-image: var(--grad-rainbow);
  background-size: 18px 18px, 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  animation: rainbow-wave-flow 6s linear infinite;
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.32));
  transition: filter 0.18s ease;
}

.eyebrow:hover {
  animation-duration: 2s;
  filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.75));
}

.hero h1 {
  font-size: clamp(2.35rem, 4.2vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 18px;
  max-width: 18ch;
}

.hero h1 .grad {
  background-image: var(--grad-rainbow);
  background-size: 18px 18px, 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rainbow-wave-flow 4.2s linear infinite;
  filter: drop-shadow(0 0 16px rgba(0, 240, 255, 0.52)) drop-shadow(0 0 22px rgba(255, 51, 102, 0.38));
}

.hero p.lead {
  max-width: 54ch;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-meta {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-meta b {
  color: var(--text);
}

/* Virtual Human Hologram Transformation Chamber (Hero Right Box) ------------ */
section:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > div#holoChamber:nth-of-type(2),
section:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(2),
.hero-deck-shell.holo-chamber {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.48);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -15px rgba(37, 99, 235, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  color: #f8fafc;
}

.holo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.22);
}

.holo-title {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #38bdf8;
}

.holo-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.holo-gender-switch {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 99px;
  padding: 2px;
  gap: 2px;
}

.holo-gender-btn {
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
  background: transparent;
  border: none;
  border-radius: 99px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.holo-gender-btn:hover {
  color: #f8fafc;
}

.holo-gender-btn.active {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.45);
}

.holo-score-pill {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
}

.holo-viewport {
  position: relative;
  width: 100%;
  height: 325px;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #1e293b 0%, #090d16 100%);
  border: 1px solid rgba(56, 189, 248, 0.36);
  user-select: none;
  cursor: ew-resize;
}

.holo-scanlines {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(56, 189, 248, 0.04) 4px
  );
  pointer-events: none;
}

.holo-side-tag {
  position: absolute;
  top: 10px;
  z-index: 5;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.holo-side-tag.before-tag {
  left: 10px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(248, 113, 113, 0.55);
  color: #fca5a5;
}

.holo-side-tag.after-tag {
  right: 10px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(56, 189, 248, 0.65);
  color: #7dd3fc;
}

.holo-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.holo-real-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* "Before" photo treatment: matte, lower contrast, slightly fatigued/unstyled look */
.holo-real-photo.before-photo {
  filter: saturate(0.42) brightness(0.75) contrast(0.92);
}

.holo-before-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle at 50% 42%, rgba(239, 68, 68, 0.08) 0%, rgba(15, 23, 42, 0.48) 100%);
  pointer-events: none;
}

/* "After" photo treatment: radiant, clear skin glow, high studio definition */
.holo-real-photo.after-photo {
  filter: saturate(1.14) brightness(1.06) contrast(1.08);
}

.holo-after-aura {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle at 50% 38%, rgba(56, 189, 248, 0.12) 0%, rgba(15, 23, 42, 0.28) 100%);
  pointer-events: none;
}

.holo-svg {
  width: 100%;
  height: 100%;
  max-height: 325px;
}

.holo-hud-svg {
  position: relative;
  z-index: 3;
  pointer-events: none;
}

.holo-after {
  z-index: 2;
  background: radial-gradient(circle at 50% 42%, rgba(14, 165, 233, 0.16) 0%, rgba(9, 13, 22, 0.96) 80%);
  clip-path: inset(0 0 0 calc(100% - var(--split, 72%)));
}

.holo-laser-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(100% - var(--split, 72%));
  width: 2.5px;
  z-index: 6;
  background: #38bdf8;
  box-shadow: 0 0 16px 3px rgba(56, 189, 248, 0.85);
  pointer-events: none;
}

.holo-laser-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #0f172a;
  border: 2px solid #38bdf8;
  color: #38bdf8;
  font-size: 0.78rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.65);
}

.holo-emitter {
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: -8px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.55) 0%, transparent 75%);
  z-index: 5;
  pointer-events: none;
}

.holo-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.holo-preset-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

@media (max-width: 540px) {
  .holo-preset-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.holo-preset-btn {
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 7px 6px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(30, 41, 59, 0.75);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.holo-preset-btn:hover {
  border-color: #38bdf8;
  color: #ffffff;
}

.holo-preset-btn.active {
  background: var(--grad-primary);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.holo-slider-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 10px;
  padding: 8px 12px;
}

.holo-slider-lbl {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
}

.holo-slider-bar input[type="range"] {
  flex: 1;
  accent-color: #38bdf8;
  cursor: pointer;
}

.holo-auto-btn {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(14, 165, 233, 0.14);
  color: #7dd3fc;
  cursor: pointer;
}

.holo-auto-btn.active {
  background: #0284c7;
  color: #ffffff;
}

.holo-status-text {
  font-size: 0.79rem;
  color: #cbd5e1;
  line-height: 1.45;
  background: rgba(15, 23, 42, 0.55);
  border-left: 3px solid #38bdf8;
  border-radius: 6px;
  padding: 8px 11px;
}

.holo-status-text b {
  color: #7dd3fc;
}

@keyframes card-pop {
  from { opacity: 0; transform: translateY(6px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hds-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.hds-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.hds-card-head h3 {
  font-size: 1.25rem;
  margin-bottom: 2px;
}

.hds-card-head p {
  font-size: 0.86rem;
  color: var(--muted);
}

.hds-rows {
  display: grid;
  gap: 10px;
}

.hds-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--line-soft);
}

.hds-row b {
  font-size: 0.92rem;
  color: var(--text);
  display: block;
}

.hds-row span {
  font-size: 0.84rem;
  color: var(--muted);
}

.hds-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.82rem;
  color: var(--muted);
}

/* 4-Column Summary Strip Below Hero */
.kpi-strip {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.kpi-item {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.kpi-val {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
}

.kpi-label {
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 2px;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .kpi-strip { grid-template-columns: 1fr; }
}

/* Sections ------------------------------------------------------------------ */
section {
  padding: 72px 0;
  border-bottom: 1px solid var(--line-soft);
}

.section-head {
  max-width: 680px;
  margin-bottom: 36px;
}

.section-head .kicker {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--blue);
  display: block;
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--muted);
  font-size: 1rem;
}

/* ===========================================================================
   PLAYFUL STEP-BY-STEP INTERACTIVE CARD DECK (28-Part Guide Explorer)
   =========================================================================== */
.deck-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.seg-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

.seg-tab {
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 9px;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.seg-tab:hover {
  color: var(--text);
}

.seg-tab.active {
  background: var(--surface);
  color: var(--blue);
  box-shadow: var(--shadow-sm);
}

.compendium-search {
  min-width: 240px;
  flex: 1;
  max-width: 320px;
}

.compendium-search input {
  width: 100%;
  font: inherit;
  font-size: 0.88rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-chrome);
  border-radius: 10px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.15s ease;
}

.compendium-search input:focus {
  border-color: var(--blue);
}

/* Interactive Card Stack */
.deck-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.deck-stage-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px;
  position: relative;
  animation: card-pop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.dsc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.dsc-badge {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
}

.dsc-nav-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.deck-arrow {
  font-family: var(--display);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-chrome);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.deck-arrow:hover:not([disabled]) {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-1px);
}

.deck-arrow[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.dsc-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.dsc-emoji {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--blue-soft);
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}

.dsc-title-row h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: 4px;
}

.dsc-title-row p {
  color: var(--muted);
  font-size: 0.96rem;
}

.dsc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.dsc-item {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: border-color 0.15s ease;
}

.dsc-item:hover {
  border-color: var(--line);
}

.dsc-item b {
  display: block;
  font-size: 0.95rem;
  color: var(--blue-dark);
  margin-bottom: 6px;
}

.dsc-item p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.dsc-takeaway {
  background: var(--blue-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.92rem;
  color: var(--text);
}

.dsc-takeaway b {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.76rem;
  display: block;
  margin-bottom: 3px;
}

/* Quick-Jump Deck Strip */
.deck-dots-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.deck-jump-btn {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.deck-jump-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.deck-jump-btn.active {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
}

/* ===========================================================================
   INTERACTIVE 90-DAY TRANSFORMATION VISUAL CHECKLIST (Part 28)
   =========================================================================== */
.checklist-shell {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px;
}

.cl-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}

.cl-progress-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 260px;
}

.cl-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: conic-gradient(var(--blue) calc(var(--p, 0) * 1%), var(--surface-2) 0);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
}

.cl-ring::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--surface);
}

.cl-ring span {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue);
}

.cl-progress-text h3 {
  font-size: 1.2rem;
  margin-bottom: 2px;
}

.cl-progress-text p {
  font-size: 0.88rem;
  color: var(--muted);
}

.cl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 720px) {
  .cl-grid { grid-template-columns: 1fr; }
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--line-soft);
  cursor: pointer;
  font: inherit;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.check-item:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.check-item.done {
  background: var(--emerald-soft);
  border-color: rgba(16, 185, 129, 0.35);
}

.check-box {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 2px solid var(--line-chrome);
  background: var(--surface);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: transparent;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.15s ease;
}

.check-item.done .check-box {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #ffffff;
}

.check-body b {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 3px;
}

.check-item.done .check-body b {
  text-decoration: line-through;
  color: var(--muted);
}

.check-body p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Interactive Face Geometry & Seasonal Color Matrix ------------------------- */
.matrix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.matrix-panel {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px;
}

.matrix-panel h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.matrix-panel > p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.matrix-Readout {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.mr-row {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--line-soft);
  font-size: 0.88rem;
  color: var(--text);
}

.mr-row span {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue);
  display: block;
  margin-bottom: 3px;
}

@media (max-width: 900px) {
  .matrix-grid { grid-template-columns: 1fr; }
}

/* Support / Donation Section ------------------------------------------------ */
.donate { padding: 64px 0; }

.donate-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.donate-copy .kicker {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--blue);
  display: block;
  margin-bottom: 10px;
}

.donate-copy h2 {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.donate-lead {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 12px;
  max-width: 54ch;
}

.donate-lead b { color: var(--blue); }

.donate-points {
  list-style: none;
  margin-top: 16px;
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text);
}

section#donate:nth-of-type(5) > div:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(2),
.donate-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.donate-qr-tile {
  background: var(--bg);
  border: 1.5px solid rgba(251, 191, 36, 0.45);
  padding: 18px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 18px rgba(245, 158, 11, 0.22);
}

.donate-qr {
  width: 210px;
  height: 210px;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

.donate-qr-cap {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--gold-light);
  font-weight: 700;
  letter-spacing: 0.05em;
}

@media (max-width: 820px) {
  .donate-card { grid-template-columns: 1fr; padding: 28px 20px; text-align: center; }
  .donate-lead { margin-inline: auto; }
}

/* Footer -------------------------------------------------------------------- */
.footer {
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer .disclaimer {
  max-width: 680px;
  margin: 10px auto 0;
  font-size: 0.8rem;
}

/* ===========================================================================
   AURA STUDIO — Playful 4-Card Interactive Deck & Tabbed Results
   =========================================================================== */
body.studio-body {
  overflow-x: hidden;
  min-height: 100vh;
}

.studio-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.studio-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 9, 19, 0.86);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.topbar-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

.topbar-link:hover { color: var(--blue); }

/* Stepper */
.stepper {
  display: flex;
  align-items: flex-start;
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 24px 14px;
}

.stp {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}

.stp::before {
  content: '';
  position: absolute;
  top: 15px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--line-soft);
  z-index: 0;
}

.stp:first-child::before { display: none; }
.stp.done::before, .stp.active::before { background: var(--blue); }

.stp-dot {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line-chrome);
}

.stp.done .stp-dot {
  background: var(--grad-primary);
  color: #ffffff;
  border-color: transparent;
}

.stp.active .stp-dot {
  color: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-soft);
}

.stp-label {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.stp.active .stp-label, .stp.done .stp-label {
  color: var(--text);
}

@media (max-width: 560px) {
  .studio-topbar { padding: 12px 18px; }
  .topbar-nav { display: none; }
  .stp-label { display: none; }
}

.studio-stage { flex: 1; }

/* Studio Card Deck Container */
.wiz {
  max-width: 860px;
  margin: 12px auto 64px;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  animation: card-pop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 640px) {
  .wiz { margin: 8px 14px 48px; padding: 22px 18px; }
}

.wiz-kicker {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 6px;
}

.wiz-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 6px;
}

.wiz-sub {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 0.96rem;
}

.field {
  margin-bottom: 18px;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.94rem;
  margin-bottom: 10px;
}

.field .opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wiz .opt {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--line-chrome);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 16px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.wiz .opt:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.wiz .opt.sel {
  background: var(--grad-primary);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-blue);
}

.opt-tag {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
  margin-left: 6px;
}

.bw-row { display: flex; gap: 12px; flex-wrap: wrap; }
.bw-input {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line-chrome);
  border-radius: 10px;
  padding: 4px 14px;
}
.bw-input input {
  width: 90px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.92rem;
  padding: 8px 0;
}
.bw-unit { font-family: var(--mono); color: var(--muted); font-size: 0.8rem; }

.wiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.wiz-nav.center { justify-content: center; }

div:nth-of-type(3) > main#stage:nth-of-type(1) > div:nth-of-type(1).loading-wiz,
.loading-wiz {
  text-align: center;
  padding: 44px 28px;
  max-width: 580px;
  margin: 0 auto;
  background: var(--grad-surface);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-card);
}

.ps-ring-box {
  position: relative;
  width: 128px;
  height: 128px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
}

.ps-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ps-ring-track {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 6;
}

.ps-ring-progress {
  fill: none;
  stroke: url(#psBlueGrad);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.22s ease;
}

.ps-avatar-inner {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-2);
  border: 2px solid #ffffff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.16);
  display: grid;
  place-items: center;
  position: relative;
}

.ps-avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ps-avatar-fallback {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.55rem;
  color: #ffffff;
  background: var(--grad-primary);
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.ps-pct-pill {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-primary);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 99px;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  white-space: nowrap;
}

div:nth-of-type(3) > main#stage:nth-of-type(1) > div:nth-of-type(1) > div.ps-wait-banner:nth-of-type(2),
.ps-wait-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #0284c7 100%);
  border: 2px solid #93c5fd;
  color: #ffffff;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  padding: 12px 24px;
  border-radius: 14px;
  margin: 8px auto 16px;
  box-shadow: 0 12px 28px -6px rgba(37, 99, 235, 0.55), 0 0 0 4px rgba(59, 130, 246, 0.18);
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
}

.ps-dl-wrap {
  max-width: 440px;
  margin: 18px auto 0;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 16px 18px;
}

.ps-dl-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}

div:nth-of-type(3) > main#stage:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(3) > div:nth-of-type(1) > b#psMbCounter:nth-of-type(1),
#psMbCounter {
  display: none !important;
}

.ps-dl-bar-track {
  width: 100%;
  height: 10px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.ps-dl-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb 0%, #0ea5e9 50%, #2563eb 100%);
  background-size: 200% 100%;
  border-radius: 99px;
  transition: width 0.22s ease;
  animation: ps-shimmer 1.6s linear infinite;
}

@keyframes ps-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: 0 0; }
}

.ps-stage-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.ps-stage-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.83rem;
  color: var(--muted-light);
  transition: color 0.18s ease;
}

.ps-stage-item.active {
  color: var(--blue-dark);
  font-weight: 700;
}

.ps-stage-item.done {
  color: var(--text);
  font-weight: 600;
}

.ps-stage-dot {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--line-chrome);
  color: var(--muted);
  flex-shrink: 0;
}

.ps-stage-item.active .ps-stage-dot {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue);
}

.ps-stage-item.done .ps-stage-dot {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #ffffff;
}

/* Style Cards */
.style-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 760px) { .style-cards { grid-template-columns: 1fr; } }

.style-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 20px;
  color: var(--text);
  font: inherit;
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.16s ease, box-shadow 0.16s ease;
}

.style-card:hover, .style-card.sel {
  transform: translateY(-3px);
  border-color: var(--blue);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.sc-top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.sc-emoji { font-size: 1.75rem; }
.sc-tag { font-family: var(--mono); font-size: 0.7rem; font-weight: 700; color: var(--blue); }
.sc-name { font-family: var(--display); font-size: 1.2rem; font-weight: 700; }
.sc-desc { color: var(--muted); font-size: 0.86rem; line-height: 1.5; }

/* Upload & Camera Zone */
.capture-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .capture-grid { grid-template-columns: 1fr; } }

.upload-zone {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  background: var(--bg);
  border: 2px dashed var(--line-chrome);
  border-radius: var(--radius-sm);
  padding: 36px 20px;
  color: var(--text);
  font: inherit;
  transition: all 0.16s ease;
}
.upload-zone:hover { border-color: var(--blue); background: var(--blue-soft); }
.uz-ico { font-size: 2rem; }
.uz-text { font-weight: 700; font-size: 0.96rem; }
.uz-hint { font-size: 0.8rem; color: var(--muted); }

.camera-box {
  margin-top: 16px;
  text-align: center;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.camera-box.active { display: flex; }
.camera-box video { max-width: 320px; width: 100%; border-radius: 12px; transform: scaleX(-1); }

.photo-preview { margin-top: 18px; text-align: center; }
.photo-preview img { max-width: 220px; border-radius: 14px; border: 2px solid var(--blue); box-shadow: var(--shadow-sm); }

/* Results Interactive Dossier Deck ------------------------------------------ */
.results {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 20px 72px;
  animation: card-pop 0.2s ease;
}

.r-hero {
  text-align: center;
  padding: 28px 24px;
  margin-bottom: 20px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.score-ring {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: conic-gradient(var(--blue) calc(var(--p, 94) * 1%), var(--surface-2) 0);
  display: grid;
  place-items: center;
}
.score-ring::after {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--surface);
}
.score-val { position: relative; z-index: 1; text-align: center; }
.score-val b { display: block; font-size: 1.65rem; line-height: 1; color: var(--blue); }
.score-val b i { font-size: 0.8rem; font-style: normal; }
.score-val span { display: block; font-family: var(--mono); font-size: 0.6rem; color: var(--muted); margin-top: 2px; }

.r-hero h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin-bottom: 6px; }
.r-hero-sub { color: var(--muted); max-width: 56ch; margin: 0 auto 14px; font-size: 0.95rem; }

.snap-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.snap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 112px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.snap b { font-family: var(--mono); font-size: 0.68rem; color: var(--blue); }
.snap > span { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.snap-color { display: inline-flex; align-items: center; gap: 6px; }
.snap-color .dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(15, 23, 42, 0.2); }

/* Expanded 4th Snap Element: Best Colors & Cloth Types Guide ---------------- */
div:nth-of-type(3) > main#stage:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(4),
.snap.snap-cloth-guide {
  flex: 1 1 100%;
  width: 100%;
  align-items: stretch;
  text-align: left;
  background: var(--grad-surface);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  margin-top: 6px;
  box-shadow: var(--shadow-card);
}

.scg-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.scg-head b {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--blue);
}

.scg-head h4 {
  font-size: 1.12rem;
  color: var(--text);
}

.scg-head p {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}

.scg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 680px) {
  .scg-grid {
    grid-template-columns: 1fr;
  }
}

.scg-item {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scg-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.scg-cloth-type {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
}

.scg-color-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line-chrome);
  border-radius: 99px;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
}

.scg-color-pill .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.22);
  flex-shrink: 0;
}

.scg-fabric {
  font-family: var(--mono);
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--blue-dark);
}

.scg-why {
  font-size: 0.81rem;
  color: var(--muted);
  line-height: 1.45;
}

.scg-palette-bar {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scg-palette-label {
  font-family: var(--mono);
  font-size: 0.71rem;
  font-weight: 700;
  color: var(--muted);
}

.scg-multi-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.verified {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--emerald);
}

/* Result Deck Navigation Bar (Solid, High-Contrast Highlighted Caption & Tabs) */
div:nth-of-type(3) > main#stage:nth-of-type(1) > div:nth-of-type(1) > div.result-deck-bar:nth-of-type(2),
.result-deck-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 55%, #0284c7 100%);
  border: 2px solid #60a5fa;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 14px 32px -8px rgba(37, 99, 235, 0.45), 0 0 0 4px rgba(59, 130, 246, 0.15);
  color: #ffffff;
}

.rdb-caption {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.rdb-badge {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: #facc15;
  color: #0f172a;
  padding: 4px 10px;
  border-radius: 99px;
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.4);
}

.rdb-caption b {
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.result-deck-bar .seg-tabs {
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 6px;
  border-radius: 12px;
  gap: 8px;
}

.result-deck-bar .seg-tab {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 700;
  font-size: 0.86rem;
  padding: 9px 15px;
}

.result-deck-bar .seg-tab:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  transform: translateY(-1px);
}

.result-deck-bar .seg-tab.active {
  background: #ffffff;
  color: #1d4ed8;
  border-color: #ffffff;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.28);
}

.r-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 24px;
  margin-bottom: 16px;
  animation: card-pop 0.18s ease;
}

.r-emoji {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
}

.r-body { flex: 1; min-width: 0; }
.r-body > h3 { font-size: 1.22rem; margin-bottom: 4px; }
.r-lead { color: var(--muted); font-size: 0.92rem; margin-bottom: 12px; }

.r-list { list-style: none; display: grid; gap: 8px; margin-top: 8px; }
.r-list li { position: relative; padding-left: 18px; font-size: 0.93rem; line-height: 1.55; }
.r-list li::before { content: '•'; position: absolute; left: 2px; color: var(--blue); font-weight: 700; }
.r-list li b { color: var(--blue-dark); }
.r-sub { font-family: var(--mono); font-size: 0.76rem; font-weight: 700; color: var(--blue); margin: 16px 0 8px; }
.r-note { color: var(--muted); font-size: 0.9rem; margin-top: 10px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.feature { background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 12px; }
.feature .k { font-family: var(--mono); font-size: 0.68rem; font-weight: 700; color: var(--blue); margin-bottom: 2px; }
.feature .v { font-size: 0.88rem; color: var(--text); font-weight: 500; }

.swatch-row { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 600; background: var(--bg); border: 1px solid var(--line-soft); border-radius: 8px; padding: 6px 12px; }
.swatch .dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(15, 23, 42, 0.2); }

.routine-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
@media (max-width: 600px) { .routine-cols { grid-template-columns: 1fr; } .r-card { flex-direction: column; } }
.routine-col { background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 14px 16px; }
.routine-col .h { font-family: var(--mono); font-size: 0.74rem; font-weight: 700; color: var(--blue); margin-bottom: 8px; }
.routine-col ol { margin-left: 16px; display: grid; gap: 6px; }
.routine-col li { font-size: 0.88rem; color: var(--text); }

.fit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 10px; }
@media (max-width: 780px) { .fit-grid { grid-template-columns: 1fr; } }
.fit-card { background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 16px; }
.fit-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.fit-num { width: 22px; height: 22px; border-radius: 6px; background: var(--grad-primary); color: #ffffff; display: grid; place-items: center; font-size: 0.74rem; font-weight: 700; }
.outfit-lines { display: grid; gap: 6px; }
.outfit-line { font-size: 0.86rem; color: var(--muted); }
.outfit-line b { color: var(--text); }
.fit-why { color: var(--blue-dark); font-size: 0.82rem; font-weight: 500; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line-soft); }

/* Focused Haircut Board & Side-by-Side Haircut Photo Showcase ------------- */
div:nth-of-type(3) > main#stage:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(4) > div:nth-of-type(2) {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hc-top-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.09) 0%, rgba(14, 165, 233, 0.08) 100%);
  border: 1.5px solid rgba(37, 99, 235, 0.28);
  border-radius: 12px;
  padding: 11px 15px;
  font-size: 0.86rem;
  color: var(--text);
}

.hc-top-notice b {
  color: var(--blue-dark);
}

.hc-showcase-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}

.hc-showcase-card {
  display: grid;
  grid-template-columns: 1.35fr 220px;
  gap: 18px;
  align-items: stretch;
  background: var(--grad-surface);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.hc-showcase-card:hover {
  border-color: var(--cyan-neon);
  transform: translateY(-2px);
}

@media (max-width: 680px) {
  .hc-showcase-card {
    grid-template-columns: 1fr;
  }
}

.hc-showcase-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

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

.hc-rank-badge {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--blue-soft);
  border: 1px solid rgba(37, 99, 235, 0.28);
  color: var(--blue-dark);
}

.hc-cut-title {
  font-family: var(--display);
  font-size: 1.24rem;
  font-weight: 700;
  color: var(--text);
  margin: 2px 0;
}

.hc-cut-why {
  font-size: 0.91rem;
  color: var(--muted);
  line-height: 1.55;
}

.hc-barber-ask {
  font-size: 0.83rem;
  color: var(--text);
  background: var(--bg);
  border-left: 3px solid var(--blue);
  border-radius: 6px;
  padding: 8px 11px;
}

.hc-barber-ask b {
  color: var(--blue-dark);
}

/* Prominent, Unmistakable Haircut Photo Action Button */
.hc-photo-cta-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  background: var(--grad-primary);
  color: #ffffff;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 10px 22px -6px rgba(37, 99, 235, 0.42);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  margin-top: 4px;
}

.hc-photo-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -6px rgba(37, 99, 235, 0.55);
}

.hc-cta-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hc-cta-left b {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
}

.hc-cta-left span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.88);
}

.hc-cta-arrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  color: #ffffff;
}

/* Right-Side Exact Haircut Photo Column */
.hc-showcase-photo-col {
  display: flex;
  flex-direction: column;
}

.hc-photo-frame {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 215px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(37, 99, 235, 0.32);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  background: #0f172a;
}

.hc-photo-frame img {
  width: 100%;
  height: 100%;
  min-height: 215px;
  max-height: 250px;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  transition: transform 0.25s ease;
}

.hc-photo-frame:hover img {
  transform: scale(1.04);
}

.hc-photo-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(56, 189, 248, 0.55);
  color: #7dd3fc;
  padding: 4px 8px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
}

.hc-photo-cap {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 6px 9px;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  backdrop-filter: blur(6px);
}

.hc-photo-cap span {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: #38bdf8;
}

.looks-row { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 14px; }
.look-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
  background: var(--grad-primary);
  border: 1px solid rgba(37, 99, 235, 0.4);
  border-radius: 12px;
  padding: 13px 18px;
  box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.38);
  transition: all 0.15s ease;
}
.look-tile:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -6px rgba(37, 99, 235, 0.5); }
.look-cap b { display: block; font-size: 0.94rem; color: #ffffff; }
.look-link { font-family: var(--mono); font-size: 0.76rem; color: rgba(255, 255, 255, 0.92); }
.look-cta-pill {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

/* Feedback Section */
.fb { margin-top: 20px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 24px; }
.kb-kicker { font-family: var(--mono); font-size: 0.74rem; font-weight: 700; color: var(--blue); }
.fb-head h3 { font-size: 1.3rem; margin: 4px 0 6px; }
.fb-head p { color: var(--muted); font-size: 0.9rem; }
.fb-form { margin: 16px 0 20px; }
.fb-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.fb-cat { font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; color: var(--muted); background: var(--bg); border: 1px solid var(--line-soft); border-radius: 8px; padding: 7px 14px; }
.fb-cat.sel { color: #ffffff; background: var(--grad-primary); border-color: transparent; }
.fb-name, .fb-msg { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line-chrome); border-radius: var(--radius-sm); padding: 12px 14px; }
.fb-name { margin-bottom: 10px; }
.fb-msg { resize: vertical; min-height: 80px; }
.fb-name:focus, .fb-msg:focus { outline: none; border-color: var(--blue); }
.fb-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.fb-count { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.fb-note { margin-top: 10px; font-size: 0.86rem; }
.fb-note.ok { color: var(--emerald); }
.fb-note.err { color: #ef4444; }
.fb-feed-head { display: flex; justify-content: space-between; border-top: 1px solid var(--line-soft); padding-top: 16px; margin-bottom: 12px; }
.fb-total { font-family: var(--mono); font-size: 0.76rem; color: var(--muted); }
.fb-feed { display: grid; gap: 10px; }
.fb-item { background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 14px; }
.fb-item-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 0.84rem; }
.fb-ava { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; font-weight: 700; font-size: 0.78rem; color: #ffffff; background: var(--grad-primary); }
.fb-when { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); }
.fb-tag { margin-left: auto; font-family: var(--mono); font-size: 0.72rem; color: var(--blue); }
.fb-text { font-size: 0.9rem; color: var(--text); }

.card-disclaimer { margin-top: 16px; font-size: 0.8rem; color: var(--muted); text-align: center; }
.error-box { background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.3); color: #b91c1c; border-radius: var(--radius-sm); padding: 12px 16px; font-size: 0.9rem; }

/* Handsome Cyber-Luxury AI Stylist Launcher (button:nth-of-type(1) / .chat-fab) & Advanced Chat Panel */
body > button:nth-of-type(1),
.chat-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 65;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 2px solid rgba(254, 240, 138, 0.72);
  cursor: pointer;
  font-size: 1.35rem;
  color: #060913;
  background: radial-gradient(circle at 50% 35%, #172554 0%, #060913 100%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.75), 0 0 22px rgba(245, 158, 11, 0.45), 0 0 14px rgba(0, 240, 255, 0.35);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  padding: 2px;
}

body > button:nth-of-type(1):hover,
.chat-fab:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: var(--cyan-neon);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85), 0 0 28px rgba(0, 240, 255, 0.7), 0 0 22px rgba(251, 191, 36, 0.55);
}

.chat-fab.joker-fab,
.chat-fab.stylist-fab {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #172554 0%, #060913 100%);
  border: 2px solid rgba(254, 240, 138, 0.72);
  padding: 2px;
}

.joker { width: 100%; height: 100%; display: block; overflow: visible; }
.joker .mouth { display: none; }
.joker[data-mood="idle"] .mouth-idle { display: block; }
.joker[data-mood="happy"] .mouth-happy { display: block; }
.joker[data-mood="surprise"] .mouth-surprise { display: block; }
.joker.blink .eye { transform: scaleY(0.12); transform-origin: center 44px; transition: transform 0.08s ease; }

.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 112px;
  z-index: 65;
  width: min(420px, calc(100vw - 28px));
  height: min(610px, calc(100vh - 136px));
  display: none;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(11, 18, 36, 0.97) 0%, rgba(6, 9, 19, 0.98) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.85), 0 0 28px rgba(56, 189, 248, 0.22);
  backdrop-filter: blur(20px);
}

.chat-panel.open { display: flex; animation: card-pop 0.2s cubic-bezier(0.16, 1, 0.3, 1); }

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(23, 37, 84, 0.65) 100%);
}

.chat-ava-mini {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.4));
}

.chat-head-info { flex: 1; min-width: 0; }
.chat-head-info .title-row { display: flex; align-items: center; gap: 8px; }
.chat-header .title {
  font-family: var(--luxury);
  font-weight: 800;
  font-size: 0.98rem;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.chat-status-pill {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.45);
  padding: 2px 7px;
  border-radius: 99px;
}

.chat-header .sub { font-size: 0.73rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.chat-head-actions { display: flex; align-items: center; gap: 4px; }
.chat-icon-btn {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: var(--gold-light);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
}
.chat-icon-btn:hover, .chat-icon-btn.active {
  border-color: var(--cyan-neon);
  color: var(--cyan-neon);
  background: rgba(56, 189, 248, 0.15);
}
.chat-header .close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
}
.chat-header .close:hover { color: var(--cyan-neon); }

/* Specialist Mode Switcher Chips */
.chat-modes-bar {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  overflow-x: auto;
  background: rgba(6, 9, 19, 0.75);
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
  scrollbar-width: none;
}
.chat-modes-bar::-webkit-scrollbar { display: none; }

.chat-mode-chip {
  font: inherit;
  font-size: 0.73rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 99px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  background: rgba(15, 23, 42, 0.85);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.chat-mode-chip:hover {
  border-color: var(--cyan-neon);
  color: var(--text);
}
.chat-mode-chip.active {
  background: var(--grad-gold);
  color: #060913;
  border-color: transparent;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

/* Synced Biometric Scan Context Bar */
.chat-context-bar {
  padding: 6px 14px;
  background: rgba(56, 189, 248, 0.12);
  border-bottom: 1px solid rgba(56, 189, 248, 0.28);
  font-size: 0.72rem;
  color: #bae6fd;
}
.chat-context-bar b { color: var(--gold-light); }

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msg {
  max-width: 90%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.55;
}
.msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #060913;
  font-weight: 600;
  border-bottom-right-radius: 4px;
}
.msg-user-img {
  width: 100%;
  max-width: 180px;
  border-radius: 10px;
  margin-bottom: 6px;
  display: block;
  border: 1.5px solid rgba(6, 9, 19, 0.35);
}
.msg.bot {
  align-self: flex-start;
  background: rgba(17, 26, 48, 0.92);
  border: 1px solid rgba(245, 158, 11, 0.26);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.msg-bot-content p { margin-bottom: 6px; }
.msg-bot-content p:last-child { margin-bottom: 0; }
.msg-bot-content b { color: var(--gold-light); }
.chat-md-list {
  margin: 6px 0 6px 16px;
  display: grid;
  gap: 4px;
}
.chat-md-list li { line-height: 1.48; }

.msg-bot-tools {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.msg-act-btn {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--muted-light);
  border-radius: 6px;
  padding: 2px 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.msg-act-btn:hover {
  border-color: var(--cyan-neon);
  color: var(--cyan-neon);
}

/* Photo Attachment Stage */
.chat-photo-stage {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 12px 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--cyan-neon);
}
.chat-photo-stage img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}
.chat-photo-meta { flex: 1; min-width: 0; }
.chat-photo-meta b { display: block; font-size: 0.76rem; color: var(--gold-light); }
.chat-photo-meta span { display: block; font-size: 0.68rem; color: var(--muted); }
.chat-photo-remove {
  background: none;
  border: none;
  color: #fca5a5;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
}

.chat-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px 10px;
  max-height: 86px;
  overflow-y: auto;
}
.chat-suggest button {
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: var(--gold-light);
  border-radius: 8px;
  padding: 5px 10px;
  text-align: left;
  transition: all 0.15s ease;
}
.chat-suggest button:hover {
  color: var(--cyan-neon);
  border-color: var(--cyan-neon);
  background: rgba(56, 189, 248, 0.12);
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-top: 1px solid rgba(245, 158, 11, 0.25);
  background: rgba(6, 9, 19, 0.95);
}
.chat-tool-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  background: rgba(15, 23, 42, 0.9);
  color: var(--gold-light);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.chat-tool-btn:hover, .chat-tool-btn.recording {
  border-color: var(--cyan-neon);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.45);
}
.chat-input input[type="text"] {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 0.86rem;
  color: var(--text);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 9px;
  padding: 9px 11px;
  outline: none;
}
.chat-input input[type="text"]:focus { border-color: var(--gold); }
.chat-send-btn {
  height: 36px;
  border: none;
  cursor: pointer;
  border-radius: 9px;
  padding: 0 14px;
  background: var(--grad-gold);
  color: #060913;
  font-weight: 800;
  transition: all 0.15s ease;
}
.chat-send-btn:hover {
  background: var(--grad-cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.55);
}

.typing-dots {
  display: inline-flex;
  gap: 3px;
  margin-right: 6px;
  vertical-align: middle;
}
.typing-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  animation: dot-pulse 1s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot-pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* ===========================================================================
   Precision Biometric Face Scanner & Ratio Score Studio (section#vizStudio)
   =========================================================================== */
div:nth-of-type(3) > main#stage:nth-of-type(1) > div:nth-of-type(1) > section#vizStudio:nth-of-type(1),
.viz-studio {
  background: var(--grad-surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 26px;
  margin-bottom: 18px;
}

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

.viz-studio-title h3 {
  font-size: 1.35rem;
  margin-bottom: 2px;
}

.viz-studio-title p {
  font-size: 0.88rem;
  color: var(--muted);
}

.viz-mode-switch {
  display: inline-flex;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
}

.viz-mode-btn {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 7px;
  padding: 7px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.viz-mode-btn.active {
  background: var(--surface);
  color: var(--blue);
  box-shadow: var(--shadow-sm);
}

.viz-studio-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 840px) {
  .viz-studio-grid {
    grid-template-columns: 1fr;
  }
}

.viz-canvas-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin-inline: auto;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #1e293b 0%, #0f172a 100%);
  border: 2px solid rgba(37, 99, 235, 0.35);
  box-shadow: 0 16px 38px -10px rgba(15, 23, 42, 0.25);
  user-select: none;
}

.viz-photo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: contrast(1.03) brightness(0.97);
}

.bio-scan-beam {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 2;
  background: linear-gradient(90deg, transparent 0%, #38bdf8 50%, transparent 100%);
  box-shadow: 0 0 14px 2px rgba(56, 189, 248, 0.65);
  animation: bio-scan 4.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes bio-scan {
  0%, 100% { top: 14%; opacity: 0.35; }
  50% { top: 82%; opacity: 0.9; }
}

/* Focus Mode Target: Portrait Image & Easy Smart Face Guide inside #vizBaCanvas */
div:nth-of-type(3) > main#stage:nth-of-type(1) > div:nth-of-type(1) > section#vizStudio:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(1) > div#vizBaCanvas:nth-of-type(1) > div:nth-of-type(3) > img:nth-of-type(1) {
  object-fit: cover;
  object-position: 50% 20%;
  will-change: transform;
  transform: translateZ(0);
}

.r-card.r-card-hidden {
  display: none !important;
}

.viz-after-extras-host {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.viz-right-panel-host .viz-panel-box {
  animation: smooth-panel-fade 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes smooth-panel-fade {
  from {
    opacity: 0.45;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.viz-geo-host {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}

.viz-svg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.viz-svg-layer.viz-geo-interactive {
  z-index: 4;
  pointer-events: none;
}

.viz-canvas-card.geo-edit-active {
  touch-action: none;
  cursor: grab;
  outline: none;
}

.viz-canvas-card.geo-edit-active:active {
  cursor: grabbing;
}

.viz-svg-layer .geo-whole-frame-drag {
  pointer-events: auto;
  cursor: move;
  transition: fill 0.18s ease, stroke 0.18s ease;
}

.viz-svg-layer .geo-whole-frame-drag:hover {
  fill: rgba(56, 189, 248, 0.08);
  stroke: #38bdf8;
}

.viz-svg-layer .geo-easy-handle,
.viz-svg-layer .geo-easy-hit {
  pointer-events: auto;
  cursor: grab;
}

.viz-svg-layer .geo-easy-handle:active {
  cursor: grabbing;
}

.viz-svg-layer .geo-easy-handle:hover circle,
.viz-svg-layer .geo-easy-handle.active circle {
  filter: drop-shadow(0 0 5px rgba(253, 224, 71, 0.95));
}

/* Easy 1-Tap Face Fit Shortcut Controls & 3 Smooth Sliders */
.geo-editor-box {
  background: rgba(10, 16, 33, 0.90);
  border: 1px solid rgba(56, 189, 248, 0.38);
  border-radius: 14px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.geo-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.geo-editor-sub {
  font-size: 0.79rem;
  color: var(--muted);
  line-height: 1.42;
  margin: 0;
}

.geo-detail-toggle {
  font: inherit;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.36);
  border-radius: 8px;
  padding: 6px 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.geo-detail-toggle:hover {
  border-color: #38bdf8;
  color: #ffffff;
}

.geo-detail-toggle.active {
  background: rgba(14, 165, 233, 0.24);
  border-color: #00f0ff;
  color: #ffffff;
}

.geo-shortcut-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.geo-shortcut-btn {
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  color: #f1f5f9;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 9px;
  padding: 7px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.14s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.14s ease, background 0.14s ease;
}

.geo-shortcut-btn:hover {
  transform: translateY(-1px);
  border-color: #38bdf8;
  background: rgba(30, 41, 59, 0.95);
  color: #ffffff;
}

.geo-shortcut-btn:active {
  transform: translateY(0);
}

.geo-shortcut-btn.primary {
  background: var(--grad-primary);
  border-color: rgba(56, 189, 248, 0.75);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.32);
}

.geo-sliders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 680px) {
  .geo-sliders-grid {
    grid-template-columns: 1fr;
  }
}

.geo-slider-item {
  background: rgba(6, 10, 22, 0.82);
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.geo-slider-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.geo-slider-top span {
  font-size: 0.72rem;
  font-weight: 700;
  color: #e2e8f0;
}

.geo-slider-top b {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
  color: #38bdf8;
}

.geo-slider-item input[type="range"] {
  width: 100%;
  accent-color: #38bdf8;
  cursor: pointer;
  margin: 0;
}

.geo-simple-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (max-width: 680px) {
  .geo-simple-summary {
    grid-template-columns: 1fr;
  }
}

.geo-tele-item {
  background: rgba(6, 10, 22, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 8px;
  padding: 7px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.geo-tele-item span {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.04em;
}

.geo-tele-item b {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.76rem;
  font-weight: 700;
  color: #38bdf8;
  white-space: nowrap;
}

.viz-canvas-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.viz-pill {
  font-family: var(--mono);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #f8fafc;
  backdrop-filter: blur(8px);
}

.viz-callout-bar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 5;
  background: rgba(6, 9, 19, 0.90);
  border: 1px solid var(--line-chrome);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
}

.viz-callout-bar b {
  display: block;
  font-size: 0.8rem;
  color: var(--gold-light);
  margin-bottom: 2px;
}

.viz-callout-bar span {
  display: block;
  font-size: 0.77rem;
  color: var(--text);
  line-height: 1.38;
}

.viz-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.viz-layer-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (max-width: 560px) {
  .viz-layer-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
}

.viz-ltab {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 10px 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.viz-ltab:hover {
  border-color: var(--blue);
  color: var(--text);
}

.viz-ltab.active {
  background: var(--grad-primary);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 16px -4px rgba(37, 99, 235, 0.35);
}

.viz-panel-box {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.viz-panel-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 10px;
  display: block;
}

/* 6-Metric Biometric Ratio Score Cards ------------------------------------- */
.bio-score-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (max-width: 580px) {
  .bio-score-grid {
    grid-template-columns: 1fr;
  }
}

.bio-score-card {
  font: inherit;
  text-align: left;
  background: var(--surface);
  border: 1.5px solid var(--line-soft);
  border-radius: 12px;
  padding: 11px 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bio-score-card:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}

.bio-score-card.active {
  border-color: var(--cyan-neon);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.15) 0%, rgba(14, 22, 43, 0.95) 100%);
  box-shadow: 0 6px 18px -6px rgba(0, 240, 255, 0.35);
}

.bsc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.bsc-name {
  font-weight: 700;
  font-size: 0.83rem;
  color: var(--text);
}

.bsc-val {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue);
}

.bio-bar-track {
  width: 100%;
  height: 6px;
  background: var(--bg-2);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 5px;
}

.bio-bar-fill {
  height: 100%;
  background: var(--grad-primary);
  border-radius: 99px;
}

.bsc-ratio {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  display: block;
}

/* Interactive Before/After Split Stage & DIY Transformation Cards (#vizStudio) */
.viz-ba-layer-before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.viz-ba-layer-before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: saturate(0.42) brightness(0.76) contrast(0.92);
}

.viz-ba-layer-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  clip-path: inset(0 0 0 calc(100% - var(--vsplit, 74%)));
}

.viz-ba-layer-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: saturate(1.14) brightness(1.05) contrast(1.07);
}

.viz-ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(100% - var(--vsplit, 74%));
  width: 2.5px;
  background: #38bdf8;
  box-shadow: 0 0 14px 2px rgba(56, 189, 248, 0.85);
  z-index: 4;
  pointer-events: none;
}

.viz-ba-knob {
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #0f172a;
  border: 2px solid #38bdf8;
  color: #38bdf8;
  font-size: 0.76rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.7);
}

.viz-cut-inset {
  position: absolute;
  top: 46px;
  right: 12px;
  z-index: 4;
  width: 104px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #38bdf8;
  background: #0f172a;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.45);
}

.viz-cut-inset img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  filter: none !important;
}

.viz-cut-inset span {
  display: block;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  color: #7dd3fc;
  background: rgba(15, 23, 42, 0.92);
  padding: 4px 6px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.viz-ba-slider-wrap {
  margin-top: 10px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.viz-ba-slider-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
}

.viz-ba-slider-top b {
  color: var(--blue);
}

.viz-ba-slider-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.viz-ba-slider-row span {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--muted);
}

.viz-ba-slider-row input[type="range"] {
  flex: 1;
  accent-color: var(--blue);
  cursor: pointer;
}

/* Custom Option Cards inside #vizStudio Right Panel */
.ba-option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

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

.ba-opt-card {
  font: inherit;
  text-align: left;
  background: var(--surface);
  border: 1.5px solid var(--line-soft);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.15s ease;
}

.ba-opt-card:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}

.ba-opt-card.active {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: 0 6px 16px -6px rgba(37, 99, 235, 0.28);
}

.ba-opt-thumb {
  width: 48px;
  height: 48px;
  border-radius: 9px;
  object-fit: cover;
  object-position: center 18%;
  flex-shrink: 0;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.ba-opt-ico {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.ba-opt-text b {
  display: block;
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.25;
}

.ba-opt-text span {
  display: block;
  font-size: 0.71rem;
  color: var(--muted);
  margin-top: 2px;
}

/* Side-by-Side Before vs After Comparison Cards */
.ba-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

@media (max-width: 600px) {
  .ba-compare-grid {
    grid-template-columns: 1fr;
  }
}

.ba-box {
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ba-box.before {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.26);
}

.ba-box.after {
  background: rgba(16, 185, 129, 0.08);
  border: 1.5px solid rgba(16, 185, 129, 0.34);
}

.ba-box-tag {
  font-family: var(--mono);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ba-box.before .ba-box-tag {
  color: #dc2626;
}

.ba-box.after .ba-box-tag {
  color: #059669;
}

.ba-box b {
  font-size: 0.88rem;
  color: var(--text);
}

.ba-box p {
  font-size: 0.81rem;
  color: var(--muted);
  line-height: 1.45;
}

/* DIY "Do It Your Way" Step List */
.ba-diy-box {
  margin-top: 12px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 13px 15px;
}

.ba-diy-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 8px;
  display: block;
}

.ba-diy-steps {
  display: grid;
  gap: 7px;
}

.ba-diy-step {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.83rem;
  color: var(--text);
  line-height: 1.45;
}

.ba-diy-num {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--grad-primary);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.viz-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.viz-chip {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-chrome);
  border-radius: 9px;
  padding: 7px 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.15s ease;
}

.viz-chip:hover {
  border-color: var(--blue);
}

.viz-chip.active {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue-dark);
  font-weight: 700;
}

.viz-explain-box {
  margin-top: 12px;
  background: var(--surface);
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  padding: 12px 14px;
}

.viz-explain-box b {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 3px;
}

.viz-explain-box p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Visual Diagrams Inside Individual Report Cards ---------------------------- */
.diagram-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 12px 0;
}

@media (max-width: 680px) {
  .diagram-strip {
    grid-template-columns: 1fr;
  }
}

.diag-tile {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.diag-svg {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  padding: 4px;
}

.diag-copy b {
  display: block;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 2px;
}

.diag-copy span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.38;
}

/* Real Clothing & Model Outfit Photography Visuals (div:nth-of-type(8)) ----- */
div:nth-of-type(3) > main#stage:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(8) {
  border-color: rgba(56, 189, 248, 0.42);
  box-shadow: var(--shadow-card);
}

.fit-photo-showcase {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 12px;
}

.fit-photo-frame {
  position: relative;
  display: block;
  width: 100%;
  height: 220px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid rgba(56, 189, 248, 0.38);
  background: #091022;
  text-decoration: none;
}

.fit-real-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.fit-photo-frame:hover .fit-real-photo {
  transform: scale(1.05);
}

.fit-photo-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f8fafc;
  background: rgba(6, 9, 19, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.48);
  border-radius: 6px;
  padding: 3px 8px;
  backdrop-filter: blur(6px);
}

.fit-photo-swatches {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fit-swatch-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  color: #f8fafc;
  background: rgba(6, 9, 19, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  padding: 3px 7px;
  backdrop-filter: blur(6px);
}

.fit-swatch-pill i,
.inset-color-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.fit-ratio-badges {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.75rem;
  color: var(--muted);
}

.fit-ratio-badges b {
  color: var(--blue-dark);
  font-family: var(--mono);
  font-size: 0.69rem;
}

/* Real Outfit Banner & Inset inside 3. Clothes B/A Tab (#vizStudio) */
.viz-real-cloth-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(14, 22, 43, 0.92);
  border: 1.5px solid rgba(56, 189, 248, 0.36);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.viz-real-cloth-img {
  width: 82px;
  height: 98px;
  border-radius: 9px;
  object-fit: cover;
  object-position: center 16%;
  flex-shrink: 0;
  border: 1.5px solid rgba(0, 240, 255, 0.45);
}

.viz-real-cloth-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.viz-real-cloth-tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--cyan-neon);
  letter-spacing: 0.05em;
}

.viz-real-cloth-info b {
  font-size: 0.88rem;
  color: var(--text);
}

.viz-real-cloth-info p {
  font-size: 0.79rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Real Cloth Piece Thumbnails inside Best Colors & Exact Cloth Types (.scg-item) */
.scg-cloth-photo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.scg-cloth-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  object-position: center 20%;
  flex-shrink: 0;
  border: 1.5px solid rgba(56, 189, 248, 0.38);
  background: #091022;
}

.scg-cloth-meta {
  flex: 1;
  min-width: 0;
}

.hidden { display: none !important; }

/* ===========================================================================
   Realistic Customer-Attracting Butterflies (Blue Morpho, Monarch, Swallowtail),
   Shimmering Pollen Trail, Hover Invite Tooltip & CTA Perch Aura
   =========================================================================== */
.butterfly {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 75;
  width: 78px;
  height: 70px;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  will-change: transform;
  outline: none;
  transition: filter 0.25s ease;
}

.butterfly .bf-figure {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

/* Species-Specific Realistic Depth & Iridescent Drop Shadows */
.butterfly.bf-species-morpho {
  filter:
    drop-shadow(0 8px 14px rgba(2, 6, 23, 0.68))
    drop-shadow(0 0 12px rgba(0, 240, 255, 0.45));
}

.butterfly.bf-species-monarch {
  filter:
    drop-shadow(0 8px 14px rgba(2, 6, 23, 0.68))
    drop-shadow(0 0 12px rgba(251, 146, 60, 0.48));
}

.butterfly.bf-species-swallowtail {
  filter:
    drop-shadow(0 8px 14px rgba(2, 6, 23, 0.72))
    drop-shadow(0 0 12px rgba(16, 185, 129, 0.45));
}

.butterfly:hover,
.butterfly.bf-hovered,
.butterfly.bf-excited {
  filter:
    drop-shadow(0 10px 20px rgba(2, 6, 23, 0.8))
    drop-shadow(0 0 18px rgba(0, 240, 255, 0.82))
    drop-shadow(0 0 26px rgba(251, 191, 36, 0.75));
}

.butterfly svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.butterfly .wing {
  transform-box: fill-box;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: cubic-bezier(0.36, 0.05, 0.64, 0.95);
}

.butterfly .wing.left {
  transform-origin: 96% 52%;
  animation-name: bf-flap-left;
}

.butterfly .wing.right {
  transform-origin: 4% 52%;
  animation-name: bf-flap-right;
}

/* Subtle Hindwing Aerodynamic Follow-Through Lag */
.butterfly .wing.left .hindwing {
  transform-box: fill-box;
  transform-origin: 95% 20%;
  animation: bf-hindwing-left 0.26s ease-in-out infinite alternate;
}

.butterfly .wing.right .hindwing {
  transform-box: fill-box;
  transform-origin: 5% 20%;
  animation: bf-hindwing-right 0.26s ease-in-out infinite alternate;
}

.butterfly.bf-perched .wing.left .hindwing,
.butterfly.bf-perched .wing.right .hindwing,
.butterfly.bf-gliding .wing.left .hindwing,
.butterfly.bf-gliding .wing.right .hindwing {
  animation-duration: 1.6s;
}

@keyframes bf-flap-left {
  0% {
    transform: perspective(260px) rotateY(4deg) rotateZ(-2deg) scaleX(1.02);
  }
  50% {
    transform: perspective(260px) rotateY(34deg) rotateZ(1deg) scaleX(0.84);
  }
  100% {
    transform: perspective(260px) rotateY(68deg) rotateZ(5deg) scaleX(0.42);
  }
}

@keyframes bf-flap-right {
  0% {
    transform: perspective(260px) rotateY(-4deg) rotateZ(2deg) scaleX(1.02);
  }
  50% {
    transform: perspective(260px) rotateY(-34deg) rotateZ(-1deg) scaleX(0.84);
  }
  100% {
    transform: perspective(260px) rotateY(-68deg) rotateZ(-5deg) scaleX(0.42);
  }
}

@keyframes bf-hindwing-left {
  0% { transform: rotateZ(-2.5deg); }
  100% { transform: rotateZ(3.5deg); }
}

@keyframes bf-hindwing-right {
  0% { transform: rotateZ(2.5deg); }
  100% { transform: rotateZ(-3.5deg); }
}

/* Hover & Perch Floating Invite Tooltip Pill */
.butterfly .bf-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translate3d(-50%, 6px, 0) scale(0.92);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(6, 11, 26, 0.94);
  border: 1px solid rgba(56, 189, 248, 0.65);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.75),
    0 0 18px rgba(0, 240, 255, 0.35);
  color: #f8fafc;
  font-family: var(--sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
}

/* Keep tooltip text upright even when butterfly flips horizontally */
.butterfly[style*="scale(-"] .bf-tooltip {
  transform: translate3d(-50%, 6px, 0) scale(-0.92, 0.92);
}

.butterfly:hover .bf-tooltip,
.butterfly.bf-hovered .bf-tooltip,
.butterfly.bf-perched .bf-tooltip {
  opacity: 1;
  transform: translate3d(-50%, 0, 0) scale(1);
}

.butterfly[style*="scale(-"]:hover .bf-tooltip,
.butterfly[style*="scale(-"].bf-hovered .bf-tooltip,
.butterfly[style*="scale(-"].bf-perched .bf-tooltip {
  opacity: 1;
  transform: translate3d(-50%, 0, 0) scale(-1, 1);
}

.bf-tooltip-spark {
  color: #fde047;
  font-size: 0.8rem;
}

/* Subtle Customer-Attracting Halo when a Butterfly Perches on a CTA Button */
.bf-cta-perched {
  box-shadow:
    0 0 0 2px rgba(253, 224, 71, 0.78),
    0 0 26px rgba(0, 240, 255, 0.65),
    0 0 42px rgba(251, 191, 36, 0.45) !important;
  transform: translateY(-2px) scale(1.02);
  transition: box-shadow 0.3s ease, transform 0.3s ease !important;
}

/* Shimmering Pollen Trail Particles */
.bf-pollen-layer {
  position: fixed;
  inset: 0;
  z-index: 74;
  pointer-events: none;
  overflow: hidden;
}

.bf-pollen {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
  animation: bf-pollen-drift 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.bf-pollen-morpho {
  background: radial-gradient(circle, #ffffff 0%, #7dd3fc 50%, #00f0ff 100%);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.85);
}

.bf-pollen-monarch {
  background: radial-gradient(circle, #ffffff 0%, #fef08a 50%, #f59e0b 100%);
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.85);
}

.bf-pollen-swallowtail {
  background: radial-gradient(circle, #ffffff 0%, #a7f3d0 50%, #10b981 100%);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.85);
}

@keyframes bf-pollen-drift {
  0% {
    opacity: 0.92;
    transform: translate3d(-50%, -50%, 0) scale(0.9);
  }
  50% {
    opacity: 0.75;
    transform: translate3d(calc(-50% + var(--px) * 0.55), calc(-50% + var(--py) * 0.55), 0) scale(1.15);
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(-50% + var(--px)), calc(-50% + var(--py)), 0) scale(0.2);
  }
}

/* Interactive Gold & Electric Cyan Sparkle Burst Particles */
.bf-sparkle-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  overflow: hidden;
}

.bf-sparkle {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: bf-sparkle-fly 0.72s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bf-sparkle.rose {
  background: radial-gradient(circle, #ffffff 0%, #fda4af 45%, #ff3366 100%);
  box-shadow: 0 0 12px 2px rgba(255, 51, 102, 0.92);
}

.bf-sparkle.gold {
  background: radial-gradient(circle, #ffffff 0%, #fef08a 45%, #f59e0b 100%);
  box-shadow: 0 0 12px 2px rgba(251, 191, 36, 0.9);
}

.bf-sparkle.emerald {
  background: radial-gradient(circle, #ffffff 0%, #6ee7b7 45%, #10b981 100%);
  box-shadow: 0 0 12px 2px rgba(16, 185, 129, 0.92);
}

.bf-sparkle.cyan {
  background: radial-gradient(circle, #ffffff 0%, #7dd3fc 45%, #00f0ff 100%);
  box-shadow: 0 0 12px 2px rgba(0, 240, 255, 0.95);
}

.bf-sparkle.violet {
  background: radial-gradient(circle, #ffffff 0%, #c4b5fd 45%, #8b5cf6 100%);
  box-shadow: 0 0 12px 2px rgba(139, 92, 246, 0.92);
}

@keyframes bf-sparkle-fly {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.5);
  }
  40% {
    opacity: 1;
    transform: translate(calc(-50% + var(--dx) * 0.65), calc(-50% + var(--dy) * 0.65)) scale(1.25);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.15);
  }
}

/* Holographic Rainbow Pattern on Card Titles, Values & Kickers -------------- */
.kpi-val,
.sc-name,
.dsc-item b,
.r-body > h3,
.hc-cut-title,
.matrix-panel h3,
.kicker,
.wiz-kicker,
.kb-kicker {
  background-image: var(--grad-rainbow);
  background-size: 18px 18px, 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rainbow-wave-flow 6.5s linear infinite;
  transition: filter 0.18s ease, transform 0.18s ease;
}

.kpi-item:hover .kpi-val,
.style-card:hover .sc-name,
.dsc-item:hover b,
.r-card:hover .r-body > h3,
.hc-showcase-card:hover .hc-cut-title,
.matrix-panel:hover h3 {
  animation-duration: 2.2s;
  filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.68)) drop-shadow(0 0 18px rgba(244, 114, 182, 0.5));
}

/* Interactive 3D Tilt & Glowing Rainbow Border Tracking on All Cards -------- */
.ix-tilt-card {
  position: relative;
  transform: perspective(950px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease, box-shadow 0.22s ease;
  will-change: transform;
}

.ix-tilt-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  background: radial-gradient(
    320px circle at var(--card-x, 50%) var(--card-y, 50%),
    rgba(0, 240, 255, 0.22) 0%,
    rgba(244, 114, 182, 0.16) 36%,
    rgba(251, 191, 36, 0.12) 62%,
    transparent 82%
  );
  box-shadow: inset 0 0 0 1.5px rgba(0, 240, 255, 0.38);
  transition: opacity 0.24s ease;
}

.ix-tilt-card.ix-card-active {
  border-color: rgba(0, 240, 255, 0.58);
  box-shadow:
    0 22px 48px -12px rgba(0, 0, 0, 0.78),
    0 0 26px -4px rgba(0, 240, 255, 0.28),
    0 0 34px -8px rgba(244, 114, 182, 0.24);
}

.ix-tilt-card.ix-card-active::after {
  opacity: 1;
}

/* ===========================================================================
   Verified Security Shield Badge & Photo Scanner Antivirus Status Bar
   =========================================================================== */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.sec-shield-wrap {
  position: relative;
}

.sec-shield-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #a7f3d0;
  background: rgba(6, 78, 59, 0.55);
  border: 1px solid rgba(16, 185, 129, 0.55);
  border-radius: 9px;
  padding: 7px 11px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.22);
  transition: all 0.16s ease;
}

.sec-shield-badge:hover {
  border-color: #34d399;
  color: #ecfdf5;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.45);
  transform: translateY(-1px);
}

.sec-shield-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: dot-pulse 1.8s infinite ease-in-out;
}

@media (max-width: 680px) {
  .sec-shield-badge span:last-child {
    display: none;
  }
  .sec-shield-badge::after {
    content: "🛡️ Protected";
  }
}

.sec-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  background: rgba(6, 10, 22, 0.96);
  border: 1.5px solid rgba(16, 185, 129, 0.52);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.82), 0 0 24px rgba(16, 185, 129, 0.25);
  backdrop-filter: blur(16px);
  z-index: 120;
  text-align: left;
}

.sec-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 9px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(16, 185, 129, 0.24);
}

.sec-pop-head b {
  font-size: 0.82rem;
  color: #ecfdf5;
}

.sec-pop-pill {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: #064e3b;
  background: #34d399;
  border-radius: 6px;
  padding: 2px 7px;
}

.sec-pop-list {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 0.76rem;
  color: #cbd5e1;
  line-height: 1.42;
}

.sec-pop-list b {
  color: #6ee7b7;
}

.sec-pop-tele {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(16, 185, 129, 0.24);
  font-family: var(--mono);
  font-size: 0.68rem;
  color: #94a3b8;
}

.sec-pop-tele b {
  color: #34d399;
}

.av-scanner-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(56, 189, 248, 0.38);
  font-size: 0.8rem;
  color: #e2e8f0;
}

.av-scanner-bar.verified {
  background: rgba(6, 78, 59, 0.42);
  border-color: rgba(16, 185, 129, 0.58);
  color: #d1fae5;
}

.av-scanner-bar.blocked {
  background: rgba(127, 29, 29, 0.45);
  border-color: rgba(248, 113, 113, 0.65);
  color: #fee2e2;
}

.av-scanner-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  flex-shrink: 0;
}

.av-scanner-bar.verified .av-scanner-dot {
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.av-scanner-bar.blocked .av-scanner-dot {
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
}

