/* ==========================================================================
   OBSIDIAN SPATIAL LUXURY — DESIGN SYSTEM & MOTION ARCHITECTURE
   Mobile-First (320px – 428px+) | 60 FPS GPU-Accelerated | Apple / Awwwards Grade
   ========================================================================== */

:root {
  /* Core Palette: Deep Obsidian & Volumetric Accents */
  --bg-void: #040407;
  --bg-obsidian: #090910;
  --bg-elevated: rgba(17, 17, 29, 0.74);
  --bg-glass-strong: rgba(22, 22, 38, 0.84);
  --bg-glass-subtle: rgba(255, 255, 255, 0.035);

  /* Harmonic Accents */
  --accent-violet: #8b5cf6;
  --accent-purple-deep: #4c1d95;
  --accent-magenta: #ec4899;
  --accent-ivi-ruby: #ff0f52;
  --accent-ivi-deep: #9f1239;
  --accent-gold-bright: #ffe699;
  --accent-gold: #f5c451;
  --accent-gold-deep: #c68a1c;
  --accent-emerald: #10b981;
  --accent-danger: #f43f5e;

  /* Dynamic Stage Ambient Variables */
  --stage-glow-1: rgba(139, 92, 246, 0.36);
  --stage-glow-2: rgba(236, 72, 153, 0.24);
  --stage-glow-3: rgba(245, 196, 81, 0.22);

  /* Text Hierarchy */
  --text-primary: #f8fafc;
  --text-secondary: rgba(226, 232, 240, 0.78);
  --text-muted: rgba(148, 163, 184, 0.68);

  /* Borders & Specular Highlights */
  --border-glass: rgba(255, 255, 255, 0.11);
  --border-specular: rgba(255, 255, 255, 0.22);
  --border-gold: rgba(245, 196, 81, 0.42);

  /* Radii & Spacing */
  --radius-2xl: 28px;
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-pill: 9999px;

  /* Typography */
  --font-display: 'Unbounded', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Safe Areas for iPhone Dynamic Island & Home Indicator */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Stage-Specific Ambient Color Morphing */
body[data-stage="0"] {
  --stage-glow-1: rgba(124, 58, 237, 0.38);
  --stage-glow-2: rgba(245, 196, 81, 0.26);
  --stage-glow-3: rgba(236, 72, 153, 0.20);
}
body[data-stage="1"] {
  --stage-glow-1: rgba(139, 92, 246, 0.44);
  --stage-glow-2: rgba(236, 72, 153, 0.34);
  --stage-glow-3: rgba(255, 94, 58, 0.18);
}
body[data-stage="2"] {
  --stage-glow-1: rgba(255, 15, 82, 0.42);
  --stage-glow-2: rgba(159, 18, 57, 0.35);
  --stage-glow-3: rgba(236, 72, 153, 0.22);
}
body[data-stage="3"] {
  --stage-glow-1: rgba(139, 92, 246, 0.38);
  --stage-glow-2: rgba(16, 185, 129, 0.25);
  --stage-glow-3: rgba(245, 196, 81, 0.20);
}
body[data-stage="4"] {
  --stage-glow-1: rgba(124, 58, 237, 0.36);
  --stage-glow-2: rgba(245, 196, 81, 0.28);
  --stage-glow-3: rgba(236, 72, 153, 0.20);
}
body[data-stage="5"] {
  --stage-glow-1: rgba(245, 196, 81, 0.42);
  --stage-glow-2: rgba(16, 185, 129, 0.28);
  --stage-glow-3: rgba(139, 92, 246, 0.26);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  height: 100%;
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100%;
  min-height: 100dvh;
  background-color: var(--bg-void);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   3D VOLUMETRIC CANVAS & AMBIENT LIGHTING SCENE
   ========================================================================== */
#spatial-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

.ambient-scene {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(78px);
  will-change: transform, background, opacity;
  transition: background 1.1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.9s ease;
}

.orb-primary {
  width: 380px;
  height: 380px;
  top: -90px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--stage-glow-1) 0%, transparent 72%);
}

.orb-secondary {
  width: 340px;
  height: 340px;
  bottom: 4%;
  right: -80px;
  background: radial-gradient(circle, var(--stage-glow-2) 0%, transparent 72%);
}

.orb-gold {
  width: 300px;
  height: 300px;
  top: 28%;
  left: -90px;
  background: radial-gradient(circle, var(--stage-glow-3) 0%, transparent 72%);
}

.spatial-grid-floor {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 35%, #000 15%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 35%, #000 15%, transparent 80%);
}

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

/* ==========================================================================
   APP SHELL (MOBILE-FIRST FRAME)
   ========================================================================== */
.app-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  min-height: 100dvh;
  padding: calc(var(--safe-top) + 12px) 16px calc(var(--safe-bottom) + 18px);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ==========================================================================
   TOP HUD & PROGRESS ARCHITECTURE
   ========================================================================== */
.hud-header {
  margin-bottom: 14px;
  background: rgba(14, 14, 24, 0.76);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 12px 14px 14px;
  box-shadow:
    0 16px 36px -12px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

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

.hud-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 0 11px 0 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hud-icon-btn:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.12);
}

.hud-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.32);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #e9d5ff;
  letter-spacing: 0.02em;
}

.hud-step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
}

.hud-right-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-promoter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.promoter-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.6);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.promoter-status-dot.authorized {
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

.hud-reset-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.hud-reset-btn:active {
  transform: rotate(-45deg) scale(0.92);
  color: #fff;
}

/* 4-Node Glowing Progress Track */
.progress-architecture {
  position: relative;
  padding-top: 2px;
}

.progress-rail {
  position: absolute;
  top: 16px;
  left: 12%;
  right: 12%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  z-index: 1;
}

.progress-rail-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-violet), var(--accent-magenta), var(--accent-gold));
  transition: width 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-rail-glow {
  position: absolute;
  top: -2px;
  left: 0;
  height: 7px;
  width: 0%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--accent-violet), var(--accent-magenta), var(--accent-gold));
  filter: blur(6px);
  opacity: 0.75;
  transition: width 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-nodes {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.progress-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.node-ring {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #121220;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  position: relative;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.node-check {
  width: 14px;
  height: 14px;
  display: none;
}

.progress-node.active .node-ring {
  border-color: var(--accent-gold);
  background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.5), rgba(20, 20, 36, 0.95));
  color: #fff;
  box-shadow:
    0 0 0 4px rgba(139, 92, 246, 0.2),
    0 0 16px rgba(245, 196, 81, 0.45);
  transform: scale(1.08);
}

.progress-node.completed .node-ring {
  border-color: var(--accent-emerald);
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.45);
}

.progress-node.completed .node-num {
  display: none;
}

.progress-node.completed .node-check {
  display: block;
}

.node-caption {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.progress-node.active .node-caption {
  color: var(--accent-gold-bright);
}

.progress-node.completed .node-caption {
  color: rgba(226, 232, 240, 0.9);
}

/* ==========================================================================
   STAGE VIEWPORT & TRANSITION SYSTEM
   ========================================================================== */
.stage-viewport {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.stage-screen {
  display: none;
  flex-direction: column;
  flex: 1;
  width: 100%;
  will-change: transform, opacity;
}

.stage-screen.active {
  display: flex;
}

/* ==========================================================================
   STAGE 0: HERO SCREEN — 25 000 ₸ 3D SCULPTURE
   ========================================================================== */
.hero-top-Utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.brand-collab-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

.collab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.plus-dot {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  box-shadow: 0 0 8px #ec4899;
}

.ivi-dot {
  background: #ff0f52;
  box-shadow: 0 0 8px #ff0f52;
}

.collab-sep {
  opacity: 0.45;
  font-size: 11px;
}

.discreet-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.discreet-admin-link:hover,
.discreet-admin-link:active {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.24);
}

/* 3D Sculpture Stage */
.hero-sculpture-wrapper {
  perspective: 1100px;
  margin: 2px 0 16px;
  position: relative;
  width: 100%;
}

.hero-sculpture {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out;
}

.orbital-ring {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  pointer-events: none;
  transform-style: preserve-3d;
  z-index: 1;
}

.ring-outer {
  border: 1.5px solid rgba(139, 92, 246, 0.34);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.25);
  transform: rotateX(70deg) rotateY(-12deg) rotateZ(0deg);
  animation: orbitSpin 18s linear infinite;
}

.ring-inner {
  inset: 18px;
  border: 1.5px dashed rgba(245, 196, 81, 0.38);
  transform: rotateX(66deg) rotateY(14deg) rotateZ(45deg);
  animation: orbitSpinReverse 24s linear infinite;
}

.ring-gold-flare {
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(245, 196, 81, 0.22) 0%, rgba(139, 92, 246, 0.15) 45%, transparent 72%);
  filter: blur(16px);
}

@keyframes orbitSpin {
  0% { transform: rotateX(70deg) rotateY(-12deg) rotateZ(0deg); }
  100% { transform: rotateX(70deg) rotateY(-12deg) rotateZ(360deg); }
}

@keyframes orbitSpinReverse {
  0% { transform: rotateX(66deg) rotateY(14deg) rotateZ(360deg); }
  100% { transform: rotateX(66deg) rotateY(14deg) rotateZ(0deg); }
}

/* Hero Glass Prism Card */
.hero-prism-card {
  position: relative;
  width: 100%;
  padding: 26px 14px 22px;
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(125% 105% at 50% 0%, rgba(139, 92, 246, 0.30) 0%, rgba(236, 72, 153, 0.12) 38%, rgba(14, 14, 26, 0.92) 72%, rgba(8, 8, 16, 0.97) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 26px 56px -14px rgba(0, 0, 0, 0.88),
    0 0 42px -8px rgba(139, 92, 246, 0.42),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1.5px 0 rgba(245, 196, 81, 0.30);
  text-align: center;
  overflow: hidden;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

.prism-specular-sheen {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 50% 28%, rgba(255, 230, 153, 0.18), transparent 48%);
  pointer-events: none;
  transition: transform 0.15s ease-out;
}

.prism-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: rgba(245, 196, 81, 0.65);
  border-style: solid;
  pointer-events: none;
  z-index: 3;
}
.corner-tl { top: 12px; left: 12px; border-width: 2px 0 0 2px; border-top-left-radius: 6px; }
.corner-tr { top: 12px; right: 12px; border-width: 2px 2px 0 0; border-top-right-radius: 6px; }
.corner-bl { bottom: 12px; left: 12px; border-width: 0 0 2px 2px; border-bottom-left-radius: 6px; }
.corner-br { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; border-bottom-right-radius: 6px; }

.hero-eyebrow-wrap {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: rgba(245, 196, 81, 0.13);
  border: 1px solid rgba(245, 196, 81, 0.38);
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(245, 196, 81, 0.15);
}

.eyebrow-sparkle {
  color: var(--accent-gold);
  font-size: 11px;
}

.hero-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-gold-bright);
}

/* Monumental 3D Typography: 25 000 ₸ (Sized cleanly for Unbounded Display on 320px-428px) */
.hero-amount-3d {
  position: relative;
  z-index: 3;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.85rem, 8.6vw, 2.72rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 6px 0 16px;
  user-select: none;
  perspective: 600px;
  width: 100%;
}

.amount-row {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  white-space: nowrap;
  max-width: 100%;
}

.glyph-space {
  width: 0.18em;
  display: inline-block;
}

.glyph-3d {
  display: inline-block;
  position: relative;
  background: linear-gradient(
    175deg,
    #ffffff 0%,
    #fff6d6 20%,
    #f5c451 48%,
    #d98a16 74%,
    #fde68a 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 2px 0 rgba(146, 90, 12, 0.95))
    drop-shadow(0 4px 0 rgba(88, 46, 6, 0.88))
    drop-shadow(0 10px 22px rgba(245, 196, 81, 0.45))
    drop-shadow(0 0 28px rgba(139, 92, 246, 0.5));
  animation: liquidGoldFlow 6s ease-in-out infinite, glyphEntrance 0.65s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.glyph-3d:nth-child(1) { animation-delay: 0s, 0.04s; }
.glyph-3d:nth-child(2) { animation-delay: 0s, 0.09s; }
.glyph-3d:nth-child(4) { animation-delay: 0s, 0.14s; }
.glyph-3d:nth-child(5) { animation-delay: 0s, 0.19s; }
.glyph-3d:nth-child(6) { animation-delay: 0s, 0.24s; }
.glyph-3d:nth-child(8) { animation-delay: 0s, 0.29s; }

@keyframes glyphEntrance {
  from {
    transform: translateY(14px) scale(0.9);
  }
  to {
    transform: translateY(0) scale(1);
  }
}

.glyph-currency {
  font-size: 0.86em;
  margin-left: 0.04em;
  background: linear-gradient(175deg, #fff8dc 0%, #f5c451 55%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

@keyframes liquidGoldFlow {
  0%, 100% { background-position: 0% 20%; }
  50% { background-position: 100% 80%; }
}

.amount-reflection {
  display: block;
  font-size: 0.92em;
  line-height: 0.7;
  margin-top: 2px;
  transform: scaleY(-0.38) perspective(300px) rotateX(35deg);
  opacity: 0.14;
  background: linear-gradient(to bottom, rgba(245, 196, 81, 0.7), transparent 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: blur(2px);
  pointer-events: none;
}

.hero-prize-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(248, 250, 252, 0.85);
}

.pulse-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: ledPulse 2s ease-in-out infinite;
}

@keyframes ledPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

/* Hero Copy & Master CTA */
.hero-copy-block {
  text-align: center;
  margin-bottom: 18px;
}

.hero-lead {
  font-size: clamp(1.05rem, 4.5vw, 1.24rem);
  font-weight: 700;
  line-height: 1.38;
  color: var(--text-primary);
  margin-bottom: 8px;
  padding: 0 4px;
}

.hero-subcaption {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding: 0 6px;
}

.hero-steps-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 20px;
}

.mini-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}

.mini-step-pill i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-gold);
}

.mini-step-arrow {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.28);
}

/* Master CTA Button */
.cta-master-wrap {
  position: relative;
  padding: 2px;
}

.btn-master-cta {
  position: relative;
  width: 100%;
  min-height: 58px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 230, 153, 0.48);
  background: linear-gradient(135deg, #7c3aed 0%, #c026d3 48%, #f59e0b 100%);
  background-size: 200% 200%;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(0.82rem, 3.6vw, 0.96rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 18px 40px -8px rgba(168, 85, 247, 0.62),
    0 0 28px rgba(245, 196, 81, 0.32),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.28);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
  animation: ctaGradientShift 5s ease infinite;
}

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

.btn-master-cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 22px 46px -8px rgba(168, 85, 247, 0.75),
    0 0 36px rgba(245, 196, 81, 0.46),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.55);
}

.btn-master-cta:active {
  transform: translateY(1px) scale(0.98);
}

.btn-cta-shimmer,
.btn-shimmer {
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.38) 50%,
    transparent 80%
  );
  transform: skewX(-20deg);
  animation: shimmerSweep 3.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes shimmerSweep {
  0% { left: -120%; }
  45%, 100% { left: 160%; }
}

.btn-cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn-cta-arrow {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.btn-master-cta:hover .btn-cta-arrow {
  transform: translateX(3px);
}

/* Bottom Legal Summary Bar */
.hero-legal-bar {
  margin-top: auto;
  padding-top: 8px;
}

.legal-summary-card {
  padding: 13px 15px;
  border-radius: var(--radius-lg);
  background: rgba(15, 15, 26, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.legal-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.legal-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
}

.legal-version {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.legal-disclaimer-short {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text-muted);
  margin-bottom: 9px;
}

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

.legal-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: rgba(226, 232, 240, 0.88);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 0;
  text-decoration: underline;
  text-decoration-color: rgba(245, 196, 81, 0.45);
  text-underline-offset: 3px;
}

.legal-dot-sep {
  color: rgba(255, 255, 255, 0.25);
  font-size: 12px;
}

/* ==========================================================================
   STEPS 1 & 2: LUXURY QR SCREENS (YANDEX PLUS & IVI)
   ========================================================================== */
.step-header-block {
  text-align: center;
  margin-bottom: 14px;
}

.step-brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
}

.chip-yandex {
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(236, 72, 153, 0.4);
  color: #f5d0fe;
}

.chip-ivi {
  background: rgba(255, 15, 82, 0.16);
  border: 1px solid rgba(255, 15, 82, 0.45);
  color: #fecdd3;
}

.chip-verify {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.38);
  color: #a7f3d0;
}

.chip-gold {
  background: rgba(245, 196, 81, 0.15);
  border: 1px solid rgba(245, 196, 81, 0.42);
  color: var(--accent-gold-bright);
}

.step-title {
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 4.7vw, 1.42rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.22;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.step-subtitle {
  font-size: 13px;
  line-height: 1.44;
  color: var(--text-secondary);
  max-width: 360px;
  margin: 0 auto;
}

/* QR Vault Card */
.qr-vault-card {
  position: relative;
  border-radius: var(--radius-2xl);
  padding: 16px;
  background: rgba(16, 16, 28, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  box-shadow:
    0 24px 50px -12px rgba(0, 0, 0, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  margin-bottom: 12px;
}

.vault-yandex {
  box-shadow:
    0 24px 50px -12px rgba(0, 0, 0, 0.78),
    0 0 36px -8px rgba(168, 85, 247, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.vault-ivi {
  border-color: rgba(255, 15, 82, 0.28);
  box-shadow:
    0 24px 50px -12px rgba(0, 0, 0, 0.78),
    0 0 40px -8px rgba(255, 15, 82, 0.36),
    inset 0 1px 0 rgba(255, 150, 170, 0.24);
}

.vault-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.consultant-mini-badge {
  display: flex;
  align-items: center;
  gap: 9px;
}

.consultant-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.35);
}

.consultant-avatar.ivi-avatar {
  background: linear-gradient(135deg, #ff0f52, #b91c1c);
  font-size: 10px;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 12px rgba(255, 15, 82, 0.4);
}

.consultant-meta {
  display: flex;
  flex-direction: column;
}

.consultant-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.consultant-role {
  font-size: 11px;
  color: var(--text-muted);
}

.qr-mode-switcher {
  display: inline-flex;
  padding: 3px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.qr-mode-btn {
  padding: 5px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qr-mode-btn.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* QR Pedestal & Stationary High-Contrast Frame */
.qr-pedestal-outer {
  position: relative;
  padding: 14px;
  border-radius: 22px;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.16), rgba(8, 8, 15, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.pedestal-ivi {
  background: radial-gradient(circle at center, rgba(255, 15, 82, 0.18), rgba(8, 8, 15, 0.9));
  border-color: rgba(255, 15, 82, 0.24);
}

.qr-corner-bracket {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--accent-gold);
  border-style: solid;
  pointer-events: none;
}

.pedestal-ivi .qr-corner-bracket {
  border-color: #ff4d79;
}

.bracket-tl { top: 8px; left: 8px; border-width: 2.5px 0 0 2.5px; border-top-left-radius: 8px; }
.bracket-tr { top: 8px; right: 8px; border-width: 2.5px 2.5px 0 0; border-top-right-radius: 8px; }
.bracket-bl { bottom: 8px; left: 8px; border-width: 0 0 2.5px 2.5px; border-bottom-left-radius: 8px; }
.bracket-br { bottom: 8px; right: 8px; border-width: 0 2.5px 2.5px 0; border-bottom-right-radius: 8px; }

/* CRITICAL: Pure white quiet zone, zero overlays, maximum contrast & scannability */
.qr-pure-frame {
  width: 100%;
  max-width: 224px;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border-radius: 16px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.qr-pure-frame.card-mode {
  aspect-ratio: auto;
  max-width: 260px;
  padding: 6px;
}

.qr-code-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  user-select: none;
}

.qr-scan-instruction {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

.qr-scan-instruction svg {
  color: var(--accent-gold);
  flex-shrink: 0;
}

.ivi-instruction svg {
  color: #ff4d79;
}

.direct-link-wrap {
  margin-top: 12px;
}

.btn-direct-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.38);
  color: #f3e8ff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-direct-ivi {
  background: rgba(255, 15, 82, 0.14);
  border-color: rgba(255, 15, 82, 0.38);
  color: #ffe4e6;
}

/* Offer Terms Accordion */
.offer-terms-box {
  border-radius: var(--radius-lg);
  background: rgba(15, 15, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  margin-bottom: 16px;
  overflow: hidden;
}

.offer-terms-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}

.offer-terms-summary::-webkit-details-marker {
  display: none;
}

.terms-summary-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.terms-chevron {
  transition: transform 0.25s ease;
}

.offer-terms-box[open] .terms-chevron {
  transform: rotate(180deg);
}

.offer-terms-body {
  padding: 0 14px 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.terms-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 10px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}

.terms-list strong {
  color: var(--text-secondary);
}

/* Primary Stage Buttons */
.stage-action-footer {
  margin-top: auto;
  padding-top: 4px;
}

.btn-stage-primary {
  position: relative;
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 3.4vw, 0.9rem);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, opacity 0.2s ease;
}

.btn-stage-primary:active {
  transform: scale(0.98);
}

.btn-theme-yandex {
  background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
  box-shadow:
    0 16px 34px -8px rgba(168, 85, 247, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-theme-ivi {
  background: linear-gradient(135deg, #ff0f52 0%, #be123c 100%);
  box-shadow:
    0 16px 34px -8px rgba(255, 15, 82, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   STAGE 3: PROMOTER CONFIRMATION SCREEN
   ========================================================================== */
.confirm-stage-card {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 18px;
  border-radius: var(--radius-2xl);
  background: rgba(16, 16, 28, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(26px);
  box-shadow:
    0 24px 50px -12px rgba(0, 0, 0, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.confirm-wave-ring {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.55) 0%, rgba(245, 196, 81, 0.3) 50%, transparent 70%);
  opacity: 0;
  transform: scale(0.2);
  pointer-events: none;
}

.verification-orb-wrap {
  position: relative;
  width: 118px;
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0 18px;
}

.verification-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(139, 92, 246, 0.45);
  animation: spinSlow 12s linear infinite;
}

.verification-orbit.orbit-2 {
  inset: 10px;
  border-style: solid;
  border-color: rgba(245, 196, 81, 0.25) transparent rgba(236, 72, 153, 0.35) transparent;
  animation: spinSlowReverse 8s linear infinite;
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}
@keyframes spinSlowReverse {
  to { transform: rotate(-360deg); }
}

.verification-core {
  width: 82px;
  height: 82px;
  border-radius: 26px;
  background: radial-gradient(circle at 30% 25%, rgba(139, 92, 246, 0.45), rgba(18, 18, 34, 0.95));
  border: 1.5px solid rgba(245, 196, 81, 0.45);
  box-shadow:
    0 12px 30px rgba(124, 58, 237, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold-bright);
  transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.verification-core.confirmed {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #a7f3d0;
  color: #ffffff;
  border-radius: 50%;
  box-shadow:
    0 0 40px rgba(16, 185, 129, 0.7),
    0 0 80px rgba(245, 196, 81, 0.4);
}

.confirm-checklist {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 18px 0 22px;
  text-align: left;
}

.checklist-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.checklist-row.done {
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.06);
}

.checklist-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.checklist-row.done .checklist-icon {
  background: rgba(16, 185, 129, 0.22);
  color: #34d399;
}

.checklist-icon.pulse-wait {
  background: rgba(245, 196, 81, 0.18);
  color: var(--accent-gold);
  animation: ledPulse 1.6s infinite;
}

.checklist-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.checklist-text strong {
  font-size: 13px;
  color: var(--text-primary);
}

.checklist-text span {
  font-size: 11.5px;
  color: var(--text-muted);
}

.checklist-status {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
}

.checklist-status.status-wait {
  background: rgba(245, 196, 81, 0.14);
  color: var(--accent-gold-bright);
}

.promoter-action-zone {
  width: 100%;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.promoter-zone-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.btn-promoter-confirm {
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  border-color: rgba(167, 243, 208, 0.45);
  box-shadow:
    0 16px 34px -8px rgba(16, 185, 129, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   STAGE 4: INTERACTIVE PARTICIPANT QUESTIONNAIRE FORM
   ========================================================================== */
.luxury-form-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px 14px;
  border-radius: var(--radius-2xl);
  background: rgba(16, 16, 28, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(26px);
  box-shadow:
    0 24px 50px -12px rgba(0, 0, 0, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.input-capsule {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 13px;
  border-radius: 14px;
  background: rgba(8, 8, 16, 0.78);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.textarea-capsule {
  align-items: flex-start;
  padding: 8px 13px;
}

.input-capsule:focus-within {
  border-color: var(--accent-violet);
  background: rgba(14, 14, 26, 0.95);
  box-shadow:
    0 0 0 4px rgba(139, 92, 246, 0.18),
    0 8px 24px -6px rgba(139, 92, 246, 0.32);
}

.form-field-group.valid .input-capsule {
  border-color: rgba(16, 185, 129, 0.55);
}

.form-field-group.invalid .input-capsule {
  border-color: var(--accent-danger);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.16);
}

.input-leading-icon {
  color: var(--text-muted);
  margin-right: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.25s ease;
}

.input-capsule:focus-within .input-leading-icon {
  color: var(--accent-gold);
}

.kz-flag-badge {
  font-size: 18px;
}

.input-floating-wrap {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.luxury-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px; /* >=16px prevents iOS Safari auto-zoom on focus! */
  font-weight: 600;
  padding: 20px 0 6px;
}

.mono-phone-input {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.luxury-textarea {
  resize: none;
  padding-top: 18px;
  line-height: 1.4;
  min-height: 58px;
}

.floating-label {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 500;
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), color 0.22s ease, font-size 0.22s ease;
}

.textarea-capsule .floating-label {
  top: 16px;
  transform: none;
}

.luxury-input:focus + .floating-label,
.luxury-input:not(:placeholder-shown) + .floating-label {
  top: 7px;
  transform: translateY(0) scale(0.78);
  color: var(--accent-gold-bright);
  font-weight: 600;
}

.textarea-capsule .luxury-input:focus + .floating-label,
.textarea-capsule .luxury-input:not(:placeholder-shown) + .floating-label {
  top: 2px;
  transform: scale(0.78);
}

.input-status-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form-field-group.valid .input-status-icon {
  opacity: 1;
  transform: scale(1);
}

.field-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px;
  min-height: 16px;
}

.field-example {
  font-size: 11px;
  color: var(--text-muted);
}

.field-error-msg {
  font-size: 11.5px;
  font-weight: 600;
  color: #fb7185;
}

.char-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto;
}

/* Quick Wish Idea Chips */
.wish-ideas-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.wish-idea-chip {
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wish-idea-chip:hover,
.wish-idea-chip:active {
  background: rgba(139, 92, 246, 0.22);
  border-color: rgba(245, 196, 81, 0.45);
  color: #fff;
}

/* Personal Data Consent Checkbox */
.consent-field-group {
  padding: 12px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.consent-field-group.invalid {
  border-color: var(--accent-danger);
  background: rgba(244, 63, 94, 0.06);
}

.luxury-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
  user-select: none;
}

.sr-only-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.custom-checkbox-box {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(8, 8, 16, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.sr-only-checkbox:checked + .custom-checkbox-box {
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-magenta));
  border-color: var(--accent-gold);
  color: #fff;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.55);
}

.sr-only-checkbox:focus-visible + .custom-checkbox-box {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

.consent-text {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.inline-doc-link {
  background: none;
  border: none;
  color: var(--accent-gold-bright);
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.btn-submit-raffle {
  background: linear-gradient(135deg, #7c3aed 0%, #c026d3 52%, #f59e0b 100%);
  border-color: rgba(255, 230, 153, 0.5);
  box-shadow:
    0 18px 38px -8px rgba(168, 85, 247, 0.62),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.42);
  margin-top: 4px;
}

.btn-submit-spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  animation: spinSlow 0.75s linear infinite;
}

/* ==========================================================================
   STAGE 5: FINAL SUCCESS SCREEN — ВЫ УЧАСТВУЕТЕ!
   ========================================================================== */
.finale-card {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 18px 22px;
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(245, 196, 81, 0.22) 0%, rgba(16, 16, 28, 0.9) 58%, rgba(10, 10, 18, 0.96) 100%);
  border: 1px solid rgba(245, 196, 81, 0.38);
  box-shadow:
    0 28px 60px -12px rgba(0, 0, 0, 0.85),
    0 0 50px -10px rgba(245, 196, 81, 0.35),
    inset 0 1px 0 rgba(255, 230, 153, 0.4);
  overflow: hidden;
}

.finale-crest-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.finale-halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(245, 196, 81, 0.4);
  animation: haloExpand 3s ease-out infinite;
}

.finale-halo.halo-2 {
  animation-delay: 1.5s;
}

@keyframes haloExpand {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(1.45); opacity: 0; }
}

.finale-crest {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 55%, #b45309 100%);
  color: #090910;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 14px 36px rgba(245, 158, 11, 0.55),
    inset 0 2px 0 rgba(255, 255, 255, 0.65);
}

.finale-amount-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(245, 196, 81, 0.14);
  border: 1px solid rgba(245, 196, 81, 0.42);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-gold-bright);
  margin-bottom: 12px;
}

.finale-amount-pill strong {
  font-family: var(--font-display);
  font-size: 14px;
  color: #fff;
}

.finale-title {
  font-family: var(--font-display);
  font-size: clamp(1.32rem, 5.6vw, 1.78rem);
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 0%, #ffe699 60%, #f5c451 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

.finale-subtitle {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 18px;
  max-width: 340px;
}

/* Registration Receipt Card */
.registration-receipt-card {
  width: 100%;
  padding: 15px;
  border-radius: 18px;
  background: rgba(8, 8, 16, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
  margin-bottom: 16px;
}

.receipt-status-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 11px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6ee7b7;
}

.receipt-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

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

.receipt-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.receipt-label {
  font-size: 11px;
  color: var(--text-muted);
}

.receipt-value {
  font-size: 13px;
  color: var(--text-primary);
  word-break: break-word;
}

.mono-ticket {
  font-family: var(--font-mono);
  color: var(--accent-gold-bright);
  font-size: 13.5px;
}

.mono-time {
  font-family: var(--font-mono);
  font-size: 12px;
}

.receipt-value.status-ok {
  color: #34d399;
}

.finale-thankyou {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-gold-bright);
  margin-bottom: 18px;
}

.finale-actions {
  width: 100%;
  margin-top: auto;
}

.btn-finale-done {
  background: linear-gradient(135deg, #f5c451 0%, #d97706 100%);
  color: #090910;
  border-color: #fde68a;
  box-shadow:
    0 16px 34px -8px rgba(245, 196, 81, 0.5),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.65);
}

.finale-next-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 9px;
}

/* ==========================================================================
   MODALS, TOASTS & BANNERS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3, 3, 7, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
}

.modal-sheet {
  width: 100%;
  max-width: 450px;
  background: #11111e;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  padding: 14px 18px calc(var(--safe-bottom) + 20px);
  box-shadow: 0 -16px 50px rgba(0, 0, 0, 0.85);
  animation: sheetRise 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-sheet-large {
  max-height: 86dvh;
  display: flex;
  flex-direction: column;
}

@keyframes sheetRise {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-handle {
  width: 42px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 auto 14px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  margin-bottom: 4px;
}

.modal-title-group h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
}

.modal-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.modal-input-capsule {
  margin-bottom: 6px;
}

.modal-remember-row {
  margin: 12px 0 16px;
}

.modal-actions {
  margin-top: 12px;
}

.modal-dual-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.btn-secondary-glass {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-danger-glass {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(244, 63, 94, 0.45);
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* Legal Modal Tabs & Grid */
.legal-modal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 12px;
}

.legal-tab-btn {
  padding: 8px 10px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.legal-tab-btn.active {
  background: rgba(139, 92, 246, 0.28);
  color: #fff;
}

.modal-scroll-body {
  overflow-y: auto;
  max-height: 52dvh;
  padding-right: 4px;
}

.legal-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.legal-info-card {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.info-label {
  font-size: 11px;
  color: var(--text-muted);
}

.info-val {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-primary);
}

.gold-text {
  color: var(--accent-gold-bright);
  font-family: var(--font-display);
}

.legal-prose-box {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-secondary);
  white-space: pre-line;
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Network & Toast Notifications */
.network-banner {
  position: fixed;
  top: calc(var(--safe-top) + 8px);
  left: 16px;
  right: 16px;
  max-width: 430px;
  margin: 0 auto;
  z-index: 120;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(190, 18, 60, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.network-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}

.toast-container {
  position: fixed;
  top: calc(var(--safe-top) + 14px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  width: calc(100% - 32px);
  max-width: 410px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  padding: 12px 15px;
  border-radius: 15px;
  background: rgba(18, 18, 32, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65);
  animation: toastIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.toast-item.toast-success {
  border-color: rgba(16, 185, 129, 0.5);
}

.toast-item.toast-error {
  border-color: rgba(244, 63, 94, 0.55);
}

@keyframes toastIn {
  from { transform: translateY(-16px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* ==========================================================================
   SMALL MOBILE SCREENS (320px - 360px) & REDUCED MOTION
   ========================================================================== */
@media (max-width: 359px) {
  .app-shell {
    padding-left: 12px;
    padding-right: 12px;
  }
  .hero-prism-card {
    padding: 20px 12px 18px;
  }
  .hero-amount-3d {
    font-size: 2.15rem;
  }
  .qr-pure-frame {
    max-width: 230px;
  }
  .node-caption {
    font-size: 9px;
  }
}

/* ==========================================================================
   PROMOTER MANAGEMENT SYSTEM 2.0 — AUTH SCENE, CABINET & DIGITAL BADGES
   ========================================================================== */

.platform-scene {
  display: none;
  flex-direction: column;
  flex: 1;
  width: 100%;
  will-change: transform, opacity;
}

.platform-scene.active {
  display: flex;
}

/* ──────────────────────────────────────────────────────────────────────────
   SCENE 1: PREMIUM LOGIN SCENE («Добро пожаловать»)
   ────────────────────────────────────────────────────────────────────────── */
.auth-scene-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 0 16px;
}

.auth-hero-emblem-wrap {
  position: relative;
  width: 106px;
  height: 106px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 800px;
}

.auth-orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.auth-orbit-1 {
  inset: 0;
  border: 1.5px solid rgba(139, 92, 246, 0.45);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.28);
  animation: spinOrbitSlow 14s linear infinite;
}

.auth-orbit-2 {
  inset: 10px;
  border: 1.5px dashed rgba(245, 196, 81, 0.48);
  animation: spinOrbitSlow 20s linear infinite reverse;
}

@keyframes spinOrbitSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.auth-crest-3d {
  position: relative;
  z-index: 2;
  width: 78px;
  height: 78px;
  border-radius: 22px;
  background: radial-gradient(circle at 30% 25%, rgba(139, 92, 246, 0.55), rgba(16, 16, 30, 0.96));
  border: 1px solid rgba(245, 196, 81, 0.55);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.75),
    0 0 26px rgba(245, 196, 81, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--accent-gold-bright);
}

.auth-crest-25k {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, #ffe699 50%, #f5c451 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#form-platform-login .form-field-group {
  margin-bottom: 14px;
}

#form-platform-login .field-meta-row {
  margin-top: 5px;
}

.auth-crest-sub {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(233, 213, 255, 0.85);
  margin-top: 2px;
}

.auth-glass-vault {
  position: relative;
  padding: 26px 18px 22px;
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(130% 100% at 50% 0%, rgba(139, 92, 246, 0.24) 0%, rgba(236, 72, 153, 0.08) 42%, rgba(13, 13, 24, 0.94) 80%);
  border: 1px solid rgba(255, 255, 255, 0.17);
  box-shadow:
    0 28px 60px -14px rgba(0, 0, 0, 0.9),
    0 0 40px -10px rgba(139, 92, 246, 0.36),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  overflow: hidden;
}

.auth-head-block {
  text-align: center;
  margin-bottom: 20px;
}

.auth-platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(245, 196, 81, 0.12);
  border: 1px solid rgba(245, 196, 81, 0.36);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-gold-bright);
  margin-bottom: 10px;
}

.auth-welcome-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 6.2vw, 1.82rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 6px;
}

.auth-welcome-subtitle {
  font-size: 13.5px;
  line-height: 1.48;
  color: var(--text-secondary);
}

.password-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s ease, background 0.2s ease;
}

.password-toggle-btn:hover,
.password-toggle-btn:active {
  color: #fff;
  background: rgba(139, 92, 246, 0.25);
}

.auth-security-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
}

/* ──────────────────────────────────────────────────────────────────────────
   SCENE 2: PROMOTER PERSONAL CABINET («С возвращением, [Имя]!»)
   ────────────────────────────────────────────────────────────────────────── */
.cabinet-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px 13px;
  border-radius: var(--radius-xl);
  background: rgba(14, 14, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
}

.cabinet-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-gold-bright);
}

.cabinet-top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-control-center-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(245, 196, 81, 0.24), rgba(139, 92, 246, 0.28));
  border: 1px solid rgba(245, 196, 81, 0.5);
  color: var(--accent-gold-bright);
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.cabinet-greeting-block {
  margin-bottom: 14px;
}

.cabinet-greeting-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 5.6vw, 1.65rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 4px;
}

.cabinet-greeting-sub {
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* ──────────────────────────────────────────────────────────────────────────
   3D PERSONAL DIGITAL BADGE COMPONENT
   ────────────────────────────────────────────────────────────────────────── */
.digital-badge-card {
  position: relative;
  width: 100%;
  padding: 18px 16px 16px;
  border-radius: 24px;
  background: linear-gradient(155deg, #0d0d1a 0%, #1c1235 52%, #080811 100%);
  border: 1px solid rgba(245, 196, 81, 0.38);
  box-shadow:
    0 22px 48px -12px rgba(0, 0, 0, 0.85),
    0 0 32px -8px rgba(139, 92, 246, 0.35),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.28);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  transform-style: preserve-3d;
}

.digital-badge-card.theme-violet-cosmos {
  background: linear-gradient(155deg, #090718 0%, #24134e 52%, #070610 100%);
  border-color: rgba(167, 139, 250, 0.45);
}

.digital-badge-card.theme-ruby-cinema {
  background: linear-gradient(155deg, #14060d 0%, #3a0d22 52%, #090408 100%);
  border-color: rgba(255, 42, 109, 0.45);
}

.digital-badge-card.theme-emerald-cyber {
  background: linear-gradient(155deg, #051210 0%, #0c312b 52%, #040a09 100%);
  border-color: rgba(16, 185, 129, 0.45);
}

.digital-badge-card.is-compact {
  padding: 14px 12px;
  gap: 8px;
}

.badge-layer-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.badge-holo-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(36px);
}

.badge-holo-orb.orb-1 {
  width: 160px;
  height: 160px;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(245, 196, 81, 0.22);
}

.badge-holo-orb.orb-2 {
  width: 140px;
  height: 140px;
  bottom: -30px;
  right: -20px;
  background: rgba(139, 92, 246, 0.25);
}

.badge-holo-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
}

.badge-lanyard-slot {
  width: 54px;
  height: 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin: 6px auto 0;
}

.badge-layer-header {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.badge-campaign-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(245, 196, 81, 0.14);
  border: 1px solid rgba(245, 196, 81, 0.36);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-gold-bright);
}

.badge-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
}

.badge-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
}

.badge-status-pill.badge-st-active {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.badge-status-pill.badge-st-blocked {
  background: rgba(244, 63, 94, 0.18);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fda4af;
}

.badge-status-pill.badge-st-archived {
  background: rgba(148, 163, 184, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
}

.badge-status-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-layer-photo {
  position: relative;
  z-index: 2;
}

.badge-avatar-ring {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-violet), var(--accent-magenta));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.65);
}

.digital-badge-card.is-compact .badge-avatar-ring {
  width: 64px;
  height: 64px;
}

.badge-avatar-core {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #241744, #090912);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.badge-avatar-initials {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--accent-gold-bright);
}

.digital-badge-card.is-compact .badge-avatar-initials {
  font-size: 19px;
}

.badge-verified-seal {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  border: 2px solid #0d0d1a;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-layer-typo {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.badge-role-designation {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.badge-person-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.digital-badge-card.is-compact .badge-person-name {
  font-size: 15.5px;
}

.badge-collab-line {
  font-size: 11.5px;
  color: var(--text-muted);
}

.badge-layer-id {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(6, 6, 14, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.badge-id-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.badge-id-caption {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.badge-id-code {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-gold-bright);
}

.badge-holo-bars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 24px;
  opacity: 0.65;
}

.badge-holo-bars span {
  display: inline-block;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-gold), var(--accent-violet));
  border-radius: 2px;
}
.badge-holo-bars span:nth-child(even) {
  height: 65%;
  width: 3px;
}

/* Uploaded Badge Mode */
.badge-uploaded-frame {
  width: 100%;
  max-height: 250px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  padding: 6px;
}

.badge-uploaded-img {
  width: 100%;
  max-height: 238px;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

.badge-uploaded-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(6, 6, 14, 0.82);
}

.badge-uploaded-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.badge-uploaded-meta strong {
  font-size: 14px;
  color: #fff;
}

.badge-uploaded-meta span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-gold-bright);
}

.badge-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0 16px;
}

.btn-badge-util {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-badge-util:hover,
.btn-badge-util:active {
  background: rgba(139, 92, 246, 0.22);
  border-color: var(--accent-gold);
}

/* Personal Statistics Grid in Promoter Cabinet */
.cabinet-stats-section {
  margin-top: 16px;
}

.cabinet-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cabinet-section-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
}

.cabinet-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.cab-stat-card {
  padding: 13px 14px;
  border-radius: 18px;
  background: rgba(15, 15, 27, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.11);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cab-stat-card.card-gold { border-color: rgba(245, 196, 81, 0.35); }
.cab-stat-card.card-violet { border-color: rgba(139, 92, 246, 0.35); }
.cab-stat-card.card-emerald { border-color: rgba(16, 185, 129, 0.35); }
.cab-stat-card.card-magenta { border-color: rgba(236, 72, 153, 0.35); }

.cab-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.cab-stat-num {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
}

.cab-stat-sub {
  font-size: 10.5px;
  color: var(--text-muted);
}

.cab-verification-breakdown {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.cab-verif-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
}

.cab-verif-row strong {
  font-family: var(--font-mono);
  color: var(--accent-gold-bright);
}

/* 7-Day Mini Chart in Cabinet */
.cab-mini-chart-card {
  padding: 14px;
  border-radius: 18px;
  background: rgba(14, 14, 25, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cab-chart-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  align-items: end;
  height: 92px;
  padding-top: 14px;
}

.cab-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  height: 100%;
  justify-content: flex-end;
}

.cab-bar-val {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-gold-bright);
}

.cab-bar-track {
  width: 100%;
  max-width: 24px;
  height: 52px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.cab-bar-fill {
  width: 100%;
  border-radius: 7px;
  background: linear-gradient(180deg, var(--accent-gold), var(--accent-violet));
  transition: height 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.cab-bar-day {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-muted);
}

/* Stage 1 & 2 Badge Container inside QR Vault */
.qr-badge-view-container {
  width: 100%;
  padding: 4px 0;
}

.qr-disabled-notice {
  padding: 24px 16px;
  border-radius: 18px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px dashed rgba(244, 63, 94, 0.45);
  color: #fda4af;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.finale-dual-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* ==========================================================================
   PROMOTER CABINET — PERSONAL CONNECTED PARTICIPANTS LIST
   ========================================================================== */
.cab-my-participants-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cab-count-pill {
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(245, 196, 81, 0.22);
  border: 1px solid rgba(245, 196, 81, 0.42);
  color: var(--accent-gold-bright);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.cab-participants-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cab-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 14px;
  background: rgba(14, 14, 25, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.cab-search-box:focus-within {
  border-color: var(--accent-gold);
}

.cab-search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 14px;
}

.cab-clear-search {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
}

.cab-filters-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cab-select {
  width: 100%;
  min-height: 40px;
  padding: 8px 11px;
  border-radius: 12px;
  background: rgba(12, 12, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  outline: none;
}

.cab-export-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.cab-empty-participants {
  padding: 28px 16px;
  border-radius: 18px;
  background: rgba(14, 14, 25, 0.78);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  text-align: center;
}

.cab-empty-orb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(245, 196, 81, 0.14);
  color: var(--accent-gold);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.cab-empty-participants h3 {
  font-family: var(--font-display);
  font-size: 15px;
  margin-bottom: 5px;
}

.cab-empty-participants p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

.cab-participants-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cab-p-card {
  padding: 14px;
  border-radius: 18px;
  background: rgba(16, 16, 28, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.cab-p-card:hover {
  border-color: rgba(245, 196, 81, 0.42);
}

.cab-p-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cab-p-ticket-group {
  display: flex;
  align-items: center;
  gap: 7px;
}

.cab-p-serial {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(245, 196, 81, 0.16);
  color: var(--accent-gold-bright);
}

.cab-p-ticket {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.cab-p-pills {
  display: flex;
  align-items: center;
  gap: 5px;
}

.cab-p-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.cab-pill-ok {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
}

.cab-pill-dup {
  background: rgba(245, 196, 81, 0.18);
  color: var(--accent-gold-bright);
}

.cab-p-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  cursor: pointer;
}

.cab-p-name {
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
}

.cab-p-phone {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: #c4b5fd;
}

.cab-p-wish {
  padding: 9px 11px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  border-left: 3px solid var(--accent-gold);
  font-size: 12.5px;
  line-height: 1.42;
  color: var(--text-secondary);
  cursor: pointer;
}

.cab-p-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  padding-top: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cab-p-open-btn {
  background: none;
  border: none;
  color: var(--accent-gold-bright);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

/* Detail Modal inside Promoter Cabinet */
.cab-detail-body {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 16px;
}

.cab-detail-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cab-detail-label {
  font-size: 11px;
  color: var(--text-muted);
}

.cab-detail-val {
  font-size: 14.5px;
  color: #fff;
}

.cab-detail-wish {
  padding: 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--accent-gold);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-secondary);
}

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