/* ═══════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════ */
:root {
  --bg-primary:    #080810;
  --bg-secondary:  #0F0F1A;
  --bg-tertiary:   #16162A;
  --bg-card:       #0F0F1A;
  --border:        rgba(255,255,255,0.08);
  --border-hover:  rgba(99,102,241,0.5);
  --accent-1:      #6366F1;
  --accent-2:      #8B5CF6;
  --accent-gradient: linear-gradient(135deg, #6366F1, #8B5CF6);
  --text-primary:  #FFFFFF;
  --text-secondary:#A0A0B8;
  --text-muted:    #606080;
  --success:       #10B981;
  --error:         #EF4444;
  --warning:       #F59E0B;
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --shadow:        0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow:   0 4px 20px rgba(99,102,241,0.35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

.hidden { display: none !important; }

/* ═══════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,8,16,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 64px;
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.logo-icon { height: 48px; width: 48px; object-fit: contain; }

.logo-accent { color: var(--accent-2); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.credit-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-2);
}

.nav-email {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn-primary {
  background: var(--accent-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(99,102,241,0.45);
}

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

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
}

.btn-full { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: var(--radius-lg); }

/* Spinner inside button */
.btn-primary.loading,
.btn-ghost.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* ═══════════════════════════════════════════
   CARDS
═══════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.card-hover {
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

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

/* ═══════════════════════════════════════════
   FORMS
═══════════════════════════════════════════ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-input {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: 16px; /* 16px prevents iOS Safari auto-zoom */
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

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

textarea.form-input {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.section-title {
  font-size: 42px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -1px;
  line-height: 1.1;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 64px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

/* ═══════════════════════════════════════════
   BADGES & PILLS
═══════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.badge-success {
  background: rgba(16,185,129,0.1);
  border-color: rgba(16,185,129,0.3);
  color: var(--success);
}

.badge-error {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.3);
  color: var(--error);
}

.badge-popular {
  background: var(--accent-gradient);
  border: none;
  color: white;
}

/* ═══════════════════════════════════════════
   ALERTS
═══════════════════════════════════════════ */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
}

.alert-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: var(--error);
}

.alert-success {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--success);
}

.alert-info {
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.3);
  color: var(--accent-2);
}

.alert-warning {
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.3);
  color: var(--warning);
}

/* ═══════════════════════════════════════════
   TABS (auth form)
═══════════════════════════════════════════ */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 16px;
  cursor: pointer;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tab-btn.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-1);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ═══════════════════════════════════════════
   UPLOAD ZONE
═══════════════════════════════════════════ */
.upload-zone {
  position: relative;
  border: 2px dashed rgba(99,102,241,0.4);
  border-radius: var(--radius-lg);
  background: rgba(99,102,241,0.03);
  padding: 48px 32px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: rgba(99,102,241,0.8);
  background: rgba(99,102,241,0.08);
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-icon { font-size: 48px; margin-bottom: 16px; }
.upload-title { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.upload-sub { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; }
.upload-fmt { font-size: 12px; color: var(--text-muted); }
.upload-selected { margin-top: 16px; font-size: 14px; color: var(--accent-2); font-weight: 500; }

/* ═══════════════════════════════════════════
   COST PREVIEW
═══════════════════════════════════════════ */
.cost-bar {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 24px;
}

.cost-bar.ok  { border-color: rgba(16,185,129,0.3); }
.cost-bar.warn { border-color: rgba(239,68,68,0.3); }

.cost-item { text-align: center; }
.cost-val { font-size: 24px; font-weight: 800; color: var(--text-primary); }
.cost-lbl { font-size: 12px; color: var(--text-muted); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.06em; }
.cost-sep { width: 1px; height: 40px; background: var(--border); }

/* ═══════════════════════════════════════════
   CREDIT STATUS BAR
═══════════════════════════════════════════ */
.credit-status {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
}

.credit-status-new     { background: rgba(99,102,241,0.08);  border: 1px solid rgba(99,102,241,0.2);  }
.credit-status-ok      { background: rgba(16,185,129,0.07);  border: 1px solid rgba(16,185,129,0.2);  }
.credit-status-empty   { background: rgba(239,68,68,0.07);   border: 1px solid rgba(239,68,68,0.2);   }

.credit-status-icon { font-size: 26px; flex-shrink: 0; }
.credit-status-body { flex: 1; }
.credit-status-title { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.credit-status-sub   { color: var(--text-secondary); font-size: 13px; }

/* ═══════════════════════════════════════════
   VIDEO HISTORY GRID
═══════════════════════════════════════════ */
.history-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.history-title { font-size: 15px; font-weight: 700; }

.history-count {
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 100px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-2);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.video-card {
  background: var(--bg-card);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.video-thumb {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.video-info { flex: 1; min-width: 0; }
.video-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-date { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.video-badge { display: inline-block; margin-top: 4px; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 100px; }

.bv-b-ig { background: rgba(131,58,180,0.15); color: #E1306C; border: 1px solid rgba(225,48,108,0.3); }
.bv-b-tt { background: rgba(1,1,1,0.3);       color: #A0A0FF; border: 1px solid rgba(80,80,200,0.3); }
.bv-b-yt { background: rgba(139,0,0,0.15);    color: #FF4444; border: 1px solid rgba(255,0,0,0.3);   }
.bv-b-fb { background: rgba(24,119,242,0.12); color: #5B9BD5; border: 1px solid rgba(24,119,242,0.3);}
.bv-b-hq { background: rgba(37,99,235,0.12);  color: #60A5FA; border: 1px solid rgba(37,99,235,0.3); }

.history-footer {
  padding: 12px 20px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
}

.history-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
}

.history-empty-icon { font-size: 48px; margin-bottom: 12px; }
.history-empty-title { font-size: 15px; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }
.history-empty-sub { font-size: 13px; }

/* ═══════════════════════════════════════════
   BUY CREDITS
═══════════════════════════════════════════ */
.buy-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.buy-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; }

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

.tier-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.tier-option:hover { border-color: var(--border-hover); background: rgba(99,102,241,0.04); }
.tier-option.selected { border-color: var(--accent-1); background: rgba(99,102,241,0.08); }

.tier-option input[type="radio"] { accent-color: var(--accent-1); width: 16px; height: 16px; flex-shrink: 0; }
.tier-info { flex: 1; }
.tier-name { font-weight: 600; font-size: 14px; }
.tier-desc { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.tier-price { font-size: 18px; font-weight: 800; color: var(--text-primary); }
.tier-popular { display: flex; align-items: center; }

/* ═══════════════════════════════════════════
   EXPORT BUTTONS
═══════════════════════════════════════════ */
.export-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.export-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 12px;
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-weight: 600;
  font-size: 13px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.export-btn:hover { transform: translateY(-2px); }

.bv-e-ig { background: linear-gradient(135deg, #833AB4, #E1306C, #F77737); }
.bv-e-tt { background: linear-gradient(135deg, #010101, #0f3460, #533483); }
.bv-e-yt { background: linear-gradient(135deg, #8B0000, #FF0000); }
.bv-e-fb { background: linear-gradient(135deg, #1a3a6b, #1877F2); }
.bv-e-hq { background: linear-gradient(135deg, #1e3a5f, #2563EB); }

.export-btn .export-icon { font-size: 24px; }

/* ═══════════════════════════════════════════
   PROCESSING SCREEN
═══════════════════════════════════════════ */
.processing-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}

.spinner-ring {
  width: 72px;
  height: 72px;
  border: 4px solid rgba(99,102,241,0.15);
  border-top-color: var(--accent-1);
  border-radius: 50%;
  animation: bv-spin 1s linear infinite;
  margin: 0 auto 32px;
}

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

.progress-bar-wrap {
  background: var(--bg-secondary);
  border-radius: 100px;
  height: 6px;
  overflow: hidden;
  margin: 24px 0;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 100px;
  width: 0%;
  transition: width 0.6s ease;
  position: relative;
  overflow: hidden;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.steps { display: flex; flex-direction: column; gap: 12px; text-align: left; margin-top: 32px; }

.step-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
  transition: all 0.3s;
}

.step-item.active  { color: var(--text-primary); border-color: rgba(99,102,241,0.4); background: rgba(99,102,241,0.06); }
.step-item.done    { color: var(--success);       border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.04); text-decoration: line-through; text-decoration-color: rgba(16,185,129,0.5); }

.step-icon { font-size: 20px; flex-shrink: 0; }

/* ═══════════════════════════════════════════
   COMPARISON SLIDER
═══════════════════════════════════════════ */
.compare-wrap {
  display: flex;
  border-radius: var(--radius-lg);
  overflow: hidden;
  user-select: none;
  touch-action: none;
  border: 1px solid var(--border);
  height: clamp(260px, 45vw, 520px);
  background: #000;
  isolation: isolate;
}

/* Each video pane sits side-by-side; before starts at 50% */
.compare-pane {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  height: 100%;
  min-height: 0;
  min-width: 0;
}

.compare-pane-before { width: 50%; }
.compare-pane-after  { flex: 1; }

.compare-pane video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Drag divider is a flex child — no absolute positioning needed */
.compare-divider {
  width: 3px;
  flex-shrink: 0;
  background: white;
  position: relative;
  cursor: ew-resize;
}

.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
  font-size: 16px;
  color: #333;
}

.compare-handle.dragging { box-shadow: 0 4px 20px rgba(0,0,0,0.7); }

.compare-label {
  position: absolute;
  top: 12px;
  padding: 4px 12px;
  background: rgba(0,0,0,0.6);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.compare-label-before { left: 12px; }
.compare-label-after  { right: 12px; }

/* ═══════════════════════════════════════════
   PRICING CARDS
═══════════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}

.pricing-card.featured {
  border-color: var(--accent-1);
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.08));
  transform: scale(1.04);
}

.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.featured:hover { transform: scale(1.04) translateY(-4px); }

.pricing-name { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.pricing-price { font-size: 48px; font-weight: 900; letter-spacing: -2px; margin: 16px 0 4px; }
.pricing-price span { font-size: 20px; font-weight: 600; vertical-align: super; letter-spacing: 0; }
.pricing-credits { color: var(--accent-2); font-size: 15px; font-weight: 600; margin-bottom: 24px; }

.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.pricing-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-secondary); }
.pricing-features li::before { content: '✓'; color: var(--success); font-weight: 700; }

/* ═══════════════════════════════════════════
   PAGE LAYOUTS (legal, info pages)
═══════════════════════════════════════════ */
.page-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.page-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.page-section { margin-bottom: 40px; }

.page-section h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.page-section p,
.page-section li {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 12px;
}

.page-section ul,
.page-section ol {
  padding-left: 20px;
}

.page-section strong { color: var(--text-primary); font-weight: 600; }

/* ═══════════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════════ */
.steps-grid { display: flex; flex-direction: column; gap: 48px; }

.step-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: start;
}

.step-number {
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.step-title { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.step-body { color: var(--text-secondary); font-size: 15px; line-height: 1.7; }

/* ═══════════════════════════════════════════
   CONTACT FORM
═══════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 48px;
  align-items: start;
}

.contact-info-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.contact-info-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 20px; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
}

.contact-item-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.contact-item-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 2px; }
.contact-item-value { color: var(--text-secondary); }

.contact-sent { display: none; padding: 24px; text-align: center; }
.contact-sent.visible { display: block; }

/* ═══════════════════════════════════════════
   HERO (landing)
═══════════════════════════════════════════ */
.hero {
  padding: 96px 24px 80px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-badge { margin-bottom: 32px; }

.hero h1 {
  font-size: 72px;
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1.0;
  margin-bottom: 28px;
}

.hero h1 .gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-trust {
  font-size: 13px;
  color: var(--text-muted);
}

.sovereign-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px;
  margin-top: 48px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.sovereign-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: left !important;
}

.sovereign-card .sovereign-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 16px;
  text-align: left;
}

.sovereign-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-align: left;
}

.sovereign-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  text-align: left;
}

/* ═══════════════════════════════════════════
   SOCIAL PROOF BAR
═══════════════════════════════════════════ */
.social-proof {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  text-align: center;
}

.social-proof-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.platform-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.platform-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.platform-icon .icon { font-size: 22px; }

/* ═══════════════════════════════════════════
   AUTH CARD
═══════════════════════════════════════════ */
.auth-section {
  padding: 64px 24px;
}

.auth-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 0 24px 72px rgba(0,0,0,0.55);
}

.auth-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.auth-sub { font-size: 14px; color: var(--text-secondary); margin-bottom: 28px; }

.auth-form { display: flex; flex-direction: column; gap: 20px; }

.forgot-link {
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  text-align: right;
  transition: color 0.2s;
}

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

/* ═══════════════════════════════════════════
   USE CASES GRID
═══════════════════════════════════════════ */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.usecase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.usecase-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.usecase-icon { font-size: 32px; margin-bottom: 12px; }
.usecase-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.usecase-body { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* ═══════════════════════════════════════════
   DASHBOARD LAYOUT
═══════════════════════════════════════════ */
.dashboard-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.welcome-banner {
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.15));
  border: 1px solid rgba(99,102,241,0.2);
}

.welcome-stats {
  display: flex;
  gap: 32px;
  flex-shrink: 0;
}

.welcome-stat { text-align: center; }
.welcome-stat-val { font-size: 20px; font-weight: 800; color: var(--accent-1); }
.welcome-stat-lbl { font-size: 10px; color: var(--text-secondary); margin-top: 1px; }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 24px;
  margin-top: 96px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 12px;
  line-height: 1.6;
}

.copyright {
  color: var(--text-muted) !important;
  font-size: 13px !important;
  margin-top: 24px !important;
}

.footer-links { display: flex; flex-direction: column; gap: 12px; }

.footer-links h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.footer-links a { color: var(--text-secondary); font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-primary); }

/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .pricing-card.featured { transform: none; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE
═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .container, .container-sm { padding: 0 16px; }

  .section-title { font-size: 28px; letter-spacing: -0.5px; }
  .section-subtitle { font-size: 16px; margin-bottom: 40px; }

  .navbar { height: 56px; }
  .nav-content { padding: 0 16px; }
  .nav-email { display: none; }
  .logo { font-size: 18px; }

  .btn-primary, .btn-ghost { padding: 12px 16px; font-size: 14px; min-height: 48px; }
  .btn-lg { padding: 14px 24px; font-size: 15px; }

  .hero { padding: 64px 16px 48px; }
  .hero h1 { font-size: 40px; letter-spacing: -1.5px; }
  .hero-sub { font-size: 16px; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .sovereign-grid { grid-template-columns: 1fr; max-width: 400px; margin-top: 32px; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-ghost { width: 100%; }

  .auth-card { padding: 28px 20px; border-radius: var(--radius-lg); }

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

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

  .export-grid { grid-template-columns: repeat(2, 1fr); }
  .export-btn .export-sub { display: none; }

  .footer { padding: 48px 16px; margin-top: 64px; }
  .footer-content { grid-template-columns: 1fr; gap: 32px; }

  .welcome-banner { flex-direction: column; align-items: flex-start; }
  .welcome-stats { gap: 20px; }

  .step-card { grid-template-columns: 1fr; gap: 16px; }
  .step-number { font-size: 36px; }

  .page-wrap { padding: 40px 16px 64px; }
  .page-title { font-size: 28px; }

  .cost-bar { flex-direction: column; gap: 12px; }
  .cost-sep { width: 40px; height: 1px; }

  .platform-icons { gap: 20px; }

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


/* ═══════════════════════════════════════════
   SEO PAGES
═══════════════════════════════════════════ */
.seo-page { max-width: 860px; margin: 0 auto; padding: 60px 24px 80px; }

.seo-hero {
  text-align: center;
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.seo-hero .badge { margin-bottom: 16px; display: inline-block; }
.seo-hero h1 {
  font-size: 40px; font-weight: 900; letter-spacing: -1px;
  line-height: 1.15; margin-bottom: 16px;
}
.seo-hero .seo-sub {
  font-size: 17px; color: var(--text-secondary);
  max-width: 600px; margin: 0 auto 28px; line-height: 1.7;
}
.seo-cta-row {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 16px;
}
.seo-trust {
  font-size: 13px; color: var(--text-muted);
}

.seo-section { margin-bottom: 48px; }
.seo-section h2 {
  font-size: 26px; font-weight: 800; letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.seo-section h3 {
  font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--text-primary);
}
.seo-section p, .seo-section li {
  font-size: 15px; color: var(--text-secondary); line-height: 1.8;
}
.seo-section ul { list-style: none; padding: 0; }
.seo-section ul li { padding: 6px 0 6px 24px; position: relative; }
.seo-section ul li::before {
  content: "✦"; position: absolute; left: 0; color: var(--accent-1); font-size: 12px;
}

.seo-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; margin-top: 20px;
}
.seo-card {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 28px 24px;
  transition: border-color 0.2s;
}
.seo-card:hover { border-color: var(--border-hover); }
.seo-card-icon { font-size: 28px; margin-bottom: 12px; }
.seo-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.seo-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

.seo-stats {
  display: flex; justify-content: space-around; flex-wrap: wrap;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 28px 16px; gap: 20px;
  margin: 32px 0;
}
.seo-stat { text-align: center; }
.seo-stat-val {
  font-size: 28px; font-weight: 900; background: var(--accent-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.seo-stat-label {
  font-size: 11px; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.06em; margin-top: 4px;
}

.seo-vs-table {
  width: 100%; border-collapse: collapse; margin-top: 20px;
  font-size: 14px;
}
.seo-vs-table th, .seo-vs-table td {
  padding: 14px 16px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.seo-vs-table th {
  color: var(--text-muted); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; font-weight: 600;
}
.seo-vs-table td { color: var(--text-secondary); }
.seo-vs-table tr:hover td { background: rgba(99,102,241,0.04); }
.seo-vs-table .seo-win { color: var(--success); font-weight: 600; }
.seo-vs-table .seo-lose { color: var(--text-muted); }

.seo-faq { margin-top: 48px; }
.seo-faq h2 { margin-bottom: 24px; }
.seo-faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  margin-bottom: 12px; overflow: hidden;
}
.seo-faq-q {
  width: 100%; background: var(--bg-secondary); border: none;
  color: var(--text-primary); font-size: 15px; font-weight: 600;
  padding: 18px 20px; text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: background 0.15s;
}
.seo-faq-q:hover { background: var(--bg-tertiary); }
.seo-faq-q::after { content: "+"; font-size: 20px; color: var(--accent-1); transition: transform 0.2s; }
.seo-faq-item.open .seo-faq-q::after { transform: rotate(45deg); }
.seo-faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  background: var(--bg-secondary);
}
.seo-faq-item.open .seo-faq-a { max-height: 300px; }
.seo-faq-a p {
  padding: 0 20px 18px; font-size: 14px; color: var(--text-secondary); line-height: 1.7;
}

.seo-bottom-cta {
  text-align: center; margin-top: 56px; padding-top: 48px;
  border-top: 1px solid var(--border);
}
.seo-bottom-cta h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.seo-bottom-cta p {
  font-size: 15px; color: var(--text-secondary); margin-bottom: 24px;
}

.seo-breadcrumb {
  font-size: 13px; color: var(--text-muted); margin-bottom: 24px;
}
.seo-breadcrumb a { color: var(--text-secondary); }
.seo-breadcrumb a:hover { color: var(--accent-1); }
.seo-breadcrumb span { margin: 0 6px; }

.seo-internal-links {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px;
}
.seo-internal-links a {
  font-size: 13px; color: var(--accent-1); background: rgba(99,102,241,0.1);
  padding: 6px 14px; border-radius: var(--radius-sm);
  border: 1px solid rgba(99,102,241,0.2); transition: all 0.15s;
}
.seo-internal-links a:hover {
  background: rgba(99,102,241,0.2); border-color: rgba(99,102,241,0.4);
}

@media (max-width: 640px) {
  .seo-hero h1 { font-size: 28px; }
  .seo-section h2 { font-size: 22px; }
  .seo-stats { flex-direction: column; align-items: center; }
  .seo-vs-table { font-size: 13px; }
  .seo-vs-table th, .seo-vs-table td { padding: 10px 8px; }
}


/* ═══════════════════════════════════════════
   DASHBOARD TABS + REFERRAL
═══════════════════════════════════════════ */

.free-tier-alert {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  margin-bottom: 12px;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--radius);
  font-size: 13px;
}
.free-tier-alert-title { font-weight: 700; color: var(--text-primary); }
.free-tier-alert-sub { color: var(--text-secondary); }

/* ── 4K Upscale Card ──────────────────────────────────── */
.upscale-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(99,102,241,0.10), rgba(139,92,246,0.10));
  border: 1px solid rgba(139,92,246,0.30);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color 0.2s;
}
.upscale-card:hover { border-color: rgba(139,92,246,0.5); }
.upscale-card-left { display: flex; align-items: center; gap: 12px; }
.upscale-card-badge {
  font-size: 13px; font-weight: 800; letter-spacing: 0.04em;
  color: #fff; background: var(--primary);
  padding: 4px 10px; border-radius: 6px;
  flex-shrink: 0;
}
.upscale-card-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.upscale-card-sub { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* Toggle switch (pure visual, no checkbox) */
.upscale-switch-visual {
  width: 44px; height: 24px; flex-shrink: 0;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}
.upscale-switch-visual::after {
  content: '';
  position: absolute;
  top: 1px; left: 1px;
  width: 20px; height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.upscale-switch-visual.active {
  background: #10b981;
  border-color: #10b981;
}
.upscale-switch-visual.active::after { transform: translateX(20px); }

.dashboard-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  gap: 0;
}
.dash-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  padding: 14px 16px;
  cursor: pointer;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  position: relative;
}
.dash-tab:hover { color: var(--text-primary); }
.dash-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-1);
}
.dash-tab-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  margin-left: 6px;
  vertical-align: middle;
}
.dash-panel { display: none; }
.dash-panel.active { display: block; }

/* ── Referral Hero ── */
.referral-hero {
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.15));
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  margin-bottom: 24px;
  text-align: center;
}
.referral-hero-title {
  font-size: 24px; font-weight: 900; letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.referral-hero-sub {
  font-size: 15px; color: var(--text-secondary); line-height: 1.6;
}

/* ── Referral Link ── */
.referral-link-section { margin-bottom: 20px; }
.referral-link-row {
  display: flex; gap: 10px; align-items: stretch;
}
.referral-link-input {
  flex: 1;
  font-size: 14px;
  background: var(--bg-tertiary) !important;
  color: var(--accent-2) !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: text;
}

/* ── Share Buttons ── */
.referral-share-section { margin-bottom: 24px; }
.referral-share-row {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.share-btn {
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  color: #fff;
  transition: opacity 0.2s, transform 0.1s;
}
.share-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.share-whatsapp { background: #25D366; }
.share-twitter  { background: #1DA1F2; }
.share-facebook { background: #1877F2; }
.share-email    { background: var(--accent-1); }
.share-sms      { background: #8B5CF6; }

/* ── Referral Stats ── */
.referral-stats-row {
  display: flex;
  justify-content: space-around;
  gap: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  margin-bottom: 24px;
}

/* ── Section Titles ── */
.referral-section-title {
  font-size: 16px; font-weight: 700; margin-bottom: 14px;
}

/* ── Milestones ── */
.referral-milestones-section { margin-bottom: 28px; }
.milestone-track { position: relative; padding-bottom: 60px; }
.milestone-bar {
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.milestone-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  border-radius: 3px;
  transition: width 0.6s ease;
}
.milestone-markers { position: relative; height: 56px; }
.milestone-marker {
  position: absolute;
  transform: translateX(-50%);
  text-align: center;
  top: 8px;
}
.milestone-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  margin: 0 auto 4px;
  border: 2px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-muted);
}
.milestone-marker.achieved .milestone-dot {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border-color: var(--accent-1);
  color: #fff;
}
.milestone-label {
  font-size: 10px; font-weight: 600; color: var(--text-secondary);
  white-space: nowrap;
}
.milestone-reward {
  font-size: 9px; color: var(--text-muted);
  white-space: nowrap;
}

/* ── Leaderboard ── */
.referral-leaderboard-section { margin-bottom: 24px; }
.leaderboard-list {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.leaderboard-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.leaderboard-row:last-child { border-bottom: none; }
.leaderboard-rank {
  font-size: 14px; font-weight: 800; color: var(--accent-1);
  min-width: 36px;
}
.leaderboard-email { flex: 1; color: var(--text-secondary); }
.leaderboard-count {
  font-size: 13px; font-weight: 600; color: var(--text-primary);
}
.leaderboard-self {
  background: rgba(99,102,241,0.08);
  border-left: 3px solid var(--accent-1);
}
.leaderboard-you {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--accent-2);
  font-weight: 600;
  text-align: center;
  border-top: 1px solid var(--border);
}
.leaderboard-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

/* ── Referral History ── */
.referral-list { }
.referral-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.referral-row:last-child { border-bottom: none; }
.referral-row-email { flex: 1; color: var(--text-secondary); font-weight: 500; }
.referral-row-credits { font-weight: 700; color: var(--success); min-width: 40px; text-align: right; }
.referral-row-date { color: var(--text-muted); font-size: 12px; min-width: 60px; text-align: right; }

/* ── How It Works (referral) ── */
.referral-how-it-works {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.referral-steps { display: flex; flex-direction: column; gap: 16px; }
.referral-step {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.referral-step-num {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
}
.referral-step-text {
  font-size: 14px; color: var(--text-secondary); line-height: 1.5;
}
.referral-step-text strong { color: var(--text-primary); font-weight: 700; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .referral-stats-row { flex-wrap: wrap; }
  .referral-share-row { flex-wrap: wrap; }
  .share-btn { flex: 1; min-width: 80px; text-align: center; }
}
@media (max-width: 480px) {
  .referral-hero { padding: 24px 20px; }
  .referral-hero-title { font-size: 20px; }
  .referral-link-row { flex-direction: column; }
  .referral-stats-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    padding: 16px;
  }
  .leaderboard-row { padding: 10px 12px; font-size: 13px; }
  .referral-row { flex-wrap: wrap; gap: 8px; }
  .milestone-label, .milestone-reward { font-size: 8px; }
}
