@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

:root {
  /* Premium Color Palette - Modern AI SaaS */
  --primary: #6366f1;
  --primary-hover: #818cf8;
  --primary-dark: #4f46e5;
  
  --cyan: #22d3ee;
  --cyan-muted: #67e8f9;
  --magenta: #e879f9;
  --purple: #a78bfa;
  --green: #34d399;
  --yellow: #fbbf24;
  --orange: #fb923c;
  
  /* Background - Rich dark, not pitch black */
  --bg-dark: #09090b;
  --bg-surface: #18181b;
  --bg-elevated: #27272a;
  --bg-card: rgba(39, 39, 42, 0.6);
  --bg-glass: rgba(39, 39, 42, 0.4);
  
  /* Text */
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;
  
  /* Subtle glows */
  --glow-primary: 0 0 20px rgba(99, 102, 241, 0.3);
  --glow-cyan: 0 0 15px rgba(34, 211, 238, 0.2);
  --glow-muted: 0 0 10px rgba(99, 102, 241, 0.15);
  
  /* Borders - subtle */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(99, 102, 241, 0.3);
  --border-active: rgba(99, 102, 241, 0.5);
  
  /* Transitions - smoother */
  --transition-fast: 0.15s ease;
  --transition-medium: 0.25s ease;
  --transition-slow: 0.4s ease;
  
  /* Neon effects */
  --neon-cyan: 0 0 10px rgba(0, 240, 255, 0.5), 0 0 20px rgba(0, 240, 255, 0.3);
  --neon-magenta: 0 0 10px rgba(255, 0, 255, 0.5), 0 0 20px rgba(255, 0, 255, 0.3);
  --neon-purple: 0 0 10px rgba(139, 92, 246, 0.5), 0 0 20px rgba(139, 92, 246, 0.3);
}

/* ===== LIGHT THEME - Cozy & Warm ===== */
[data-theme="light"] {
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --primary-dark: #5b21b6;
  
  --cyan: #0891b2;
  --cyan-muted: #22d3ee;
  --magenta: #db2777;
  --purple: #8b5cf6;
  --green: #059669;
  --yellow: #d97706;
  --orange: #ea580c;
  
  --bg-dark: #faf8f5;
  --bg-surface: #ffffff;
  --bg-elevated: #f5f3ef;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.75);
  
  --text-primary: #292524;
  --text-secondary: #57534e;
  --text-tertiary: #a8a29e;
  
  --glow-primary: 0 2px 12px rgba(124, 58, 237, 0.15);
  --glow-cyan: 0 2px 8px rgba(8, 145, 178, 0.12);
  --glow-muted: 0 2px 8px rgba(139, 92, 246, 0.1);
  
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-hover: rgba(124, 58, 237, 0.25);
  --border-active: rgba(124, 58, 237, 0.4);
  
  --neon-cyan: 0 2px 8px rgba(8, 145, 178, 0.2);
  --neon-magenta: 0 2px 8px rgba(219, 39, 119, 0.2);
  --neon-purple: 0 2px 8px rgba(139, 92, 246, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

#three-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.4;
}

#cursor-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
}

.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 10px var(--cyan), inset 0 0 10px rgba(0, 240, 255, 0.2);
}

.custom-cursor::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background: var(--cyan);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--cyan);
}

.custom-cursor.hover {
  transform: translate(-50%, -50%) scale(1.5);
  border-color: var(--magenta);
  box-shadow: 0 0 20px var(--magenta), inset 0 0 20px rgba(255, 0, 255, 0.3);
}

.custom-cursor.hover::before {
  background: var(--magenta);
  box-shadow: 0 0 10px var(--magenta);
}

#cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  display: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

.neon-text {
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
}

.neon-text-magenta {
  color: var(--magenta);
  text-shadow: var(--glow-magenta);
}

.neon-text-purple {
  color: var(--purple);
  text-shadow: var(--glow-purple);
}

.neon-text-green {
  color: var(--green);
  text-shadow: var(--glow-green);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 50%, var(--cyan) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite;
}

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

.neon-text {
  color: var(--primary);
  text-shadow: var(--glow-primary);
}

.neon-text-magenta {
  color: var(--magenta);
  text-shadow: 0 0 15px rgba(232, 121, 249, 0.3);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-medium);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: rgba(99, 102, 241, 0.08);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 13px;
}

.btn-lg {
  padding: 20px 40px;
  font-size: 16px;
}

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
}

.input-field {
  width: 100%;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: all var(--transition-medium);
}

.input-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.input-field::placeholder {
  color: var(--text-tertiary);
}

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group {
  margin-bottom: 24px;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  transition: all var(--transition-medium);
  position: relative;
}

.glass-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 40px;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 2px;
}

.logo span:first-child {
  color: var(--text-primary);
}

.logo span:last-child {
  color: var(--primary);
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
  padding: 8px 0;
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width var(--transition-medium);
}

.nav-links a:hover::after {
  width: 100%;
}

.profile-dropdown {
  position: relative;
}

.profile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border-subtle);
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar:hover {
  border-color: var(--primary);
  transform: scale(1.05);
}

.avatar-initial {
  font-size: 14px;
  font-weight: 600;
  color: white;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 260px;
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-medium);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

.profile-dropdown.active .profile-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  margin-bottom: 8px;
}

.profile-header .profile-avatar {
  flex-shrink: 0;
}

.profile-name {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.profile-email {
  display: block;
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.profile-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), transparent);
  margin: 8px 0;
}

.profile-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  border-radius: 8px;
  transition: all var(--transition-fast);
  border: none;
  background: transparent;
  width: 100%;
  cursor: pointer;
  text-align: left;
}

.profile-item:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
}

.profile-logout {
  color: var(--text-tertiary);
}

.profile-logout:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.theme-toggle {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--border-subtle);
  padding: 10px;
  cursor: pointer;
  color: var(--text-secondary);
  border-radius: 50%;
  transition: all var(--transition-medium);
}

.theme-toggle:hover {
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 80px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: subtlePulse 8s ease-in-out infinite;
}

@keyframes subtlePulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.hero-content {
  max-width: 800px;
  position: relative;
}

.hero h1 {
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.15s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
}

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

.section {
  padding: 120px 24px;
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.3;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 28px;
  border-radius: 16px;
  transition: all var(--transition-medium);
  animation: fadeInUp 0.6s ease both;
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 24px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(167, 139, 250, 0.15));
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-medium);
}

.feature-card:hover .feature-icon {
  transform: scale(1.05);
  border-color: var(--border-hover);
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  padding: 32px;
  border-radius: 16px;
  text-align: center;
  position: relative;
  transition: all var(--transition-medium);
  animation: fadeInUp 0.6s ease both;
}

.pricing-card.featured {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
}

.pricing-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.pricing-card .price {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
  font-family: 'Sora', sans-serif;
}

.pricing-card .price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-tertiary);
}

.pricing-card .period {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  text-align: left;
}

.pricing-features li {
  padding: 14px 0;
  font-size: 15px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
}

.pricing-features li::before {
  content: '⚡';
  color: var(--green);
  font-weight: bold;
}

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 48px;
  animation: fadeInUp 0.8s ease;
}

.auth-card h1 {
  font-size: 28px;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-family: 'Sora', sans-serif;
}

.auth-card .subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 14px;
}

.auth-card .subtitle a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.auth-card .subtitle a:hover {
  color: var(--primary-hover);
}

.dashboard-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 80px;
}

.sidebar {
  width: 280px;
  background: rgba(10, 10, 15, 0.95);
  border-right: 1px solid rgba(0, 240, 255, 0.1);
  padding: 32px 0;
  position: fixed;
  top: 80px;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 12px;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.sidebar-nav a:hover {
  background: rgba(99, 102, 241, 0.08);
  color: var(--text-primary);
}

.sidebar-nav a.active {
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary);
  border-color: var(--border-hover);
}

.main-content {
  flex: 1;
  margin-left: 280px;
  padding: 40px;
}

.page-header {
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 15px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.stat-card {
  padding: 24px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition-medium);
}

.stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 20px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(167, 139, 250, 0.15));
  border: 1px solid var(--border-subtle);
}

.stat-info h3 {
  font-size: 24px;
  margin-bottom: 4px;
  color: var(--text-primary);
  font-family: 'Space Mono', monospace;
}

.stat-info p {
  font-size: 13px;
  color: var(--text-tertiary);
}

.tts-studio,
.voice-lab {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.tts-input-section,
.tts-output-section,
.voice-upload-section,
.voice-record-section {
  padding: 36px;
  border-radius: 24px;
}

.section-title {
  font-size: 20px;
  margin-bottom: 28px;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.language-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.language-btn {
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.language-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.language-btn.active {
  background: var(--primary);
  border-color: transparent;
  color: white;
}

.voice-selector {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.voice-card {
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.voice-card:hover {
  border-color: var(--border-hover);
  background: rgba(99, 102, 241, 0.05);
  transform: translateX(4px);
}

.voice-card.active {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--primary);
}

.voice-card .voice-name {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.voice-card .voice-lang {
  font-size: 13px;
  color: var(--text-tertiary);
}

textarea {
  width: 100%;
  min-height: 200px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  resize: vertical;
  margin-bottom: 20px;
  transition: border-color var(--transition-medium);
}

textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.audio-preview {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 40px;
  text-align: center;
}

/* Custom Audio Player */
.custom-audio-player {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 12px;
  padding: 20px;
}

.player-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.format-badge {
  background: rgba(0, 240, 255, 0.15);
  color: var(--cyan);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.player-progress-container {
  margin-bottom: 16px;
  padding: 18px 0;
  margin: 8px -20px;
  position: relative;
}

.player-progress {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.player-progress:hover {
  height: 16px;
  background: rgba(255, 255, 255, 0.15);
}

.player-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  border-radius: 6px;
  width: 0%;
  transition: width 0.05s linear;
  position: relative;
}

.player-progress-bar::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.player-progress:hover .player-progress-bar::after {
  opacity: 1;
}

.player-progress-bar.buffered {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  height: 100%;
  pointer-events: none;
}

.player-progress-container .time-preview {
  position: absolute;
  bottom: 100%;
  left: 0;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  white-space: nowrap;
  margin-bottom: 8px;
}

.player-progress-container:hover .time-preview {
  opacity: 1;
}

.player-progress-container:hover .player-progress-bar {
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
}

.player-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.player-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 16px;
  color: var(--text-primary);
}

.player-btn:hover {
  background: rgba(0, 240, 255, 0.2);
  transform: scale(1.05);
}

.player-btn:active {
  transform: scale(0.95);
}

.player-btn-main {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  font-size: 20px;
}

.player-btn-main:hover {
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.player-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.player-volume {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-btn-sm {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.player-btn-sm:hover {
  opacity: 1;
}

.volume-slider {
  width: 80px;
  height: 4px;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: var(--cyan);
  border-radius: 50%;
  cursor: pointer;
}

.player-download {
  display: flex;
  align-items: center;
}

.btn-download {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.upload-zone {
  border: 2px dashed var(--border-subtle);
  border-radius: 14px;
  padding: 40px;
  text-align: center;
  transition: all var(--transition-medium);
  cursor: pointer;
  background: rgba(0, 0, 0, 0.15);
}

.upload-zone:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.upload-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.6;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.upload-zone h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.upload-zone p {
  color: var(--text-tertiary);
  font-size: 13px;
}

.record-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  border: none;
  cursor: pointer;
  margin: 32px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  transition: all var(--transition-medium);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.record-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(99, 102, 241, 0.5);
}

.record-btn.recording {
  animation: pulseRecord 1s infinite;
}

@keyframes pulseRecord {
  0%, 100% { box-shadow: 0 0 40px rgba(255, 0, 255, 0.4); }
  50% { box-shadow: 0 0 80px rgba(255, 0, 255, 0.8), 0 0 120px rgba(255, 0, 255, 0.4); }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.project-card {
  padding: 28px;
  border-radius: 20px;
  transition: all var(--transition-medium);
  animation: fadeInUp 0.6s ease both;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.2);
}

.project-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.project-card .date {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.project-card .type {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 16px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.project-card .actions {
  display: flex;
  gap: 10px;
}

.api-keys-section {
  max-width: 900px;
}

.api-key-card {
  padding: 24px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  transition: all var(--transition-medium);
}

.api-key-card:hover {
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
}

.api-key-info h4 {
  font-size: 16px;
  margin-bottom: 6px;
}

.api-key-info .key-preview {
  font-family: monospace;
  color: var(--cyan);
  font-size: 13px;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.api-key-actions {
  display: flex;
  gap: 10px;
}

.billing-info {
  max-width: 700px;
}

.current-plan {
  padding: 36px;
  border-radius: 24px;
  margin-bottom: 32px;
}

.current-plan h3 {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.current-plan .plan-name {
  font-size: 40px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.settings-section {
  max-width: 700px;
}

.settings-section h2 {
  font-size: 20px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--cyan);
}

.footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer p {
  color: var(--text-tertiary);
  font-size: 13px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 10px;
  cursor: pointer;
  font-size: 24px;
}

@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 99;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .tts-studio,
  .voice-lab {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    cursor: auto;
  }
  
  .custom-cursor,
  #cursor-glow {
    display: none;
  }
  
  .hero {
    padding: 100px 24px 60px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .nav-links {
    display: none;
  }
  
  .pricing-card.featured {
    transform: scale(1);
  }
  
  .section {
    padding: 80px 24px;
  }
}

.alert {
  padding: 18px 24px;
  border-radius: 14px;
  margin-bottom: 24px;
  font-size: 14px;
  animation: fadeInUp 0.4s ease;
}

.alert-success {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid var(--green);
  color: var(--green);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.alert-error {
  background: rgba(255, 0, 255, 0.1);
  border: 1px solid var(--magenta);
  color: var(--magenta);
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.2);
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(0, 240, 255, 0.2);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  box-shadow: 0 0 10px var(--cyan);
}

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

.hidden {
  display: none !important;
}

.progress-bar {
  height: 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.progress-bar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  border-radius: 4px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--cyan);
}

select.input-field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300f0ff' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 3px;
  outline: none;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 20px var(--cyan);
  transition: transform var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--cyan);
  cursor: pointer;
}

.floating-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.shape {
  position: absolute;
  opacity: 0.1;
  animation: floatShape 20s ease-in-out infinite;
}

.shape-1 {
  top: 20%;
  left: 10%;
  width: 100px;
  height: 100px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  animation-delay: 0s;
}

.shape-2 {
  top: 60%;
  right: 15%;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(255, 0, 255, 0.2), transparent);
  border: 2px solid var(--magenta);
  transform: rotate(45deg);
  animation-delay: -5s;
}

.shape-3 {
  bottom: 30%;
  left: 20%;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), transparent);
  border: 2px solid var(--purple);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation-delay: -10s;
}

@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(20px, -30px) rotate(90deg); }
  50% { transform: translate(-10px, -50px) rotate(180deg); }
  75% { transform: translate(-30px, -20px) rotate(270deg); }
}

/* ===== GRAIN TEXTURE (Light mode) ===== */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9996;
  opacity: 0;
  transition: opacity 0.5s ease;
}

[data-theme="light"] .grain-overlay {
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ===== LIGHT THEME FLOATING ORBS ===== */
[data-theme="light"] .shape {
  opacity: 0.15;
}

[data-theme="light"] .shape-1 {
  background: linear-gradient(135deg, #ffd8c8, #ffedd5);
  border: none;
  border-radius: 50%;
  box-shadow: 0 20px 60px rgba(255, 216, 200, 0.5);
}

[data-theme="light"] .shape-2 {
  background: linear-gradient(135deg, #e8d5f2, #ede9fe);
  border: none;
  border-radius: 20%;
  box-shadow: 0 20px 60px rgba(232, 213, 242, 0.5);
  transform: rotate(20deg);
}

[data-theme="light"] .shape-3 {
  background: linear-gradient(135deg, #fef3c7, #fef9c3);
  border: none;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  box-shadow: 0 20px 60px rgba(254, 243, 199, 0.5);
}

/* ===== HIDE DARK EFFECTS IN LIGHT MODE ===== */
[data-theme="light"] .grid-overlay,
[data-theme="light"] .scan-line {
  display: none;
}

/* ===== LIGHT THEME NAVBAR ===== */
[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ===== LIGHT THEME CARDS ===== */
[data-theme="light"] .glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .glass-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--border-hover);
}

/* ===== LIGHT THEME BUTTONS ===== */
[data-theme="light"] .btn-primary {
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}

[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.25);
}

/* ===== LIGHT THEME INPUTS ===== */
[data-theme="light"] .input-field {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--border-subtle);
}

[data-theme="light"] .input-field:focus {
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* ===== LIGHT THEME PROFILE DROPDOWN ===== */
[data-theme="light"] .profile-menu {
  background: var(--bg-surface);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* ===== LIGHT THEME SIDEBAR ===== */
[data-theme="light"] .sidebar {
  background: rgba(255, 255, 255, 0.95);
  border-right: 1px solid var(--border-subtle);
}

/* ===== DARK MODE NEON ENHANCEMENTS ===== */
:root:not([data-theme="light"]) .btn-primary {
  animation: neonPulse 3s ease-in-out infinite;
}

@keyframes neonPulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35); }
  50% { box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5), 0 0 30px rgba(0, 240, 255, 0.2); }
}

:root:not([data-theme="light"]) .btn-primary:hover {
  animation: none;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45), 0 0 25px rgba(0, 240, 255, 0.3);
}

:root:not([data-theme="light"]) .input-field:focus {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), 0 0 15px rgba(0, 240, 255, 0.15);
}

.scan-line {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  z-index: 9997;
  animation: scanLine 12s linear infinite;
  opacity: 0.15;
}

@keyframes scanLine {
  0% { top: -1px; }
  100% { top: 100%; }
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(99, 102, 241, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.advanced-section {
  border-top: 1px solid rgba(0, 240, 255, 0.1);
  padding-top: 16px;
  /* Hidden temporarily - remove to re-enable */
  display: none;
}

.advanced-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--purple);
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-medium);
}

.advanced-toggle:hover {
  background: rgba(139, 92, 246, 0.2);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.advanced-toggle .toggle-icon {
  font-size: 12px;
  transition: transform var(--transition-medium);
}

.advanced-content {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-top: none;
  padding: 0 4px 4px;
  border-radius: 0 0 8px 8px;
}

.sound-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.sound-btn {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--cyan);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.sound-btn:hover {
  background: rgba(0, 240, 255, 0.2);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
  transform: translateY(-2px);
}

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

.advanced-content .form-group label {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 6px;
}

.advanced-content .input-field {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.advanced-content .input-field:focus {
  border-color: var(--purple);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.advanced-content code {
  background: rgba(0, 240, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Fira Code', monospace;
  color: var(--cyan);
}

/* ============================================
   MOBILE RESPONSIVENESS - COMPREHENSIVE
   ============================================ */

/* Extra Small Devices (Phones, 480px and down) */
@media (max-width: 480px) {
  /* Sidebar Close Button */
  .sidebar-close-btn {
    font-size: 24px;
    padding: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Sidebar Header Mobile */
  .sidebar-header {
    padding: 0 12px 12px;
  }
  
  /* Base Typography */
  html {
    font-size: 14px;
  }
  
  body {
    cursor: auto;
  }
  
  h1 { font-size: 1.8rem !important; }
  h2 { font-size: 1.5rem !important; }
  h3 { font-size: 1.25rem !important; }
  
  .container {
    padding: 0 16px;
  }
  
  /* Navbar Mobile */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    z-index: 1000;
  }
  
  .navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 16px;
  }
  
  .navbar .logo {
    font-size: 1.3rem;
  }
  
  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 8px;
    font-size: 20px;
    color: var(--cyan);
    cursor: pointer;
  }
  
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 20, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 24px;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
  }
  
  .nav-links.open {
    transform: translateX(0);
  }
  
  .nav-links a {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    text-align: center;
    border-radius: 10px;
  }
  
  .nav-links .btn {
    width: 100%;
    margin: 8px 0;
  }
  
  .profile-dropdown {
    width: 100%;
  }
  
  .profile-avatar {
    display: none;
  }
  
  .profile-menu {
    position: static;
    width: 100%;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    margin-top: 16px;
    background: transparent;
  }
  
  /* Hero Section */
  .hero {
    padding: 80px 16px 60px;
    min-height: auto;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero h1 {
    font-size: 1.8rem !important;
    line-height: 1.2;
  }
  
  .hero p {
    font-size: 14px;
    margin-bottom: 24px;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }
  
  .hero-buttons .btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
  }
  
  /* Sections */
  .section {
    padding: 60px 16px;
  }
  
  .section-header {
    margin-bottom: 32px;
  }
  
  .section-header h2 {
    font-size: 1.5rem !important;
  }
  
  .section-header p {
    font-size: 14px;
  }
  
  /* Feature Cards */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .feature-card {
    padding: 20px;
  }
  
  .feature-icon {
    font-size: 32px;
    margin-bottom: 12px;
  }
  
  .feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
  
  .feature-card p {
    font-size: 13px;
  }
  
  /* Pricing Cards */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .pricing-card {
    padding: 24px 20px;
  }
  
  .pricing-card .price {
    font-size: 2rem;
  }
  
  .pricing-features {
    margin: 20px 0;
  }
  
  .pricing-features li {
    font-size: 13px;
    margin-bottom: 10px;
  }
  
  /* Buttons */
  .btn {
    min-height: 44px;
    padding: 12px 20px;
    font-size: 14px;
  }
  
  .btn-lg {
    min-height: 52px;
    padding: 14px 28px;
    font-size: 16px;
  }
  
  .btn-sm {
    min-height: 36px;
    padding: 8px 16px;
    font-size: 13px;
  }
  
  /* Input Fields */
  .input-field {
    min-height: 48px;
    padding: 12px 16px;
    font-size: 16px;
    width: 100%;
  }
  
  textarea.input-field {
    min-height: 120px;
  }
  
  /* Glass Cards */
  .glass-card {
    padding: 20px;
    border-radius: 12px;
  }
  
  /* Forms */
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-row {
    flex-direction: column;
    gap: 16px;
  }
  
  /* Footer */
  .footer {
    padding: 30px 16px;
  }
  
  .footer p {
    font-size: 12px;
  }
  
  /* Dashboard */
  .dashboard-layout {
    flex-direction: column;
  }
  
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    background: rgba(10, 10, 20, 0.98);
    padding-top: 70px;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .sidebar-nav {
    flex-direction: column;
    padding: 16px;
  }
  
  .sidebar-nav a {
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 10px;
    margin-bottom: 4px;
  }
  
  .sidebar-nav a span:first-child {
    font-size: 18px;
  }
  
  .main-content {
    margin-left: 0;
    padding: 16px;
    padding-top: 80px;
    min-height: 100vh;
  }
  
  .mobile-menu-btn {
    display: flex !important;
  }
  
  /* TTS Studio */
  .tts-studio,
  .voice-lab {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .tts-input-section,
  .tts-controls-section,
  .tts-output-section,
  .voice-upload-section,
  .voice-list-section {
    padding: 20px;
  }
  
  /* Voice Gallery */
  .voice-gallery-page {
    padding: 80px 16px 20px;
  }
  
  .page-header {
    margin-bottom: 24px;
  }
  
  .page-header h1 {
    font-size: 1.8rem !important;
  }
  
  .page-header p {
    font-size: 14px;
  }
  
  .gallery-filters {
    padding: 16px;
    margin-bottom: 20px;
  }
  
  .filter-row {
    flex-direction: column;
    gap: 12px;
  }
  
  .search-box {
    width: 100%;
    min-width: 100%;
  }
  
  .filter-group {
    width: 100%;
    min-width: 100%;
  }
  
  .filter-group select {
    width: 100%;
  }
  
  .voice-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .voice-card {
    padding: 16px;
  }
  
  .voice-avatar {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }
  
  .voice-card h3 {
    font-size: 1.1rem;
  }
  
  .voice-description {
    font-size: 13px;
    min-height: auto;
  }
  
  .voice-meta {
    gap: 6px;
  }
  
  .voice-badge {
    font-size: 11px;
    padding: 3px 8px;
  }
  
  .voice-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .preview-btn,
  .use-btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
  }
  
  /* Voice Lab */
  .recording-controls {
    flex-direction: column;
    gap: 12px;
  }
  
  .recording-controls .btn {
    width: 100%;
  }
  
  .voice-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .voice-card-inner {
    padding: 16px;
  }
  
  /* Settings Page */
  .settings-section {
    padding: 20px;
  }
  
  .settings-section h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
  }
  
  .api-key-display {
    flex-direction: column;
    gap: 12px;
  }
  
  .api-key-display code {
    font-size: 12px;
    word-break: break-all;
  }
  
  /* Alert Messages */
  .alert {
    padding: 14px 16px;
    font-size: 13px;
    border-radius: 10px;
  }
  
  /* Range Sliders */
  .range-labels {
    flex-direction: row;
    justify-content: space-between;
  }
  
  /* Auth Pages */
  .auth-page {
    padding: 80px 16px 40px;
  }
  
  .auth-card {
    padding: 24px 20px;
    border-radius: 16px;
  }
  
  .auth-card h1 {
    font-size: 1.5rem;
  }
  
  .auth-card p {
    font-size: 14px;
  }
  
  .auth-divider {
    margin: 20px 0;
  }
  
  .auth-divider span {
    font-size: 13px;
  }
  
  /* Skeleton Loading */
  .voice-card.skeleton {
    height: 220px;
  }
  
  /* Progress Bar */
  .progress-info {
    flex-direction: column;
    gap: 8px;
  }
  
  /* Stats Grid */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .stat-card {
    padding: 16px;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
  
  /* Custom Cursor - Hidden on Mobile */
  .custom-cursor,
  #cursor-glow,
  #cursor-canvas {
    display: none !important;
  }
  
  /* Select Dropdowns */
  select.input-field {
    padding-right: 48px;
  }
  
  /* Advanced Section TTS */
  .advanced-section {
    margin-top: 16px;
  }
  
  .advanced-toggle {
    padding: 12px 14px;
    font-size: 13px;
  }
  
  .sound-buttons {
    gap: 6px;
  }
  
  .sound-btn {
    padding: 10px 12px;
    font-size: 11px;
  }
  
  /* Table Styles */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  table {
    font-size: 12px;
  }
  
  th, td {
    padding: 10px 8px;
  }
}

/* Small Devices (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .container {
    padding: 0 20px;
  }
  
  /* Navbar */
  .mobile-menu-btn {
    display: flex !important;
  }
  
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 20, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }
  
  .nav-links.open {
    transform: translateX(0);
  }
  
  .nav-links a {
    padding: 12px 20px;
    border-radius: 8px;
  }
  
  /* Hero */
  .hero {
    padding: 100px 20px 80px;
  }
  
  .hero h1 {
    font-size: 2.2rem !important;
  }
  
  /* Grids */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  /* Dashboard */
  .tts-studio,
  .voice-lab {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Voice Gallery */
  .voice-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .filter-row {
    flex-wrap: wrap;
  }
  
  .search-box {
    flex: 1 1 100%;
    min-width: 100%;
  }
  
  /* Voice Lab */
  .voice-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  /* Sidebar */
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
}

/* Tablet (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  .voice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .voice-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tts-studio,
  .voice-lab {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    width: 240px;
  }
  
  .main-content {
    margin-left: 240px;
  }
}

/* Large Tablets and Desktops (1025px and up) */
@media (min-width: 1025px) {
  .mobile-menu-btn {
    display: none !important;
  }
  
  .nav-links {
    transform: none !important;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch devices */
  .btn:hover,
  .feature-card:hover,
  .pricing-card:hover,
  .voice-card:hover,
  .glass-card:hover {
    transform: none;
  }
  
  /* Add active states */
  .btn:active {
    transform: scale(0.98);
  }
  
  /* Improve touch feedback */
  a, button, .clickable {
    -webkit-tap-highlight-color: rgba(99, 102, 241, 0.15);
  }
}
  
  /* Add active states */
  .btn:active {
    transform: scale(0.98);
  }
  
  /* Improve touch feedback */
  a, button, .clickable {
    -webkit-tap-highlight-color: rgba(0, 240, 255, 0.1);
  }
  
  /* Disable hover cursor */
  a, button, [role="button"] {
    cursor: pointer;
  }
}

/* Landscape Mode on Mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 60px 20px 40px;
    min-height: auto;
  }
  
  .hero h1 {
    font-size: 1.5rem !important;
  }
  
  .hero p {
    font-size: 13px;
    margin-bottom: 16px;
  }
  
  .hero-buttons {
    flex-direction: row;
  }
  
  .auth-page {
    padding: 60px 20px 20px;
  }
  
  .auth-card {
    padding: 20px;
  }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .glass-card,
  .glass-btn,
  .neon-border {
    border-width: 0.5px;
  }
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero::before {
    animation: none;
  }
  
  .avatar-pulse {
    animation: none;
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
    color: black;
  }
  
  .navbar,
  .footer,
  .mobile-menu-btn,
  #three-bg,
  #cursor-canvas,
  .custom-cursor,
  #cursor-glow,
  .dock {
    display: none !important;
  }
  
  .main-content {
    margin: 0;
    padding: 20px;
  }
}

/* Top Header */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.top-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== FLOATING BOTTOM NAV DOCK ===== */
.dock {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(12, 12, 18, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 50px;
  box-shadow: 
    0 15px 50px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(0, 240, 255, 0.2),
    0 0 60px rgba(0, 240, 255, 0.1);
  max-width: 95vw;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.dock.visible {
  opacity: 1;
  visibility: visible;
}

/* Nav Container */
.dock-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Dock Item */
.dock-item {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #8a8a8a;
  text-decoration: none;
  transition: all 0.3s ease-out;
  cursor: pointer;
}

/* Icon */
.dock-item .dock-icon {
  width: 22px;
  height: 22px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

/* Label - use flex to position next to icon, not absolute */
.dock-item .dock-label {
  display: none;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f5f5f5;
  white-space: nowrap;
  margin-left: 6px;
}

/* Hover - show label */
.dock-item:hover {
  width: 105px;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #f5f5f5;
}

.dock-item:hover .dock-label {
  display: inline;
}

/* Active State */
.dock-item.active {
  color: #00f0ff;
  width: auto;
  justify-content: center;
  padding-left: 4px;
  padding-right: 12px;
  background: rgba(0, 240, 255, 0.1);
}

.dock-item.active .dock-label {
  display: inline;
  color: #00f0ff;
}

/* Divider */
.dock-divider {
  width: 1px;
  height: 28px;
  margin-left: 4px;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

/* CTA Container */
.dock-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  padding-left: 8px;
  flex-shrink: 0;
}

/* CTA Button - Primary */
.dock-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 20px;
  background: linear-gradient(135deg, #00f0ff, #ff00ff);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.25);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.dock-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 240, 255, 0.4);
}

/* Light Theme Override */
[data-theme="light"] .dock {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(124, 58, 237, 0.25);
  box-shadow: 
    0 15px 50px rgba(124, 58, 237, 0.15),
    0 0 30px rgba(124, 58, 237, 0.1);
}

[data-theme="light"] .dock-item {
  color: #6b7280;
}

[data-theme="light"] .dock-item:hover {
  background: rgba(124, 58, 237, 0.1);
  color: #1f2937;
}

[data-theme="light"] .dock-item .dock-label {
  color: #1f2937;
}

[data-theme="light"] .dock-item.active {
  color: #7c3aed;
}

[data-theme="light"] .dock-item.active .dock-label {
  color: #7c3aed !important;
}

[data-theme="light"] .dock-btn-primary {
  background: linear-gradient(135deg, #7c3aed, #db2777);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

[data-theme="light"] .dock-btn-primary:hover {
  box-shadow: 0 6px 25px rgba(124, 58, 237, 0.4);
}

[data-theme="light"] .dock-divider {
  border-left-color: rgba(0, 0, 0, 0.08);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 600px) {
  .dock {
    bottom: 15px;
    padding: 8px 10px;
    border-radius: 30px;
    max-width: 95%;
    gap: 4px;
  }
  
  .dock-item {
    width: 38px;
    height: 38px;
  }
  
  .dock-item .dock-icon {
    font-size: 16px;
  }
  
  /* Hide labels on mobile */
  .dock-item .dock-label {
    display: none;
  }
  
  .dock-item:hover {
    width: 38px;
    background: transparent;
  }
  
  .dock-item:hover .dock-label {
    display: none;
  }
  
  .dock-btn-primary {
    padding: 8px 10px;
    font-size: 0.55rem;
  }
  
  /* On mobile, hide divider and show CTA if auth */
  .dock-divider {
    display: none;
  }
}
