:root {
  /* Color Variables */
  --bg-primary: #0a0a0aa0;
  --bg-secondary: #0f1419a0;
  --bg-tertiary: #1a1f35a0;
  --bg-quaternary: #0d2447a0;
  --bg-navy: #0a1a2ea0;
  --glass-bg: rgba(5, 8, 15, 0.85);
  --glass-dark: rgba(0, 0, 0, 0.95);
  --glass-light: rgba(255, 255, 255, 0.05);
  --glass-ultra-light: rgba(255, 255, 255, 0.03);
  --orange-primary: #ffa500;
  --orange-secondary: #ff8c00;
  --orange-gold: #ffd700;
  --orange-dark: #ff6400;
  --white: #ffffff;
  --green-success: #00ff88;
  --red-error: #ff4757;

  /* Glass Effects */
  --blur-sm: blur(15px);
  --blur-lg: blur(30px);
  --saturate-sm: saturate(120%);
  --saturate-lg: saturate(180%);

  /* Shadows */
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.6);

  /* Orange Glows */
  --glow-sm: 0 0 15px rgba(255, 165, 0, 0.4);
  --glow-lg: 0 0 30px rgba(255, 165, 0, 0.8);

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-base: 10px; /* Consolidated from md/lg/xl */

  /* Border Radius */
  --radius-sm: 12px;
  --radius-md: 15px;
  --radius-lg: 20px;
  --radius-xl: 25px;
  --radius-full: 50%;

  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s ease;

  /* Typography */
  --font-xs: 10px;
  --font-sm: 11px;
  --font-md: 12px;
  --font-lg: 14px;
  --font-xl: 16px;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(255, 165, 0, 0.3);
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 165, 0, 0.5);
  box-shadow: 0 0 8px rgba(255, 165, 0, 0.3);
}

::-webkit-scrollbar-thumb:active {
  background: rgba(255, 165, 0, 0.7);
}

::-webkit-scrollbar-corner {
  background: rgba(0, 0, 0, 0.2);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 165, 0, 0.3) rgba(0, 0, 0, 0.2);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@keyframes processingPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(64, 224, 208, 0.8); }
  50% { box-shadow: 0 0 30px rgba(64, 224, 208, 1), 0 0 40px rgba(64, 224, 208, 0.6); }
}

@keyframes pulse-generic {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.85;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(1deg); }
  66% { transform: translateY(5px) rotate(-0.5deg); }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes connected-glow {
  0%, 100% { text-shadow: 0 0 15px rgba(0, 255, 136, 0.8); }
  50% { text-shadow: 0 0 25px rgba(0, 255, 136, 1), 0 0 35px rgba(0, 255, 136, 0.5); }
}

@keyframes beta-glow {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4), 0 0 20px rgba(255, 71, 87, 0.3), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
  }
  50% {
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.6), 0 0 30px rgba(255, 71, 87, 0.5), 0 1px 0 rgba(255, 255, 255, 0.3) inset;
  }
}

.processing {
  box-shadow: 0 0 20px rgba(64, 224, 208, 0.8);
  animation: processingPulse 2s infinite ease-in-out;
}

.horizontal {
  flex-direction: row !important;
  display: flex;
  flex-wrap: wrap;
}
.creation-player-container .horizontal{
  justify-content: space-evenly;
  /* margin-top: 22px; */
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
  overflow: hidden;
}
.creation-player-container .horizontal>*{
  /* width: 18% !important; */
  height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  text-align: center;
  /* min-width: 100px; */
  flex: 1;
  flex-shrink: 1;
}

.wide {
  grid-column: span 3;
}

.iteration-type{
  
}

.hidden {
  display: none;
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--blur-lg) var(--saturate-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 165, 0, 0.15);
  border-radius: 0;
  box-shadow: var(--shadow-lg), 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 0 60px rgba(255, 165, 0, 0.15);
  position: relative;
  z-index: 1;
  width: 100%;
}

.glass-dark {
  background: var(--glass-dark);
  backdrop-filter: var(--blur-sm) var(--saturate-sm);
  border: 1px solid rgba(255, 165, 0, 0.08);
  border-radius: 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8), var(--glow-lg);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--white);
  height: 100vh;
  overflow: hidden;
}

.content-wrapper {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-quaternary) 75%, var(--bg-navy) 100%);
  background-attachment: fixed;
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 1;
  overflow: hidden;
}

.content-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 15% 15%, rgba(255, 165, 0, 0.2) 0%, transparent 45%),
    radial-gradient(circle at 85% 25%, rgba(255, 140, 0, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255, 215, 0, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 30% 80%, rgba(255, 100, 0, 0.06) 0%, transparent 35%);
  pointer-events: none;
  z-index: 0;
  animation: float 20s ease-in-out infinite;
}

.container {
  max-width: 100%;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.header {
  padding: var(--spacing-base) var(--spacing-base);
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(5, 8, 15, 0.95);
  backdrop-filter: var(--blur-lg) var(--saturate-lg);
  border: none;
  border-bottom: 1px solid rgba(255, 165, 0, 0.15);
  border-radius: 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 0.1) inset, var(--glow-lg);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.logo {
  height: 40px;
  border-radius: 20px;
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--white);
  text-shadow: var(--glow-lg);
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--white) 0%, var(--orange-primary) 50%, var(--orange-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-left: 5px;
}

.logo i {
  margin-right: var(--spacing-xs);
  font-size: 24px;
  color: var(--orange-primary);
  filter: drop-shadow(0 0 15px rgba(255, 165, 0, 0.8));
  animation: pulse-generic 3s ease-in-out infinite;
}

.nav {
  display: flex;
  gap: var(--spacing-xs);
}

.btn, button, .nav-btn, .plan-btn, .cta-btn, .control-btn {
  padding: 10px var(--spacing-base);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  background: var(--glass-ultra-light);
  backdrop-filter: var(--blur-sm) var(--saturate-sm);
  color: var(--white);
  font-weight: 600;
  font-size: var(--font-md);
  cursor: pointer;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-sm), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn::before, button::before, .nav-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 165, 0, 0.3), transparent);
  transition: left var(--transition-slow);
}

.btn:hover::before, button:hover::before, .nav-btn:hover::before {
  left: 100%;
}

.btn:hover, button:hover, .nav-btn:hover, .plan-btn:hover, .cta-btn:hover {
  background: rgba(255, 165, 0, 0.15);
  border-color: rgba(255, 165, 0, 0.4);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(255, 165, 0, 0.3), 0 0 25px rgba(255, 165, 0, 0.25), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.btn.busy, button.busy {
  background: rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
  color: rgba(255, 255, 255, 0.5);
  transform: none;
}

/* Button variants */
.nav-btn {
  border-radius: var(--radius-xl);
}

.nav-btn.active {
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.25) 0%, rgba(255, 140, 0, 0.2) 100%);
  border-color: rgba(255, 165, 0, 0.6);
  color: var(--orange-gold);
  box-shadow: 0 6px 25px rgba(255, 165, 0, 0.4), 0 0 35px rgba(255, 165, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.3) inset;
}

.nav-btn[data-view="create"] {
  background: var(--orange-primary);
  color: black;
}

.nav-btn-active {
  background: rgba(255, 165, 0, 0.2);
  border-color: var(--orange-primary);
}

.nav-btn-inactive {
  background: var(--glass-light);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Primary button style */
.btn-primary, button, .submit-btn, .btn-share, .logout-btn, .login-btn, .register-btn, .plan-btn {
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.8) 0%, rgba(255, 140, 0, 0.7) 100%);
  color: var(--white);
  font-weight: 700;
  border: 1px solid rgba(255, 165, 0, 0.4);
  box-shadow: 0 6px 25px rgba(255, 165, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

/* Recorder button style */
.recorder-btn {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.3) 0%, rgba(255, 140, 0, 0.2) 100%);
  border: 2px solid rgba(255, 165, 0, 0.5);
  color: var(--orange-primary);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all var(--transition-medium);
}

.recorder-btn:hover {
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.4) 0%, rgba(255, 140, 0, 0.3) 100%);
  border-color: rgba(255, 165, 0, 0.7);
  box-shadow: 0 0 20px rgba(255, 165, 0, 0.5);
}

.recorder-btn.recording {
  animation: recordingFlash 1s ease-in-out infinite;
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.3) 0%, rgba(200, 0, 0, 0.2) 100%);
  border-color: rgba(255, 0, 0, 0.7);
  color: #ff0000;
}

@keyframes recordingFlash {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8), 0 0 40px rgba(255, 0, 0, 0.4);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 0, 0, 1), 0 0 60px rgba(255, 0, 0, 0.6);
    opacity: 0.8;
  }
}

.recorder-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Secondary button style */
.btn-cancel, .cta-btn.secondary, .secondary-btn {
  background: var(--glass-light);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-cancel:hover, .cta-btn.secondary:hover, .secondary-btn:hover {
  background: rgba(255, 165, 0, 0.15);
  border-color: rgba(255, 165, 0, 0.5);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--glow-sm);
}

/* Specific button styles */
.credit-link-btn {
  background: none;
  border: none;
  color: var(--orange-primary);
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
  margin: 0;
  display: inline;
  transition: color var(--transition-fast);
}

.credit-link-btn:hover {
  color: var(--orange-gold);
  text-shadow: var(--glow-sm);
}

.current-plan-btn {
  background: var(--glass-light) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: rgba(255, 255, 255, 0.6) !important;
  cursor: not-allowed;
}

.pro-btn {
  background: linear-gradient(135deg, var(--orange-gold), var(--orange-primary));
}

/* Control buttons */
.control-btn {
  background: var(--glass-light);
  border: 1px solid var(--glass-light);
  border-radius: var(--radius-full);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-primary);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.control-btn:hover {
  background: var(--orange-primary);
  color: var(--white);
  box-shadow: var(--glow-sm);
  transform: scale(1.05);
}

.play-pause-btn {
  width: 60px;
  height: 60px;
  font-size: 22px;
  background: var(--orange-primary);
  color: var(--white);
}

.play-pause-btn:hover {
  background: var(--orange-secondary);
  box-shadow: var(--glow-lg);
}

.btn-configure {
  width: 150px;
  /* margin-top: var(--spacing-sm); */
  background: var(--glass-ultra-light);
  border: 1px solid rgba(255, 165, 0, 0.2);
  color: var(--white);
  cursor: pointer;
  transition: all var(--transition-medium);
  font-size: 10px;
}

.btn-configure:hover {
  background: rgba(255, 165, 0, 0.1);
  border-color: rgba(255, 165, 0, 0.4);
  box-shadow: var(--glow-sm);
  transform: translateY(-2px);
}

.btn-configure i {
  margin-right: var(--spacing-xs);
  color: var(--orange-primary);
}

.main-content {
  flex: 1;
  color: var(--white);
  font-size: var(--font-md);
  background: rgba(5, 5, 15, 0.6);
  backdrop-filter: var(--blur-sm) saturate(140%);
  border: none;
  border-radius: 0;
  margin: 0;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}

.view-content {
  width: 100%;
  max-width: 800px;
  padding: var(--spacing-base);
  padding-bottom: 50px !important;
  text-align: center;
}

.view-content h2 {
  color: var(--white);
  text-shadow: var(--glow-lg);
  margin-bottom: var(--spacing-base);
  font-size: var(--font-xl);
  font-weight: 700;
  background: linear-gradient(135deg, var(--white) 0%, var(--orange-primary) 50%, var(--orange-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.form-group {
  margin-bottom: var(--spacing-base);
  width: 100%;
  position: relative;
  overflow: visible;
  /* min-height: 42px; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.popup-content .form-group {
  flex-direction: row;
}

.popup-content .form-group .form-section-title {
  border-bottom: unset;
  width: 200px;
  padding: 0;
}

.recreate-options .form-group{
  justify-content: space-between;
}

.recreate-options .form-section-title{
  width: unset;
  flex-grow: 1;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--white);
  text-shadow: var(--glow-sm);
  font-size: var(--font-sm);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-align: left;
}

.form-section-title {
  color: var(--orange-gold);
  font-size: var(--font-lg);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: var(--glow-sm);
  margin: var(--spacing-base) 0 var(--spacing-base) 0;
  padding-bottom: var(--spacing-sm);
  padding: 0;
}

.heading-pre, .iteration-type{
  border: 1px solid;
  padding: 10px;
  border-radius: 20px;
  margin-right: 10px;
  background: rgba(255, 165, 0, 0.3);
}

.setup-popup .form-group{
  justify-content: flex-start;
}
.setup-popup .form-section-title{
  width: 200px;
  flex-shrink: 1;
}

.setup-popup-img {
  width: 400px; 
  height: auto; 
  margin: 0 auto;
  display: block;
  borderRadius: var(--radius-md);
}

select, input, textarea, .form-select, .form-input {
  width: 100%;
  padding: var(--spacing-base) var(--spacing-base);
  border: none;
  border-radius: var(--radius-md);
  background: var(--glass-ultra-light);
  backdrop-filter: var(--blur-sm) var(--saturate-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: var(--font-md);
  font-weight: 500;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-sm), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

select:focus, input:focus, textarea:focus, .form-select:focus, .form-input:focus {
  outline: none;
  background: rgba(255, 165, 0, 0.05);
  border-color: rgba(255, 165, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.1), 0 6px 25px rgba(255, 165, 0, 0.3), 0 0 30px rgba(255, 165, 0, 0.25), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
  transform: translateY(-1px);
}

select::placeholder, input::placeholder, textarea::placeholder {
  color: rgba(255, 165, 0, 0.4);
}

select option, .form-select option {
  background: rgba(5, 8, 15, 0.95);
  color: var(--white);
  border: none;
}

.form-textarea {
  width: 100%;
  min-height: 80px;
  padding: var(--spacing-base);
  background: var(--glass-light);
  border: 1px solid var(--glass-light);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  box-sizing: border-box;
}

.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-textarea:focus {
  outline: none;
  border-color: var(--orange-primary);
  box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.2);
}

.form-container {
  margin-top: var(--spacing-base);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  max-width: 700px;
  margin: auto;
}

.form-header {
  margin-bottom: var(--spacing-base);
  text-align: center;
}

.form-actions {
  text-align: center;
  margin-top: var(--spacing-base);
}

.custom-dropdown {
  position: relative;
  display: inline-block;
  width: 100%;
  overflow: visible;
  z-index: 1;
}
.horizontal .custom-dropdown{
  width: unset;
}

.custom-dropdown select {
  display: none;
}

.custom-dropdown-selected {
  width: 100%;
  padding: var(--spacing-base) var(--spacing-base);
  background: var(--glass-ultra-light);
  backdrop-filter: var(--blur-sm) var(--saturate-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: var(--font-md);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-sm), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* justify-content: space-between; */
}

.custom-dropdown-selected .voice-preview-btn {
  display: none;
}

.voice-preview-btn {
  font-size: 20px;
  padding: 10px;
  border-radius: 20px;
  margin-left: 20px;
}

.custom-dropdown-selected:hover {
  background: rgba(255, 165, 0, 0.05);
  border-color: rgba(255, 165, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.1), 0 6px 25px rgba(255, 165, 0, 0.3), 0 0 30px rgba(255, 165, 0, 0.25), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
  transform: translateY(-1px);
}

.custom-dropdown-selected.active {
  background: rgba(255, 165, 0, 0.05);
  border-color: rgba(255, 165, 0, 0.4);
  border-bottom: 1px solid transparent;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset;
  transform: translateY(0);
}

.custom-dropdown-arrow {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--white);
  transition: transform var(--transition-medium);
  filter: drop-shadow(var(--glow-sm));
}

.custom-dropdown-selected.active .custom-dropdown-arrow {
  transform: rotate(180deg);
  filter: drop-shadow(var(--glow-sm));
}

.custom-dropdown-options {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: var(--blur-lg) var(--saturate-sm);
  border: 1px solid rgba(255, 165, 0, 0.4);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
  z-index: 9999;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-medium);
  pointer-events: none;
}

.custom-dropdown-options.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.custom-dropdown-selected.active,
.custom-dropdown-selected.active + .custom-dropdown-options.show {
  position: relative;
}

.custom-dropdown-selected.active::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -1px;
  background: transparent;
  border: 3px solid rgba(255, 165, 0, 0.1);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  pointer-events: none;
  z-index: -1;
}

.custom-dropdown-options.show::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: transparent;
  border: 3px solid rgba(255, 165, 0, 0.1);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  pointer-events: none;
  z-index: -1;
}

.custom-dropdown-selected.active::after {
  content: "";
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -4px;
  background: transparent;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.1), 0 6px 25px rgba(255, 165, 0, 0.3), 0 0 30px rgba(255, 165, 0, 0.25);
  pointer-events: none;
  z-index: 0;
}

.custom-dropdown-options.show::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  background: transparent;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.1), 0 6px 25px rgba(255, 165, 0, 0.3), 0 0 30px rgba(255, 165, 0, 0.25);
  pointer-events: none;
  z-index: 0;
}

.custom-dropdown-option {
  padding: var(--spacing-sm) var(--spacing-base);
  color: var(--white);
  cursor: pointer;
  transition: all var(--transition-fast);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: var(--font-md);
}

.custom-dropdown-option:last-child {
  border-bottom: none;
}

.custom-dropdown-option:hover {
  background: rgba(255, 165, 0, 0.1);
  color: var(--orange-gold);
  text-shadow: var(--glow-sm);
  transform: translateX(5px);
}

.custom-dropdown-option.selected {
  background: rgba(255, 165, 0, 0.15);
  color: var(--orange-gold);
  text-shadow: var(--glow-sm);
  font-weight: 600;
}

/* Fullscreen dropdown */
.dropdown-fullscreen-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(24, 36, 61, 0.5);
  backdrop-filter: var(--blur-lg) var(--saturate-sm);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-medium);
}

.dropdown-fullscreen-overlay.show {
  opacity: 1;
  visibility: visible;
}

.dropdown-fullscreen-modal {
  width: 95%;
  height: 80vh;
  background: var(--glass-bg);
  backdrop-filter: var(--blur-lg) var(--saturate-sm);
  border: 1px solid rgba(255, 165, 0, 0.4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(255, 165, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: all var(--transition-medium);
}

.dropdown-fullscreen-overlay.show .dropdown-fullscreen-modal {
  transform: scale(1) translateY(0);
}

.dropdown-fullscreen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-base);
  background: rgba(255, 165, 0, 0.1);
  border-bottom: 1px solid rgba(255, 165, 0, 0.2);
}

.dropdown-fullscreen-title {
  color: var(--orange-gold);
  font-size: var(--font-lg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: var(--glow-sm);
}

.dropdown-fullscreen-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 165, 0, 0.15);
  border: 1px solid rgba(255, 165, 0, 0.3);
  color: var(--orange-gold);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-shadow: var(--glow-sm);
}

.dropdown-fullscreen-close:hover {
  background: rgba(255, 165, 0, 0.25);
  border-color: rgba(255, 165, 0, 0.5);
  box-shadow: 0 0 15px rgba(255, 165, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
  transform: scale(1.1);
  text-shadow: var(--glow-sm);
}

.dropdown-fullscreen-options {
  max-height: 60vh;
  overflow-y: auto;
  padding: var(--spacing-xs);
  display: flex;
  flex-wrap: wrap;
}

.dropdown-fullscreen-option {
  padding: var(--spacing-base) var(--spacing-base);
  color: var(--white);
  cursor: pointer;
  transition: all var(--transition-fast);
  border-radius: var(--radius-sm);
  margin: var(--spacing-xs) 0;
  font-size: var(--font-md);
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 165, 0, 0.3);
  margin: 10px;
  position: relative;
  max-width: 300px;
  flex-direction: column;
  max-width: calc(50% - 20px);
}
.dropdown-fullscreen-option img{
  max-height: 100px;
  border-radius: 10px;
}

.dropdown-fullscreen-option:hover {
  background: rgba(255, 165, 0, 0.1);
  color: var(--orange-gold);
  text-shadow: var(--glow-sm);
  border-radius: var(--radius-md);
}

.dropdown-fullscreen-option.selected, .voice-preview-btn {
  background: rgba(255, 165, 0, 0.15);
  color: var(--orange-gold);
  text-shadow: var(--glow-sm);
  font-weight: 600;
  border: 1px solid rgba(255, 165, 0, 0.3);
  box-shadow: 0 0 15px rgba(255, 165, 0, 0.2), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

.dropdown-fullscreen-option.selected:hover {
  box-shadow: 0 0 20px rgba(255, 165, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.dropdown-fullscreen-option .gui-badge{
  background: red;
}

.gui-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: var(--spacing-sm) 0;
  color: var(--white);
  position: relative;
  user-select: none;
}

.gui-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.gui-checkbox .checkmark {
  width: 20px;
  height: 20px;
  background: var(--glass-bg);
  backdrop-filter: var(--blur-sm) var(--saturate-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  margin-right: var(--spacing-base);
  position: relative;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-sm), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

.gui-checkbox:hover .checkmark {
  background: rgba(255, 165, 0, 0.05);
  border-color: rgba(255, 165, 0, 0.3);
  box-shadow: 0 0 10px rgba(255, 165, 0, 0.2), var(--shadow-sm);
}

.gui-checkbox input:checked + .checkmark {
  background: rgba(255, 165, 0, 0.15);
  border-color: rgba(255, 165, 0, 0.4);
  box-shadow: 0 0 15px rgba(255, 165, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

.gui-checkbox input:checked + .checkmark:after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--orange-gold);
  font-size: 12px;
  font-weight: 700;
  text-shadow: var(--glow-sm);
}

.gui-element-with-badge {
  position: relative;
}

.gui-badge-container {
  position: absolute;
  top: -8px;
  right: -14px;
  z-index: 10;
}


.gui-badge {
  background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-gold) 100%);
  color: var(--white);
  border-radius: var(--radius-full);
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-xs);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 165, 0, 0.6), 0 0 25px rgba(255, 165, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: pulse-generic 2s ease-in-out infinite;
  z-index: 999;
}

.history-creation>.gui-badge-container>.gui-badge {
  background: #9e9e9e00;
}

.beta-badge {
  background: linear-gradient(135deg, var(--red-error) 0%, #ff6b6b 100%);
  color: var(--white);
  font-size: var(--font-sm);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-lg);
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4), 0 0 20px rgba(255, 71, 87, 0.3), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: beta-glow 2s ease-in-out infinite;
  position: relative;
  top: -10px;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  margin: 0;
}

.status-badge.active {
  background: var(--green-success);
  color: var(--white);
}

.status-badge.inactive {
  background: var(--orange-primary);
  color: var(--white);
}

.popular-badge {
  position: absolute;
  top: -10px;
  left: 75%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-secondary));
  color: var(--white);
  padding: var(--spacing-xs) var(--spacing-base);
  border-radius: var(--radius-full);
  font-size: var(--font-sm);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.user-connection-widget {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.user-info {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  background: var(--glass-light);
  backdrop-filter: var(--blur-sm) var(--saturate-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

.user-name {
  color: var(--white);
  font-weight: 600;
  font-size: var(--font-sm);
  text-shadow: var(--glow-lg);
}

.user-actions {
  display: flex;
  gap: var(--spacing-xs);
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-base);
  width: 100%;
}

.user-info-section, .subscription-section, .auth-section {
  background: var(--glass-light);
  border: 1px solid var(--glass-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-base);
  grid-column: span 3;
}

.user-detail {
  color: var(--white);
  margin: var(--spacing-sm) 0;
  font-size: var(--font-md);
}

.connection-widget {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-medium);
  background: var(--glass-light);
  backdrop-filter: var(--blur-sm);
  border: 1px solid rgba(255, 165, 0, 0.15);
  border-radius: var(--radius-full);
  position: relative;
}

.connection-widget:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 30px rgba(255, 165, 0, 0.4), 0 0 25px rgba(255, 165, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.connection-icon {
  font-size: 18px;
  transition: all var(--transition-medium);
}

.connection-icon.connected {
  color: var(--green-success);
  text-shadow: 0 0 15px rgba(0, 255, 136, 0.8);
  animation: connected-glow 2s ease-in-out infinite;
}

.connection-icon.disconnected {
  color: var(--red-error);
  text-shadow: 0 0 15px rgba(255, 71, 87, 0.6);
}

.notification-overlay {
  position: absolute;
  top: 50px;
  right: 0;
  width: calc(100vw - 40px);
  max-width: 320px;
  max-height: 400px;
  padding: 15px;
  z-index: 999;
  transition: all var(--transition-medium);
  overflow: hidden;
}

.notification-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-header h4 {
  margin: 0;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-shadow: var(--glow-lg);
}

.notification-header button {
  width: auto;
  padding: 6px 10px;
  margin: 0;
  font-size: 12px;
}

.notification-list {
  max-height: 280px;
  overflow-y: auto;
}

.notification-list .form-group {
  padding: var(--spacing-sm);
  margin-bottom: var(--spacing-xs);
  background: var(--glass-ultra-light);
  backdrop-filter: var(--blur-sm);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-sm);
}

.notification-list .form-group:last-child {
  margin-bottom: 0;
}

.notification-list small {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--font-xs);
  margin-top: 5px;
  display: block;
}

.subscription-status {
  font-weight: 600;
  margin: var(--spacing-sm) 0;
}

.subscription-status.active {
  color: var(--green-success);
}

.subscription-status.inactive {
  color: var(--orange-primary);
}

.current-plan {
  margin-bottom: var(--spacing-base);
}

.plan-status {
  background: var(--glass-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-base);
  border: 1px solid var(--glass-light);
}

.plan-status.basic {
  border-color: var(--orange-primary);
  background: rgba(255, 165, 0, 0.05);
}

.plan-status.pro {
  border-color: var(--orange-gold);
  background: rgba(255, 215, 0, 0.05);
}

.plan-info {
  margin-bottom: var(--spacing-base);
}

.plan-name {
  color: var(--orange-primary);
  margin: 0 0 var(--spacing-xs) 0;
  font-size: 18px;
}

.renewal-date {
  color: var(--white);
  opacity: 0.7;
  font-size: 13px;
  margin: var(--spacing-xs) 0 0 0;
}

.credits-display {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.credit-item {
  display: flex;
  flex-direction: column;
  padding: var(--spacing-sm);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
}

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

.credit-item.total-credits {
  background: rgba(255, 165, 0, 0.1);
  border: 1px solid var(--orange-primary);
  font-weight: 600;
}

.credit-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  margin-top: 2px;
  display: block;
}

.audio-time-display {
  display: flex;
  align-items: center;
  margin-top: var(--spacing-xs);
  padding: var(--spacing-xs);
  background: rgba(255, 165, 0, 0.05);
  border-radius: var(--radius-sm);
}

.audio-time-value {
  color: var(--orange-primary);
  font-weight: 500;
  font-size: 14px;
}

.credit-progress {
  margin-top: var(--spacing-xs);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange-primary), var(--orange-gold));
  border-radius: var(--radius-sm);
  transition: width 0.3s ease;
  position: relative;
  width: 0%;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 2s infinite;
}

.progress-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.credit-label {
  color: var(--white);
  opacity: 0.8;
}

.credit-value {
  color: var(--orange-primary);
  font-weight: 600;
}

.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-base);
  margin-bottom: var(--spacing-base);
}

.plan-card {
  background: var(--glass-light);
  border: 1px solid var(--glass-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-base);
  transition: all 0.2s ease;
}

.plan-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.plan-card.current {
  border-color: var(--orange-primary);
  background: rgba(255, 165, 0, 0.05);
}

.plan-card.basic.current {
  border-color: var(--orange-primary);
}

.plan-card.pro.current {
  border-color: var(--orange-gold);
}

.plan-header {
  margin-bottom: var(--spacing-base);
  text-align: center;
}

.plan-title {
  color: var(--orange-primary);
  margin: 0 0 var(--spacing-xs) 0;
  font-size: 16px;
}

.plan-credits {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  opacity: 0.9;
}

.plan-features {
  margin-bottom: var(--spacing-base);
}

.feature {
  color: var(--white);
  font-size: 13px;
  line-height: 1.4;
}

.feature.premium {
  color: var(--orange-gold);
}

.feature.cost {
  color: var(--orange-primary);
  font-weight: 600;
  margin-top: var(--spacing-sm);
  padding-top: var(--spacing-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.plan-action {
  text-align: center;
}

.topup-section {
  background: var(--glass-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-base);
  border: 1px solid var(--glass-light);
}

.topup-description {
  color: var(--white);
  opacity: 0.8;
  margin-bottom: var(--spacing-base);
  text-align: center;
}

.topup-offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-base);
}

.topup-amount {
  color: var(--orange-primary);
  font-weight: 600;
  font-size: 16px;
}

.topup-price {
  color: var(--white);
  font-weight: 600;
  font-size: 16px;
}

.topup-btn {
  flex-shrink: 0;
  width: auto;
  min-width: 120px;
}

.pricing-section {
  padding: var(--spacing-base) 0;
  margin: var(--spacing-base) 0;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-base);
  margin: var(--spacing-base) 0;
}

.pricing-card {
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--spacing-base);
  backdrop-filter: var(--blur-sm);
  position: relative;
  transition: all var(--transition-medium);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 165, 0, 0.3);
}

.pricing-card.popular {
  border-color: var(--orange-primary);
  box-shadow: var(--glow-sm);
}

.pricing-card.popular::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(45deg, var(--orange-primary), var(--orange-secondary));
  z-index: -1;
  opacity: 0.3;
}

.pricing-header {
  text-align: center;
  margin-bottom: var(--spacing-base);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: var(--spacing-base);
}

.pricing-header .plan-title {
  font-size: var(--font-xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--spacing-xs);
}

.pricing-header .plan-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange-primary);
  margin-bottom: var(--spacing-xs);
}

.pricing-header .plan-period {
  font-size: var(--font-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--spacing-sm);
}

.pricing-header .plan-credits {
  font-size: var(--font-md);
  color: var(--white);
  background: rgba(255, 165, 0, 0.1);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  display: inline-block;
}

.pricing-header .plan-cost-per-min {
  font-size: var(--font-sm);
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  margin-top: var(--spacing-xs);
}

.pricing-features {
  margin-bottom: var(--spacing-base);
}

.pricing-features .feature {
  color: var(--white);
  font-size: var(--font-md);
  display: flex;
  align-items: center;
}

.pricing-features .feature.premium {
  color: var(--orange-primary);
}

.pricing-features .feature.usage-info {
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  margin-top: var(--spacing-sm);
  padding-top: var(--spacing-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-action {
  text-align: center;
}

.pricing-btn {
  width: 100%;
  padding: var(--spacing-base) var(--spacing-base);
  border-radius: var(--radius-md);
  font-size: var(--font-md);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-medium);
  cursor: pointer;
  border: 2px solid;
}

.home-view .pricing-btn {
  display: none;
}

.pricing-btn.basic-btn {
  background: linear-gradient(135deg, #3498db, #2980b9);
  border-color: #3498db;
  color: var(--white);
}

.pricing-btn.basic-btn:hover {
  background: linear-gradient(135deg, #2980b9, #3498db);
  box-shadow: 0 0 15px rgba(52, 152, 219, 0.5);
  transform: translateY(-2px);
}

.pricing-btn.pro-btn {
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-secondary));
  border-color: var(--orange-primary);
  color: var(--white);
}

.pricing-btn.pro-btn:hover {
  background: linear-gradient(135deg, var(--orange-secondary), var(--orange-primary));
  box-shadow: var(--glow-sm);
  transform: translateY(-2px);
}

.pricing-btn.topup-btn {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
  border-color: #9b59b6;
  color: var(--white);
}

.pricing-btn.topup-btn:hover {
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
  box-shadow: 0 0 15px rgba(155, 89, 182, 0.5);
  transform: translateY(-2px);
}

.pricing-notes {
  margin-top: var(--spacing-base);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-base);
}

.pricing-notes .usage-info,
.pricing-notes .subscription-info {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--spacing-base);
}

.pricing-notes .notes-title {
  color: var(--orange-primary);
  font-size: var(--font-lg);
  margin-bottom: var(--spacing-base);
  font-weight: 600;
}

.pricing-notes .note-item {
  color: var(--white);
  font-size: var(--font-md);
  margin-bottom: var(--spacing-xs);
  line-height: 1.4;
}

.pricing-notes .note-item.small-print {
  font-size: var(--font-sm);
  color: rgba(255, 255, 255, 0.7);
}

.usage-info-section {
  margin-top: var(--spacing-base);
  padding: var(--spacing-base);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
}

.usage-details .usage-item {
  color: var(--white);
  font-size: var(--font-md);
  margin-bottom: var(--spacing-xs);
  line-height: 1.4;
}

.small-print-section {
  margin-top: var(--spacing-base);
  padding-top: var(--spacing-base);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.small-print-section .small-print {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--font-sm);
  margin-bottom: var(--spacing-xs);
  line-height: 1.3;
}

.topup-notes {
  margin-top: var(--spacing-base);
}

.topup-notes .topup-note {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-sm);
  margin-bottom: var(--spacing-xs);
  line-height: 1.3;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: var(--blur-sm);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm);
}

.playback-popup {
  overflow: hidden;
}

.popup-form {
  background: var(--glass-bg);
  backdrop-filter: var(--blur-lg);
  border: 1px solid var(--glass-light);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.popup-header {
  padding: var(--spacing-base);
  border-bottom: 1px solid var(--glass-light);
  background: var(--glass-dark);
}

.popup-header h3 {
  color: var(--orange-primary);
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.popup-content {
  padding: var(--spacing-base);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-base);
}

.popup-buttons {
  padding: var(--spacing-base);
  border-top: 1px solid var(--glass-light);
  display: flex;
  gap: var(--spacing-base);
  /* flex-direction: column; */
}

.btn-delete {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.6) 0%, rgba(185, 28, 28, 0.5) 100%);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-delete:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.7) 0%, rgba(220, 38, 38, 0.6) 100%);
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
  transform: translateY(-2px);
}

.btn-delete.confirm-delete {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.8) 0%, rgba(220, 38, 38, 0.7) 100%);
  border: 2px solid rgba(239, 68, 68, 0.6);
  animation: pulse-delete 0.5s ease-in-out;
}

@keyframes pulse-delete {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.share-creation-info {
  background: var(--glass-ultra-light);
  padding: var(--spacing-base);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 14px;
  margin-bottom: var(--spacing-sm);
}

.creation-card {
  position: relative;
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: var(--blur-sm);
  border: 1px solid var(--glass-light);
  border-radius: var(--radius-md);
  padding: 0;
  margin: var(--spacing-sm) 0;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  width: 200px;
}

.creation-card:hover {
  background: var(--glass-light);
  box-shadow: var(--shadow-lg);
}

.creation-bg-spider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: blur(2px);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.waveform-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.waveform-canvas.playing {
  opacity: 0.6;
}

.creation-content {
  position: relative;
  z-index: 2;
  padding: var(--spacing-base);
  display: flex;
  align-items: center;
  gap: var(--spacing-base);
}

.share-icon, .popup-share-icon {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  color: var(--orange-primary);
  font-size: 16px;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.2s ease;
  z-index: 4;
}

.popup-share-icon {
  font-size: 26px;
  opacity: 0.8;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.share-icon:hover, .popup-share-icon:hover {
  opacity: 1;
  color: var(--orange-secondary);
  transform: scale(1.1);
}

.popup-share-icon:hover {
  background: var(--glass-light);
}

.recreate-icon, .close-icon {
  color: var(--orange-primary);
  font-size: 24px;
  cursor: pointer;
  opacity: 0.8;
  transition: all 0.2s ease;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.close-icon{
  position: absolute;
  top: 2px;
  right: 2px;
}

.recreate-icon:hover, .close-icon:hover {
  opacity: 1;
  color: var(--orange-gold);
  background: var(--glass-light);
  transform: scale(1.1);
}

.creation-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 120px;
  justify-content: space-between;
}
.creation-info .horizontal{
  justify-content: space-between;
  align-items: center;
}

.creation-language, .creation-access-count, .creation-history {
  width: 20px;
  right: 10px;
  border-radius: 10px;
  overflow: hidden;
}

.llm{
  color: gray;
}

.creation-history, .creation-access-count{
  font-size: 10px;
  overflow: visible;
}
.creation-history i, .creation-access-count i{
  font-size: 20px;
}

.creation-history .gui-badge{
  background: #9E9E9E;
}

.popup-form .creation-access-count {
  right: unset;
  width: unset;
  position: relative;
  bottom: unset;
  top: unset;
  border-radius: unset;
  height: unset;
}

.creation-access-count {
  /* right: 50%; */
  /* width: 100px; */
}

.eye-icon, .fa-arrows-turn-to-dots {
  color: grey;
}

.creation-time {
  font-size: 12px;
  color: var(--orange-primary);
  opacity: 0.8;
  /* width: 80px; */
}

.creation-duration {
  font-size: 11px;
  color: var(--white);
  opacity: 0.6;
}
.creation-duration.processing{
  background: rgba(64, 224, 208, 1);
  color: black;
  border-radius: 10px;
}

.creation-short {
  font-size: 13px;
  color: var(--white);
  margin-top: 2px;
}

.play-button {
  font-size: 24px;
  color: var(--orange-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}

.play-button:hover {
  color: var(--orange-secondary);
  text-shadow: var(--glow-sm);
}

.creation-popup-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-base);
}

.creation-popup-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-base);
  background: var(--glass-ultra-light);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: var(--font-md);
}

.creation-player-info {
  display: flex;
}

.creation-info-main {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-base);
  align-items: center;
  flex: 1;
}

.creation-info-actions {
  display: flex;
  gap: var(--spacing-base);
  align-items: center;
  flex: 1;
}

.creation-popup-info .creation-language {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
}

.creation-popup-info .creation-language img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creation-player-zone {
  background: var(--glass-light);
  border: 1px solid var(--glass-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-base);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-base);
}

.waveform-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--glass-dark);
  border-radius: var(--radius-sm);
  padding: var(--spacing-base);
  overflow: hidden;
}

.waveform-canvas-popup {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.transcript-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  pointer-events: none;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-base);
}

.transcript-scroller {
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: auto;
  width: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 165, 0, 0.2) transparent;
  background: transparent;
  backdrop-filter: blur(6px);
}

.transcript-scroller::-webkit-scrollbar {
  width: 4px;
}

.transcript-scroller::-webkit-scrollbar-track {
  background: transparent;
}

.transcript-scroller::-webkit-scrollbar-thumb {
  background: rgba(255, 165, 0, 0.2);
  border-radius: 2px;
}

.transcript-item {
  padding: 6px 50px;
  border-radius: var(--radius-sm);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.transcript-item.active {
  opacity: 1;
  padding: 6px 10px;
  backdrop-filter: blur(10px);
  border-radius: 10px;
  transform: scale(1.02) translateZ(0);
}

.transcript-text {
  font-size: var(--font-md);
  line-height: 1.4;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  transition: all 0.3s ease;
}

.transcript-item.active .transcript-text{
  font-size: 15px;
}

.player-controls {
  display: flex;
  justify-content: center;
  gap: var(--spacing-base);
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}

.hero-section .download-btn {
  display: none;
}

.playback-time {
  color: var(--white);
  font-family: 'Courier New', monospace;
  font-weight: 500;
  margin-left: var(--spacing-base);
  padding: 8px 12px;
  background: var(--glass-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-light);
  min-width: 90px;
  text-align: center;
  font-size: 20px;
  /* position: absolute; */
  right: 0;
}

.playback-time .current-time {
  color: var(--orange-primary);
}

.playback-time .total-time {
  color: rgba(255, 255, 255, 0.7);
}

.progress-container {
  width: 100%;
  overflow: hidden;
}

.progress-slider {
  position: relative;
  height: 6px;
  background: var(--glass-light);
  border-radius: 3px;
  cursor: pointer;
  margin: var(--spacing-base) 0;
}

.progress-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.progress-handle {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  background: var(--orange-primary);
  border: 2px solid var(--white);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.progress-handle:hover {
  background: var(--orange-secondary);
  box-shadow: var(--glow-sm);
  transform: translate(-50%, -50%) scale(1.2);
}

.progress-slider:hover .progress-handle {
  transform: translate(-50%, -50%) scale(1.1);
}

.home-view, .view-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-base);
}

.home-hero {
  text-align: center;
  margin-bottom: var(--spacing-base);
  padding: var(--spacing-base) 0;
}

.title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-base);
  margin-bottom: var(--spacing-base);
}

.home-title {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--white) 0%, var(--orange-primary) 50%, var(--orange-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: var(--glow-lg);
  letter-spacing: 2px;
  margin: 0;
}

.hero-tagline {
  font-size: 28px;
  font-weight: 600;
  color: var(--orange-gold);
  margin: var(--spacing-base) 0 var(--spacing-base) 0;
  text-shadow: var(--glow-sm);
}

.home-subtitle {
  font-size: var(--font-xl);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}

/* Section styling */

.section-base {
  margin: 50px auto;
  padding: var(--spacing-base);
  max-width: 800px;
}

.card-base {
  background: var(--glass-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--spacing-base);
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-sm), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

.card-base:hover {
  background: rgba(255, 165, 0, 0.05);
  border-color: rgba(255, 165, 0, 0.3);
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-lg), var(--glow-sm), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.popup-section, .how-it-works-section, .examples-section, .personality-section, .benefits-section, .use-cases-section, .feature-highlights-section, .history-section, .slide {
  margin: var(--spacing-base) 0;
  padding: var(--spacing-base);
  background: var(--glass-ultra-light);
  backdrop-filter: var(--blur-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.history-section .creation-card{
  overflow: visible;
  margin: 10px;
}

.personality-section{
  height: 180px;
}

.desmos-container{
  width: 300px;
  height: 300px;
  margin: 10px auto;
}

.dcg-calculator-api-container-v1_11 button {
  display: block;
}

.dcg-calculator-api-container-v1_11 button::before{
  position: unset;
  top: unset;
  left: unset;
  width: unset;
  height: unset;
  background: unset;
  transition: unset;
}
.dcg-calculator-api-container-v1_11 button:hover{
  background: unset;
  border-color: unset;
  transform: unset;
  box-shadow: unset;
}

/* Basic Markdown Styles - Light Theme */
.slide {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  min-height: 20px;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: #ffffff;
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
  transform: translateX(0);
  opacity: 1;
  display: block;
  position: relative;
}

.slide.slide-out-left {
  transform: translateX(-100%);
  opacity: 0;
}

.slide.slide-in-right {
  transform: translateX(100%);
  opacity: 0;
}

.slide.slide-active {
  transform: translateX(0);
  opacity: 1;
}

/* Headings */
.slide h1 {
  font-size: 2.5em;
  margin-bottom: 0.5em;
  border-bottom: 2px solid #4ecdc4;
  padding-bottom: 0.3em;
  color: #2c3e50;
}

.slide h2 {
  font-size: 2em;
  margin-top: 1em;
  margin-bottom: 0.5em;
  color: #ff6b6b;
}

.slide h3 {
  font-size: 1.5em;
  margin-top: 0.8em;
  color: #a29bfe;
}

/* Paragraphs */
.slide p {
  margin: 1em 0;
}

/* Lists */
.slide ul, .slide ol {
  margin: 1em 0;
  padding-left: 2em;
}

.slide li {
  margin: 0.5em 0;
}

/* Tables */
.slide table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5em 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.slide th, .slide td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.slide th {
  background-color: #f8f9fa;
  font-weight: bold;
  color: #2c3e50;
}

.slide tr:nth-child(even) {
  background-color: #fafafa;
}

.slide tr:hover {
  background-color: #f5f5f5;
}

/* Blockquotes */
.slide blockquote {
  border-left: 4px solid #f9ca24;
  padding-left: 1em;
  margin: 1.5em 0;
  background-color: #fffbea;
  padding: 1em;
  border-radius: 4px;
  color: #856404;
}

/* Code */
.slide code {
  background-color: #f4f4f4;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  color: #e83e8c;
  border: 1px solid #e0e0e0;
}

.slide pre {
  background-color: #f8f9fa;
  padding: 1em;
  border-radius: 5px;
  overflow-x: auto;
  border: 1px solid #e0e0e0;
}

.slide pre code {
  background: none;
  padding: 0;
  border: none;
  color: #2c3e50;
}

/* Links */
.slide a {
  color: #4ecdc4;
  text-decoration: none;
}

.slide a:hover {
  text-decoration: underline;
  color: #3ab8ac;
}

/* Strong/Bold */
.slide strong {
  font-weight: bold;
  color: #000;
}

/* Emphasis/Italic */
.slide em {
  font-style: italic;
  color: #555;
}

/* Horizontal Rule */
.slide hr {
  border: none;
  border-top: 2px solid #e0e0e0;
  margin: 2em 0;
}

/* Math blocks */
.slide .math-display {
  margin: 1.5em 0;
  overflow-x: auto;
}

/* Images */
.slide img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Emoji/Icons in text */
.slide blockquote p:first-child::before {
  content: '';
  margin-right: 0.5em;
}

/* --- Color Definitions --- */
/* The color values are chosen for good contrast and readability */

/* ⛔ Red for warnings, critical concepts, key rules */
.slide .warning {
    color: #8B0000; /* Darker red for emphasis */
    background-color: #FFDDDD; /* Light pink background */
    font-weight: bold;
    padding: 2px 5px;
    border-left: 5px solid #DC143C; /* Crimson border for a strong warning look */
    border-radius: 3px;
    display: inline-block; /* Allows padding and background on inline elements */
}

/* 📘 Teal for important terms, definitions */
.slide .important {
    color: #008080; /* Teal/Turquoise */
    font-weight: 600; /* Slightly less than bold for terms */
    border-bottom: 2px dashed #008080;
    padding: 0 2px;
}

/* ✅ Green for examples, positive outcomes */
.slide .highlight {
    color: #1E8449; /* Darker, pleasant green */
    background-color: #E9F7EF; /* Very light green background */
    padding: 2px 5px;
    border-radius: 3px;
    display: inline-block;
}

/* 💡 Yellow for tips, hints, notes */
.slide .tip {
    color: #B8860B; /* Darker yellow/goldenrod for readability */
    background-color: #FFFACD; /* Lemon chiffon background */
    border: 1px solid #FFD700; /* Gold border */
    padding: 5px 10px;
    margin: 5px 0;
    border-radius: 5px;
    display: block; /* Typically tips/notes span a block of text */
    font-style: italic;
}

/* ℹ️ Purple for secondary info */
.slide .small-info {
    color: #6A5ACD; /* Slate blue/light purple */
    font-size: 0.9em; /* Smaller font size */
    opacity: 0.85; /* Slightly faded */
}

/* 🌑 Dark for headings */
.slide .dark {
    color: #2F4F4F; /* Dark slate gray */
    border-bottom: 2px solid #555;
    padding-bottom: 5px;
    margin-top: 1.5em; /* Add space above headings */
}


.personality-title {
  position: absolute;
  left: 10px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--orange-gold);
  text-shadow: var(--glow-sm);
  margin-bottom: var(--spacing-base);
  text-align: center;
}

.subsection-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
  margin: var(--spacing-base) 0 var(--spacing-base) 0;
  text-shadow: var(--glow-sm);
}

.section-description {
  font-size: var(--font-lg);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-base);
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Steps grid */
.steps-grid, .steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-base);
  margin: var(--spacing-base) 0;
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-base);
  max-width: 400px;
  margin: 0 auto;
}

.step-item {
  text-align: center;
  padding: var(--spacing-base);
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-gold) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin: 0 auto var(--spacing-base) auto;
  box-shadow: var(--glow-sm);
}

.step-item h3 {
  font-size: var(--font-xl);
  color: var(--white);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.step-item p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.step-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--orange-gold);
  margin-bottom: var(--spacing-xs);
}

.step-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

/* Examples grid */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-base);
  margin: var(--spacing-base) 0;
}

.example-item {
  background: var(--glass-light);
  backdrop-filter: var(--blur-sm);
  padding: var(--spacing-base);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-sm);
}

.example-item:hover {
  background: rgba(255, 165, 0, 0.05);
  border-color: rgba(255, 165, 0, 0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--glow-sm);
}

.example-item h3 {
  font-size: var(--font-xl);
  color: var(--white);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.example-item p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.examples-cta {
  text-align: center;
  margin-top: var(--spacing-base);
}

/* Personality features */
.personality-features, .feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-base);
  margin: var(--spacing-base) 0;
}

.feature-grid {
  max-width: 400px;
  margin: 0 auto;
}

.feature-card {
  text-align: center;
  padding: var(--spacing-base);
  background: var(--glass-light);
  backdrop-filter: var(--blur-sm);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-medium);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--glow-sm);
  background: rgba(255, 165, 0, 0.05);
}

.feature-card h3 {
  font-size: var(--font-xl);
  color: var(--white);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.feature-card-icon {
  font-size: 28px;
  color: var(--orange-primary);
  margin-bottom: var(--spacing-base);
  text-shadow: var(--glow-sm);
}

/* Benefits */
.benefit-cards {
  display: grid;
  gap: var(--spacing-base);
  max-width: 400px;
  margin: 0 auto;
}

.benefit-card {
  text-align: center;
  padding: var(--spacing-base);
  background: var(--glass-light);
  border: 1px solid rgba(255, 165, 0, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-light);
  transition: all var(--transition-medium);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--glow-sm);
  border-color: var(--orange-primary);
}

.benefit-icon {
  font-size: 32px;
  color: var(--orange-primary);
  margin-bottom: var(--spacing-base);
  text-shadow: var(--glow-sm);
}

.benefit-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--orange-gold);
  margin-bottom: var(--spacing-sm);
}

.benefit-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

/* Use cases */
.use-case-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-base);
  max-width: 400px;
  margin: 0 auto;
}

.use-case-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-base);
  padding: var(--spacing-base);
  background: var(--glass-light);
  border: 1px solid rgba(255, 165, 0, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-light);
  transition: all var(--transition-medium);
}

.use-case-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--glow-sm);
  border-color: var(--orange-primary);
}

.use-case-icon {
  font-size: 24px;
  color: var(--orange-primary);
  text-shadow: var(--glow-sm);
  flex-shrink: 0;
  margin-top: 4px;
}

.use-case-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--orange-gold);
  margin-bottom: var(--spacing-xs);
}

.use-case-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

/* Hero section */
.hero-section {
  position: relative;
  overflow: hidden;
  margin-bottom: var(--spacing-base);
  /* display: grid; */
  grid-template-columns: 1fr;
  gap: var(--spacing-base);
  align-items: center;
}

/* New Hero Background with Image */
.above-hero{
  width: 100%;
  text-align: center;
}

.above-hero h2{
  font-size: 30px;
}
.above-hero .hero-text-switcher{
  font-size: 20px;
  height: 120px;
}

.hero-bg-container {
  position: relative;
  width: 100%;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  flex-direction: column;
  background: var(--glass-bg);
  backdrop-filter: var(--blur-sm);
  border: 1px solid var(--glass-light);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-base);
}

.hero-bg-image, .hero-bg-video {
  position: absolute;
  top: 0;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  border-radius: 20px;
}

.hero-text-switcher {
  transition: opacity 0.5s ease-in-out;
}
.hero-text-switcher.fade {
  opacity: 0;
}

.hero-content-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--spacing-base);
  background: rgb(0 0 0 / 0%);
  backdrop-filter: blur(1px);
  border-radius: var(--radius-lg);
  max-width: 800px;
  margin: var(--spacing-base);
  animation: slideInFromRight 1s ease-out 1s both;
  top: -200px;
}

@keyframes slideInFromRight {
  0% {
    transform: translateX(100vw);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.hero-headline {
  font-size: clamp(32px, 7vw, 56px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--spacing-base);
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.hero-subheadline {
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 500;
  color: var(--orange-gold);
  margin-bottom: calc(var(--spacing-base) * 2);
  line-height: 1.5;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  align-items: center;
}

.primary-cta.xxl {
  font-size: clamp(16px, 3vw, 20px);
  padding: calc(var(--spacing-sm) * 1.5) calc(var(--spacing-base) * 2);
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-dark));
  border: none;
  border-radius: var(--radius-md);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--glow-lg);
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.primary-cta.xxl:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(255, 165, 0, 1);
}

.cta-subtitle {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.9;
  margin-top: 4px;
}

.secondary-cta.xl {
  font-size: clamp(14px, 2.5vw, 18px);
  padding: var(--spacing-sm) calc(var(--spacing-base) * 1.5);
  background: rgba(255, 165, 0, 0.2);
  border: 2px solid var(--orange-primary);
  border-radius: var(--radius-md);
  color: var(--orange-gold);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.secondary-cta.xl:hover {
  background: rgba(255, 165, 0, 0.3);
  border-color: var(--orange-gold);
}

/* Section Containers */
.section-container {
  padding: calc(var(--spacing-base) * 3) var(--spacing-base);
  background: var(--glass-bg);
  backdrop-filter: var(--blur-sm);
  border: 1px solid var(--glass-light);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-base);
}

.section-header {
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 600;
  color: var(--orange-gold);
  text-align: center;
  margin-bottom: calc(var(--spacing-base) * 2);
  line-height: 1.3;
}

/* Mechanism Section */
.mechanism-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.feature-title {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--spacing-base);
}

.feature-body {
  font-size: clamp(16px, 3vw, 18px);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* Input Flexibility Section */
.input-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-base);
  margin-top: calc(var(--spacing-base) * 2);
}

.input-feature-card {
  padding: var(--spacing-base);
  background: rgba(255, 165, 0, 0.05);
  border: 1px solid rgba(255, 165, 0, 0.2);
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition-fast);
}

.input-feature-card:hover {
  background: rgba(255, 165, 0, 0.1);
  border-color: rgba(255, 165, 0, 0.4);
  transform: translateY(-4px);
}

.input-icon {
  font-size: 40px;
  color: var(--orange-primary);
  margin-bottom: var(--spacing-sm);
}

.feature-subtitle {
  font-size: clamp(16px, 3vw, 20px);
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--spacing-sm);
}

.feature-small {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

/* Longitudinal Learning Section */
.longitudinal-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.feature-title-large {
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--spacing-base);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 165, 0, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-player-section {
  position: relative;
  z-index: 2;
  background: var(--glass-bg);
  backdrop-filter: var(--blur-sm);
  border: 1px solid var(--glass-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-base);
  box-shadow: var(--shadow-lg);
}

.hero-player-title {
  font-size: var(--font-lg);
  color: var(--orange);
  margin-bottom: var(--spacing-base);
  text-align: center;
}

.hero-player {
  max-width: 100%;
  /* height: 550px; */
}

.hero-section .title-container {
  flex-wrap: wrap;
}

.hero-section .hero-title {
  font-size: clamp(32px, 8vw, 48px);
  letter-spacing: 1px;
}

.hero-section .beta-badge {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: var(--radius-md);
  letter-spacing: 0.5px;
  box-shadow: 0 2px 10px rgba(255, 71, 87, 0.4);
  animation: pulse-generic 3s ease-in-out infinite;
  align-self: flex-start;
  margin-top: 35px;
}

.hero-section .hero-tagline {
  font-size: clamp(20px, 5vw, 28px);
  margin: var(--spacing-base) 0;
}

.hero-section .hero-subtitle {
  font-size: clamp(16px, 4vw, 18px);
  margin: 0 auto var(--spacing-base);
  max-width: 90%;
}

.hero-cta {
  margin-top: var(--spacing-base);
}

/* CTA section */
.home-cta-section, .cta-section {
  text-align: center;
  margin: var(--spacing-base) 0;
  padding: var(--spacing-base);
  background: var(--glass-ultra-light);
  backdrop-filter: var(--blur-sm);
  border: 1px solid rgba(255, 165, 0, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.cta-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--orange-gold);
  margin-bottom: var(--spacing-base);
  text-shadow: var(--glow-sm);
}

.cta-subtitle {
  font-size: clamp(14px, 4vw, 16px);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: var(--spacing-base);
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-base);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  font-size: var(--font-lg);
  font-weight: 700;
  padding: var(--spacing-base) var(--spacing-base);
  min-width: 200px;
  border-radius: var(--radius-lg);
  transition: all var(--transition-medium);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-btn.primary {
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.9) 0%, rgba(255, 140, 0, 0.8) 100%);
  border: 2px solid var(--orange-primary);
  box-shadow: var(--shadow-lg), var(--glow-lg);
}

.cta-btn.primary:hover {
  background: linear-gradient(135deg, rgba(255, 165, 0, 1) 0%, rgba(255, 140, 0, 0.9) 100%);
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(255, 165, 0, 0.6);
}

.cta-content {
  max-width: 90%;
  margin: 0 auto;
}

.sample-placeholder {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  padding: var(--spacing-base);
}

/* Mobile-safe */
.mobile-safe {
  padding-bottom: calc(var(--spacing-base) + env(safe-area-inset-bottom, 20px));
  padding-top: calc(var(--spacing-base) + env(safe-area-inset-top, 0px));
}

.home-view.mobile-safe {
  /* max-width: none; */
  padding: 0;
  overflow-x: hidden;
}

.mobile-safe .how-it-works-section,
.mobile-safe .use-cases-section,
.mobile-safe .feature-highlights-section,
.mobile-safe .cta-section {
  padding: var(--spacing-base) var(--spacing-base);
  margin: 0;
}

.mobile-safe .how-it-works-section {
  background: rgba(255, 165, 0, 0.02);
}

.mobile-safe .use-cases-section {
  background: var(--glass-ultra-light);
  backdrop-filter: var(--blur-sm);
}

.mobile-safe .feature-highlights-section {
  background: rgba(255, 165, 0, 0.02);
}

.mobile-safe .section-title {
  font-size: clamp(24px, 6vw, 32px);
}

.mobile-safe .section-description {
  font-size: clamp(14px, 4vw, 16px);
  max-width: 90%;
}

.mobile-safe .step-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-base);
  text-align: left;
}

.mobile-safe .step-number {
  width: 40px;
  height: 40px;
  font-size: 18px;
  flex-shrink: 0;
}

.mobile-safe .feature-card {
  text-align: center;
}

.mobile-safe .feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--orange-gold);
  margin-bottom: var(--spacing-sm);
}

.mobile-safe .feature-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.mobile-safe .cta-section {
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.08) 0%, rgba(255, 140, 0, 0.04) 100%);
  text-align: center;
  border-top: 1px solid rgba(255, 165, 0, 0.2);
}

.mobile-safe .cta-title {
  font-size: clamp(20px, 5vw, 28px);
}

.mobile-safe .cta-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-base);
  align-items: center;
}

.mobile-safe .cta-btn {
  font-size: 16px;
  font-weight: 600;
  padding: var(--spacing-base) var(--spacing-base);
  text-transform: none;
  letter-spacing: 0.5px;
  width: 100%;
  max-width: 280px;
  border: none;
  cursor: pointer;
}

.mobile-safe .cta-btn.large {
  padding: var(--spacing-base) var(--spacing-base);
  font-size: 18px;
  font-weight: 700;
}

.mobile-safe .cta-btn.primary {
  background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-gold) 100%);
  color: var(--black);
  box-shadow: var(--shadow-lg), var(--glow-lg);
}

.mobile-safe .cta-btn.primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(255, 165, 0, 0.5);
}

.mobile-safe .cta-btn.secondary {
  background: var(--glass-light);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-sm);
}

.mobile-safe .cta-btn.secondary:hover {
  background: rgba(255, 165, 0, 0.1);
  border-color: rgba(255, 165, 0, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--glow-sm);
}

.legal-section {
  padding: var(--spacing-base);
  background: rgba(5, 8, 15, 0.8);
  border-top: 1px solid rgba(255, 165, 0, 0.1);
  text-align: center;
}

.legal-content {
  max-width: 600px;
  margin: 0 auto;
}

.beta-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-base);
  padding: var(--spacing-sm);
  background: rgba(255, 165, 0, 0.08);
  border: 1px solid rgba(255, 165, 0, 0.2);
  border-radius: var(--radius-md);
}

.beta-icon {
  color: var(--orange-primary);
  font-size: 16px;
  text-shadow: var(--glow-sm);
}

.beta-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-style: italic;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-base);
}

.legal-link {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: var(--spacing-xs);
}

.legal-link:hover {
  color: var(--orange-primary);
  text-shadow: var(--glow-sm);
  transform: translateY(-1px);
}

.legal-separator {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
}

.copyright {
  margin-top: var(--spacing-base);
  padding-top: var(--spacing-base);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.legal-popup-content {
  max-width: 500px;
  line-height: 1.6;
}

.legal-popup-content h3 {
  color: var(--orange-primary);
  margin-bottom: var(--spacing-base);
  text-shadow: var(--glow-sm);
}

.legal-popup-content h4 {
  color: var(--orange-gold);
  margin: var(--spacing-base) 0 var(--spacing-sm) 0;
  font-size: 16px;
}

.legal-popup-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  margin-bottom: var(--spacing-sm);
}

.legal-popup-content strong {
  color: var(--white);
}

.email-link {
  color: var(--orange-primary);
  text-decoration: underline;
  transition: all var(--transition-fast);
}

.email-link:hover {
  color: var(--orange-gold);
  text-shadow: var(--glow-sm);
  text-decoration: none;
}

.share-methods {
  margin: var(--spacing-base) 0;
}

.share-methods-title {
  color: var(--white);
  font-size: var(--font-lg);
  margin-bottom: var(--spacing-base);
  text-align: center;
}

.share-buttons {
  display: flex;
  gap: var(--spacing-base);
  justify-content: center;
  flex-wrap: wrap;
}

.share-method-btn {
  background: linear-gradient(135deg, var(--glass-light), rgba(255, 255, 255, 0.1));
  border: 1px solid rgba(255, 165, 0, 0.3);
  color: var(--white);
  padding: var(--spacing-base) var(--spacing-base);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-medium);
  font-size: var(--font-md);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  min-width: 120px;
  justify-content: center;
}

.share-method-btn:hover {
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.2), rgba(255, 165, 0, 0.1));
  border-color: var(--orange-primary);
  color: var(--orange-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm), var(--glow-sm);
}

.share-method-btn i {
  font-size: 16px;
}

.recreate-options {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-base);
}

.recreate-option-btn {
  background: linear-gradient(135deg, var(--glass-light), rgba(255, 255, 255, 0.1));
  border: 1px solid rgba(255, 165, 0, 0.3);
  color: var(--white);
  padding: var(--spacing-base) var(--spacing-base);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-medium);
  font-size: var(--font-md);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  /* margin: 10px 0 20px 0; */
}

.recreate-option-btn:hover {
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.2), rgba(255, 165, 0, 0.1));
  border-color: var(--orange-primary);
  color: var(--orange-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm), var(--glow-sm);
}

.recreate-option-btn i {
  font-size: 16px;
}

/* Section titles and descriptions */
.recreate-section-title {
  color: var(--orange-primary);
  font-size: var(--font-lg);
  font-weight: 600;
  margin: 0;
  padding-bottom: var(--spacing-xs);
}

.recreate-section-description {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--font-sm);
  margin-bottom: var(--spacing-xs);
  font-style: italic;
}

.recreate-option-hint {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--font-xs);
  margin-top: -6px;
  margin-bottom: var(--spacing-xs);
  padding-left: var(--spacing-sm);
  line-height: 1.4;
}

.email-btn {
  border-color: rgba(52, 152, 219, 0.5);
}

.email-btn:hover {
  border-color: #3498db;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(52, 152, 219, 0.1));
  color: #3498db;
  text-shadow: 0 0 10px rgba(52, 152, 219, 0.4);
}

.whatsapp-btn {
  border-color: rgba(37, 211, 102, 0.5);
}

.whatsapp-btn:hover {
  border-color: #25d366;
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.2), rgba(37, 211, 102, 0.1));
  color: #25d366;
  text-shadow: 0 0 10px rgba(37, 211, 102, 0.4);
}

.copy-btn {
  border-color: rgba(156, 39, 176, 0.5);
}

.copy-btn:hover {
  border-color: #9c27b0;
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.2), rgba(156, 39, 176, 0.1));
  color: #9c27b0;
  text-shadow: 0 0 10px rgba(156, 39, 176, 0.4);
}

.email-input-section {
  margin-top: var(--spacing-base);
  padding-top: var(--spacing-base);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.email-send-btn {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: var(--white);
  border: none;
  margin-right: var(--spacing-sm);
}

.email-send-btn:hover {
  background: linear-gradient(135deg, #2980b9, #3498db);
  transform: translateY(-1px);
  box-shadow: 0 0 15px rgba(52, 152, 219, 0.5);
}

.speaker-selector{
  /* display: flex; */
  /* flex-direction: column; */
}
.speaker-selector .custom-dropdown-selected span{
  display: flex;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
}
.speaker-selector img{
  max-height: 100px;
  border-radius: 10px;
}
.speaker-selector small{
  display: none;
}

.speaker-section {
  position: relative;
  width: 40%;
}

.vert-line {
  height: 100px;
  border-left: 1px solid rgba(255, 165, 0, 0.3);
}

.speaker-portrait-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* margin: var(--spacing-base) 0 0 0; */
  padding: var(--spacing-sm);
  position: relative;
  transition: all var(--transition-medium);
}

.speaker-portrait-container:hover {
  background: var(--glass-ultra-light);
  border-radius: var(--radius-md);
}

.speaker-portrait-canvas {
  display: block;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.speaker-name-display {
  margin-top: var(--spacing-xs);
  color: var(--orange-primary);
  font-size: var(--font-md);
  font-weight: 600;
  text-align: center;
}

.speaker-click-hint {
  margin-top: 4px;
  color: rgba(255, 165, 0, 0.6);
  font-size: var(--font-xs);
  text-align: center;
  opacity: 0.7;
  transition: all var(--transition-fast);
}

.speaker-portrait-container:hover .speaker-click-hint {
  opacity: 1;
  color: var(--orange-primary);
}

.speaker-click-hint i {
  margin-right: 4px;
}

.speaker-voice-preview-btn {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  color: var(--orange-primary);
  font-size: 20px;
  cursor: pointer;
  opacity: 0.7;
  transition: all var(--transition-fast);
  z-index: 10;
}

.speaker-voice-preview-btn:hover {
  opacity: 1;
  transform: scale(1.2);
  text-shadow: var(--glow-sm);
}

.speaker-setup {
  width: 146px;
  height: 150px;
  margin: 10px;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 5px;
  cursor: pointer;
  transition: all var(--transition-medium);
  border: 3px solid transparent;
  position: relative;
}

.speaker-setup:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--glow-sm);
}

.speaker-setup.selected {
  border-color: var(--orange-primary);
  box-shadow: var(--shadow-lg), var(--glow-lg);
  background: rgba(255, 165, 0, 0.1);
}

.speaker-setup.selected::after {
  content: "✓";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
  background: var(--orange-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  box-shadow: var(--glow-sm);
}

.speaker-setup img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.personality-spider-container, .setup-container {
  background: var(--glass-light);
  border: 1px solid rgba(255, 165, 0, 0.2);
  border-radius: var(--radius-md);
  padding: var(--spacing-base);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  /* width: 130px; */
}

.setup-container{
  margin: 5px;
}

.personality-spider-container.spider-zoomed {
  position: absolute !important;
  top: -180px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 450px;
  height: 450px;
  max-width: 1200px;
  max-height: 900px;
  z-index: 9999;
  background: var(--glass-bg);
  backdrop-filter: var(--blur-lg);
  border: 2px solid rgba(255, 165, 0, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: block;
  z-index: 999;
}

.setup-container>img{
  max-width: calc(100%);
  max-height: 100%;
  border-radius: 10px;
}

@media (max-width: 767px) {
  .nav-btn {
    padding: 10px 8px;
    min-width: 40px;
    justify-content: center;
  }

  .nav-btn i {
    margin: 0;
  }

  .nav-label {
    display: none;
  }

  .header {
    padding: var(--spacing-sm) var(--spacing-base);
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  .credits-display {
    gap: var(--spacing-xs);
  }

  .credit-item {
    padding: var(--spacing-xs);
    font-size: 13px;
  }

  .topup-offer {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .topup-btn {
    width: 100%;
  }

  .creation-player-zone {
    padding: var(--spacing-base);
  }

  .waveform-canvas-popup {
    width: 100%;
    max-height: 80px;
  }

  .control-btn {
    width: 45px;
    height: 45px;
    font-size: 16px;
  }

  .play-pause-btn {
    width: 55px;
    height: 55px;
    font-size: 20px;
  }

  .playback-time {
    font-size: var(--font-sm);
    margin-left: var(--spacing-sm);
    padding: 6px 8px;
    min-width: 80px;
  }

  .share-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .share-method-btn {
    width: 100%;
    padding: var(--spacing-base);
    font-size: var(--font-lg);
  }

  .legal-links {
    flex-direction: column;
    gap: var(--spacing-xs);
  }

  .legal-separator {
    display: none;
  }

  .beta-notice {
    flex-direction: column;
    text-align: center;
  }
}

@media (min-width: 768px) {
  .popup-overlay {
    padding: var(--spacing-base);
  }

  .popup-form {
    max-width: 900px;
  }

  .popup-buttons {
    flex-direction: row;
    justify-content: flex-end;
  }

  .btn-cancel, .btn-share {
    width: auto;
    min-width: 100px;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
    gap: var(--spacing-base);
  }

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

  .hero-section {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
}

@media (min-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .legal-links {
    flex-direction: column;
    gap: var(--spacing-xs);
  }

  .legal-separator {
    display: none;
  }

  .beta-notice {
    flex-direction: column;
    text-align: center;
  }

  .form-container {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .wide {
    grid-column: span 2;
  }
}

/* File Dropzone Styling */
.textarea-wrapper {
  position: relative;
  width: 100%;
}

.file-upload-btn {
  position: absolute;
  bottom: var(--spacing-xs);
  right: var(--spacing-xs);
  background: var(--glass-bg);
  backdrop-filter: var(--blur-sm);
  border: 1px solid rgba(255, 165, 0, 0.3);
  border-radius: var(--radius-sm);
  color: var(--orange-primary);
  cursor: pointer;
  padding: 8px 12px;
  font-size: var(--font-lg);
  transition: var(--transition-fast);
  z-index: 10;
}

.file-upload-btn:hover {
  background: rgba(255, 165, 0, 0.1);
  border-color: var(--orange-primary);
  box-shadow: var(--glow-sm);
}

.textarea-wrapper .recorder-btn {
  position: absolute;
  bottom: var(--spacing-xs);
  right: 60px;
  width: 40px;
  height: 40px;
  font-size: 18px;
  z-index: 10;
}

.file-input-hidden {
  display: none;
}

textarea.drag-over {
  border: 2px solid var(--orange-primary) !important;
  box-shadow: 0 0 20px rgba(255, 165, 0, 0.4) !important;
  background: rgba(255, 165, 0, 0.05) !important;
}

.file-previews {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-sm);
}

.file-preview {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-xs);
  background: var(--glass-bg);
  backdrop-filter: var(--blur-sm);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 165, 0, 0.2);
}

.file-preview.uploading {
  opacity: 0.7;
  border: 1px solid rgba(255, 165, 0, 0.4);
}

.file-icon {
  font-size: var(--font-xl);
  color: var(--orange-primary);
  min-width: 24px;
  text-align: center;
}

.file-info {
  flex: 1;
  min-width: 0;
}

.file-name {
  color: var(--white);
  font-size: var(--font-md);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--font-sm);
}

.file-delete {
  background: none;
  border: none;
  color: var(--red-error);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.file-delete:hover {
  background: rgba(255, 71, 87, 0.1);
  color: var(--red-error);
}

/* Hero Free Trial Badge */
.hero-free-trial {
  margin: var(--spacing-sm) 0;
}

.free-trial-badge {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.2), rgba(255, 140, 0, 0.2));
  border: 1px solid var(--orange-primary);
  border-radius: var(--radius-md);
  color: var(--orange-primary);
  font-size: var(--font-md);
  font-weight: 600;
  box-shadow: var(--glow-sm);
}

.free-trial-badge i {
  margin-right: 6px;
}

/* Pricing Free Trial Highlight */
.free-trial-highlight {
  margin: var(--spacing-base) 0;
  text-align: center;
}

.free-trial-box {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-base);
  background: var(--glass-bg);
  backdrop-filter: var(--blur-sm);
  border: 2px solid var(--orange-primary);
  border-radius: var(--radius-lg);
  color: var(--white);
  font-size: var(--font-lg);
  box-shadow: var(--glow-lg);
}

.free-trial-box i {
  color: var(--orange-primary);
  margin-right: 8px;
  font-size: var(--font-xl);
}

.free-trial-box strong {
  color: var(--orange-primary);
}

/* Social Proof Section */
.social-proof-section {
  padding: var(--spacing-base);
  text-align: center;
}

.example-topics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  justify-content: center;
  margin: var(--spacing-base) 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.topic-tag {
  padding: var(--spacing-xs) var(--spacing-sm);
  background: var(--glass-bg);
  backdrop-filter: var(--blur-sm);
  border: 1px solid rgba(255, 165, 0, 0.3);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: var(--font-sm);
  transition: var(--transition-fast);
}

.topic-tag:hover {
  border-color: var(--orange-primary);
  box-shadow: var(--glow-sm);
  transform: translateY(-2px);
}

.social-proof-stat {
  margin-top: var(--spacing-base);
  color: rgba(255, 165, 0, 0.8);
  font-size: var(--font-md);
  font-style: italic;
}

/* Mobile optimizations for new sections */
@media (max-width: 768px) {
  .free-trial-badge {
    font-size: var(--font-sm);
    padding: 6px var(--spacing-xs);
  }

  .free-trial-box {
    font-size: var(--font-md);
    padding: var(--spacing-xs) var(--spacing-sm);
  }

  .example-topics {
    gap: 6px;
  }

  .topic-tag {
    font-size: var(--font-xs);
    padding: 4px 8px;
  }
}

/* Stage Canvas Styles */
.stage-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-base);
}

.stage-canvas {
  width: 100%;
  height: 300px;
  background: var(--glass-ultra-light);
  border: 1px solid rgba(255, 165, 0, 0.2);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.below-stage-canvas{
  text-align: center;
  margin-top: -63px;
  z-index: 9;
  position: relative;
}

.stage-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.stage-speaker {
  position: absolute;
  width: 100px;
  height: 120px;
  cursor: pointer;
  transition: transform var(--transition-fast);
  z-index: 2;
}

.stage-speaker:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 20px rgba(255, 165, 0, 0.6));
}

.stage-speaker-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  border: 2px solid;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  background: #05080f9e;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
}

.stage-speaker-avatar canvas {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
}

.stage-speaker-name {
  text-align: center;
  margin: 4px;
  font-size: var(--font-sm);
  font-weight: 600;
  /* text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 4px 5px;
  
  /* Name tag transformation */
  transform: perspective(100px) rotateX(5deg);
  transform-origin: center bottom;
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.95) 30%, rgba(240, 240, 240, 0.9) 70%, rgb(202 200 200 / 85%) 100%);
}


.stage-add-speaker-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-base);
  background: var(--glass-bg);
  border: 1px solid rgba(255, 165, 0, 0.4);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: var(--font-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-medium);
  margin: var(--spacing-base) 0;
}

.stage-add-speaker-btn:hover {
  border-color: var(--orange-primary);
  box-shadow: var(--glow-sm);
  transform: translateY(-2px);
  background: var(--glass-light);
}

.stage-add-speaker-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.1);
}

.stage-add-speaker-btn i {
  font-size: var(--font-lg);
}

.speaker-dropdown-container {
  max-width: 400px;
  margin: var(--spacing-base) auto;
}

/* Speaker config popup styles */
.speaker-config-popup .popup-form {
  min-width: 500px;
  max-width: 600px;
}

.speaker-config-popup label{
  width: 200px;
  color: gray;
}
.speaker-config-section {
  display: flex;
  flex-direction: column;
  /* gap: var(--spacing-sm); */
  margin-bottom: var(--spacing-base);
}

.speaker-config-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-base);
}

.speaker-preview {
  display: flex;
  align-items: center;
  gap: var(--spacing-base);
  padding: var(--spacing-base);
  background: var(--glass-ultra-light);
  border: 1px solid rgba(255, 165, 0, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-base);
}

.speaker-preview-avatar {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  border: 2px solid;
  flex-shrink: 0;
}

.speaker-preview-info {
  flex: 1;
}

.speaker-preview-name {
  font-size: var(--font-lg);
  font-weight: 700;
  margin-bottom: 4px;
}

.speaker-preview-voice {
  font-size: var(--font-sm);
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .stage-canvas {
    height: 400px;
  }

  .stage-speaker {
    width: 80px;
    height: 100px;
  }

  .stage-speaker-avatar {
    width: 60px;
    height: 60px;
  }

  .speaker-config-row {
    grid-template-columns: 1fr;
  }

  .speaker-config-popup .popup-form {
    min-width: auto;
    width: 90vw;
  }
}
