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

/* ═══════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════ */
:root {
  /* Colors */
  --bg-0:       #07070f;
  --bg-1:       #0d0d1a;
  --bg-2:       #13131f;
  --bg-3:       #1a1a2e;
  --surface:    #1e1e30;
  --surface-2:  #252540;
  --border:     rgba(255,255,255,0.07);
  --border-2:   rgba(255,255,255,0.12);

  --primary:    #6366f1;
  --primary-h:  #818cf8;
  --primary-d:  #4f46e5;
  --accent:     #a78bfa;
  --success:    #22c55e;
  --warning:    #f59e0b;
  --danger:     #ef4444;

  --text-1:  #f1f5f9;
  --text-2:  #94a3b8;
  --text-3:  #64748b;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #6366f1 0%, #a78bfa 100%);
  --grad-dark:    linear-gradient(135deg, #1e1e30 0%, #13131f 100%);
  --grad-glow:    radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.3) 0%, transparent 70%);

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg:  0 24px 64px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 40px rgba(99,102,241,0.25);

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Transitions */
  --t-fast: 0.15s ease;
  --t-med:  0.25s ease;
  --t-slow: 0.4s ease;
}

/* ═══════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--primary-h); }

img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ═══════════════════════════════════════════════
   UTILITY CLASSES
═══════════════════════════════════════════════ */
.container      { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--sm  { max-width: 840px; margin: 0 auto; padding: 0 24px; }

.text-center   { text-align: center; }
.text-gradient { background: var(--grad-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2  { gap: 8px; }
.gap-4  { gap: 16px; }
.gap-6  { gap: 24px; }
.gap-8  { gap: 32px; }

.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }

.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }

.hidden   { display: none !important; }
.sr-only  { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ═══════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════ */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(7,7,15,0.85);
  backdrop-filter: blur(16px) saturate(180%);
  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;
}
.navbar__logo {
  font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em;
  background: var(--grad-primary); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.navbar__logo span { opacity: 0.7; }
.navbar__nav { display: flex; align-items: center; gap: 8px; }
.navbar__link {
  color: var(--text-2); font-size: 0.9rem; font-weight: 500;
  padding: 6px 14px; border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
}
.navbar__link:hover { color: var(--text-1); background: var(--surface); }

/* ═══════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--r-md);
  font-size: 0.9rem; font-weight: 600; border: none;
  transition: all var(--t-med); white-space: nowrap;
}
.btn--primary {
  background: var(--grad-primary); color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 60px rgba(99,102,241,0.4);
  color: #fff;
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent; color: var(--text-2);
  border: 1px solid var(--border-2);
}
.btn--ghost:hover { background: var(--surface); color: var(--text-1); border-color: var(--primary); }

.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: #dc2626; color: #fff; }

.btn--sm { padding: 7px 14px; font-size: 0.82rem; }
.btn--lg { padding: 14px 28px; font-size: 1rem; }
.btn--xl { padding: 18px 36px; font-size: 1.1rem; border-radius: var(--r-lg); }

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

/* ═══════════════════════════════════════════════
   CARDS
═══════════════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: border-color var(--t-med), transform var(--t-med), box-shadow var(--t-med);
}
.card:hover {
  border-color: rgba(99,102,241,0.3);
  box-shadow: var(--shadow-md);
}
.card--active {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

/* ═══════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════ */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; margin-bottom: 6px;
  font-size: 0.85rem; font-weight: 500; color: var(--text-2);
}
.form-control {
  width: 100%; padding: 11px 16px;
  background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: var(--r-md); color: var(--text-1);
  font-size: 0.95rem; font-family: inherit;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
}
.form-control::placeholder { color: var(--text-3); }

select.form-control { cursor: pointer; }

/* ═══════════════════════════════════════════════
   ALERTS / FLASH
═══════════════════════════════════════════════ */
.alert {
  padding: 12px 16px; border-radius: var(--r-md);
  font-size: 0.9rem; font-weight: 500; margin-bottom: 16px;
  border: 1px solid transparent;
}
.alert--success { background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.3); color: #4ade80; }
.alert--error   { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.3); color: #f87171; }
.alert--info    { background: rgba(99,102,241,0.12); border-color: rgba(99,102,241,0.3); color: var(--primary-h); }
.alert--warning { background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.3); color: #fbbf24; }

/* ═══════════════════════════════════════════════
   BADGE
═══════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em;
}
.badge--active  { background: rgba(34,197,94,0.15); color: #4ade80; }
.badge--draft   { background: rgba(100,116,139,0.2); color: var(--text-3); }
.badge--building{ background: rgba(245,158,11,0.15); color: #fbbf24; }
.badge--ready   { background: rgba(99,102,241,0.15); color: var(--primary-h); }
.badge--deployed{ background: rgba(34,197,94,0.15); color: #4ade80; }

/* ═══════════════════════════════════════════════
   PAGE HEADER
═══════════════════════════════════════════════ */
.page-header {
  padding: 48px 0 32px;
}
.page-header h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.page-header p  { color: var(--text-2); margin-top: 8px; }

/* ═══════════════════════════════════════════════
   SPINNER / LOADING
═══════════════════════════════════════════════ */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
.hero {
  min-height: calc(100vh - 64px);
  display: flex; align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-glow);
  pointer-events: none;
}
.hero__inner {
  max-width: 900px; margin: 0 auto; padding: 80px 24px;
  position: relative; z-index: 1;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 999px;
  border: 1px solid rgba(99,102,241,0.4);
  background: rgba(99,102,241,0.08);
  font-size: 0.82rem; font-weight: 600; color: var(--accent);
  margin-bottom: 28px;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.hero__title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900; line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.hero__sub {
  font-size: 1.2rem; color: var(--text-2);
  max-width: 600px; margin: 0 auto 40px;
}
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Floating orbs */
.hero__orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none;
  animation: float 6s ease-in-out infinite;
  opacity: 0.4;
}
.hero__orb--1 { width: 500px; height: 500px; background: #6366f1; top: -200px; left: -200px; }
.hero__orb--2 { width: 400px; height: 400px; background: #a78bfa; bottom: -150px; right: -150px; animation-delay: -3s; }

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

/* ═══════════════════════════════════════════════
   FEATURES SECTION
═══════════════════════════════════════════════ */
.features { padding: 120px 0; }
.section-label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; letter-spacing: -0.03em;
}
.section-sub {
  color: var(--text-2); font-size: 1.05rem;
  margin-top: 12px; max-width: 600px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin-top: 60px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: all var(--t-med);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99,102,241,0.4);
  box-shadow: var(--shadow-md);
}
.feature-card__icon {
  width: 52px; height: 52px;
  background: rgba(99,102,241,0.12);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 16px;
}
.feature-card__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card__desc  { color: var(--text-2); font-size: 0.9rem; line-height: 1.7; }

/* ═══════════════════════════════════════════════
   PRICING
═══════════════════════════════════════════════ */
.pricing { padding: 120px 0; }
.pricing__card {
  max-width: 480px; margin: 60px auto 0;
  background: var(--surface);
  border: 1px solid rgba(99,102,241,0.4);
  border-radius: var(--r-xl);
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow-glow), var(--shadow-lg);
  position: relative; overflow: hidden;
}
.pricing__card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-primary);
}
.pricing__badge {
  display: inline-block; padding: 4px 14px;
  background: var(--grad-primary); border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; margin-bottom: 20px;
  letter-spacing: 0.05em;
}
.pricing__price {
  font-size: 4rem; font-weight: 900; letter-spacing: -0.04em;
}
.pricing__price sup { font-size: 1.5rem; vertical-align: top; margin-top: 16px; }
.pricing__price span { font-size: 1rem; color: var(--text-2); font-weight: 400; }
.pricing__features {
  margin: 28px 0; text-align: left;
  list-style: none;
}
.pricing__features li {
  padding: 8px 0;
  display: flex; align-items: center; gap: 10px;
  color: var(--text-2); font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.pricing__features li:last-child { border-bottom: none; }
.pricing__features .check { color: var(--success); font-size: 1rem; }

/* ═══════════════════════════════════════════════
   DASHBOARD
═══════════════════════════════════════════════ */
.dashboard { padding: 40px 0 80px; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px; margin-top: 28px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t-med);
  cursor: pointer;
}
.project-card:hover {
  border-color: rgba(99,102,241,0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.project-card__thumb {
  width: 100%; height: 170px;
  background: var(--bg-3);
  overflow: hidden;
  position: relative;
}
.project-card__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow);
}
.project-card:hover .project-card__thumb img { transform: scale(1.04); }
.project-card__body { padding: 18px; }
.project-card__name { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.project-card__meta { display: flex; align-items: center; justify-content: space-between; }
.project-card__date { font-size: 0.78rem; color: var(--text-3); }

.project-card--new {
  border: 2px dashed var(--border-2);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 280px; cursor: pointer;
  transition: all var(--t-med);
}
.project-card--new:hover {
  border-color: var(--primary);
  background: rgba(99,102,241,0.04);
}
.project-card--new__icon {
  font-size: 2.5rem; margin-bottom: 12px;
  color: var(--text-3);
}
.project-card--new p { color: var(--text-2); font-size: 0.95rem; font-weight: 500; }

/* Modal overlay */
.modal-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-med);
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  padding: 36px;
  width: 100%; max-width: 500px;
  transform: translateY(20px);
  transition: transform var(--t-med);
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal__title { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.modal__sub   { color: var(--text-2); font-size: 0.9rem; margin-bottom: 24px; }

/* ═══════════════════════════════════════════════
   BUILDER
═══════════════════════════════════════════════ */
.builder {
  height: calc(100vh - 64px);
  display: flex; overflow: hidden;
}

/* Left panel — Chat */
.builder__chat {
  width: 420px; flex-shrink: 0;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--border);
  background: var(--bg-1);
}
.builder__chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.builder__chat-header h2 { font-size: 0.95rem; font-weight: 700; }
.builder__messages {
  flex: 1; overflow-y: auto; padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  scroll-behavior: smooth;
}
.builder__messages::-webkit-scrollbar { width: 4px; }
.builder__messages::-webkit-scrollbar-track { background: transparent; }
.builder__messages::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 4px; }

/* Message bubbles */
.msg {
  display: flex; gap: 10px; align-items: flex-start;
  animation: slideUp 0.3s ease;
}
.msg--user { flex-direction: row-reverse; }
.msg__avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; flex-shrink: 0;
}
.msg--user .msg__avatar   { background: var(--grad-primary); }
.msg--ai   .msg__avatar   { background: var(--surface-2); }
.msg__bubble {
  max-width: 85%; padding: 11px 15px;
  border-radius: 16px; font-size: 0.9rem; line-height: 1.6;
}
.msg--user .msg__bubble {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg--ai .msg__bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.msg--ai.has-code .msg__bubble { border-color: rgba(99,102,241,0.3); }

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

/* Upload area */
.builder__uploads {
  padding: 10px 20px;
  border-top: 1px solid var(--border);
}
.upload-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 0.75rem; color: var(--text-2);
}
.chip img { width: 16px; height: 16px; object-fit: cover; border-radius: 2px; }

.upload-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px dashed var(--border-2);
  font-size: 0.8rem; color: var(--text-2);
  transition: all var(--t-fast); cursor: pointer;
}
.upload-btn:hover { border-color: var(--primary); color: var(--primary); }

/* Chat input */
.builder__input {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}
.input-row {
  display: flex; gap: 8px; align-items: flex-end;
}
.chat-textarea {
  flex: 1; resize: none; min-height: 44px; max-height: 150px;
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--r-md); color: var(--text-1);
  padding: 11px 14px; font-size: 0.9rem; font-family: inherit;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  overflow-y: auto;
}
.chat-textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
}
.send-btn {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--grad-primary); border: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
  transition: all var(--t-fast);
}
.send-btn:hover { transform: scale(1.05); box-shadow: var(--shadow-glow); }

/* Right panel — Preview */
.builder__preview {
  flex: 1; display: flex; flex-direction: column;
  background: var(--bg-0); overflow: hidden;
}
.preview__header {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}

/* Device tabs */
.device-tabs {
  display: flex; gap: 4px;
  background: var(--bg-2); border-radius: var(--r-sm);
  padding: 3px;
}
.device-tab {
  padding: 6px 12px; border-radius: 6px;
  background: transparent; border: none;
  color: var(--text-3); font-size: 0.82rem; font-weight: 500;
  transition: all var(--t-fast); cursor: pointer;
  display: flex; align-items: center; gap: 5px;
}
.device-tab.active {
  background: var(--surface); color: var(--text-1);
}
.device-tab:hover:not(.active) { color: var(--text-2); }

/* Preview content */
.preview__content {
  flex: 1; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; position: relative;
}
.preview__placeholder {
  text-align: center; color: var(--text-3);
}
.preview__placeholder-icon { font-size: 4rem; margin-bottom: 16px; opacity: 0.4; }
.preview__placeholder h3 { font-size: 1.1rem; color: var(--text-2); }
.preview__placeholder p  { font-size: 0.85rem; margin-top: 6px; }

/* Device mock wrappers */
.device-mock { position: relative; transition: all var(--t-slow); }
.device-mock--phone   { max-width: 280px; }
.device-mock--tablet  { max-width: 480px; }
.device-mock--laptop  { max-width: 100%; }
.device-mock--desktop { max-width: 100%; }

.device-mock img.screenshot {
  width: 100%; border-radius: var(--r-md);
  box-shadow: var(--shadow-lg), 0 0 80px rgba(0,0,0,0.8);
}

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

/* Preview loading overlay */
.preview__loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(7,7,15,0.8);
  flex-direction: column; gap: 12px;
}
.preview__loading p { color: var(--text-2); font-size: 0.9rem; }

/* ═══════════════════════════════════════════════
   AUTH PAGES
═══════════════════════════════════════════════ */
.auth-page {
  min-height: calc(100vh - 64px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
  position: relative;
}
.auth-page::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grad-glow); pointer-events: none;
}
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  padding: 40px;
  position: relative; z-index: 1;
  box-shadow: var(--shadow-lg);
}
.auth-card__logo {
  text-align: center; margin-bottom: 28px;
}
.auth-card__title { font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.auth-card__sub   { color: var(--text-2); font-size: 0.9rem; margin-bottom: 28px; }
.auth-divider {
  text-align: center; color: var(--text-3);
  font-size: 0.82rem; margin: 20px 0;
  position: relative;
}
.auth-divider::before, .auth-divider::after {
  content: ''; position: absolute; top: 50%;
  width: calc(50% - 20px); height: 1px; background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

/* ═══════════════════════════════════════════════
   CHECKOUT PAGE
═══════════════════════════════════════════════ */
.checkout-layout {
  display: grid; grid-template-columns: 1fr 420px;
  gap: 40px; padding: 60px 0 80px;
}
.checkout__summary {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 32px;
  height: fit-content; position: sticky; top: 80px;
}
.checkout__price-row {
  display: flex; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: 0.9rem; color: var(--text-2);
}
.checkout__price-row:last-child { border-bottom: none; font-weight: 700; color: var(--text-1); }
.checkout__total { font-size: 1.3rem !important; }

/* PayPal container */
#paypal-button-container { margin-top: 20px; border-radius: var(--r-md); overflow: hidden; }

/* ═══════════════════════════════════════════════
   DEPLOY MODAL
═══════════════════════════════════════════════ */
.deploy-step {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.deploy-step:last-child { border-bottom: none; }
.deploy-step__icon {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; flex-shrink: 0;
}
.deploy-step--pending .deploy-step__icon  { background: var(--surface-2); color: var(--text-3); }
.deploy-step--active  .deploy-step__icon  { background: rgba(99,102,241,0.2); color: var(--primary); }
.deploy-step--done    .deploy-step__icon  { background: rgba(34,197,94,0.15); color: var(--success); }
.deploy-step--error   .deploy-step__icon  { background: rgba(239,68,68,0.15); color: var(--danger); }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center; color: var(--text-3); font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .builder { flex-direction: column; height: auto; }
  .builder__chat { width: 100%; height: 55vh; }
  .builder__preview { height: 45vh; }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout__summary { position: static; }
}
@media (max-width: 640px) {
  .hero__title { font-size: 2.4rem; }
  .pricing__card { padding: 32px 24px; }
  .navbar__link span { display: none; }
}
