/* ========== Landing Page ========== */

/* Landing Header Navigation */
.landing-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky, 200);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border, #e2e8f0);
}

[data-theme="dark"] .landing-header {
  background: rgba(15, 23, 42, 0.9);
  border-bottom-color: var(--border, #1e293b);
}

.landing-nav-inner {
  max-width: var(--content-max-width, 1200px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-6, 1.5rem);
  height: 64px;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2, 0.5rem);
  text-decoration: none;
  font-size: var(--text-lg, 1.125rem);
  font-weight: var(--font-weight-bold, 700);
  color: var(--text-primary, #0f172a);
  flex-shrink: 0;
}

.landing-logo-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand, #2563eb), var(--accent, #7c3aed));
  color: white;
  border-radius: var(--radius-md, 8px);
  font-weight: var(--font-weight-bold, 700);
  font-size: var(--text-sm, 0.875rem);
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1, 0.25rem);
}

.landing-nav-link {
  text-decoration: none;
  color: var(--text-secondary, #475569);
  font-size: var(--text-sm, 0.875rem);
  font-weight: var(--font-weight-medium, 500);
  padding: var(--space-2, 0.5rem) var(--space-3, 0.75rem);
  border-radius: var(--radius-md, 8px);
  transition: all var(--transition-fast, 150ms);
}

.landing-nav-link:hover {
  color: var(--text-primary, #0f172a);
  background: var(--surface-hover, #f1f5f9);
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2, 0.5rem);
  flex-shrink: 0;
}

/* Language Switcher */
.lang-switcher {
  position: relative;
}

.lang-switcher-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: var(--radius-md, 8px);
  cursor: pointer;
  color: var(--text-secondary, #475569);
  transition: all var(--transition-fast, 150ms);
}

.lang-switcher-btn:hover {
  background: var(--surface-hover, #f1f5f9);
  color: var(--text-primary, #0f172a);
}

.lang-switcher-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-md, 8px);
  box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0,0,0,0.1));
  min-width: 140px;
  padding: var(--space-1, 0.25rem);
  z-index: var(--z-dropdown, 100);
}

[data-theme="dark"] .lang-switcher-dropdown {
  background: var(--surface, #1e293b);
  border-color: var(--border, #334155);
}

.lang-switcher.open .lang-switcher-dropdown {
  display: block;
}

.lang-option {
  display: block;
  width: 100%;
  padding: var(--space-2, 0.5rem) var(--space-3, 0.75rem);
  border: none;
  background: transparent;
  text-align: left;
  font-size: var(--text-sm, 0.875rem);
  cursor: pointer;
  color: var(--text-secondary, #475569);
  border-radius: var(--radius-sm, 6px);
  transition: all var(--transition-fast, 150ms);
  white-space: nowrap;
}

.lang-option:hover {
  background: var(--surface-hover, #f1f5f9);
  color: var(--text-primary, #0f172a);
}

.lang-option.active {
  color: var(--brand, #2563eb);
  font-weight: var(--font-weight-medium, 500);
  background: var(--brand-soft, #dbeafe);
}

/* Mobile menu toggle */
.landing-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2, 0.5rem);
  color: var(--text-primary, #0f172a);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .landing-nav-links {
    display: none;
  }
  
  .landing-nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface, #ffffff);
    border-bottom: 1px solid var(--border, #e2e8f0);
    padding: var(--space-4, 1rem);
    gap: var(--space-1, 0.25rem);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  [data-theme="dark"] .landing-nav-links.open {
    background: var(--surface, #0f172a);
    border-bottom-color: var(--border, #1e293b);
  }

  .landing-nav-link {
    padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
    width: 100%;
  }

  .landing-menu-toggle {
    display: block;
  }

  .landing-nav-actions .btn-ghost {
    display: none;
  }
}

.landing-hero {
  text-align: center;
  padding: var(--space-20) var(--space-4) var(--space-16);
  background: linear-gradient(180deg, var(--brand-soft) 0%, var(--surface) 100%);
  position: relative;
  overflow: hidden;
}

.landing-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, var(--brand-soft) 0%, transparent 50%);
  opacity: 0.5;
  pointer-events: none;
}

.landing-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.landing-hero h1 {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-4);
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-hero p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto var(--space-8);
}

.landing-hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.landing-section {
  padding: var(--space-16) var(--space-4);
}

.landing-section-alt {
  background: var(--surface-muted);
}

.landing-section-title {
  text-align: center;
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-3);
}

.landing-section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: var(--space-12);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.feature-card {
  text-align: center;
  padding: var(--space-8);
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-5);
  background: var(--brand-soft);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--brand);
}

.feature-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.how-step {
  text-align: center;
}

.how-step-number {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  background: var(--brand);
  color: var(--brand-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
}

.how-step h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}

.how-step p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.pricing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  background: var(--surface-card);
  position: relative;
  transition: all var(--transition-base);
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), var(--shadow-lg);
  transform: scale(1.02);
}

.pricing-card.featured .pricing-badge {
  display: inline-block;
}

.pricing-badge {
  display: none;
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: var(--brand);
  color: var(--brand-text);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.pricing-name {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-2);
}

.pricing-price {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--text);
  margin-bottom: var(--space-1);
}

.pricing-price span {
  font-size: var(--text-base);
  font-weight: var(--font-weight-normal);
  color: var(--text-muted);
}

.pricing-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-8);
}

.pricing-features li {
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

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

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.testimonial-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.testimonial-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-4);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-author-info {
  flex: 1;
}

.testimonial-author-name {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text);
}

.testimonial-author-title {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.landing-footer {
  background: var(--surface-muted);
  padding: var(--space-12) var(--space-4);
  border-top: 1px solid var(--border);
}

.landing-footer-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
}

.landing-footer-brand {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-3);
}

.landing-footer-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.landing-footer-col h5 {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-4);
}

.landing-footer-col a {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.landing-footer-col a:hover {
  color: var(--brand);
}

.landing-footer-bottom {
  max-width: var(--content-max-width);
  margin: var(--space-8) auto 0;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ========== Auth Pages ========== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: var(--surface-muted);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface-card);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-8);
}

.auth-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.auth-logo {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  background: var(--brand);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-text);
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
}

.auth-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-2);
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.auth-footer {
  text-align: center;
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.auth-footer a {
  font-weight: var(--font-weight-medium);
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: var(--space-6) 0;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  position: relative;
  background: var(--surface-card);
  padding: 0 var(--space-4);
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.auth-social-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--surface);
}

.auth-social-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border);
}

/* ========== Dashboard ========== */
.dashboard-welcome {
  margin-bottom: var(--space-8);
}

.dashboard-welcome h1 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.dashboard-welcome p {
  color: var(--text-secondary);
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.dashboard-stage-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  background: linear-gradient(135deg, var(--brand-soft), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-8);
  cursor: pointer;
  transition: all var(--transition-base);
}

.dashboard-stage-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--brand-light);
}

.dashboard-stage-icon {
  width: 56px;
  height: 56px;
  background: var(--brand);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--brand-text);
  flex-shrink: 0;
}

.dashboard-stage-info {
  flex: 1;
}

.dashboard-stage-name {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-1);
}

.dashboard-stage-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.dashboard-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.dashboard-action-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  background: var(--surface-card);
}

.dashboard-action-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--brand-light);
}

.dashboard-action-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.dashboard-action-info h4 {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 2px;
}

.dashboard-action-info p {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.dashboard-review-prompt {
  background: linear-gradient(135deg, var(--warning-soft), var(--surface));
  border: 1px solid var(--warning);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.dashboard-review-icon {
  width: 40px;
  height: 40px;
  background: var(--warning);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.dashboard-review-text {
  flex: 1;
}

.dashboard-review-text h4 {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 2px;
}

.dashboard-review-text p {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

/* ========== Stage Positioning ========== */
.stage-wizard {
  max-width: 640px;
  margin: 0 auto;
}

.stage-welcome {
  text-align: center;
  padding: var(--space-8);
}

.stage-welcome-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-6);
  background: var(--brand-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--brand);
}

.stage-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.stage-option-card {
  padding: var(--space-5);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  background: var(--surface-card);
}

.stage-option-card:hover {
  border-color: var(--brand-light);
  box-shadow: var(--shadow-sm);
}

.stage-option-card.selected {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.stage-option-icon {
  font-size: 32px;
  margin-bottom: var(--space-3);
}

.stage-option-label {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text);
}

.stage-option-desc {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: var(--space-1);
}

.age-range-selector {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

.age-range-btn {
  padding: var(--space-3) var(--space-6);
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--surface);
}

.age-range-btn:hover {
  border-color: var(--brand-light);
  color: var(--text);
}

.age-range-btn.selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
}

.special-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.special-tag {
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--surface);
}

.special-tag:hover {
  border-color: var(--brand-light);
}

.special-tag.selected {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
}

/* ========== Chat ========== */
.chat-page {
  display: flex;
  height: calc(100vh - var(--header-height));
  position: relative;
}

.chat-sidebar {
  width: 300px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--surface-sidebar);
  flex-shrink: 0;
}

.chat-sidebar-header {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.chat-session-list {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-2);
}

.chat-session-item {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 2px;
}

.chat-session-item:hover {
  background: var(--surface-hover);
}

.chat-session-item.active {
  background: var(--brand-soft);
}

.chat-session-title {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-session-preview {
  font-size: var(--text-xs);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-session-time {
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chat-header {
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.chat-input-area {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.chat-input-wrapper {
  display: flex;
  align-items: flex-end;
  gap: var(--space-3);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2) var(--space-3);
  transition: border-color var(--transition-fast);
}

.chat-input-wrapper:focus-within {
  border-color: var(--brand);
}

.chat-input {
  flex: 1;
  border: none;
  outline: none;
  background: none;
  padding: var(--space-2);
  font-size: var(--text-sm);
  resize: none;
  max-height: 120px;
  line-height: var(--line-height-normal);
  color: var(--text);
}

.chat-input::placeholder {
  color: var(--text-muted);
}

.chat-context-panel {
  padding: var(--space-3) var(--space-4);
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.chat-context-tag {
  background: var(--brand-soft);
  color: var(--brand);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: var(--font-weight-medium);
}

/* ========== Decisions ========== */
.decision-list-filters {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.decision-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: var(--space-3);
}

.decision-option:hover {
  border-color: var(--brand-light);
}

.decision-option.selected {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.decision-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

/* ========== Goals ========== */
.goal-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.goal-checkin-modal {
  text-align: center;
}

.goal-checkin-emoji {
  font-size: 48px;
  margin-bottom: var(--space-4);
}

/* ========== Assessments ========== */
.assessment-question {
  margin-bottom: var(--space-8);
}

.assessment-question-number {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.assessment-question-text {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-6);
}

.assessment-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.assessment-option {
  padding: var(--space-4);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.assessment-option:hover {
  border-color: var(--brand-light);
}

.assessment-option.selected {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.assessment-option-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.assessment-option.selected .assessment-option-indicator {
  border-color: var(--brand);
  background: var(--brand);
}

.assessment-option.selected .assessment-option-indicator::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}

/* Radar chart placeholder */
.radar-chart {
  width: 280px;
  height: 280px;
  margin: 0 auto;
  position: relative;
}

.radar-chart svg {
  width: 100%;
  height: 100%;
}

/* ========== Reports ========== */
.report-section {
  margin-bottom: var(--space-8);
}

.report-section-title {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}

/* ========== Timeline Page ========== */
.timeline-page {
  position: relative;
}

.timeline-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.timeline-nav-btn {
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--surface);
}

.timeline-nav-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.timeline-nav-year {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  min-width: 100px;
  text-align: center;
}

/* ========== Settings ========== */
.settings-page {
  max-width: 720px;
}

.settings-section {
  margin-bottom: var(--space-8);
}

.settings-section-title {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-4);
}

.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border-light);
}

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

.settings-item-info h4 {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  margin-bottom: 2px;
}

.settings-item-info p {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

/* ========== 404 ========== */
.not-found {
  text-align: center;
  padding: var(--space-20) var(--space-4);
}

.not-found-code {
  font-size: 120px;
  font-weight: var(--font-weight-bold);
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-4);
}

.not-found h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.not-found p {
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
}

/* ========== Mobile Responsive Overrides ========== */
@media (max-width: 1024px) {
  .feature-grid,
  .how-steps,
  .pricing-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .landing-footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-actions {
    grid-template-columns: 1fr;
  }

  .decision-comparison {
    grid-template-columns: 1fr;
  }

  .chat-sidebar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 10;
    width: 280px;
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
  }

  .chat-sidebar.open {
    transform: translateX(0);
  }

  .stage-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .landing-hero h1 {
    font-size: var(--text-2xl);
  }

  .landing-hero p {
    font-size: var(--text-base);
  }

  .landing-section-title {
    font-size: var(--text-2xl);
  }

  .landing-footer-inner {
    grid-template-columns: 1fr;
  }

  .landing-footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .dashboard-stats {
    grid-template-columns: 1fr 1fr;
  }

  .auth-card {
    padding: var(--space-6);
  }

  .pricing-card.featured {
    transform: none;
  }
}

/* ========== Admin Panel ========== */
.admin-page {
  max-width: 1200px;
}

.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.admin-tab {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
}

.admin-tab:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.admin-tab.active {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

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

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-info .stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.stat-info .stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.table-container {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

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

.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--surface-hover);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-light);
}

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

.data-table tr:hover {
  background: var(--surface-hover);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

/* ========== Content Editor ========== */
.content-editor-page {
  max-width: 1200px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.content-card {
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.content-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}

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

.content-card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.content-card-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.content-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.editor-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.editor-sidebar {
  position: sticky;
  top: 88px;
}

.editor-main {
  min-width: 0;
}

.editor-title-input {
  font-size: 24px;
  font-weight: 600;
  padding: 16px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  width: 100%;
  outline: none;
  transition: border-color var(--transition-fast);
}

.editor-title-input:focus {
  border-bottom-color: var(--brand);
}

.editor-content-area {
  font-size: 15px;
  line-height: 1.8;
  min-height: 400px;
  resize: vertical;
  border: none;
  outline: none;
  width: 100%;
  padding: 0;
  background: transparent;
  font-family: 'Inter', sans-serif;
}

/* ========== Modals ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal.modal-lg {
  max-width: 720px;
}

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

.modal-header h3 {
  font-size: 16px;
  font-weight: 600;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

/* ========== Badges ========== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-success {
  background: #dcfce7;
  color: #166534;
}

[data-theme="dark"] .badge-success {
  background: #052e16;
  color: #86efac;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

[data-theme="dark"] .badge-warning {
  background: #422006;
  color: #fbbf24;
}

.badge-error {
  background: #fce4ec;
  color: #c62828;
}

[data-theme="dark"] .badge-error {
  background: #3e0a14;
  color: #fca5a5;
}

.badge-info {
  background: #dbeafe;
  color: #1e40af;
}

[data-theme="dark"] .badge-info {
  background: #172554;
  color: #93c5fd;
}

[data-theme="dark"] .modal-overlay {
  background: rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
  .editor-container {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
}