/* FakeReach.ia — Dark Luxury Theme */
:root {
  --bg: #09090b;
  --bg-card: #18181b;
  --bg-card-hover: #1e1e22;
  --border: #27272a;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --accent: #a855f7;
  --accent-hover: #9333ea;
  --accent-glow: rgba(168, 85, 247, 0.15);
  --gold: #f59e0b;
  --success: #22c55e;
  --error: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', -apple-system, sans-serif;
}

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

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.accent { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { font-size: 0.875rem; color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.875rem;
  transition: all 0.2s;
  cursor: pointer; border: none;
}
.btn-primary {
  background: var(--accent); color: white;
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 0 20px var(--accent-glow); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius); }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-danger { background: var(--error); color: white; }
.btn-danger:hover { background: #dc2626; }

/* ── HERO ── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--accent-glow), transparent 60%),
              radial-gradient(circle at 80% 50%, rgba(245, 158, 11, 0.05), transparent 40%);
}
.hero-content { position: relative; text-align: center; max-width: 800px; }
.badge {
  display: inline-block;
  padding: 6px 16px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 500;
  background: var(--accent-glow); border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--accent);
  margin-bottom: 24px;
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 24px; }
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub { font-size: 1.125rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 48px; justify-content: center; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.stat span { font-size: 0.85rem; color: var(--text-muted); }

/* ── SECTIONS ── */
.section { max-width: 1200px; margin: 0 auto; padding: 100px 24px; }
.section-dark { background: var(--bg-card); border-radius: 24px; padding: 80px 40px; margin: 0 24px; max-width: 1200px; margin-left: auto; margin-right: auto; }
.section-sub { color: var(--text-muted); text-align: center; margin-bottom: 48px; font-size: 1.05rem; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; text-align: center; margin-bottom: 12px; letter-spacing: -0.02em; }

/* ── STEPS ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; margin-top: 48px; }
.step {
  padding: 32px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); text-align: center;
  transition: border-color 0.3s;
}
.step:hover { border-color: var(--accent); }
.step-num {
  width: 48px; height: 48px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-glow); border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 50%; font-weight: 800; font-size: 1.25rem; color: var(--accent);
}
.step h3 { margin-bottom: 8px; font-weight: 700; }
.step p { color: var(--text-muted); font-size: 0.9rem; }

/* ── CARDS ── */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 48px; }
.card {
  padding: 32px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); transition: all 0.3s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-icon { font-size: 2rem; margin-bottom: 12px; }
.card h3 { margin-bottom: 8px; font-weight: 700; }
.card p { color: var(--text-muted); font-size: 0.9rem; }

/* ── PRICING ── */
.price-card {
  padding: 32px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); text-align: center; position: relative;
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
}
.price-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.price { font-size: 2.5rem; font-weight: 900; margin-bottom: 24px; }
.price span { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); }
.price-card ul { margin-bottom: 24px; text-align: left; }
.price-card li {
  padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 0.9rem; color: var(--text-muted);
}
.price-card li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.badge-sm {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600;
  background: var(--accent); color: white;
  margin-bottom: 16px;
}

/* ── CTA ── */
.cta-section { text-align: center; padding: 80px 24px; }

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.footer-brand { text-align: center; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-muted); font-size: 0.75rem; }

/* ── FORMS ── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 6px; color: var(--text-muted); }
.form-input {
  width: 100%; padding: 12px 16px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 0.95rem; font-family: var(--font);
  transition: border-color 0.2s;
}
.form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-error { color: var(--error); font-size: 0.8rem; margin-top: 4px; display: none; }
.form-error.show { display: block; }
.form-footer { text-align: center; margin-top: 24px; font-size: 0.85rem; color: var(--text-muted); }
.form-footer a { color: var(--accent); font-weight: 600; }

/* ── Divider ── */
.divider {
  display: flex; align-items: center; gap: 16px;
  margin: 24px 0; color: var(--text-muted); font-size: 0.8rem;
}
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

/* ── Google Button ── */
.btn-google {
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-google:hover { border-color: #4285F4; background: rgba(66, 133, 244, 0.05); }

/* ── AUTH PAGE ── */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: radial-gradient(ellipse at 50% 0%, var(--accent-glow), transparent 60%), var(--bg);
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px;
}
.auth-card h1 { font-size: 1.5rem; text-align: center; margin-bottom: 8px; }
.auth-card .subtitle { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 32px; }

/* ── APP DASHBOARD ── */
.app-page { min-height: 100vh; padding-top: 80px; }
.app-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(9, 9, 11, 0.9); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 64px; display: flex; align-items: center;
  padding: 0 24px; max-width: 1200px; margin: 0 auto;
  left: 50%; transform: translateX(-50%);
  width: 100%;
}
.app-header .logo { margin-right: auto; }
.app-header .user-info { display: flex; align-items: center; gap: 16px; }
.app-header .credits {
  background: var(--accent-glow); border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 4px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; color: var(--accent);
}
.app-header .user-name { font-size: 0.85rem; color: var(--text-muted); }

.app-inner { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

/* ── UPLOAD ZONE ── */
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 48px; text-align: center; cursor: pointer;
  transition: all 0.3s; position: relative;
}
.upload-zone:hover { border-color: var(--accent); background: var(--accent-glow); }
.upload-zone.dragover { border-color: var(--accent); background: var(--accent-glow); }
.upload-zone input { display: none; }
.upload-zone .icon { font-size: 2.5rem; margin-bottom: 12px; }
.upload-zone p { color: var(--text-muted); font-size: 0.9rem; }
.upload-zone .hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 8px; opacity: 0.7; }

/* ── PHOTO GRID ── */
.photo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 16px; }
.photo-slot {
  aspect-ratio: 1; border-radius: var(--radius-sm);
  overflow: hidden; position: relative;
  background: var(--bg-card); border: 1px solid var(--border);
}
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot .delete-btn {
  position: absolute; top: 4px; right: 4px;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(0,0,0,0.7); border: none; color: white;
  font-size: 0.7rem; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s;
}
.photo-slot:hover .delete-btn { opacity: 1; }

/* ── ASSET CARDS ── */
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 16px; }
.asset-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px; text-align: center;
  cursor: pointer; transition: all 0.3s;
}
.asset-card:hover { border-color: var(--accent); }
.asset-card.selected { border-color: var(--accent); box-shadow: 0 0 20px var(--accent-glow); }
.asset-card .icon { font-size: 2rem; margin-bottom: 8px; }
.asset-card h4 { font-size: 0.9rem; font-weight: 600; }
.asset-card .category { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ── VIDEO LIST ── */
.video-list { margin-top: 32px; }
.video-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 12px;
}
.video-item .status {
  padding: 4px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600;
}
.status-pending { background: rgba(245, 158, 11, 0.15); color: var(--gold); }
.status-processing { background: rgba(168, 85, 247, 0.15); color: var(--accent); }
.status-done { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.status-failed { background: rgba(239, 68, 68, 0.15); color: var(--error); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links a:not(.btn) { display: none; }
  .hero-stats { gap: 24px; }
  .app-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .section-dark { margin: 0 12px; padding: 48px 20px; }
}

/* ── LOADING ── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.6s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  padding: 12px 20px; border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 500; z-index: 1000;
  animation: slideIn 0.3s ease;
}
.toast-success { background: var(--success); color: white; }
.toast-error { background: var(--error); color: white; }
@keyframes slideIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
