/* ============================================================
   AI Gift Finder — Main Stylesheet
   Aesthetic: Luxury Dark + Warm Gold Accents
   Font: Cormorant Garamond (display) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ============================================================
   CSS Variables
   ============================================================ */
:root {
  --bg-dark:        #0d0b0f;
  --bg-card:        #141118;
  --bg-card-2:      #1a1720;
  --bg-input:       #1e1b25;
  --border:         rgba(255,255,255,0.07);
  --border-gold:    rgba(212,175,55,0.35);

  --gold:           #d4af37;
  --gold-light:     #f0d060;
  --gold-dim:       rgba(212,175,55,0.15);
  --gold-glow:      rgba(212,175,55,0.08);

  --text-primary:   #f0ece8;
  --text-secondary: #9e98a3;
  --text-muted:     #5c5766;

  --accent-purple:  #8b5cf6;
  --accent-rose:    #f43f5e;
  --success:        #10b981;
  --warning:        #f59e0b;
  --danger:         #ef4444;

  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      20px;
  --radius-xl:      32px;

  --shadow-sm:      0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:      0 8px 32px rgba(0,0,0,0.5);
  --shadow-gold:    0 0 32px rgba(212,175,55,0.12);
  --shadow-card:    0 4px 24px rgba(0,0,0,0.6);

  --transition:     0.25s cubic-bezier(0.4,0,0.2,1);
  --font-display:   'Cormorant Garamond', Georgia, serif;
  --font-body:      'DM Sans', -apple-system, sans-serif;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

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

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   Noise Texture Overlay
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.5;
}

/* ============================================================
   Layout
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 520px; margin: 0 auto; padding: 0 24px; }
.container-md { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   Navigation
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,11,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo span { color: var(--text-primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #c9a227 100%);
  color: #0d0b0f;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(212,175,55,0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(212,175,55,0.4);
  color: #0d0b0f;
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
  color: var(--gold-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }

.btn-danger {
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.4);
  color: #f87171;
}
.btn-danger:hover { background: rgba(239,68,68,0.25); }

.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius-md); }
.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.card-sm { padding: 20px; border-radius: var(--radius-md); }

/* ============================================================
   Forms
   ============================================================ */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  transition: all var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.form-control:focus {
  border-color: var(--gold);
  background: var(--bg-input);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}

.form-control::placeholder { color: var(--text-muted); }

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239e98a3' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

select.form-control option { background: var(--bg-card); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============================================================
   Alerts
   ============================================================ */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 20px;
  border: 1px solid transparent;
}
.alert-error   { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); color: #fca5a5; }
.alert-success { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.3); color: #6ee7b7; }
.alert-warning { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); color: #fcd34d; }
.alert-info    { background: rgba(212,175,55,0.08); border-color: var(--border-gold); color: var(--gold-light); }

/* ============================================================
   Auth Pages
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
}

.auth-page::before {
  content: '';
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,175,55,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-md), var(--shadow-gold);
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.03em;
}

.auth-logo p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 6px;
}

.auth-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.auth-divider {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 20px 0;
  position: relative;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 24px);
  height: 1px;
  background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ============================================================
   Dashboard Layout
   ============================================================ */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 32px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold);
  padding: 0 8px;
  margin-bottom: 32px;
  font-weight: 600;
}

.sidebar-nav { list-style: none; flex: 1; }

.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all var(--transition);
  margin-bottom: 4px;
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
  background: var(--gold-glow);
  color: var(--gold-light);
  border: 1px solid var(--border-gold);
}

.sidebar-nav li a .nav-icon { font-size: 1.1rem; width: 20px; text-align: center; }

.sidebar-user {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: auto;
}

.sidebar-user-info { padding: 10px 14px; }
.sidebar-user-name { font-weight: 500; font-size: 0.9rem; color: var(--text-primary); }
.sidebar-user-plan {
  font-size: 0.75rem;
  margin-top: 3px;
}
.plan-badge-free    { color: var(--text-muted); }
.plan-badge-premium { color: var(--gold); }

.main-content {
  padding: 40px;
  overflow-y: auto;
}

/* ============================================================
   Dashboard Page Elements
   ============================================================ */
.page-header { margin-bottom: 32px; }
.page-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}
.page-subtitle { color: var(--text-secondary); margin-top: 6px; font-size: 0.95rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: all var(--transition);
}
.stat-card:hover { border-color: var(--border-gold); background: var(--bg-card-2); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.stat-value { font-family: var(--font-display); font-size: 2rem; color: var(--gold); font-weight: 600; margin-top: 4px; }
.stat-desc { font-size: 0.8rem; color: var(--text-secondary); margin-top: 2px; }

/* ============================================================
   Gift Generator Form
   ============================================================ */
.generator-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.generator-form::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212,175,55,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.form-section-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.budget-range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.budget-separator { color: var(--text-muted); font-size: 0.9rem; text-align: center; }

/* Unique Mode Toggle */
.unique-mode-toggle {
  background: var(--bg-card-2);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 24px;
  opacity: 0.5;
  pointer-events: none;
}

.unique-mode-toggle.enabled {
  opacity: 1;
  pointer-events: all;
  cursor: pointer;
}

.unique-mode-toggle:hover.enabled { background: var(--gold-glow); }

.toggle-label { display: flex; align-items: center; gap: 12px; }
.toggle-icon { font-size: 1.4rem; }
.toggle-title { font-weight: 500; font-size: 0.95rem; }
.toggle-desc { font-size: 0.8rem; color: var(--text-secondary); margin-top: 2px; }

/* Toggle Switch */
.switch { position: relative; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  inset: 0;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all var(--transition);
  cursor: pointer;
}
.slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all var(--transition);
}
input:checked + .slider { background: var(--gold); border-color: var(--gold); }
input:checked + .slider::before { transform: translateX(20px); background: #0d0b0f; }

/* ============================================================
   Gift Results
   ============================================================ */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.results-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-primary);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gift-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  animation: fadeSlideIn 0.4s ease both;
}

.gift-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), var(--shadow-gold);
}

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

.gift-card:nth-child(1)  { animation-delay: 0.05s; }
.gift-card:nth-child(2)  { animation-delay: 0.10s; }
.gift-card:nth-child(3)  { animation-delay: 0.15s; }
.gift-card:nth-child(4)  { animation-delay: 0.20s; }
.gift-card:nth-child(5)  { animation-delay: 0.25s; }
.gift-card:nth-child(6)  { animation-delay: 0.30s; }
.gift-card:nth-child(7)  { animation-delay: 0.35s; }
.gift-card:nth-child(8)  { animation-delay: 0.40s; }
.gift-card:nth-child(9)  { animation-delay: 0.45s; }
.gift-card:nth-child(10) { animation-delay: 0.50s; }

.gift-image-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--bg-card-2);
}

.gift-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gift-card:hover .gift-image-wrap img { transform: scale(1.05); }

.gift-rank {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: #0d0b0f;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

.unique-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(139,92,246,0.85);
  color: #fff;
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 20px;
  font-weight: 500;
}

.gift-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gift-category {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.gift-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.gift-price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}

.gift-why {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
  border-left: 2px solid var(--border-gold);
  padding-left: 12px;
  font-style: italic;
}

.gift-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.gift-retailer {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  padding: 3px 8px;
  border-radius: 4px;
}

/* ============================================================
   Loading Spinner
   ============================================================ */
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,11,15,0.85);
  z-index: 500;
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
}

.loading-overlay.show { display: flex; }

.spinner {
  width: 56px;
  height: 56px;
  border: 3px solid rgba(212,175,55,0.15);
  border-top: 3px solid var(--gold);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

.loading-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold-light);
  text-align: center;
}
.loading-sub { font-size: 0.85rem; color: var(--text-secondary); margin-top: 4px; }

/* ============================================================
   Pricing Page
   ============================================================ */
.pricing-page {
  min-height: 100vh;
  padding: 80px 24px;
}

.pricing-header {
  text-align: center;
  margin-bottom: 60px;
}

.pricing-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 16px;
}

.pricing-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1.2;
  color: var(--text-primary);
}
.pricing-title em { color: var(--gold); font-style: italic; }
.pricing-subtitle { color: var(--text-secondary); margin-top: 16px; font-size: 1.05rem; }

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 32px 0;
}

.pricing-toggle label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.pricing-toggle label.active { color: var(--text-primary); font-weight: 500; }

.save-badge {
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  color: #6ee7b7;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 20px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  transition: all var(--transition);
}

.pricing-card.featured {
  border-color: var(--border-gold);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(212,175,55,0.04) 100%);
  box-shadow: var(--shadow-gold);
}

.pricing-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #0d0b0f;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.pricing-plan-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 20px 0;
}

.pricing-currency { font-size: 1.2rem; color: var(--gold); margin-top: 4px; }
.pricing-amount   { font-family: var(--font-display); font-size: 3.5rem; color: var(--gold); font-weight: 300; line-height: 1; }
.pricing-period   { font-size: 0.9rem; color: var(--text-secondary); }

.pricing-features {
  list-style: none;
  margin: 24px 0 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.pricing-features li:last-child { border: none; }
.feature-check { color: var(--success); font-size: 1rem; flex-shrink: 0; }
.feature-x     { color: var(--text-muted); font-size: 1rem; flex-shrink: 0; }

/* ============================================================
   Usage Progress Bar
   ============================================================ */
.usage-bar-wrap { margin-top: 8px; }

.usage-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.usage-track {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}

.usage-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: 3px;
  transition: width 0.6s ease;
}

.usage-fill.danger { background: linear-gradient(90deg, #f59e0b, #ef4444); }

/* ============================================================
   Landing Page Hero
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% -10%, rgba(212,175,55,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 80%, rgba(139,92,246,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,175,55,0.08);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

.hero-social-proof {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stars { color: var(--gold); letter-spacing: 2px; }

/* ============================================================
   Features Section
   ============================================================ */
.features-section {
  padding: 100px 0;
  position: relative;
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-title em { color: var(--gold); font-style: italic; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-2);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.feature-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer a { color: var(--text-secondary); }
.footer a:hover { color: var(--gold); }

/* ============================================================
   Upgrade Banner
   ============================================================ */
.upgrade-banner {
  background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(139,92,246,0.05));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.upgrade-banner-text h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold);
}

.upgrade-banner-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ============================================================
   Limit Reached Modal
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 600;
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.show { display: flex; }

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-gold), var(--shadow-md);
  animation: modalIn 0.3s ease;
}

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

.modal-icon { font-size: 3rem; margin-bottom: 20px; }

.modal-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.modal-text { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; margin-bottom: 28px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    padding: 12px 20px;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
  }

  .sidebar-logo { margin-bottom: 0; margin-right: 16px; white-space: nowrap; }
  .sidebar-nav { display: flex; flex-direction: row; gap: 4px; }
  .sidebar-user { border: none; padding: 0; margin-left: auto; }
  .sidebar-nav li a { padding: 8px 12px; margin-bottom: 0; white-space: nowrap; }
  .sidebar-user-info { display: none; }
  .main-content { padding: 24px 20px; }
}

@media (max-width: 640px) {
  .auth-card { padding: 32px 24px; }
  .generator-form { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .budget-range { grid-template-columns: 1fr auto 1fr; }
  .pricing-title { font-size: 2.2rem; }
  .upgrade-banner { flex-direction: column; text-align: center; }
  .results-grid { grid-template-columns: 1fr; }
}
