/* ================================================================
   Coach IA — Coaching empresarial premium
   Paleta: dark navy + gold accents + clean whites
   ================================================================ */

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

:root {
  --navy: #0f172a;
  --navy-light: #1e293b;
  --navy-medium: #334155;
  --gold: #d4a853;
  --gold-light: #f0d68a;
  --gold-dark: #b8922e;
  --accent: #3b82f6;
  --accent-dark: #2563eb;
  --bg: #fafbfc;
  --surface: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --success: #059669;
  --success-bg: #ecfdf5;
  --warning: #d97706;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* ================================================================
   LANDING — Hero premium con fondo oscuro
   ================================================================ */
.landing {
  min-height: 100vh;
  background: var(--navy);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.landing-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(212,168,83,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(59,130,246,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(212,168,83,0.05) 0%, transparent 40%);
  pointer-events: none;
}

.landing-nav {
  width: 100%;
  max-width: 1100px;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.5px;
}

.nav-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

.nav-login {
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 20px;
  border: 1px solid rgba(212,168,83,0.3);
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-login:hover {
  background: rgba(212,168,83,0.1);
  border-color: var(--gold);
}

.landing-content {
  max-width: 720px;
  text-align: center;
  padding: 4rem 2rem 3rem;
  position: relative;
  z-index: 2;
}

.landing-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(212,168,83,0.12);
  border: 1px solid rgba(212,168,83,0.25);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.landing-content h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: white;
  letter-spacing: -1px;
}

.landing .subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.landing .subtitle strong {
  color: white;
}

/* ---- BUTTONS ---- */
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  border: none;
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-body);
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212,168,83,0.3);
}

.btn-primary:disabled {
  background: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-glow {
  box-shadow: 0 0 30px rgba(212,168,83,0.2);
}

.btn-arrow {
  font-size: 1.2rem;
  transition: transform 0.2s;
}

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

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--border);
  padding: 12px 28px;
  font-size: 0.95rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-body);
  margin-top: 1rem;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(59,130,246,0.04);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
}

.btn-completed {
  background: var(--success) !important;
  color: white !important;
  cursor: default;
}

/* Social proof */
.social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.proof-avatars {
  display: flex;
}

.proof-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -6px;
  border: 2px solid var(--navy);
}

.proof-av:first-child { margin-left: 0; }

/* Features */
.landing-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  padding: 0 2rem 3rem;
  position: relative;
  z-index: 2;
}

.feature {
  text-align: center;
  padding: 1.5rem;
}

.feature-icon {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.feature h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: white;
}

.feature p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.disclaimer {
  padding: 1.5rem 2rem 2rem;
  font-size: 0.8rem;
  color: var(--navy-medium);
  text-align: center;
  position: relative;
  z-index: 2;
}

.landing .disclaimer {
  color: rgba(148,163,184,0.5);
}

/* ================================================================
   LOGIN
   ================================================================ */
.login-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
  background: var(--bg);
}

.login-content {
  max-width: 400px;
  width: 100%;
  text-align: center;
  background: var(--surface);
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.login-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 1.5rem;
}

.login-content h2 {
  font-family: var(--font-display);
  margin-bottom: 0.4rem;
  font-size: 1.5rem;
}

.login-content p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.login-content input {
  display: block;
  width: 100%;
  padding: 13px 16px;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: var(--bg);
  transition: border-color 0.2s;
}

.login-content input:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
}

.login-content .btn-primary {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

.login-error {
  background: var(--danger-bg);
  color: var(--danger);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

.back-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.back-link:hover { color: var(--accent); }

/* ================================================================
   CHAT — Immersive dark premium experience
   ================================================================ */
.chat-container {
  max-width: 100%;
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  position: relative;
}

/* Ambient background glow */
.chat-container::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 15% 80%, rgba(212,168,83,0.06) 0%, transparent 100%),
    radial-gradient(ellipse 500px 500px at 85% 20%, rgba(59,130,246,0.04) 0%, transparent 100%),
    radial-gradient(ellipse 800px 300px at 50% 50%, rgba(212,168,83,0.03) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* --- Header --- */
.chat-header {
  padding: 1.25rem 1.5rem;
  background: rgba(15,23,42,0.95);
  border-bottom: 1px solid rgba(212,168,83,0.12);
  color: white;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(20px);
}

.header-info {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 0 20px rgba(212,168,83,0.25), 0 0 60px rgba(212,168,83,0.08);
  position: relative;
}

.avatar::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 16px;
  border: 1px solid rgba(212,168,83,0.2);
}

.header-title {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.3px;
  color: white;
}

.header-subtitle {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 500;
  opacity: 0.7;
}

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

.progress-bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 12px rgba(212,168,83,0.5);
}

.progress-text {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* --- Messages area — dark immersive --- */
.messages {
  flex: 1;
  overflow-y: auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

/* Custom scrollbar for dark theme */
.messages::-webkit-scrollbar { width: 6px; }
.messages::-webkit-scrollbar-track { background: transparent; }
.messages::-webkit-scrollbar-thumb {
  background: rgba(212,168,83,0.15);
  border-radius: 3px;
}
.messages::-webkit-scrollbar-thumb:hover { background: rgba(212,168,83,0.25); }

.message {
  max-width: 80%;
  padding: 16px 20px;
  border-radius: 18px;
  line-height: 1.7;
  font-size: 0.94rem;
  animation: msgIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.message-assistant {
  background: rgba(30,41,59,0.8);
  backdrop-filter: blur(12px);
  color: rgba(255,255,255,0.92);
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  border: 1px solid rgba(212,168,83,0.1);
  box-shadow:
    0 2px 12px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.message-assistant::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
  border-radius: 2px;
  opacity: 0.6;
}

.message-user {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  color: var(--navy);
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  box-shadow: 0 4px 16px rgba(212,168,83,0.2);
  font-weight: 500;
}

.message-assistant strong { color: var(--gold-light); }

.message-assistant ol { padding-left: 1.2rem; margin: 0.5rem 0; }
.message-assistant li { margin-bottom: 0.3rem; }
.message-assistant a { color: var(--gold-light); }

/* --- Typing indicator --- */
.typing-indicator {
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.typing-dots { display: flex; gap: 5px; }

.typing-dots span {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: typingBounce 1.2s infinite;
  box-shadow: 0 0 6px rgba(212,168,83,0.4);
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.25; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* --- Input area — floating dark glass --- */
.chat-input-area {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  gap: 10px;
  background: rgba(15,23,42,0.95);
  border-top: 1px solid rgba(212,168,83,0.08);
  backdrop-filter: blur(20px);
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

#user-input {
  flex: 1;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 0.94rem;
  font-family: var(--font-body);
  resize: none;
  outline: none;
  background: rgba(255,255,255,0.05);
  color: white;
  transition: all 0.3s;
}

#user-input::placeholder { color: rgba(255,255,255,0.25); }

#user-input:focus {
  border-color: rgba(212,168,83,0.4);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(212,168,83,0.06), 0 0 20px rgba(212,168,83,0.05);
}

.btn-send {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(212,168,83,0.15);
}

.btn-send:disabled {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.15);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-send:not(:disabled):hover {
  transform: scale(1.06);
  box-shadow: 0 0 30px rgba(212,168,83,0.3);
}

/* ================================================================
   RESULTS — Dark premium immersive
   ================================================================ */
.results-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  min-height: 100vh;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.results-container > * {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.results-container > button {
  display: block;
}

.results-container::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 30%, rgba(212,168,83,0.05) 0%, transparent 100%),
    radial-gradient(ellipse 500px 500px at 80% 70%, rgba(59,130,246,0.03) 0%, transparent 100%);
  pointer-events: none;
}

.results-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.results-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(212,168,83,0.1);
  border: 1px solid rgba(212,168,83,0.2);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 0 30px rgba(212,168,83,0.1);
}

.results-header h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: white;
  letter-spacing: -0.5px;
}

.results-content {
  background: rgba(30,41,59,0.7);
  backdrop-filter: blur(12px);
  padding: 2rem 2.25rem;
  border-radius: var(--radius-lg);
  line-height: 1.8;
  border: 1px solid rgba(212,168,83,0.1);
  color: rgba(255,255,255,0.88);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
}

.results-content strong { color: var(--gold-light); }
.results-content hr { border: none; border-top: 1px solid rgba(255,255,255,0.06); margin: 0.6rem 0; }
.results-content br + hr, .results-content hr + br { display: none; }
.results-content br + br + hr { display: none; }
.results-content em { font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.results-content ol, .results-content ul { padding-left: 1.2rem; margin-bottom: 0.2rem; }
.results-content li { margin-bottom: 0.4rem; }
.results-content li:last-child { margin-bottom: 0; }

.upsell-content {
  background: rgba(212,168,83,0.06);
  border: 1px solid rgba(212,168,83,0.15);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-lg);
  margin-top: 1.5rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  position: relative;
  z-index: 1;
}

/* ================================================================
   PAYWALL / PLANS — Dark premium
   ================================================================ */
.paywall {
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.paywall-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.paywall-header h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: white;
}

.paywall-header p {
  color: rgba(255,255,255,0.4);
  font-size: 0.95rem;
}

.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.plan-card {
  background: rgba(30,41,59,0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.5rem;
  text-align: center;
  position: relative;
  transition: all 0.3s;
}

.plan-card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.plan-featured {
  border-color: rgba(212,168,83,0.3);
  background: rgba(30,41,59,0.85);
  box-shadow: 0 0 40px rgba(212,168,83,0.08);
}

.plan-featured:hover {
  border-color: rgba(212,168,83,0.5);
  box-shadow: 0 0 50px rgba(212,168,83,0.12), 0 8px 32px rgba(0,0,0,0.3);
}

.plan-badge {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 50px;
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
}

.badge-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  border: none;
  box-shadow: 0 0 16px rgba(212,168,83,0.3);
}

.badge-test {
  background: linear-gradient(135deg, #4ade80, #22c55e);
  color: var(--navy);
  border: none;
}

.plan-test {
  opacity: 0.85;
  border: 1px dashed rgba(74,222,128,0.4);
}

.btn-test {
  background: linear-gradient(135deg, #4ade80, #22c55e) !important;
  color: var(--navy) !important;
}

.plan-card h4 {
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
  font-family: var(--font-display);
  color: white;
}

.plan-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
}

.plan-price span {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0;
}

.plan-features {
  list-style: none;
  text-align: left;
  margin-bottom: 1.5rem;
}

.plan-features li {
  padding: 9px 0;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.plan-features li::before {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(212,168,83,0.1);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23d4a853' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.plan-card .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 0.95rem;
}

.results-container .btn-secondary {
  color: rgba(255,255,255,0.5);
  border-color: rgba(255,255,255,0.1);
  position: relative;
  z-index: 1;
}

.results-container .btn-secondary:hover {
  color: var(--gold);
  border-color: rgba(212,168,83,0.3);
  background: rgba(212,168,83,0.05);
}

/* ================================================================
   PAYMENT MODAL
   ================================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

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

.modal-content {
  background: var(--navy-light);
  border: 1px solid rgba(212,168,83,0.15);
  padding: 2rem;
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 92%;
  box-shadow: 0 16px 64px rgba(0,0,0,0.4);
  animation: modalIn 0.3s ease;
  color: rgba(255,255,255,0.9);
}

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

.modal-content h3 {
  margin: 0 0 0.4rem 0;
  color: white;
  font-family: var(--font-display);
}

.modal-subtitle {
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.modal-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.modal-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.modal-benefits li {
  padding: 6px 0;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-benefits li::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(5,150,105,0.15);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.modal-guarantee {
  font-size: 0.82rem;
  color: rgba(212,168,83,0.8);
  font-style: italic;
  margin-bottom: 1.25rem;
  padding: 8px 12px;
  background: rgba(212,168,83,0.06);
  border-radius: 8px;
  border-left: 3px solid rgba(212,168,83,0.3);
}

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

.form-group input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: rgba(255,255,255,0.05);
  color: white;
  transition: all 0.2s;
}

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

.form-group input:focus {
  outline: none;
  border-color: rgba(212,168,83,0.4);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(212,168,83,0.06);
}

.pay-result {
  padding: 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.pay-success { background: rgba(5,150,105,0.1); color: #34d399; border: 1px solid rgba(5,150,105,0.2); }
.pay-error { background: rgba(220,38,38,0.1); color: #fca5a5; border: 1px solid rgba(220,38,38,0.2); }

.modal-actions { display: flex; gap: 0.5rem; }
.modal-actions .btn-primary { flex: 1; justify-content: center; }
.modal-actions .btn-secondary { flex: 0.5; margin-top: 0; padding: 12px 16px; }

/* ================================================================
   ACCESS CODE
   ================================================================ */
.access-code-box {
  background: rgba(212,168,83,0.06);
  border: 1px solid rgba(212,168,83,0.25);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1rem 0;
  text-align: center;
}

.access-code-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0.75rem 0;
}

.access-code-display span {
  font-family: 'Courier New', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 3px;
  user-select: all;
  text-shadow: 0 0 12px rgba(212,168,83,0.3);
}

.btn-copy {
  background: rgba(212,168,83,0.15);
  color: var(--gold);
  border: 1px solid rgba(212,168,83,0.25);
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: all 0.2s;
}

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

.access-code-note {
  font-size: 0.78rem;
  color: #fca5a5;
  font-weight: 600;
  margin-top: 0.5rem;
}

.access-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.btn-small {
  padding: 8px 16px !important;
  font-size: 0.82rem !important;
}

/* ================================================================
   WELCOME SCREEN — Post-payment onboarding
   ================================================================ */
.welcome-screen {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.welcome-screen::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 500px 400px at 30% 20%, rgba(5,150,105,0.06) 0%, transparent 100%),
    radial-gradient(ellipse 600px 500px at 70% 80%, rgba(212,168,83,0.05) 0%, transparent 100%);
  pointer-events: none;
}

.welcome-content {
  max-width: 480px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1;
  animation: welcomeFadeIn 0.6s ease;
}

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

.welcome-icon-success {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 40px rgba(5,150,105,0.3);
  animation: welcomePulse 2s ease infinite;
}

@keyframes welcomePulse {
  0%, 100% { box-shadow: 0 0 40px rgba(5,150,105,0.3); }
  50% { box-shadow: 0 0 60px rgba(5,150,105,0.5); }
}

.welcome-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: white;
  margin: 0 0 0.5rem;
  letter-spacing: -0.5px;
}

.welcome-subtitle {
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  margin: 0 0 2rem;
}

.welcome-access-box {
  background: rgba(30,41,59,0.8);
  border: 1px solid rgba(212,168,83,0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.welcome-access-label {
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.welcome-access-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 0.75rem;
}

.welcome-access-code span {
  font-family: 'Courier New', monospace;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 3px;
  user-select: all;
  text-shadow: 0 0 12px rgba(212,168,83,0.3);
}

.welcome-access-note {
  color: #fca5a5;
  font-size: 0.78rem;
  font-weight: 600;
  margin: 0;
}

.welcome-steps {
  margin-bottom: 2rem;
}

.welcome-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(30,41,59,0.5);
  border-radius: var(--radius);
  margin-bottom: 8px;
  text-align: left;
}

.welcome-step-number {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-step-text {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  line-height: 1.4;
}

.welcome-cta {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.welcome-receipt {
  color: rgba(255,255,255,0.35) !important;
  border-color: rgba(255,255,255,0.08) !important;
}

.welcome-receipt:hover {
  color: var(--gold) !important;
  border-color: rgba(212,168,83,0.3) !important;
}

/* Program completion celebration */
.program-complete-banner {
  background: linear-gradient(135deg, rgba(5,150,105,0.15), rgba(16,185,129,0.1));
  border: 1px solid rgba(5,150,105,0.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
  animation: welcomeFadeIn 0.5s ease;
}

.program-complete-banner h3 {
  color: #34d399;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.program-complete-banner p {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  margin: 0;
}

/* ================================================================
   PROGRAM PANEL
   ================================================================ */
.program-panel {
  max-width: 720px;
  margin: 0 auto 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.program-header { margin-bottom: 1rem; }

.program-header h3 {
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
}

.program-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}

.program-stats span {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 500;
}

.program-progress-bar {
  flex: 1;
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.program-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  transition: width 0.5s ease;
  border-radius: 4px;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 1rem;
}

.program-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.8rem;
  border: 1px solid var(--border-light);
  transition: all 0.2s;
}

.program-day .day-number { font-weight: 700; font-size: 0.9rem; }
.program-day .day-check { font-size: 0.65rem; color: var(--success); font-weight: 700; }
.program-day .day-label { font-size: 0.6rem; color: var(--gold-dark); font-weight: 700; }

.program-day.completed {
  background: var(--success-bg);
  border-color: var(--success);
  color: var(--success);
}

.program-day.current {
  background: #fffbeb;
  border-color: var(--gold);
  color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(212,168,83,0.15);
}

.program-day.missed {
  background: #fff7ed;
  border-color: var(--warning);
  color: var(--warning);
}

.program-day.upcoming {
  background: var(--bg);
  color: var(--text-muted);
}

.program-exercise {
  background: var(--bg);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  line-height: 1.6;
  border: 1px solid var(--border-light);
}

#btn-complete-day {
  width: 100%;
  justify-content: center;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
  .landing-content h1 { font-size: 2rem; }
  .landing-content { padding: 3rem 1.5rem 2rem; }
  .landing-features { grid-template-columns: 1fr; gap: 0.5rem; padding: 0 1.5rem 2rem; }
  .feature { padding: 1rem; }
}

@media (max-width: 600px) {
  .chat-container { height: 100dvh; }
  .message { max-width: 92%; padding: 14px 16px; font-size: 0.9rem; }
  .messages { padding: 1.25rem 1rem; }
  .chat-input-area { padding: 0.75rem 1rem 1rem; }
  #user-input { padding: 12px 14px; font-size: 0.9rem; }
  .btn-send { width: 46px; height: 46px; }
  .results-container { padding: 1rem; margin: 0; }
  .plans-grid { grid-template-columns: 1fr; }
  .program-grid { gap: 4px; }
  .program-day { font-size: 0.7rem; }
  .program-day .day-number { font-size: 0.8rem; }
  .program-panel { margin: 0 1rem 1rem; }
  .landing-nav { padding: 1rem 1.25rem; }
  .landing-content h1 { font-size: 1.7rem; }
  .social-proof { flex-direction: column; gap: 6px; }
}
