/* =========================================================================
 * VoiceViet Studio Pro v6.0 — Cinematic Aurora Luxury Design System
 * Flagship Commercial AI Voice & Audiobook Mastering Console
 * ========================================================================= */

:root {
  --bg-void: #04060d;
  --bg-main: #060913;
  --bg-sidebar: rgba(10, 15, 29, 0.78);
  --bg-card: rgba(13, 19, 36, 0.76);
  --bg-card-elevated: rgba(18, 26, 48, 0.86);
  --bg-input: rgba(6, 10, 21, 0.88);
  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-highlight: rgba(168, 85, 247, 0.45);
  --specular-top: inset 0 1px 0 0 rgba(255, 255, 255, 0.10);
  --color-primary: #8b5cf6;
  --color-indigo: #6366f1;
  --color-cyan: #06b6d4;
  --color-emerald: #10b981;
  --color-amber: #f59e0b;
  --color-rose: #f43f5e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-main);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -15%, rgba(124, 58, 237, 0.22), transparent 70%),
    radial-gradient(ellipse 60% 45% at 100% 20%, rgba(6, 182, 212, 0.12), transparent 65%),
    radial-gradient(ellipse 55% 45% at 0% 85%, rgba(245, 158, 11, 0.09), transparent 65%);
  color: #f1f5f9;
  font-family: 'Be Vietnam Pro', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
  selection-background-color: rgba(139, 92, 246, 0.35);
}

::selection {
  background: rgba(139, 92, 246, 0.4);
  color: #ffffff;
}

.font-display {
  font-family: 'Plus Jakarta Sans', 'Be Vietnam Pro', sans-serif;
  letter-spacing: -0.02em;
}

/* =========================================================================
 * 1. ATMOSPHERIC AURORA & STUDIO ACOUSTIC GRID
 * ========================================================================= */
.bg-studio-grid {
  background-size: 36px 36px;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 35%, transparent 100%);
}

@keyframes auroraDrift1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.55; }
  50% { transform: translate3d(-45px, 30px, 0) scale(1.12); opacity: 0.8; }
}

@keyframes auroraDrift2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.45; }
  50% { transform: translate3d(40px, -35px, 0) scale(1.15); opacity: 0.7; }
}

@keyframes auroraDrift3 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.35; }
  50% { transform: translate3d(-25px, -30px, 0) scale(1.1); opacity: 0.6; }
}

.aurora-orb-1 {
  animation: auroraDrift1 16s ease-in-out infinite;
}

.aurora-orb-2 {
  animation: auroraDrift2 20s ease-in-out infinite;
}

.aurora-orb-3 {
  animation: auroraDrift3 18s ease-in-out infinite;
}

/* =========================================================================
 * 2. LUXURY SPECULAR GLASSMORPHISM CARDS
 * ========================================================================= */
.glass-panel {
  background: linear-gradient(165deg, rgba(19, 27, 50, 0.82) 0%, rgba(10, 15, 29, 0.88) 100%);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  border: 1px solid var(--border-subtle);
  box-shadow:
    var(--specular-top),
    0 20px 45px -15px rgba(0, 0, 0, 0.65),
    0 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}

.glass-panel:hover {
  border-color: rgba(139, 92, 246, 0.34);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.14),
    0 24px 55px -15px rgba(0, 0, 0, 0.75),
    0 0 28px -8px rgba(139, 92, 246, 0.18);
}

/* Cinematic Hero Showcase Banner */
.hero-aurora-banner {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(6, 182, 212, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 12% 85%, rgba(245, 158, 11, 0.15) 0%, transparent 45%),
    linear-gradient(135deg, rgba(30, 20, 68, 0.92) 0%, rgba(14, 21, 42, 0.94) 55%, rgba(11, 27, 44, 0.92) 100%);
  border: 1px solid rgba(168, 85, 247, 0.38);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.16),
    0 24px 60px -18px rgba(88, 28, 135, 0.45),
    0 12px 30px -10px rgba(0, 0, 0, 0.65);
}

.hero-aurora-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.7) 30%, rgba(192, 132, 252, 0.95) 50%, rgba(251, 191, 36, 0.75) 70%, transparent 100%);
  opacity: 0.85;
  pointer-events: none;
}

.feature-pill-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055) 0%, rgba(15, 23, 42, 0.65) 100%);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-pill-card:hover {
  transform: translateY(-3px);
  border-color: rgba(168, 85, 247, 0.55);
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.16) 0%, rgba(15, 23, 42, 0.82) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 26px -8px rgba(139, 92, 246, 0.35);
}

/* Voice Catalog Luxury Card Hover */
.voice-luxury-card {
  background: linear-gradient(165deg, rgba(19, 27, 49, 0.85) 0%, rgba(10, 15, 28, 0.92) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 10px 24px -10px rgba(0, 0, 0, 0.6);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.voice-luxury-card:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 18px 32px -10px rgba(0, 0, 0, 0.75);
}

/* =========================================================================
 * 3. SIDEBAR & MOBILE NAVIGATION TABS
 * ========================================================================= */
.nav-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border-radius: 13px;
  font-size: 12.5px;
  font-weight: 600;
  color: #94a3b8;
  border: 1px solid transparent;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  width: 100%;
  text-align: left;
  overflow: hidden;
}

.nav-tab:hover {
  color: #f8fafc;
  background: rgba(30, 41, 68, 0.55);
  border-color: rgba(148, 163, 184, 0.15);
}

.nav-tab.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.26) 0%, rgba(79, 70, 229, 0.20) 60%, rgba(6, 182, 212, 0.12) 100%);
  border-color: rgba(168, 85, 247, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 20px -6px rgba(139, 92, 246, 0.32);
}

.nav-tab.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #38bdf8, #c084fc, #fbbf24);
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.9);
}

.nav-icon-box {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.14);
  flex-shrink: 0;
  transition: all 0.22s ease;
}

.nav-tab:hover .nav-icon-box,
.nav-tab.active .nav-icon-box {
  background: rgba(139, 92, 246, 0.22);
  border-color: rgba(192, 132, 252, 0.45);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.28);
}

/* Compact horizontal mobile tabs */
.mobile-nav-strip .nav-tab {
  width: auto;
  white-space: nowrap;
  padding: 7px 12px;
  font-size: 12px;
  border-radius: 9999px;
  flex-shrink: 0;
}

.mobile-nav-strip .nav-tab.active::before {
  display: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* =========================================================================
 * 4. ENGINE SWITCHER CAPSULE
 * ========================================================================= */
.engine-tab {
  color: #94a3b8;
  border: 1px solid transparent;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.engine-tab:hover:not(.active) {
  color: #f8fafc;
  background-color: rgba(51, 65, 85, 0.45);
}

.engine-tab.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.92) 0%, rgba(13, 148, 136, 0.92) 100%);
  color: #ffffff;
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 6px 16px -3px rgba(16, 185, 129, 0.4);
}

.engine-tab.active.cheap-tts-active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.28) 0%, rgba(234, 88, 12, 0.28) 100%);
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 6px 16px -3px rgba(245, 158, 11, 0.3);
}

/* =========================================================================
 * 5. SHIMMER BUTTONS & COMMERCIAL PRICING GLOWS
 * ========================================================================= */
@keyframes shimmerSweep {
  0% { transform: translateX(-140%) skewX(-20deg); }
  55%, 100% { transform: translateX(240%) skewX(-20deg); }
}

.btn-aurora-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 48%, #0891b2 100%);
  border: 1px solid rgba(196, 181, 253, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 10px 28px -6px rgba(124, 58, 237, 0.55);
  transition: all 0.22s ease;
}

.btn-aurora-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 14px 34px -5px rgba(124, 58, 237, 0.72),
    0 0 20px rgba(6, 182, 212, 0.35);
}

.btn-aurora-primary::after,
.btn-gold-imperial::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  animation: shimmerSweep 4.2s ease-in-out infinite;
  pointer-events: none;
}

.btn-gold-imperial {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #ea580c 100%);
  border: 1px solid rgba(254, 243, 199, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 8px 24px -4px rgba(245, 158, 11, 0.45);
  transition: all 0.22s ease;
}

.btn-gold-imperial:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 12px 30px -4px rgba(245, 158, 11, 0.65);
}

/* Commercial Pricing Tier Cards */
.pricing-card-base {
  background: linear-gradient(170deg, rgba(19, 27, 49, 0.88) 0%, rgba(9, 13, 26, 0.94) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 36px -12px rgba(0, 0, 0, 0.65);
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.26s ease, border-color 0.26s ease;
}

.pricing-card-base:hover {
  transform: translateY(-5px);
}

.pricing-popular-card {
  background:
    radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.28) 0%, transparent 58%),
    linear-gradient(175deg, rgba(35, 21, 74, 0.92) 0%, rgba(11, 16, 32, 0.96) 100%);
  border: 1.5px solid rgba(168, 85, 247, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 22px 50px -12px rgba(139, 92, 246, 0.35);
}

.pricing-crown-card {
  background:
    radial-gradient(circle at 85% 0%, rgba(245, 158, 11, 0.26) 0%, transparent 55%),
    radial-gradient(circle at 15% 100%, rgba(236, 72, 153, 0.14) 0%, transparent 55%),
    linear-gradient(165deg, rgba(44, 26, 12, 0.90) 0%, rgba(14, 18, 35, 0.96) 60%, rgba(24, 15, 42, 0.95) 100%);
  border: 1.5px solid rgba(251, 191, 36, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(254, 243, 199, 0.25),
    0 24px 55px -12px rgba(245, 158, 11, 0.32);
}

/* =========================================================================
 * 6. TYPOGRAPHY GRADIENTS, ANIMATIONS & CONTROLS
 * ========================================================================= */
.text-gradient-aurora {
  background: linear-gradient(135deg, #ffffff 0%, #e9d5ff 35%, #67e8f9 72%, #fde68a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
  background: linear-gradient(135deg, #e9d5ff 0%, #c084fc 45%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-amber {
  background: linear-gradient(135deg, #fef08a 0%, #fbbf24 50%, #fb923c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* View Entrance Animation */
@keyframes viewReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-view:not(.hidden) {
  animation: viewReveal 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Neon Pulse when Speaking */
@keyframes pulseNeon {
  0%, 100% {
    box-shadow: 0 0 18px rgba(244, 63, 94, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  }
  50% {
    box-shadow: 0 0 32px rgba(244, 63, 94, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }
}

.speaking-active {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%) !important;
  border-color: rgba(253, 164, 175, 0.6) !important;
  animation: pulseNeon 1.8s infinite;
}

/* Visualizer Acoustic Deck */
.acoustic-stage {
  background:
    radial-gradient(ellipse 70% 90% at 50% 50%, rgba(139, 92, 246, 0.12) 0%, rgba(6, 9, 19, 0.96) 80%);
  box-shadow: inset 0 2px 14px rgba(0, 0, 0, 0.75);
}

#visualizer {
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.55));
}

/* Word highlight styling */
.highlight-word {
  background: linear-gradient(120deg, rgba(139, 92, 246, 0.38) 0%, rgba(6, 182, 212, 0.38) 100%);
  color: #fff;
  border-radius: 5px;
  padding: 1px 5px;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.45);
  transition: all 0.15s ease;
}

/* History item hover transition */
.history-item {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.history-item:hover {
  background-color: rgba(30, 41, 68, 0.78);
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateX(3px);
}

/* Custom Sleek Range Sliders */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.45), rgba(168, 85, 247, 0.45));
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f8fafc 0%, #c084fc 100%);
  border: 2px solid #7c3aed;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.7);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.18);
  box-shadow: 0 0 16px rgba(192, 132, 252, 0.95);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(6, 10, 21, 0.65);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.45), rgba(6, 182, 212, 0.4));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.8), rgba(6, 182, 212, 0.75));
}

/* Dialog & Modal Backdrop */
.modal-backdrop {
  background-color: rgba(4, 6, 14, 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
