/* ==========================================================================
   VOCALIS AI STUDIO - ELEVENLABS & OPENAI CLASS LUXURY SAAS DESIGN SYSTEM
   ========================================================================== */

:root {
  --bg-base: #07090e;
  --bg-surface: #0e121d;
  --bg-surface-elevated: #141b2c;
  --bg-glass: rgba(14, 18, 29, 0.75);
  --bg-glass-hover: rgba(22, 28, 44, 0.9);
  --bg-input: #090c14;
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-active: #8b5cf6;
  --border-gold: rgba(245, 158, 11, 0.4);
  
  --primary: #8b5cf6;
  --primary-hover: #7c3aed;
  --primary-glow: rgba(139, 92, 246, 0.35);
  --accent: #06b6d4;
  --accent-gold: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', var(--font-sans);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --shadow-card: 0 20px 50px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--border-subtle);
  --shadow-glow: 0 0 30px var(--primary-glow);
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-base);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(139, 92, 246, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(245, 158, 11, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.studio-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(7, 9, 14, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
}

.brand-name span {
  font-weight: 400;
  color: var(--text-secondary);
}

.mode-selector-nav {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.mode-nav-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition);
}

.mode-nav-btn.active {
  background: linear-gradient(135deg, var(--primary), #6d28d9);
  color: white;
  box-shadow: 0 2px 10px var(--primary-glow);
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quota-pill {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c4b5fd;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.credits-pill-badge {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-pro-cta {
  background: linear-gradient(135deg, #f59e0b 0%, #ec4899 50%, #8b5cf6 100%);
  border: none;
  color: white;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 2px 15px rgba(245, 158, 11, 0.35);
  transition: var(--transition);
}

.btn-pro-cta:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.5);
}

.btn-header-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.btn-header-ghost:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

/* Google Sign-in Button */
.btn-google-auth {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
}

.btn-google-auth:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* User Profile Widget & Dropdown */
.user-profile-menu-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.user-profile-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-medium);
  padding: 0.3rem 0.65rem 0.3rem 0.35rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  color: var(--text-main);
  transition: var(--transition);
}

.user-profile-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary);
}

.user-avatar-img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.user-avatar-fallback {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-display-name {
  font-size: 0.8rem;
  font-weight: 600;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 230px;
  background: #0e121d;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--border-subtle);
  padding: 0.65rem;
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  z-index: 1000;
  animation: slideDown 0.18s ease-out;
}

.user-dropdown-menu.open {
  display: flex;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-user-info {
  padding: 0.4rem 0.5rem;
}

.dropdown-user-email {
  font-size: 0.75rem;
  color: var(--text-secondary);
  word-break: break-all;
  margin-bottom: 0.25rem;
}

.dropdown-user-plan-badge {
  display: inline-block;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid var(--border-active);
  color: #c4b5fd;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
}

.dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0.2rem 0;
}

.dropdown-menu-item {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-align: left;
  transition: var(--transition);
}

.dropdown-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.dropdown-menu-item.danger {
  color: #f87171;
}

.dropdown-menu-item.danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

/* Toast styling for auth feedback */
.studio-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(14, 18, 29, 0.95);
  border: 1px solid var(--border-active);
  backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  z-index: 9999;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.25s ease;
}

.studio-toast.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ==========================================================================
   STUDIO MAIN WORKSPACE
   ========================================================================== */
.studio-layout {
  max-width: 1320px;
  width: 100%;
  margin: 1.5rem auto 3rem;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Studio Editor Main Card */
.editor-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* Top Toolbar over the editor */
.editor-toolbar {
  padding: 0.85rem 1.25rem;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.toolbar-left-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Active Voice Pill Selector (ElevenLabs Style) */
.voice-selector-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-medium);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  transition: var(--transition);
}

.voice-selector-pill {
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
}

.voice-selector-pill * {
  pointer-events: none;
}

.voice-selector-pill:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.voice-pill-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: white;
}

.voice-pill-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.voice-pill-tag {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
}

.voice-pill-tag.pro {
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  color: white;
}

/* Quick Dropdown Pills (Speed, Style, Language, BGM) */
.quick-pill-select {
  background: #141b2c;
  border: 1px solid var(--border-medium);
  color: #f8fafc;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
  transition: var(--transition);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

.quick-pill-select:hover {
  border-color: var(--primary);
  background-color: #1a233a;
  color: #ffffff;
}

.quick-pill-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

/* Explicit styling for select dropdown options across all browsers */
select option {
  background-color: #0e121d !important;
  color: #f8fafc !important;
  padding: 10px 14px !important;
  font-size: 0.88rem;
}

select option:hover,
select option:focus,
select option:checked {
  background-color: #7c3aed !important;
  color: #ffffff !important;
}

/* Filter Selects */
.filter-select {
  background: #141b2c;
  border: 1px solid var(--border-medium);
  color: #f8fafc;
  font-family: var(--font-sans);
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  outline: none;
}

.filter-select option {
  background-color: #0e121d !important;
  color: #f8fafc !important;
}

.toolbar-right-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Big Distraction-Free Textarea Workspace */
.editor-workspace {
  position: relative;
  padding: 1.5rem;
}

.studio-textarea {
  width: 100%;
  min-height: 200px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.75;
  outline: none;
  resize: vertical;
}

.studio-textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 400;
}

/* Character quota progress indicator */
.char-quota-pill {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #c4b5fd;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.char-quota-pill.warning {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

/* Bottom Editor Footer */
.editor-footer-bar {
  padding: 0.9rem 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-stats-group {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.footer-stats-group span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-generate-hero {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #06b6d4 100%);
  background-size: 200% auto;
  border: none;
  color: white;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 20px var(--primary-glow);
  transition: var(--transition);
}

.btn-generate-hero:hover {
  background-position: right center;
  transform: translateY(-1px);
  box-shadow: 0 6px 25px var(--primary-glow);
}

.btn-generate-hero:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-generate-hero .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ==========================================================================
   AUDIO MONITOR & MASTER PLAYBACK DOCK
   ========================================================================== */
.audio-monitor-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.monitor-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.monitor-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
}

.waveform-box {
  width: 100%;
  height: 80px;
  background: #090c14;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

#waveformCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.scrubber-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.scrub-bar {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.scrub-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  cursor: pointer;
}

.time-readout {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-family: monospace;
  color: var(--text-muted);
}

/* Master Player Controls & Exports Row */
.player-controls-export-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.player-core-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-master-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 12px var(--primary-glow);
  transition: var(--transition);
}

.btn-master-play:hover {
  transform: scale(1.06);
}

.btn-tool-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-tool-icon:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.export-button-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-capcut-zip {
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #06b6d4 100%);
  border: none;
  color: white;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 2px 12px rgba(236, 72, 153, 0.35);
  transition: var(--transition);
}

.btn-capcut-zip:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(236, 72, 153, 0.5);
}

.btn-export-badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-export-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: var(--border-medium);
}

.btn-export-badge.active {
  background: linear-gradient(135deg, var(--primary), #6d28d9);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 10px var(--primary-glow);
}

.btn-export-badge.indian-lang-chip {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.06);
  color: #fef08a;
}

.btn-export-badge.indian-lang-chip:hover {
  background: rgba(245, 158, 11, 0.18);
  border-color: #f59e0b;
  color: #ffffff;
}

.btn-export-badge.indian-lang-chip.active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-color: #f59e0b;
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.4);
}

/* Real-time Karaoke Subtitle Banner */
.live-karaoke-banner {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.live-karaoke-banner .highlighted-cue {
  color: white;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(6, 182, 212, 0.25));
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  border-left: 3px solid var(--accent);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

/* ==========================================================================
   VOICE SELECTION CATALOG MODAL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.open {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.modal-card {
  background: #0f1320;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.9);
  width: 100%;
  max-width: 860px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-card {
  transform: translateY(0);
}

.modal-header {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
}

.modal-search-bar {
  padding: 0.85rem 1.5rem;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
}

.search-input-wrapper input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  padding: 0.6rem 1rem 0.6rem 2.4rem;
  font-size: 0.88rem;
  outline: none;
}

.search-input-wrapper input:focus {
  border-color: var(--primary);
}

.search-icon-pos {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* Prominent Language Category Boxes Row */
.modal-lang-boxes-row {
  padding: 10px 1.5rem;
  display: flex !important;
  align-items: center !important;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  min-height: 56px !important;
  height: 56px !important;
  scrollbar-width: thin;
  scrollbar-color: #f59e0b rgba(0, 0, 0, 0.4);
  background: #0f172a !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-sizing: border-box !important;
}

.modal-lang-boxes-row::-webkit-scrollbar {
  height: 6px;
}

.modal-lang-boxes-row::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.4);
}

.modal-lang-boxes-row::-webkit-scrollbar-thumb {
  background: #f59e0b;
  border-radius: 4px;
}

.lang-box-card {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 36px !important;
  line-height: 36px !important;
  gap: 6px;
  flex-shrink: 0 !important;
  padding: 0 14px !important;
  background: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 8px !important;
  color: #e2e8f0 !important;
  font-family: var(--font-sans);
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer;
  white-space: nowrap !important;
  transition: all 0.15s ease;
  user-select: none;
  box-sizing: border-box !important;
}

.lang-box-card:hover {
  background: #334155 !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.lang-box-card.indian {
  background: rgba(245, 158, 11, 0.12) !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  color: #fbbf24 !important;
  font-weight: 700 !important;
}

.lang-box-card.indian:hover {
  background: rgba(245, 158, 11, 0.25) !important;
  border-color: #f59e0b !important;
  color: #ffffff !important;
}

.lang-box-card.free-tier {
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  color: #34d399 !important;
  font-weight: 700 !important;
}

.lang-box-card.active {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  border-color: #f59e0b !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.6) !important;
  transform: scale(1.02);
}

.lang-box-card.active.free-tier {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6) !important;
}

.modal-voice-grid {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (max-width: 650px) {
  .modal-voice-grid {
    grid-template-columns: 1fr;
  }
}

.modal-voice-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition);
}

.modal-voice-item:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--border-active);
}

.modal-voice-item.selected {
  background: rgba(139, 92, 246, 0.18);
  border-color: var(--primary);
}

/* Multi-Scene Dialogue Studio Styles */
.scenes-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.scene-card {
  background: rgba(14, 18, 28, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  position: relative;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.scene-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.scene-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.scene-speaker-badge {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.speaker-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  outline: none;
  width: 130px;
  transition: var(--transition);
}

.speaker-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.scene-voice-select-btn {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid var(--border-active);
  color: #c4b5fd;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scene-voice-select-btn:hover {
  background: rgba(139, 92, 246, 0.25);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Explicit Dark Theme for Dialogue Textarea */
.scene-card textarea.script-textarea,
.script-textarea {
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid var(--border-subtle) !important;
  color: #ffffff !important;
  font-family: var(--font-sans) !important;
  font-size: 0.98rem !important;
  font-weight: 500 !important;
  line-height: 1.65 !important;
  padding: 0.85rem !important;
  border-radius: var(--radius-sm) !important;
  outline: none !important;
  resize: vertical !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: var(--transition);
}

.scene-card textarea.script-textarea::placeholder,
.script-textarea::placeholder {
  color: rgba(255, 255, 255, 0.35) !important;
  font-weight: 400 !important;
}

.scene-card textarea.script-textarea:focus,
.script-textarea:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px var(--primary-glow) !important;
  background: rgba(0, 0, 0, 0.55) !important;
}

.scene-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.scene-stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
  padding: 0 0.2rem;
}

.scene-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.4rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.btn-add-scene {
  width: 100%;
  background: rgba(139, 92, 246, 0.05);
  border: 1px dashed var(--border-active);
  color: #c4b5fd;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.9rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.btn-add-scene:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--primary);
  color: white;
}

/* Paywall Modal */
.paywall-modal-card {
  max-width: 700px;
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.12) 0%, #0d111d 70%);
  border: 1px solid var(--border-gold);
}

.paywall-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: calc(88vh - 65px);
}

.paywall-hero {
  text-align: center;
}

.paywall-hero h2 {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #fde68a 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.paywall-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem;
}

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

.paywall-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.paywall-feature-item svg {
  color: #10b981;
}

.pricing-plans-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 600px) {
  .pricing-plans-row {
    grid-template-columns: 1fr;
  }
}

.pricing-plan-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  position: relative;
}

.pricing-plan-card.popular {
  border-color: #f59e0b;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(236, 72, 153, 0.05) 100%);
}

.plan-badge-top {
  position: absolute;
  top: -10px;
  right: 12px;
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

.btn-select-plan {
  width: 100%;
  margin-top: 1rem;
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  border: none;
  color: white;
  font-weight: 700;
  padding: 0.7rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.9rem;
}

/* History Drawer */
.history-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  height: 100vh;
  background: #0d111c;
  border-left: 1px solid var(--border-subtle);
  z-index: 90;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.75);
  transition: right 0.25s ease;
}

.history-drawer.open {
  right: 0;
}

.history-header {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.history-list {
  padding: 1rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.history-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ==========================================================================
   COMPREHENSIVE MOBILE & TABLET RESPONSIVENESS SYSTEM (360px - 1024px)
   ========================================================================== */

/* Tablet & Mobile Adjustments (<= 992px) */
@media (max-width: 992px) {
  .studio-header {
    padding: 0.65rem 1rem;
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .studio-layout {
    margin: 1rem auto 2rem;
    padding: 0 1rem;
    gap: 1.15rem;
  }

  .editor-toolbar {
    padding: 0.75rem 1rem;
    gap: 0.6rem;
  }

  .player-controls-export-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .player-core-group {
    justify-content: center;
  }

  .export-button-group {
    justify-content: center;
  }
}

/* Smartphone & Small Screen Adjustments (<= 768px) */
@media (max-width: 768px) {
  .studio-header {
    padding: 0.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .studio-header > div:first-child,
  .brand-wrapper {
    justify-content: space-between;
    width: 100%;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
  }

  .mode-selector-nav {
    width: 100%;
    display: flex;
  }

  .mode-nav-btn {
    flex: 1;
    justify-content: center;
    padding: 0.35rem 0.6rem;
    font-size: 0.78rem;
  }

  .header-right-actions {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .quota-pill,
  .credits-pill-badge {
    padding: 0.3rem 0.6rem;
    font-size: 0.72rem;
  }

  .btn-pro-cta {
    padding: 0.35rem 0.85rem;
    font-size: 0.78rem;
    flex: 1;
    justify-content: center;
  }

  .btn-header-ghost {
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
  }

  /* Main Workspace */
  .studio-layout {
    padding: 0 0.6rem;
    margin: 0.75rem auto 1.5rem;
  }

  .editor-card {
    border-radius: var(--radius-md);
  }

  .editor-toolbar {
    padding: 0.65rem 0.75rem;
  }

  .toolbar-left-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .voice-selector-pill {
    width: 100%;
    justify-content: space-between;
    padding: 0.45rem 0.85rem;
  }

  .quick-pill-select {
    width: 100%;
    font-size: 0.8rem;
    padding: 0.45rem 0.8rem;
  }

  .toolbar-right-group {
    width: 100%;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-subtle);
    padding-top: 0.5rem;
    margin-top: 0.25rem;
  }

  .toolbar-right-group .btn-header-ghost {
    flex: 1;
    justify-content: center;
  }

  /* Textarea */
  .editor-workspace {
    padding: 1rem 0.75rem;
  }

  .studio-textarea {
    min-height: 160px;
    font-size: 1.02rem;
    line-height: 1.65;
  }

  /* Footer bar */
  .editor-footer-bar {
    padding: 0.75rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .footer-stats-group {
    width: 100%;
    justify-content: space-between;
    font-size: 0.75rem;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .btn-generate-hero {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }

  /* Audio Monitor */
  .audio-monitor-card {
    padding: 1rem 0.75rem;
    border-radius: var(--radius-md);
  }

  .waveform-box {
    height: 65px;
  }

  .btn-capcut-zip {
    width: 100%;
    justify-content: center;
    font-size: 0.8rem;
    padding: 0.6rem 0.85rem;
  }

  .export-button-group {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .export-button-group .btn-export-badge {
    flex: 1;
    text-align: center;
    padding: 0.4rem 0.4rem;
    font-size: 0.72rem;
  }

  /* Voice Catalog Modal on Mobile */
  .modal-backdrop {
    padding: 0.5rem;
  }

  .modal-card {
    max-height: 92vh;
    border-radius: var(--radius-md);
  }

  .modal-header {
    padding: 0.85rem 1rem;
  }

  .modal-search-bar {
    padding: 0.65rem 1rem;
  }

  .modal-lang-chips-bar {
    padding: 0.5rem 1rem 0;
    gap: 0.35rem;
  }

  .modal-voice-grid {
    grid-template-columns: 1fr;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  .modal-voice-item {
    padding: 0.65rem 0.75rem;
  }

  /* Paywall Modal on Mobile */
  .paywall-body {
    padding: 1.15rem;
    gap: 1.15rem;
    max-height: calc(92vh - 65px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .paywall-hero h2 {
    font-size: 1.35rem;
  }

  .paywall-features-grid {
    grid-template-columns: 1fr;
    padding: 0.85rem;
    gap: 0.55rem;
  }

  .pricing-plans-row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .pricing-plan-card {
    padding: 1rem;
  }

  /* Multi-Scene Studio on Mobile */
  .scene-card {
    padding: 0.85rem;
  }

  .scene-card-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .scene-speaker-badge {
    width: 100%;
    justify-content: space-between;
  }

  .speaker-input {
    width: 105px;
    font-size: 0.8rem;
  }

  .scene-voice-select-btn {
    font-size: 0.75rem;
    max-width: 160px;
    padding: 0.3rem 0.55rem;
  }

  .scene-actions {
    justify-content: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.35rem;
  }

  .scene-controls-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    padding: 0.5rem;
  }

  .scene-controls-row > div {
    width: 100%;
    justify-content: space-between;
  }

  /* History Drawer on Mobile */
  .history-drawer {
    width: 100%;
    right: -100%;
  }

  /* Landing Grid on Mobile */
  .features-cards-grid {
    grid-template-columns: 1fr;
  }

  .landing-pricing-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-links-group {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* ==========================================================================
   LANDING SECTIONS DESIGN SYSTEM (FEATURES, SHOWCASE, PRICING, FAQ, FOOTER)
   ========================================================================== */
.section-title-wrap {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-pill-tag {
  display: inline-block;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid var(--border-active);
  color: #c4b5fd;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
  letter-spacing: 0.04em;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.section-subheading {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
}

/* Features Grid */
.landing-features-section {
  padding: 3rem 0 1rem;
}

.features-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1100px) {
  .features-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-showcase-card {
  background: rgba(14, 18, 29, 0.65);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(15px);
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.feature-showcase-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(139, 92, 246, 0.15);
}

.feature-card-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.feature-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.feature-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  flex: 1;
}

.feature-card-badge {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

/* Indian Languages Spotlight Box */
.indian-languages-showcase-box {
  background: radial-gradient(circle at 10% 50%, rgba(245, 158, 11, 0.15) 0%, rgba(14, 18, 29, 0.85) 60%),
              radial-gradient(circle at 90% 50%, rgba(16, 185, 129, 0.12) 0%, transparent 60%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  margin: 2rem 0;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.showcase-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde68a;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.showcase-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.showcase-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 1.5rem;
}

.languages-pill-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.lang-cloud-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.lang-cloud-pill:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  transform: translateY(-2px);
}

/* Public Pricing Grid */
.landing-pricing-section {
  padding: 2.5rem 0;
}

.landing-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.landing-price-card {
  background: rgba(14, 18, 29, 0.7);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(15px);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.landing-price-card.featured {
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.12) 0%, rgba(14, 18, 29, 0.95) 75%);
  border-color: var(--border-gold);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(245, 158, 11, 0.15);
  transform: scale(1.02);
}

.plan-popular-ribbon {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.plan-popular-ribbon.gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.landing-plan-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.landing-price-figure {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.landing-price-figure small {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.strike-price {
  text-decoration: line-through;
  color: #ef4444;
  font-size: 1.1rem;
  font-weight: 600;
}

.landing-plan-tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.landing-plan-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex: 1;
}

.landing-plan-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.5;
}

.landing-plan-checklist li svg {
  color: #10b981;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.btn-plan-action {
  width: 100%;
  padding: 0.85rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-plan-action.primary {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: white;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-plan-action.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-plan-action.gold-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.btn-plan-action.gold-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.5);
}

.btn-plan-action.secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-medium);
  color: white;
}

.btn-plan-action.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* FAQ Grid */
.landing-faq-section {
  padding: 2.5rem 0;
}

.faq-accordion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .faq-accordion-grid {
    grid-template-columns: 1fr;
  }
}

.faq-card {
  background: rgba(14, 18, 29, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem;
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.faq-answer {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Master Footer */
.studio-main-footer {
  background: #080a0f;
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 1.5rem 2.5rem;
  margin-top: 3rem;
}

.footer-container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-brand-col {
  max-width: 380px;
}

.footer-brand-bio {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0.85rem 0 1.5rem;
}

.footer-copyright {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-links-group {
  display: flex;
  gap: 3.5rem;
  flex-wrap: wrap;
}

.footer-links-col h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-links-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 0.65rem;
  transition: var(--transition);
}

.footer-links-col a:hover {
  color: var(--primary);
  transform: translateX(2px);
}

/* Language and Country Flag Badges on Voice Cards */
.badge-lang-flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.2px;
}

.badge-lang-flag.indian {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fef08a;
}

/* ==========================================================================
   AAA PREMIUM SAAS HOME SCREEN & HERO STYLING (2026 EDITION)
   ========================================================================== */

.hero-login-gateway {
  position: relative;
  background: radial-gradient(circle at 50% -20%, rgba(99, 102, 241, 0.28) 0%, rgba(30, 41, 59, 0.75) 50%, rgba(15, 23, 42, 0.98) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 24px !important;
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  transition: all 0.3s ease;
}

.hero-login-gateway:hover {
  border-color: rgba(99, 102, 241, 0.35) !important;
  box-shadow: 0 35px 80px -15px rgba(99, 102, 241, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.feature-showcase-card {
  background: rgba(15, 23, 42, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  padding: 1.75rem !important;
  backdrop-filter: blur(16px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-showcase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-showcase-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4) !important;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 25px rgba(99, 102, 241, 0.15);
}

.feature-showcase-card:hover::before {
  opacity: 1;
}

.indian-languages-showcase-box {
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.15) 0%, rgba(15, 23, 42, 0.95) 80%) !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 30px rgba(245, 158, 11, 0.12) !important;
}

.landing-price-card {
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(15, 23, 42, 0.8) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.landing-price-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.45) !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
}

.landing-price-card.featured {
  border: 2px solid #f59e0b !important;
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.18) 0%, rgba(15, 23, 42, 0.98) 75%) !important;
  box-shadow: 0 25px 60px -15px rgba(245, 158, 11, 0.35), 0 0 30px rgba(245, 158, 11, 0.2) !important;
}

.landing-price-card.featured:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 30px 70px -12px rgba(245, 158, 11, 0.45), 0 0 40px rgba(245, 158, 11, 0.3) !important;
}

.btn-google-auth:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 15px 35px rgba(234, 67, 53, 0.45) !important;
}


