/* WeAD RedFlag - Quantum Astrological Mind-Tap Design - COMPLETE & MOBILE OPTIMIZED */
@import url('https://fonts.googleapis.com/css2?family=Antonio:wght@100;200;300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
/* Cosmic Quantum Color Palette */
--cosmic-void: #000000;
--deep-space: #0a0a0a;
--nebula-purple: #16213e;
--stellar-blue: #0f3460;
--quantum-teal: #aaa;
--quantum-green: #1a4d2e;
--dark-green: #0f2818;
--medium-green: #1a4d2e;
--light-green: #27ae60;
--astral-gold: #ffd700;
--cosmic-silver: #c0c0c0;
--mars-red: #ff4757;
--venus-pink: #ff6b9d;
--jupiter-orange: #ffa502;
--saturn-yellow: #f1c40f;
--neptune-blue: #3742fa;
--pluto-violet: #8e44ad;
--mercury-gray: #7f8c8d;

/* Psychology-inspired colors (keeping original functionality) */
--primary-blue: #2c5282;
--secondary-blue: #3182ce;
--accent-teal: #319795;
--warm-gray: #4a5568;
--light-gray: #f7fafc;
--success-green: #38a169;
--warning-orange: #ed8936;
--danger-red: #e53e3e;
--soft-purple: #805ad5;

/* ??? LOGIN SYSTEM COLORS */
--quantum-blue: #aaa; /* Changed to match quantum-teal */
--quantum-purple: #aaa; /* Changed to match quantum-teal */
--void-black: #000000;

/* ??? NEW: Enhanced psychological state colors */
--depression-orange: #ff8c00; /* Dark orange for depression */
--depression-orange-light: #ffa500; /* Light orange for depression highlights */
--depression-orange-dark: #e67e00; /* Darker orange for depression emphasis */
--red-flag-red: #dc2626; /* Bright red for red flags */
--safe-green: #059669; /* Green for safe states */
--neutral-blue: #3b82f6; /* Blue for neutral states */

/* Quantum Gradients */
--primary-gradient: linear-gradient(135deg, #000000 0%, #1a1a2e 50%, #000000 100%);
--safe-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
--alert-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
--danger-gradient: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
--depression-gradient: linear-gradient(135deg, #ff8c00 0%, #ffa500 100%);
--redflag-gradient: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); /* Red gradient for red flags */
--astral-flow: linear-gradient(45deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
--consciousness-wave: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
--mind-portal: conic-gradient(from 0deg at 50% 50%, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #667eea);
--chakra-energy: linear-gradient(0deg, #ff0000 0%, #ff8000 14%, #ffff00 28%, #ccc 42%, #0080ff 57%, #4000ff 71%, #8000ff 85%, #ff0080 100%);
--cosmic-aurora: linear-gradient(90deg, #00c9ff 0%, #92fe9d 35%, #ff9a9e 70%, #fecfef 100%);

/* Sacred Geometry & Quantum Fonts */
--font-cosmic: 'Antonio', sans-serif;
--font-astral: 'Antonio', sans-serif;
--font-sacred: 'Antonio', sans-serif;
--font-body: 'Inter', sans-serif;

/* Quantum Spacing (Golden Ratio Based) */
--quantum-xs: 0.618rem;
--quantum-sm: 1rem;
--quantum-md: 1.618rem;
--quantum-lg: 2.618rem;
--quantum-xl: 4.236rem;
--quantum-xxl: 6.854rem;

/* Cosmic Shadows & Auras */
--aura-glow: 0 0 20px rgba(102, 126, 234, 0.6), 0 0 40px rgba(118, 75, 162, 0.4), 0 0 60px rgba(240, 147, 251, 0.2);
--quantum-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
--astral-shadow: 0 15px 35px rgba(102, 126, 234, 0.3), 0 5px 15px rgba(118, 75, 162, 0.2);
--mind-field: 0 0 50px rgba(255, 255, 255, 0.4), 0 0 100px rgba(255, 215, 0, 0.2);
}

/* ===== WEAD ICON SYSTEM ===== */
.wead-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wead-icon svg {
  width: 100%;
  height: 100%;
}

.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 24px; height: 24px; }
.icon-lg { width: 32px; height: 32px; }
.icon-xl { width: 48px; height: 48px; }

.icon-teal { color: #aaa; }
.icon-gold { color: var(--astral-gold); }
.icon-red { color: var(--mars-red); }
.icon-silver { color: var(--cosmic-silver); }

/* Quantum Reset & Cosmic Base */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  height: 100%;
  /* ??? MOBILE SCROLL FIX */
  overflow-y: auto !important;
  touch-action: pan-y pinch-zoom !important;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--cosmic-void) !important;
  color: var(--cosmic-silver);
  line-height: 1.618;
  
  /* ??? MOBILE SCROLL SETTINGS */
  position: relative;
  overflow-x: hidden;
  overflow-y: auto !important;
  min-height: 100vh;
  padding: 0;
  
  /* ??? MOBILE OPTIMIZATIONS */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: rgba(0, 255, 255, 0.2);
  
  /* ??? TOUCH HANDLING */
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
  touch-action: pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
  
  /* Cosmic Background Effects */
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(240, 147, 251, 0.1) 0%, transparent 50%);
}

/* ??? MOBILE DEVICE SPECIFIC OPTIMIZATIONS */
.mobile-device {
  font-size: 16px !important; /* Prevent zoom on iOS */
}

.mobile-device body {
  padding: 0 !important;
  overflow-y: scroll !important;
  -webkit-overflow-scrolling: touch !important;
  height: auto !important;
  position: relative !important;
}

/* ??? MAIN APP CONTAINER - Always visible */
#main-app {
  display: block; /* Always show main app */
  width: 100%;
  min-height: 100vh;
}

/* Container - Cosmic Portal */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
  position: relative;
  z-index: 1;
  
  /* ??? MOBILE SCROLL FIX */
  display: block !important;
  height: auto !important;
}

/* ??? COSMIC HEADER SECTION */
.cosmic-header {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  padding: 1.5rem 0;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.quantum-logo {
  position: relative;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-core {
  width: 30px;
  height: 30px;
  background: var(--consciousness-wave);
  border-radius: 50%;
  box-shadow: var(--aura-glow);
  animation: pulse-core 2s ease-in-out infinite;
}

.logo-rings {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ring {
  position: absolute;
  border: 2px solid transparent;
  border-radius: 50%;
  animation: rotate-ring 10s linear infinite;
}

.ring-1 {
  width: 40px;
  height: 40px;
  top: 20px;
  left: 20px;
  border-top-color: #aaa;
  animation-duration: 8s;
}

.ring-2 {
  width: 60px;
  height: 60px;
  top: 10px;
  left: 10px;
  border-right-color: var(--astral-gold);
  animation-duration: 12s;
  animation-direction: reverse;
}

.ring-3 {
  width: 80px;
  height: 80px;
  top: 0;
  left: 0;
  border-bottom-color: var(--venus-pink);
  animation-duration: 15s;
}

.brand-text {
  text-align: center;
}

.cosmic-title {
  font-family: 'Antonio', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #aaa;
  text-shadow: 0 0 20px rgba(26, 188, 156, 0.5);
  letter-spacing: 2px;
}

.wead-text {
  color: #27ae60;
  text-shadow: 0 0 20px rgba(39, 174, 96, 0.5);
}

.redflag-text {
  color: #ff4444;
  text-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
}

.cosmic-subtitle {
  font-family: 'Antonio', sans-serif;
  font-size: 1rem;
  color: var(--cosmic-silver);
  opacity: 0.9;
}

/* Status Bar */
.status-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #000000;
  border: 1px solid rgba(39, 174, 96, 0.2);
  border-radius: 20px;
  font-size: 0.9rem;
  position: relative;
}

/* ??? TICK BOXES REMOVED FROM ALL STATUS ITEMS */

.status-icon {
  font-size: 1.2rem;
}

/* ??? CLICKABLE STATUS ITEMS */
#login-status, #register-status {
  cursor: pointer;
  transition: all 0.3s ease;
  /* Ensure exact same sizing and border as other status items */
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #000000;
  border: 1px solid rgba(39, 174, 96, 0.2);
  border-radius: 20px;
  font-size: 0.9rem;
  position: relative;
  /* Override any inherited border styles */
  border-width: 1px !important;
  border-style: solid !important;
  border-color: rgba(39, 174, 96, 0.2) !important;
}

#login-status:hover, #register-status:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #aaa;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* ??? MAIN CONTROL PANEL */
.control-panel {
  display: grid;
  gap: var(--quantum-xl);
}

/* Section Styling - Black Background */
section {
  background: #000000;
  border: 1px solid rgba(39, 174, 96, 0.2);
  border-radius: 20px;
  padding: var(--quantum-lg);
  position: relative;
  overflow: hidden;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(39, 174, 96, 0.3);
  opacity: 0.5;
}

.section-header {
  text-align: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.25);
}

.section-header h2 {
  font-family: 'Antonio', sans-serif;
  font-size: 1.6rem;
  color: #aaa;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
  letter-spacing: 1px;
}

.section-description {
  color: var(--cosmic-silver);
  opacity: 0.85;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ??? VOICE CONTROLS */
.voice-controls {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

/* ??? NEW: Language Controls */
.language-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--quantum-sm);
  margin-bottom: var(--quantum-lg);
  padding: var(--quantum-sm);
  background: transparent;
  border: 1px solid rgba(39, 174, 96, 0.3);
  border-radius: 12px;
}

.language-label {
  color: var(--cosmic-silver);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}

.language-select {
  background: #000000;
  border: 1px solid rgba(39, 174, 96, 0.3);
  border-radius: 8px;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 180px;
}

.language-select:focus {
  outline: none;
  border-color: #aaa;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  color: #aaa;
}

.language-select:hover {
  background: #0a0a0a;
  border-color: #aaa;
}

.language-select option {
  background: #000000;
  color: #ffffff;
  padding: 10px;
}

/* ??? ENHANCED BUTTONS - SLIM BLACK DESIGN */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 6px 18px;
  border: 1px solid rgba(39, 174, 96, 0.3);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  background: #000000;
  color: #27ae60;
  min-height: 25px;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

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

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #000000 0%, #0f2818 100%);
  color: white;
  border: 1px solid rgba(39, 174, 96, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(39, 174, 96, 0.1);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0f2818 0%, #1a4d2e 100%);
  border-color: rgba(39, 174, 96, 0.6);
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.2);
  transform: translateY(-1px);
  color: #27ae60;
}

.btn-secondary {
  background: #000000;
  color: #1a4d2e;
  border-color: rgba(26, 77, 46, 0.4);
}

.btn-secondary:hover {
  background: #0f2818;
  border-color: rgba(26, 77, 46, 0.7);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #27ae60;
  border: 1px solid rgba(39, 174, 96, 0.3);
}

.btn-outline:hover {
  background: rgba(39, 174, 96, 0.1);
  border-color: rgba(39, 174, 96, 0.6);
  box-shadow: 0 0 12px rgba(39, 174, 96, 0.15);
}

.btn-large {
  padding: 7px 24px;
  font-size: 0.95rem;
  min-height: 29px;
  min-width: 200px;
}

.btn-small {
  padding: 5px 14px;
  font-size: 0.8rem;
  min-height: 25px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-warning {
  background: linear-gradient(135deg, #000000 0%, #0f2818 100%);
  border: 1px solid rgba(39, 174, 96, 0.4);
  color: #27ae60;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.btn-warning:hover {
  background: linear-gradient(135deg, #f57c00 0%, #ef6c00 100%);
  border-color: #f57c00;
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

.btn-warning.active {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
  border-color: #f44336;
  box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
  animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
  0% { box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4); }
  50% { box-shadow: 0 6px 20px rgba(244, 67, 54, 0.8); }
  100% { box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4); }
}

.btn-icon {
  font-size: 1.2rem;
}

/* ??? NEW: System Status Indicator */
.system-status {
  margin: var(--quantum-md) 0;
  padding: var(--quantum-sm);
  border-radius: 12px;
  background: transparent;
  border: 1px solid rgba(39, 174, 96, 0.3);
}

.status-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--quantum-sm);
  padding: var(--quantum-sm);
}

.status-icon {
  font-size: 1.5em;
  animation: status-pulse 2s ease-in-out infinite;
}

.status-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.9em;
  font-weight: 500;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Status animations */
@keyframes status-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

/* Status states */
.status-listening .status-icon {
  color: #aaa;
  animation: listening-pulse 1s ease-in-out infinite;
}

.status-analyzing .status-icon {
  color: var(--astral-gold);
  animation: analyzing-spin 1.5s linear infinite;
}

.status-ready .status-icon {
  color: var(--cosmic-silver);
  animation: none;
}

@keyframes listening-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

@keyframes analyzing-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ??? NEW: Connection Details Styles */
.connection-details {
  margin-top: var(--quantum-sm);
  padding: var(--quantum-sm);
  background: transparent;
  border-radius: 8px;
  border: 1px solid rgba(39, 174, 96, 0.3);
}

.connection-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.connection-item:last-child {
  border-bottom: none;
}

.connection-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.8em;
  color: var(--cosmic-silver);
  font-weight: 500;
}

.connection-value {
  font-family: 'Inter', sans-serif;
  font-size: 0.8em;
  color: #aaa;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ??? TRANSCRIPT CONTAINER */
.transcript-container {
  background: #000000;
  border: 1px solid rgba(39, 174, 96, 0.2);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.transcript-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: transparent;
  border-bottom: 1px solid rgba(39, 174, 96, 0.2);
}

.transcript-header h3 {
  font-family: 'Antonio', sans-serif;
  color: #aaa;
  font-size: 1.2rem;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.transcript-status {
  padding: 0.25rem 0.75rem;
  background: var(--safe-gradient);
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  color: white;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.transcript-display {
  padding: 1.5rem;
  min-height: 240px;
  max-height: 600px;
  overflow-y: auto;
  font-family: 'Inter', sans-serif;
  line-height: 1.8;
  color: var(--cosmic-silver);
  display: block;
  visibility: visible;
  opacity: 1;
  font-size: 1.05rem;
  background: transparent;
}

.placeholder-text {
  color: var(--cosmic-silver);
  opacity: 0.6;
  font-style: italic;
  text-align: center;
}

/* ??? ANALYSIS SECTION */
.safety-score-container {
  margin-bottom: var(--quantum-lg);
}

.score-display {
  display: flex;
  align-items: center;
  gap: var(--quantum-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.score-circle {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--mind-portal);
  border-radius: 50%;
  box-shadow: var(--aura-glow);
  animation: rotate-slow 20s linear infinite;
}

.score-value {
  font-family: 'Antonio', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.score-label {
  font-size: 0.8rem;
  color: white;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.score-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.score-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: transparent;
  border-radius: 10px;
  border-left: 3px solid #aaa;
  min-width: 250px;
}

.score-metric {
  font-weight: 500;
  color: var(--cosmic-silver);
}

.score-result {
  font-weight: 600;
  color: #aaa;
}

/* ??? ANALYSIS RESULTS */
.analysis-results {
  background: transparent;
  border-radius: 15px;
  overflow: hidden;
}

.result-tabs {
  display: flex;
  background: transparent;
  border-bottom: 1px solid rgba(39, 174, 96, 0.2);
}

.tab-btn {
  flex: 1;
  padding: 1rem;
  background: none;
  border: none;
  color: var(--cosmic-silver);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.tab-btn.active {
  color: #aaa;
  background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #aaa;
}

.tab-btn:hover:not(.active) {
  background: transparent;
  color: white;
}

.tab-content {
  position: relative;
}

.tab-panel {
  display: none;
  padding: 1.5rem;
  min-height: 200px;
}

.tab-panel.active {
  display: block;
}

.analysis-display {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--cosmic-silver);
}

/* ??? SETTINGS SECTION */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--quantum-md);
  margin-bottom: var(--quantum-lg);
}

.setting-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.setting-group label {
  font-weight: 500;
  color: var(--cosmic-silver);
  font-size: 0.9rem;
}

.setting-select {
  padding: 0.75rem;
  background: #000000;
  border: 1px solid rgba(39, 174, 96, 0.3);
  border-radius: 8px;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
}

.setting-select:focus {
  outline: none;
  border-color: #aaa;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.setting-select option {
  background: #000000;
  color: #ffffff;
  padding: 10px;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-label {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(39, 174, 96, 0.2);
  border-radius: 24px;
  transition: 0.3s;
}

.toggle-label::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #1a1a1a;
  border: 2px solid rgba(39, 174, 96, 0.8);
  border-radius: 50%;
  transition: 0.3s;
}

input:checked + .toggle-label {
  background: var(--safe-gradient);
}

input:checked + .toggle-label::before {
  transform: translateX(26px);
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: var(--quantum-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* ??? COSMIC FOOTER - Base styles only, main styles at line 6300+ */
.cosmic-footer {
  margin-top: var(--quantum-xl);
  padding: var(--quantum-lg) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Legacy footer classes - kept for backward compatibility */
.footer-logo-img {
  width: 40px;
  height: 40px;
  margin-right: var(--quantum-sm);
  border-radius: var(--quantum-xs);
  object-fit: contain;
  filter: brightness(1.1) contrast(1.1);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.footer-link {
  color: var(--cosmic-silver);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #aaa;
}

/* Debug Section */
.debug-section {
  margin-top: var(--quantum-lg);
  padding: var(--quantum-md);
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.debug-section h3 {
  color: #aaa;
  margin-bottom: 1rem;
  font-family: 'Antonio', sans-serif;
}

.debug-log {
  width: 100%;
  height: 200px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  padding: 1rem;
  color: var(--cosmic-silver);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  resize: vertical;
}

/* ??? ANIMATIONS */
@keyframes pulse-core {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

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

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

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

@keyframes glow-pulse {
  0%, 100% { box-shadow: var(--aura-glow); }
  50% { box-shadow: var(--mind-field); }
}

/* ??? DESKTOP-ONLY DESIGN */

/* Status Bar - Desktop Layout */
.status-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--quantum-md);
  margin-top: var(--quantum-lg);
  flex-wrap: wrap;
}

.status-item {
  display: flex;
  align-items: center;
  gap: var(--quantum-xs);
  padding: var(--quantum-xs) var(--quantum-sm);
  background: transparent;
  border-radius: 20px;
  border: 1px solid rgba(39, 174, 96, 0.2);
  transition: all 0.3s ease;
}

.status-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.status-icon {
  font-size: 1.2rem;
}

.status-text {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Voice Controls - Desktop Layout */
.voice-controls {
  display: flex;
  gap: var(--quantum-sm);
  justify-content: center;
  margin-bottom: var(--quantum-md);
  flex-wrap: wrap;
}

.voice-controls .btn {
  flex: 0 1 auto;
  min-width: 150px;
}

.voice-controls .btn-large {
  padding: 16px 32px;
  font-size: 18px;
  min-width: 200px;
}

/* Language Controls - Desktop Layout */
.language-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--quantum-sm);
  margin: var(--quantum-md) 0;
}

.language-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--cosmic-silver);
}

.language-select {
  background: #000000;
  color: var(--cosmic-silver);
  border: 1px solid rgba(39, 174, 96, 0.2);
  padding: var(--quantum-xs) var(--quantum-sm);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.language-select:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #aaa;
}

.language-select:focus {
  outline: none;
  border-color: #aaa;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .logo-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .brand-text {
    text-align: center;
  }
  
  .status-bar {
    flex-direction: column;
    align-items: center;
  }
  
  .voice-controls {
    flex-direction: column;
  }
  
  .voice-controls .btn {
    width: 100%;
    margin-bottom: 10px;
  }
  
  /* ??? Mobile Language Controls */
  .language-controls {
    flex-direction: column;
    gap: var(--quantum-sm);
    padding: var(--quantum-md);
    margin: 0 var(--quantum-sm);
  }
  
  .language-label {
    font-size: 0.9rem;
  }
  
  .language-select {
    min-width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 1rem;
  }
  
  .btn {
    padding: 14px 24px;
    font-size: 16px;
    min-height: 48px;
    width: 100%;
    margin-bottom: 10px;
    touch-action: manipulation !important;
  }
  
  .score-display {
    flex-direction: column;
    text-align: center;
  }
  
  .score-item {
    min-width: auto;
    width: 100%;
  }
  
  .settings-grid {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .action-buttons .btn {
    width: 100%;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 1rem;
  }
  
  .footer-brand {
    justify-content: center;
    text-align: center;
  }
  
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  .result-tabs {
    flex-direction: column;
  }
  
  .tab-btn {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .tab-btn:last-child {
    border-bottom: none;
  }
  
  /* ??? MOBILE PERFORMANCE OPTIMIZATIONS */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  /* Re-enable essential animations */
  .loading-spinner {
    animation: spin 1s linear infinite !important;
  }
  
  /* Loading text styles */
  .loading-text {
    color: #aaa;
    font-size: 1.1rem;
    text-align: center;
    font-family: 'Antonio', sans-serif;
  }
  
  /* Transcript text styles */
  .interim-text {
    color: var(--astral-gold);
    font-style: italic;
    margin-bottom: 0.5rem;
    min-height: 1.2em;
    display: block;
    visibility: visible;
    opacity: 1;
  }
  
  .final-text {
    color: var(--success-green);
    font-weight: 600;
    margin-bottom: 0.5rem;
    min-height: 1.2em;
    display: block;
    visibility: visible;
    opacity: 1;
  }
  
  .score-circle {
    animation: none !important;
  }
}

/* ??? TABLET RESPONSIVE */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding: 1.5rem;
  }
  
  .cosmic-title {
    font-size: 2rem;
  }
  
  .settings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ??? LARGE DESKTOP */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
  
  .control-panel {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
      "voice analysis"
      "settings settings";
  }
  
  .voice-section {
    grid-area: voice;
  }
  
  .analysis-section {
    grid-area: analysis;
  }
  
  .settings-section {
    grid-area: settings;
  }
}

/* ??? HIGH DPI DISPLAYS */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .cosmic-title {
    text-shadow: var(--aura-glow), 0 0 5px rgba(255, 255, 255, 0.5);
  }
  
  .btn {
    box-shadow: var(--quantum-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
}

/* ??? DARK MODE ENHANCEMENTS */
@media (prefers-color-scheme: dark) {
  :root {
    --cosmic-void: #000000;
    --deep-space: #050505;
  }
  
  body {
    background: var(--cosmic-void) !important;
  }
}

/* ??? REDUCED MOTION ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .quantum-logo .logo-core {
    animation: none;
  }
  
  .ring {
    animation: none;
  }
  
  .score-circle {
    animation: none;
  }
}

/* ??? HIGH CONTRAST MODE */
@media (prefers-contrast: high) {
  :root {
    --cosmic-silver: #ffffff;
    --quantum-teal: #aaa;
    --mars-red: #ff0000;
    --astral-gold: #ffff00;
  }
  
  .btn {
    border: 2px solid currentColor;
  }
  
  .section {
    border: 2px solid rgba(255, 255, 255, 0.3);
  }
}

/* ??? PRINT STYLES */
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  .cosmic-header,
  .voice-controls,
  .action-buttons,
  .debug-section {
    display: none;
  }
  
  .analysis-display,
  .transcript-display {
    background: white;
    border: 1px solid black;
    padding: 1rem;
  }
}

/* ??? FOCUS ACCESSIBILITY */
.btn:focus,
.setting-select:focus,
.toggle-switch input:focus + .toggle-label {
  outline: 2px solid #aaa;
  outline-offset: 2px;
}

/* ??? LOADING STATES */
.loading-state {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.loading-state::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ??? ERROR STATES */
.error-state {
  border-color: var(--mars-red);
  background: rgba(255, 71, 87, 0.1);
}

.error-message {
  color: var(--mars-red);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.error-message::before {
  content: '??????';
}

/* ??? SUCCESS STATES */
.success-state {
  border-color: var(--success-green);
  background: rgba(56, 161, 105, 0.1);
}

.success-message {
  color: var(--success-green);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.success-message::before {
  content: '???';
}

/* ??? CUSTOM SCROLLBAR */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #aaa;
  border-radius: 4px;
  opacity: 0.7;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--astral-gold);
  opacity: 1;
}

/* ??? SELECTION STYLING */
::selection {
  background: #aaa;
  color: var(--cosmic-void);
}

::-moz-selection {
  background: #aaa;
  color: var(--cosmic-void);
}

/* ??? PLACEHOLDER STYLING */
::placeholder {
  color: var(--cosmic-silver);
  opacity: 0.6;
}

::-webkit-input-placeholder {
  color: var(--cosmic-silver);
  opacity: 0.6;
}

::-moz-placeholder {
  color: var(--cosmic-silver);
  opacity: 0.6;
}

/* ??? UTILITY CLASSES */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-sm { margin-bottom: var(--quantum-sm); }
.mb-md { margin-bottom: var(--quantum-md); }
.mb-lg { margin-bottom: var(--quantum-lg); }

.mt-sm { margin-top: var(--quantum-sm); }
.mt-md { margin-top: var(--quantum-md); }
.mt-lg { margin-top: var(--quantum-lg); }

.p-sm { padding: var(--quantum-sm); }
.p-md { padding: var(--quantum-md); }
.p-lg { padding: var(--quantum-lg); }

.hidden { display: none; }
.visible { display: block; }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* ??? COMPONENT STATES */
.is-active {
  background: var(--safe-gradient);
  color: white;
  box-shadow: var(--aura-glow);
}

.is-disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

.is-loading {
  position: relative;
  color: transparent;
}

.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ??? FINAL SPIN ANIMATION */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ??? MOBILE DEVICE FINAL OPTIMIZATIONS */
@media (max-width: 480px) {
  .cosmic-title {
    font-size: 2rem;
  }
  
  .quantum-logo {
    width: 60px;
    height: 60px;
  }
  
  .logo-core {
    width: 20px;
    height: 20px;
  }
  
  .ring-1 {
    width: 30px;
    height: 30px;
    top: 15px;
    left: 15px;
  }
  
  .ring-2 {
    width: 45px;
    height: 45px;
    top: 7.5px;
    left: 7.5px;
  }
  
  .ring-3 {
    width: 60px;
    height: 60px;
    top: 0;
    left: 0;
  }
  
  .score-circle {
    width: 100px;
    height: 100px;
  }
  
  .score-value {
    font-size: 1.5rem;
  }
  
  .section {
    padding: 1rem;
  }
  
  .transcript-display {
    min-height: 100px;
    max-height: 200px;
  }
  
  .debug-log {
    height: 150px;
  }
}

/* ??? VERY SMALL SCREENS */
@media (max-width: 320px) {
  .container {
    padding: 0.5rem !important;
  }
  
  .cosmic-title {
    font-size: 2rem;
  }
  
  .btn {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .section {
    padding: 0.75rem;
  }
}

/* ??? DESKTOP LANDSCAPE */

/* ??? SAFE AREA INSETS (iPhone X+) */
/* ??? DESKTOP SAFE AREAS */

/* ??? DESKTOP SCROLL ENFORCEMENT */

/* Mobile Error Popups */
.mobile-error-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.error-content {
  background: var(--cosmic-void);
  border: 2px solid var(--quantum-red);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  max-width: 300px;
}

.mobile-recording {
  background: radial-gradient(circle, rgba(255,68,68,0.1) 0%, var(--cosmic-void) 100%);
}

/* ??? NEW: Color Guide Section Styles */
.color-guide-section {
  background: transparent;
  border-radius: var(--quantum-md);
  padding: var(--quantum-lg);
  margin: var(--quantum-lg) 0;
  border: 1px solid rgba(39, 174, 96, 0.3);
}

.color-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--quantum-md);
  margin: var(--quantum-md) 0;
}

.color-item {
  display: flex;
  align-items: center;
  gap: var(--quantum-sm);
  padding: var(--quantum-sm);
  background: transparent;
  border-radius: var(--quantum-sm);
  border: 1px solid rgba(39, 174, 96, 0.2);
}

.color-swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--cosmic-silver);
  flex-shrink: 0;
}

.safe-color { background: var(--safe-green); }
.depression-color { background: var(--depression-orange); }
.redflag-color { background: var(--red-flag-red); }
.neutral-color { background: var(--neutral-blue); }

.color-info h4 {
  margin: 0 0 var(--quantum-xs) 0;
  color: var(--cosmic-silver);
  letter-spacing: 0.5px;
}

/* ???? Mental Health Conditions Guide */
.mental-health-guide {
  background: transparent;
  border-radius: var(--quantum-md);
  padding: var(--quantum-lg);
  margin: var(--quantum-lg) 0;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.mental-health-guide h3 {
  color: #aaa;
  margin: 0 0 var(--quantum-sm) 0;
  font-size: 1.3rem;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.guide-intro {
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 var(--quantum-md) 0;
  font-size: 0.95rem;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--quantum-md);
  margin: var(--quantum-md) 0;
}

.guide-item {
  display: flex;
  align-items: center;
  gap: var(--quantum-sm);
  padding: var(--quantum-sm);
  background: rgba(20, 20, 30, 0.4);
  border-radius: var(--quantum-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.guide-item:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(3px);
}

.guide-badge {
  min-width: 80px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  text-align: center;
}

.high-confidence {
  background: rgba(255, 68, 68, 0.2);
  border: 2px solid #ff4444;
  color: #ff4444;
}

.moderate-confidence {
  background: rgba(255, 235, 59, 0.2);
  border: 2px solid #ffeb3b;
  color: #ffeb3b;
}

.mild-severity {
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid #aaa;
  color: #aaa;
}

.moderate-severity {
  background: rgba(255, 235, 59, 0.2);
  border: 2px solid #ffeb3b;
  color: #ffeb3b;
}

.severe-severity {
  background: rgba(255, 68, 68, 0.2);
  border: 2px solid #ff4444;
  color: #ff4444;
}

.green-indicator {
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid #aaa;
  color: #aaa;
  font-size: 1.5rem;
}

.guide-info h4 {
  margin: 0 0 0.3rem 0;
  color: var(--cosmic-silver);
  font-size: 1rem;
}

.guide-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  line-height: 1.4;
}

.guide-disclaimer {
  margin-top: var(--quantum-md);
  padding: var(--quantum-sm);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--quantum-sm);
  border-left: 4px solid #aaa;
}

.guide-disclaimer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  line-height: 1.6;
}

.guide-disclaimer strong {
  color: #aaa;
}

.trait-value {
  color: #aaa;
  font-weight: bold;
  font-size: 1.1rem;
}

.mbti-description {
  padding: var(--quantum-md);
  background: var(--nebula-purple);
  border-radius: var(--quantum-sm);
  border: 1px solid var(--stellar-blue);
}

.mbti-description p {
  margin: 0;
  color: var(--cosmic-silver);
  line-height: 1.6;
}

/* ??? NEW: MOBILE SECTION NAVIGATION */
.mobile-section-nav {
  display: none; /* Hidden on desktop */
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-bottom: 2px solid #ff4444;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(255, 68, 68, 0.3);
}

.nav-tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 10px;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

.nav-tab {
  flex: 0 0 auto;
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 15px 20px;
  margin: 0 5px;
  border-radius: 25px 25px 0 0;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 80px;
}

.nav-tab:hover {
  background: rgba(255, 68, 68, 0.2);
  transform: translateY(-2px);
}

.nav-tab.active {
  background: linear-gradient(135deg, #ff4444 0%, #ff6b6b 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
}

.tab-icon {
  font-size: 20px;
  line-height: 1;
}

.tab-text {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ??? MOBILE SECTIONS - HORIZONTAL SCROLLING */
.mobile-section {
  display: none;
  width: 100%;
  min-height: calc(100vh - 200px);
  padding: 20px;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
  border-radius: 20px;
  margin: 20px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 68, 68, 0.2);
}

.mobile-section.active {
  display: block;
}

/* ??? DESKTOP LAYOUT - OLD DESIGN RESTORED */
.content-section {
  display: block !important; /* Always show on desktop */
  width: 100%;
  margin: 30px 0;
  padding: 30px;
  background: transparent;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(39, 174, 96, 0.3);
}

/* ??? DESKTOP OVERRIDE - Ensure content sections are visible on desktop */
@media (min-width: 769px) {
  #main-app .content-section {
    display: block !important; /* Force show on desktop */
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .container .content-section {
    display: block !important; /* Extra specificity */
  }
}

/* ??? MOBILE OPTIMIZED LAYOUT */
@media (max-width: 768px) {
  /* Show first section by default on mobile */
  #voice-section {
    display: block;
  }
  
  .section-header h2 {
    font-size: 24px;
    margin-bottom: 10px;
  }
  
  .section-description {
    font-size: 14px;
    line-height: 1.4;
  }
  
  /* ??? VOICE SECTION MOBILE OPTIMIZATION */
  .voice-controls {
    flex-direction: column;
    gap: 15px;
    order: 1;
  }

  .btn-large {
    width: 100%;
    padding: 18px;
    font-size: 18px;
  }

  /* ??? MOBILE LAYOUT: Transcript between stop/refresh buttons */
  .transcript-container-mobile {
    width: 100%;
    margin: 15px 0;
    background: transparent;
    border: 1px solid rgba(39, 174, 96, 0.2);
    border-radius: 12px;
    overflow: hidden;
  }

  .transcript-container-mobile .transcript-header {
    padding: 12px 15px;
    background: transparent;
    border-bottom: 1px solid rgba(39, 174, 96, 0.2);
  }

  .transcript-container-mobile .transcript-header h3 {
    font-size: 1.1rem;
    margin: 0;
  }

  .transcript-container-mobile .transcript-status {
    padding: 4px 8px;
    font-size: 0.8rem;
  }

  .transcript-container-mobile .transcript-display {
    padding: 12px 15px;
    min-height: 240px;
    max-height: 450px;
    font-size: 14px;
  }

  /* Ensure transcript is visible on mobile */
  .transcript-container {
    display: block !important;
    width: 100%;
    margin: 15px 0;
    background: transparent;
    border: 1px solid rgba(39, 174, 96, 0.2);
    border-radius: 12px;
    overflow: hidden;
  }

  /* Ensure proper mobile display */
  #voice-section {
    display: block !important;
  }

  .transcript-header {
    padding: 12px 15px;
    background: transparent;
    border-bottom: 1px solid rgba(39, 174, 96, 0.2);
  }

  .transcript-header h3 {
    font-size: 1.1rem;
    margin: 0;
  }

  .transcript-status {
    padding: 4px 8px;
    font-size: 0.8rem;
  }

  .transcript-display {
    padding: 12px 15px !important;
    min-height: 240px !important;
    max-height: 450px !important;
    font-size: 14px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: var(--cosmic-silver) !important;
  }
  
  #transcript {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* ??? ANALYSIS SECTION MOBILE OPTIMIZATION */
  .mbti-section {
    background: transparent;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
  }
  
  .safety-score-container {
    margin: 20px 0;
  }
  
  .score-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
  }
  
  /* ??? COLOR GUIDE MOBILE OPTIMIZATION */
  .color-guide-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .color-item {
    background: transparent;
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(39, 174, 96, 0.2);
  }
  
  /* ??? SETTINGS MOBILE OPTIMIZATION */
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .setting-group {
    background: transparent;
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(39, 174, 96, 0.2);
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
  }
  
  .action-buttons .btn {
    width: 100%;
    padding: 15px;
  }

  /* ???? MUSIC SECTION MOBILE OPTIMIZATION */
  .music-player-container {
    padding: 1rem;
    border-radius: 12px;
  }

  .now-playing {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    text-align: center;
  }

  .track-info {
    width: 100%;
    text-align: center;
  }

  .track-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    word-break: break-word;
  }

  .track-artist {
    font-size: 0.85rem;
  }

  .player-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    width: 100%;
  }

  .control-btn {
    min-width: 48px;
    height: 48px;
    font-size: 1.1rem;
    padding: 0.5rem;
  }

  .progress-container {
    margin-bottom: 1rem;
  }

  .progress-bar {
    height: 8px;
    margin-bottom: 0.5rem;
  }

  .time-display {
    font-size: 0.75rem;
    padding: 0 0.5rem;
  }

  .music-actions {
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .music-btn {
    width: 100%;
    padding: 0.875rem;
    font-size: 0.9rem;
    min-height: 48px;
    justify-content: center;
  }

  .music-btn .btn-icon {
    font-size: 1rem;
  }

  .playlist-container {
    max-height: 400px;
    padding: 1rem;
  }

  .playlist-header {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .playlist-header h3 {
    font-size: 1rem;
    width: 100%;
  }

  .close-playlist {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.85rem;
    min-height: 40px;
  }

  .playlist-item {
    padding: 0.75rem;
    font-size: 0.9rem;
    word-break: break-word;
  }
}

/* ??? TABLET OPTIMIZATION */
@media (min-width: 769px) and (max-width: 1024px) {
  .mobile-section-nav {
    display: block;
  }
  
  .nav-tabs {
    justify-content: center;
  }
  
  .mobile-section {
    margin: 15px;
    padding: 25px;
  }
  
  .color-guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .settings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ??? DESKTOP - HIDE MOBILE NAV, SHOW VERTICAL LAYOUT */
@media (min-width: 1025px) {
  .mobile-section-nav {
    display: none;
  }
  
  .mobile-section {
    display: block !important;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    min-height: auto;
  }
  
  .control-panel {
    display: block;
  }
  
  /* Restore original desktop layout */
  .voice-section,
  .analysis-section,
  .color-guide-section,
  .settings-section {
    display: block;
    margin-bottom: 40px;
  }
}

/* ??? DESKTOP GESTURES */
.transcript-display,
.analysis-display {
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ff4444 #1a1a2e;
}

.transcript-display::-webkit-scrollbar,
.analysis-display::-webkit-scrollbar {
  width: 6px;
}

.transcript-display::-webkit-scrollbar-track,
.analysis-display::-webkit-scrollbar-track {
  background: #1a1a2e;
  border-radius: 3px;
}

.transcript-display::-webkit-scrollbar-thumb,
.analysis-display::-webkit-scrollbar-thumb {
  background: #ff4444;
  border-radius: 3px;
}

/* ??? ANIMATIONS FOR SECTION TRANSITIONS */
.mobile-section {
  animation: fadeInUp 0.5s ease-out;
}

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

/* ??? ACTIVE SECTION INDICATOR */
.mobile-section.active {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ??? NAVIGATION ACTIVE STATE */
.nav-tab.active {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
  }
  50% {
    box-shadow: 0 4px 25px rgba(255, 68, 68, 0.6);
  }
}

/* ??? NEW: Music Player Section Styles */
.music-player-container {
  background: var(--deep-space);
  border-radius: var(--quantum-md);
  padding: var(--quantum-lg);
  border: 1px solid var(--nebula-purple);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.now-playing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--quantum-md);
  padding: var(--quantum-md);
  background: rgba(16, 33, 62, 0.5);
  border-radius: var(--quantum-sm);
  border: 1px solid var(--stellar-blue);
}

.track-info {
  flex: 1;
}

.track-title {
  color: #aaa;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-family: 'Inter', sans-serif;
}

.track-artist {
  color: var(--cosmic-silver);
  font-size: 0.9rem;
  opacity: 0.8;
}

.player-controls {
  display: flex;
  gap: var(--quantum-sm);
}

.control-btn {
  background: var(--nebula-purple);
  border: 1px solid var(--stellar-blue);
  color: #aaa;
  padding: var(--quantum-sm);
  border-radius: var(--quantum-sm);
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-btn:hover {
  background: var(--stellar-blue);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.control-btn.play-pause {
  background: #aaa;
  color: var(--cosmic-void);
  font-weight: bold;
}

.progress-container {
  margin-bottom: var(--quantum-md);
}

.progress-bar {
  background: var(--nebula-purple);
  height: 6px;
  border-radius: 3px;
  margin-bottom: var(--quantum-xs);
  border: 1px solid var(--stellar-blue);
  overflow: hidden;
}

.progress {
  background: linear-gradient(90deg, #aaa, var(--astral-gold));
  height: 100%;
  width: 0%;
  transition: width 0.1s ease;
  border-radius: 3px;
}

.time-display {
  display: flex;
  justify-content: space-between;
  color: var(--cosmic-silver);
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
}

.music-actions {
  display: flex;
  gap: var(--quantum-md);
  margin-bottom: var(--quantum-md);
}

.music-btn {
  display: flex;
  align-items: center;
  gap: var(--quantum-xs);
  padding: var(--quantum-md);
  background: var(--nebula-purple);
  border: 1px solid var(--stellar-blue);
  border-radius: var(--quantum-sm);
  color: #aaa;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  flex: 1;
  justify-content: center;
}

.music-btn:hover {
  background: var(--stellar-blue);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  color: #aaa;
  text-decoration: none;
}

.music-btn .btn-icon {
  font-size: 1.2rem;
}

.nft-link {
  background: linear-gradient(45deg, var(--astral-gold), var(--jupiter-orange));
  color: var(--cosmic-void);
  font-weight: 600;
}

.nft-link:hover {
  background: linear-gradient(45deg, var(--jupiter-orange), var(--astral-gold));
  color: var(--cosmic-void);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
}

.playlist-container {
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid var(--stellar-blue);
  border-radius: var(--quantum-sm);
  padding: var(--quantum-md);
  max-height: 300px;
  overflow-y: auto;
}

.playlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--quantum-md);
  padding-bottom: var(--quantum-sm);
  border-bottom: 1px solid var(--nebula-purple);
}

.playlist-header h3 {
  color: #aaa;
  margin: 0;
  font-size: 1.1rem;
}

.close-playlist {
  background: var(--mars-red);
  border: none;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.close-playlist:hover {
  background: #ff6b6b;
}

.playlist-items {
  display: flex;
  flex-direction: column;
  gap: var(--quantum-xs);
}

.playlist-item {
  padding: var(--quantum-sm);
  background: rgba(16, 33, 62, 0.3);
  border: 1px solid var(--nebula-purple);
  border-radius: var(--quantum-xs);
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--cosmic-silver);
}

.playlist-item:hover {
  background: var(--nebula-purple);
  border-color: #aaa;
  color: #aaa;
}

.playlist-item.active {
  background: var(--stellar-blue);
  border-color: #aaa;
  color: #aaa;
  font-weight: 600;
}

/* Desktop optimizations for music player */

/* ??? NEW: Admin Music Upload Section Styles - Minimal Design */
.setting-row {
  display: flex;
  align-items: center;
  gap: var(--quantum-md);
  margin-bottom: var(--quantum-md);
  flex-wrap: wrap;
}

.setting-input {
  background: var(--nebula-purple);
  border: 1px solid var(--stellar-blue);
  border-radius: var(--quantum-sm);
  padding: var(--quantum-sm) var(--quantum-md);
  color: var(--cosmic-silver);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 200px;
}

.setting-input:focus {
  outline: none;
  border-color: #aaa;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.setting-description {
  color: var(--cosmic-silver);
  margin: 0 0 var(--quantum-md) 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

.upload-info {
  color: var(--cosmic-silver);
  font-size: 0.8rem;
  opacity: 0.7;
  margin-left: auto;
}

/* Admin Controls Section */
.admin-controls {
  background: rgba(237, 137, 54, 0.05);
  border: 1px solid rgba(237, 137, 54, 0.3);
  border-radius: var(--quantum-sm);
  padding: var(--quantum-md);
  margin-top: var(--quantum-md);
}

.admin-controls .setting-row {
  justify-content: center;
  gap: var(--quantum-md);
}

.upload-queue {
  background: rgba(16, 33, 62, 0.2);
  border: 1px solid var(--stellar-blue);
  border-radius: var(--quantum-sm);
  padding: var(--quantum-md);
  margin: var(--quantum-md) 0;
}

.upload-queue h4 {
  color: #aaa;
  margin: 0 0 var(--quantum-md) 0;
  font-size: 1rem;
}

.queue-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--quantum-sm);
  background: rgba(16, 33, 62, 0.3);
  border: 1px solid var(--nebula-purple);
  border-radius: var(--quantum-xs);
  margin-bottom: var(--quantum-xs);
}

.queue-item-info {
  flex: 1;
}

.queue-item-name {
  color: var(--cosmic-silver);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.queue-item-size {
  color: var(--cosmic-silver);
  font-size: 0.8rem;
  opacity: 0.7;
}

.queue-item-remove {
  background: var(--mars-red);
  border: none;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
}

.queue-item-remove:hover {
  background: #ff6b6b;
}

.upload-controls {
  display: flex;
  gap: var(--quantum-md);
  flex-wrap: wrap;
}

.upload-progress {
  background: var(--nebula-purple);
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  margin-top: var(--quantum-xs);
}

.upload-progress-bar {
  background: linear-gradient(90deg, #aaa, var(--astral-gold));
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
}

.upload-status {
  padding: var(--quantum-md);
  border-radius: var(--quantum-sm);
  margin-top: var(--quantum-md);
  font-weight: 600;
}

.upload-status.success {
  background: rgba(5, 150, 105, 0.2);
  color: var(--success-green);
  border: 1px solid var(--success-green);
}

.upload-status.error {
  background: rgba(220, 38, 38, 0.2);
  color: var(--mars-red);
  border: 1px solid var(--mars-red);
}

.upload-status.warning {
  background: rgba(255, 165, 0, 0.2);
  color: var(--jupiter-orange);
  border: 1px solid var(--jupiter-orange);
}

/* Desktop optimizations for admin section */

/* LOGIN SYSTEM REMOVED */




/* ??? NEW: Voice Calibration Styles */
.voice-calibration-status {
  margin-bottom: var(--quantum-md);
  padding: var(--quantum-md);
  background: rgba(16, 33, 62, 0.3);
  border: 1px solid var(--stellar-blue);
  border-radius: var(--quantum-sm);
}

.calibration-info {
  display: flex;
  align-items: center;
  gap: var(--quantum-sm);
}

.calibration-icon {
  font-size: 1.2rem;
}

.calibration-text {
  color: var(--cosmic-silver);
  font-weight: 600;
}

.calibration-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal-content {
  background: var(--deep-space);
  color: var(--cosmic-silver);
  border-radius: var(--quantum-lg);
  padding: var(--quantum-xl);
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--quantum-lg);
}

.modal-header h3 {
  color: #aaa;
  margin: 0;
  font-size: 1.3rem;
}

.modal-close {
  background: var(--mars-red);
  border: none;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

.modal-close:hover {
  background: #ff6b6b;
}

.calibration-instructions {
  margin-bottom: var(--quantum-lg);
}

.calibration-instructions p {
  color: var(--cosmic-silver);
  margin-bottom: var(--quantum-md);
}

.calibration-text {
  background: rgba(16, 33, 62, 0.3);
  border: 1px solid var(--stellar-blue);
  border-radius: var(--quantum-sm);
  padding: var(--quantum-lg);
  color: #aaa;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: var(--quantum-lg);
}

.calibration-controls {
  display: flex;
  gap: var(--quantum-md);
  justify-content: center;
  margin-bottom: var(--quantum-lg);
}

.calibration-progress {
  text-align: center;
}

.progress-text {
  color: var(--cosmic-silver);
  margin-bottom: var(--quantum-md);
  font-weight: 600;
}

.progress-bar {
  background: var(--nebula-purple);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--stellar-blue);
}

.progress-fill {
  background: linear-gradient(90deg, #aaa, var(--astral-gold));
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 4px;
}

/* ??? NEW: Speaker Identification Styles */
.speaker-identification {
  background: rgba(16, 33, 62, 0.3);
  border: 1px solid var(--stellar-blue);
  border-radius: var(--quantum-sm);
  padding: var(--quantum-md);
  margin-bottom: var(--quantum-md);
}

.speaker-badges {
  display: flex;
  gap: var(--quantum-md);
  margin-bottom: var(--quantum-md);
  justify-content: center;
}

.speaker-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--quantum-xs);
  padding: var(--quantum-md);
  background: rgba(16, 33, 62, 0.5);
  border: 2px solid var(--stellar-blue);
  border-radius: var(--quantum-sm);
  min-width: 80px;
  transition: all 0.3s ease;
}

.speaker-badge.user.active {
  border-color: #aaa;
  background: rgba(255, 255, 255, 0.06);
}

.speaker-badge.other.active {
  border-color: var(--jupiter-orange);
  background: rgba(255, 165, 0, 0.2);
}

.speaker-icon {
  font-size: 1.5rem;
}

.speaker-label {
  color: var(--cosmic-silver);
  font-weight: 600;
  font-size: 0.8rem;
}

.speaker-confidence {
  color: #aaa;
  font-size: 0.75rem;
  font-family: 'Inter', sans-serif;
}

.speaker-override {
  display: flex;
  gap: var(--quantum-sm);
  justify-content: center;
}

/* Responsive adjustments for speaker controls */
@media (max-width: 640px) {
  .speaker-override {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ??? LOGIN SYSTEM STYLES */

/* Button Base Styles */
.btn {
  padding: var(--quantum-sm) var(--quantum-md);
  border: 1px solid var(--quantum-blue);
  border-radius: var(--quantum-xs);
  background: transparent;
  color: var(--cosmic-silver);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  font-family: inherit;
}

.btn:hover {
  background: var(--quantum-blue);
  color: var(--deep-space);
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.btn-primary {
  background: #aaa;
  color: var(--cosmic-void);
  border-color: #aaa;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  background: #aaa;
  border-color: #aaa;
  color: var(--cosmic-void);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #aaa;
  border-color: #aaa;
}

.btn-outline:hover {
  background: #aaa;
  color: var(--cosmic-void);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.btn-small {
  padding: var(--quantum-xs) var(--quantum-sm);
  font-size: 0.9rem;
  min-height: 32px;
}

.btn-large {
  padding: var(--quantum-md) var(--quantum-lg);
  font-size: 1.1rem;
  min-height: 48px;
}

/* User Section in Header */
.user-section {
  display: flex;
  align-items: center;
  gap: var(--quantum-md);
  margin-left: auto;
  padding: var(--quantum-sm);
}

.user-controls {
  display: flex;
  align-items: center;
  gap: var(--quantum-md);
}

.user-info {
  display: flex;
  align-items: center;
  gap: var(--quantum-xs);
  color: #aaa;
  font-weight: 500;
}

.user-icon {
  font-size: 1.2rem;
}

.login-controls {
  display: flex;
  gap: var(--quantum-sm);
}

/* Login Modal */
.login-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.login-modal .modal-content {
  background: var(--deep-space);
  border: 1px solid #aaa;
  border-radius: var(--quantum-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.2);
  max-width: 400px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--quantum-lg);
  border-bottom: 1px solid #aaa;
}

.modal-header h3 {
  color: var(--cosmic-silver);
  margin: 0;
  font-size: 1.3rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--cosmic-silver);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: #aaa;
  color: var(--cosmic-void);
}

.modal-body {
  padding: var(--quantum-lg);
}

.input-group {
  margin-bottom: var(--quantum-md);
}

.input-group label {
  display: block;
  color: var(--cosmic-silver);
  margin-bottom: var(--quantum-xs);
  font-weight: 500;
}

.input-group input {
  width: 100%;
  padding: var(--quantum-sm);
  background: var(--void-black);
  border: 1px solid #aaa;
  border-radius: var(--quantum-xs);
  color: var(--cosmic-silver);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: #aaa;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: var(--quantum-sm);
  margin-top: var(--quantum-lg);
}

.form-actions .btn {
  width: 100%;
  justify-content: center;
}

/* ??? LOGIN/REGISTER BUTTONS - SAME SIZE */
#login-btn, #register-btn {
  min-width: 100px;
  width: auto;
  padding: var(--quantum-sm) var(--quantum-md);
  font-size: 0.9rem;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-message {
  margin-top: var(--quantum-md);
  padding: var(--quantum-sm);
  border-radius: var(--quantum-xs);
  text-align: center;
  font-weight: 500;
  display: none;
}

.form-message.success {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid #22c55e;
  display: block;
}

.form-message.error {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid #ef4444;
  display: block;
}

.form-message.info {
  background: rgba(255, 255, 255, 0.06);
  color: #aaa;
  border: 1px solid #aaa;
  display: block;
}

/* Modern Login Modal Redesign */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.modal-content-modern {
  position: relative;
  background: linear-gradient(135deg, #0a0f0d 0%, #0d1f1a 50%, #0a0f0d 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 50px rgba(255, 255, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  max-width: 440px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  z-index: 1;
}

.modal-close-modern {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
}

.modal-close-modern:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
  transform: scale(1.05);
}

.modal-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.modal-logo {
  width: 70px;
  height: 70px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #0d1f1a 0%, #1a3d30 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.modal-logo img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.modal-title {
  font-family: 'Antonio', sans-serif;
  font-size: 1.8rem;
  margin: 0 0 0.5rem;
  letter-spacing: 0.5px;
}

.modal-title .wead-color {
  color: #ffffff;
}

.modal-title .redflag-color {
  color: #ef4444;
}

.modal-subtitle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin: 0;
  font-family: 'Inter', sans-serif;
}

.modal-body-modern {
  margin-bottom: 1.5rem;
}

.input-group-modern {
  margin-bottom: 1.5rem;
}

.input-group-modern label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
}

.input-group-modern label svg {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.6);
}

.input-group-modern input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

.input-group-modern input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.input-group-modern input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-modern-primary {
  width: 100%;
  padding: 0.95rem 1.5rem;
  background: linear-gradient(135deg, #aaa 0%, #00a884 100%);
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
  margin-bottom: 0.75rem;
}

.btn-modern-primary:hover {
  background: linear-gradient(135deg, #bbb 0%, #aaa 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

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

.btn-modern-primary .btn-arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.btn-modern-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-modern-text {
  width: 100%;
  padding: 0.75rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-modern-text:hover {
  color: #aaa;
}

.btn-modern-text strong {
  color: #aaa;
  font-weight: 600;
}

.form-message-modern {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  font-size: 0.9rem;
  display: none;
  font-family: 'Inter', sans-serif;
}

.form-message-modern.success {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
  display: block;
}

.form-message-modern.error {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  display: block;
}

.form-message-modern.info {
  background: rgba(255, 255, 255, 0.15);
  color: #aaa;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: block;
}

.modal-footer-modern {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-footer-modern p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  margin: 0;
  font-family: 'Inter', sans-serif;
}

/* ===== Login Modal Enhancements ===== */
.modal-benefits {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 24px 8px;
  flex-wrap: wrap;
}
.benefit-pill {
  background: rgba(255, 255, 255, 0.06);
  color: #aaa;
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.password-strength {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.strength-bars {
  display: flex;
  gap: 4px;
  flex: 1;
}
.strength-seg {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
  transition: background 0.3s;
}
.strength-label {
  font-size: 0.7rem;
  font-family: 'Inter', sans-serif;
  min-width: 48px;
  text-align: right;
}

/* ===== PayPal Button Wrap ===== */
.paypal-btn-wrap {
  min-height: 55px;
  margin-top: 12px;
}

/* ===== Billing Section ===== */
.billing-section {
  max-width: 600px;
  margin: 0 auto 32px;
}
.billing-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  overflow: hidden;
}
.billing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.billing-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  font-family: 'Inter', sans-serif;
}
.billing-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
}
.billing-badge.active {
  background: rgba(255, 255, 255, 0.15);
  color: #aaa;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.billing-badge.trial {
  background: rgba(100, 140, 255, 0.15);
  color: #648cff;
  border: 1px solid rgba(100, 140, 255, 0.3);
}
.billing-badge.expired {
  background: rgba(255, 170, 0, 0.15);
  color: #ffaa00;
  border: 1px solid rgba(255, 170, 0, 0.3);
}
.billing-body {
  padding: 20px 24px;
}
.billing-detail {
  margin: 0 0 6px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  font-family: 'Inter', sans-serif;
}
.billing-detail strong {
  color: rgba(255,255,255,0.9);
}
.billing-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-billing-cancel {
  background: rgba(255, 68, 68, 0.1);
  color: #ff6b6b;
  border: 1px solid rgba(255, 68, 68, 0.25);
  padding: 7px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.78rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}
.btn-billing-cancel:hover {
  background: rgba(255, 68, 68, 0.2);
}
.btn-billing-upgrade {
  background: rgba(255, 255, 255, 0.06);
  color: #aaa;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 7px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.78rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}
.btn-billing-upgrade:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Profile Avatar Upload Button */
.avatar-upload-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #aaa 0%, #00a884 100%);
  border: 3px solid #0a0f0d;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.4);
}

.avatar-upload-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.6);
}

.avatar-upload-btn svg {
  width: 20px;
  height: 20px;
  color: #ffffff;
}

/* Desktop responsive layout for auth actions */
@media (min-width: 768px) {
  .form-actions {
    flex-direction: row;
    justify-content: center;
  }

  .form-actions .btn {
    width: auto;
    min-width: 160px;
  }
}

/* ??? FIXED: MBTI Warning Text Styling */
.warning-text {
  color: var(--warning-orange);
  font-style: italic;
  background: rgba(237, 137, 54, 0.1);
  padding: 8px 12px;
  border-radius: 6px;
  border-left: 3px solid var(--warning-orange);
  margin: 8px 0;
}

/* ??? MBTI Loading Indicator Styling */
.mbti-loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin: 12px 0;
}

.mbti-loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #aaa;
  border-radius: 50%;
  animation: mbti-spin 1s linear infinite;
}

.mbti-loading-text {
  color: #aaa;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
}

@keyframes mbti-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===============================
   ???? MOBILE CALIBRATION MODAL STYLES
   =============================== */

.mobile-calibration-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.mobile-calibration-modal.active {
  opacity: 1;
  visibility: visible;
}

.mobile-calibration-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
}

.mobile-calibration-container {
  position: relative;
  width: 95%;
  max-width: 400px;
  margin: 20px auto;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.3);
  overflow: hidden;
  transform: translateY(50px);
  transition: transform 0.3s ease;
}

.mobile-calibration-modal.active .mobile-calibration-container {
  transform: translateY(0);
}

.mobile-calibration-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid #aaa;
}

.mobile-calibration-header h2 {
  color: #aaa;
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
}

.mobile-calibration-close {
  background: none;
  border: none;
  color: #aaa;
  font-size: 28px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.2s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-calibration-close:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: scale(1.1);
}

.mobile-calibration-content {
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-calibration-instructions {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #aaa;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 20px;
}

.mobile-calibration-instructions strong {
  color: #aaa;
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.mobile-calibration-instructions p {
  color: #e0e0e0;
  margin: 0;
  line-height: 1.5;
  font-size: 0.95rem;
}

.mobile-calibration-note {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  margin-top: 8px !important;
}

.mobile-calibration-transcript {
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
}

.mobile-transcript-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 8px;
}

.mobile-transcript-header h3 {
  color: #aaa;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.mobile-transcript-status {
  color: #aaa;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.8;
}

.mobile-transcript-display {
  position: relative;
  min-height: 60px;
  max-height: 120px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-placeholder-text {
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  text-align: center;
  margin: 0;
  line-height: 1.4;
}

.mobile-final-text {
  color: #e0e0e0;
  margin-bottom: 8px;
  line-height: 1.4;
  display: none;
}

.mobile-interim-text {
  color: #aaa;
  font-style: italic;
  line-height: 1.4;
  opacity: 0.8;
  display: none;
}

/* Scrollbar styling for mobile transcript */
.mobile-transcript-display::-webkit-scrollbar {
  width: 4px;
}

.mobile-transcript-display::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.mobile-transcript-display::-webkit-scrollbar-thumb {
  background: #aaa;
  border-radius: 2px;
}

.mobile-transcript-display::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.mobile-voice-visualizer {
  margin: 25px 0;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  text-align: center;
}

.mobile-voice-bars {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 8px;
  height: 60px;
  margin-bottom: 20px;
}

.mobile-voice-bar {
  width: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  transition: all 0.3s ease;
  min-height: 5px;
}

.mobile-voice-status {
  margin-top: 15px;
}

.mobile-voice-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-voice-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #666;
  transition: background-color 0.3s ease;
  animation: pulse 2s infinite;
}

.mobile-voice-text {
  color: #e0e0e0;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Status-specific styles */
.status-waiting .mobile-voice-text { color: #999; }
.status-listening .mobile-voice-text { color: #007bff; }
.status-detected .mobile-voice-text { color: #aaa; }
.status-processing .mobile-voice-text { color: #ffa502; }
.status-complete .mobile-voice-text { color: #38a169; }
.status-error .mobile-voice-text { color: #e53e3e; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Voice bars animation */
.mobile-voice-bar {
  transform-origin: bottom;
  transition: all 0.2s ease;
}

.mobile-voice-bar.active {
  background: linear-gradient(180deg, #aaa, #999);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.mobile-calibration-text {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  font-style: italic;
  line-height: 1.6;
  color: #e0e0e0;
  font-size: 1rem;
  text-align: center;
  position: relative;
}

.mobile-calibration-text::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 10px;
  font-size: 3rem;
  color: #aaa;
  opacity: 0.3;
}

.mobile-calibration-text::after {
  content: '"';
  position: absolute;
  bottom: -30px;
  right: 10px;
  font-size: 3rem;
  color: #aaa;
  opacity: 0.3;
}

.mobile-calibration-controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.mobile-calibration-btn {
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px; /* Touch-friendly size */
  -webkit-tap-highlight-color: transparent;
}

.mobile-calibration-btn:active {
  transform: scale(0.98);
}

.mobile-calibration-btn-primary {
  background: #aaa;
  color: #1a1a2e;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.mobile-calibration-btn-primary:hover:not(:disabled) {
  background: #999;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.mobile-calibration-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #aaa;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.mobile-calibration-btn-secondary:hover:not(:disabled) {
  background: #aaa;
  color: #1a1a2e;
}

.mobile-calibration-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.mobile-btn-icon {
  font-size: 1.2rem;
}

.mobile-btn-text {
  font-size: 1rem;
  font-weight: 600;
}

.mobile-calibration-progress {
  text-align: center;
  margin-bottom: 20px;
}

.mobile-calibration-progress p {
  color: #aaa;
  margin-bottom: 15px;
  font-size: 1.1rem;
  font-weight: 500;
}

.mobile-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.mobile-progress-fill {
  height: 100%;
  background: #aaa;
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.mobile-calibration-status {
  margin-top: 20px;
  display: none;
}

.mobile-status {
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.4;
}

.mobile-status-success {
  background: rgba(56, 161, 105, 0.2);
  color: #38a169;
  border: 1px solid #38a169;
}

.mobile-status-error {
  background: rgba(229, 62, 62, 0.2);
  color: #e53e3e;
  border: 1px solid #e53e3e;
}

.mobile-status-info {
  background: rgba(49, 130, 206, 0.2);
  color: #3182ce;
  border: 1px solid #3182ce;
}

.mobile-status-warning {
  background: rgba(237, 137, 54, 0.2);
  color: #ed8936;
  border: 1px solid #ed8936;
}

/* ===============================
   ???? MOBILE RESPONSIVE ADJUSTMENTS
   =============================== */

@media (max-width: 480px) {
  .mobile-calibration-container {
    width: 98%;
    margin: 10px auto;
    border-radius: 15px;
  }

  .mobile-calibration-header {
    padding: 15px;
  }

  .mobile-calibration-header h2 {
    font-size: 1.2rem;
  }

  .mobile-calibration-content {
    padding: 15px;
  }

  .mobile-calibration-btn {
    padding: 14px 20px;
    font-size: 1rem;
    min-height: 50px;
  }

  .mobile-calibration-text {
    padding: 15px;
    font-size: 0.9rem;
  }
}

/* ===============================
   ???? TOUCH DEVICE OPTIMIZATIONS
   =============================== */

@media (hover: none) and (pointer: coarse) {
  .mobile-calibration-btn {
    min-height: 48px;
  }

  .mobile-calibration-close {
    min-width: 44px;
    min-height: 44px;
  }

  .mobile-calibration-text {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
}

/* ===============================
   ???? DARK MODE & HIGH CONTRAST
   =============================== */

@media (prefers-color-scheme: dark) {
  .mobile-calibration-container {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0f3460 100%);
  }
}

@media (prefers-contrast: high) {
  .mobile-calibration-container {
    border-width: 3px;
  }

  .mobile-calibration-btn {
    border-width: 3px;
  }

  .mobile-status {
    border-width: 2px;
  }
}

/* ===============================
   ???? REDUCED MOTION SUPPORT
   =============================== */

@media (prefers-reduced-motion: reduce) {
  .mobile-calibration-modal,
  .mobile-calibration-container,
  .mobile-calibration-btn,
  .mobile-calibration-close {
    transition: none;
  }

  .mobile-calibration-modal.active .mobile-calibration-container {
    transform: none;
  }

  .mobile-calibration-btn:active {
    transform: none;
  }

  .mobile-calibration-close:hover {
    transform: none;
  }
}

/* =========================
   ??????? Desktop Voice Calibration
   ========================= */

.voice-calibration-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: modalFadeIn 0.25s ease;
}

.voice-calibration-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.voice-calibration-dialog {
  position: relative;
  width: min(540px, 92vw);
  max-height: 90vh;
  background: rgba(10, 10, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(255, 255, 255, 0.25);
  overflow-y: auto;
}

.voice-calibration-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 2rem;
  line-height: 1;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.voice-calibration-close:hover {
  color: #fff;
  transform: scale(1.05);
}

.voice-calibration-header h2 {
  font-family: 'Antonio', sans-serif;
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: #aaa;
}

.voice-calibration-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.5;
}

.voice-calibration-body {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.voice-calibration-tips {
  list-style: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px 22px;
  display: grid;
  gap: 10px;
}

.voice-calibration-tips li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.voice-calibration-tips li::before {
  content: '???';
  font-size: 1rem;
  line-height: 1.4;
}

.voice-calibration-status {
  font-size: 1.05rem;
  font-weight: 600;
  color: #aaa;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  padding: 12px 16px;
}

.voice-calibration-status.status-info {
  color: #aaa;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
}

.voice-calibration-status.status-success {
  color: var(--safe-green);
  background: rgba(56, 161, 105, 0.12);
  border-color: rgba(56, 161, 105, 0.35);
}

.voice-calibration-status.status-warning {
  color: var(--warning-orange);
  background: rgba(237, 137, 54, 0.12);
  border-color: rgba(237, 137, 54, 0.35);
}

.voice-calibration-status.status-error {
  color: var(--danger-red);
  background: rgba(229, 62, 62, 0.12);
  border-color: rgba(229, 62, 62, 0.35);
}

.voice-calibration-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.voice-calibration-progress {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.voice-calibration-progress .progress-text {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.voice-calibration-progress .progress-bar {
  position: relative;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  overflow: hidden;
}

.voice-calibration-progress .progress-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, #aaa, #4facfe, #764ba2);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
  transition: width 0.35s ease;
}

.voice-calibration-summary {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px;
}

body.modal-open {
  overflow: hidden;
}

.summary-title {
  font-family: 'Antonio', sans-serif;
  font-size: 1.1rem;
  color: #aaa;
  margin-bottom: 16px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.summary-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.summary-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--astral-gold);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .voice-calibration-dialog {
    padding: 24px 20px;
  }

  .voice-calibration-controls {
    flex-direction: column;
    gap: 12px;
  }
}

/* =====================================================
   ACCESS PAYMENT SYSTEM STYLES
   ===================================================== */

/* Access Status Badge */
.access-status-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  margin: 1rem 0;
  border-radius: 15px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  animation: slideDown 0.5s ease;
}

.access-status-badge .status-icon {
  font-size: 1.5rem;
}

.access-status-badge .status-text {
  flex: 1;
  color: white;
  font-weight: 600;
}

.access-status-badge .status-days {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
}

.access-status-badge.access-trial {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  border: 1px solid rgba(79, 172, 254, 0.5);
  box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.access-status-badge.access-active {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  border: 1px solid rgba(5, 150, 105, 0.5);
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.access-status-badge.access-grace {
  background: linear-gradient(135deg, #ff8c00 0%, #ffa500 100%);
  border: 1px solid rgba(255, 140, 0, 0.5);
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.access-status-badge.access-expired {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  border: 1px solid rgba(220, 38, 38, 0.5);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.access-status-badge .btn-renew {
  background: white;
  color: var(--mars-red);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.access-status-badge .btn-renew:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Wallet Connect Button */
#wallet-connect-status {
  cursor: pointer;
}

#wallet-connect-status:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Payment Modal */
.payment-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.payment-modal-content {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(255, 255, 255, 0.3);
  animation: slideUp 0.4s ease;
}

.payment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.payment-header h2 {
  font-family: 'Antonio', sans-serif;
  color: #aaa;
  font-size: 1.5rem;
  margin: 0;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.close-modal {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.payment-body {
  padding: 1.5rem;
}

.payment-description {
  color: var(--cosmic-silver);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid #aaa;
  border-radius: 5px;
}

.payment-form {
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: #aaa;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

.form-group select,
.form-group input {
  width: 100%;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  color: white;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: #aaa;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.form-group small {
  display: block;
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

.price-display {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  text-align: center;
  margin: 1.5rem 0;
}

.price-display div {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--astral-gold);
  font-family: 'Inter', sans-serif;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.payment-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn-purchase {
  flex: 1;
  padding: 0.7rem 1.5rem;
  background: linear-gradient(135deg, #000000 0%, #0f2818 100%);
  border: 1px solid rgba(39, 174, 96, 0.3);
  border-radius: 6px;
  color: white;
  font-size: 0.9rem;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(39, 174, 96, 0.1);
}

.btn-purchase:hover:not(:disabled) {
  background: linear-gradient(135deg, #0f2818 0%, #1a4d2e 100%);
  border-color: rgba(39, 174, 96, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.2);
  color: #27ae60;
}

.btn-purchase:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-cancel {
  padding: 0.7rem 1.5rem;
  background: transparent;
  border: 1px solid rgba(39, 174, 96, 0.3);
  border-radius: 6px;
  color: #27ae60;
  font-size: 0.9rem;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cancel:hover {
  background: rgba(39, 174, 96, 0.1);
  border-color: rgba(39, 174, 96, 0.6);
  transform: translateY(-1px);
}

.payment-info {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  border-left: 3px solid var(--neptune-blue);
}

.payment-info p {
  color: #aaa;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.payment-info ul {
  margin: 0;
  padding-left: 1.5rem;
}

.payment-info li {
  color: var(--cosmic-silver);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Mobile responsiveness for payment modal */
@media (max-width: 768px) {
  .payment-modal-content {
    width: 95%;
    max-height: 95vh;
  }
  
  .payment-header h2 {
    font-size: 1.2rem;
  }
  
  .payment-actions {
    flex-direction: column;
  }
  
  .btn-cancel {
    padding: 1rem;
  }
  
  .access-status-badge {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

/* ============================================
   ???? PREMIUM ACCESS SECTION STYLES
   ============================================ */

.premium-access-section {
  background: #000000;
  border: 1px solid rgba(39, 174, 96, 0.2);
  border-radius: 20px;
  padding: 3rem 2rem;
  margin: 2rem auto;
  max-width: 1400px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}


.premium-container {
  max-width: 1200px;
  margin: 0 auto;
}

.premium-header {
  text-align: center;
  margin-bottom: 3rem;
}

.premium-header h2 {
  font-size: 2.5rem;
  color: #aaa;
  margin-bottom: 1rem;
  font-family: 'Antonio', sans-serif;
  text-shadow: 0 0 20px rgba(26, 188, 156, 0.5);
}

.premium-subtitle {
  font-size: 1.2rem;
  color: var(--cosmic-silver);
  opacity: 0.9;
}

.premium-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Wallet Connection Button */
.premium-wallet-status {
  text-align: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  border: 2px dashed rgba(39, 174, 96, 0.2);
}

.premium-wallet-status .btn {
  font-size: 1.2rem;
  padding: 1.5rem 3rem;
  min-width: 350px;
}

/* Access Status Card */
.access-info-card {
  background: rgba(26, 188, 156, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  animation: slideUp 0.5s ease;
}

.access-badge-large {
  font-size: 1.5rem;
  color: #aaa;
  font-weight: bold;
  margin-bottom: 1rem;
}

.access-details {
  color: var(--cosmic-silver);
  font-size: 1.1rem;
}

/* Pricing Cards */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.pricing-card {
  background: #000000;
  border: 2px solid rgba(119, 158, 203, 0.3);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-10px);
  border-color: #aaa;
  box-shadow: 0 15px 40px rgba(26, 188, 156, 0.3);
}

.pricing-card.featured {
  border-color: #aaa;
  border-width: 3px;
  box-shadow: 0 10px 30px rgba(26, 188, 156, 0.2);
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.08) translateY(-10px);
}

.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(119, 158, 203, 0.3);
  color: var(--cosmic-silver);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
}

.card-badge.premium-badge {
  background: linear-gradient(135deg, #aaa 0%, var(--neptune-blue) 100%);
  color: white;
}

.card-badge.discount-badge {
  background: linear-gradient(135deg, #f39c12 0%, #e74c3c 100%);
  color: white;
  animation: pulse 2s infinite;
}

.pricing-card h3 {
  font-size: 1.8rem;
  color: #aaa;
  margin: 2rem 0 1rem 0;
  font-family: 'Antonio', sans-serif;
}

.pricing-card .price {
  font-size: 2.5rem;
  color: white;
  font-weight: bold;
  margin: 1rem 0;
  font-family: 'Inter', sans-serif;
}

.pricing-card .price .period {
  font-size: 1rem;
  color: var(--cosmic-silver);
  opacity: 0.7;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  text-align: left;
}

.features-list li {
  color: var(--cosmic-silver);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(119, 158, 203, 0.2);
  font-size: 1rem;
}

.features-list li:last-child {
  border-bottom: none;
}

.card-note {
  color: #aaa;
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 1.5rem;
}

/* WEAD Button Style - Black Background */
.btn-wead {
  background: linear-gradient(135deg, #000000 0%, #0f2818 100%);
  color: white;
  border: 1px solid rgba(39, 174, 96, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(39, 174, 96, 0.1);
}

.btn-wead:hover {
  background: linear-gradient(135deg, #0f2818 0%, #1a4d2e 100%);
  border-color: rgba(39, 174, 96, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.2);
  color: #27ae60;
}

/* Beta Notice Banner */
.beta-notice-banner {
  margin: 2rem 0;
  padding: 1.25rem 2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(0, 150, 136, 0.1) 50%, rgba(255, 255, 255, 0.15) 100%);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: beta-glow 3s ease-in-out infinite;
}

@keyframes beta-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.3); }
  50% { box-shadow: 0 0 40px rgba(255, 255, 255, 0.5); }
}

.beta-notice-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.beta-icon {
  font-size: 1.5rem;
  animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

.beta-text {
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: 0.05em;
}

.beta-text strong {
  color: #aaa;
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .beta-notice-banner {
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
  }
  
  .beta-text {
    font-size: 1rem;
  }
  
  .beta-text strong {
    font-size: 1.25rem;
  }
  
  .beta-icon {
    font-size: 1.25rem;
  }
}

/* Payment Methods */
.payment-methods {
  text-align: center;
  padding: 2rem;
  background: #000000;
  border-radius: 15px;
  border: 1px solid rgba(119, 158, 203, 0.2);
}

.payment-methods-title {
  color: #aaa;
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.payment-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.payment-icon {
  background: rgba(119, 158, 203, 0.2);
  padding: 1rem 2rem;
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--cosmic-silver);
  transition: all 0.3s ease;
  cursor: pointer;
}

.payment-icon:hover {
  background: rgba(26, 188, 156, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(26, 188, 156, 0.3);
}

.payment-note {
  color: var(--cosmic-silver);
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .premium-access-section {
    padding: 2rem 1rem;
    margin: 1rem;
  }
  
  .premium-header h2 {
    font-size: 1.8rem;
  }
  
  .premium-subtitle {
    font-size: 1rem;
  }
  
  .pricing-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .pricing-card.featured {
    transform: scale(1);
  }
  
  .pricing-card.featured:hover {
    transform: scale(1.02) translateY(-5px);
  }
  
  .premium-wallet-status .btn {
    min-width: 100%;
    font-size: 1rem;
    padding: 1rem 1.5rem;
  }
  
  .payment-icons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .payment-icon {
    width: 100%;
  }
}

/* Pulse Animation for Discount Badge */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

/* Shimmer Animation */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* ============================================
   ???? NAVIGATION BAR STYLES
   ============================================ */

/* ===== MODERN NAVIGATION WITH GLASSMORPHISM ===== */
.main-navigation {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-logo:hover {
  transform: none;
  filter: none;
}

.nav-logo-icon {
  width: 26px;
  height: 26px;
  position: relative;
}

.logo-core-square {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f2818 0%, #1a4d2e 100%);
  border-radius: 5px;
  border: 1px solid rgba(39, 174, 96, 0.3);
  animation: pulse-glow 2s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.wead-favicon {
  width: 90%;
  height: 90%;
  object-fit: contain;
  border-radius: 0;
  padding: 0;
}

.nav-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.nav-logo-link:hover {
  transform: scale(1.1);
}

.footer-logo-link {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.footer-logo-link:hover {
  transform: scale(1.1);
}

.nav-brand {
  font-size: 1.2rem;
  font-weight: bold;
  color: #ffffff;
  font-family: 'Antonio', sans-serif;
  letter-spacing: 0.02em;
}

.nav-redflag {
  color: #ff4444;
  text-shadow: 0 0 15px rgba(255, 68, 68, 0.3);
}

.nav-links {
  display: flex;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: transparent;
  color: #a0aec0;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  font-size: 0.96rem;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #aaa;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.nav-link:hover::before {
  width: 60%;
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.06);
  color: #aaa;
}

.nav-link.active::before {
  width: 80%;
}

/* ========== DROPDOWN MENU STYLES ========== */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: transparent;
  color: #a0aec0;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  font-size: 0.96rem;
  cursor: pointer;
  position: relative;
}

.nav-dropdown-trigger:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.nav-dropdown-trigger.active {
  background: rgba(255, 255, 255, 0.06);
  color: #aaa;
}

.nav-dropdown-arrow {
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 220px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(10, 15, 30, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.1);
  z-index: 1000;
  backdrop-filter: blur(20px);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(5px);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 1.08rem;
}

.nav-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.nav-dropdown-item.active {
  background: rgba(255, 255, 255, 0.06);
  color: #aaa;
}

.nav-dropdown-item svg {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

.nav-dropdown-item:hover svg {
  opacity: 1;
}

.nav-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0.5rem 0;
}

.nav-dropdown-label {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  padding: 0.5rem 1rem 0.25rem;
  font-weight: 600;
}

/* Mobile dropdown styles */
@media (max-width: 900px) {
  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    box-shadow: none;
    padding: 0;
    margin-top: 0.5rem;
    display: none;
  }
  
  .nav-dropdown.mobile-open .nav-dropdown-menu {
    display: block;
  }
  
  .nav-dropdown-trigger {
    width: 100%;
    justify-content: space-between;
  }
}

.nav-icon {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.nav-text {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: auto;
}

.nav-login-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}
.nav-auth-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  color: #aaa;
}
.nav-auth-btn svg {
  flex-shrink: 0;
}

.nav-user-info {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 6px 3px 3px;
  border-radius: 20px;
  border: 1px solid rgba(119, 158, 203, 0.3);
}

.nav-user-avatar {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #aaa 0%, var(--neptune-blue) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
}

.nav-user-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-username {
  color: #b0bec5;
  font-weight: 500;
  font-size: 0.94rem;
}

.btn-disconnect {
  background: none;
  border: none;
  color: var(--cosmic-silver);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.btn-disconnect:hover {
  color: #aaa;
}

.nav-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  align-self: center;
  justify-content: center;
  height: 40px;
}

.nav-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #aaa;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Navigation */
.mobile-menu-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: #000000 !important;
  z-index: 99999 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mobile-menu-content {
  background: linear-gradient(135deg, #0a0f14 0%, #0f1520 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 1.25rem;
  padding-top: 3rem;
  width: 85%;
  max-width: 400px; /* Reduced by 20% from 500px */
  max-height: 75vh; /* Reduced by 20% from 90vh */
  overflow-y: auto;
  box-shadow: 0 0 60px rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 100000 !important;
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
}

.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 100001;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: #aaa;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0;
  padding-bottom: 0.75rem;
}

.mobile-nav-link {
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  background: rgba(0, 0, 0, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 10px;
  color: white !important;
  text-decoration: none !important;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  min-height: 40px;
}

.mobile-nav-link .nav-text {
  display: block !important;
  color: white !important;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  visibility: visible !important;
  opacity: 1 !important;
}

.mobile-nav-link .nav-icon {
  display: none !important;
}

.mobile-nav-link:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
  transform: translateX(5px);
  color: white !important;
}

.mobile-nav-link.active {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
}

.mobile-nav-link:hover .nav-text {
  color: white !important;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  
  .nav-menu-toggle {
    display: flex;
  }
  
  .nav-links .nav-text {
    display: none;
  }
  
  /* Keep nav-text visible inside mobile menu */
  .mobile-nav-link .nav-text {
    display: block !important;
    color: white !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 5px 12px;
  }
  
  .nav-brand {
    font-size: 1.2rem;
  }
  
  .nav-user-details {
    display: none;
  }
}

/* ============================================
   ???? HOME PAGE SPECIFIC STYLES
   ============================================ */

.hero-section {
  background: linear-gradient(180deg, #000000 0%, #050810 100%);
  padding: 8rem 2rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(102, 126, 234, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.quantum-logo-large {
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem auto;
  position: relative;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 0.75rem;
  font-family: 'Antonio', sans-serif;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-title .beta-badge {
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #aaa;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  top: -0.5rem;
}

.hero-title .wead-text {
  color: #fff;
}

.hero-title .redflag-text {
  color: #ff4444;
  text-shadow: 0 0 30px rgba(255, 68, 68, 0.4);
}

.hero-title .beta-badge {
  color: #ff4444;
  font-size: 1.2rem;
  font-weight: 400;
  margin-left: 0.5rem;
  vertical-align: super;
  text-shadow: 0 0 20px rgba(255, 68, 68, 0.4);
  animation: beta-pulse 2s ease-in-out infinite;
}

@keyframes beta-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.hero-subtitle {
  font-size: 1.35rem;
  color: rgba(255, 68, 68, 0.9);
  margin-bottom: 1.5rem;
  font-family: 'Antonio', sans-serif;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.7;
  font-family: 'Inter', sans-serif;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-extra-large {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  min-height: 52px;
  min-width: 180px;
  border-radius: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-extra-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* Transparent Wallet Button */
.btn-transparent-wallet {
  background: transparent;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  margin-top: 6px;
}

.btn-transparent-wallet:hover {
  color: #27ae60;
  background: transparent;
  transform: none;
}

.features-section {
  padding: 5rem 2rem;
  background: linear-gradient(180deg, #050810 0%, #000000 100%);
  position: relative;
}

.features-container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  color: #fff;
  margin-bottom: 1rem;
  font-family: 'Antonio', sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.section-title .highlight,
.section-title .redflag {
  color: #ff4444;
}

.section-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 3rem;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

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

.feature-card {
  background: rgba(18, 18, 22, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #aaa;
  transition: all 0.3s ease;
}

.feature-icon svg,
.feature-icon .wead-icon {
  width: 28px;
  height: 28px;
}

.feature-card:hover .feature-icon {
  background: rgba(255, 255, 255, 0.06);
  transform: scale(1.05);
}

.feature-card h3 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.75rem;
  font-family: 'Antonio', sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
}

/* ============================================
   ???? EMERGENCY SOS PAGE STYLES
   ============================================ */

.emergency-hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(255, 68, 68, 0.05) 0%, rgba(0, 0, 0, 0.3) 100%);
  border: 1px solid rgba(255, 68, 68, 0.2);
  border-radius: 20px;
  margin-bottom: 2rem;
}

.emergency-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-indicator {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.status-indicator svg {
  width: 20px;
  height: 20px;
  stroke: #aaa;
}

.status-indicator.error {
  background: rgba(255, 68, 68, 0.2);
  border-color: #ff4444;
}

.status-indicator.error svg {
  stroke: #ff4444;
}

.status-indicator.sending {
  animation: pulse-status 1s ease-in-out infinite;
}

.status-indicator.sent {
  background: rgba(255, 255, 255, 0.3);
  border-color: #aaa;
}

@keyframes pulse-status {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

.status-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* SOS Button */
.sos-button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.sos-button {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff4444, #cc0000);
  border: 4px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px rgba(255, 68, 68, 0.4), inset 0 -5px 20px rgba(0, 0, 0, 0.3);
  --hold-progress: 0%;
}

.sos-button::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 255, 255, 0.5) var(--hold-progress), transparent var(--hold-progress));
  pointer-events: none;
  transition: none;
}

.sos-button:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 50px rgba(255, 68, 68, 0.5), inset 0 -5px 20px rgba(0, 0, 0, 0.3);
}

.sos-button:active,
.sos-button.holding {
  transform: scale(0.98);
  box-shadow: 0 5px 20px rgba(255, 68, 68, 0.6), inset 0 5px 20px rgba(0, 0, 0, 0.4);
}

.sos-button.sending {
  animation: sos-sending 0.5s ease-in-out infinite;
}

.sos-button.sent {
  background: linear-gradient(145deg, #aaa, #00aa88);
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.4);
}

@keyframes sos-sending {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.95); }
}

.sos-button-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.sos-text {
  font-family: 'Antonio', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.1em;
}

.sos-subtext {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.15em;
  margin-top: -0.25rem;
}

.sos-pulse {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 68, 68, 0.5);
  animation: sos-pulse-anim 2s ease-out infinite;
}

.sos-pulse-2 {
  animation-delay: 1s;
}

@keyframes sos-pulse-anim {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

.sos-instruction {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  text-align: center;
}

.pulse-hint {
  animation: pulse-hint-anim 0.5s ease;
}

@keyframes pulse-hint-anim {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Location Display */
.location-display {
  width: 100%;
  max-width: 500px;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  text-align: center;
}

.location-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: #aaa;
  font-weight: 500;
}

.location-header svg {
  width: 20px;
  height: 20px;
}

.location-coords {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-family: 'Monaco', monospace;
  font-size: 0.9rem;
}

.coord-lat, .coord-lng {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
}

.coord-accuracy {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

.coord-loading, .error {
  color: rgba(255, 255, 255, 0.5);
}

.error {
  color: #ff6b6b;
}

.location-address {
  margin-bottom: 1rem;
}

.address-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Emergency Contacts Section */
.emergency-contacts-section {
  padding: 2rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  margin-bottom: 2rem;
}

.section-header-modern {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.header-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
}

.header-icon svg {
  width: 24px;
  height: 24px;
  stroke: #aaa;
}

.section-header-modern h2 {
  font-size: 1.25rem;
  color: white;
  margin: 0;
}

.section-header-modern p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0.25rem 0 0;
}

.contacts-list {
  margin-bottom: 2rem;
}

.no-contacts {
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.no-contacts p {
  color: rgba(255, 255, 255, 0.6);
  margin: 1rem 0 0.5rem;
}

.no-contacts span {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.contact-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.contact-avatar {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #aaa, #00aa88);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}

.contact-info {
  flex: 1;
}

.contact-info h4 {
  margin: 0;
  color: white;
  font-size: 1rem;
}

.contact-phone {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin: 0.25rem 0;
}

.contact-email {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  margin: 0;
}

.contact-relation {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-size: 0.7rem;
  color: #aaa;
  text-transform: capitalize;
  margin-top: 0.25rem;
}

.contact-remove {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-remove svg {
  width: 18px;
  height: 18px;
  stroke: #ff6b6b;
}

.contact-remove:hover {
  background: rgba(255, 68, 68, 0.2);
  border-color: #ff4444;
}

/* Add Contact Form */
.add-contact-form {
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.add-contact-form h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: white;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: white;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #aaa;
  background: rgba(255, 255, 255, 0.05);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Alert Settings */
.alert-settings-section {
  padding: 2rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  margin-bottom: 2rem;
}

.settings-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.setting-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.label-text {
  color: white;
  font-size: 0.95rem;
}

.label-hint {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 50px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.toggle-switch input:checked + .toggle-slider {
  background: #aaa;
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(24px);
}

/* Message Preview */
.message-preview {
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
}

.message-preview h4 {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.preview-box {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.preview-box strong {
  color: #ff4444;
}

/* Quick Actions */
.quick-actions-section {
  margin-bottom: 2rem;
}

.quick-action-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.quick-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  text-decoration: none;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quick-action-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.15);
}

.action-icon {
  font-size: 2rem;
}

.quick-action-card span {
  font-size: 0.85rem;
  text-align: center;
}

.emergency-call {
  border-color: rgba(255, 68, 68, 0.3);
}

.emergency-call:hover {
  background: rgba(255, 68, 68, 0.1);
  border-color: #ff4444;
}

.crisis-line {
  border-color: rgba(76, 175, 80, 0.3);
}

.crisis-line:hover {
  background: rgba(76, 175, 80, 0.1);
  border-color: #4caf50;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .emergency-hero-section {
    padding: 1.5rem;
  }

  .sos-button {
    width: 150px;
    height: 150px;
  }

  .sos-text {
    font-size: 2.5rem;
  }

  .form-row {
    flex-direction: column;
  }

  .quick-action-buttons {
    grid-template-columns: repeat(2, 1fr);
  }

  .location-coords {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ============================================
   ???? MODERN FOOTER - REDESIGNED
   ============================================ */
.cosmic-footer {
  background: linear-gradient(180deg, #0a0a0f 0%, #000000 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

.cosmic-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
}

/* Footer Main Content - 3 Column Grid */
.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
  align-items: start;
}

/* Brand Section */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #0d1f1a 0%, #1a3d30 100%);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer-logo:hover {
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.footer-logo img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.footer-brand-text h3 {
  font-family: 'Antonio', sans-serif;
  font-size: 1.4rem;
  margin: 0;
  letter-spacing: 1px;
}

.footer-brand-text h3 .wead {
  color: #ffffff;
}

.footer-brand-text h3 .redflag {
  color: #ef4444;
}

.footer-brand-tagline {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
}

.footer-brand-description {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 300px;
}

/* Social Links */
.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  color: #aaa;
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

/* Footer Navigation Columns */
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-nav-title {
  color: #ffffff;
  font-family: 'Antonio', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.footer-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-nav-links a:hover {
  color: #aaa;
  transform: translateX(4px);
}

.footer-nav-links a svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

/* Footer Divider */
.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  margin: 0 0 1.5rem;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: #aaa;
}

/* Footer Disclaimer */
.footer-disclaimer {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
}

.footer-disclaimer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  line-height: 1.6;
  margin: 0;
  font-family: 'Inter', sans-serif;
}

.footer-disclaimer strong {
  color: #aaa;
}

/* Mobile Responsive Footer */
@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
  }
  
  .footer-brand-header {
    justify-content: center;
  }
  
  .footer-brand-description {
    max-width: 100%;
    text-align: center;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-nav {
    align-items: center;
    text-align: center;
  }
  
  .footer-nav-links a {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .footer-container {
    padding: 2rem 1.25rem 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .footer-legal-links {
    justify-content: center;
  }
  
  .footer-disclaimer {
    padding: 0.875rem 1rem;
  }
  
  .footer-disclaimer p {
    font-size: 0.7rem;
  }
}

/* Legacy support - hide old elements */
.footer-logo-container,
.footer-logo-square,
.wead-favicon-footer,
.footer-column {
  display: none;
}

.footer-links.legacy {
  display: none;
}

/* Mobile Responsive for Home Page */
@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 1rem;
  }
  
  .hero-title {
    font-size: 1.8rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-description {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 2rem;
  }
  
  .btn-extra-large {
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
    width: 100%;
    min-width: auto;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .feature-card h3 {
    font-size: 1.2rem;
  }
  
  .feature-card p {
    font-size: 0.9rem;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .pricing-card {
    padding: 1.5rem;
  }
  
  .page-title {
    font-size: 1.8rem !important;
  }
  
  .page-subtitle {
    font-size: 1rem !important;
  }
  
  .section-title {
    font-size: 1.5rem !important;
  }
  
  /* Footer styles moved to proper media queries at line 6558+ */
  

  /* Content Cards Mobile */
  .content-card {
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
  }
  
  .content-card h2 {
    font-size: 1.3rem;
  }
  
  /* Button improvements */
  .btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }
  
  .btn-large {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* ============================================
   ???? PAGE-SPECIFIC STYLES
   ============================================ */

.page-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
  border-bottom: 2px solid rgba(26, 188, 156, 0.3);
}

.page-title {
  font-size: 3rem;
  color: #aaa;
  margin-bottom: 1rem;
  font-family: 'Antonio', sans-serif;
}

.page-subtitle {
  font-size: 1.2rem;
  color: var(--cosmic-silver);
  opacity: 0.9;
}

.content-card {
  background: #000000;
  border: 1px solid rgba(39, 174, 96, 0.2);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.content-card:hover {
  border-color: #aaa;
  box-shadow: 0 10px 30px rgba(26, 188, 156, 0.2);
}

.content-card h2 {
  color: #aaa;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-family: 'Antonio', sans-serif;
}

.content-card p {
  color: var(--cosmic-silver);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .page-container {
    padding: 1rem;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .page-subtitle {
    font-size: 1rem;
  }
  
  .content-card {
    padding: 1.5rem;
  }
}

/* ============================================
   ???? DASHBOARD PAGE STYLES
   ============================================ */

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.stat-card {
  background: #000000;
  border: 1px solid rgba(39, 174, 96, 0.3);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: #aaa;
  box-shadow: 0 5px 20px rgba(39, 174, 96, 0.3);
  transform: translateY(-5px);
}

.stat-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.stat-card h3 {
  color: var(--cosmic-silver);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-card p {
  color: #aaa;
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0;
}

.profile-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1rem;
  background: #000000;
  border: 1px solid rgba(39, 174, 96, 0.2);
  border-radius: 15px;
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.profile-icon {
  font-size: 3rem;
}

.profile-info h3 {
  color: #aaa;
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
}

.profile-info p {
  color: var(--cosmic-silver);
  margin: 0;
  font-size: 0.9rem;
}

.history-container {
  margin-top: 1.5rem;
}

.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(39, 174, 96, 0.05);
  border: 2px dashed rgba(39, 174, 96, 0.3);
  border-radius: 15px;
}

.empty-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state p {
  color: var(--cosmic-silver);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.history-item {
  background: #000000;
  border: 1px solid rgba(39, 174, 96, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.history-item:hover {
  border-color: #aaa;
  box-shadow: 0 3px 15px rgba(39, 174, 96, 0.2);
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.history-date {
  color: var(--cosmic-silver);
  font-size: 0.9rem;
}

.history-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.badge-safe {
  background: var(--safe-gradient);
  color: white;
}

.badge-warning {
  background: var(--warning-gradient);
  color: white;
}

.badge-danger {
  background: var(--redflag-gradient);
  color: white;
}

.history-content {
  color: var(--cosmic-silver);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .profile-container {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-info {
    flex-direction: column;
    text-align: center;
  }
  
  .stat-card p {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
  
  /* Extra mobile optimization for small screens */
  .hero-title {
    font-size: 1.5rem !important;
  }
  
  .hero-subtitle {
    font-size: 0.9rem !important;
  }
  
  .hero-description {
    font-size: 0.85rem !important;
  }
  
  .page-title {
    font-size: 1.5rem !important;
  }
  
  .section-title {
    font-size: 1.3rem !important;
  }
  
  .content-card h2 {
    font-size: 1.2rem !important;
  }
  

  .btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
  
  .btn-large {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .btn-extra-large {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .footer-link {
    font-size: 0.9rem;
  }
  
  .footer-copyright {
    font-size: 0.8rem;
  }
  
  /* Payment modal mobile */
  .payment-modal-content {
    width: 95%;
    padding: 1rem;
  }
  
  .payment-header h2 {
    font-size: 1.2rem;
  }
  
  /* Pricing cards */
  .pricing-card h3 {
    font-size: 1.2rem;
  }
  
  .price {
    font-size: 1.8rem;
  }
}

/* ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
   ???? MENTAL HEALTH CONDITIONS SECTION - GREEN THEME
   ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? */

.mental-health-section {
  padding: 4rem 2rem;
  background: transparent;
  position: relative;
  overflow: hidden;
}

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

.mental-health-header {
  text-align: center;
  margin-bottom: 3rem;
}

.mental-health-header .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #aaa 0%, #999 50%, #00a080 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  animation: greenGlow 3s ease-in-out infinite;
}

.section-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

@keyframes greenGlow {
  0%, 100% {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(0, 180, 150, 0.3));
  }
}

/* Stats Cards */
.conditions-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.3);
  background: transparent;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #aaa 0%, #999 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Conditions Grid */
.conditions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.condition-card {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.condition-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #aaa 0%, #999 50%, #00a080 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.condition-card:hover::before {
  transform: scaleX(1);
}

.condition-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 15px 50px rgba(255, 255, 255, 0.4);
  background: transparent;
}

.condition-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #aaa;
  margin-bottom: 0.8rem;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.condition-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

/* Conditions Features List */
.conditions-features {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.conditions-features h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #aaa;
  margin-bottom: 1.5rem;
  text-align: center;
}

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

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  background: transparent;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: transparent;
  transform: translateX(5px);
}

.feature-icon {
  font-size: 1.5rem;
  font-weight: 700;
  color: #aaa;
  flex-shrink: 0;
}

.feature-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

/* Disclaimer */
.conditions-disclaimer {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-left: 5px solid #aaa;
  border-radius: 12px;
  padding: 1.5rem;
}

.conditions-disclaimer p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin: 0;
}

.conditions-disclaimer strong {
  color: #aaa;
  font-weight: 700;
}

/* ??? Green Card Variant */
.green-card {
  background: transparent;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .mental-health-section {
    padding: 3rem 1rem;
  }
  
  /* Remove border/outline around the Mental Health Conditions Guide on mobile */
  .mental-health-guide {
    border: none !important;
    box-shadow: none !important;
  }
  
  .mental-health-header .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .conditions-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .stat-card {
    padding: 1.5rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .conditions-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .condition-card {
    padding: 1.2rem;
  }
  
  .condition-icon {
    font-size: 2.5rem;
  }
  
  .condition-card h3 {
    font-size: 1.2rem;
  }
  
  .features-list {
    grid-template-columns: 1fr;
  }
  
  .conditions-features {
    padding: 1.5rem;
  }

  /* ???? Mental Health Guide - Mobile optimization */
  .guide-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .guide-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    gap: 0.6rem;
  }

  .guide-badge {
    min-width: 110px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
  }

  .guide-info h4 {
    font-size: 1rem;
  }

  .guide-info p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .mental-health-header .section-title {
    font-size: 1.8rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .condition-icon {
    font-size: 2rem;
  }
}

/* ===== AI SELF-THERAPY STYLES ===== */
.therapy-page {
  background: linear-gradient(180deg, #000000 0%, #050810 50%, #000000 100%);
  min-height: 100vh;
}

.therapy-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 10% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
    radial-gradient(ellipse at 90% 80%, rgba(102, 126, 234, 0.04) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================
   PUSH-TO-TALK BUTTON
   ========================================== */

.push-to-talk-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 0.5rem;
}

.push-to-talk-btn {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  border: 3px solid #aaa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.push-to-talk-btn:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.push-to-talk-btn:active,
.push-to-talk-btn.recording {
  transform: scale(0.95);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.4), rgba(239, 68, 68, 0.2));
  border-color: #ef4444;
  box-shadow: 0 0 40px rgba(239, 68, 68, 0.5);
}

.ptt-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
  transition: transform 0.3s ease;
}

.ptt-icon svg {
  width: 100%;
  height: 100%;
  stroke: #aaa;
  transition: stroke 0.3s ease;
}

.push-to-talk-btn:active .ptt-icon svg,
.push-to-talk-btn.recording .ptt-icon svg {
  stroke: #ef4444;
}

.push-to-talk-btn:active .ptt-icon,
.push-to-talk-btn.recording .ptt-icon {
  transform: scale(1.1);
  animation: pulse-mic 0.5s ease-in-out infinite alternate;
}

@keyframes pulse-mic {
  from { transform: scale(1); }
  to { transform: scale(1.2); }
}

.ptt-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: opacity 0.2s ease;
}

.ptt-recording-text {
  position: absolute;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ef4444;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.push-to-talk-btn:active .ptt-text,
.push-to-talk-btn.recording .ptt-text {
  opacity: 0;
}

.push-to-talk-btn:active .ptt-recording-text,
.push-to-talk-btn.recording .ptt-recording-text {
  opacity: 1;
}

.ptt-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  opacity: 0;
  pointer-events: none;
}

.push-to-talk-btn:active .ptt-pulse,
.push-to-talk-btn.recording .ptt-pulse {
  animation: ptt-pulse-wave 1s ease-out infinite;
  border-color: #ef4444;
}

@keyframes ptt-pulse-wave {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.ptt-hint {
  margin-top: 0.75rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* Voice Selector Dropdown */
.voice-selector {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  color: var(--cosmic-silver);
  padding: 0.4rem 0.6rem;
  font-size: 0.75rem;
  cursor: pointer;
  min-width: 120px;
  max-width: 180px;
  transition: all 0.2s ease;
}

.voice-selector:hover {
  border-color: #aaa;
  background: rgba(255, 255, 255, 0.1);
}

.voice-selector:focus {
  outline: none;
  border-color: #aaa;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.voice-selector option {
  background: #1a1a2e;
  color: var(--cosmic-silver);
  padding: 0.5rem;
}

/* Mobile push-to-talk */
@media (max-width: 768px) {
  .push-to-talk-container {
    padding: 0.75rem 0;
  }
  
  .push-to-talk-btn {
    width: 100px;
    height: 100px;
  }
  
  .ptt-icon {
    width: 32px;
    height: 32px;
  }
  
  .ptt-text,
  .ptt-recording-text {
    font-size: 0.65rem;
  }
}

/* ===== TAP-TO-TALK BUTTON (Free Talk) ===== */
.ptt-buttons-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.tap-to-talk-btn {
  display: none; /* Hidden on desktop */
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.1));
  border: 3px solid #6366f1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.tap-to-talk-btn:active {
  transform: scale(0.95);
}

.tap-to-talk-btn.recording {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.4), rgba(239, 68, 68, 0.2));
  border-color: #ef4444;
  box-shadow: 0 0 40px rgba(239, 68, 68, 0.5);
  animation: ttt-pulse 1s infinite;
}

@keyframes ttt-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 40px rgba(239, 68, 68, 0.6); }
}

.ttt-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.ttt-icon svg {
  width: 36px;
  height: 36px;
  stroke: #6366f1;
  transition: stroke 0.3s;
}

.tap-to-talk-btn.recording .ttt-icon svg {
  stroke: #ef4444;
}

.ttt-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: #6366f1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ttt-recording-text {
  display: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: #ef4444;
  text-transform: uppercase;
}

.tap-to-talk-btn.recording .ttt-text {
  display: none;
}

.tap-to-talk-btn.recording .ttt-recording-text {
  display: block;
}

/* Free Talk Toggle - Hidden on desktop */
.free-talk-toggle {
  display: none;
}

/* Free Talk Row - Hidden on desktop */
.free-talk-row {
  display: none;
}

/* Therapy Tools Button - Hidden on desktop */
.therapy-tools-btn {
  display: none;
}

/* ==========================================
   THERAPY CONTAINER
   ========================================== */

.therapy-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 1rem;
  padding-top: 70px;
  position: relative;
  z-index: 1;
}

.therapy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1.25rem;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.session-info {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.session-timer {
  font-size: 1.5rem;
  font-family: 'Antonio', sans-serif;
  color: #aaa;
}

.session-type {
  color: var(--cosmic-silver);
  font-family: 'Inter', sans-serif;
}

.session-controls {
  display: flex;
  gap: 1rem;
}

.therapy-btn {
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.therapy-btn svg {
  width: 16px;
  height: 16px;
}

.therapy-btn.primary {
  background: #aaa;
  color: #000;
}

.therapy-btn.primary:hover {
  background: #bbb;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.therapy-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.therapy-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.therapy-btn.danger {
  background: rgba(255, 68, 68, 0.15);
  color: #ff6b6b;
  border: 1px solid rgba(255, 68, 68, 0.2);
}

.therapy-btn.danger:hover {
  background: rgba(255, 68, 68, 0.25);
  border-color: rgba(255, 68, 68, 0.4);
}

.therapy-btn:hover {
  transform: translateY(-1px);
}

.therapy-btn.large {
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 10px;
}

/* Therapy Grid Layout */
.therapy-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 1rem;
  min-height: calc(100vh - 200px);
}

.therapy-panel {
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease;
}

.therapy-panel:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-header h3 {
  margin: 0;
  font-family: 'Antonio', sans-serif;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.panel-header h3 svg {
  width: 18px;
  height: 18px;
  color: #aaa;
}

/* Therapy Header Icons */
.header-icon {
  width: 18px;
  height: 18px;
  margin-right: 0.35rem;
  vertical-align: middle;
  color: #aaa;
}

.session-timer {
  display: flex;
  align-items: center;
}

.session-type {
  display: flex;
  align-items: center;
}

.session-controls .btn-icon {
  width: 16px;
  height: 16px;
  margin-right: 0.35rem;
}

/* Panel Icons */
.panel-icon {
  width: 18px;
  height: 18px;
  color: #aaa;
  flex-shrink: 0;
}

.panel-icon.ai-icon {
  color: #aaa;
}

/* Tool Icons */
.tool-icon {
  width: 16px;
  height: 16px;
  color: #aaa;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.therapy-tool h4 {
  display: flex;
  align-items: center;
}

/* Camera Controls Icons */
.camera-controls .icon-btn svg {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.7);
}

.camera-controls .icon-btn:hover svg {
  color: #aaa;
}

/* Emotion Display Icon */
.emotion-indicator .emotion-emoji svg {
  width: 28px;
  height: 28px;
  color: #aaa;
}

/* Camera Message Icon */
.camera-message .camera-icon svg {
  width: 48px;
  height: 48px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.75rem;
}

.camera-hint {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.5rem;
}

/* Chat Message Avatar Icon */
.message-avatar svg {
  width: 100%;
  height: 100%;
  color: #aaa;
}

/* Inline Icons in Lists */
.inline-icon {
  width: 16px;
  height: 16px;
  margin-right: 0.5rem;
  vertical-align: middle;
  color: #aaa;
}

/* Quick Response Buttons */
.quick-responses button svg {
  width: 18px;
  height: 18px;
  margin-right: 0.35rem;
  vertical-align: middle;
}

/* Chat Input Icons */
.input-actions .icon-btn svg {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.input-actions .icon-btn:hover svg {
  color: #aaa;
}

.input-actions .icon-btn.primary svg {
  color: white;
}

/* Mode Buttons */
.mode-btn svg {
  width: 16px;
  height: 16px;
  margin-right: 0.35rem;
  vertical-align: middle;
}

/* Grounding Step Icons */
.step-icon {
  width: 16px;
  height: 16px;
  margin-left: 0.35rem;
  vertical-align: middle;
  color: #aaa;
  opacity: 0.7;
}

/* Tool Button Small Icon */
.btn-icon-small {
  width: 14px;
  height: 14px;
  margin-right: 0.35rem;
  vertical-align: middle;
}

/* Crisis Icon */
.crisis-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: rgba(255, 68, 68, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crisis-icon svg {
  width: 32px;
  height: 32px;
  color: #ff6b6b;
}

/* Crisis Button Icons */
.crisis-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.crisis-btn svg {
  width: 18px;
  height: 18px;
}

/* Camera Permission Section */
.camera-permission-section {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1rem;
  margin: 1.5rem 0;
}

.camera-permission {
  margin-bottom: 0.75rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #aaa;
}

.checkbox-label .checkbox-icon {
  width: 20px;
  height: 20px;
  color: #aaa;
}

.camera-test-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.camera-test-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #aaa;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.camera-test-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.5);
}

.camera-test-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.camera-test-btn svg {
  width: 16px;
  height: 16px;
}

.camera-test-status {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
}

.camera-test-status .testing {
  color: rgba(255, 255, 255, 0.6);
}

.camera-test-status .success {
  color: #4ade80;
}

.camera-test-status .error {
  color: #f87171;
}

.camera-note {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* ===== VOICE METRICS PANEL ===== */
.voice-metrics {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.voice-metrics-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: #aaa;
  font-weight: 500;
}

.voice-metrics-header .voice-icon {
  width: 14px;
  height: 14px;
}

.voice-live-badge {
  margin-left: auto;
  padding: 0.15rem 0.4rem;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 600;
  color: #ef4444;
  letter-spacing: 0.5px;
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.voice-metrics-grid {
  display: flex;
  justify-content: space-between;
}

.voice-metric-item {
  text-align: center;
}

.voice-metric-label {
  display: block;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Inter', sans-serif;
}

.voice-metric-value {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Inter', sans-serif;
}

.voice-metric-value.high {
  color: #f87171;
}

.voice-metric-value.elevated {
  color: #fbbf24;
}

.voice-metric-value.normal {
  color: #4ade80;
}

.voice-metric-value.low {
  color: #60a5fa;
}

/* ===== WELLNESS SCORE PANEL ===== */
.wellness-score-panel {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.wellness-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.wellness-header span {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.wellness-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-family: 'Antonio', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.wellness-badge.good {
  background: rgba(74, 222, 128, 0.2);
  color: #4ade80;
  border: 2px solid #4ade80;
}

.wellness-badge.moderate {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 2px solid #fbbf24;
}

.wellness-badge.concerning {
  background: rgba(248, 113, 113, 0.2);
  color: #f87171;
  border: 2px solid #f87171;
}

.wellness-sources {
  display: flex;
  justify-content: space-around;
}

.source-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Inter', sans-serif;
}

.source-item svg {
  width: 12px;
  height: 12px;
  color: #aaa;
}

/* ===== ASSESSMENT MODAL ===== */
.assessment-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
  overflow-y: auto;
}

.assessment-content {
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(10, 10, 15, 0.98) 0%, rgba(20, 20, 30, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
}

.assessment-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.assessment-header h2 {
  font-family: 'Antonio', sans-serif;
  color: white;
  margin-bottom: 0.5rem;
}

.assessment-header p {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.assessment-instruction {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.75rem;
  margin-top: 1rem;
  font-size: 0.85rem !important;
}

.assessment-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.assessment-question {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 1rem;
}

.question-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 0.75rem 0;
}

.question-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-label:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.option-label input[type="radio"] {
  accent-color: #aaa;
}

.option-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.assessment-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.assessment-actions .therapy-btn {
  flex: 1;
}

/* ===== THOUGHT RECORD ===== */
.thought-record-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.thought-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.thought-field label {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #aaa;
}

.thought-field textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.75rem;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  resize: vertical;
}

.thought-field textarea:focus {
  outline: none;
  border-color: #aaa;
}

/* ===== TOOL DESCRIPTION ===== */
.tool-description {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0.5rem 0 0 0;
  font-style: italic;
}

/* ===== ASSESSMENT BUTTONS ===== */
.assessment-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.assessment-tool .tool-btn {
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
}

/* ===== VOICE MONITORING INDICATOR ===== */
.voice-monitor-indicator {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
  z-index: 10;
}

.voice-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #aaa;
  animation: voicePulse 1.5s ease-in-out infinite;
}

@keyframes voicePulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

/* Voice metrics panel active state */
.voice-metrics.active {
  border-color: #aaa;
  background: rgba(255, 255, 255, 0.1);
}

.voice-metrics.active .voice-metrics-header {
  color: #aaa;
}

/* Voice level visualizer */
.voice-level-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.voice-level-fill {
  height: 100%;
  background: linear-gradient(90deg, #aaa, #ccc);
  border-radius: 2px;
  transition: width 0.1s ease;
  width: 0%;
}

/* ===== ADVANCED VOICE DISTRESS INDICATORS ===== */
.voice-distress-indicator {
  margin: 0.75rem 0;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
}

.distress-label {
  display: block;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.25rem;
  font-family: 'Inter', sans-serif;
}

.distress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.distress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease, background 0.3s ease;
  width: 0%;
}

.distress-value {
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

.distress-value.normal { color: #4ade80; }
.distress-value.mild { color: #60a5fa; }
.distress-value.elevated { color: #fbbf24; }
.distress-value.high { color: #f87171; }

/* Detailed metrics */
.voice-metrics-detailed {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.voice-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.voice-metric-row:last-child {
  border-bottom: none;
}

.voice-metric-row .voice-metric-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
}

.voice-metric-row .voice-metric-value {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-transform: capitalize;
}

.voice-metric-value.warning {
  color: #f87171;
}

.voice-metric-value.caution {
  color: #fbbf24;
}

/* Detected patterns */
.voice-patterns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: 6px;
}

.patterns-label {
  font-size: 0.7rem;
  color: rgba(248, 113, 113, 0.8);
  font-family: 'Inter', sans-serif;
}

.patterns-list {
  font-size: 0.75rem;
  color: #f87171;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

/* Auto-transcribe indicator */
.auto-transcribe-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.4rem 0.6rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 0.7rem;
  color: #aaa;
  font-family: 'Inter', sans-serif;
}

.auto-transcribe-indicator svg {
  width: 12px;
  height: 12px;
  animation: micPulse 1.5s ease-in-out infinite;
}

@keyframes micPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Input transcribing state */
.chat-input.transcribing {
  border-color: #aaa;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.chat-input.transcribing::placeholder {
  color: #aaa;
}

/* ===== SEND COUNTDOWN INDICATOR ===== */
.send-countdown {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  margin-bottom: -1px;
}

.countdown-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #aaa;
}

.countdown-hint {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Chat input wrapper needs position relative */
.chat-input-wrapper {
  position: relative;
}

/* ===== AI SPEAKING INDICATOR ===== */
.ai-speaking-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.6rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  font-size: 0.7rem;
  color: #aaa;
  font-family: 'Inter', sans-serif;
  margin-left: auto;
}

.speaking-waves {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 14px;
}

.speaking-waves span {
  width: 3px;
  height: 100%;
  background: #aaa;
  border-radius: 3px;
  animation: speakingWave 0.8s ease-in-out infinite;
}

.speaking-waves span:nth-child(1) { animation-delay: 0s; height: 40%; }
.speaking-waves span:nth-child(2) { animation-delay: 0.1s; height: 70%; }
.speaking-waves span:nth-child(3) { animation-delay: 0.2s; height: 100%; }
.speaking-waves span:nth-child(4) { animation-delay: 0.3s; height: 60%; }

@keyframes speakingWave {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

/* AI Avatar animated when speaking */
.ai-avatar-animated {
  transition: all 0.3s ease;
}

.ai-avatar-animated.speaking {
  animation: avatarPulse 1s ease-in-out infinite;
}

.ai-avatar-animated.speaking svg {
  color: #aaa;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

@keyframes avatarPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* TTS Toggle Button */
#btn-toggle-tts {
  position: relative;
}

#btn-toggle-tts.active {
  color: #aaa;
  background: rgba(255, 255, 255, 0.1);
}

#btn-toggle-tts.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: #aaa;
  border-radius: 50%;
}

/* Conversation mode indicator */
.conversation-mode-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  color: #aaa;
  font-family: 'Inter', sans-serif;
}

.conversation-mode-banner svg {
  width: 14px;
  height: 14px;
}

.conversation-mode-banner .pulse-dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* ===== HEADPHONE RECOMMENDATION TIP ===== */
.headphone-tip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.1), rgba(251, 191, 36, 0.05));
  border-bottom: 1px solid rgba(251, 191, 36, 0.2);
  font-size: 0.75rem;
  color: #fbbf24;
  font-family: 'Inter', sans-serif;
}

.headphone-tip svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.headphone-tip span {
  flex: 1;
}

.tip-dismiss {
  background: none;
  border: none;
  color: rgba(251, 191, 36, 0.6);
  cursor: pointer;
  padding: 0.25rem;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.tip-dismiss:hover {
  color: #fbbf24;
}

/* ===== AMBIENT MUSIC BUTTON ===== */
#btn-ambient-music {
  position: relative;
}

#btn-ambient-music.active {
  color: #a78bfa;  /* Purple for music */
  background: rgba(167, 139, 250, 0.1);
}

#btn-ambient-music.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: #a78bfa;
  border-radius: 50%;
  animation: musicPulse 1s ease-in-out infinite;
}

@keyframes musicPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Music volume slider (optional for future) */
.ambient-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(167, 139, 250, 0.1);
  border-radius: 8px;
  margin-top: 0.5rem;
}

.ambient-controls input[type="range"] {
  flex: 1;
  accent-color: #a78bfa;
}

/* ===== THERAPY MUSIC PLAYER - TEAL THEME ===== */
.therapy-music-player {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.therapy-music-player.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.therapy-music-player.disabled .music-power-btn {
  pointer-events: auto;
}

.music-player-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: #aaa;
}

.music-player-header svg {
  width: 16px;
  height: 16px;
}

.music-toggle-btn {
  margin-left: auto;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  border-radius: 50%;
  color: #aaa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.music-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.music-toggle-btn.active {
  background: #aaa;
  color: #000;
}

.music-toggle-btn svg {
  width: 14px;
  height: 14px;
}

/* Now Playing - TEAL THEME */
.music-now-playing {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.now-playing-art {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #aaa, #999);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  flex-shrink: 0;
}

.now-playing-art svg {
  width: 24px;
  height: 24px;
}

.now-playing-art.playing svg {
  animation: spin 3s linear infinite;
}

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

.now-playing-info {
  flex: 1;
  min-width: 0;
}

.now-playing-title {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.now-playing-artist {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Music Controls - TEAL THEME */
.music-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.music-ctrl-btn {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.music-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #aaa;
  color: #aaa;
}

.music-ctrl-btn svg {
  width: 14px;
  height: 14px;
}

.music-ctrl-btn.play-btn {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #aaa, #999);
  color: #000;
  border: none;
}

.music-ctrl-btn.play-btn:hover {
  background: linear-gradient(135deg, #00e4ba, #00c8a4);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.music-ctrl-btn.play-btn svg {
  width: 16px;
  height: 16px;
}

/* Progress Bar - TEAL THEME */
.music-progress {
  margin-bottom: 0.5rem;
}

.music-progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}

.music-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #aaa, #999);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.music-time {
  display: flex;
  justify-content: space-between;
  margin-top: 0.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Volume - TEAL THEME */
.music-volume {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.music-volume svg {
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.music-volume input[type="range"] {
  flex: 1;
  height: 4px;
  accent-color: #aaa;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
}

/* Playlist Toggle - TEAL THEME */
.music-playlist-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.music-playlist-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #aaa;
}

.music-playlist-toggle svg {
  width: 14px;
  height: 14px;
}

.track-count {
  margin-left: auto;
  color: #aaa;
  font-size: 0.7rem;
}

/* Playlist - TEAL THEME */
.music-playlist {
  margin-top: 0.5rem;
  max-height: 200px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}

.playlist-track {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.playlist-track:last-child {
  border-bottom: none;
}

.playlist-track:hover {
  background: rgba(255, 255, 255, 0.1);
}

.playlist-track.active {
  background: rgba(255, 255, 255, 0.15);
}

.playlist-track.active .track-name {
  color: #aaa;
  font-weight: 500;
}

.track-number {
  width: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.track-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.track-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-album {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-play-icon {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.3);
  opacity: 0;
  transition: opacity 0.2s;
}

.playlist-track:hover .track-play-icon,
.playlist-track.active .track-play-icon {
  opacity: 1;
  color: #aaa;
}

.track-play-icon svg {
  width: 100%;
  height: 100%;
}

/* ===== AI SPEECH CONTROLS ===== */
.ai-speech-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.speech-control-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.control-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-right: 0.5rem;
}

.control-buttons {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.25rem;
  border-radius: 8px;
}

.speech-control-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.speech-control-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.speech-control-btn svg {
  width: 16px;
  height: 16px;
}

/* Stop button - red */
.speech-control-btn.stop {
  color: #f87171;
}

.speech-control-btn.stop:hover {
  background: rgba(248, 113, 113, 0.2);
  color: #ef4444;
}

/* Active state (for mute button) */
.speech-control-btn.active {
  color: #aaa;
}

.speech-control-btn.active:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Muted state */
.speech-control-btn.muted {
  color: #f87171;
}

.speech-control-btn.muted:hover {
  background: rgba(248, 113, 113, 0.2);
}

/* Speed display */
.speed-display {
  font-family: 'Antonio', sans-serif;
  font-size: 0.85rem;
  color: #aaa;
  min-width: 36px;
  text-align: center;
  padding: 0 0.25rem;
}

/* Speech controls - always visible */
.ai-speech-controls {
  transition: all 0.3s ease;
}

/* When AI is speaking - highlight the controls */
.ai-speech-controls.speaking-active {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

.ai-speech-controls.speaking-active .control-label {
  color: #aaa;
}

.ai-speech-controls.speaking-active .control-buttons {
  background: rgba(255, 255, 255, 0.1);
}

/* Video Panel */
.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: #000;
  overflow: hidden;
}

#therapy-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

#emotion-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: scaleX(-1);
  pointer-events: none;
}

.emotion-overlay {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.emotion-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-family: 'Inter', sans-serif;
}

.emotion-emoji {
  font-size: 1.5rem;
}

.emotion-label {
  font-size: 0.9rem;
}

.camera-message {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  color: var(--cosmic-silver);
}

.camera-message .camera-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.camera-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.loading-spinner-small {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #aaa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.error-details {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 0.25rem;
}

.camera-controls {
  display: flex;
  gap: 0.5rem;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.icon-btn.primary {
  background: #aaa;
}

.icon-btn.active {
  background: #ff4444;
  animation: pulse 1s infinite;
}

.icon-btn.muted {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
}

.icon-btn.muted svg {
  opacity: 0.6;
}

#btn-voice-input.active {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  animation: micActive 1.5s ease-in-out infinite;
}

@keyframes micActive {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

/* Emotion Metrics */
.emotion-metrics {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.metric {
  display: grid;
  grid-template-columns: 80px 1fr 60px;
  align-items: center;
  gap: 0.5rem;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--cosmic-silver);
  font-family: 'Inter', sans-serif;
}

.metric-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.mood-fill { background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcb77); }
.mood-fill.good { background: #6bcb77; }
.mood-fill.neutral { background: #ffd93d; }
.mood-fill.low { background: #ff6b6b; }

.stress-fill { background: linear-gradient(90deg, #6bcb77, #ffd93d, #ff6b6b); }
.stress-fill.low { background: #6bcb77; }
.stress-fill.moderate { background: #ffd93d; }
.stress-fill.high { background: #ff6b6b; }

.engagement-fill { background: #aaa; }

.metric-value {
  font-size: 0.8rem;
  color: #aaa;
  text-align: right;
  font-family: 'Inter', sans-serif;
}

/* Chat Panel */
.chat-panel {
  display: flex;
  flex-direction: column;
}

.therapist-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--cosmic-silver);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #888;
}

.status-dot.online {
  background: #6bcb77;
  box-shadow: 0 0 10px #6bcb77;
}

.chat-container {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-message {
  display: flex;
  gap: 0.75rem;
  max-width: 85%;
}

.chat-message.user-message {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-message.system-message {
  align-self: center;
  max-width: 100%;
}

.message-avatar {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.message-content {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-message .message-content {
  background: rgba(255, 255, 255, 0.3);
}

.system-message .message-content {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  text-align: center;
  font-style: italic;
  font-size: 0.9rem;
}

.message-content p {
  margin: 0 0 0.5rem 0;
  color: var(--cosmic-silver);
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
}

.message-content p:last-child {
  margin-bottom: 0;
}

.message-content ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.message-content li {
  color: var(--cosmic-silver);
  margin-bottom: 0.25rem;
}

.message-time {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
  align-self: flex-end;
}

/* Quick Responses */
.quick-responses {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-responses button {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  color: #aaa;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quick-responses button:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

/* Chat Input */
.chat-input-container {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.input-wrapper {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}

.input-wrapper textarea {
  flex: 1;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  color: white;
  font-family: 'Inter', sans-serif;
  resize: none;
  min-height: 44px;
  max-height: 120px;
}

.input-wrapper textarea:focus {
  outline: none;
  border-color: #aaa;
}

.input-actions {
  display: flex;
  gap: 0.5rem;
}

/* Typing Indicator */
.typing-dots {
  display: flex;
  gap: 4px;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  background: #aaa;
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

/* Tools Panel - TEAL/MINT THEME (matches branding) */
.tools-panel {
  overflow-y: auto;
  background: linear-gradient(180deg, #0a1f1c 0%, #061512 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.therapy-modes {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.therapy-modes h4 {
  margin: 0 0 0.75rem 0;
  font-family: 'Antonio', sans-serif;
  color: #aaa;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mode-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.mode-btn {
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mode-btn.active {
  background: rgba(255, 255, 255, 0.25);
  border-color: #aaa;
  color: #aaa;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.mode-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Therapy Tools - TEAL THEME */
.therapy-tool {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.therapy-tool h4 {
  margin: 0 0 0.75rem 0;
  font-family: 'Antonio', sans-serif;
  color: #aaa;
  font-size: 0.9rem;
}

.therapy-tool p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}

.tool-btn {
  width: 100%;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.tool-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: #aaa;
}

.tool-btn.primary {
  background: linear-gradient(135deg, #aaa, #999);
  color: #000;
  border: none;
  font-weight: 500;
}

.tool-btn.primary:hover {
  background: linear-gradient(135deg, #00e4ba, #00c8a4);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.tool-btn.secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.15);
}

.tool-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Breathing Circle - TEAL THEME */
.breathing-circle {
  width: 140px;
  height: 140px;
  margin: 1rem auto;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255, 255, 255, 0.5);
  transition: all 4s ease-in-out;
  position: relative;
  transform: scale(0.85);
  cursor: pointer;
}

/* INHALE - Circle expands */
.breathing-circle.inhale {
  transform: scale(1.35);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  box-shadow: 
    0 0 40px rgba(255, 255, 255, 0.5),
    0 0 80px rgba(255, 255, 255, 0.2),
    inset 0 0 30px rgba(255, 255, 255, 0.1);
  border-color: #ccc;
  border-width: 4px;
}

/* HOLD - Circle stays expanded, glows */
.breathing-circle.hold {
  transform: scale(1.35);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  box-shadow: 
    0 0 35px rgba(255, 255, 255, 0.4),
    0 0 60px rgba(255, 255, 255, 0.15);
  border-color: #aaa;
  animation: hold-pulse 1s ease-in-out infinite;
}

/* EXHALE - Circle contracts */
.breathing-circle.exhale {
  transform: scale(0.85);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  border-width: 2px;
}

@keyframes hold-pulse {
  0%, 100% { 
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.4), 0 0 60px rgba(255, 255, 255, 0.15);
  }
  50% { 
    box-shadow: 0 0 45px rgba(255, 255, 255, 0.5), 0 0 70px rgba(255, 255, 255, 0.2);
  }
}

.breath-text {
  font-family: 'Inter', sans-serif;
  color: #aaa;
  font-size: 0.85rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  z-index: 1;
}

.breath-label {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.breath-count {
  font-family: 'Antonio', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

/* Breathing circle inner glow effect */
.breathing-circle::before {
  content: '';
  position: absolute;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  animation: inner-glow 2s ease-in-out infinite;
}

@keyframes inner-glow {
  0%, 100% { opacity: 0.5; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

.breathing-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Grounding Steps - TEAL THEME */
.grounding-steps {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.grounding-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.grounding-step.active {
  border-color: #aaa;
  background: rgba(255, 255, 255, 0.15);
}

.grounding-step.completed {
  opacity: 0.5;
}

.step-number {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #aaa, #999);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Antonio', sans-serif;
  color: #000;
  font-size: 0.9rem;
  font-weight: 600;
}

.step-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Inter', sans-serif;
}

/* Journal - TEAL THEME */
.journal-tool textarea {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 80px;
}

.journal-tool textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.journal-tool textarea:focus {
  outline: none;
  border-color: #aaa;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

/* Session Progress - TEAL THEME */
.session-progress {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.session-progress h4 {
  margin: 0 0 0.75rem 0;
  font-family: 'Antonio', sans-serif;
  color: #aaa;
  font-size: 0.9rem;
}

.progress-chart {
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  margin-bottom: 1rem;
}

.session-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.stat {
  text-align: center;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.stat-value {
  display: block;
  font-family: 'Antonio', sans-serif;
  font-size: 1.2rem;
  color: #aaa;
}

.stat-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Inter', sans-serif;
}

/* Crisis Alert */
.crisis-alert {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.crisis-content {
  max-width: 500px;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(255, 68, 68, 0.1) 0%, rgba(0, 0, 0, 0.9) 100%);
  border: 2px solid #ff4444;
  border-radius: 16px;
  text-align: center;
}

.crisis-content h2 {
  color: #ff6b6b;
  font-family: 'Antonio', sans-serif;
  margin-bottom: 1rem;
}

.crisis-content p {
  color: var(--cosmic-silver);
  font-family: 'Inter', sans-serif;
  margin-bottom: 1.5rem;
}

.crisis-hotlines {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.crisis-btn {
  display: block;
  padding: 1rem;
  background: rgba(255, 68, 68, 0.2);
  border: 1px solid #ff6b6b;
  border-radius: 8px;
  color: white;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.crisis-btn:hover {
  background: rgba(255, 68, 68, 0.4);
}

.text-btn {
  background: none;
  border: none;
  color: var(--cosmic-silver);
  font-family: 'Inter', sans-serif;
  text-decoration: underline;
  cursor: pointer;
}

/* Session Start Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-content {
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
}

/* Modal Header Icon */
.modal-header-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 68, 68, 0.15) 0%, rgba(255, 68, 68, 0.05) 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 68, 68, 0.2);
}

.modal-header-icon svg {
  width: 32px;
  height: 32px;
  color: #ff4444;
}

.modal-content h2 {
  color: #fff;
  font-family: 'Antonio', sans-serif;
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  text-align: center;
  letter-spacing: 0.02em;
}

.modal-content > p,
.modal-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Inter', sans-serif;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Headphone Recommendation Notice */
.headphone-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.headphone-notice svg {
  width: 28px;
  height: 28px;
  stroke: #aaa;
  flex-shrink: 0;
}

.headphone-notice span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.headphone-notice strong {
  color: #aaa;
}

@media (max-width: 480px) {
  .headphone-notice {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
  
  .headphone-notice span {
    font-size: 0.85rem;
  }
}

.session-options h4 {
  color: #aaa;
  font-family: 'Antonio', sans-serif;
  margin-bottom: 1rem;
}

.option-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.option-card {
  padding: 1.5rem 1rem;
  background: rgba(18, 18, 22, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.option-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #aaa, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.option-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.option-card:hover::before {
  opacity: 1;
}

.option-card.selected {
  border-color: #aaa;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

.option-card.selected::before {
  opacity: 1;
}

.option-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.option-icon svg {
  width: 24px;
  height: 24px;
  color: #aaa;
  transition: all 0.3s ease;
}

.option-card:hover .option-icon {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.option-card:hover .option-icon svg {
  color: #bbb;
}

.option-card.selected .option-icon {
  background: rgba(255, 255, 255, 0.06);
}

.option-card h5 {
  color: #fff;
  font-family: 'Antonio', sans-serif;
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.02em;
}

.option-card p {
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.4;
}

.camera-permission {
  margin-bottom: 1.5rem;
}

.camera-permission .checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.camera-permission .checkbox-label:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
}

.camera-permission .checkbox-icon {
  width: 20px;
  height: 20px;
  color: #aaa;
  flex-shrink: 0;
}

.camera-permission input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #aaa;
  flex-shrink: 0;
}

.camera-permission span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cosmic-silver);
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  accent-color: #aaa;
}

.consent-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 193, 7, 0.08);
  border: 1px solid rgba(255, 193, 7, 0.2);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.consent-notice .notice-icon {
  width: 20px;
  height: 20px;
  color: #ffc107;
  flex-shrink: 0;
  margin-top: 2px;
}

.consent-notice p {
  margin: 0;
  color: rgba(255, 193, 7, 0.9);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  text-align: left;
  line-height: 1.5;
}

.consent-notice strong {
  color: #ffc107;
}

/* Start Session Button */
.start-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}

.start-btn svg {
  width: 18px;
  height: 18px;
}

/* Exercise Suggestion */
.exercise-suggestion {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 0.5rem;
}

.exercise-suggestion h5 {
  color: #aaa;
  font-family: 'Antonio', sans-serif;
  margin: 0 0 0.5rem 0;
}

.exercise-suggestion p {
  margin: 0 0 0.75rem 0;
}

.tool-btn.small {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  width: auto;
  margin: 0;
}

/* Responsive */
@media (max-width: 1200px) {
  .therapy-grid {
    grid-template-columns: 1fr 1.5fr;
  }
  
  .tools-panel {
    display: none;
  }
  
  /* Show mobile tools toggle button */
  .mobile-tools-toggle {
    display: flex !important;
  }
}

@media (max-width: 768px) {
  .therapy-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.5rem;
  }
  
  .video-panel {
    order: 1;
    display: flex !important;
    flex-direction: column;
    min-height: 292px;
    max-height: 375px;
    overflow: hidden;
  }
  
  .video-panel .video-container {
    flex: 1;
    min-height: 200px;
    aspect-ratio: auto;
  }
  
  .video-panel #therapy-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .video-panel .emotion-metrics {
    padding: 0.5rem;
    gap: 0.5rem;
  }
  
  .chat-panel {
    order: 2;
    min-height: 350px;
  }
  
  .therapy-header {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }
  
  .session-info {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }
  
  .session-info .session-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
  
  .option-cards {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .panel-header {
    padding: 0.5rem 0.75rem;
    flex-shrink: 0;
  }
  
  .panel-header h3 {
    font-size: 0.85rem;
  }
  
  .video-panel .panel-header {
    padding: 0.4rem 0.75rem;
  }
  
  .camera-controls .icon-btn {
    width: 32px;
    height: 32px;
  }
  
  /* Mobile chat input */
  .chat-input-wrapper {
    padding: 0.75rem;
  }
  
  .chat-input {
    font-size: 16px; /* Prevents iOS zoom */
    padding: 0.6rem 0.75rem;
  }
  
  .input-actions {
    gap: 0.25rem;
  }
  
  .icon-btn {
    width: 36px;
    height: 36px;
  }
  
  /* Mobile AI controls */
  .ai-speech-controls {
    padding: 0.4rem 0.75rem;
  }
  
  .speech-control-btn {
    width: 32px;
    height: 32px;
  }
  
  .control-label {
    font-size: 0.7rem;
  }
  
  /* Mobile wellness panel */
  .wellness-score-panel {
    padding: 0.75rem;
  }
  
  /* Mobile music player */
  .therapy-music-player {
    padding: 0.6rem;
  }
  
  .music-controls {
    gap: 0.4rem;
  }
  
  .music-ctrl-btn {
    width: 28px;
    height: 28px;
  }
  
  .music-ctrl-btn.play-btn {
    width: 36px;
    height: 36px;
  }
}

/* Mobile Tools Panel - Slide-out drawer */
.mobile-tools-toggle {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #aaa, #999);
  border: none;
  border-radius: 50%;
  color: #000;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.4);
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.mobile-tools-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.5);
}

.mobile-tools-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile Tools Drawer */
.tools-panel.mobile-open {
  display: flex !important;
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 350px;
  height: 100vh;
  z-index: 1001;
  animation: slideInRight 0.3s ease;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Mobile overlay */
.mobile-tools-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.mobile-tools-overlay.active {
  display: block;
}

/* Mobile Tools Close Button */
.mobile-tools-close {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #aaa;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.tools-panel.mobile-open .mobile-tools-close {
  display: flex;
}

/* Improve touch targets on mobile */
@media (max-width: 768px) {
  .mode-btn {
    padding: 0.75rem 0.5rem;
    min-height: 44px;
  }
  
  .tool-btn {
    padding: 0.75rem;
    min-height: 44px;
  }
  
  .grounding-step {
    padding: 0.75rem;
    min-height: 48px;
  }
  
  .playlist-track {
    padding: 0.75rem 0.5rem;
    min-height: 44px;
  }
}


/* ============================================================
   VOICE ANALYSIS PAGE REDESIGN - Modern Sleek Design
   ============================================================ */

/* Voice Hero Section */
.voice-hero-section {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, transparent 100%);
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

/* Main Microphone Button */
.voice-main-control {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.mic-button {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(145deg, rgba(20, 20, 30, 0.9), rgba(10, 10, 15, 0.95));
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 
    0 0 0 2px rgba(255, 68, 68, 0.3),
    0 10px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mic-button:hover {
  transform: scale(1.05);
  box-shadow: 
    0 0 0 3px rgba(255, 68, 68, 0.5),
    0 15px 50px rgba(255, 68, 68, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.mic-button[data-state="listening"] {
  box-shadow: 
    0 0 0 4px rgba(255, 68, 68, 0.6),
    0 0 30px rgba(255, 68, 68, 0.4),
    0 15px 50px rgba(255, 68, 68, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mic-button[data-state="listening"] .mic-icon svg {
  color: #ff4444;
}

.mic-button-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mic-icon {
  width: 48px;
  height: 48px;
  z-index: 2;
}

.mic-icon svg {
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s ease;
}

/* Pulse Animation */
.mic-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 68, 68, 0.2);
  opacity: 0;
  pointer-events: none;
}

.mic-button[data-state="listening"] .mic-pulse {
  animation: micPulse 1.5s ease-out infinite;
}

.mic-button[data-state="listening"] .mic-pulse-2 {
  animation: micPulse 1.5s ease-out infinite 0.5s;
}

@keyframes micPulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.mic-label {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Voice Status */
.voice-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.voice-status.listening .status-dot {
  background: #ff4444;
  box-shadow: 0 0 10px #ff4444;
  animation: statusPulse 1s ease infinite;
}

.voice-status.ready .status-dot {
  background: #aaa;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.voice-status .status-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Inter', sans-serif;
}

/* Quick Controls */
.voice-quick-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.language-select-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.language-select-wrapper:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.language-select-wrapper .select-icon {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.5);
}

.language-select-modern {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
  padding-right: 0.5rem;
}

.language-select-modern option {
  background: #1a1a2e;
  color: white;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.quick-action-btn svg {
  width: 16px;
  height: 16px;
}

/* Speaker Identification - Modern */
.speaker-identification-modern {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.speaker-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.speaker-card.active {
  border-color: #aaa;
  background: rgba(255, 255, 255, 0.1);
}

.speaker-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.speaker-avatar svg {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.6);
}

.speaker-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.speaker-confidence {
  font-size: 0.75rem;
  color: #aaa;
  font-weight: 600;
}

/* Transcript Box */
.transcript-box {
  width: 100%;
  max-width: 800px;
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.transcript-header-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.transcript-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.transcript-icon {
  width: 18px;
  height: 18px;
  color: #aaa;
}

.transcript-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Inter', sans-serif;
}

.transcript-badge.listening {
  background: rgba(255, 68, 68, 0.2);
  color: #ff4444;
}

.transcript-content {
  min-height: 150px;
  max-height: 300px;
  overflow-y: auto;
  padding: 1.25rem;
}

.transcript-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
}

.placeholder-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.transcript-placeholder p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  margin: 0 0 0.25rem 0;
}

.placeholder-hint {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Analysis Hero Section */
.analysis-hero-section {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.analysis-header {
  text-align: center;
  margin-bottom: 2rem;
}

.analysis-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: 'Antonio', sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: white;
  margin: 0 0 0.5rem 0;
}

.section-icon {
  width: 28px;
  height: 28px;
  color: #aaa;
}

.analysis-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Results Grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.result-card {
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.card-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Risk Card */
.risk-score-display {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.risk-circle {
  position: relative;
  width: 140px;
  height: 140px;
}

.risk-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 8;
}

.ring-progress {
  fill: none;
  stroke: #aaa;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 1s ease, stroke 0.3s ease;
}

.risk-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.risk-value span:first-child {
  display: block;
  font-family: 'Antonio', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.risk-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.risk-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.metric-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-item:last-child {
  border-bottom: none;
}

.metric-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.metric-value {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

/* MBTI Card - Redesigned */
.mbti-card .mbti-display {
  text-align: center;
}

.mbti-type-badge {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: linear-gradient(145deg, rgba(255, 68, 68, 0.2), rgba(255, 68, 68, 0.1));
  border: 2px solid rgba(255, 68, 68, 0.4);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.mbti-type-badge .mbti-type {
  font-family: 'Antonio', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: rgba(255, 68, 68, 0.5);
  letter-spacing: 0.2em;
  transition: color 0.3s ease;
}

.mbti-type-badge.active {
  background: linear-gradient(145deg, rgba(255, 68, 68, 0.3), rgba(255, 68, 68, 0.15));
  border-color: rgba(255, 68, 68, 0.6);
  box-shadow: 0 0 20px rgba(255, 68, 68, 0.2);
}

.mbti-type-badge.active .mbti-type {
  color: #ff4444;
}

.mbti-hint {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  margin-top: 1rem;
  font-style: italic;
}

.mbti-hint.hidden {
  display: none;
}

.mbti-traits {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.trait-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trait-end {
  width: 20px;
  font-family: 'Antonio', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.trait-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.trait-indicator {
  position: absolute;
  top: 0;
  left: 50%;
  width: 12px;
  height: 100%;
  background: #aaa;
  border-radius: 3px;
  transform: translateX(-50%);
  transition: left 0.5s ease;
}

.mini-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #aaa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Analysis Tabs */
.analysis-tabs-container {
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.tabs-header {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.analysis-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

.analysis-tab:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.03);
}

.analysis-tab.active {
  color: white;
  border-bottom-color: #aaa;
  background: rgba(255, 255, 255, 0.05);
}

.analysis-tab svg {
  width: 18px;
  height: 18px;
}

.tabs-content {
  padding: 1.5rem;
}

.analysis-content {
  min-height: 100px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.empty-state p {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  margin: 0;
}

/* Guides Section - Collapsible */
.guides-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.guide-accordion {
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  transition: background 0.2s ease;
}

.accordion-trigger:hover {
  background: rgba(255, 255, 255, 0.03);
}

.accordion-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
}

.accordion-title svg {
  width: 20px;
  height: 20px;
  color: #aaa;
}

.accordion-chevron {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.3s ease;
}

.accordion-trigger.open .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
  padding: 0 1.25rem 1.25rem;
  animation: slideDown 0.3s ease;
}

.accordion-content.show {
  display: block;
}

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

/* Color Legend */
.color-legend {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.legend-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 2px;
  flex-shrink: 0;
}

.legend-item.safe .legend-dot { background: #059669; }
.legend-item.depression .legend-dot { background: #ff8c00; }
.legend-item.redflag .legend-dot { background: #dc2626; }
.legend-item.neutral .legend-dot { background: #3b82f6; }

.legend-info strong {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.25rem;
}

.legend-info span {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

.guide-warning {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 8px;
}

.guide-warning svg {
  width: 20px;
  height: 20px;
  color: #ffc107;
  flex-shrink: 0;
}

.guide-warning span {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Severity Legend */
.severity-legend {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.severity-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.severity-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  min-width: 80px;
  text-align: center;
}

.severity-badge.high { background: #dc2626; color: white; }
.severity-badge.moderate { background: #f59e0b; color: #000; }
.severity-badge.mild { background: #fbbf24; color: #000; }
.severity-badge.severe { background: #7f1d1d; color: white; }

.severity-item span:last-child {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Conditions List */
.conditions-list {
  margin-bottom: 1rem;
}

.conditions-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 0.75rem 0;
}

.conditions-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.condition-tag {
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: #aaa;
}

.disclaimer-box {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid #aaa;
  border-radius: 0 8px 8px 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.disclaimer-box strong {
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================================
   VOICE ANALYSIS - MOBILE RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .voice-hero-section {
    padding: 1rem;
    gap: 1rem;
  }

  .mic-button {
    width: 100px;
    height: 100px;
  }

  .mic-icon {
    width: 40px;
    height: 40px;
  }

  .mic-label {
    font-size: 0.9rem;
  }

  .voice-quick-controls {
    width: 100%;
    justify-content: space-between;
  }

  .quick-action-btn span {
    display: none;
  }

  .quick-action-btn {
    padding: 0.75rem;
  }

  .quick-action-btn svg {
    width: 20px;
    height: 20px;
  }

  .language-select-wrapper {
    flex: 1;
    max-width: 200px;
  }

  .speaker-identification-modern {
    flex-direction: column;
    width: 100%;
  }

  .speaker-card {
    width: 100%;
    justify-content: center;
  }

  .transcript-box {
    border-radius: 12px;
  }

  .transcript-content {
    min-height: 120px;
    max-height: 200px;
  }

  .results-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .risk-circle {
    width: 120px;
    height: 120px;
  }

  .risk-value span:first-child {
    font-size: 2rem;
  }

  .analysis-title {
    font-size: 1.5rem;
  }

  .tabs-header {
    flex-wrap: wrap;
  }

  .analysis-tab {
    flex: 1 1 33%;
    min-width: auto;
    padding: 0.75rem 0.5rem;
    font-size: 0.8rem;
  }

  .analysis-tab svg {
    width: 16px;
    height: 16px;
  }

  .color-legend {
    grid-template-columns: 1fr;
  }

  .severity-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .conditions-tags {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .mic-button {
    width: 90px;
    height: 90px;
  }

  .analysis-tab {
    flex: 1 1 100%;
  }

  .tabs-header {
    flex-direction: column;
  }

  .mbti-type-badge .mbti-type {
    font-size: 1.5rem;
  }
}

/* ========== MBTI SELF-TEST PAGE STYLES (SLEEK DESIGN) ========== */

/* Hero Intro */
.mbti-hero-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.mbti-hero-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(0, 150, 136, 0.1) 100%);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 3s ease-in-out infinite;
}

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

.mbti-hero-icon svg {
  width: 40px;
  height: 40px;
  stroke: #aaa;
}

.mbti-hero-title {
  font-family: 'Antonio', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.mbti-hero-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  margin-bottom: 0;
}

/* Dimension Cards */
.mbti-dimension-cards {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.dimension-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0.3) 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  text-align: center;
  min-width: 100px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.dimension-card:hover {
  border-color: #aaa;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
}

.dimension-card-letters {
  font-family: 'Antonio', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #aaa;
  margin-bottom: 0.25rem;
  letter-spacing: 0.1em;
}

.dimension-card-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* Start Test Button - Play Icon */
.start-test-btn .mic-icon.play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-left: 4px; /* Optical centering for play triangle */
}

.start-test-btn .mic-icon svg {
  width: 40px;
  height: 40px;
  fill: #aaa !important;
}

.start-test-btn .mic-icon svg polygon {
  fill: #aaa !important;
}

/* Tip Box */
.mbti-tip-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 193, 7, 0.08);
  border: 1px solid rgba(255, 193, 7, 0.2);
  border-radius: 10px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.mbti-tip-box svg {
  width: 18px;
  height: 18px;
  stroke: #ffc107;
  flex-shrink: 0;
}

.mbti-tip-box span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Progress Bar */
.mbti-progress-bar {
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.mbti-progress-bar .progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.mbti-progress-bar .progress-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.mbti-progress-bar .progress-percent {
  font-family: 'Antonio', sans-serif;
  font-size: 1rem;
  color: #aaa;
  font-weight: 600;
}

.mbti-progress-bar .progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.mbti-progress-bar .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #aaa, #ccc);
  border-radius: 3px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Question Display */
.mbti-question-display {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
}

.question-badge {
  display: inline-block;
  background: #aaa;
  color: #000;
  font-family: 'Antonio', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}

.mbti-question-display .question-text {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.5;
  font-weight: 500;
}

.mbti-question-display .question-hint {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  font-style: italic;
}

/* Nav Controls */
.mbti-nav-controls {
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.mbti-nav-controls .quick-action-btn {
  min-width: 120px;
}

.mbti-nav-controls .primary-action {
  background: linear-gradient(135deg, #aaa, #00a88a);
  border-color: #aaa;
  color: #000;
}

.mbti-nav-controls .primary-action:disabled {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
}

.mbti-nav-controls .primary-action.enabled {
  animation: glow-pulse 2s infinite;
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.3); }
  50% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.5); }
}

/* Recording State for Mic Button */
.mic-button.recording,
.mic-button.active {
  box-shadow: 
    0 0 0 4px rgba(255, 68, 68, 0.6),
    0 0 30px rgba(255, 68, 68, 0.4),
    0 15px 50px rgba(255, 68, 68, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mic-button.recording .mic-icon svg,
.mic-button.active .mic-icon svg {
  color: #ff4444;
  stroke: #ff4444;
}

.mic-button.recording .mic-pulse,
.mic-button.active .mic-pulse {
  animation: micPulse 1.5s ease-out infinite;
}

.mic-button.recording .mic-pulse-2,
.mic-button.active .mic-pulse-2 {
  animation: micPulse 1.5s ease-out infinite 0.5s;
}

/* Status Dot */
.status-dot.recording {
  background: #ef4444;
  animation: pulse-dot 1s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* Results Hero */
.mbti-result-hero {
  text-align: center;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  margin-bottom: 2rem;
}

.mbti-type-large {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.type-char {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #aaa, #00a88a);
  color: #000;
  font-family: 'Antonio', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.mbti-type-title {
  font-family: 'Antonio', sans-serif;
  font-size: 1.75rem;
  color: #aaa;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.mbti-type-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  max-width: 450px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

/* Confidence Meter */
.confidence-meter {
  max-width: 300px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.confidence-meter .confidence-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.confidence-meter .confidence-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.confidence-meter .confidence-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffc107, #4caf50);
  border-radius: 4px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.confidence-meter .confidence-value {
  font-family: 'Antonio', sans-serif;
  font-size: 1.25rem;
  color: #aaa;
  font-weight: 600;
}

/* Dimension Results */
.mbti-dimension-results {
  margin-bottom: 1.5rem;
}

.dimension-results-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1rem;
}

.dimension-result-item {
  padding: 0;
}

.dimension-result-item .dim-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dimension-result-item .dim-left {
  color: rgba(255, 255, 255, 0.7);
}

.dimension-result-item .dim-right {
  color: rgba(255, 255, 255, 0.7);
}

.dimension-result-item .dim-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}

.dimension-result-item .dim-fill {
  position: absolute;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, #aaa, #ccc);
  border-radius: 5px;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  width: 50%;
}

.dimension-result-item .dim-center {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  transform: translateX(-50%);
}

/* Traits Results */
.mbti-traits-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.mbti-traits-results .analysis-tab {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  overflow: hidden;
}

.mbti-traits-results .tab-header {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mbti-traits-results .tab-header svg {
  width: 18px;
  height: 18px;
  stroke: #aaa;
}

.mbti-traits-results .tab-header span {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.trait-list {
  list-style: none;
  padding: 1rem;
  margin: 0;
}

.trait-list li {
  padding: 0.6rem 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trait-list li:last-child {
  border-bottom: none;
}

.trait-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #aaa;
  border-radius: 50%;
  flex-shrink: 0;
}

.strengths-tab .trait-list li::before {
  background: #4caf50;
}

.growth-tab .trait-list li::before {
  background: #ffc107;
}

/* Results Actions */
.results-actions {
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.results-actions .primary-action {
  background: linear-gradient(135deg, #aaa, #00a88a);
  border-color: #aaa;
  color: #000;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .mbti-hero-title {
    font-size: 1.5rem;
  }
  
  .mbti-dimension-cards {
    gap: 0.5rem;
  }
  
  .dimension-card {
    min-width: 70px;
    padding: 0.75rem 1rem;
  }
  
  .dimension-card-letters {
    font-size: 1.2rem;
  }
  
  .mbti-question-display .question-text {
    font-size: 1.1rem;
  }
  
  .type-char {
    width: 55px;
    height: 55px;
    font-size: 2rem;
  }
  
  .mbti-traits-results {
    grid-template-columns: 1fr;
  }
  
  .mbti-nav-controls {
    flex-direction: row;
  }
  
  .mbti-nav-controls .quick-action-btn {
    min-width: 100px;
  }
  
  /* Enhanced MBTI Mobile Styles */
  .mbti-hero-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }
  
  .mbti-hero-icon svg {
    width: 30px;
    height: 30px;
  }
  
  .mbti-tip-box {
    padding: 0.75rem 1rem;
    flex-direction: column;
    text-align: center;
  }
  
  .mbti-tip-box span {
    font-size: 0.8rem;
  }
  
  .mbti-progress-bar {
    padding: 0;
  }
  
  .mbti-question-display {
    padding: 1.25rem;
  }
  
  .question-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
  }
  
  .mbti-question-display .question-hint {
    font-size: 0.8rem;
  }
  
  .mbti-result-hero {
    padding: 1.5rem;
  }
  
  .mbti-type-large {
    gap: 0.5rem;
  }
  
  .mbti-type-title {
    font-size: 1.4rem;
  }
  
  .mbti-type-desc {
    font-size: 0.9rem;
  }
  
  .confidence-meter {
    max-width: 100%;
  }
  
  .dimension-results-grid {
    padding: 0.75rem;
  }
  
  .dimension-result-item .dim-labels {
    font-size: 0.65rem;
  }
  
  .trait-list li {
    font-size: 0.85rem;
    padding: 0.5rem 0;
  }
  
  .results-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .results-actions .quick-action-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .mbti-hero-title {
    font-size: 1.3rem;
  }
  
  .mbti-dimension-cards {
    gap: 0.4rem;
  }
  
  .dimension-card {
    min-width: 60px;
    padding: 0.6rem 0.8rem;
  }
  
  .dimension-card-letters {
    font-size: 1rem;
  }
  
  .dimension-card-label {
    font-size: 0.55rem;
  }
  
  .type-char {
    width: 45px;
    height: 45px;
    font-size: 1.6rem;
  }
  
  .mbti-question-display .question-text {
    font-size: 1rem;
    line-height: 1.4;
  }
}

/* ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
   MBTI PAGE FIXES - Clean Design & Mobile Navigation
   ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? */

/* Remove any weird borders/lines from mic button states */
.mic-button,
.start-test-btn {
  text-decoration: none !important;
  outline: none !important;
}

.mic-button::after,
.mic-button::before,
.start-test-btn::after,
.start-test-btn::before {
  display: none !important;
}

/* Clean mic button appearance */
.voice-main-control .mic-button {
  box-shadow: 
    0 0 0 2px rgba(255, 68, 68, 0.3),
    0 10px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.voice-main-control .start-test-btn {
  box-shadow: 
    0 0 0 2px rgba(255, 255, 255, 0.3),
    0 10px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.voice-main-control .start-test-btn:hover {
  box-shadow: 
    0 0 0 3px rgba(255, 255, 255, 0.5),
    0 15px 50px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.voice-main-control .start-test-btn .mic-icon svg {
  color: #aaa;
  stroke: #aaa;
  fill: #aaa;
}

.voice-main-control .start-test-btn .mic-icon svg polygon {
  fill: #aaa;
  stroke: none;
}

/* Hide the duplicate voice status when not needed */
#question-section .voice-status {
  margin-top: 0.5rem;
}

/* Clean transcript box appearance */
.transcript-box {
  width: 100%;
  max-width: 600px;
  margin: 1.5rem auto;
}


    display: block !important;
    width: 24px !important;
    height: 3px !important;
    background: #aaa !important;
    border-radius: 2px !important;
  }
  
  .nav-user {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }
  
  /* Page header mobile */
  .page-container .page-header {
    padding: 0.5rem 1rem;
  }
  
  .page-title {
    font-size: 1.4rem;
  }
  
  .page-subtitle {
    font-size: 0.85rem;
    line-height: 1.4;
  }
  
  /* Voice control section mobile */
  .voice-main-control {
    gap: 0.75rem;
  }
  
  .mic-label {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
  }
  
  /* Compact voice status on mobile */
  .voice-status {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }
  
  /* Transcript box mobile */
  .transcript-box {
    margin: 1rem auto;
  }
  
  .transcript-header-modern {
    padding: 0.75rem 1rem;
  }
  
  .transcript-content {
    min-height: 80px;
    padding: 1rem;
  }
  
  .transcript-placeholder p {
    font-size: 0.85rem;
  }
  
  .transcript-placeholder .placeholder-hint {
    font-size: 0.75rem;
  }
  
  /* Button nav controls mobile */
  .mbti-nav-controls {
    gap: 0.75rem;
    margin-top: 1rem;
  }
  
  .mbti-nav-controls .quick-action-btn {
    min-width: 90px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }
}

/* Extra small mobile fixes */
@media (max-width: 480px) {
  .main-navigation .nav-container {
    padding: 0.75rem 1rem;
  }
  

  .mic-button,
  .start-test-btn {
    width: 100px;
    height: 100px;
  }
  
  .mic-icon {
    width: 40px;
    height: 40px;
  }
  
  .mic-label {
    font-size: 0.8rem;
  }
  
  .page-title {
    font-size: 1.2rem;
  }
  
  .page-subtitle {
    font-size: 0.8rem;
  }
}

/* ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
   MODERN MUSIC PLAYER STYLES
   ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? */

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

.music-player-modern {
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* Visualizer */
.music-visualizer {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 2rem;
}

.visualizer-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: pulse-ring 3s ease-in-out infinite;
}

.visualizer-ring.ring-2 {
  width: 130%;
  height: 130%;
  animation-delay: 0.5s;
  border-color: rgba(255, 255, 255, 0.1);
}

.visualizer-ring.ring-3 {
  width: 160%;
  height: 160%;
  animation-delay: 1s;
  border-color: rgba(255, 255, 255, 0.05);
}

.music-visualizer.playing .visualizer-ring {
  animation: pulse-ring-active 1s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.7; }
}

@keyframes pulse-ring-active {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.5; }
}

.music-icon-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(0, 0, 0, 0.5) 100%);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-icon-center svg {
  width: 40px;
  height: 40px;
  color: #aaa;
}

/* Track Info */
.track-info-modern {
  margin-bottom: 1.5rem;
}

.track-title-modern {
  font-family: 'Antonio', sans-serif;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.track-artist-modern {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Progress Bar */
.progress-modern {
  margin-bottom: 1.5rem;
}

.progress-track-modern {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill-modern {
  height: 100%;
  background: linear-gradient(90deg, #aaa, #ccc);
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s linear;
}

.time-display-modern {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Inter', sans-serif;
}

/* Music Controls */
.music-controls-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.music-control-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.music-control-btn svg {
  width: 20px;
  height: 20px;
}

.music-control-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  color: #aaa;
}

.music-control-btn.play-btn {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(0, 0, 0, 0.3) 100%);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.music-control-btn.play-btn svg {
  width: 28px;
  height: 28px;
  color: #aaa;
}

.music-control-btn.play-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(0, 0, 0, 0.4) 100%);
  transform: scale(1.05);
}

/* Volume Control */
.volume-control-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.volume-icon {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.5);
}

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

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: #aaa;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Playlist Modern */
.playlist-tab {
  position: relative;
}

.tab-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-close svg {
  width: 16px;
  height: 16px;
}

.tab-close:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.playlist-modern {
  max-height: 400px;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.playlist-item-modern {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.playlist-item-modern:hover {
  background: rgba(255, 255, 255, 0.05);
}

.playlist-item-modern.active {
  background: rgba(255, 255, 255, 0.1);
  border-left: 3px solid #aaa;
}

.playlist-item-number {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.playlist-item-modern.active .playlist-item-number {
  background: rgba(255, 255, 255, 0.06);
  color: #aaa;
}

.playlist-item-info {
  flex: 1;
  min-width: 0;
}

.playlist-item-title {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-item-play {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.playlist-item-play svg {
  width: 14px;
  height: 14px;
  color: #aaa;
}

.playlist-item-modern:hover .playlist-item-play,
.playlist-item-modern.active .playlist-item-play {
  opacity: 1;
}

/* Music Benefits */
.music-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 0.5rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.benefit-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.benefit-text strong {
  display: block;
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.benefit-text span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

/* ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
   MODERN SETTINGS PAGE STYLES
   ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? */

.settings-panel {
  max-width: 800px;
  margin: 0 auto;
}

.settings-card {
  margin-bottom: 0;
}

.settings-grid-modern {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.5rem 0;
}

.setting-item-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  gap: 1rem;
}

.setting-info {
  flex: 1;
}

.setting-info label {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.setting-info .setting-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Modern Select Dropdown */
.setting-select-modern {
  min-width: 180px;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  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='%23aaaaaa' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.setting-select-modern:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.setting-select-modern:focus {
  outline: none;
  border-color: #aaa;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.setting-select-modern option {
  background: #0a0a0a;
  color: #fff;
}

/* Modern Toggle Switch */
.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  transition: all 0.3s ease;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.toggle-switch input:checked + .toggle-slider {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(24px);
  background: #aaa;
}

/* Calibration Card */
.calibration-card-modern,
.access-card-modern {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
}

.calibration-icon,
.access-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.calibration-icon svg,
.access-icon svg {
  width: 28px;
  height: 28px;
  color: #aaa;
}

.calibration-info,
.access-info {
  flex: 1;
}

.calibration-info h3,
.access-info h3 {
  font-family: 'Antonio', sans-serif;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.calibration-info p,
.access-info p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

/* Settings Actions Row */
.settings-actions-row {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-save-row {
  justify-content: flex-end;
  margin-top: 2rem;
}

/* Danger Button */
.danger-btn {
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  color: #ef4444 !important;
}

.danger-btn:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .music-visualizer {
    width: 140px;
    height: 140px;
  }
  
  .music-icon-center {
    width: 80px;
    height: 80px;
  }
  
  .music-icon-center svg {
    width: 32px;
    height: 32px;
  }
  
  .track-title-modern {
    font-size: 1.2rem;
  }
  
  .music-control-btn {
    width: 44px;
    height: 44px;
  }
  
  .music-control-btn.play-btn {
    width: 60px;
    height: 60px;
  }
  
  .music-benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .setting-item-modern {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .setting-item-modern.toggle-item {
    flex-direction: row;
    align-items: center;
  }
  
  .setting-select-modern {
    width: 100%;
    min-width: unset;
  }
  
  .calibration-card-modern,
  .access-card-modern {
    flex-direction: column;
    text-align: center;
  }
  
  .settings-actions-row {
    flex-direction: column;
  }
  
  .settings-actions-row .quick-action-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
   MODERN DASHBOARD STYLES
   ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? */

.dashboard-modern {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Hero Stats Grid */
.dashboard-hero-section {
  margin-bottom: 1rem;
}

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

.dashboard-stat-card {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(20, 20, 30, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.dashboard-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 4px 0 0 4px;
}

.dashboard-stat-card.accent-teal::before {
  background: linear-gradient(180deg, #aaa, #00a88a);
}

.dashboard-stat-card.accent-blue::before {
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
}

.dashboard-stat-card.accent-purple::before {
  background: linear-gradient(180deg, #8b5cf6, #6d28d9);
}

.dashboard-stat-card.accent-green::before {
  background: linear-gradient(180deg, #10b981, #059669);
}

.dashboard-stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: #aaa;
}

.accent-blue .stat-card-icon svg { stroke: #3b82f6; }
.accent-purple .stat-card-icon svg { stroke: #8b5cf6; }
.accent-green .stat-card-icon svg { stroke: #10b981; }
.accent-pink .stat-card-icon svg { stroke: #ec4899; }

.stat-card-content {
  flex: 1;
  min-width: 0;
}

.stat-card-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.stat-card-value {
  font-family: 'Antonio', sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.stat-card-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.25rem;
  display: block;
}

/* Dashboard Cards */
.dashboard-card {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(20, 20, 30, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.75rem;
  transition: all 0.3s ease;
}

.dashboard-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon svg {
  width: 22px;
  height: 22px;
  stroke: #aaa;
}

.card-title-group {
  flex: 1;
}

.card-title {
  font-family: 'Antonio', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.25rem 0;
}

.card-subtitle {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* Profile Status Modern */
.profile-status-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.profile-indicator {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.indicator-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.indicator-ring.not-calibrated {
  background: rgba(239, 68, 68, 0.1);
  border: 2px solid rgba(239, 68, 68, 0.3);
}

.indicator-ring.not-calibrated svg {
  stroke: #ef4444;
}

.indicator-ring.calibrated {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.indicator-ring.calibrated svg {
  stroke: #aaa;
}

.indicator-ring svg {
  width: 26px;
  height: 26px;
}

.indicator-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.25rem 0;
}

.indicator-info p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* Modern Buttons */
.btn-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-modern svg {
  width: 18px;
  height: 18px;
}

.btn-teal {
  background: linear-gradient(135deg, #aaa, #00a88a);
  color: #000;
}

.btn-teal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-teal svg {
  stroke: #000;
}

/* Empty State Modern */
.empty-state-modern {
  text-align: center;
  padding: 3rem 2rem;
}

.empty-state-modern .empty-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 2px dashed rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state-modern .empty-icon svg {
  width: 32px;
  height: 32px;
  stroke: rgba(255, 255, 255, 0.3);
}

.empty-state-modern h3 {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 0.5rem 0;
}

.empty-state-modern p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 1.5rem 0;
}

/* Quick Actions Grid */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.quick-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.quick-action-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.quick-action-card .action-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-action-card .action-icon svg {
  width: 24px;
  height: 24px;
}

.action-icon.accent-teal {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.action-icon.accent-teal svg { stroke: #aaa; }

.action-icon.accent-purple {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
}
.action-icon.accent-purple svg { stroke: #8b5cf6; }

.action-icon.accent-pink {
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.2);
}
.action-icon.accent-pink svg { stroke: #ec4899; }

.action-icon.accent-green {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.action-icon.accent-green svg { stroke: #10b981; }

.quick-action-card span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.quick-action-card:hover span {
  color: #fff;
}

/* Dashboard Mobile Responsive */
@media (max-width: 1024px) {
  .dashboard-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .dashboard-modern {
    gap: 1.5rem;
  }
  
  .dashboard-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .dashboard-stat-card {
    padding: 1.25rem;
    flex-direction: column;
    text-align: center;
  }
  
  .stat-card-icon {
    margin: 0 auto;
  }
  
  .stat-card-value {
    font-size: 1.5rem;
  }
  
  .dashboard-card {
    padding: 1.25rem;
  }
  
  .profile-status-modern {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-indicator {
    flex-direction: column;
  }
  
  .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .dashboard-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .dashboard-stat-card {
    flex-direction: row;
    text-align: left;
  }
  
  .stat-card-icon {
    margin: 0;
    width: 42px;
    height: 42px;
  }
  
  .stat-card-value {
    font-size: 1.3rem;
  }
  
  .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .quick-action-card {
    padding: 1rem;
  }
  
  .quick-action-card .action-icon {
    width: 40px;
    height: 40px;
  }
  
  .quick-action-card .action-icon svg {
    width: 20px;
    height: 20px;
  }
  
  .quick-action-card span {
    font-size: 0.75rem;
  }
}

/* ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
   BETA ACCESS BADGE - Coming Soon Wallet
   ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? */

.beta-access-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  font-size: 0.75rem;
  color: #aaa;
  font-weight: 500;
  white-space: nowrap;
  cursor: default;
  transition: all 0.3s ease;
}

.beta-access-badge:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
  border-color: rgba(255, 255, 255, 0.5);
}

.beta-access-badge .badge-icon {
  font-size: 0.9rem;
}

.beta-access-badge .badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.beta-access-badge .badge-main {
  color: #aaa;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.beta-access-badge .badge-sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.65rem;
  font-weight: 400;
}

/* Hide wallet elements when not needed */
.nav-wallet-hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .beta-access-badge {
    padding: 0.4rem 0.75rem;
  }
  
  .beta-access-badge .badge-main {
    font-size: 0.65rem;
  }
  
  .beta-access-badge .badge-sub {
    font-size: 0.6rem;
  }
}

@media (max-width: 480px) {
  .beta-access-badge .badge-text {
    display: none;
  }
  
  .beta-access-badge {
    padding: 0.5rem;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    justify-content: center;
  }
  
  .beta-access-badge .badge-icon {
    font-size: 1rem;
  }
}

/* ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
   MODERN CALIBRATION PAGE STYLES
   ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? */

.calibration-modern {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Hero Status Card */
.calibration-hero-card {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(20, 20, 30, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 2.5rem;
  text-align: center;
}

.hero-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.status-visual {
  position: relative;
  width: 120px;
  height: 120px;
}

.status-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  border: 3px solid rgba(239, 68, 68, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
}

.status-ring svg {
  width: 50px;
  height: 50px;
  stroke: #ef4444;
  transition: all 0.5s ease;
}

.status-ring.calibrated {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.status-ring.calibrated svg {
  stroke: #aaa;
}

.status-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(239, 68, 68, 0.4);
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.status-content h2 {
  font-family: 'Antonio', sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.status-content p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0.5rem 0 0 0;
}

/* Calibration Progress */
.calibration-progress {
  margin-bottom: 2rem;
}

.progress-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #aaa, #00a88a);
  border-radius: 2px;
  transition: width 0.5s ease;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.progress-step.active {
  opacity: 1;
}

.progress-step.completed {
  opacity: 1;
}

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.progress-step.active .step-dot {
  background: #aaa;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.progress-step.completed .step-dot {
  background: #aaa;
}

.progress-step span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.progress-step.active span,
.progress-step.completed span {
  color: #aaa;
}

/* Calibration Step Cards */
.calibration-step-card {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(20, 20, 30, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.calibration-step-card.active {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.15);
}

.calibration-step-card.completed {
  opacity: 0.7;
  border-color: rgba(255, 255, 255, 0.2);
}

.step-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Antonio', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #aaa;
  flex-shrink: 0;
}

.step-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.25rem 0;
}

.step-info p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Emotion Prompts */
.emotion-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.emotion-chip {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.emotion-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Reading Text Card */
.reading-text-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.reading-text-card svg {
  width: 24px;
  height: 24px;
  stroke: #aaa;
  flex-shrink: 0;
  margin-top: 2px;
}

.reading-text-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-style: italic;
}

/* Waveform Container */
.waveform-container {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.waveform-container canvas {
  width: 100%;
  height: 100%;
}

.waveform-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.3);
}

.waveform-placeholder svg {
  width: 32px;
  height: 32px;
  stroke: rgba(255, 255, 255, 0.2);
}

.waveform-placeholder span {
  font-size: 0.8rem;
}

/* Step Controls */
.step-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.record-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #aaa, #00a88a);
  border: none;
  border-radius: 50px;
  color: #000;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.record-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.record-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.record-btn.recording {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  animation: recording-pulse 1s ease-in-out infinite;
}

@keyframes recording-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 15px rgba(239, 68, 68, 0); }
}

.record-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.record-icon svg {
  width: 20px;
  height: 20px;
  stroke: #000;
}

.recording-timer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 30px;
  color: #ef4444;
  font-family: 'Antonio', monospace;
  font-size: 1.1rem;
}

.timer-ring {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Calibration Complete */
.calibration-complete-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
}

.complete-visual {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.complete-visual svg {
  width: 40px;
  height: 40px;
  stroke: #aaa;
}

.calibration-complete-card h3 {
  font-family: 'Antonio', sans-serif;
  font-size: 1.5rem;
  color: #fff;
  margin: 0 0 0.5rem 0;
}

.calibration-complete-card p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 1.5rem 0;
}

/* Profile Summary Section */
.profile-summary-section {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(20, 20, 30, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-icon svg {
  width: 24px;
  height: 24px;
  stroke: #aaa;
}

.profile-title h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.profile-title p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0.25rem 0 0 0;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.profile-stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.profile-stat .stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-stat .stat-icon svg {
  width: 20px;
  height: 20px;
  stroke: #aaa;
}

.profile-stat .stat-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.profile-stat .stat-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-stat .stat-value {
  font-family: 'Antonio', sans-serif;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 600;
}

.profile-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #aaa;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* Guide Section */
.calibration-guide-section {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(20, 20, 30, 0.6) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 2rem;
}

.section-header-modern {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-icon svg {
  width: 22px;
  height: 22px;
  stroke: #aaa;
}

.section-title-group h2 {
  font-family: 'Antonio', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.25rem 0;
}

.section-title-group p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.guide-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.guide-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.3s ease;
}

.guide-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.guide-card .guide-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-card .guide-icon svg {
  width: 24px;
  height: 24px;
  stroke: #aaa;
}

.guide-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.5rem 0;
}

.guide-card p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  line-height: 1.4;
}

/* Modern Button Styles (shared) */
.btn-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-modern svg {
  width: 18px;
  height: 18px;
}

.btn-modern.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-modern.btn-large svg {
  width: 22px;
  height: 22px;
}

.btn-teal {
  background: linear-gradient(135deg, #aaa, #00a88a);
  color: #000;
}

.btn-teal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-teal svg {
  stroke: #000;
}

/* Calibration Mobile Responsive */
@media (max-width: 768px) {
  .calibration-modern {
    gap: 1.5rem;
  }
  
  .calibration-hero-card {
    padding: 1.5rem;
  }
  
  .status-visual {
    width: 100px;
    height: 100px;
  }
  
  .status-ring svg {
    width: 40px;
    height: 40px;
  }
  
  .status-content h2 {
    font-size: 1.5rem;
  }
  
  .calibration-step-card {
    padding: 1.25rem;
  }
  
  .step-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .record-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .profile-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .guide-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-actions {
    flex-direction: column;
  }
  
  .profile-actions .btn-modern {
    width: 100%;
    justify-content: center;
  }
  
  .reading-text-card {
    flex-direction: column;
    text-align: center;
  }
  
  .reading-text-card svg {
    margin: 0 auto;
  }
  
  .emotion-prompts {
    gap: 0.5rem;
  }
  
  .emotion-chip {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .progress-step span {
    font-size: 0.65rem;
  }
  
  .calibration-guide-section,
  .profile-summary-section {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .status-visual {
    width: 80px;
    height: 80px;
  }
  
  .status-ring svg {
    width: 32px;
    height: 32px;
  }
  
  .status-content h2 {
    font-size: 1.25rem;
  }
  
  .step-number {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
  
  .step-info h3 {
    font-size: 1rem;
  }
  
  .waveform-container {
    height: 80px;
  }
  
  .reading-text-card p {
    font-size: 0.85rem;
  }
  
  .btn-modern.btn-large {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* ===== MOBILE QUICK TOOLS & MUSIC PLAYER ===== */

.mobile-quick-section {
  display: none; /* Hidden on desktop */
}

@media (max-width: 768px) {
  .mobile-quick-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
  
  /* Mobile Music Player */
  .mobile-music-player {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
  }
  
  .mobile-music-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
  }
  
  .mobile-music-header svg {
    width: 20px;
    height: 20px;
    stroke: #aaa;
    flex-shrink: 0;
  }
  
  .mobile-track-title {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .mobile-music-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
  
  .mobile-music-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .mobile-music-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.3);
  }
  
  .mobile-music-btn svg {
    width: 16px;
    height: 16px;
    fill: #aaa;
    stroke: #aaa;
  }
  
  .mobile-music-btn.play {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.25);
  }
  
  .mobile-music-btn.play svg {
    width: 18px;
    height: 18px;
  }
  
  .mobile-music-btn.list {
    width: 32px;
    height: 32px;
    background: transparent;
  }
  
  .mobile-music-btn.list svg {
    width: 16px;
    height: 16px;
    fill: none;
  }
  
  /* Mobile Quick Tools */
  .mobile-quick-tools {
    display: flex;
    justify-content: space-around;
    gap: 0.5rem;
  }
  
  .mobile-tool-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.6rem 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .mobile-tool-btn:active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.15);
  }
  
  .mobile-tool-btn svg {
    width: 22px;
    height: 22px;
    stroke: #aaa;
  }
  
  .mobile-tool-btn span {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
  }
  
  /* Hide desktop music player on mobile */
  .therapy-music-player {
    display: none !important;
  }
  
  /* Hide video panel metrics on mobile to save space */
  .video-panel .voice-metrics,
  .video-panel .wellness-score-panel {
    display: none;
  }
  
  /* INCREASED video panel height on mobile (+30%) */
  .video-panel {
    max-height: 280px !important;
    min-height: 240px !important;
  }
  
  .video-panel .panel-header {
    padding: 0.4rem 0.6rem;
  }
  
  .video-panel .panel-header h3 {
    font-size: 0.8rem;
  }
  
  .video-panel .emotion-metrics {
    display: none; /* Hide on mobile to save space */
  }
  
  /* Chat panel - fixed layout on mobile */
  .chat-panel {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: unset !important;
    max-height: unset !important;
    flex: none !important;
    overflow: visible !important;
  }
  
  /* Compact chat header */
  .chat-panel .panel-header {
    padding: 0.4rem 0.6rem;
    flex-shrink: 0;
  }
  
  .chat-panel .panel-header h3 {
    font-size: 0.85rem;
  }
  
  /* HIDE quick responses on mobile - user requested */
  .quick-responses {
    display: none !important;
  }
  
  /* HIDE conversation mode banner on mobile */
  .conversation-mode-banner {
    display: none !important;
  }
  
  /* Hide headphone tip on mobile */
  .headphone-tip {
    display: none !important;
  }
  
  /* Show AI speech controls on mobile - compact style */
  .ai-speech-controls {
    display: flex !important;
    padding: 0.4rem 0.5rem;
    gap: 0.3rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .ai-speech-controls .control-label {
    display: none; /* Hide labels on mobile to save space */
  }
  
  .ai-speech-controls .speech-control-btn {
    width: 32px;
    height: 32px;
  }
  
  .ai-speech-controls .voice-selector {
    max-width: 150px;
    min-width: 100px;
    font-size: 0.75rem;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
  }
  
  .ai-speech-controls .speed-display {
    font-size: 0.65rem;
    min-width: 28px;
  }
  
  /* FIXED height chat container - SCROLLABLE */
  .chat-container,
  #chat-container {
    display: block !important;
    height: 250px !important;
    min-height: 250px !important;
    max-height: 250px !important;
    padding: 0.75rem !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    flex: 0 0 250px !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box !important;
  }
  
  .chat-message {
    padding: 0.75rem;
    margin: 0.5rem 0;
  }
  
  .chat-message .message-content {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .chat-message .message-content p {
    margin: 0.4rem 0;
  }
  
  /* Chat input - simplified for mobile */
  .chat-input-container {
    padding: 0.5rem;
  }
  
  .input-wrapper {
    display: flex;
    gap: 0.4rem;
    align-items: center;
  }
  
  .input-wrapper textarea {
    font-size: 16px;
    padding: 0.6rem;
    min-height: 44px;
    flex: 1;
  }
  
  /* Show music & volume icons next to chatbox on mobile - compact */
  #btn-ambient-music,
  #btn-toggle-tts,
  #btn-send {
    display: flex !important;
    width: 36px;
    height: 36px;
  }
  
  .input-actions {
    display: flex !important;
    gap: 0.25rem;
  }
  
  /* Hide floating mobile tools toggle button */
  .mobile-tools-toggle {
    display: none !important;
  }
  
  /* Voice input buttons on mobile */
  .push-to-talk-container {
    padding: 0.75rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  /* MUCH BIGGER Hold to Talk button - CENTERED */
  .push-to-talk-btn {
    width: 130px !important;
    height: 130px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.25rem !important;
  }
  
  .push-to-talk-btn .ptt-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }
  
  .push-to-talk-btn .ptt-icon svg {
    width: 45px !important;
    height: 45px !important;
  }
  
  .push-to-talk-btn .ptt-text, 
  .push-to-talk-btn .ptt-recording-text {
    font-size: 0.75rem !important;
    font-weight: 700;
    margin-top: 0.15rem !important;
  }
  
  .ptt-hint {
    font-size: 0.6rem;
    margin-top: 0.25rem;
  }
  
  /* Free Talk Row - Below the button */
  .free-talk-row {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
  }
  
  .free-talk-row .free-talk-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  /* Free Talk Toggle Switch */
  .free-talk-toggle {
    display: flex !important;
    align-items: center;
    padding: 2px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    width: 50px;
    height: 28px;
    position: relative;
  }
  
  .free-talk-toggle.active {
    background: rgba(255, 255, 255, 0.4);
  }
  
  .free-talk-toggle .toggle-switch {
    display: none;
  }
  
  .free-talk-toggle::after {
    content: '';
    width: 24px;
    height: 24px;
    background: #888;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: all 0.3s;
  }
  
  .free-talk-toggle.active::after {
    left: 24px;
    background: #aaa;
  }
  
  /* Therapy Tools Button - Full Width */
  .therapy-tools-btn {
    display: flex !important;
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .therapy-tools-btn:active {
    background: rgba(255, 255, 255, 0.06);
  }
  
  .therapy-tools-btn svg {
    width: 20px;
    height: 20px;
    stroke: #aaa;
  }
  
  .therapy-tools-btn span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  /* Hide old mobile quick tools */
  .mobile-quick-tools {
    display: none !important;
  }
  
  /* Hide mobile tools toggle when quick tools are visible */
  .mobile-tools-toggle {
    display: none !important;
  }
}

/* Very small screens */
@media (max-width: 380px) {
  .mobile-music-btn {
    width: 32px;
    height: 32px;
  }
  
  .mobile-music-btn.play {
    width: 36px;
    height: 36px;
  }
  
  .mobile-tool-btn {
    padding: 0.5rem 0.3rem;
  }
  
  .mobile-tool-btn svg {
    width: 18px;
    height: 18px;
  }
  
  .mobile-tool-btn span {
    font-size: 0.6rem;
  }
  
  .push-to-talk-btn {
    width: 55px;
    height: 55px;
  }
  
  .chat-messages {
    min-height: 200px;
  }
}

/* ===== ASSESSMENT & THOUGHT RECORD MODALS ===== */

.assessment-content,
.thought-record-content {
  max-width: 700px;
  width: 95%;
}

.assessment-form,
.thought-record-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.assessment-question {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1rem;
}

.assessment-question p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.assessment-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.assessment-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.assessment-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.assessment-option input[type="radio"] {
  accent-color: #aaa;
  width: 16px;
  height: 16px;
}

.assessment-option span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.assessment-result {
  text-align: center;
  padding: 2rem 1rem;
}

.score-circle {
  width: 100px;
  height: 100px;
  border: 4px solid;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.score-value {
  font-size: 2rem;
  font-weight: 700;
}

.score-max {
  font-size: 0.8rem;
  opacity: 0.6;
}

.severity-label {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.result-message {
  color: rgba(255, 255, 255, 0.7);
  max-width: 400px;
  margin: 0 auto;
}

.disclaimer {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 1.5rem 0;
  padding: 0.75rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
}

/* Thought Record Form */
.thought-record-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.thought-record-form label {
  color: #aaa;
  font-size: 0.85rem;
  font-weight: 500;
}

.thought-record-form textarea {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  resize: vertical;
  min-height: 60px;
}

.thought-record-form textarea:focus {
  outline: none;
  border-color: #aaa;
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

/* Grounding step active state */
.grounding-step.active {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
  transform: scale(1.02);
}

.grounding-step.completed {
  opacity: 0.5;
  background: rgba(34, 197, 94, 0.1) !important;
}

.grounding-step.completed::after {
  content: '???';
  position: absolute;
  right: 0.75rem;
  color: #22c55e;
}

/* Mobile adjustments for assessment */
@media (max-width: 768px) {
  .assessment-content,
  .thought-record-content {
    padding: 1.25rem;
  }
  
  .assessment-options {
    gap: 0.4rem;
  }
  
  .assessment-option {
    padding: 0.4rem 0.5rem;
  }
  
  .thought-record-form textarea {
    min-height: 50px;
  }
}

/* ==========================================================================
   PROFESSIONAL REDESIGN v20 -- Full Visual Override
   Dark premium glassmorphism, Unsplash hero imagery, polished cards/nav/footer
   ========================================================================== */

/* -- Global overrides ---------------------------------------------------- */
html { scroll-behavior: smooth; }
body {
  background: #0a0a0a !important;
  color: #e0e0e0 !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* -- Nav extras (logout btn, user-link) ---------------------------------- */
.nav-user-link {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}
.nav-user-info:hover {
  background: rgba(255, 255, 255, 0.08);
}
.nav-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #78849a;
  cursor: pointer;
  padding: 0;
}
.nav-logout-btn svg {
  width: 14px;
  height: 14px;
}
.nav-logout-btn:hover {
  background: rgba(255, 70, 70, 0.12);
  color: #ff6b6b;
}
.beta-access-badge { display: none; }

/* -- Loading Screen ------------------------------------------------------ */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease;
}
#loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}
#loading-screen .loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: #aaa;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1rem;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
#loading-screen .loading-text {
  color: #94a3b8;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.6;
}
#loading-screen .loading-text small {
  opacity: 0.5;
  font-size: 0.75rem;
}

/* -- Hero Section -------------------------------------------------------- */
.hero-section {
  position: relative !important;
  min-height: 88vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.75) 50%, #0a0a0a 100%),
    url('https://images.unsplash.com/photo-1559757175-5700dde675bc?w=1920&q=80') !important;
  background-size: cover !important;
  background-position: center 30% !important;
  overflow: hidden !important;
}

.hero-section::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: none !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.hero-section .hero-container,
.hero-section .hero-content {
  position: relative !important;
  z-index: 2 !important;
}

.hero-content {
  max-width: 780px !important;
  margin: 0 auto !important;
  text-align: center !important;
  padding: 2rem 1.5rem !important;
}

.hero-title {
  font-family: 'Antonio', sans-serif !important;
  font-size: 4.2rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.1 !important;
  margin-bottom: 1rem !important;
}

.hero-title .wead-text {
  color: #ffffff !important;
}

.hero-title .redflag-text {
  color: #ff4757 !important;
  text-shadow: 0 0 30px rgba(255, 71, 87, 0.3) !important;
}

.hero-title .beta-badge {
  font-size: 0.9rem !important;
  background: rgba(255, 255, 255, 0.15) !important;
  color: rgba(255, 255, 255, 0.7) !important;
  padding: 0.2rem 0.7rem !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  vertical-align: middle !important;
  margin-left: 0.5rem !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
}

.hero-subtitle {
  font-size: 1.35rem !important;
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 400 !important;
  margin-bottom: 1rem !important;
  line-height: 1.5 !important;
}

.hero-description {
  font-size: 1.02rem !important;
  color: rgba(255, 255, 255, 0.6) !important;
  line-height: 1.7 !important;
  margin-bottom: 2.5rem !important;
  max-width: 620px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.hero-actions {
  display: flex !important;
  gap: 1rem !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
}

.hero-actions .btn {
  min-width: 200px !important;
  padding: 0.9rem 2rem !important;
  font-size: 1rem !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.hero-actions .btn-primary {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.hero-actions .btn-primary:hover {
  transform: translateY(-2px) !important;
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.hero-actions .btn-outline {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.hero-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
}

/* Animated quantum logo on home.html hero */
.quantum-logo-large {
  width: 100px !important;
  height: 100px !important;
  margin: 0 auto 1.5rem !important;
}

/* -- Section Titles ------------------------------------------------------ */
.section-title {
  font-family: 'Antonio', sans-serif !important;
  font-size: 2.4rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: -0.01em !important;
  margin-bottom: 0.5rem !important;
}

.section-subtitle {
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 1.05rem !important;
  max-width: 600px !important;
  margin: 0 auto 2.5rem !important;
  line-height: 1.6 !important;
}

/* -- Features Section ---------------------------------------------------- */
.features-section {
  padding: 5rem 2rem !important;
  background: #060a14 !important;
  position: relative !important;
}

.features-section::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent) !important;
}

.features-container {
  max-width: 1100px !important;
  margin: 0 auto !important;
  text-align: center !important;
}

.features-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem !important;
  margin-top: 2rem !important;
}

.feature-card {
  background: rgba(18, 18, 22, 0.7) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  padding: 2rem 1.5rem !important;
  text-align: left !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
}

.feature-card::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  height: 3px !important;
  background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0.05)) !important;
  opacity: 0 !important;
  transition: opacity 0.35s ease !important;
}

.feature-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 255, 255, 0.08) !important;
}

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

.feature-card .feature-icon {
  width: 48px !important;
  height: 48px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 1.2rem !important;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
}

.feature-card .feature-icon svg {
  width: 24px !important;
  height: 24px !important;
  color: rgba(255, 255, 255, 0.7) !important;
  stroke: #bbb !important;
}

.feature-card h3 {
  font-family: 'Antonio', sans-serif !important;
  font-size: 1.2rem !important;
  color: #ffffff !important;
  margin-bottom: 0.6rem !important;
  font-weight: 600 !important;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 0.9rem !important;
  line-height: 1.6 !important;
}

/* -- Mental Health / Conditions Section ----------------------------------- */
.mental-health-section {
  padding: 5rem 2rem !important;
  background: linear-gradient(180deg, #060a14 0%, #0a0f1e 50%, #060a14 100%) !important;
}

.mental-health-container {
  max-width: 1100px !important;
  margin: 0 auto !important;
  text-align: center !important;
}

.conditions-stats {
  display: flex !important;
  justify-content: center !important;
  gap: 2rem !important;
  margin-bottom: 3rem !important;
}

.stat-card {
  background: rgba(12, 18, 35, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  padding: 1.5rem 2.5rem !important;
  min-width: 160px !important;
}

.stat-number {
  font-family: 'Antonio', sans-serif !important;
  font-size: 2.2rem !important;
  color: rgba(255, 255, 255, 0.7) !important;
  font-weight: 700 !important;
}

.stat-label {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 0.85rem !important;
  margin-top: 0.3rem !important;
}

.conditions-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 1rem !important;
  margin-bottom: 3rem !important;
}

.condition-card {
  background: rgba(12, 18, 35, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  padding: 1.4rem 1rem !important;
  transition: all 0.3s ease !important;
}

.condition-card:hover {
  border-color: rgba(255, 255, 255, 0.15) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.condition-card h3 {
  font-family: 'Antonio', sans-serif !important;
  font-size: 1.05rem !important;
  color: rgba(255, 255, 255, 0.7) !important;
  margin-bottom: 0.4rem !important;
}

.condition-card p {
  color: rgba(255, 255, 255, 0.45) !important;
  font-size: 0.78rem !important;
  line-height: 1.5 !important;
}

.conditions-features {
  background: rgba(12, 18, 35, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  padding: 2rem !important;
  margin-bottom: 2rem !important;
  text-align: left !important;
}

.conditions-features h3 {
  font-family: 'Antonio', sans-serif !important;
  color: #ffffff !important;
  margin-bottom: 1.2rem !important;
}

.conditions-features .features-list {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1rem !important;
}

.conditions-features .feature-item {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
}

.conditions-features .feature-icon {
  width: 36px !important;
  height: 36px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  flex-shrink: 0 !important;
}

.conditions-features .feature-text {
  color: rgba(255, 255, 255, 0.65) !important;
  font-size: 0.85rem !important;
}

.conditions-disclaimer {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  padding: 1.5rem !important;
}

.conditions-disclaimer p {
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 0.82rem !important;
  line-height: 1.7 !important;
}

.conditions-disclaimer strong {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* -- Premium / Pricing Section ------------------------------------------- */
.premium-access-section {
  padding: 5rem 2rem !important;
  background: linear-gradient(180deg, #060a14 0%, #0c1025 50%, #060a14 100%) !important;
}

.premium-container {
  max-width: 1100px !important;
  margin: 0 auto !important;
  text-align: center !important;
}

.premium-header h2 {
  font-family: 'Antonio', sans-serif !important;
  font-size: 2.4rem !important;
  color: #ffffff !important;
  margin-bottom: 0.5rem !important;
}

.premium-subtitle {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 1.05rem !important;
  margin-bottom: 2.5rem !important;
}

/* Billing card */
.billing-card {
  background: rgba(12, 18, 35, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  padding: 1.5rem 2rem !important;
  margin-bottom: 2.5rem !important;
  text-align: left !important;
}

.billing-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 1rem !important;
}

.billing-badge {
  padding: 0.25rem 0.8rem !important;
  border-radius: 20px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
}

.billing-badge.active {
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.billing-badge.trial {
  background: rgba(59, 130, 246, 0.15) !important;
  color: #60a5fa !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

.billing-badge.expired {
  background: rgba(255, 71, 87, 0.15) !important;
  color: #ff6b7a !important;
  border: 1px solid rgba(255, 71, 87, 0.3) !important;
}

.billing-detail {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 0.9rem !important;
  margin-bottom: 0.4rem !important;
}

/* Pricing cards */
.pricing-cards {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem !important;
  margin-bottom: 2.5rem !important;
  align-items: stretch !important;
}

.pricing-card {
  background: rgba(12, 18, 35, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  padding: 2.2rem 1.8rem !important;
  text-align: left !important;
  position: relative !important;
  transition: all 0.35s ease !important;
}

.pricing-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35) !important;
}

.pricing-card.featured {
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.1), 0 8px 30px rgba(0, 0, 0, 0.3) !important;
  background: rgba(255, 255, 255, 0.03) !important;
}

.pricing-card .card-badge {
  display: inline-block !important;
  padding: 0.25rem 0.75rem !important;
  border-radius: 20px !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 1rem !important;
  background: rgba(59, 130, 246, 0.15) !important;
  color: #60a5fa !important;
  border: 1px solid rgba(59, 130, 246, 0.25) !important;
}

.pricing-card .premium-badge {
  background: rgba(255, 255, 255, 0.15) !important;
  color: rgba(255, 255, 255, 0.7) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

.pricing-card .discount-badge {
  background: rgba(168, 85, 247, 0.15) !important;
  color: #c084fc !important;
  border-color: rgba(168, 85, 247, 0.25) !important;
}

.pricing-card h3 {
  font-family: 'Antonio', sans-serif !important;
  font-size: 1.35rem !important;
  color: #ffffff !important;
  margin-bottom: 0.5rem !important;
}

.pricing-card .price {
  font-family: 'Antonio', sans-serif !important;
  font-size: 2.8rem !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  margin-bottom: 1.2rem !important;
}

.pricing-card .price .period {
  font-size: 1rem !important;
  color: rgba(255, 255, 255, 0.45) !important;
  font-weight: 400 !important;
}

.pricing-card .features-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 1.5rem !important;
}

.pricing-card .features-list li {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 0.88rem !important;
  padding: 0.45rem 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  padding-left: 1.2rem !important;
  position: relative !important;
}

.pricing-card .features-list li::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  width: 6px !important;
  height: 6px !important;
  background: #aaa !important;
  border-radius: 50% !important;
  transform: translateY(-50%) !important;
}

.pricing-card .card-note {
  color: rgba(255, 255, 255, 0.4) !important;
  font-size: 0.8rem !important;
  font-style: italic !important;
}

/* Payment methods bar */
.payment-methods {
  background: rgba(12, 18, 35, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 14px !important;
  padding: 1.5rem !important;
  text-align: center !important;
}

.payment-methods-title {
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 0.85rem !important;
  margin-bottom: 0.8rem !important;
}

.payment-icons {
  display: flex !important;
  gap: 0.75rem !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
}

.payment-icon {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  padding: 0.4rem 1rem !important;
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
}

.payment-note {
  color: rgba(255, 255, 255, 0.35) !important;
  font-size: 0.78rem !important;
  margin-top: 0.8rem !important;
}

/* -- Footer -------------------------------------------------------------- */
.cosmic-footer {
  background: linear-gradient(180deg, #040710 0%, #020408 100%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
  margin-top: 0 !important;
}

.cosmic-footer::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent) !important;
}

.footer-container {
  max-width: 1100px !important;
  padding: 3rem 2rem 2rem !important;
}

.footer-content {
  grid-template-columns: 1.6fr 1fr 1fr !important;
  gap: 3rem !important;
}

.footer-brand-description {
  max-width: 380px !important;
  color: rgba(255, 255, 255, 0.5) !important;
}

.social-link {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  transition: all 0.3s ease !important;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: rgba(255, 255, 255, 0.7) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

.footer-nav-title {
  color: #d0faf0 !important;
  font-size: 0.85rem !important;
  letter-spacing: 1.5px !important;
}

.footer-nav-links a {
  padding-left: 0.5rem !important;
  border-left: 2px solid transparent !important;
  transition: all 0.25s ease !important;
}

.footer-nav-links a:hover {
  color: rgba(255, 255, 255, 0.7) !important;
  border-left-color: rgba(255, 255, 255, 0.7) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  transform: translateX(4px) !important;
}

.footer-divider {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent) !important;
}

.footer-bottom {
  padding-top: 1rem !important;
}

.footer-legal-links a {
  border-radius: 6px !important;
  padding: 0.15rem 0.4rem !important;
}

.footer-legal-links a:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}

.footer-disclaimer {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
}

/* -- Responsive ---------------------------------------------------------- */
@media (max-width: 1100px) {
  .features-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .conditions-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .pricing-cards { grid-template-columns: repeat(2, 1fr) !important; }
  .conditions-features .features-list { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 768px) {
  .hero-section { min-height: 75vh !important; }
  .hero-title { font-size: 2.6rem !important; }
  .hero-subtitle { font-size: 1.1rem !important; }
  .hero-description { font-size: 0.92rem !important; }
  .features-grid { grid-template-columns: 1fr !important; }
  .conditions-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .conditions-stats { flex-direction: column !important; align-items: center !important; }
  .pricing-cards { grid-template-columns: 1fr !important; }
  .conditions-features .features-list { grid-template-columns: 1fr !important; }
  .footer-content { grid-template-columns: 1fr !important; }
  .section-title { font-size: 1.8rem !important; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem !important; }
  .hero-actions { flex-direction: column !important; }
  .hero-actions .btn { width: 100% !important; }
  .conditions-grid { grid-template-columns: 1fr !important; }
}

/* -- Login Modal Refresh ------------------------------------------------- */
.simple-login-modal {
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  background: rgba(0, 0, 0, 0.7) !important;
}

.simple-login-content {
  background: rgba(12, 18, 35, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6) !important;
}

.simple-login-content h2 {
  font-family: 'Antonio', sans-serif !important;
  color: #ffffff !important;
}

.simple-login-content input[type="text"],
.simple-login-content input[type="email"],
.simple-login-content input[type="password"] {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px !important;
  color: #fff !important;
  transition: border-color 0.25s ease !important;
}

.simple-login-content input:focus {
  border-color: rgba(255, 255, 255, 0.2) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05) !important;
}

.simple-login-content .btn-primary {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
}

.simple-login-content .btn-primary:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

.modal-benefits {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
}

.benefit-pill {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.7) !important;
  border-radius: 20px !important;
}

/* -- Purchase Modal Refresh ---------------------------------------------- */
.purchase-modal-content {
  background: rgba(12, 18, 35, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6) !important;
}

/* -- Billing Section (home.html) ----------------------------------------- */
.billing-section {
  background: rgba(12, 18, 35, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  padding: 2rem !important;
  margin-bottom: 2.5rem !important;
}

.billing-section h3 {
  font-family: 'Antonio', sans-serif !important;
  color: #ffffff !important;
}

.billing-status-badge {
  padding: 0.3rem 0.9rem !important;
  border-radius: 20px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
}

.billing-status-badge.active {
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.billing-detail-row {
  padding: 0.6rem 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.billing-detail-row .label {
  color: rgba(255, 255, 255, 0.45) !important;
  font-size: 0.85rem !important;
}

.billing-detail-row .value {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.9rem !important;
}

/* -- Dashboard Hero (home.html) ------------------------------------------ */
.dashboard-hero {
  background-image:
    linear-gradient(180deg, rgba(6,10,20,0.7) 0%, rgba(6,10,20,0.92) 65%, #060a14 100%),
    url('https://images.unsplash.com/photo-1506126613408-eca07ce68773?w=1920&q=80') !important;
  background-size: cover !important;
  background-position: center !important;
  padding: 4rem 2rem !important;
  text-align: center !important;
}

.dashboard-hero h1 {
  font-family: 'Antonio', sans-serif !important;
  font-size: 2.6rem !important;
  color: #ffffff !important;
  margin-bottom: 0.5rem !important;
}

.dashboard-hero p {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 1.05rem !important;
}

/* -- General Page Sections ----------------------------------------------- */
.page-section {
  padding: 4rem 2rem !important;
}

.page-container {
  max-width: 1100px !important;
  margin: 0 auto !important;
}

/* -- Buttons (global refinement) ----------------------------------------- */
.btn {
  font-family: 'Inter', sans-serif !important;
  border-radius: 10px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}

.btn-primary {
  background: rgba(255, 255, 255, 0.07) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  transform: translateY(-1px) !important;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #fff !important;
}

.btn-danger {
  background: rgba(255, 71, 87, 0.15) !important;
  border: 1px solid rgba(255, 71, 87, 0.3) !important;
  color: #ff6b7a !important;
}

.btn-danger:hover {
  background: rgba(255, 71, 87, 0.25) !important;
}

/* -- PayPal Container Styling -------------------------------------------- */
#paypal-button-container {
  border-radius: 12px !important;
  overflow: hidden !important;
}

/* -- Mobile Menu Overlay ------------------------------------------------- */


/* ===== GLOBAL DARK-THEME TEXT OVERRIDES ===== */

/* Base body text */
body {
  color: #e0e0e0 !important;
}

/* All headings white */
h1, h2, h3, h4, h5, h6 {
  color: #ffffff !important;
}

/* Paragraphs and general text light grey */
p, span, li, td, th, label, div, a {
  color: inherit;
}

/* Section titles and headers */
.section-title,
.section-header h2,
.section-header-modern h2,
.page-title,
.mental-health-header .section-title,
.conditions-title,
.card-title,
.section-title-group h2,
.feature-card h3,
.feature-card h4 {
  color: #ffffff !important;
}

/* Section subtitles and descriptions */
.section-subtitle,
.section-header p,
.section-header-modern p,
.section-title-group p,
.feature-card p,
.card-description {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Feature card text */
.feature-card {
  color: rgba(255, 255, 255, 0.75) !important;
}

.feature-card h3,
.feature-card h4 {
  color: #ffffff !important;
}

/* Page hero/title areas */
.page-header,
.page-header h1,
.page-header p,
.page-hero,
.page-hero h1,
.page-hero p {
  color: #ffffff !important;
}

.page-header p,
.page-hero p {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Dashboard text */
.dashboard-title,
.dashboard-header h1,
.dashboard-header h2,
.stat-value,
.stat-label,
.widget-title {
  color: #ffffff !important;
}

.stat-label,
.widget-description {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* Mental health screening sections */
.mental-health-header h1,
.mental-health-header h2,
.mental-health-header .section-title {
  color: #ffffff !important;
}

.mental-health-header p,
.mental-health-header .section-subtitle {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Condition cards */
.condition-card h3,
.condition-card h4,
.condition-card-title {
  color: #ffffff !important;
}

.condition-card p,
.condition-card-description {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Therapy pages */
.therapy-title,
.therapy-header h1,
.therapy-header h2,
.therapy-section h2,
.therapy-section h3 {
  color: #ffffff !important;
}

.therapy-header p,
.therapy-section p,
.therapy-description {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Pricing cards */
.pricing-card h3,
.pricing-card .plan-name,
.pricing-card .plan-price,
.plan-card h3,
.plan-card .price {
  color: #ffffff !important;
}

.pricing-card p,
.pricing-card .plan-feature,
.plan-card p,
.plan-card li {
  color: rgba(255, 255, 255, 0.65) !important;
}

/* Form elements */
input, textarea, select {
  color: #e0e0e0 !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

input::placeholder, textarea::placeholder {
  color: rgba(255, 255, 255, 0.3) !important;
}

/* Links */
a {
  color: rgba(255, 255, 255, 0.75) !important;
}

a:hover {
  color: #ffffff !important;
}

/* Nav links - keep their own styling */
.nav-link,
.nav-dropdown-trigger {
  color: rgba(255, 255, 255, 0.7) !important;
}

.nav-link.active,
.nav-link:hover,
.nav-dropdown-trigger:hover {
  color: #ffffff !important;
}

/* Analysis/partner pages */
.analyze-title,
.partner-title,
.selftreatment-title,
.tool-title,
.analysis-header h1,
.analysis-header h2 {
  color: #ffffff !important;
}

.analyze-description,
.partner-description,
.tool-description,
.analysis-header p {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Cards and panels general */
.card, .panel, .widget {
  color: rgba(255, 255, 255, 0.75) !important;
}

.card h3, .card h4, .panel h3, .panel h4, .widget h3 {
  color: #ffffff !important;
}

.card p, .panel p, .widget p {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Footer text */
footer, footer p, footer a, footer span,
.footer, .footer p, .footer a, .footer span {
  color: rgba(255, 255, 255, 0.5) !important;
}

footer h3, footer h4, .footer h3, .footer h4 {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Badge and tag text */
.badge, .tag, .pill, .chip {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Modal text */
.modal-content h2, .modal-content h3,
.modal h2, .modal h3 {
  color: #ffffff !important;
}

.modal-content p, .modal p,
.modal-content label, .modal label {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Benefit list items */
.benefit-item, .feature-item, .plan-feature {
  color: rgba(255, 255, 255, 0.65) !important;
}

/* Progress and status indicators */
.progress-label, .status-text {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Screening results */
.result-title, .score-label, .score-value {
  color: #ffffff !important;
}

.result-description, .score-description {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Override any remaining dark text on dark bg */
.section-content, .page-content, .main-content {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Voice analysis specific */
.voice-status, .voice-info, .voice-label {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Blockchain / payment sections */
.payment-title, .plan-title, .billing-title {
  color: #ffffff !important;
}

.payment-description, .plan-description, .billing-description {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Tables */
table th {
  color: #ffffff !important;
}

table td {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Premium section */
.premium-section h2, .premium-section h3,
#premium-section h2, #premium-section h3 {
  color: #ffffff !important;
}

.premium-section p, #premium-section p {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Strong / bold text */
strong, b {
  color: #ffffff !important;
}

/* Ensure icon colors stay neutral */
.feature-icon, .card-icon {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Keep error/warning colors functional */
.error, .text-danger { color: #ff6b6b !important; }
.success, .text-success { color: #51cf66 !important; }
.warning, .text-warning { color: #ffd43b !important; }

/* ===== END GLOBAL DARK-THEME TEXT OVERRIDES ===== */
