/* ==========================================================================
   STUDIO SUR-MESURE - HAUTE ONGLES & MANUCURE ROYALE (LA CIOTAT)
   Haute-Couture Boudoir Aesthetic • Velvet & Champagne Gold Luxury Identity
   ========================================================================== */

.visualizer-section {
  background: radial-gradient(ellipse at 50% 15%, rgba(38, 28, 35, 0.45) 0%, var(--bg-darkest) 70%);
  position: relative;
  padding: clamp(32px, 4.5vh, 60px) 0 clamp(60px, 8vh, 100px);
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  overflow: hidden;
  scroll-margin-top: 70px;
}

.visualizer-ambient-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 950px;
  height: 950px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, rgba(230, 206, 145, 0.03) 45%, transparent 70%);
  pointer-events: none;
  filter: blur(80px);
}

.visualizer-section .container {
  max-width: 1440px;
}

.visualizer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 48px);
  align-items: start;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
}

/* ==========================================================================
   L'ALCÔVE ROYALE - BOUDOIR ARCHED MIRROR DISPLAY (LEFT STAGE)
   ========================================================================== */
.visualizer-stage-card {
  background: linear-gradient(165deg, rgba(26, 20, 25, 0.94) 0%, rgba(12, 10, 13, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 200px 200px 32px 32px;
  padding: clamp(20px, 2.5vw, 32px);
  position: sticky;
  top: 90px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 50px rgba(212, 175, 55, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  overflow: hidden;
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.visualizer-stage-card::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 195px 195px 28px 28px;
  border: 1px solid rgba(212, 175, 55, 0.12);
  pointer-events: none;
}

/* Candlelight Warmth Backdrop behind Hand */
.stage-lighting-spot {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(255, 238, 205, 0.18) 0%, rgba(212, 175, 55, 0.06) 50%, transparent 72%);
  pointer-events: none;
  border-radius: 50%;
  filter: blur(45px);
  transition: transform 0.4s ease;
}

/* Arched Canvas Container for Hand Flatlay */
.hand-preview-container {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1200 / 896;
  height: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 170px 170px 22px 22px;
  overflow: hidden;
  background: #09080A;
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.95), 0 20px 50px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.22);
}

/* Photorealistic Studio Layer */
.vis-photo-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
}

.vis-photo-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.04) brightness(0.97);
  transition: opacity 0.4s ease;
}

.vis-photo-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* View Mode Pills (Main 5 Doigts / Zoom Macro) */
.stage-top-controls {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
  z-index: 5;
}

.view-mode-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(18, 14, 18, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: var(--radius-pill);
  padding: 3px;
  backdrop-filter: blur(16px);
  gap: 4px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.view-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.view-mode-btn i {
  width: 13px;
  height: 13px;
}

.view-mode-btn:hover {
  color: var(--text-white);
}

.view-mode-btn.active {
  background: var(--gradient-gold);
  color: #0b090c;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.35);
}

/* Finger Target Selector Bar */
.finger-selector-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 14px;
  z-index: 5;
  flex-wrap: wrap;
}

.finger-bar-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-champagne);
  white-space: nowrap;
}

.finger-pill-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  background: rgba(18, 14, 18, 0.94);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-pill);
  padding: 3px;
  backdrop-filter: blur(14px);
  gap: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.finger-pill-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.finger-pill-btn i {
  width: 12px;
  height: 12px;
}

.finger-pill-btn:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.06);
}

.finger-pill-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.35) 0%, rgba(212, 175, 55, 0.15) 100%);
  color: var(--gold-light);
  border-color: rgba(212, 175, 55, 0.55);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.25);
}

/* Active Finger Notification Banner */
.active-finger-banner {
  margin-top: 12px;
  padding: 6px 16px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-pill);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeIn 0.3s ease;
}

.active-finger-banner.hidden {
  display: none !important;
}

/* ==========================================================================
   PANEL DES CHOIX - CURATED BOUDOIR CARDS (RIGHT SIDE)
   ========================================================================== */
.visualizer-controls-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

/* Top Playful Bar: Inspirez-moi & Harmoniser */
.vis-playful-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.vis-inspire-btn {
  flex: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22) 0%, rgba(212, 175, 55, 0.08) 100%);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: var(--radius-pill);
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.vis-inspire-btn:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.38) 0%, rgba(212, 175, 55, 0.18) 100%);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.25);
}

.vis-reset-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.vis-reset-all-btn:hover {
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Trending Presets Haute Beauté Grid/Carousel */
.vis-trends-wrapper {
  background: linear-gradient(135deg, rgba(26, 20, 25, 0.95) 0%, rgba(14, 11, 14, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 20px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(212, 175, 55, 0.15);
}

.vis-trends-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vis-trends-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-champagne);
}

.vis-trends-subhint {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
}

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

@media (max-width: 900px) {
  .vis-trends-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    gap: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.3) transparent;
  }
}

.trend-pill-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  user-select: none;
  min-width: 110px;
  scroll-snap-align: start;
}

.trend-pill-btn:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.trend-pill-btn.active {
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.24) 0%, rgba(212, 175, 55, 0.08) 100%);
  border: 1.5px solid var(--gold-champagne);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.35), inset 0 0 12px rgba(212, 175, 55, 0.12);
  transform: translateY(-1px);
}

.trend-pill-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.trend-swatch-gem {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  display: inline-block;
  flex-shrink: 0;
}

.trend-pill-btn.active .trend-swatch-gem {
  border-color: #FFF;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}

.trend-check-icon {
  opacity: 0;
  color: var(--gold-champagne);
  transition: opacity 0.2s ease;
}

.trend-pill-btn.active .trend-check-icon {
  opacity: 1;
}

.trend-pill-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.2;
}

.trend-pill-badge {
  font-size: 0.67rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.trend-pill-btn.active .trend-pill-name {
  color: var(--gold-light);
}

.trend-pill-btn.active .trend-pill-badge {
  color: var(--gold-champagne);
  font-weight: 600;
}

/* Individual Option Groups: Organic Boudoir Cards */
.vis-group {
  background: linear-gradient(145deg, rgba(26, 21, 26, 0.85) 0%, rgba(15, 12, 16, 0.94) 100%);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 22px;
  padding: 18px 22px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.vis-group:hover {
  border-color: rgba(212, 175, 55, 0.38);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.06);
}

.vis-group-title {
  font-family: var(--font-royal);
  font-size: 1.05rem;
  color: var(--text-white);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.vis-group-current {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--gold-champagne);
  font-weight: 600;
  font-style: italic;
}

/* 1. Shapes Selector: Fine Jewelry Vector Silhouettes */
.shape-selector-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.shape-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 10px 4px 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.shape-svg-icon {
  width: 24px;
  height: 34px;
  stroke: var(--gold-champagne);
  stroke-width: 1.7;
  fill: rgba(212, 175, 55, 0.05);
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.65;
  transition: all var(--transition-fast);
}

.shape-btn:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.35);
  color: var(--text-white);
  transform: translateY(-2px);
}

.shape-btn:hover .shape-svg-icon {
  opacity: 1;
  stroke: var(--gold-light);
  fill: rgba(212, 175, 55, 0.18);
  transform: scale(1.05);
}

.shape-btn.active {
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0.08) 100%);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.22);
}

.shape-btn.active .shape-svg-icon {
  opacity: 1;
  stroke: var(--gold-light);
  fill: rgba(212, 175, 55, 0.32);
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.45));
}

/* 2. Length Selector: Satin Pills */
.length-selector-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.length-btn {
  padding: 9px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.length-btn:hover {
  color: var(--text-white);
  border-color: rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.06);
}

.length-btn.active {
  background: var(--gradient-gold);
  color: #0b090c;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(212, 175, 55, 0.35);
}

/* 3. Colors Palette: 3D Convex Enamel Lacquer Drops */
.color-swatches-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 6px 2px;
}

.color-swatch-btn {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55), inset 0 2px 4px rgba(255, 255, 255, 0.5);
  cursor: pointer;
  position: relative;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

/* 3D Convex Gloss Highlight Reflection on Cabochon */
.color-swatch-btn::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 14px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.color-swatch-btn:hover {
  transform: translateY(-3px) scale(1.18);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.65), 0 0 14px rgba(212, 175, 55, 0.5);
}

.color-swatch-btn.active {
  transform: scale(1.24);
  border: 2.5px solid var(--gold-light);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.45), 0 8px 20px rgba(0, 0, 0, 0.75), 0 0 18px rgba(212, 175, 55, 0.7);
}

/* 4. Finishes Selector (Gloss, Matte, Glaze) */
.finish-selector-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.finish-btn, .accent-btn {
  padding: 9px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  transition: all var(--transition-fast);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.finish-btn i, .accent-btn i {
  width: 13px;
  height: 13px;
}

.finish-btn:hover, .accent-btn:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.3);
  color: var(--text-white);
  transform: translateY(-1px);
}

.finish-btn.active, .accent-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0.08) 100%);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

/* 5. Art & Ornaments Grid */
.art-overlay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.art-overlay-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.art-overlay-btn i {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--gold-champagne);
}

.art-overlay-btn:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.3);
  color: var(--text-white);
  transform: translateY(-1px);
}

.art-overlay-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0.08) 100%);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

/* ==========================================================================
   BARRE D'ACTION & ESTIMATION HAUTE COUTURE (BOTTOM)
   ========================================================================== */
.visualizer-action-bar {
  background: linear-gradient(145deg, rgba(26, 20, 26, 0.95) 0%, rgba(14, 11, 15, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 22px;
  padding: 20px 24px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.65), 0 0 25px rgba(212, 175, 55, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-top: 8px;
}

.vis-price-tag {
  display: flex;
  flex-direction: column;
}

.vis-price-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  font-weight: 600;
}

.vis-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.vis-price-amount {
  font-family: var(--font-royal);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.vis-cash-note {
  font-size: 0.76rem;
  color: var(--gold-champagne);
  font-weight: 600;
  opacity: 0.9;
}

.vis-action-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.vis-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-pill);
  color: var(--gold-light);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.vis-download-btn i {
  width: 15px;
  height: 15px;
}

.vis-download-btn:hover {
  background: rgba(212, 175, 55, 0.14);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25);
}

/* ==========================================================================
   INTERACTIVE SVG NAILS (ON FLATLAY PHOTO)
   ========================================================================== */
.nail-interactive-group {
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.nail-interactive-group:hover path:first-of-type {
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.75));
}

.nail-interactive-group.active-finger .active-finger-halo {
  animation: pulseGoldHalo 2s infinite ease-in-out;
}

@keyframes pulseGoldHalo {
  0%, 100% { stroke-opacity: 0.85; stroke-width: 2.6px; }
  50% { stroke-opacity: 0.35; stroke-width: 3.4px; }
}

/* ==========================================================================
   DIRECT EXPORT MICRO-INTERACTIONS & SUCCESS STATES
   ========================================================================== */
.vis-download-btn {
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.vis-download-btn.btn-exporting {
  opacity: 0.85;
  cursor: wait;
  border-color: var(--gold-primary);
}

.vis-download-btn.btn-success-glint {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(212, 175, 55, 0.35) 100%) !important;
  border-color: rgba(212, 175, 55, 0.85) !important;
  color: var(--gold-light) !important;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.4), 0 0 10px rgba(34, 197, 94, 0.3) !important;
  transform: translateY(-2px) scale(1.02);
  animation: downloadPulseSuccess 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes downloadPulseSuccess {
  0% { transform: scale(0.96); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1.02); }
}

.spin-icon {
  animation: spinLoader 0.85s linear infinite;
  display: inline-block;
}

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

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET ADAPTATION)
   ========================================================================== */
@media (max-width: 1024px) {
  .visualizer-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    width: 100%;
    max-width: 100%;
  }

  .visualizer-stage-card,
  .visualizer-controls-panel {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .vis-trends-wrapper {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }

  .vis-trends-scroll {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .visualizer-stage-card {
    position: relative;
    top: 0;
    border-radius: 140px 140px 24px 24px;
    padding: 20px;
  }

  .hand-preview-container {
    border-radius: 120px 120px 18px 18px;
  }

  .shape-selector-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .art-overlay-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .visualizer-action-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .vis-action-buttons {
    flex-direction: column;
    width: 100%;
  }

  .vis-action-buttons .btn,
  .vis-action-buttons .vis-download-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .visualizer-stage-card {
    border-radius: 90px 90px 20px 20px;
    padding: 14px 10px 18px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .visualizer-stage-card::before {
    inset: 3px;
    border-radius: 87px 87px 17px 17px;
  }

  .stage-lighting-spot {
    width: 280px;
    height: 280px;
    filter: blur(35px);
  }

  .stage-top-controls {
    width: 100%;
    margin-bottom: 10px;
  }

  .view-mode-pill {
    width: 100%;
    max-width: 320px;
    display: flex;
    justify-content: stretch;
    box-sizing: border-box;
    padding: 3px;
  }

  .view-mode-btn {
    flex: 1 1 50%;
    justify-content: center;
    padding: 6px 6px;
    font-size: 0.72rem;
    gap: 5px;
    white-space: nowrap;
  }

  .view-mode-btn span {
    font-size: 0.72rem;
  }

  .finger-selector-bar {
    width: 100%;
    max-width: 100%;
    margin-bottom: 12px;
    flex-direction: column;
    gap: 6px;
    align-items: center;
  }

  .finger-bar-label {
    font-size: 0.68rem;
  }

  .finger-pill-group {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 6px;
    gap: 4px;
    justify-content: flex-start;
    border-radius: var(--radius-pill);
  }

  .finger-pill-group::-webkit-scrollbar {
    display: none;
  }

  .finger-pill-btn {
    padding: 4px 10px;
    font-size: 0.7rem;
    flex-shrink: 0;
  }

  .hand-preview-container {
    width: 100%;
    max-width: 100%;
    border-radius: 80px 80px 14px 14px;
    box-sizing: border-box;
  }

  .shape-selector-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
  }

  .shape-btn {
    padding: 6px 2px;
    font-size: 0.68rem;
  }

  .shape-svg-icon {
    width: 18px;
    height: 26px;
  }

  .color-swatches-grid {
    gap: 10px;
    justify-content: center;
  }

  .color-swatch-btn {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }

  .length-selector-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .finish-selector-row {
    grid-template-columns: 1fr;
  }

  .art-overlay-grid {
    grid-template-columns: 1fr;
  }

  .vis-playful-bar {
    flex-direction: column;
  }

  .vis-inspire-btn, .vis-reset-all-btn {
    width: 100%;
  }
}
