/* ═══════════════════════════════════════════════════
   FEELING.APP - STYLES
   ═══════════════════════════════════════════════════ */

:root {
  /* Navy / Cream / Gold — from sales page design system */
  --navy: #0F1B2D;
  --navy-deep: #0a1220;
  --cream: #F5F0E8;
  --cream-warm: #FAF6EF;
  --gold: #D4A853;
  --gold-soft: #e8c87a;
  --gold-light: #F5E6C8;
  --text-cream: #F5F0E8;
  --text-cream-soft: rgba(245, 240, 232, 0.82);
  --line-cream: rgba(245, 240, 232, 0.12);

  /* Legacy aliases (kept so admin dashboard + message bubbles don't break) */
  --primary: #D4A853;
  --primary-light: #e8c87a;
  --primary-dark: #B88C32;
  --secondary: #C9A84C;
  --accent: #F5E6C8;

  --bg: var(--navy);
  --bg-dark: var(--navy);
  --bg-darker: var(--navy-deep);
  --surface: #ffffff;
  --surface-light: #F9FAFB;
  --text: #1F2937;
  --text-light: rgba(245, 240, 232, 0.58);
  --text-white: var(--cream);
  --border: rgba(245, 240, 232, 0.14);

  /* Functional */
  --success: #10B981;
  --error: #EF4444;
  --warning: #F59E0B;

  /* Profile tab buttons (mobile) — ink on warm metal */
  --profile-tab-ink: #141018;
  --profile-tab-gold-top: #f0e0b8;
  --profile-tab-gold-mid: #d4a853;
  --profile-tab-gold-deep: #9a7030;
  --profile-tab-ghost-bg: rgba(12, 20, 36, 0.88);
  --profile-tab-ghost-border: rgba(232, 200, 122, 0.38);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 6px rgba(10, 18, 32, 0.18);
  --shadow-lg: 0 10px 25px rgba(10, 18, 32, 0.28);

  /* Spacing */
  --header-height: 64px;
  --chat-input-height: auto;
}

/* ═══════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════ */

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

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--navy);
  color: var(--text-cream);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════════════════════
   SCREENS
   ═══════════════════════════════════════════════════ */

.screen {
  min-height: 100vh;
  width: 100%;
  display: none; /* Hidden by default - JS will show as needed */
}

/* Auth loading overlay - rodomas kol tikrinama sesija */
#authLoadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #0F1B2D 0%, #0a1220 50%, #0F1B2D 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.3s ease;
  animation: authOverlayAutoHide 0.5s ease 8s forwards;
}

@keyframes authOverlayAutoHide {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    pointer-events: none;
  }
}

#authLoadingOverlay.hidden {
  opacity: 0;
  pointer-events: none;
  animation: none;
}

#authLoadingOverlay .loader {
  text-align: center;
}

#authLoadingOverlay .loader-icon {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(212, 168, 83, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: authSpin 1s linear infinite;
}

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

/* ═══════════════════════════════════════════════════
   LOGIN SCREEN
   ═══════════════════════════════════════════════════ */

#loginScreen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  background: linear-gradient(160deg, #0F1B2D 0%, #0a1220 50%, #0F1B2D 100%);
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

#loginScreen::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.06) 0%, rgba(15, 27, 45, 0.12) 38%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

#loginScreen::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 350px;
  background: radial-gradient(ellipse, rgba(15, 27, 45, 0.16) 0%, rgba(212, 168, 83, 0.04) 42%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.login-brand {
  text-align: center;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.6s ease;
}

@keyframes heroImagePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(212, 168, 83, 0.2); }
  50% { transform: scale(1.05); box-shadow: 0 0 50px rgba(212, 168, 83, 0.35); }
}

.hero-image-container {
  margin-bottom: 20px;
}

.login-brand__hero {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.95);
  animation: heroImagePulse 3s ease-in-out infinite;
  box-shadow: 0 0 30px rgba(212, 168, 83, 0.2);
  border: 2px solid rgba(245, 240, 232, 0.12);
}

.login-brand__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--cream);
  margin: 0 0 6px 0;
  letter-spacing: 0.02em;
  line-height: 1.12;
}

.login-brand__tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0;
}

.login-brand__microcopy {
  margin-top: 12px;
  color: var(--text-cream-soft);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 420px;
}

.login-brand__logo {
  width: 320px;
  max-width: 75vw;
  height: auto;
  border-radius: 16px;
  margin-bottom: 0;
}

.login-container {
  background:
    radial-gradient(circle at top, rgba(212, 168, 83, 0.06), transparent 34%),
    linear-gradient(160deg, rgba(15, 27, 45, 0.92) 0%, rgba(10, 18, 32, 0.96) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 28px;
  padding: 36px 40px 44px;
  width: 100%;
  max-width: 420px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(245, 240, 232, 0.1),
    inset 0 1px 0 rgba(245, 240, 232, 0.04);
  animation: fadeInUp 0.6s 0.15s ease both;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.login-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(245, 240, 232, 0.03), transparent 28%);
  pointer-events: none;
}

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

.login-header {
  text-align: center;
  margin-bottom: 48px;
}

.logo-icon {
  font-size: 56px;
  margin-bottom: 20px;
  animation: pulse 2s ease-in-out infinite;
}

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

.app-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.app-author {
  font-size: 13px;
  color: var(--text-cream-soft);
  margin-bottom: 8px;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.app-subtitle {
  font-size: 15px;
  color: var(--text-cream-soft);
  font-weight: 400;
}

/* Login Hero Image - round circle identical to Patark.lt */
.login-hero-image {
  margin: 0 auto 20px;
  text-align: center;
}

.login-hero-image img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 30px rgba(212, 168, 83, 0.2);
  animation: heroImagePulse 3s ease-in-out infinite;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-cream-soft);
  letter-spacing: 0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(245, 240, 232, 0.12);
  border-radius: 14px;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.25s ease;
  background: rgba(245, 240, 232, 0.05);
  color: var(--cream);
  box-shadow:
    inset 0 1px 0 rgba(245, 240, 232, 0.03),
    0 10px 24px rgba(10, 18, 32, 0.12);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(212, 168, 83, 0.5);
  background: rgba(245, 240, 232, 0.07);
  box-shadow:
    0 0 0 3px rgba(212, 168, 83, 0.12),
    0 14px 32px rgba(10, 18, 32, 0.18);
}

.form-group input::placeholder {
  color: rgba(245, 240, 232, 0.32);
}

.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group input:-webkit-autofill:active,
.form-group textarea:-webkit-autofill,
.form-group textarea:-webkit-autofill:hover,
.form-group textarea:-webkit-autofill:focus,
.form-group select:-webkit-autofill,
.form-group select:-webkit-autofill:hover,
.form-group select:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--cream);
  caret-color: var(--cream);
  border: 1px solid rgba(212, 168, 83, 0.3) !important;
  -webkit-box-shadow:
    0 0 0 1000px rgba(10, 18, 32, 0.96) inset,
    0 12px 28px rgba(10, 18, 32, 0.16) !important;
  box-shadow:
    0 0 0 1000px rgba(10, 18, 32, 0.96) inset,
    0 12px 28px rgba(10, 18, 32, 0.16) !important;
  background-color: transparent !important;
  transition: background-color 9999s ease-out 0s;
}

.form-actions {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-cream);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  font-weight: 500;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(212, 168, 83, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(212, 168, 83, 0.35);
}

/* Special blue button for admin password change ONLY */
.btn-admin-password {
  background: linear-gradient(135deg, #CFE6FF, #EAF3FF) !important;
  color: #1E3A8A !important;
  box-shadow: 0 6px 18px rgba(147, 197, 253, 0.25) !important;
  font-weight: 600;
}

.btn-admin-password:hover {
  background: linear-gradient(135deg, #DBEDFF, #F3F8FF) !important;
  box-shadow: 0 12px 28px rgba(147, 197, 253, 0.32) !important;
}

/* Secondary button - gray-brown for favorites */
.btn-secondary {
  background: linear-gradient(135deg, #7b7b7b, #666666);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #5f5f5f, #4d4d4d);
}

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

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

.btn-full {
  width: 100%;
}

.error-message {
  background: #FEE2E2;
  color: var(--error);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}

.success-message {
  background: #D1FAE5;
  color: var(--success);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}

.login-footer {
  margin-top: 32px;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  color: var(--text-cream-soft);
  font-size: 15px;
  letter-spacing: 0.02em;
}

/* Policy Links at Login */
.policy-links {
  margin-top: 20px;
  text-align: center;
  font-size: 11px;
  color: rgba(245, 240, 232, 0.38);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.policy-links a {
  color: rgba(245, 240, 232, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.policy-links a:hover {
  color: var(--gold-soft);
}

.policy-links span {
  color: rgba(245, 240, 232, 0.22);
}

.company-info {
  margin-top: 12px;
  text-align: center;
  font-size: 10px;
  color: rgba(245, 240, 232, 0.3);
}

/* ═══════════════════════════════════════════════════
   AUTH TABS (Login / Register)
   ═══════════════════════════════════════════════════ */

.auth-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 32px;
  background: rgba(245, 240, 232, 0.04);
  border: 1px solid var(--line-cream);
  border-radius: 16px;
  padding: 5px;
  box-shadow: inset 0 1px 0 rgba(245, 240, 232, 0.03);
}

.auth-tab {
  flex: 1;
  padding: 14px 20px;
  border: none;
  background: transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(245, 240, 232, 0.48);
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
  font-family: inherit;
}

.auth-tab:hover {
  color: var(--cream);
  background: rgba(245, 240, 232, 0.06);
}

.auth-tab.active {
  background: rgba(212, 168, 83, 0.12);
  color: var(--gold-soft);
  box-shadow:
    0 10px 24px rgba(10, 18, 32, 0.24),
    inset 0 1px 0 rgba(245, 240, 232, 0.06);
}

/* Auth Forms */
.auth-form {
  animation: fadeIn 0.3s ease;
}

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

/* Forgot Password Link */
.forgot-password-link {
  text-align: center;
  margin-top: 20px;
}

.forgot-password-link a {
  color: var(--text-cream-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.forgot-password-link a:hover {
  color: var(--gold-soft);
}

/* Back to Login Link */
.back-to-login {
  text-align: center;
  margin-top: 20px;
}

.back-to-login a {
  color: rgba(245, 240, 232, 0.55);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.back-to-login a:hover {
  color: var(--gold-soft);
}

/* Form Intro (for forgot password) */
.form-intro {
  text-align: center;
  margin-bottom: 24px;
}

.form-intro h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--cream);
  margin-bottom: 8px;
}

.form-intro p {
  color: var(--text-cream-soft);
  font-size: 14px;
  line-height: 1.5;
}

/* Form Hint */
.form-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(245, 240, 232, 0.44);
}

/* Success Message */
.success-message {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  margin-top: 16px;
  text-align: center;
}

/* Error Message Enhancement */
.error-message {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  margin-top: 16px;
  text-align: center;
}

/* Reset Password Screen */
#resetPasswordScreen {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #0F1B2D 0%, #0a1220 50%, #0F1B2D 100%);
  padding: 20px;
}

/* ═══════════════════════════════════════════════════
   EMAIL VERIFICATION SCREEN (after registration)
   ═══════════════════════════════════════════════════ */

#emailVerificationScreen {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #0F1B2D 0%, #0a1220 50%, #0F1B2D 100%);
  padding: 20px;
  min-height: 100vh;
}

.verification-container {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 24px;
  padding: 48px 40px;
  width: 100%;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.5s ease-out;
}

.verification-icon {
  font-size: 80px;
  margin-bottom: 20px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-15px);
  }
  60% {
    transform: translateY(-8px);
  }
}

.verification-title {
  font-size: 28px;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 8px;
}

.verification-subtitle {
  font-size: 16px;
  color: #6B7280;
  margin-bottom: 32px;
}

.verification-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
  text-align: left;
}

.step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(245, 240, 232, 0.04) 0%, rgba(245, 240, 232, 0.02) 100%);
  border-radius: 12px;
  border: 1px solid rgba(212, 168, 83, 0.08);
}

.step-number {
  width: 32px;
  height: 32px;
  background: var(--gold);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.step-text {
  font-size: 15px;
  color: #374151;
}

.step-text strong {
  color: var(--gold);
}

.verification-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #92400E;
}

.note-icon {
  font-size: 18px;
}

.verification-note strong {
  font-weight: 700;
}

.verification-email {
  font-size: 15px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 28px;
  padding: 12px 20px;
  background: rgba(245, 240, 232, 0.04);
  border-radius: 8px;
  display: none;
}

.verification-email:not(:empty) {
  display: block;
}

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

.verification-actions .btn {
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.verification-actions .btn-secondary {
  background: var(--gold);
  color: white;
  border: none;
}

.verification-actions .btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 168, 83, 0.15);
}

.verification-actions .btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid rgba(212, 168, 83, 0.15);
}

.verification-actions .btn-outline:hover {
  background: rgba(245, 240, 232, 0.04);
  border-color: rgba(212, 168, 83, 0.3);
}

.verification-footer {
  font-size: 14px;
  color: #9CA3AF;
}

/* Mobile styles for verification screen */
@media (max-width: 480px) {
  .verification-container {
    padding: 32px 24px;
    border-radius: 20px;
  }
  
  .verification-icon {
    font-size: 60px;
  }
  
  .verification-title {
    font-size: 22px;
  }
  
  .verification-subtitle {
    font-size: 14px;
  }
  
  .step {
    padding: 14px 16px;
  }
  
  .step-text {
    font-size: 14px;
  }
}

/* Enhanced Form Group Labels */
.login-form .form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: rgba(245, 239, 255, 0.9);
  margin-bottom: 8px;
}

/* Mobile Optimizations for Auth - identical to desktop (round hero, same pulse) */
@media (max-width: 480px) {
  #loginScreen {
    gap: 24px;
    padding: 30px 16px;
  }
  
  .login-brand__logo {
    width: 260px;
  }

  .login-brand__hero {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    animation: heroImagePulse 3s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(212, 168, 83, 0.15);
  }

  .login-brand__title {
    font-size: 1.5rem;
  }
  
  .auth-tabs {
    padding: 4px;
    gap: 4px;
  }
  
  .auth-tab {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .login-container {
    padding: 28px 24px 36px;
    border-radius: 22px;
  }
  
  .form-intro h3 {
    font-size: 18px;
  }
  
  .form-intro p {
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .login-brand__hero {
    width: 100px;
    height: 100px;
  }
  .login-brand__title {
    font-size: 1.3rem;
  }
}

/* ═══════════════════════════════════════════════════
   APP HEADER
   ═══════════════════════════════════════════════════ */

.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(15, 27, 45, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--line-cream);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-small {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.logo-small img {
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: contain;
  padding: 2px;
  border-radius: 50%;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(245, 240, 232, 0.08);
}

.header-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  line-height: 1.08;
}

.header-brand__main {
  font-size: 20px;
  font-weight: 700;
  color: var(--cream);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.header-brand__sub {
  font-size: 11px;
  font-weight: 600;
  color: rgba(245, 240, 232, 0.62);
  letter-spacing: 0.06em;
  text-transform: none;
  white-space: nowrap;
}

.header-brand-icon {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
}

.header-title {
  font-size: 20px;
  font-weight: 700;
  color: white;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.llm-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.llm-status-label {
  opacity: 0.75;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.llm-status-value {
  font-weight: 700;
}

.llm-status-chip.provider-llmzone .llm-status-value {
  color: var(--text-cream-soft);
}

.llm-status-chip.provider-claude .llm-status-value {
  color: #93c5fd;
}

.llm-status-chip.mode-fallback {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.12);
}

.llm-status-chip.mode-half-open {
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(96, 165, 250, 0.12);
}

/* ═══════════════════════════════════════════════════
   HEADER TABS - Desktop Integration (saves 60px!)
   ═══════════════════════════════════════════════════ */

/* Desktop: tabs inline in header */
@media (min-width: 769px) {
  .app-header {
    justify-content: flex-start;
    gap: 0;
  }
  
  /* Admin view - no tabs, keep space-between */
  #adminView .app-header,
  #adminScreen .app-header {
    justify-content: space-between !important;
  }
  
  .header-left {
    flex-shrink: 0;
  }
  
  .header-tabs {
    flex: 1;
    display: flex !important;
    justify-content: center;
    gap: 8px;
    padding: 0 20px !important;
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
  }
  
  .header-tabs .tab-btn {
    flex: 0 0 auto;
    padding: 10px 20px;
    min-width: auto;
    font-size: 14px;
    background: rgba(245, 240, 232, 0.06);
    border: 1px solid rgba(245, 240, 232, 0.1);
    border-radius: 25px;
    color: var(--text-cream-soft);
    transition: all 0.2s ease;
  }
  
  .header-tabs .tab-btn:hover {
    background: rgba(245, 240, 232, 0.1);
    transform: translateY(-1px);
  }
  
  .header-tabs .tab-btn.active {
    background: rgba(212, 168, 83, 0.15);
    border-color: rgba(212, 168, 83, 0.35);
    color: var(--gold-soft);
    box-shadow: 0 2px 12px rgba(212, 168, 83, 0.15);
  }
  
  .header-tabs .tab-icon {
    font-size: 16px;
  }
  
  .header-tabs .tab-label {
    font-size: 14px;
    font-weight: 500;
  }
  
  .header-right {
    flex-shrink: 0;
  }
}

/* Mobile: hide header tabs (uses hamburger sidebar instead) */
@media (max-width: 768px) {
  .header-tabs {
    display: none !important;
  }

  .llm-status-chip {
    padding: 6px 10px;
    font-size: 11px;
  }
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: rgba(245, 240, 232, 0.08);
  color: var(--cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.2s;
}

.admin-nav-btn {
  display: inline-flex;
}

.icon-btn:hover {
  background: rgba(245, 240, 232, 0.14);
  transform: scale(1.05);
}

/* Logout button - subtle minimal style */
#logoutBtn,
#adminLogoutBtn {
  background: rgba(245, 240, 232, 0.08);
  color: rgba(245, 240, 232, 0.8);
  border: 1px solid rgba(245, 240, 232, 0.12);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

#logoutBtn:hover,
#adminLogoutBtn:hover {
  background: rgba(245, 240, 232, 0.14);
  border-color: rgba(245, 240, 232, 0.25);
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Mobile - smaller and more minimal */
@media (max-width: 768px) {
  #logoutBtn,
  #adminLogoutBtn {
    width: 36px;
    height: 36px;
    font-size: 18px;
    padding: 0;
    background: rgba(245, 240, 232, 0.06);
    border: 1px solid rgba(245, 240, 232, 0.1);
  }
  
  #logoutBtn:hover,
  #adminLogoutBtn:hover {
    background: rgba(245, 240, 232, 0.12);
  }
}

/* ═══════════════════════════════════════════════════
   CHAT INTERFACE
   ═══════════════════════════════════════════════════ */

#memberScreen {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  height: 100vh;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 50%, var(--navy) 100%);
  padding-top: var(--header-height);
  overflow: hidden;
}
@supports (height: 100dvh) {
  #memberScreen { height: 100dvh; }
}

.chat-container {
  flex: 1;
  padding: 20px 20px 8px;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.chat-welcome {
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 32px 60px;
  animation: fadeInUp 0.6s ease;
}

.welcome-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
  line-height: 1.12;
}

.welcome-text {
  font-size: 20px;
  color: var(--cream);
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 16px;
  opacity: 0.95;
}

.welcome-description {
  font-size: 19px;
  color: var(--text-cream-soft);
  line-height: 1.9;
  margin-bottom: 14px;
  max-width: 590px;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 0 20px;
  max-width: 768px;
}

.chat-messages:not(:empty) {
  padding-top: 24px;
  padding-bottom: 24px;
  margin: 0 auto;
}

.message {
  display: flex;
  gap: 16px;
  animation: fadeInUp 0.4s ease;
  position: relative;
}

.message.user {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.message.user .message-avatar {
  background: linear-gradient(135deg, #D4A853, #B8943A);
}

.message.assistant .message-avatar {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  padding: 0;
  overflow: hidden;
}

.avatar-image {
  width: 120%;
  height: 120%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  transform: scale(1.2);
}

.message-content {
  max-width: 680px;
  background: var(--surface);
  padding: 20px 24px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  line-height: 1.6;
  font-size: 16px;
}

.message.user .message-content {
  background: linear-gradient(135deg, #1a3050 0%, #14243d 100%);
  color: var(--cream);
  border: 1px solid rgba(212, 168, 83, 0.15);
  border-bottom-right-radius: 6px;
}

.message.assistant .message-content {
  background: rgba(255, 255, 255, 0.95);
  color: #1F2937;
  border-bottom-left-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.message-content h2,
.message-content h3 {
  margin-top: 16px;
  margin-bottom: 8px;
  color: #1F2937;
}

.message-content h2:first-child,
.message-content h3:first-child {
  margin-top: 0;
}

.message-content p {
  margin-bottom: 12px;
}

.message-content p:last-child {
  margin-bottom: 0;
}

.message-content ul,
.message-content ol {
  margin-left: 20px;
  margin-bottom: 12px;
}

.message-content strong {
  color: #1F2937;
  font-weight: 600;
}

.chat-loading {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(212, 168, 83, 0.06);
  border: 1px solid rgba(212, 168, 83, 0.15);
  border-radius: 16px;
  margin: 8px 0;
  max-width: fit-content;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(212, 168, 83, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.chat-loading p {
  color: var(--gold-soft);
  font-size: 15px;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.3px;
}

/* ═══════════════════════════════════════════════════
   CHAT INPUT
   ═══════════════════════════════════════════════════ */

.chat-input-container {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: linear-gradient(180deg, transparent, var(--navy) 20%);
  padding: 24px 20px 32px;
}

/* ═══════════════════════════════════════════════════
   RESPONSE LENGTH SELECTOR - Professional Design
   ═══════════════════════════════════════════════════ */

.response-length-selector {
  max-width: 720px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 20px;
}

.length-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.length-options {
  display: flex;
  gap: 8px;
  background: rgba(15, 27, 45, 0.8);
  border-radius: 16px;
  padding: 6px;
  border: 1px solid var(--line-cream);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.length-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  min-width: 148px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.length-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.length-btn:hover {
  background: rgba(245, 240, 232, 0.08);
  color: var(--cream);
  transform: translateY(-1px);
}

/* 1x Active */
.length-btn.active {
  background: rgba(212, 168, 83, 0.2);
  color: var(--gold-soft);
  box-shadow: 
    0 4px 15px rgba(212, 168, 83, 0.15),
    inset 0 1px 0 rgba(245, 240, 232, 0.06);
  transform: translateY(-1px);
}

.length-btn .length-icon {
  font-size: 16px;
  line-height: 1;
}

.length-btn .length-text {
  font-weight: 700;
  font-size: 15px;
}

.length-btn .length-cost {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.8;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  margin-left: 4px;
}

.length-btn.active .length-cost {
  background: rgba(255, 255, 255, 0.25);
  opacity: 1;
}

/* 2x Active - Deep Navy/Gold */
.length-btn[data-length="2"].active {
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.25) 0%, rgba(184, 140, 50, 0.35) 100%);
  color: var(--gold);
  box-shadow: 
    0 4px 15px rgba(212, 168, 83, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.length-btn[data-length="2"]:hover:not(.active) {
  background: rgba(212, 168, 83, 0.1);
}

/* 3x Active - Gold Premium */
.length-btn[data-length="3"].active {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  box-shadow: 
    0 4px 15px rgba(245, 158, 11, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: var(--navy);
}

.length-btn[data-length="3"].active .length-cost {
  background: rgba(0, 0, 0, 0.2);
  color: var(--navy);
}

.length-btn[data-length="3"]:hover:not(.active) {
  background: rgba(245, 158, 11, 0.2);
}

/* Responsive - Tablet */
@media (max-width: 768px) {
  .response-length-selector {
    gap: 12px;
    padding: 0 16px;
  }
  
  .length-label {
    font-size: 12px;
  }
  
  .length-options {
    padding: 5px;
    gap: 6px;
  }
  
  .length-btn {
    padding: 8px 14px;
    font-size: 13px;
    min-width: 136px;
  }
  
  .length-btn .length-icon {
    font-size: 15px;
  }
  
  .length-btn .length-text {
    font-size: 14px;
  }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
  .response-length-selector {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
  }
  
  .length-label {
    display: none; /* Hidden on mobile */
  }
  
  .length-options {
    width: 100%;
    justify-content: center;
    padding: 4px;
    border-radius: 14px;
  }
  
  .length-btn {
    padding: 6px 10px;
    font-size: 11px;
    flex: 1;
    min-width: 0;
    justify-content: center;
    border-radius: 10px;
    gap: 4px;
  }
  
  .length-btn .length-cost {
    font-size: 9px;
    padding: 2px 5px;
  }
  
  .length-btn .length-icon {
    font-size: 12px;
  }
  
  .length-btn .length-text {
    font-size: 11px;
  }
}

.chat-input-wrapper {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  align-items: flex-end;
  background: rgba(245, 240, 232, 0.05);
  border: 1px solid rgba(245, 240, 232, 0.1);
  border-radius: 24px;
  padding: 4px 4px 4px 20px;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.chat-input-wrapper:focus-within {
  background: rgba(245, 240, 232, 0.07);
  border-color: rgba(212, 168, 83, 0.4);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.08);
}

#chatInput {
  flex: 1;
  min-height: 44px;
  max-height: 200px;
  padding: 12px 0;
  border: none;
  font-size: 16px;
  font-family: inherit;
  resize: none;
  background: transparent;
  color: var(--cream);
  line-height: 1.5;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#chatInput::-webkit-scrollbar {
  display: none;
}

#chatInput::placeholder {
  color: rgba(245, 240, 232, 0.35);
}

#chatInput:focus {
  outline: none;
}

.send-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border: none;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.send-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

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

.chat-actions {
  max-width: 900px;
  margin: 12px auto 0;
  display: flex;
  justify-content: center;
}

.text-btn {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 14px;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s;
}

.text-btn:hover {
  background: rgba(212, 168, 83, 0.08);
  color: var(--gold-soft);
}

/* ═══════════════════════════════════════════════════
   ADMIN INTERFACE
   ═══════════════════════════════════════════════════ */

.admin-container {
  padding: 32px;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding: 20px 24px;
  background: linear-gradient(145deg, rgba(10, 18, 32, 0.98), rgba(18, 31, 49, 0.98));
  border: 1px solid rgba(212, 168, 83, 0.12);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.admin-header h2 {
  font-size: 28px;
  color: #d4a853;
  font-weight: 800;
  letter-spacing: -0.01em;
}

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

.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(22, 36, 58, 0.96), rgba(14, 24, 42, 0.94));
  border: 1px solid rgba(212, 168, 83, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(245, 240, 232, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--cream);
}

.stat-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  color: rgba(245, 240, 232, 0.45);
  font-weight: 600;
  font-size: 14px;
}

.stat-value {
  color: #10b981;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.admin-search {
  width: 100%;
}

.admin-search input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(212, 168, 83, 0.18);
  background: linear-gradient(135deg, rgba(14, 24, 38, 0.96), rgba(24, 39, 60, 0.96));
  color: #f5f0e8;
  font-size: 15px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.admin-search input::placeholder {
  color: rgba(245, 240, 232, 0.5);
}

/* ═══════════════════════════════════════════════════
   ADMIN TAB NAVIGATION (Dashboard V2.0)
   ═══════════════════════════════════════════════════ */

.admin-nav-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  margin-top: var(--header-height);
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.15), #0f1b2d);
  border-bottom: 2px solid rgba(212, 168, 83, 0.4);
  width: 100%;
  flex-shrink: 0;
  z-index: 90;
  position: relative;
}

/* Fix admin screen layout */
#adminScreen {
  display: flex;
  flex-direction: column;
}

#adminScreen .admin-container {
  padding-top: 24px;
}

.admin-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(212, 168, 83, 0.2);
  border: 1px solid rgba(212, 168, 83, 0.3);
  border-radius: 12px;
  color: #f5e6c8;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  height: auto;
}

.admin-tab-btn:hover {
  background: rgba(212, 168, 83, 0.35);
  border-color: rgba(212, 168, 83, 0.5);
  color: #f5f0e8;
  transform: translateY(-2px);
}

.admin-tab-btn.active {
  background: linear-gradient(135deg, #d4a853, #b8943a);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 16px rgba(212, 168, 83, 0.4);
}

.admin-tab-btn .tab-icon {
  font-size: 18px;
}

.admin-tab-btn .tab-label {
  font-weight: 600;
}

/* Dashboard container overrides */
.admin-dashboard {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
  background: var(--bg);
  min-height: calc(100vh - var(--header-height) - 80px);
}

.members-table-container {
  background: linear-gradient(145deg, rgba(10, 18, 32, 0.98), rgba(18, 31, 49, 0.98));
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  border: 1px solid rgba(212, 168, 83, 0.12);
}

.members-table {
  width: 100%;
  border-collapse: collapse;
}

.members-table thead {
  background: linear-gradient(135deg, #d4a853, #b8943a);
  color: white;
}

.members-table th {
  padding: 16px;
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.members-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(245, 240, 232, 0.08);
  color: rgba(245, 240, 232, 0.92);
  font-size: 15px;
}

.members-table tbody tr {
  background: rgba(245, 240, 232, 0.035);
}

.members-table tbody tr:nth-child(even) {
  background: rgba(245, 240, 232, 0.055);
}

.members-table tr:last-child td {
  border-bottom: none;
}

.members-table tr:hover {
  background: rgba(212, 168, 83, 0.14);
  box-shadow: inset 0 0 0 1px rgba(212, 168, 83, 0.22);
  color: rgba(245, 240, 232, 0.96);
  transform: scale(1.01);
  transition: all 0.2s ease;
}

.members-table tr:hover td {
  color: rgba(245, 240, 232, 0.94);
  font-weight: 500;
}

.members-table tr:hover td:nth-child(1) {
  color: rgba(245, 240, 232, 0.62);
}

.members-table tr:hover td:nth-child(2) {
  color: #f5e6c8;
}

.members-table tr:hover td:nth-child(3) {
  color: #f5f0e8;
}

.members-table tr:hover td:nth-child(6) {
  color: rgba(245, 240, 232, 0.82);
}

.members-table td:nth-child(1) {
  color: rgba(245, 240, 232, 0.6);
  font-weight: 600;
}

.members-table td:nth-child(2) {
  color: #eed8a6;
  font-weight: 500;
}

.members-table td:nth-child(3) {
  color: #f5f0e8;
  font-weight: 600;
}

.members-table td:nth-child(6) {
  color: rgba(245, 240, 232, 0.78);
}

/* Admin search input */
.members-table-container input[type="search"],
.members-table-container input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  margin: 0 0 16px 0;
  border-radius: 12px;
  border: 1px solid rgba(245, 240, 232, 0.06);
  background: #0f1b2d;
  color: var(--cream);
  font-size: 15px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.members-table-container input::placeholder {
  color: rgba(245, 240, 232, 0.45);
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge.active {
  background: #D1FAE5;
  color: #065F46;
}

.status-badge.cancelled,
.status-badge.expired {
  background: #FEE2E2;
  color: #991B1B;
}

.role-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.role-badge.admin {
  background: #DBEAFE;
  color: #1E40AF;
}

.role-badge.member {
  background: #f5e6c8;
  color: #b8943a;
}

.action-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-right: 4px;
}

.action-btn.delete {
  background: #FEE2E2;
  color: var(--error);
}

.action-btn.delete:hover {
  background: var(--error);
  color: white;
}

/* ═══════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════ */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

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

/* ═══════════════════════════════════════════════════
   MODAL OVERLAY - CENTERED
   ═══════════════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--surface);
  border-radius: 16px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: scaleIn 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 16px;
  border-bottom: 2px solid var(--border);
  flex-shrink: 0;
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-header h2,
.modal-header h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  margin: 0;
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  font-size: 24px;
  color: var(--text-light);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--bg);
  color: var(--text);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  padding-top: 24px;
  margin-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ═══════════════════════════════════════════════════
   TOGGLE SWITCH - DAILY MESSAGES
   ═══════════════════════════════════════════════════ */

.toggle-container {
  background: rgba(212, 168, 83, 0.06);
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 20px;
  margin-top: 24px;
}

.toggle-label {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  user-select: none;
  font-size: 18px;
  font-weight: 600;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 32px;
  flex-shrink: 0;
  margin-top: 4px;
}

.toggle-switch input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  transition: all 0.3s ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: white;
  top: 3px;
  left: 3px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider::before {
  transform: translateX(28px);
}

.toggle-description {
  color: var(--text-light);
  font-size: 14px;
  margin-top: 8px;
  font-weight: normal;
}

.profile-section {
  margin-bottom: 32px;
}

.profile-section:last-child {
  margin-bottom: 0;
}

.profile-section h4 {
  font-size: 16px;
  color: var(--gold);
  margin-bottom: 16px;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .app-header {
    padding: 0 16px;
  }

  .header-title {
    font-size: 16px;
  }

  .message-content {
    max-width: 85%;
  }

  .chat-input-container {
    padding: 12px 16px;
  }

  .admin-container {
    padding: calc(var(--header-height) + 20px) 16px 20px;
  }

  .admin-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 18px;
  }

  .admin-header h2 {
    font-size: 22px;
    text-align: center;
  }

  .admin-header .btn,
  .admin-header button {
    width: 100%;
  }

  .members-table-container {
    overflow-x: auto;
  }

  .members-table {
    min-width: 800px;
  }

  .login-container {
    padding: 32px 24px;
  }

  .modal-overlay {
    padding: 10px;
  }
  
  .modal-content {
    max-width: 100%;
    max-height: 85vh;
    margin: 0;
  }
  
  .modal-body {
    padding: 16px;
    padding-bottom: 100px; /* Extra space for buttons */
    max-height: calc(85vh - 60px);
    overflow-y: auto;
  }
  
  /* Profile edit modal specific - ensure buttons visible */
  .modal-wide .modal-body {
    max-height: calc(85vh - 80px);
    padding-bottom: 20px;
  }
  
  /* Fixed buttons at bottom of modal on mobile */
  .modal-wide .form-actions {
    position: sticky;
    bottom: 0;
    background: linear-gradient(to top, var(--surface) 80%, transparent);
    padding: 20px 16px 16px;
    margin: 20px -16px 0 -16px;
    z-index: 10;
  }
  
  .modal-wide .form-actions .btn {
    width: 100%;
  }
  
  .form-row {
    flex-direction: column;
  }
  
  .toggle-label {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .message-content {
    max-width: 100%;
    padding: 16px 18px;
    font-size: 15px;
  }
  
  .chat-messages {
    padding: 0 16px;
    gap: 24px;
  }

  .chat-messages:not(:empty) {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .chat-input-wrapper {
    gap: 8px;
    padding: 4px 4px 4px 16px;
  }

  #chatInput {
    font-size: 16px;
    padding: 10px 0;
  }

  .send-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
}

/* ═══════════════════════════════════════════════════
   PROFILE MODAL
   ═══════════════════════════════════════════════════ */

.profile-info {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.profile-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.profile-label {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.profile-value {
  font-weight: 600;
  color: var(--text-white);
  font-size: 15px;
}

.profile-note {
  margin-top: 16px;
  padding: 12px;
  background: rgba(212, 168, 83, 0.05);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  font-size: 13px;
  color: rgba(245, 240, 232, 0.8);
  line-height: 1.5;
}

.profile-section {
  margin-top: 24px;
}

.profile-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 16px;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.error-message {
  padding: 12px;
  background: rgba(239, 68, 68, 0.1);
  border-left: 3px solid #EF4444;
  border-radius: 6px;
  color: #FCA5A5;
  font-size: 14px;
}

.success-message {
  padding: 12px;
  background: rgba(16, 185, 129, 0.1);
  border-left: 3px solid #10B981;
  border-radius: 6px;
  color: #6EE7B7;
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════
   TAB NAVIGATION
   ═══════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════
   NEW TAB NAVIGATION - MODERN DESIGN
   ═══════════════════════════════════════════════════ */

.tab-nav {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  background: linear-gradient(180deg, rgba(15, 27, 45, 0.95) 0%, rgba(10, 18, 32, 0.9) 100%);
  border-bottom: 1px solid rgba(245, 240, 232, 0.08);
  backdrop-filter: blur(20px);
}

.trial-single-tab {
  justify-content: center;
}
.trial-single-tab .tab-btn[data-tab="chat"] {
  pointer-events: none;
  cursor: default;
}

.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px 14px 24px;
  background: rgba(245, 240, 232, 0.03);
  border: 1px solid rgba(245, 240, 232, 0.08);
  border-radius: 12px;
  color: var(--text-light);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tab-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(212, 168, 83, 0.15);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: inherit;
}

.tab-btn:hover {
  background: rgba(245, 240, 232, 0.06);
  border-color: rgba(212, 168, 83, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.tab-btn.active {
  background: rgba(212, 168, 83, 0.12);
  border-color: rgba(212, 168, 83, 0.35);
  color: var(--gold-soft);
  box-shadow: 0 4px 16px rgba(212, 168, 83, 0.15);
}

.tab-btn.active::before {
  opacity: 1;
}

.tab-icon {
  font-size: 20px;
  position: relative;
  z-index: 1;
}

.tab-label {
  font-size: 15px;
  font-weight: 600;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.tab-cost {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.6;
  margin-left: 2px;
}

.tab-content {
  display: none;
  padding: 0;
  min-height: calc(100vh - 200px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

.tab-content.active {
  display: block;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
#chatTab.tab-content.active {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#chatTab .chat-container {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding-bottom: 32px;
}
#chatTab .chat-input-container {
  flex-shrink: 0;
  position: relative;
  bottom: auto;
  background: var(--navy, #0a1220);
}

/* ═══════════════════════════════════════════════════
   DAILY MESSAGE DISPLAY
   ═══════════════════════════════════════════════════ */
/* Dedicated mobile-friendly scroll for daily message tab */
#dailyMessageTab {
  min-height: calc(100vh - var(--header-height) - 80px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#dailyMessageContainer {
  min-height: auto;
  padding-bottom: 40px;
}


.daily-message-wrapper {
  padding: 24px;
  max-width: 900px;
  margin: 0 auto;
  opacity: 1 !important;
}

.daily-message-card {
  background: linear-gradient(135deg, var(--surface), var(--bg-dark));
  border-radius: 20px;
  padding: 40px;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.6s ease;
}

.daily-message-header {
  text-align: center;
  margin-bottom: 32px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
  display: block !important;
  visibility: visible !important;
}

.daily-message-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  color: var(--cream);
  margin-bottom: 12px;
  font-weight: 400;
  display: block !important;
  visibility: visible !important;
}

.daily-message-header .date {
  font-size: 16px;
  color: var(--text-light);
  text-transform: capitalize;
  display: block !important;
  visibility: visible !important;
}

.daily-message-body {
  font-size: 19px;
  line-height: 1.9;
  color: var(--text-white);
  margin-bottom: 32px;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.daily-message-body p {
  margin-bottom: 20px;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.daily-message-footer {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  font-size: 13px;
}

.message-prompt {
  text-align: center;
  padding: 60px 32px;
  max-width: 600px;
  margin: 0 auto;
}

.message-prompt .miracle-icon {
  font-size: 64px;
  margin-bottom: 24px;
  animation: float 3s ease-in-out infinite;
}

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

.message-prompt h3 {
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.message-prompt p {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.6;
}

.message-prompt .btn {
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 4px 12px rgba(212, 168, 83, 0.3);
}

.message-prompt .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 168, 83, 0.4);
}

/* ═══════════════════════════════════════════════════
   PROFILE VIEW
   ═══════════════════════════════════════════════════ */

.profile-view-container {
  padding: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.profile-view-container h2 {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 46%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 32px;
  text-align: center;
  letter-spacing: -0.03em;
  text-shadow: 0 8px 28px rgba(212, 168, 83, 0.1);
}

.profile-info-display {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  box-shadow: none;
  backdrop-filter: none;
}

/* Legacy profile-info p styles removed — using .profile-row now */

.profile-info-card {
  background:
    radial-gradient(circle at top left, rgba(212, 168, 83, 0.05), transparent 40%),
    linear-gradient(155deg, rgba(10, 18, 32, 0.96) 0%, rgba(15, 27, 45, 0.92) 100%);
  border: 1px solid rgba(245, 240, 232, 0.1);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 8px;
}

.profile-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-row:last-of-type {
  border-bottom: none;
}

.profile-label {
  color: var(--gold-soft, #D4A853);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}

.profile-value {
  color: #ffffff;
  font-weight: 500;
  font-size: 15px;
}

.profile-help-line {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

.profile-help-line a {
  color: var(--gold-soft, #D4A853);
  text-decoration: none;
}

.profile-help-line a:hover {
  text-decoration: underline;
}

.profile-answers-explored {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  justify-content: center;
}

.profile-answers-count {
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-soft, #D4A853);
  letter-spacing: -0.02em;
}

.profile-answers-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════
   PROFILE TAB ENTRY ANIMATION
   ═══════════════════════════════════════════════════ */

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

.profile-view-container > * {
  opacity: 0;
  animation: profileFadeUp 0.4s ease-out forwards;
}

.profile-view-container > *:nth-child(1) { animation-delay: 0s; }
.profile-view-container > *:nth-child(2) { animation-delay: 0.06s; }
.profile-view-container > *:nth-child(3) { animation-delay: 0.12s; }
.profile-view-container > *:nth-child(4) { animation-delay: 0.18s; }
.profile-view-container > *:nth-child(5) { animation-delay: 0.24s; }
.profile-view-container > *:nth-child(6) { animation-delay: 0.30s; }
.profile-view-container > *:nth-child(7) { animation-delay: 0.36s; }
.profile-view-container > *:nth-child(8) { animation-delay: 0.42s; }

/* ═══════════════════════════════════════════════════
   PROFILE ACTIONS GRID
   ═══════════════════════════════════════════════════ */

/* Gift Banner: "You have a gift to share!" — warm, urgent, personal notification */
.gift-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background:
    radial-gradient(circle at 0% 50%, rgba(251, 191, 36, 0.12), transparent 36%),
    linear-gradient(135deg, rgba(44, 33, 73, 0.96), rgba(28, 21, 46, 0.96));
  border: 1px solid rgba(214, 170, 94, 0.34);
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  animation: gift-banner-pulse 3s ease-in-out infinite;
}
@keyframes gift-banner-pulse {
  0%, 100% { border-color: rgba(214, 170, 94, 0.28); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28); }
  50% { border-color: rgba(214, 170, 94, 0.48); box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34); }
}
.gift-banner-icon {
  font-size: 36px;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 18px rgba(248, 186, 88, 0.2));
}
.gift-banner-text { flex: 1; }
.gift-banner-text strong {
  display: block;
  color: #f7ecff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.gift-banner-text span {
  color: rgba(236, 223, 255, 0.78);
  font-size: 13px;
  line-height: 1.4;
}
.gift-banner-btn {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(212, 168, 83, 0.2);
}
.gift-banner-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(212, 168, 83, 0.3);
}

/* ═══════════════════════════════════════════════════
   DISCOVERY CARDS (Challenge / Gift purchase)
   ═══════════════════════════════════════════════════ */

.discovery-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.discovery-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 18px;
  border: 1px solid rgba(245, 240, 232, 0.08);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
}

.discovery-card:hover {
  border-color: rgba(245, 240, 232, 0.16);
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.discovery-card--challenge {
  background:
    radial-gradient(circle at top left, rgba(212, 168, 83, 0.06), transparent 34%),
    linear-gradient(135deg, rgba(15, 27, 45, 0.94), rgba(10, 18, 32, 0.92));
  border-color: rgba(212, 168, 83, 0.18);
}

.discovery-card--challenge:hover {
  border-color: rgba(212, 168, 83, 0.3);
  background:
    radial-gradient(circle at top left, rgba(212, 168, 83, 0.1), transparent 36%),
    linear-gradient(135deg, rgba(15, 27, 45, 0.98), rgba(10, 18, 32, 0.95));
}

.discovery-card--gift {
  background:
    radial-gradient(circle at top left, rgba(245, 240, 232, 0.06), transparent 34%),
    linear-gradient(135deg, rgba(15, 27, 45, 0.96), rgba(10, 18, 32, 0.94));
  border: 1px solid rgba(245, 240, 232, 0.1);
  border-left: 4px solid rgba(212, 168, 83, 0.3);
}

.discovery-card--gift:hover {
  border-color: rgba(212, 168, 83, 0.2);
  border-left-color: rgba(212, 168, 83, 0.5);
  background:
    radial-gradient(circle at top left, rgba(245, 240, 232, 0.08), transparent 36%),
    linear-gradient(135deg, rgba(15, 27, 45, 0.98), rgba(10, 18, 32, 0.96));
}

.discovery-card--gift .discovery-card-body strong {
  color: var(--cream);
}

.discovery-card--gift .discovery-card-body span {
  color: rgba(245, 240, 232, 0.6);
}

.discovery-card-btn--gift {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 8px 18px rgba(212, 168, 83, 0.2);
}

.discovery-card-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}

.discovery-card-body {
  flex: 1;
  min-width: 0;
}

.discovery-card-body strong {
  display: block;
  color: #f7f2ff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.discovery-card-body span {
  color: rgba(231, 223, 247, 0.64);
  font-size: 12.5px;
  line-height: 1.45;
}

.discovery-card-btn {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.discovery-card-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.discovery-card-btn--challenge {
  background: var(--gold);
  color: var(--navy);
}

.discovery-card-btn--gift {
  background: var(--gold);
  color: var(--navy);
}

@media (max-width: 768px) {
  .discovery-card {
    gap: 10px;
    padding: 12px 14px;
  }
  .discovery-card-icon {
    font-size: 24px;
  }
  .discovery-card-body strong {
    font-size: 13px;
  }
  .discovery-card-body span {
    font-size: 12px;
  }
  .discovery-card-btn {
    padding: 7px 14px;
    font-size: 12px;
  }
}

/* ═══════════════════════════════════════════════════
   CHALLENGE PROGRESS CARD
   ═══════════════════════════════════════════════════ */

.challenge-progress-card {
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.08), transparent 30%),
    linear-gradient(145deg, rgba(71, 53, 57, 0.96), rgba(49, 39, 67, 0.96));
  border: 1px solid rgba(213, 168, 94, 0.24);
  border-radius: 20px;
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow:
    0 16px 38px rgba(12, 8, 20, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.challenge-progress-animate {
  animation: challengeSlideIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

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

.challenge-progress-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.challenge-progress-icon {
  font-size: 26px;
  line-height: 1;
}

.challenge-progress-header strong {
  display: block;
  color: #f5eefc;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
}

.challenge-progress-header span {
  color: rgba(240, 230, 255, 0.72);
  font-size: 12.5px;
}

.challenge-progress-quote {
  color: rgba(236, 226, 247, 0.78);
  font-size: 12.5px;
  line-height: 1.65;
  margin-bottom: 14px;
  padding-left: 38px;
  font-style: italic;
}

.challenge-quote-author {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: rgba(251, 191, 36, 0.7);
  font-style: normal;
}

.challenge-progress-bar-bg {
  height: 7px;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.challenge-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #e2ae50, #f5ca68);
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 0 18px rgba(245, 202, 104, 0.3);
}

.challenge-progress-percent {
  font-size: 11.5px;
  color: rgba(242, 231, 255, 0.58);
  text-align: right;
}

/* ═══════════════════════════════════════════════════
   REFERRAL CARD
   ═══════════════════════════════════════════════════ */

.referral-card {
  background:
    radial-gradient(circle at top right, rgba(245, 240, 232, 0.08), transparent 30%),
    linear-gradient(145deg, rgba(15, 27, 45, 0.96) 0%, rgba(15, 27, 45, 0.92) 100%);
  border: 1px solid rgba(245, 240, 232, 0.12);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.referral-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.referral-icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
}

.referral-header strong {
  display: block;
  color: var(--cream);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.referral-header span {
  color: var(--text-cream-soft);
  font-size: 14px;
  line-height: 1.5;
}

.referral-link-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.referral-link-input {
  flex: 1;
  background: rgba(10, 18, 32, 0.6);
  border: 2px solid rgba(245, 240, 232, 0.1);
  border-radius: 12px;
  color: var(--cream);
  padding: 12px 16px;
  font-size: 13px;
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  outline: none;
  min-width: 0;
}

.referral-link-input::placeholder {
  color: rgba(245, 240, 232, 0.3);
}

.referral-link-input:focus {
  border-color: rgba(212, 168, 83, 0.45);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
}

.referral-copy-btn {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(212, 168, 83, 0.15);
}

.referral-copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(212, 168, 83, 0.25);
}

.referral-copy-btn.copied {
  background: linear-gradient(135deg, #10B981, #059669);
}

.referral-share-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.referral-share-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid rgba(245, 240, 232, 0.12);
  background: rgba(212, 168, 83, 0.08);
  color: var(--text-cream-soft);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.referral-share-btn:hover {
  background: rgba(212, 168, 83, 0.12);
  border-color: rgba(212, 168, 83, 0.25);
  transform: translateY(-1px);
}

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

.referral-share-wa {
  border-color: rgba(37, 211, 102, 0.4);
  background: rgba(37, 211, 102, 0.08);
  color: #34D399;
}

.referral-share-wa:hover {
  background: rgba(37, 211, 102, 0.18);
  border-color: rgba(37, 211, 102, 0.6);
}

.referral-share-email {
  border-color: rgba(212, 168, 83, 0.2);
  background: rgba(212, 168, 83, 0.05);
  color: var(--text-cream-soft);
}

.referral-share-email:hover {
  background: rgba(212, 168, 83, 0.12);
  border-color: rgba(212, 168, 83, 0.4);
}

.referral-share-native {
  border-color: rgba(245, 240, 232, 0.12);
  background: rgba(212, 168, 83, 0.08);
  color: var(--text-cream-soft);
}

.referral-share-native:hover {
  background: rgba(212, 168, 83, 0.12);
  border-color: rgba(212, 168, 83, 0.25);
}

.referral-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(245, 240, 232, 0.6);
}

.referral-stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.referral-stat-num {
  color: #10B981;
  font-weight: 600;
}

.referral-stat-pending {
  color: rgba(245, 240, 232, 0.55);
  font-weight: 500;
}

@media (max-width: 768px) {
  .referral-card {
    padding: 16px;
  }
  .referral-link-input {
    font-size: 12px;
    padding: 9px 10px;
  }
  .referral-copy-btn {
    padding: 9px 14px;
    font-size: 12px;
  }
  .referral-share-btn span {
    display: none;
  }
  .referral-share-btn {
    padding: 10px 14px;
    justify-content: center;
  }
}

.profile-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
  margin-bottom: 24px;
}

.profile-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 16px;
  background: linear-gradient(155deg, rgba(15, 27, 45, 0.96), rgba(10, 18, 32, 0.94));
  border: 1px solid rgba(245, 240, 232, 0.1);
  border-radius: 18px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.profile-action-btn:hover {
  background: linear-gradient(155deg, rgba(15, 27, 45, 0.98), rgba(18, 32, 52, 0.96));
  border-color: rgba(212, 168, 83, 0.2);
  transform: translateY(-2px);
}

.profile-action-btn .action-icon {
  font-size: 32px;
}

.profile-action-btn .action-text {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

/* Cancel Membership */
.cancel-membership-section {
  text-align: center;
  margin-top: 28px;
  margin-bottom: 8px;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(245, 240, 232, 0.03);
  border: 1px solid rgba(245, 240, 232, 0.06);
}

.cancel-membership-link {
  color: rgba(245, 240, 232, 0.55);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.2px;
  transition: color 0.2s ease;
}

.cancel-membership-link:hover {
  color: rgba(245, 240, 232, 0.8);
  text-decoration: underline;
}

.cancel-membership-hint {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: rgba(245, 240, 232, 0.3);
  line-height: 1.5;
}

/* How to Use + My Anchor Word sit side by side in the 2-col grid */

@media (max-width: 480px) {
  .profile-actions-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .profile-action-btn {
    flex-direction: row;
    padding: 18px 20px;
    gap: 16px;
  }
  
  .profile-action-btn .action-icon {
    font-size: 24px;
  }
  
  .profile-action-btn .action-text {
    font-size: 16px;
    text-align: left;
  }

  /* viewGuideBtn uses normal grid flow on mobile */
}

/* ═══════════════════════════════════════════════════
   COMPACT MODAL (for password/email change)
   ═══════════════════════════════════════════════════ */

.modal-compact {
  max-width: 420px;
}

.modal-compact .modal-header {
  padding: 20px 24px;
  background: var(--gold);
}

.modal-compact .modal-header h3 {
  color: white;
  font-size: 18px;
}

.modal-compact .modal-close {
  color: white;
  opacity: 0.8;
}

.modal-compact .modal-close:hover {
  opacity: 1;
}

.modal-compact .modal-body {
  padding: 24px;
}

.modal-compact .form-group {
  margin-bottom: 20px;
}

.modal-compact .form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.modal-compact .form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  font-size: 16px;
  transition: border-color 0.2s;
}

.modal-compact .form-group input:focus {
  outline: none;
  border-color: var(--gold);
}

.modal-compact .btn-full {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  margin-top: 8px;
}

.current-email-info {
  background: rgba(10, 18, 32, 0.5);
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(245, 240, 232, 0.1);
}

.current-email-info .label {
  font-size: 13px;
  color: rgba(243, 237, 255, 0.68);
}

.current-email-info .value {
  font-weight: 600;
  color: #fbf8ff;
}

/* ═══════════════════════════════════════════════════
   PROFILE EDIT FORM
   ═══════════════════════════════════════════════════ */

.modal-wide {
  max-width: 700px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.form-group-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin: 24px 0;
}

.form-group-checkbox input[type="checkbox"] {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.form-group-checkbox label {
  margin: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
}

/* ═══════════════════════════════════════════════════
   TABLET (768px - 1024px)
   ═══════════════════════════════════════════════════ */

@media (min-width: 769px) and (max-width: 1024px) {
  .chat-container {
    max-width: 900px;
    margin: 0 auto;
  }
  
  .daily-message-card {
    max-width: 700px;
    margin: 0 auto;
  }
  
  .message-prompt {
    max-width: 600px;
  }
}

/* ═══════════════════════════════════════════════════
   MOBILE & SMALL TABLET (up to 768px)
   ═══════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .tab-label {
    font-size: 12px;
  }
  
  .tab-icon {
    font-size: 22px;
  }
  
  .tab-nav {
    gap: 4px;
    padding: 8px;
  }
  
  .tab-btn {
    padding: 10px 12px 10px 16px;
    min-width: 70px;
  }
  
  .daily-message-card {
    padding: 20px;
  }
  
  .daily-message-header h2 {
    font-size: 26px;
  }
  
  .daily-message-body {
    font-size: 16px;
    line-height: 1.7;
  }
  
  .profile-view-container {
    padding: 20px;
  }
  
  .profile-view-container h2 {
    font-size: 26px !important;
  }
  
  /* Profile action buttons — mobile: premium gold metal + one ghost secondary */
  .profile-view-container .profile-action-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    width: 100%;
    margin: 0;
    padding: 16px 18px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: normal;
    text-align: left;
    color: var(--profile-tab-ink);
    border-radius: 16px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: linear-gradient(
      155deg,
      var(--profile-tab-gold-top) 0%,
      var(--profile-tab-gold-mid) 42%,
      var(--profile-tab-gold-deep) 100%
    );
    box-shadow:
      0 6px 22px rgba(154, 112, 48, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.42);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .profile-view-container .profile-action-btn .action-text {
    flex: 1;
    text-align: left;
    color: inherit;
  }

  .profile-view-container .profile-action-btn .action-icon {
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.12));
  }

  /* How to Use — secondary “glass” tile, harmonized with gold family */
  .profile-view-container #viewGuideBtn {
    color: var(--cream-warm);
    border: 1px solid var(--profile-tab-ghost-border);
    background: linear-gradient(
      165deg,
      rgba(22, 34, 58, 0.95) 0%,
      var(--profile-tab-ghost-bg) 55%,
      rgba(8, 14, 26, 0.98) 100%
    );
    box-shadow:
      0 10px 28px rgba(0, 0, 0, 0.38),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .profile-view-container #viewGuideBtn .action-text {
    color: rgba(250, 246, 239, 0.96);
  }

  .profile-view-container .profile-action-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow:
      0 12px 32px rgba(154, 112, 48, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.45);
  }

  .profile-view-container #viewGuideBtn:hover {
    filter: brightness(1.06);
    border-color: rgba(232, 200, 122, 0.55);
    box-shadow:
      0 14px 36px rgba(0, 0, 0, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .profile-view-container .profile-action-btn:focus-visible {
    outline: 2px solid rgba(232, 200, 122, 0.85);
    outline-offset: 3px;
  }

  .profile-view-container #viewGuideBtn:focus-visible {
    outline-color: rgba(168, 200, 255, 0.55);
  }

  .message-prompt {
    padding: 30px 20px;
    max-width: 100%;
  }
  
  .message-prompt .miracle-icon {
    font-size: 48px;
    margin-bottom: 16px;
  }
  
  .message-prompt h3 {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 12px;
  }
  
  .message-prompt p {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
  }
  
  .message-prompt .btn {
    padding: 14px 28px;
    font-size: 16px;
    width: 100%;
    max-width: 300px;
  }
  
  .profile-info-card {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .daily-message-header h2 {
    font-size: 22px;
  }
  
  .daily-message-body {
    font-size: 15px;
  }
  
  .message-prompt h3 {
    font-size: 18px;
  }
  
  .message-prompt p {
    font-size: 14px;
  }
  
  .tab-content {
    padding: 0;
    max-height: calc(100vh - 180px);
    -webkit-overflow-scrolling: touch;
  }
  #chatTab.tab-content { max-height: none; }
  @supports (max-height: 100dvh) {
    .tab-content { max-height: calc(100dvh - 180px); }
    #chatTab.tab-content { max-height: none; }
  }
}


/* ═══════════════════════════════════════════════════
   MOBILE SIDEBAR & HAMBURGER
   ═══════════════════════════════════════════════════ */
.mobile-hamburger-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mobile-hamburger-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 4px;
}

.mobile-hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.mobile-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1500;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mobile-sidebar-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 260px;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  box-shadow: 4px 0 18px rgba(0,0,0,0.35);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 1501;
  display: flex;
  flex-direction: column;
  padding: 20px 18px;
}

.mobile-sidebar.active {
  transform: translateX(0);
}

.mobile-sidebar-header {
  margin-bottom: 18px;
}

.mobile-sidebar-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.mobile-sidebar-brand-logo {
  display: block;
  width: 210px;
  max-width: 100%;
  height: auto;
}

.mobile-sidebar-brand-icon {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}

.mobile-sidebar-subtitle {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}

.mobile-sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(245, 240, 232, 0.1);
  border-radius: 12px;
  background: rgba(245, 240, 232, 0.05);
  color: var(--cream);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.mobile-sidebar-item:hover {
  background: rgba(245, 240, 232, 0.08);
  border-color: rgba(245, 240, 232, 0.16);
  transform: translateX(2px);
}

.mobile-sidebar-item.active {
  background: rgba(212, 168, 83, 0.12);
  border-color: rgba(212, 168, 83, 0.3);
  color: var(--gold-soft);
}

.mobile-sidebar-item-icon {
  font-size: 18px;
}

@media (max-width: 768px) {
  .mobile-hamburger-btn {
    display: flex;
  }
  .tab-nav {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════
   💳 ADMIN CREDITS STYLES
   ═══════════════════════════════════════════════════ */

.credits-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.credits-value {
  font-weight: 700;
  color: var(--gold-soft);
  min-width: 40px;
  text-align: center;
}

.credits-value.credits-low {
  color: #EF4444;
  animation: pulse 2s infinite;
}

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

/* ═══════════════════════════════════════════════════════════════
   ONLINE STATUS INDICATOR (Green bubble)
   ═══════════════════════════════════════════════════════════════ */

.online-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  position: relative;
}

.online-indicator.online {
  background: #10B981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2),
              0 0 8px rgba(16, 185, 129, 0.6);
  animation: onlinePulse 2s ease-in-out infinite;
}

.online-indicator.offline {
  background: #6B7280;
  opacity: 0.5;
}

@keyframes onlinePulse {
  0%, 100% {
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2),
                0 0 8px rgba(16, 185, 129, 0.6);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1),
                0 0 12px rgba(16, 185, 129, 0.8);
  }
}

.add-credits-btn {
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
  border: none;
  border-radius: 4px;
  width: 22px;
  height: 22px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.add-credits-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.low-credits {
  color: #EF4444 !important;
  font-weight: bold;
}

.btn-add-credits {
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-credits:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

/* ═══════════════════════════════════════════════════
   ONLINE STATUS INDICATOR - Admin Panel
   ═══════════════════════════════════════════════════ */

.member-name-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.online-indicator {
  font-size: 10px;
  line-height: 1;
  transition: all 0.3s ease;
}

.online-indicator.online {
  color: #10B981;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
  animation: pulse-online 2s ease-in-out infinite;
}

.online-indicator.offline {
  color: #6B7280;
  opacity: 0.5;
}

@keyframes pulse-online {
  0%, 100% { 
    opacity: 1;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
  }
  50% { 
    opacity: 0.7;
    text-shadow: 0 0 12px rgba(16, 185, 129, 1);
  }
}

/* Optional: subtle row highlight for online members */
.members-table tr.member-online {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.05) 0%, transparent 30%);
}

.members-table tr.member-online:hover {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, rgba(251, 243, 219, 0.95) 30%);
}

/* ═══════════════════════════════════════════════════
   PROFILE CREDITS BALANCE CARD
   ═══════════════════════════════════════════════════ */

.credits-balance-card {
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.08), rgba(212, 168, 83, 0.05));
  border: 1px solid rgba(212, 168, 83, 0.15);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.credits-balance-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.05) 0%, transparent 70%);
  animation: shimmer 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
}

.credits-balance-card.credits-normal {
  border-color: rgba(212, 168, 83, 0.2);
}

.credits-balance-card.credits-low {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
  border-color: rgba(239, 68, 68, 0.4);
}

.credits-balance-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.credits-icon {
  font-size: 24px;
}

.credits-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.credits-balance-number {
  font-size: 56px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 4px;
  text-shadow: 0 2px 10px rgba(212, 168, 83, 0.15);
}

.credits-low .credits-balance-number {
  color: #EF4444;
  text-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
}

.credits-balance-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}

.credits-warning {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 8px 16px;
  margin-bottom: 16px;
  color: #fca5a5;
  font-size: 13px;
  font-weight: 500;
  animation: pulse 2s infinite;
}

.credits-buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #10B981, #059669) !important;
  color: white !important;
  text-decoration: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  border: none;
  cursor: pointer;
}

/* Override for normal credits - ensure green */
.credits-normal .credits-buy-btn {
  background: linear-gradient(135deg, #10B981, #059669) !important;
  color: white !important;
}

.credits-buy-btn:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  color: white;
  text-decoration: none;
}

.credits-low .credits-buy-btn,
.credits-zero .credits-buy-btn {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
  animation: pulse-btn 2s infinite;
}

.credits-low .credits-buy-btn:hover,
.credits-zero .credits-buy-btn:hover {
  background: linear-gradient(135deg, #DC2626, #B91C1C);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.credits-buy-btn.btn-urgent {
  font-size: 16px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #EF4444, #DC2626) !important;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3) !important;
  color: white !important;
}

.credits-buy-btn.btn-urgent:hover {
  background: linear-gradient(135deg, #DC2626, #B91C1C) !important;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4) !important;
}

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

/* ═══════════════════════════════════════════════════
   CREDIT TIER GRID (in-app purchase)
   ═══════════════════════════════════════════════════ */

.credits-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.credits-tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  position: relative;
  cursor: pointer;
}

.credits-tier:hover {
  border-color: rgba(212, 168, 83, 0.2);
  background: rgba(245, 240, 232, 0.04);
  transform: translateY(-2px);
  text-decoration: none;
}

.credits-tier--popular {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.06);
}

.credits-tier--popular:hover {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.1);
}

.credits-tier-badge {
  position: absolute;
  top: -8px;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.credits-tier-amount {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.credits-tier-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.credits-tier-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--gold-soft);
}

.credits-tier-duration {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 2px;
}

.credits-low .credits-tier--popular,
.credits-zero .credits-tier--popular {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.06);
}

.credits-low .credits-tier-price,
.credits-zero .credits-tier-price {
  color: #F87171;
}

@media (max-width: 380px) {
  .credits-tier-grid {
    gap: 6px;
  }
  .credits-tier {
    padding: 10px 4px 8px;
  }
  .credits-tier-amount {
    font-size: 20px;
  }
  .credits-tier-price {
    font-size: 13px;
  }
}

/* Credits Zero State */
.credits-balance-card.credits-zero {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(185, 28, 28, 0.1));
  border-color: rgba(239, 68, 68, 0.5);
}

.credits-zero .credits-balance-number {
  color: #EF4444;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

/* Enhanced Warning Styles */
.credits-warning {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  text-align: center;
}

.credits-warning.credits-urgent {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  animation: urgent-pulse 2s ease-in-out infinite;
}

@keyframes urgent-pulse {
  0%, 100% { 
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  50% { 
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
}

.credits-warning .warning-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.credits-warning .warning-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.credits-warning .warning-text strong {
  color: #fca5a5;
  font-size: 14px;
  font-weight: 700;
}

.credits-warning .warning-text span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

/* Info note */
.credits-info-note {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* ═══════════════════════════════════════════════════
   NO CREDITS OVERLAY - Chat blocking
   ═══════════════════════════════════════════════════ */

.no-credits-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  animation: fadeInUp 0.3s ease;
}

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

.no-credits-card {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(185, 28, 28, 0.1));
  border: 2px solid rgba(239, 68, 68, 0.4);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
  max-width: 400px;
  animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
  0%, 100% { 
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.2);
  }
  50% { 
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 0 20px 5px rgba(239, 68, 68, 0.15);
  }
}

.no-credits-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.no-credits-card h3 {
  color: #fca5a5;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.no-credits-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  margin-bottom: 8px;
}

.no-credits-sub {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 14px !important;
  margin-bottom: 24px !important;
}

.no-credits-card .credits-buy-btn {
  display: inline-block;
  margin-top: 8px;
}

.no-credits-note {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ═══════════════════════════════════════════════════
   CHAT CREDITS INDICATOR - Above input
   ═══════════════════════════════════════════════════ */

.chat-credits-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(245, 240, 232, 0.05);
  border: 1px solid rgba(212, 168, 83, 0.12);
  border-radius: 10px 10px 0 0;
  margin-bottom: -4px;
}

.chat-credits-indicator a {
  color: var(--gold-soft);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.chat-credits-indicator a:hover {
  color: var(--gold);
}

/* Subtle level (11-30 credits) - minimal, informative */
.chat-credits-indicator.credits-subtle {
  background: rgba(245, 240, 232, 0.04);
  border-color: rgba(212, 168, 83, 0.08);
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.chat-credits-indicator.credits-subtle a {
  display: none; /* No CTA at subtle level */
}

/* Low level (6-10 credits) */
.chat-credits-indicator.credits-low {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}

.chat-credits-indicator.credits-low a {
  color: #F59E0B;
}

/* Critical level (0-5 credits) */
.chat-credits-indicator.credits-critical {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  animation: critical-pulse 2s ease-in-out infinite;
}

@keyframes critical-pulse {
  0%, 100% { 
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
  }
  50% { 
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.6);
  }
}

.chat-credits-indicator.credits-critical a {
  color: #EF4444;
  font-weight: 700;
}

.credits-urgent-text {
  font-weight: 600;
}

.credits-cta-link {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: white !important;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  transition: all 0.2s;
}

.credits-cta-link:hover {
  background: linear-gradient(135deg, #DC2626, #B91C1C);
  transform: scale(1.05);
}

/* ═══════════════════════════════════════════════════
   DISABLE CHROME/BROWSER AUTOFILL STYLING
   ═══════════════════════════════════════════════════ */

/* Hide autofill dropdown */
#chatInput:-webkit-autofill,
#chatInput:-webkit-autofill:hover,
#chatInput:-webkit-autofill:focus,
#chatInput:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--bg-dark) inset !important;
  -webkit-text-fill-color: white !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Prevent Chrome from showing suggestions */
.chat-input-wrapper {
  position: relative;
}

#chatInput::-webkit-contacts-auto-fill-button,
#chatInput::-webkit-credentials-auto-fill-button {
  visibility: hidden;
  display: none !important;
  pointer-events: none;
  height: 0;
  width: 0;
  margin: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .credits-balance-card {
    padding: 20px 16px;
    margin-bottom: 20px;
    border-radius: 16px;
  }
  
  .credits-balance-number {
    font-size: 48px;
  }
  
  .credits-buy-btn {
    width: 100%;
    padding: 16px 24px;
  }
}

/* ═══════════════════════════════════════════════════
   VOICE ADMIN - Modal & Badges
   ═══════════════════════════════════════════════════ */

.voice-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.voice-badge.disabled {
  background: rgba(156, 163, 175, 0.2);
  color: #9CA3AF;
}

.voice-badge.active {
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
}

.voice-badge.unlimited {
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.15), rgba(212, 168, 83, 0.2));
  color: var(--gold-soft);
}

.action-btn.voice-btn {
  background: var(--gold) !important;
  font-size: 16px;
  padding: 8px 12px;
}

.action-btn.voice-btn:hover {
  transform: scale(1.1);
}

/* Voice Modal */
.voice-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
}

.voice-modal {
  background: var(--bg-dark);
  border-radius: 20px;
  padding: 30px;
  min-width: 350px;
  max-width: 90%;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.voice-modal h3 {
  color: var(--text-white);
  margin-bottom: 10px;
  font-size: 20px;
}

.voice-modal p {
  color: var(--text-light);
  margin-bottom: 20px;
}

.voice-modal-section {
  margin-bottom: 20px;
}

.voice-modal-section label {
  display: block;
  color: var(--text-white);
  margin-bottom: 8px;
  font-size: 14px;
}

.voice-modal-section input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  vertical-align: middle;
}

.voice-modal-section select,
.voice-modal-section input[type="number"] {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-darker);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-white);
  font-size: 14px;
}

.voice-modal-section select:focus,
.voice-modal-section input:focus {
  outline: none;
  border-color: var(--gold);
}

.voice-modal-buttons {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}

.voice-modal-buttons .btn-cancel {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-light);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.voice-modal-buttons .btn-cancel:hover {
  background: rgba(255, 255, 255, 0.05);
}

.voice-modal-buttons .btn-save {
  flex: 1;
  padding: 12px;
  background: linear-gradient(135deg, #10B981, #059669);
  border: none;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.voice-modal-buttons .btn-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* Make members table more compact */
.members-table td {
  padding: 12px 8px;
}

.members-table .action-btn {
  padding: 6px 10px;
  margin-right: 4px;
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════
   📱 ADMIN PANEL - MOBILE RESPONSIVE (Card Layout)
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Admin container */
  .admin-container {
    padding: 12px;
  }
  
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
  }
  
  .admin-header h2 {
    font-size: 20px;
  }
  
  /* Stats cards - 2 columns on mobile */
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .stat-card {
    padding: 12px !important;
  }
  
  .stat-value {
    font-size: 18px !important;
  }
  
  .stat-label {
    font-size: 11px !important;
  }
  
  /* Search bar */
  .admin-search input {
    padding: 12px;
    font-size: 14px;
  }
  
  /* Hide table on mobile, show cards */
  .members-table-container {
    overflow: visible;
  }
  
  .members-table {
    min-width: unset !important;
  }
  
  /* Hide table header */
  .members-table thead {
    display: none;
  }
  
  /* Convert table rows to cards */
  .members-table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }
  
  .members-table tr {
    display: flex;
    flex-wrap: wrap;
    background: rgba(45, 39, 66, 0.9);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    gap: 8px;
    position: relative;
  }
  
  .members-table tr:hover {
    transform: none;
    background: rgba(55, 48, 80, 0.95);
  }
  
  .members-table td {
    padding: 0;
    border: none;
    display: flex;
    align-items: center;
  }
  
  /* ID - small badge top left */
  .members-table td:nth-child(1) {
    position: absolute;
    top: 8px;
    left: 12px;
    font-size: 10px;
    color: #9CA3AF;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
  }
  
  /* Email - full width */
  .members-table td:nth-child(2) {
    width: 100%;
    font-size: 13px;
    color: var(--gold-soft);
    font-weight: 600;
    margin-top: 16px;
    word-break: break-all;
  }
  
  /* Name - full width with online indicator */
  .members-table td:nth-child(3) {
    width: 100%;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
  }
  
  /* Credits - styled badge */
  .members-table td:nth-child(4) {
    background: var(--gold);
    padding: 6px 12px !important;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    color: white;
  }
  
  .members-table td:nth-child(4) .add-credits-btn {
    margin-left: 8px;
    background: rgba(255, 255, 255, 0.2);
  }
  
  /* Voice - hide on mobile (not needed as unlimited) */
  .members-table td:nth-child(5) {
    display: none !important;
  }
  
  /* Role badge */
  .members-table td:nth-child(6) {
    font-size: 11px;
  }
  
  .members-table td:nth-child(6) .status-badge {
    padding: 3px 8px;
    font-size: 10px;
  }
  
  /* Last login - small text */
  .members-table td:nth-child(7) {
    width: 100%;
    font-size: 11px;
    color: #9CA3AF;
    margin-top: 4px;
  }
  
  .members-table td:nth-child(7)::before {
    content: "Paskutinis: ";
    color: #6B7280;
  }
  
  /* Actions - row at bottom */
  .members-table td:nth-child(8) {
    width: 100%;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
    padding-top: 12px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .members-table td:nth-child(8) button {
    padding: 10px 14px !important;
    font-size: 16px !important;
    border-radius: 10px;
    min-width: 44px;
    min-height: 44px;
  }
  
  /* Online indicator bigger */
  .online-indicator {
    width: 12px;
    height: 12px;
  }
  
  /* Credits cell adjustments */
  .credits-cell {
    gap: 6px;
  }
  
  .add-credits-btn {
    width: 28px !important;
    height: 28px !important;
    font-size: 16px !important;
  }
  
  /* Voice modal adjustments */
  .voice-modal .modal-content {
    padding: 20px;
  }
  
  .voice-modal h3 {
    font-size: 18px;
  }
  
  .voice-modal input {
    padding: 14px;
    font-size: 16px;
  }
  
  .voice-modal-buttons {
    flex-direction: column;
  }
  
  .voice-modal-buttons button {
    width: 100%;
    padding: 14px !important;
  }
}

/* Extra small screens */
@media (max-width: 400px) {
  .admin-stats {
    grid-template-columns: 1fr;
  }
  
  .members-table td:nth-child(2) {
    font-size: 12px;
  }
  
  .members-table td:nth-child(3) {
    font-size: 14px;
  }
}

/* ═══════════════════════════════════════════════════
   DASHBOARD V2.0 - SIMPLIFIED COST TRACKING
   ═══════════════════════════════════════════════════ */

/* Dashboard Header */
.dashboard-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(245, 240, 232, 0.08);
}

.dashboard-header h1 {
  color: var(--cream);
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.dashboard-subtitle {
  color: var(--gold-soft);
  font-size: 14px;
  font-weight: 500;
  margin-top: 4px;
}

.dashboard-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-actions button {
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-refresh {
  background: linear-gradient(135deg, #10b981, #059669);
  color: var(--cream);
}

.btn-export {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: var(--cream);
}

.btn-members {
  background: linear-gradient(135deg, #d4a853, #b8943a);
  color: var(--cream);
}

.dashboard-actions button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
  background: linear-gradient(145deg, rgba(22, 36, 58, 0.96), rgba(14, 24, 42, 0.94));
  border-radius: 14px;
  padding: 20px;
  border: 1px solid rgba(212, 168, 83, 0.12);
}

.stat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.stat-card-icon {
  font-size: 24px;
}

.stat-card-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.stat-card-badge.badge-positive {
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
}

.stat-card-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card-label {
  font-size: 14px;
  color: rgba(245, 240, 232, 0.6);
  font-weight: 500;
}

.stat-card-sublabel {
  font-size: 12px;
  color: rgba(245, 240, 232, 0.5);
  margin-top: 4px;
}

/* Profit Summary Cards */
.profit-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.profit-card {
  background: linear-gradient(145deg, rgba(10, 18, 32, 0.98), rgba(18, 31, 49, 0.98));
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(245, 240, 232, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

.profit-card.revenue {
  border-left: 4px solid #10B981;
}

.profit-card.costs {
  border-left: 4px solid #EF4444;
}

.profit-card.profit {
  border-left: 4px solid #3B82F6;
}

.profit-card.profit.negative {
  border-left-color: #EF4444;
}

.profit-label {
  font-size: 14px;
  color: rgba(245, 240, 232, 0.6);
  font-weight: 600;
  margin-bottom: 8px;
}

.profit-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--cream);
  line-height: 1;
}

.profit-card.revenue .profit-value {
  color: #10B981;
}

.profit-card.costs .profit-value {
  color: #EF4444;
}

.profit-card.profit .profit-value {
  color: #3B82F6;
}

.profit-card.profit.negative .profit-value {
  color: #EF4444;
}

.profit-detail {
  font-size: 12px;
  color: rgba(245, 240, 232, 0.5);
  margin-top: 4px;
}

.profit-period {
  font-size: 13px;
  color: rgba(245, 240, 232, 0.6);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(245, 240, 232, 0.08);
}

/* Credits Breakdown Grid */
.cost-section {
  margin-bottom: 24px;
  background: linear-gradient(145deg, rgba(22, 36, 58, 0.96), rgba(14, 24, 42, 0.94));
  border-radius: 14px;
  padding: 20px;
  border: 1px solid rgba(212, 168, 83, 0.12);
}

.cost-section h2 {
  color: var(--cream);
  font-size: 20px;
  margin-bottom: 16px;
}

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

.credit-stat-card {
  background: linear-gradient(145deg, rgba(22, 36, 58, 0.96), rgba(14, 24, 42, 0.94));
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(212, 168, 83, 0.12);
  transition: transform 0.2s ease;
}

.credit-stat-card:hover {
  transform: translateY(-3px);
}

.credit-stat-card.total {
  background: linear-gradient(135deg, rgba(15, 27, 45, 0.95), rgba(10, 18, 32, 0.98));
  border: 2px solid rgba(212, 168, 83, 0.5);
  box-shadow: 0 4px 20px rgba(212, 168, 83, 0.2);
}

.credit-stat-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.credit-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--cream);
}

.credit-stat-label {
  font-size: 14px;
  color: rgba(245, 240, 232, 0.6);
  margin: 4px 0;
}

.credit-stat-cost {
  font-size: 16px;
  font-weight: 600;
  color: #EF4444;
}

/* Alerts Section */
.alerts-section {
  margin-bottom: 24px;
  background: linear-gradient(145deg, rgba(22, 36, 58, 0.96), rgba(14, 24, 42, 0.94));
  border-radius: 14px;
  padding: 20px;
  border: 1px solid rgba(212, 168, 83, 0.12);
}

.alerts-section h2 {
  color: var(--cream);
  font-size: 20px;
  margin-bottom: 16px;
}

.alert-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  margin-bottom: 10px;
}

.alert-item.warning {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
}

.alert-item.info {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
}

.alert-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-icon {
  font-size: 20px;
}

.alert-text {
  color: var(--cream);
  font-size: 14px;
}

.alert-count {
  font-weight: 700;
  color: #EF4444;
}

.alert-item.warning .alert-count {
  color: #F59E0B;
}

.alert-item.info .alert-count {
  color: #10B981;
}

.alert-action {
  padding: 8px 16px;
  background: rgba(245, 240, 232, 0.08);
  border: 1px solid rgba(245, 240, 232, 0.15);
  border-radius: 8px;
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.alert-action:hover {
  background: rgba(245, 240, 232, 0.15);
}

/* Members Section */
.members-section {
  margin-top: 24px;
  background: linear-gradient(145deg, rgba(22, 36, 58, 0.96), rgba(14, 24, 42, 0.94));
  border-radius: 14px;
  padding: 20px;
  border: 1px solid rgba(212, 168, 83, 0.12);
}

.members-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.members-section-header h2 {
  color: var(--cream);
  font-size: 20px;
  margin: 0;
}

.members-sort select {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid rgba(245, 240, 232, 0.12);
  background: rgba(14, 24, 38, 0.96);
  color: var(--cream);
  font-size: 14px;
  cursor: pointer;
}

/* Members Table V2 */
.members-table-v2 {
  width: 100%;
  border-collapse: collapse;
}

.members-table-v2 thead {
  background: linear-gradient(135deg, #b8943a, #162540);
}

.members-table-v2 th {
  padding: 14px 16px;
  text-align: left;
  color: var(--cream);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.members-table-v2 th.sortable {
  cursor: pointer;
  user-select: none;
}

.members-table-v2 th.sortable:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sort-icon {
  margin-left: 6px;
  opacity: 0.6;
}

.members-table-v2 td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(245, 240, 232, 0.05);
  color: rgba(245, 240, 232, 0.88);
  font-size: 14px;
  vertical-align: middle;
}

.members-table-v2 tr:hover {
  background: rgba(212, 168, 83, 0.1);
}

.member-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.member-name {
  font-weight: 600;
  color: var(--cream);
}

.member-email {
  font-size: 12px;
  color: rgba(245, 240, 232, 0.5);
}

.usage-breakdown {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.usage-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.usage-badge.text {
  background: rgba(59, 130, 246, 0.2);
  color: #60A5FA;
}

.usage-badge.voice {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
}

.usage-total {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.cost-cell .amount {
  font-weight: 700;
  font-size: 15px;
}

.cost-cell .amount.negative {
  color: #F87171;
}

.cost-cell .amount.positive {
  color: #34D399;
}

.cost-cell .breakdown {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

.profit-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
}

.profit-badge.positive {
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
}

.profit-badge.negative {
  background: rgba(239, 68, 68, 0.2);
  color: #EF4444;
}

.credits-value {
  font-weight: 700;
  font-size: 16px;
  color: var(--gold-soft);
}

.credits-value.credits-low {
  color: #F59E0B;
}

.actions-cell {
  white-space: nowrap;
}

.actions-cell button {
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  margin-right: 6px;
  transition: all 0.2s;
}

.btn-credits {
  background: rgba(212, 168, 83, 0.12);
  color: var(--gold-soft);
}

.btn-credits:hover {
  background: rgba(212, 168, 83, 0.25);
}

.btn-voice {
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
}

.btn-voice:hover {
  background: rgba(16, 185, 129, 0.4);
}

/* Dashboard Loading */
.dashboard-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  color: rgba(255, 255, 255, 0.7);
}

.dashboard-loading .spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(212, 168, 83, 0.12);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

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

.dashboard-empty {
  text-align: center;
  padding: 40px;
  color: rgba(255, 255, 255, 0.5);
}

/* ═══════════════════════════════════════════════════
   DASHBOARD V2 - MOBILE RESPONSIVE
   ═══════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .dashboard-header h1 {
    font-size: 22px;
  }
  
  .dashboard-actions {
    width: 100%;
  }
  
  .dashboard-actions button {
    flex: 1;
    padding: 12px;
    font-size: 12px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .stat-card-value {
    font-size: 24px;
  }
  
  .stat-card-label {
    font-size: 12px;
  }
  
  .profit-summary {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .profit-card {
    padding: 16px;
  }
  
  .profit-value {
    font-size: 28px;
  }
  
  .credits-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  
  .credit-stat-card {
    padding: 12px;
  }
  
  .credit-stat-icon {
    font-size: 24px;
  }
  
  .credit-stat-value {
    font-size: 20px;
  }
  
  .credit-stat-label {
    font-size: 11px;
  }
  
  .credit-stat-cost {
    font-size: 13px;
  }
  
  /* Table to Cards on Mobile */
  .members-table-v2 thead {
    display: none;
  }
  
  .members-table-v2,
  .members-table-v2 tbody,
  .members-table-v2 tr {
    display: block;
    width: 100%;
  }
  
  .members-table-v2 tr {
    background: linear-gradient(145deg, rgba(10, 18, 32, 0.98), rgba(18, 31, 49, 0.98));
    border-radius: 14px;
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  
  .members-table-v2 td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .members-table-v2 td:last-child {
    border-bottom: none;
    padding-top: 12px;
    justify-content: center;
  }
  
  .members-table-v2 td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--gold-soft);
    font-size: 12px;
    text-transform: uppercase;
    flex-shrink: 0;
    margin-right: 12px;
  }
  
  .members-table-v2 td:first-child {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .members-table-v2 td:first-child::before {
    display: none;
  }
  
  .member-info {
    width: 100%;
  }
  
  .member-name {
    font-size: 16px;
  }
  
  .usage-breakdown {
    flex-direction: row;
    gap: 8px;
  }
  
  .actions-cell button {
    padding: 10px 16px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .credits-grid {
    grid-template-columns: 1fr;
  }
  
  .alert-item {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  
  .alert-action {
    width: 100%;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════════════
   ENHANCED ANIMATIONS - Chat Messages
   ═══════════════════════════════════════════════════ */

/* Better fade-in animation for messages */
@keyframes messageSlideIn {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes messagePulseIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  50% {
    transform: scale(1.01);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.message {
  animation: messageSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
}

.message.user {
  animation: messageSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.message.assistant {
  animation: messagePulseIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Staggered animation for multiple messages */
.message:nth-child(1) { animation-delay: 0s; }
.message:nth-child(2) { animation-delay: 0.05s; }
.message:nth-child(3) { animation-delay: 0.1s; }
.message:nth-child(4) { animation-delay: 0.15s; }
.message:nth-child(5) { animation-delay: 0.2s; }
.message:nth-child(6) { animation-delay: 0.25s; }
.message:nth-child(7) { animation-delay: 0.3s; }
.message:nth-child(8) { animation-delay: 0.35s; }

/* New message highlight — gold glow */
.message.new-message {
  animation: messageSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
             messageGlow 2s ease-out forwards;
}

@keyframes messageGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 168, 83, 0.4);
  }
  50% {
    box-shadow: 0 0 20px 5px rgba(212, 168, 83, 0.2);
  }
  100% {
    box-shadow: none;
  }
}

.message.assistant.new-message .message-content {
  animation: contentFadeIn 0.8s ease forwards;
}

@keyframes contentFadeIn {
  0% {
    background: rgba(255, 255, 255, 0.7);
  }
  100% {
    background: rgba(255, 255, 255, 0.95);
  }
}

/* ═══════════════════════════════════════════════════
   PROFILE CARD HOVER EFFECTS
   ═══════════════════════════════════════════════════ */

/* Credits card enhanced hover */
.credits-display-card {
  background: linear-gradient(135deg, rgba(245, 240, 232, 0.12), rgba(212, 168, 83, 0.05));
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.credits-display-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.6s ease;
}

.credits-display-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(212, 168, 83, 0.4);
  box-shadow: 0 12px 40px rgba(212, 168, 83, 0.2);
}

.credits-display-card:hover::before {
  left: 100%;
}

/* Profile info card hover */
.profile-info-card {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.profile-info-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 168, 83, 0.2);
  box-shadow: 0 8px 30px rgba(212, 168, 83, 0.08);
}

/* Profile action buttons — desktop only enhancements */
@media (min-width: 769px) {
  .profile-action-btn {
    position: relative;
    overflow: hidden;
  }

  .profile-action-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(212, 168, 83, 0.06);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
  }

  .profile-action-btn:hover::after {
    width: 280px;
    height: 280px;
  }

  .profile-action-btn .action-icon {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .profile-action-btn:hover .action-icon {
    transform: scale(1.08);
  }
}

/* ═══════════════════════════════════════════════════
   THRIVECART CHECKOUT MODAL
   ═══════════════════════════════════════════════════ */

.checkout-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(10, 18, 32, 0.95) !important;
  z-index: 99999 !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  pointer-events: auto !important;
}

.checkout-modal[style*="display: flex"] {
  opacity: 1 !important;
  visibility: visible !important;
}

.checkout-modal * {
  pointer-events: auto !important;
}

.checkout-modal iframe {
  pointer-events: auto !important;
  touch-action: auto !important;
  width: 100% !important;
  min-height: 500px;
}

.checkout-container {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  pointer-events: auto !important;
  touch-action: auto !important;
}

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

.checkout-header {
  background: var(--gold);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}

.checkout-header h2 {
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.checkout-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
}

.checkout-notice {
  background: #FEF3C7;
  color: #92400E;
  padding: 8px 16px;
  font-size: 13px;
  text-align: center;
  border-bottom: 1px solid #FCD34D;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.checkout-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.checkout-body {
  padding: 0;
  min-height: 400px;
  max-height: calc(90vh - 80px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  pointer-events: auto !important;
  touch-action: auto !important;
  background: #ffffff;
  border-radius: 0 0 20px 20px;
}

.checkout-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--gold);
}

.checkout-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(212, 168, 83, 0.12);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

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

.checkout-loading p {
  font-size: 16px;
  color: #666;
}

/* ThriveCart embed styling */
#thrivecartEmbed {
  width: 100%;
}

#thrivecartEmbed iframe {
  width: 100% !important;
  min-height: 500px;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .checkout-container {
    max-width: 100%;
    max-height: 95vh;
    border-radius: 16px;
  }
  
  .checkout-header {
    padding: 16px 20px;
  }
  
  .checkout-header h2 {
    font-size: 18px;
  }
}

/* ═══════════════════════════════════════════════════
   ONBOARDING MODAL
   ═══════════════════════════════════════════════════ */

.onboarding-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 18, 32, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: onboardingFadeIn 0.5s ease forwards;
}

@keyframes onboardingFadeIn {
  to { opacity: 1; }
}

.onboarding-container {
  width: 100%;
  max-width: 540px;
  padding: 20px;
}

.onboarding-card {
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  border-radius: 28px;
  padding: 40px 32px;
  text-align: center;
  border: 1px solid rgba(212, 168, 83, 0.2);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  max-height: 90vh;
}

.onboarding-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(212, 168, 83, 0.06) 0%, transparent 70%);
  animation: onboardingGlow 8s ease-in-out infinite;
}

@keyframes onboardingGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10%, 10%); }
}

.onboarding-content {
  position: relative;
  z-index: 1;
  max-height: calc(90vh - 80px);
  overflow-y: auto;
  padding-right: 4px;
}

.onboarding-content::-webkit-scrollbar {
  width: 6px;
}

.onboarding-content::-webkit-scrollbar-thumb {
  background: rgba(212, 168, 83, 0.35);
  border-radius: 999px;
}

.onboarding-mode-label {
  margin: 0 0 12px;
  color: rgba(212, 168, 83, 0.9);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.onboarding-icon {
  font-size: 72px;
  margin-bottom: 20px;
  display: block;
  animation: onboardingIconFloat 3s ease-in-out infinite;
}

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

.onboarding-title {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

.onboarding-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.onboarding-highlight {
  color: var(--text-cream-soft);
  font-weight: 600;
}

/* Onboarding dots/progress */
.onboarding-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.onboarding-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.onboarding-dot.active {
  background: var(--gold);
  width: 28px;
  border-radius: 10px;
}

/* Onboarding buttons */
.onboarding-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.onboarding-btn {
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
}

.onboarding-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.onboarding-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.onboarding-btn-primary {
  background: var(--gold);
  color: white;
  box-shadow: 0 4px 15px rgba(212, 168, 83, 0.3);
}

.onboarding-btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 25px rgba(212, 168, 83, 0.3);
}

.onboarding-skip {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 2;
}

.onboarding-skip:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Feature list in onboarding */
.onboarding-features {
  text-align: left;
  margin: 24px 0;
}

.onboarding-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.onboarding-feature:last-child {
  border-bottom: none;
}

.onboarding-feature-icon {
  font-size: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 240, 232, 0.12);
  border-radius: 12px;
}

.onboarding-feature-text {
  flex: 1;
}

.onboarding-feature-text strong {
  display: block;
  color: #fff;
  font-size: 15px;
  margin-bottom: 2px;
}

.onboarding-feature-text span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

/* Onboarding slide transitions */
.onboarding-slide {
  display: none;
  animation: slideIn 0.4s ease;
}

.onboarding-slide.active {
  display: block;
}

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

/* Mobile adjustments */
@media (max-width: 480px) {
  .onboarding-card {
    padding: 32px 24px;
    border-radius: 24px;
  }
  
  .onboarding-icon {
    font-size: 56px;
  }
  
  .onboarding-title {
    font-size: 24px;
  }
  
  .onboarding-text {
    font-size: 15px;
  }
  
  .onboarding-buttons {
    flex-direction: column;
  }
  
  .onboarding-btn {
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════
   LOW CREDITS POPUP (Conversion)
   ═══════════════════════════════════════════════════ */

#lowCreditsOverlay,
#noCreditsOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 18, 32, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
  padding: 20px;
}

.low-credits-popup {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: 24px;
  padding: 40px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 50px rgba(212, 168, 83, 0.15);
  border: 1px solid rgba(245, 240, 232, 0.12);
  animation: popupSlideUp 0.4s ease;
}

.low-credits-popup.no-credits {
  border-color: rgba(239, 68, 68, 0.3);
}

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

.popup-emoji {
  font-size: 64px;
  margin-bottom: 16px;
  animation: pulse 2s infinite;
}

.low-credits-popup h2 {
  color: #ffffff;
  font-size: 24px;
  margin-bottom: 16px;
  font-weight: 700;
}

.popup-message {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.popup-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.popup-btn-primary {
  background: var(--gold);
  color: white;
  border: none;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 168, 83, 0.25);
}

.popup-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 168, 83, 0.3);
}

.popup-btn-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 24px;
  font-size: 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.popup-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.popup-note {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  margin-top: 20px;
}

/* No credits specific */
.no-credits .popup-btn-primary {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.no-credits .popup-btn-primary:hover {
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

@media (max-width: 480px) {
  .low-credits-popup {
    padding: 32px 24px;
  }
  
  .popup-emoji {
    font-size: 48px;
  }
  
  .low-credits-popup h2 {
    font-size: 20px;
  }
  
  .popup-message {
    font-size: 14px;
  }
}

/* Popup Credit Tiers */
.popup-tiers {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 20px 0 16px;
}

.popup-tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 18px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
  position: relative;
  min-width: 80px;
  cursor: pointer;
}

.popup-tier:hover {
  border-color: rgba(212, 168, 83, 0.25);
  transform: translateY(-2px);
  text-decoration: none;
}

.popup-tier--popular {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
}

.popup-tier-badge {
  position: absolute;
  top: -7px;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 5px;
}

.popup-tier-amount {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
}

.popup-tier-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-soft);
  margin-top: 2px;
}

@media (max-width: 380px) {
  .popup-tier {
    padding: 10px 12px 8px;
    min-width: 70px;
  }
  .popup-tier-amount { font-size: 18px; }
  .popup-tier-price { font-size: 12px; }
}

/* ═══════════════════════════════════════════════════════════════
   COSMIC BLUEPRINT STYLES
   feeling.app by Rytis & Violeta
   ═══════════════════════════════════════════════════════════════ */

#cosmic-blueprintTab {
  overflow-y: auto;
  height: 100%;
  scrollbar-width: thin;
}

/* TEASER (locked state) */
.cb-teaser {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  padding: 30px 20px 40px;
  text-align: center;
}
.cb-teaser-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.cb-teaser-content { position: relative; z-index: 1; }
.cb-teaser-icon { font-size: 48px; margin-bottom: 12px; }
.cb-teaser-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--cream);
  margin: 0 0 8px;
}
.cb-teaser-subtitle {
  color: var(--text-cream-soft);
  font-size: 15px;
  margin: 0 0 24px;
}

.cb-teaser-preview {
  position: relative;
  background: rgba(15, 27, 45, 0.4);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  overflow: hidden;
}
.cb-preview-blur {
  filter: blur(3px);
  opacity: 0.5;
  text-align: left;
}
.cb-preview-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: var(--text-cream-soft);
  font-size: 14px;
}
.cb-num {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 168, 83, 0.15);
  border-radius: 50%;
  font-size: 13px;
  flex-shrink: 0;
}
.cb-preview-text {
  font-size: 13px;
  color: var(--text-cream-soft);
  line-height: 1.5;
  margin-top: 10px;
}
.cb-preview-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(15, 27, 45, 0.7);
  backdrop-filter: blur(4px);
}
.cb-lock-icon { font-size: 32px; margin-bottom: 8px; }
.cb-preview-overlay p {
  color: var(--cream);
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  margin: 0;
}

.cb-teaser-hook {
  color: #E8B86D;
  font-size: 15px;
  font-style: italic;
  line-height: 1.5;
  margin: -8px 0 20px;
  padding: 12px 16px;
  background: rgba(232, 184, 109, 0.08);
  border-left: 3px solid rgba(232, 184, 109, 0.4);
  border-radius: 0 10px 10px 0;
}
.cb-preview-personal {
  border: 1px solid rgba(232, 184, 109, 0.2);
  background: rgba(15, 27, 45, 0.45);
}
.cb-preview-personal .cb-preview-blur {
  filter: blur(2.5px);
  opacity: 0.6;
}
.cb-personal-hint {
  display: block;
  margin-top: 8px;
  color: #E8B86D;
  font-size: 12px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0.3px;
  opacity: 0.85;
}

.cb-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
  text-align: left;
}
.cb-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: rgba(245, 240, 232, 0.06);
  border-radius: 12px;
}
.cb-feature-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.cb-feature span {
  font-size: 13px;
  color: var(--text-cream-soft);
  line-height: 1.3;
}
.cb-feature small { color: var(--text-light); font-size: 11px; }

.cb-guarantee {
  font-style: italic;
  color: var(--text-cream-soft);
  font-size: 13px;
  line-height: 1.5;
  padding: 16px;
  margin-bottom: 20px;
  border-left: 3px solid rgba(212, 168, 83, 0.15);
}

.cb-buy-btn {
  display: inline-block;
  padding: 16px 40px;
  background: var(--gold);
  color: white;
  font-size: 17px;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(212, 168, 83, 0.25);
}
@media (hover: hover) {
  .cb-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 168, 83, 0.3);
  }
}
.cb-buy-sub {
  color: var(--text-light);
  font-size: 12px;
  margin: 10px 0 16px;
}
.cb-also {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 20px;
}
.cb-also-link {
  color: var(--gold-soft);
  font-size: 13px;
  text-decoration: underline;
  text-decoration-color: rgba(212, 168, 83, 0.15);
}

/* WIZARD */
.cb-wizard {
  max-width: 520px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}
.cb-wizard-header { text-align: center; margin-bottom: 24px; }
.cb-wizard-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: var(--cream);
  margin: 0 0 8px;
}
.cb-wizard-header p { color: var(--text-cream-soft); font-size: 14px; margin: 0; }

.cb-form { display: flex; flex-direction: column; gap: 20px; }
.cb-step { display: flex; flex-direction: column; gap: 10px; }
.cb-label {
  font-size: 14px;
  color: var(--text-cream-soft);
  font-weight: 500;
}
.cb-label small { color: var(--text-light); font-weight: 400; }
.cb-required { color: #E8A598; }
.cb-input, .cb-textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(15, 27, 45, 0.4);
  border: 1px solid rgba(245, 240, 232, 0.12);
  border-radius: 12px;
  color: var(--cream);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
  -webkit-appearance: none;
}
.cb-input:focus, .cb-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.08);
}
.cb-textarea { resize: vertical; min-height: 80px; }

.cb-photo-upload {
  cursor: pointer;
  border: 2px dashed rgba(212, 168, 83, 0.15);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  transition: border-color 0.2s;
}
@media (hover: hover) {
  .cb-photo-upload:hover { border-color: var(--gold); }
}
.cb-photo-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 14px;
}
.cb-photo-icon { font-size: 32px; }
.cb-photo-img {
  max-width: 200px;
  max-height: 200px;
  border-radius: 12px;
  object-fit: cover;
}
.cb-photo-note { font-size: 12px; color: var(--text-light); text-align: center; }

.cb-generate-btn {
  padding: 16px 32px;
  background: var(--gold);
  color: white;
  font-size: 17px;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(212, 168, 83, 0.25);
  margin-top: 10px;
}
@media (hover: hover) {
  .cb-generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 168, 83, 0.3);
  }
}
.cb-generate-btn:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

/* GENERATING ANIMATION */
.cb-generating {
  text-align: center;
  padding: 60px 20px;
  max-width: 500px;
  margin: 0 auto;
}
.cb-generating h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: var(--cream);
  margin: 24px 0 8px;
}
.cb-gen-subtitle { color: var(--text-cream-soft); font-size: 14px; margin-bottom: 30px; }

.cb-cosmos-animation {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
}
.cb-star {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--gold-light);
  border-radius: 50%;
  animation: cbTwinkle 2s ease-in-out infinite;
}
.cb-star-1 { top: 10px; left: 30px; animation-delay: 0s; }
.cb-star-2 { top: 50px; right: 10px; animation-delay: 0.5s; }
.cb-star-3 { bottom: 20px; left: 20px; animation-delay: 1s; }
.cb-orbit {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(212, 168, 83, 0.12);
  border-radius: 50%;
  animation: cbSpin 8s linear infinite;
}
.cb-planet {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(212, 168, 83, 0.3);
  animation: cbPulse 2s ease-in-out infinite;
}

@keyframes cbTwinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}
@keyframes cbSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes cbPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(212, 168, 83, 0.3); }
  50% { transform: scale(1.1); box-shadow: 0 0 30px rgba(212, 168, 83, 0.5); }
}

.cb-gen-steps {
  text-align: left;
  max-width: 320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cb-gen-step {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-light);
  background: rgba(245, 240, 232, 0.05);
  transition: all 0.5s ease;
}
.cb-gen-step.active {
  color: var(--text-cream-soft);
  background: rgba(212, 168, 83, 0.08);
  border-left: 3px solid var(--gold);
}

/* CHART DISPLAY */
.cb-display {
  max-width: 700px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}
.cb-display-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(15, 27, 45, 0.4);
}
.cb-brand-img {
  width: 80px;
  height: auto;
  margin-bottom: 12px;
  border-radius: 12px;
}
.cb-display-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  color: var(--cream);
  margin: 0 0 6px;
}
.cb-display-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: var(--gold-soft);
  margin: 0 0 6px;
}
.cb-display-date { color: var(--text-light); font-size: 13px; margin: 0; }

.cb-numbers-grid { margin-bottom: 30px; }
.cb-member-name {
  font-family: 'Cormorant Garamond', serif;
  color: var(--text-cream-soft);
  font-size: 18px;
  margin: 0 0 12px;
}
.cb-number-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}
.cb-number-cards > .cb-number-card {
  flex: 0 1 calc(33.333% - 7px);
  min-width: 0;
}
.cb-number-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px;
  background: rgba(245, 240, 232, 0.06);
  border-radius: 14px;
  text-align: center;
  border: 1px solid rgba(15, 27, 45, 0.4);
}
.cb-card-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-soft);
  font-family: 'Cormorant Garamond', serif;
  line-height: 1;
  margin-bottom: 4px;
}
.cb-card-label {
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cb-card-name {
  font-size: 12px;
  color: var(--text-cream-soft);
  margin-top: 2px;
}
.cb-card-zodiac .cb-card-num { font-size: 24px; }
.cb-card-energy .cb-card-num { font-size: 20px; }

.cb-synthesis { margin-bottom: 30px; }
.cb-paragraph {
  color: var(--text-cream-soft);
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 18px;
}
.cb-paragraph:first-child::first-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  float: left;
  line-height: 1;
  margin-right: 8px;
  color: var(--gold-soft);
}

.cb-closing {
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid rgba(15, 27, 45, 0.4);
}
.cb-closing-love {
  font-style: italic;
  color: var(--text-cream-soft);
  font-size: 16px;
  margin: 0 0 4px;
}
.cb-closing-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--cream);
  margin: 0 0 8px;
}
.cb-closing-brand {
  color: var(--text-light);
  font-size: 13px;
  margin: 0;
}

.cb-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding-top: 20px;
}
.cb-action-btn {
  padding: 14px 28px;
  min-height: 48px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.cb-pdf-btn {
  color: white;
  box-shadow: 0 2px 12px rgba(212, 168, 83, 0.15);
}
.cb-pdf-dark {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--gold) 100%);
}
.cb-pdf-light {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--cream-warm) 100%);
  color: #3B2D6E;
  box-shadow: 0 2px 12px rgba(212, 168, 83, 0.3);
}
@media (hover: hover) {
  .cb-pdf-btn:hover { transform: translateY(-1px); }
}
.cb-new-btn {
  background: rgba(15, 27, 45, 0.4);
  color: var(--text-cream-soft);
  border: 1px solid rgba(245, 240, 232, 0.12);
}
@media (hover: hover) {
  .cb-new-btn:hover { background: rgba(245, 240, 232, 0.12); }
}

/* CHART LIST */
.cb-list {
  max-width: 520px;
  margin: 0 auto;
  padding: 24px 20px;
}
.cb-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.cb-list-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--cream);
  margin: 0;
}
.cb-new-chart-btn {
  padding: 8px 18px;
  background: rgba(212, 168, 83, 0.12);
  color: var(--gold-soft);
  border: 1px solid rgba(212, 168, 83, 0.15);
  border-radius: 50px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
@media (hover: hover) {
  .cb-new-chart-btn:hover { background: rgba(212, 168, 83, 0.15); }
}

.cb-chart-cards { display: flex; flex-direction: column; gap: 10px; }
.cb-chart-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(245, 240, 232, 0.06);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid rgba(15, 27, 45, 0.4);
}
@media (hover: hover) {
  .cb-chart-card:hover {
    background: rgba(245, 240, 232, 0.1);
    transform: translateX(3px);
  }
}
.cb-chart-card:active {
  background: rgba(245, 240, 232, 0.1);
}
.cb-chart-card-type { font-size: 24px; }
.cb-chart-card-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.cb-chart-card-names { color: var(--cream); font-size: 15px; font-weight: 500; }
.cb-chart-card-question {
  font-size: 0.8rem;
  color: var(--text-dim, rgba(160, 155, 185, 0.7));
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}
.cb-chart-card-date { color: var(--text-light); font-size: 12px; }
.cb-chart-card-arrow { color: var(--gold-soft); font-size: 18px; }

.cb-no-charts { color: var(--text-light); text-align: center; padding: 40px 20px; }

/* REMAINING BREAKDOWN */
.cb-remaining-breakdown {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0;
}
.cb-remaining-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 10px;
  background: rgba(212, 168, 83, 0.08);
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 500;
  border-radius: 50px;
  border: 1px solid rgba(212, 168, 83, 0.12);
  white-space: nowrap;
}
.cb-remaining-zero {
  opacity: 0.45;
  background: rgba(245, 240, 232, 0.05);
  border-color: rgba(107, 97, 137, 0.2);
  color: #8B7EA8;
}
.cb-remaining-sep {
  color: rgba(212, 168, 83, 0.15);
  font-size: 11px;
  user-select: none;
}
.cb-list-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* UPSELL BANNER */
.cb-upsell-banner {
  margin-top: 24px;
  padding: 24px;
  background: rgba(245, 240, 232, 0.04);
  border: 1px solid rgba(245, 240, 232, 0.08);
  border-radius: 16px;
  text-align: center;
}
.cb-upsell-text {
  color: var(--text-cream-soft);
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 4px;
}
.cb-upsell-subtext {
  color: var(--text-light);
  font-size: 13px;
  margin: 0 0 16px;
}
.cb-upsell-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.cb-upsell-link {
  display: inline-block;
  padding: 10px 18px;
  background: var(--gold);
  color: white;
  font-size: 13px;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s;
  min-height: 44px;
  display: flex;
  align-items: center;
}
@media (hover: hover) {
  .cb-upsell-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(212, 168, 83, 0.25);
  }
}

/* VALUE STACK */
.cb-value-stack {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 16px 0 20px;
  color: var(--text-cream-soft);
  font-size: 14px;
}
.cb-value-dot {
  color: var(--gold);
  font-size: 10px;
}

/* ERROR STATE */
.cb-error {
  text-align: center;
  padding: 60px 20px;
  max-width: 400px;
  margin: 0 auto;
}
.cb-error h2 { color: var(--cream); margin-bottom: 12px; }
.cb-error p { color: var(--text-cream-soft); margin-bottom: 24px; }

/* MOBILE RESPONSIVE */
@media (max-width: 600px) {
  .cb-teaser-title { font-size: 22px; }
  .cb-features { grid-template-columns: 1fr; }
  .cb-number-cards > .cb-number-card { flex: 0 1 calc(50% - 5px); }
  .cb-display-title { font-size: 26px; }
  .cb-actions { flex-direction: column; }
  .cb-also { flex-direction: column; gap: 8px; }
  .cb-display { padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }
  .cb-wizard { padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .cb-teaser-content { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
  .cb-paragraph { font-size: 15px; line-height: 1.8; }
  .cb-paragraph:first-child::first-letter { font-size: 36px; }
  .cb-generate-btn { width: 100%; }
  .cb-buy-btn { width: 100%; text-align: center; box-sizing: border-box; padding: 16px 20px; }
  .cb-upsell-links { flex-direction: column; align-items: stretch; }
  .cb-upsell-link { justify-content: center; }
  .cb-list-header { flex-wrap: wrap; gap: 8px; }
  .cb-list-header-right { flex-wrap: wrap; gap: 6px; }
  .cb-value-stack { font-size: 13px; }
  .cb-photo-upload { padding: 14px 12px; }
  .cb-photo-icon { font-size: 24px; }
  .cb-photo-preview { font-size: 13px; }
  .cb-step-card { padding: 2px 0; }
}

.cb-photo-selected {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gold-soft);
  font-size: 14px;
  padding: 10px;
}

/* ═══════════════════════════════════════════════════ */
/* CHART TYPE SELECTOR */
/* ═══════════════════════════════════════════════════ */
.cb-type-selector {
  max-width: 600px;
  margin: 0 auto;
  padding: 32px 20px;
  text-align: center;
}
.cb-type-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: var(--cream);
  margin: 0 0 8px;
}
.cb-type-header p {
  color: var(--text-cream-soft);
  margin: 0 0 16px;
}
.cb-type-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.cb-type-card {
  padding: 24px 16px;
  background: rgba(245, 240, 232, 0.06);
  border: 1px solid rgba(212, 168, 83, 0.12);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
}
@media (hover: hover) {
  .cb-type-card:hover {
    background: rgba(212, 168, 83, 0.12);
    border-color: rgba(212, 168, 83, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(212, 168, 83, 0.15);
  }
}
.cb-type-card:active {
  background: rgba(212, 168, 83, 0.12);
}
.cb-type-icon { font-size: 36px; display: block; margin-bottom: 10px; }
.cb-type-title { color: var(--cream); font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.cb-type-desc { color: var(--text-cream-soft); font-size: 13px; margin: 0 0 4px; }
.cb-type-sub { color: var(--gold); font-size: 11px; margin: 0; }
.cb-type-remaining {
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-soft);
}
.cb-type-remaining-zero {
  color: var(--text-light);
  font-weight: 400;
}
.cb-get-more {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cb-type-card-empty {
  opacity: 0.45;
  border-style: dashed;
  filter: grayscale(0.4);
  cursor: pointer;
}
@media (hover: hover) {
  .cb-type-card-empty:hover {
    opacity: 0.85;
    border-color: rgba(245, 240, 232, 0.12);
  }
}
.cb-back-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--gold);
  font-size: 13px;
  cursor: pointer;
  background: none;
  border: none;
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════ */
/* WIZARD PROGRESS DOTS */
/* ═══════════════════════════════════════════════════ */
.cb-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 16px;
}
.cb-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  background: rgba(15, 27, 45, 0.4);
  color: var(--text-light);
  border: 2px solid rgba(245, 240, 232, 0.1);
  transition: all 0.3s;
  flex-shrink: 0;
}
.cb-step-dot.active {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(212, 168, 83, 0.2);
}
.cb-step-dot.done {
  background: rgba(212, 168, 83, 0.15);
  color: var(--gold-soft);
  border-color: rgba(212, 168, 83, 0.2);
}
.cb-step-line {
  width: 24px;
  height: 2px;
  background: rgba(15, 27, 45, 0.4);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════ */
/* WIZARD NAVIGATION */
/* ═══════════════════════════════════════════════════ */
.cb-wizard-header {
  text-align: center;
  margin-bottom: 20px;
}
.cb-wizard-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--cream);
  margin: 0 0 8px;
}
.cb-wizard-body {
  min-height: 200px;
}
.cb-wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  gap: 12px;
}
.cb-nav-btn {
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  min-height: 48px;
}
.cb-nav-back {
  background: rgba(15, 27, 45, 0.4);
  color: var(--text-cream-soft);
}
.cb-nav-next {
  background: var(--gold);
  color: white;
  box-shadow: 0 4px 16px rgba(212, 168, 83, 0.3);
}
@media (hover: hover) {
  .cb-nav-back:hover { background: rgba(245, 240, 232, 0.12); }
  .cb-nav-next:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(212, 168, 83, 0.4); }
}

.cb-step-card {
  padding: 4px 0;
}
.cb-person-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--text-cream-soft);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(245, 240, 232, 0.1);
}
.cb-hint {
  color: var(--text-light);
  font-size: 12px;
  margin-top: 8px;
}
.cb-add-member-btn {
  display: block;
  margin: 12px auto 0;
  padding: 8px 20px;
  background: none;
  border: 1px dashed rgba(212, 168, 83, 0.15);
  color: var(--gold);
  font-size: 13px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
}
@media (hover: hover) {
  .cb-add-member-btn:hover {
    border-color: rgba(212, 168, 83, 0.25);
    background: rgba(245, 240, 232, 0.04);
  }
}

/* ═══════════════════════════════════════════════════ */
/* REVIEW STEP */
/* ═══════════════════════════════════════════════════ */
.cb-review-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: var(--cream);
  margin: 0 0 16px;
}
.cb-review-q {
  padding: 12px 16px;
  background: rgba(245, 240, 232, 0.06);
  border-radius: 10px;
  color: var(--text-cream-soft);
  font-size: 14px;
  margin-bottom: 16px;
  font-style: italic;
}
.cb-review-language {
  margin-bottom: 16px;
}
.cb-review-members {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cb-review-member {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  background: rgba(245, 240, 232, 0.05);
  border-radius: 10px;
  border-left: 3px solid var(--gold);
}
.cb-review-name { color: var(--cream); font-weight: 600; font-size: 15px; }
.cb-review-detail { color: var(--text-cream-soft); font-size: 13px; }
.cb-review-photo { color: var(--gold-soft); font-size: 12px; }
.cb-review-note {
  margin-top: 16px;
  color: var(--text-light);
  font-size: 12px;
  text-align: center;
}

/* ═══════════════════════════════════════════════════ */
/* SYNTHESIS SECTIONS */
/* ═══════════════════════════════════════════════════ */
.cb-section-divider {
  text-align: center;
  margin: 32px 0 12px;
  position: relative;
}
.cb-section-divider::before {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.15), transparent);
}
.cb-section-icon {
  position: relative;
  display: inline-block;
  background: var(--bg);
  padding: 0 12px;
  font-size: 20px;
  z-index: 1;
}
.cb-section-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: var(--text-cream-soft);
  text-align: center;
  margin: 0 0 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

@media (max-width: 600px) {
  .cb-type-cards { grid-template-columns: 1fr; }
  .cb-wizard-nav { flex-direction: row; }
  .cb-nav-btn { flex: 1; text-align: center; }
  .cb-generate-btn { width: 100%; }
  .cb-step-dot { width: 24px; height: 24px; font-size: 10px; }
  .cb-step-line { width: 16px; }
  .cb-section-heading { font-size: 17px; }
}

/* ═══════════════════════════════════════════════════ */
/* COOKIE CONSENT */
/* ═══════════════════════════════════════════════════ */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99998;
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(15, 27, 45, 0.98) 0%, rgba(10, 18, 32, 0.99) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(212, 168, 83, 0.12);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.cookie-consent--hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-consent__inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cookie-consent__text {
  flex: 1;
  min-width: 200px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  margin: 0;
}
.cookie-consent__link {
  color: var(--gold-soft);
  text-decoration: none;
  font-weight: 500;
}
.cookie-consent__link:hover {
  color: var(--text-cream-soft);
  text-decoration: underline;
}
.cookie-consent__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-consent__btn {
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
}
.cookie-consent__btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(212, 168, 83, 0.15);
}
.cookie-consent__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(212, 168, 83, 0.25);
}
.cookie-consent__btn--primary {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 4px 16px rgba(245, 240, 232, 0.12);
}
.cookie-consent__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 168, 83, 0.25);
}
@media (max-width: 480px) {
  .cookie-consent__inner { flex-direction: column; align-items: stretch; }
  .cookie-consent__actions { justify-content: stretch; }
  .cookie-consent__btn { flex: 1; }
}

/* ═══════════════════════════════════════════════════
   PREMIUM UI SYSTEM OVERRIDES — Navy / Cream / Gold
   ═══════════════════════════════════════════════════ */

#memberScreen,
#adminScreen,
#adminView {
  background:
    radial-gradient(circle at top, rgba(212, 168, 83, 0.04), transparent 22%),
    linear-gradient(160deg, #0F1B2D 0%, #0a1220 50%, #0F1B2D 100%);
}

.app-header {
  background:
    linear-gradient(180deg, rgba(15, 27, 45, 0.97), rgba(10, 18, 32, 0.95)) !important;
  border-bottom: 1px solid rgba(245, 240, 232, 0.1) !important;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(245, 240, 232, 0.03) !important;
}

.header-tabs .tab-btn,
.tab-btn {
  background: rgba(245, 240, 232, 0.05) !important;
  border: 1px solid rgba(245, 240, 232, 0.1) !important;
  color: var(--text-cream-soft) !important;
  box-shadow: inset 0 1px 0 rgba(245, 240, 232, 0.02);
}

.header-tabs .tab-btn:hover,
.tab-btn:hover {
  background: rgba(245, 240, 232, 0.09) !important;
  border-color: rgba(245, 240, 232, 0.16) !important;
  color: var(--cream) !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18) !important;
}

.header-tabs .tab-btn.active,
.tab-btn.active {
  background: rgba(212, 168, 83, 0.15) !important;
  border-color: rgba(212, 168, 83, 0.3) !important;
  color: var(--gold-soft) !important;
  box-shadow:
    0 14px 32px rgba(212, 168, 83, 0.1),
    inset 0 1px 0 rgba(245, 240, 232, 0.06) !important;
}

.icon-btn,
#logoutBtn,
#adminLogoutBtn {
  background: rgba(245, 240, 232, 0.06) !important;
  border: 1px solid rgba(245, 240, 232, 0.1) !important;
  color: rgba(245, 240, 232, 0.85) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.icon-btn:hover,
#logoutBtn:hover,
#adminLogoutBtn:hover {
  background: rgba(245, 240, 232, 0.1) !important;
  border-color: rgba(245, 240, 232, 0.18) !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2) !important;
}

.chat-container {
  max-width: 980px;
  padding: 12px 24px 20px;
}

@media (min-width: 769px) {
  #chatTab .chat-container {
    max-width: none;
  }
}

.chat-welcome {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 32px 60px;
}

.chat-welcome::before {
  content: none;
}

.chat-welcome::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.welcome-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 300;
  color: var(--cream);
  -webkit-text-fill-color: var(--cream);
  text-shadow: none;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.welcome-description {
  font-size: 19px;
  line-height: 1.9;
  color: var(--text-cream-soft);
  max-width: 590px;
  text-shadow: none;
  margin-bottom: 14px;
}

.welcome-reassurance {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(245, 240, 232, 0.4);
  font-style: italic;
  margin-bottom: 0;
}

.welcome-voice-hint {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-style: italic;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.58);
  max-width: 500px;
  margin: 20px 0 0;
  padding: 14px 18px;
  border-left: 2px solid rgba(212, 168, 83, 0.25);
  background: rgba(212, 168, 83, 0.04);
  border-radius: 0 10px 10px 0;
}

.welcome-hint {
  text-transform: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(245, 240, 232, 0.04);
  border: 1px solid var(--line-cream);
  color: rgba(245, 240, 232, 0.65);
  box-shadow: inset 0 1px 0 rgba(245, 240, 232, 0.03);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0;
}

@media (max-width: 768px) {
  .chat-container {
    padding: 4px 16px 16px;
  }

  .chat-welcome {
    padding: 20px 22px 12px;
  }

  .welcome-title {
    font-size: 30px;
    margin-bottom: 6px;
  }

  .welcome-description {
    font-size: 17px;
    line-height: 1.75;
    margin-bottom: 12px;
  }
}

@media (max-width: 480px) {
  .chat-welcome {
    padding: 16px 20px 8px;
  }

  .welcome-title {
    font-size: 26px;
    margin-bottom: 4px;
  }

  .welcome-description {
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 8px;
  }

  .welcome-voice-hint {
    font-size: 13.5px;
    line-height: 1.5;
    max-width: 100%;
    padding: 10px 12px;
    margin: 10px 0 0;
  }

  .welcome-hint {
    padding: 10px 15px;
    font-size: 14px;
  }
}

.chat-messages {
  max-width: 820px;
  gap: 24px;
}

.message-avatar {
  width: 42px;
  height: 42px;
  box-shadow: 0 12px 24px rgba(8, 6, 18, 0.2);
}

.message.user .message-avatar {
  background: linear-gradient(135deg, #D4A853, #B8943A);
}

.message-content {
  border-radius: 22px;
  box-shadow:
    0 18px 34px rgba(9, 7, 19, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.message.user .message-content {
  background: linear-gradient(135deg, #1a3050 0%, #14243d 100%);
  border: 1px solid rgba(212, 168, 83, 0.15);
}

.message.assistant .message-content {
  background:
    radial-gradient(circle at top left, rgba(212, 168, 83, 0.06), transparent 34%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.97), rgba(246, 242, 255, 0.95));
  border: 1px solid rgba(245, 240, 232, 0.08);
  color: #241d35;
}

.message-content h2,
.message-content h3,
.message-content strong {
  color: #241d35;
}

.chat-loading {
  background:
    linear-gradient(135deg, rgba(212, 168, 83, 0.06), rgba(245, 240, 232, 0.04));
  border: 1px solid rgba(245, 240, 232, 0.12);
  box-shadow: 0 14px 28px rgba(9, 7, 19, 0.14);
}

.chat-input-container {
  background: linear-gradient(180deg, rgba(15, 27, 45, 0), rgba(15, 27, 45, 0.92) 30%, rgba(10, 18, 32, 0.97) 100%);
}

@media (max-width: 768px) {
  .chat-input-container {
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .msg-action-btn {
    min-width: 40px;
    min-height: 40px;
    padding: 8px 14px !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
}

.response-length-selector {
  margin-bottom: 18px;
}

.length-options {
  background: rgba(10, 18, 32, 0.88);
  border: 1px solid rgba(245, 240, 232, 0.1);
  box-shadow:
    0 14px 34px rgba(8, 6, 18, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.chat-input-wrapper {
  background: rgba(245, 240, 232, 0.06);
  border: 1px solid rgba(245, 240, 232, 0.1);
  box-shadow:
    0 18px 38px rgba(8, 6, 18, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.chat-input-wrapper:focus-within {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(212, 168, 83, 0.25);
  box-shadow:
    0 0 0 3px rgba(212, 168, 83, 0.1),
    0 0 20px rgba(212, 168, 83, 0.06),
    0 20px 42px rgba(8, 6, 18, 0.24);
}

#chatInput {
  color: var(--cream);
}

#chatInput::placeholder {
  color: rgba(245, 240, 232, 0.45);
}

.send-btn {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 12px 24px rgba(212, 168, 83, 0.2);
}

.send-btn:hover {
  box-shadow: 0 16px 30px rgba(212, 168, 83, 0.3);
}

.text-btn {
  color: rgba(245, 240, 232, 0.55);
}

.text-btn:hover {
  background: rgba(245, 240, 232, 0.08);
  color: var(--cream);
}

.daily-message-wrapper {
  padding: 28px 24px 40px;
  max-width: 980px;
}

.daily-message-card {
  background:
    radial-gradient(circle at top left, rgba(212, 168, 83, 0.06), transparent 28%),
    linear-gradient(150deg, rgba(15, 27, 45, 0.96), rgba(18, 32, 52, 0.9));
  border: 1px solid rgba(245, 240, 232, 0.1);
  border-radius: 28px;
  box-shadow:
    0 24px 60px rgba(9, 7, 19, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.daily-message-header {
  border-bottom: 1px solid var(--line-cream);
}

.daily-message-header h2 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--cream);
}

.daily-message-header .date,
.daily-message-footer {
  color: rgba(245, 240, 232, 0.5);
}

.daily-message-body {
  color: var(--text-cream-soft);
}

.message-prompt {
  background:
    radial-gradient(circle at top left, rgba(212, 168, 83, 0.05), transparent 28%),
    linear-gradient(150deg, rgba(15, 27, 45, 0.94), rgba(18, 32, 52, 0.9));
  border: 1px solid rgba(245, 240, 232, 0.08);
  border-radius: 24px;
  box-shadow: 0 22px 50px rgba(9, 7, 19, 0.22);
}

.modal,
.modal-overlay {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
}

.modal-content {
  background:
    radial-gradient(circle at top left, rgba(212, 168, 83, 0.06), transparent 30%),
    linear-gradient(160deg, rgba(250, 248, 255, 0.98), rgba(241, 236, 251, 0.96));
  border: 1px solid rgba(245, 240, 232, 0.08);
  border-radius: 24px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.modal-header {
  background: transparent;
  border-bottom: 1px solid rgba(245, 240, 232, 0.08);
}

.modal-header h2,
.modal-header h3 {
  color: var(--cream);
}

.modal-close {
  background: rgba(245, 240, 232, 0.04);
  color: rgba(245, 240, 232, 0.55);
}

.modal-close:hover {
  background: rgba(245, 240, 232, 0.07);
  color: var(--cream);
}

.modal-compact .modal-header {
  background:
    linear-gradient(135deg, rgba(212, 168, 83, 0.9), rgba(184, 140, 50, 0.95));
  border-bottom: none;
}

.modal-compact .modal-header h3,
.modal-compact .modal-close {
  color: var(--navy);
}

.modal-compact {
  background:
    radial-gradient(circle at top left, rgba(212, 168, 83, 0.04), transparent 28%),
    linear-gradient(160deg, rgba(15, 27, 45, 0.98), rgba(10, 18, 32, 0.96)) !important;
  border: 1px solid rgba(245, 240, 232, 0.1) !important;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(245, 240, 232, 0.03) !important;
  color: var(--cream);
}

.modal-compact .modal-body,
.modal-wide .modal-body {
  background: transparent;
}

.modal-compact .modal-body {
  color: var(--cream);
}

.modal-compact .modal-body p,
.modal-compact .modal-body .modal-intro-text {
  color: rgba(245, 240, 232, 0.8) !important;
  line-height: 1.7;
}

.modal-compact .form-group label {
  color: var(--cream);
}

.modal-label-hint {
  font-weight: 400;
  opacity: 0.72;
  color: rgba(243, 237, 255, 0.78);
}

.modal-compact .form-group input,
.modal-compact .form-group select,
.modal-compact .form-group textarea,
.modal-wide .form-group input,
.modal-wide .form-group select,
.modal-wide .form-group textarea {
  background: rgba(10, 18, 32, 0.5) !important;
  color: var(--cream) !important;
  border: 1px solid rgba(245, 240, 232, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 12px 30px rgba(0, 0, 0, 0.18);
}

.modal-compact .form-group input:focus,
.modal-compact .form-group select:focus,
.modal-compact .form-group textarea:focus,
.modal-wide .form-group input:focus,
.modal-wide .form-group select:focus,
.modal-wide .form-group textarea:focus {
  border-color: rgba(212, 168, 83, 0.4);
  box-shadow:
    0 0 0 3px rgba(212, 168, 83, 0.1),
    0 16px 36px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.modal-compact .form-group input::placeholder,
.modal-compact .form-group textarea::placeholder {
  color: rgba(251, 248, 255, 0.32) !important;
}

.modal-compact .form-group input:-webkit-autofill,
.modal-compact .form-group input:-webkit-autofill:hover,
.modal-compact .form-group input:-webkit-autofill:focus,
.modal-compact .form-group input:-webkit-autofill:active,
.modal-compact .form-group textarea:-webkit-autofill,
.modal-compact .form-group textarea:-webkit-autofill:hover,
.modal-compact .form-group textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: #fbf8ff !important;
  caret-color: #fbf8ff;
  border: 1px solid rgba(212, 168, 83, 0.3) !important;
  -webkit-box-shadow:
    0 0 0 1000px rgba(10, 18, 32, 0.96) inset,
    0 12px 28px rgba(0, 0, 0, 0.16) !important;
  box-shadow:
    0 0 0 1000px rgba(10, 18, 32, 0.96) inset,
    0 12px 28px rgba(0, 0, 0, 0.16) !important;
  background-color: transparent !important;
}

.modal-compact textarea {
  resize: vertical;
  min-height: 110px;
}

.profile-edit-modal-shell {
  align-items: flex-start;
  padding: 28px 18px;
  overflow-y: auto;
}

.profile-edit-modal-panel {
  width: min(860px, 100%);
  margin: auto;
  background:
    radial-gradient(circle at top left, rgba(212, 168, 83, 0.04), transparent 28%),
    linear-gradient(160deg, rgba(15, 27, 45, 0.98), rgba(10, 18, 32, 0.96)) !important;
  border: 1px solid rgba(245, 240, 232, 0.1) !important;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(245, 240, 232, 0.03) !important;
  color: var(--cream);
}

.profile-edit-modal-shell .modal-header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid rgba(245, 240, 232, 0.1);
}

.profile-edit-modal-shell .modal-header h2 {
  color: var(--cream);
}

.profile-edit-modal-shell .modal-close {
  background: rgba(245, 240, 232, 0.06);
  color: rgba(245, 240, 232, 0.7);
}

.profile-edit-modal-shell .modal-close:hover {
  background: rgba(245, 240, 232, 0.1);
  color: #ffffff;
}

.profile-edit-modal-body {
  padding: 24px 28px 28px;
}

.profile-edit-form .form-group label,
.profile-edit-form .toggle-label,
.profile-edit-form .toggle-label > span:last-child > div:first-child {
  color: var(--cream) !important;
}

.profile-edit-inline-hint,
.profile-edit-help,
.profile-edit-form .toggle-description {
  color: rgba(245, 240, 232, 0.6) !important;
}

.profile-edit-input,
.profile-edit-select,
.profile-edit-textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(245, 240, 232, 0.12);
  background: rgba(10, 18, 32, 0.5) !important;
  color: var(--cream) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 12px 30px rgba(0, 0, 0, 0.18);
}

.profile-edit-input::placeholder,
.profile-edit-textarea::placeholder {
  color: rgba(245, 240, 232, 0.35);
}

.profile-edit-input:focus,
.profile-edit-select:focus,
.profile-edit-textarea:focus {
  outline: none;
  border-color: rgba(212, 168, 83, 0.4);
  box-shadow:
    0 0 0 3px rgba(212, 168, 83, 0.08),
    0 18px 34px rgba(0, 0, 0, 0.24);
}

.profile-edit-select option {
  background: var(--navy-deep);
  color: var(--cream);
}

.profile-edit-input-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.profile-edit-form .toggle-container {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 240, 232, 0.08);
  border-radius: 18px;
  padding: 16px 18px;
}

.profile-edit-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(245, 240, 232, 0.08);
}

.profile-edit-footer .btn-secondary {
  background: rgba(245, 240, 232, 0.06);
  border: 1px solid rgba(245, 240, 232, 0.1);
  color: var(--cream);
}

.profile-edit-footer .btn-secondary:hover {
  background: rgba(245, 240, 232, 0.1);
}

.cb-teaser,
.cb-wizard,
.cb-display,
.cb-list,
.cb-type-selector,
.cb-error,
.cb-generating {
  background:
    radial-gradient(circle at top left, rgba(212, 168, 83, 0.04), transparent 30%),
    linear-gradient(150deg, rgba(15, 27, 45, 0.97), rgba(10, 18, 32, 0.94));
  border: 1px solid rgba(245, 240, 232, 0.1);
  border-radius: 28px;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.cb-teaser,
.cb-wizard,
.cb-display,
.cb-list,
.cb-type-selector,
.cb-error,
.cb-generating {
  padding: 30px 24px 34px;
}

.cb-teaser-title,
.cb-wizard-header h2,
.cb-display-title,
.cb-list-header h2,
.cb-type-header h2 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--cream);
}

.cb-teaser-preview,
.cb-chart-card,
.cb-type-card,
.cb-preview-personal,
.cb-number-card,
.cb-upsell-banner {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(245, 240, 232, 0.08);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.cb-buy-btn,
.cb-generate-btn,
.cb-new-chart-btn,
.cb-nav-next,
.cb-action-btn,
.cb-upsell-link {
  background: var(--gold);
  color: var(--navy);
  border: 1px solid rgba(212, 168, 83, 0.3);
  box-shadow: 0 14px 28px rgba(212, 168, 83, 0.12);
}

.cb-nav-back,
.cb-new-btn,
.cb-back-link {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(245, 240, 232, 0.08);
  color: var(--cream);
}

.cb-input,
.cb-textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(245, 240, 232, 0.1);
  color: var(--cream);
}

.cb-input:focus,
.cb-textarea:focus {
  border-color: rgba(245, 240, 232, 0.14);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
}

.cb-label,
.cb-review-note,
.cb-type-desc,
.cb-type-sub,
.cb-chart-card-date,
.cb-paragraph,
.cb-display-date,
.cb-guarantee,
.cb-buy-sub,
.cb-preview-text,
.cb-feature small {
  color: rgba(245, 240, 232, 0.6);
}

.cb-closing-love,
.cb-closing-brand,
.cb-display-name,
.cb-chart-card-names,
.cb-type-title,
.cb-preview-overlay p {
  color: var(--cream);
}

@media (max-width: 768px) {
  .chat-container,
  .daily-message-wrapper,
  .profile-view-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .chat-welcome,
  .daily-message-card,
  .cb-teaser,
  .cb-wizard,
  .cb-display,
  .cb-list,
  .cb-type-selector,
  .cb-error,
  .cb-generating {
    border-radius: 22px;
  }

  .chat-messages {
    padding-left: 10px;
    padding-right: 10px;
  }

  .message-content {
    border-radius: 18px;
  }
}

/* ─── Free trial UX ─── */
.trial-hint {
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: rgba(232, 213, 176, 0.6);
  margin-top: 10px;
}

.trial-locked {
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
}
.trial-locked-interactive {
  opacity: 0.35;
  cursor: not-allowed;
}
.mobile-sidebar-item.trial-locked-interactive {
  opacity: 0.35;
  cursor: not-allowed;
}
.trial-lock-tooltip {
  position: fixed;
  z-index: 10000;
  background: rgba(20, 17, 24, 0.95);
  border: 1px solid rgba(232, 213, 176, 0.2);
  border-radius: 12px;
  padding: 14px 18px;
  max-width: 300px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 200ms, transform 200ms;
}
.trial-lock-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}
.trial-lock-tooltip a {
  color: #e8d5b0;
  text-decoration: none;
  display: block;
  margin-top: 8px;
  font-size: 14px;
}
.message.system {
  display: flex;
  justify-content: center;
  padding: 1.5rem 1rem;
}

.message.system .message-content {
  max-width: 420px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-style: italic;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  background: none;
  box-shadow: none;
  padding: 0;
}
.trial-early-purchase {
  text-align: center;
  padding: 8px 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
}
.trial-early-purchase a {
  color: rgba(232, 213, 176, 0.6);
  text-decoration: none;
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  padding: 0 8px;
  transition: color 200ms ease;
}
.trial-early-purchase a:hover {
  color: #e8d5b0;
}

/* ═══════════════════════════════════════════════════
   TRIAL MINI-ONBOARDING (1 slide)
   ═══════════════════════════════════════════════════ */

.trial-mini-onboarding {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) 1.25rem max(1rem, env(safe-area-inset-bottom));
  background: rgba(13, 11, 15, 0);
  backdrop-filter: blur(0);
  transition: background 400ms ease, backdrop-filter 400ms ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.trial-mini-onboarding.tmo-visible {
  background: rgba(13, 11, 15, 0.97);
  backdrop-filter: blur(4px);
}

.tmo-inner {
  max-width: 480px;
  width: 100%;
  padding: 40px 36px;
  text-align: center;
  background: rgba(15, 27, 45, 0.92);
  border: 1px solid rgba(212, 168, 83, 0.25);
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 350ms ease, transform 350ms ease;
}

.tmo-visible .tmo-inner {
  opacity: 1;
  transform: translateY(0);
}

.tmo-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 1.5rem;
}

.tmo-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: #d4a853;
  line-height: 1.25;
  margin: 0 0 1.25rem;
}

.tmo-body {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #f5f0eb;
  margin: 0 0 1rem;
}

.tmo-hint {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  font-style: italic;
  color: rgba(245, 240, 235, 0.6);
  margin: 0 0 1.75rem;
}

.tmo-start-btn {
  display: inline-block;
  width: 100%;
  max-width: 320px;
  padding: 1.1rem 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #0c0a0f;
  background: #c4a06e;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow:
    0 0 0 0 rgba(196, 160, 110, 0.12),
    0 4px 24px rgba(196, 160, 110, 0.15);
}

.tmo-start-btn:hover {
  background: #d4b482;
  transform: translateY(-2px);
  box-shadow:
    0 0 40px rgba(196, 160, 110, 0.12),
    0 8px 32px rgba(196, 160, 110, 0.25);
}

.tmo-start-btn:active {
  transform: scale(0.97);
}

@media (max-width: 600px) {
  .tmo-inner {
    padding: 28px 22px;
  }

  .tmo-heading {
    font-size: 1.45rem;
  }

  .tmo-body {
    font-size: 0.95rem;
  }

  .tmo-hint {
    font-size: 13px;
  }

  .tmo-start-btn {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 360px) {
  .tmo-inner {
    padding: 22px 16px;
  }
  .tmo-heading {
    font-size: 1.3rem;
  }
  .tmo-body {
    font-size: 0.88rem;
  }
  .tmo-start-btn {
    padding: 0.9rem 1rem;
    font-size: 0.88rem;
  }
}

.trial-voice-nudge {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  color: rgba(232, 213, 176, 0.85);
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0 32px 10px;
  line-height: 1.4;
}

/* Trial guided prompt — replaces starter chips */
.trial-guided-prompt {
  padding: 20px 18px 12px;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}
.tgp-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: rgba(245, 240, 232, 0.92);
  margin: 0 0 14px;
  line-height: 1.35;
}
.tgp-examples {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: rgba(245, 240, 232, 0.5);
  margin: 0 0 16px;
  line-height: 1.7;
}
.tgp-example {
  font-style: italic;
  color: rgba(232, 213, 176, 0.55);
}
.tgp-nudge {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(245, 240, 232, 0.4);
  margin: 0;
}
@media (max-width: 600px) {
  .trial-guided-prompt {
    padding: 16px 14px 10px;
  }
  .tgp-heading { font-size: 16px; }
  .tgp-examples { font-size: 13px; }
}

@media (max-width: 360px) {
  .chat-welcome {
    padding: 10px 14px 4px;
  }
  .welcome-title {
    font-size: 24px;
    margin-bottom: 2px;
  }
  .welcome-description {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 4px;
  }
  .welcome-voice-hint {
    font-size: 13px;
    padding: 8px 10px;
    margin: 8px 0 0;
  }
}

.tcs-inner.tcs-enhanced {
  max-width: 520px;
}

.tcs-testimonials {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tcs-testimonial {
  padding: 12px 16px;
  background: rgba(232, 213, 176, 0.05);
  border-radius: 8px;
  border-left: 3px solid #d4a853;
  text-align: left;
}

.tcs-quote {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: #f5f0eb;
  font-style: italic;
  margin: 0 0 8px;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: break-word;
}

.tcs-cite {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(245, 240, 235, 0.55);
}

.tcs-comparison {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin: 16px 0;
  justify-content: center;
  flex-wrap: wrap;
}

.tcs-compare-item {
  padding: 12px 20px;
  border-radius: 8px;
  text-align: center;
  min-width: 140px;
  flex: 1 1 140px;
  max-width: 220px;
}

.tcs-compare-label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(245, 240, 235, 0.6);
  margin-bottom: 6px;
}

.tcs-compare-price {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #f5f0eb;
}

.tcs-compare-price small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: rgba(245, 240, 235, 0.5);
  margin-top: 4px;
}

.tcs-compare-other {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tcs-compare-other .tcs-compare-price {
  text-decoration: line-through;
  color: rgba(245, 240, 235, 0.5);
}

.tcs-compare-patark {
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid rgba(212, 168, 83, 0.3);
}

.tcs-compare-patark .tcs-compare-price {
  color: #e8d5b0;
}

@media (max-width: 600px) {
  .tcs-comparison {
    flex-direction: column;
    align-items: stretch;
  }

  .tcs-compare-item {
    max-width: none;
  }
}

.trial-complete-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(13, 11, 15, 0.0);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top, 0px)) 1.5rem max(1rem, env(safe-area-inset-bottom, 0px));
  transition: background 400ms ease;
  backdrop-filter: blur(0px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.trial-complete-screen.tcs-visible {
  background: rgba(13, 11, 15, 0.97);
  backdrop-filter: blur(4px);
}
.tcs-inner {
  max-width: 480px;
  width: 100%;
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
  transition-delay: 200ms;
  padding: 32px 28px;
  box-sizing: border-box;
  max-height: none;
  overflow-y: visible;
  margin: auto;
}
.tcs-visible .tcs-inner {
  opacity: 1;
  transform: translateY(0);
}
.tcs-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1rem;
}
.tcs-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.45rem, 5vw, 2.2rem);
  font-weight: 400;
  line-height: 1.2;
  color: #f5f0eb;
  margin-bottom: 1.1rem;
}
.tcs-heading em {
  font-style: italic;
  color: #e8d5b0;
}
.tcs-body {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.tcs-body-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.tcs-body-accent {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(230, 198, 144, 0.95);
  text-align: center;
  margin: 1.5rem 0;
  line-height: 1.5;
}
.tcs-testimonials blockquote {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: rgba(245, 240, 235, 0.8);
  line-height: 1.6;
  margin: 0 0 1.2rem;
  padding: 0 0 0 0.85rem;
  border-left: 2px solid rgba(196, 160, 110, 0.4);
}
.tcs-testimonials blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 14px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.5);
}
.tcs-value-stack {
  margin: 1.5rem 0 1.75rem;
  padding: 1.25rem 1.25rem 1.1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 168, 83, 0.15);
}
.tcs-stack-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(212, 168, 83, 0.75);
  margin-bottom: 0.85rem;
}
.tcs-stack-item {
  display: flex;
  align-items: flex-start;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(245, 240, 232, 0.85);
  margin-bottom: 0.7rem;
}
.tcs-stack-item strong {
  color: rgba(245, 240, 232, 0.97);
}
.tcs-marker {
  color: rgba(212, 168, 83, 0.7);
  margin-right: 0.6rem;
  flex-shrink: 0;
  font-size: 14px;
  margin-top: 0.15rem;
}
.tcs-value-stack {
  margin: 1rem 0;
  text-align: left;
}
.tcs-stack-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14.5px;
  color: rgba(245, 240, 232, 0.88);
  line-height: 1.5;
}
.tcs-check {
  color: #6EBB8D;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}
.tcs-gift-box {
  margin: 1rem 0;
  padding: 14px 16px;
  background: rgba(232, 213, 176, 0.08);
  border: 1px solid rgba(232, 213, 176, 0.2);
  border-radius: 10px;
  text-align: left;
}
.tcs-gift-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e8d5b0;
  margin: 0 0 6px;
}
.tcs-gift-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: rgba(245, 240, 232, 0.78);
  line-height: 1.55;
  margin: 0;
}
.tcs-divider {
  border-top: 1px solid rgba(245, 240, 232, 0.08);
  margin: 1rem 0;
}
.tcs-testimonial-single {
  padding: 14px 16px;
  background: rgba(15, 27, 45, 0.35);
  border-radius: 10px;
  border-left: 3px solid rgba(196, 160, 110, 0.5);
  text-align: left;
  margin: 0 0 1rem;
}
.tcs-testimonial-quote {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  color: rgba(245, 240, 232, 0.88);
  line-height: 1.55;
  font-style: italic;
  margin: 0 0 6px;
}
.tcs-testimonial-cite {
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  color: rgba(196, 160, 110, 0.9);
  font-weight: 600;
  margin: 0;
}
.tcs-scarcity-line {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #e06060;
  text-align: center;
  margin: 0 0 0.5rem;
  line-height: 1.5;
}
.tcs-bridge {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(245, 240, 232, 0.9);
  text-align: center;
  line-height: 1.6;
  margin: 0 0 1rem;
  padding: 0 0.5rem;
}
.tcs-bridge em { color: rgba(232, 213, 176, 0.95); font-style: italic; }
.tcs-price-block {
  text-align: center;
  margin: 0 0 0.25rem;
}
.tcs-price-now {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  color: #f5f0e8;
}
.tcs-price-detail {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(245, 240, 232, 0.45);
  margin-left: 8px;
}
.tcs-offer {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  color: #f5f0eb;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.tcs-offer span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}
.tcs-cta-btn {
  display: block;
  width: 100%;
  margin: 1.4rem 0 1rem;
  padding: 1.15rem 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #0C0A0F;
  background: linear-gradient(135deg, #D4B482 0%, #C4A06E 50%, #B89258 100%);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 0 0 0 rgba(196, 160, 110, 0.12), 0 4px 24px rgba(196, 160, 110, 0.2);
  box-sizing: border-box;
}
.tcs-cta-btn:hover {
  background: linear-gradient(135deg, #E0C494 0%, #D4B482 50%, #C4A06E 100%);
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(196, 160, 110, 0.15), 0 8px 32px rgba(196, 160, 110, 0.3);
}
.tcs-unlocks {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin: 0.75rem 0 1.25rem;
  text-align: center;
}
.tcs-instant {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: rgba(212, 168, 83, 0.65);
  text-align: center;
  margin: 0.5rem 0 0;
  letter-spacing: 0.01em;
}
.tcs-dismiss {
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0.7rem 0;
  margin-bottom: 1.2rem;
  transition: color 200ms ease;
  text-align: left;
  width: 100%;
  display: block;
}
.tcs-dismiss:hover {
  color: rgba(255, 255, 255, 0.9);
}

.trial-follow-up-inline {
  margin-top: 1.2rem;
  padding: 14px 16px;
  border-left: 3px solid rgba(212, 168, 83, 0.45);
  background: rgba(212, 168, 83, 0.05);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: #3d3835;
  opacity: 0;
  animation: trialFollowUpFadeIn 1200ms ease forwards;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.trial-follow-up-inline:hover {
  background: rgba(212, 168, 83, 0.10);
  border-color: rgba(212, 168, 83, 0.65);
}
.trial-follow-up-question {
  font-size: 15px;
  font-weight: 400;
  color: #3d3835;
  line-height: 1.6;
}
@keyframes trialFollowUpFadeIn {
  to { opacity: 1; }
}

.trial-warm-note {
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-style: italic;
  color: rgba(245, 240, 232, 0.55);
  padding: 1rem 1.5rem;
  margin: 0.75rem auto;
  max-width: 320px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1s ease, transform 1s ease;
}
.trial-warm-note--visible {
  opacity: 1;
  transform: translateY(0);
}
.trial-warm-note__sub {
  font-size: 12px;
  color: rgba(232, 213, 176, 0.4);
  font-style: normal;
  display: inline-block;
  margin-top: 4px;
}

.trial-inline-cta {
  text-align: center;
  padding: 1.2rem 1.5rem;
  background: rgba(15, 27, 45, 0.6);
  border-top: 1px solid rgba(232, 213, 176, 0.15);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 800ms ease, transform 800ms ease;
}
.trial-inline-cta--visible {
  opacity: 1;
  transform: translateY(0);
}
.trial-inline-cta__text {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: rgba(245, 240, 232, 0.65);
  line-height: 1.5;
  margin: 0 0 0.8rem;
}
.trial-inline-cta__btn {
  display: inline-block;
  background: linear-gradient(135deg, #D4B482 0%, #C4A06E 50%, #B89258 100%);
  color: #0C0A0F;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 100px;
  cursor: pointer;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 300ms ease;
  box-shadow: 0 4px 16px rgba(196, 160, 110, 0.2);
}
.trial-inline-cta__btn:hover {
  background: linear-gradient(135deg, #E0C494 0%, #D4B482 50%, #C4A06E 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(196, 160, 110, 0.3);
}
/* ─── Inline Q3 Conversion Block ─────────────────── */
.trial-q3-conversion {
  margin: 1rem 0 0;
  padding: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1200ms ease, transform 1200ms ease;
}
.tq3c-visible {
  opacity: 1;
  transform: translateY(0);
}
.tq3c-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 213, 176, 0.25), transparent);
  margin: 2rem 0 1.8rem;
}
.tq3c-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: #f5f0e8;
  margin: 0 0 1.2rem;
  padding: 0 0.5rem;
  line-height: 1.35;
}
.tq3c-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(245, 240, 232, 0.82);
  margin: 0 0 1rem;
  padding: 0 0.5rem;
}
.tq3c-text--accent {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(232, 213, 176, 0.95);
  font-weight: 400;
  text-align: center;
  margin: 1.5rem 0 1.8rem;
  line-height: 1.5;
}
.tq3c-offer {
  background: rgba(15, 27, 45, 0.5);
  border: 1px solid rgba(232, 213, 176, 0.12);
  border-radius: 16px;
  padding: 1.5rem 1.2rem 1.8rem;
}
.tq3c-offer-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #D4B482;
  margin: 0 0 1rem;
}
.tq3c-stack {
  margin-bottom: 1.2rem;
}
.tq3c-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  color: rgba(245, 240, 232, 0.82);
  line-height: 1.45;
}
.tq3c-check {
  color: #D4B482;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.tq3c-gift {
  background: rgba(212, 180, 130, 0.08);
  border: 1px solid rgba(212, 180, 130, 0.2);
  border-radius: 12px;
  padding: 1rem 1rem;
  margin-bottom: 1.2rem;
  text-align: center;
}
.tq3c-gift-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #D4B482;
  margin: 0 0 0.4rem;
}
.tq3c-gift-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: rgba(245, 240, 232, 0.75);
  line-height: 1.55;
  margin: 0;
}
.tq3c-testimonial {
  text-align: center;
  margin: 1rem 0;
  padding: 0 0.5rem;
}
.tq3c-quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(245, 240, 232, 0.7);
  line-height: 1.6;
  margin: 0 0 0.3rem;
}
.tq3c-cite {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  color: rgba(232, 213, 176, 0.5);
  margin: 0;
}
.tq3c-scarcity {
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  color: rgba(232, 213, 176, 0.55);
  margin: 0.8rem 0 0.5rem;
}
.tq3c-bridge {
  text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(245, 240, 232, 0.78);
  line-height: 1.6;
  margin: 1.2rem 0;
  padding: 1rem 0.5rem;
  border-top: 1px solid rgba(232, 213, 176, 0.1);
}
.tq3c-bridge p { margin: 0; }
.tq3c-bridge em { color: rgba(232, 213, 176, 0.95); font-style: italic; }
.tq3c-price {
  text-align: center;
  margin: 0.5rem 0 0.6rem;
}
.tq3c-price-context {
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: rgba(245, 240, 232, 0.5);
  margin: 0 0 1rem;
  line-height: 1.5;
}
.tq3c-price-now {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #f5f0e8;
}
.tq3c-price-detail {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  color: rgba(232, 213, 176, 0.55);
  margin-top: 0.15rem;
}
.tq3c-cta {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, #D4B482 0%, #C4A06E 50%, #B89258 100%);
  color: #0C0A0F;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.9rem 2rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 300ms ease;
  box-shadow: 0 4px 16px rgba(196, 160, 110, 0.25);
  -webkit-appearance: none;
  appearance: none;
}
.tq3c-cta:hover {
  background: linear-gradient(135deg, #E0C494 0%, #D4B482 50%, #C4A06E 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(196, 160, 110, 0.35);
}
@media (max-width: 480px) {
  .tq3c-text { font-size: 1.05rem; padding: 0; }
  .tq3c-offer { padding: 1.2rem 1rem 1.5rem; }
  .tq3c-cta { padding: 0.95rem 1.5rem; min-height: 48px; touch-action: manipulation; }
}

.trial-slim-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 20, 35, 0.95);
  border-top: 1px solid rgba(232, 213, 176, 0.2);
  text-align: center;
  padding: 0.75rem 1rem;
  z-index: 9999;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 500ms ease, transform 500ms ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.trial-slim-banner--visible {
  opacity: 1;
  transform: translateY(0);
}
.trial-slim-banner__link {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #e8d5b0;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 200ms ease;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}
.trial-slim-banner__link:hover {
  color: #f0e0c4;
}

/* ThriveCart modal removed — checkout now redirects to full page */

.trial-counter {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  text-align: right;
  margin-top: 8px;
  height: 0;
  overflow: visible;
  transition: opacity 600ms ease;
}
.trial-counter-link {
  color: rgba(232, 213, 176, 0.6);
  text-decoration: none;
  transition: color 200ms ease;
}
.trial-counter-link:hover {
  color: rgba(232, 213, 176, 0.85);
}

.trial-inline-banner {
  background: rgba(232, 213, 176, 0.06);
  border: 1px solid rgba(232, 213, 176, 0.15);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
}
.trial-inline-banner__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(245, 240, 235, 0.9);
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin: 0 0 6px;
}
.trial-inline-banner__sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
  line-height: 1.5;
}
.trial-inline-banner a {
  color: #e8d5b0;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.trial-inline-banner a:hover {
  text-decoration: underline;
}

.trial-progress-bar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  background: rgba(15, 27, 45, 0.95);
  border-bottom: 1px solid rgba(232, 213, 176, 0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.tpb-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 720px;
}

.tpb-steps {
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex-shrink: 0;
}

.tpb-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(232, 213, 176, 0.25);
  color: rgba(245, 240, 235, 0.55);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 300ms ease;
}

.tpb-step.tpb-done {
  background: rgba(212, 168, 83, 0.22);
  border-color: #d4a853;
  color: #d4a853;
  box-shadow: 0 0 8px rgba(212, 168, 83, 0.15);
}

.tpb-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: rgba(245, 240, 235, 0.65);
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tpb-upgrade {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #d4a853;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.tpb-upgrade:hover {
  text-decoration: underline;
}



#chatInput:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.purchase-activating {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  padding: 14px 20px;
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  background: rgba(30, 25, 35, 0.97);
  color: #e8d5b0;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.pa-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(232, 213, 176, 0.3);
  border-top-color: #e8d5b0;
  border-radius: 50%;
  animation: pa-spin 0.8s linear infinite;
}
@keyframes pa-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ─── Trial inline CTA: mobile ─────────────────── */
@media (max-width: 768px) {
  .trial-inline-cta__btn {
    padding: 0.85rem 2rem;
    min-height: 48px;
    touch-action: manipulation;
  }
}

/* ─── Trial Mobile: 768px ─────────────────── */
@media (max-width: 768px) {
  .tcs-inner {
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 24px 20px calc(20px + env(safe-area-inset-bottom, 0px));
    margin: auto;
  }
  .tcs-body {
    margin-bottom: 1rem;
  }
  .tcs-dismiss {
    padding: 14px 0;
    min-height: 48px;
    font-size: 0.92rem;
  }
  .trial-inline-banner {
    padding: 14px;
    font-size: 14px;
  }
}

/* ─── Trial Complete: 480px ─────────────────── */
@media (max-width: 480px) {
  .trial-complete-screen {
    padding: max(0.5rem, env(safe-area-inset-top)) 1rem max(0.5rem, env(safe-area-inset-bottom));
  }
  .tcs-inner {
    padding: 20px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .tcs-heading {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
  }
  .tcs-body {
    font-size: 15px;
    margin-bottom: 0.85rem;
  }
  .tcs-body-sub {
    font-size: 0.9rem;
  }
  .tcs-body-accent {
    font-size: 1rem;
    margin: 1.2rem 0;
  }
  .tcs-testimonials {
    margin: 10px 0;
    gap: 8px;
  }
  .tcs-testimonial {
    padding: 10px 12px;
  }
  .tcs-quote {
    font-size: 14px;
    margin-bottom: 4px;
  }
  .tcs-comparison {
    margin: 10px 0;
    gap: 8px;
  }
  .tcs-compare-item {
    padding: 10px 14px;
    min-width: 120px;
  }
  .tcs-offer {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
  }
  .tcs-unlocks {
    font-size: 14px;
    margin: 0.5rem 0 0.75rem;
  }
  .tcs-cta-btn {
    margin: 0.85rem 0 0.6rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  .tcs-guarantee {
    font-size: 13px;
    margin: 0.5rem 0;
  }
  .tcs-dismiss {
    font-size: 15px;
    min-height: 48px;
    padding: 14px 0;
  }
}
/* ─── Trial Mobile: 600px ─────────────────── */
@media (max-width: 600px) {
  .trial-counter {
    font-size: 13px;
  }
  .trial-progress-bar {
    position: fixed;
    top: var(--header-height, 64px);
    left: 0;
    right: 0;
    padding: 0 10px;
    border-radius: 0;
  }
  .has-trial-progress .chat-container {
    padding-top: 44px;
  }
  .tpb-text {
    font-size: 13px;
  }
  .tpb-upgrade {
    display: none;
  }
  .tpb-inner {
    gap: 8px;
  }
}
/* ─── Trial Mobile: 360px ─────────────────── */
@media (max-width: 360px) {
  .tcs-inner {
    padding: 16px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .tcs-logo {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }
  .tcs-heading {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  .tcs-body {
    font-size: 14px;
    margin-bottom: 0.5rem;
  }
  .tcs-testimonials {
    margin: 8px 0;
    gap: 6px;
  }
  .tcs-testimonial {
    padding: 8px 10px;
  }
  .tcs-quote {
    font-size: 13px;
  }
  .tcs-cite {
    font-size: 13px;
  }
  .tcs-comparison {
    margin: 8px 0;
  }
  .tcs-compare-item {
    padding: 8px 10px;
  }
  .tcs-compare-label {
    font-size: 13px;
  }
  .tcs-compare-price {
    font-size: 0.92rem;
  }
  .tcs-offer {
    font-size: 15px;
  }
  .tcs-unlocks {
    font-size: 13px;
    margin: 0.35rem 0 0.5rem;
  }
  .tcs-cta-btn {
    padding: 14px 24px;
    font-size: 0.95rem;
    margin: 0.6rem 0 0.5rem;
  }
  .tcs-guarantee {
    font-size: 13px;
    margin: 0.35rem 0;
  }
  .trial-inline-banner {
    font-size: 14px;
    padding: 12px 10px;
  }
}

/* ─── Q3 Breathing Warmth ─────────────────── */
.chat-messages--breathing {
  animation: breathe-warm 8s ease-in-out infinite;
}
@keyframes breathe-warm {
  0%, 100% { background-color: transparent; }
  50% { background-color: rgba(212, 168, 83, 0.02); }
}

/* ─── Paragraph Reveal Animation ─────────────────── */
.message.assistant.new-message .message-content .reveal-p {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.message.assistant.new-message .message-content .reveal-p.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Session Quote on Trial Complete ─────────────────── */
.tcs-session-quote {
  text-align: center;
  margin-bottom: 20px;
  padding: 0 12px;
}
.tcs-session-quote blockquote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  font-style: italic;
  color: rgba(245, 240, 232, 0.75);
  line-height: 1.6;
  margin: 0;
}
.tcs-session-quote cite {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: rgba(245, 240, 232, 0.5);
  font-style: normal;
  letter-spacing: 0.02em;
}

.tcs-mirror-line {
  text-align: center;
  padding: 20px 24px;
  margin-bottom: 20px;
  opacity: 0;
  animation: tcsMirrorFadeIn 1.2s ease-out 0.3s forwards;
}

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

.tcs-mirror-label {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(212, 168, 83, 0.75);
  margin: 0 0 12px 0;
  font-weight: 500;
}

.tcs-mirror-quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.6;
  color: rgba(245, 240, 232, 0.9);
  border-left: 2px solid rgba(212, 168, 83, 0.4);
  padding: 0 0 0 18px;
  margin: 0 auto;
  max-width: 400px;
  text-align: left;
  overflow-wrap: break-word;
  word-break: break-word;
}

.trial-breath-gate {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  background: rgba(10, 15, 26, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.trial-breath-gate.tbg-visible {
  opacity: 1;
}

.tbg-inner {
  text-align: center;
}

.tbg-circle {
  width: 80px;
  height: 80px;
  border: 2px solid rgba(212, 168, 83, 0.5);
  border-radius: 50%;
  margin: 0 auto 28px;
  animation: tbgPulse 4s ease-in-out infinite;
}

@keyframes tbgPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.25);
    opacity: 0.9;
  }
}

.tbg-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  color: rgba(245, 240, 232, 0.7);
  font-style: italic;
  letter-spacing: 0.02em;
}

@media (max-width: 480px) {
  .trial-breath-gate .tbg-inner { padding: 2rem 1.5rem; }
  .trial-breath-gate .tbg-circle { width: 80px; height: 80px; }
  .trial-breath-gate .tbg-text { font-size: 0.95rem; }
}

/* ═══════════════════════════════════════════════════
   RITUAL LAYER
   ═══════════════════════════════════════════════════ */

.ritual-threshold {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #0a0a0c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
  gap: 24px;
  cursor: pointer;
}

.ritual-threshold-line {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  color: #f5f0e8;
  max-width: 500px;
  text-align: center;
  line-height: 1.8;
  font-weight: 400;
  margin: 0;
}

.ritual-mirror-line {
  font-style: italic;
  color: rgba(212, 175, 55, 0.8);
}

.ritual-threshold-prompt {
  font-size: 0.85rem;
  color: rgba(245, 240, 232, 0.45);
  margin: 0;
}

.ritual-threshold-enter {
  font-size: 0.82rem;
  color: rgba(212, 175, 55, 0.3);
  margin: 0;
  transition: opacity 1.2s ease;
  letter-spacing: 2px;
}

.ritual-threshold-anchor {
  font-size: 0.75rem;
  color: rgba(212, 175, 55, 0.25);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0;
}

.ritual-breathing-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.03);
  animation: ritual-breathe 8s ease-in-out infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

@keyframes ritual-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
  50% { transform: translate(-50%, -50%) scale(1.6); opacity: 0.08; }
}

.ritual-mirror-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.ritual-mirror-buttons button {
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: rgba(212, 175, 55, 0.7);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.ritual-mirror-buttons button:hover {
  border-color: rgba(212, 175, 55, 0.6);
  color: rgba(212, 175, 55, 1);
}

.ritual-season-label {
  font-size: 0.7rem;
  color: rgba(212, 175, 55, 0.45);
  display: flex;
  align-items: center;
  margin-right: auto;
  margin-left: 8px;
  font-style: italic;
  vertical-align: middle;
}

.ritual-witness {
  text-align: center;
  padding: 16px 12px;
  color: rgba(212, 175, 55, 0.5);
  font-size: 0.78rem;
  font-style: italic;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.ritual-witness--visible {
  opacity: 1;
}

.ritual-release {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 12, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  padding: 24px;
  transition: opacity 0.6s ease;
}

.ritual-release--fading {
  opacity: 0;
}

.ritual-release-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 400px;
  width: 100%;
}

.ritual-release-prompt {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: #f5f0e8;
  text-align: center;
  line-height: 1.6;
  margin: 0;
}

.ritual-release-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(245, 240, 232, 0.2);
  color: #f5f0e8;
  font-size: 1rem;
  padding: 12px 4px;
  width: 100%;
  text-align: center;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s ease;
}

.ritual-release-input:focus {
  border-bottom-color: rgba(212, 175, 55, 0.4);
}

.ritual-release-dissolve {
  animation: ritual-dissolve 2s ease forwards;
}

@keyframes ritual-dissolve {
  0% { opacity: 1; letter-spacing: 0; }
  50% { opacity: 0.4; letter-spacing: 8px; }
  100% { opacity: 0; letter-spacing: 20px; }
}

.ritual-release-btn {
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: rgba(212, 175, 55, 0.7);
  padding: 10px 28px;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.ritual-release-btn:hover {
  border-color: rgba(212, 175, 55, 0.6);
  color: rgba(212, 175, 55, 1);
}

.ritual-release-message {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: rgba(245, 240, 232, 0.7);
  text-align: center;
  line-height: 1.6;
  animation: fadeInSlow 1.5s ease;
}

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

.ritual-letter {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: #f5f0e8;
  max-width: 500px;
  text-align: center;
  line-height: 2.0;
}

.ritual-letter p {
  margin: 0;
}

.ritual-freedom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.ritual-freedom-export-btn {
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: rgba(212, 175, 55, 0.7);
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.ritual-freedom-export-btn:hover {
  border-color: rgba(212, 175, 55, 0.6);
  color: rgba(212, 175, 55, 1);
}

.ritual-anchor-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9997;
  padding: 24px;
}

.ritual-anchor-modal-content {
  background: #1a1a1f;
  border-radius: 16px;
  padding: 28px 24px;
  max-width: 340px;
  width: 100%;
  text-align: center;
}

.ritual-anchor-modal-content h3 {
  color: #f5f0e8;
  font-size: 1.1rem;
  margin: 0 0 6px;
  font-weight: 500;
}

.ritual-anchor-modal-content p {
  color: rgba(245, 240, 232, 0.5);
  font-size: 0.85rem;
  margin: 0 0 18px;
}

.ritual-anchor-modal-content input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(245, 240, 232, 0.2);
  color: #f5f0e8;
  font-size: 1.1rem;
  padding: 10px 4px;
  width: 100%;
  text-align: center;
  font-family: inherit;
  outline: none;
  margin-bottom: 20px;
}

.ritual-anchor-modal-content input:focus {
  border-bottom-color: rgba(212, 175, 55, 0.4);
}

.ritual-anchor-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.ritual-btn-primary {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: rgba(212, 175, 55, 0.9);
  padding: 8px 22px;
  border-radius: 20px;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
}

.ritual-btn-secondary {
  background: transparent;
  border: 1px solid rgba(245, 240, 232, 0.15);
  color: rgba(245, 240, 232, 0.5);
  padding: 8px 22px;
  border-radius: 20px;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
}

.release-btn {
  font-size: 1rem;
}

@media (max-width: 600px) {
  .ritual-threshold-line {
    font-size: clamp(1rem, 5vw, 1.3rem);
    max-width: 90vw;
  }
  .ritual-mirror-buttons {
    gap: 8px;
  }
  .ritual-mirror-buttons button {
    padding: 7px 14px;
    font-size: 0.78rem;
  }
  .ritual-release-prompt {
    font-size: 1.05rem;
  }
  .ritual-anchor-modal-content {
    padding: 22px 18px;
  }
}

@media (max-width: 360px) {
  .ritual-threshold-line {
    font-size: 1rem;
  }
  .ritual-mirror-buttons {
    flex-direction: column;
    align-items: center;
  }
}

