/* ─────────────────────────────────────────────────────────────────────────────
   VybeCode UI — Marketing Site Styles
   Design system: Rose accent (#f078b4), dark-first, Inter + JetBrains Mono
   ───────────────────────────────────────────────────────────────────────────── */

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

/* ── Reset + base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary:    #0a0a12;
  --bg-secondary:  #0e0e1a;
  --bg-card:       #12121e;
  --bg-elevated:   #1a1a28;
  --border:        #1e1e30;
  --border-light:  #2a2a3e;
  --text-primary:  #e2e8f0;
  --text-secondary:#8c8ca6;
  --text-muted:    #52527a;
  --accent:        #f078b4;
  --accent-deep:   #be1870;
  --accent-glow:   rgba(240,120,180,0.15);
  --success:       #22c55e;
  --radius:        8px;
  --radius-lg:     12px;
  --radius-xl:     16px;
  --max-w:         1120px;
  --font-sans:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

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

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

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #f8a0cc; }

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

/* ── Layout ──────────────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

section { padding: 80px 0; }
section:nth-child(even) { background: var(--bg-secondary); }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,18,0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 18px; font-weight: 800; color: var(--text-primary);
  letter-spacing: -0.5px; display: flex; align-items: center; gap: 8px;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; font-size: 14px; font-weight: 700; font-family: var(--font-sans);
  border-radius: var(--radius); border: none; cursor: pointer;
  transition: all 0.2s; text-decoration: none; letter-spacing: 0.3px;
}
.btn-primary {
  background: linear-gradient(135deg, #f078b4, #e45c9c);
  color: #fff; box-shadow: 0 4px 20px rgba(240,120,180,0.3);
}
.btn-primary:hover {
  transform: translateY(-1px); box-shadow: 0 6px 30px rgba(240,120,180,0.4);
  color: #fff;
}
.btn-secondary {
  background: var(--bg-elevated); color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover {
  background: var(--border); color: #fff;
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  padding: 140px 0 80px; text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(240,120,180,0.06) 0%, transparent 60%);
}
.hero-badge {
  display: inline-block; padding: 6px 14px; border-radius: 20px;
  background: var(--accent-glow); border: 1px solid rgba(240,120,180,0.2);
  font-size: 12px; font-weight: 600; color: var(--accent);
  letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 56px); font-weight: 900; line-height: 1.1;
  letter-spacing: -1px; max-width: 720px; margin: 0 auto 16px;
}
.hero h1 .accent { color: var(--accent); }
.hero .subtitle {
  font-size: clamp(16px, 2vw, 20px); color: var(--text-secondary);
  max-width: 560px; margin: 0 auto 36px; line-height: 1.5;
}
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-screenshot {
  margin-top: 60px; border-radius: var(--radius-xl);
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
}
.hero-screenshot img { width: 100%; }
.placeholder-img {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 14px; font-weight: 500;
  min-height: 200px; border-radius: var(--radius); border: 1px dashed var(--border-light);
}

/* ── Section headers ─────────────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 48px; }
.section-label {
  font-size: 12px; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px;
}
.section-title {
  font-size: clamp(24px, 3.5vw, 36px); font-weight: 800;
  line-height: 1.2; letter-spacing: -0.5px;
}
.section-subtitle {
  font-size: 16px; color: var(--text-secondary); max-width: 560px;
  margin: 12px auto 0; line-height: 1.5;
}

/* ── Feature grid ────────────────────────────────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  padding: 28px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.feature-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-glow); display: flex;
  align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px;
}
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* ── Screenshot gallery ──────────────────────────────────────────────── */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.gallery-item .placeholder-img { min-height: 220px; border-radius: 0; border: none; }
.gallery-caption {
  padding: 12px 16px; background: var(--bg-card);
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
}

/* ── How it works ────────────────────────────────────────────────────── */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px; counter-reset: step;
}
.step { text-align: center; padding: 24px; counter-increment: step; }
.step::before {
  content: counter(step); display: flex; width: 48px; height: 48px;
  align-items: center; justify-content: center; margin: 0 auto 16px;
  border-radius: 50%; background: var(--accent-glow);
  border: 2px solid var(--accent); font-size: 18px; font-weight: 800;
  color: var(--accent);
}
.step h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--text-secondary); }

/* ── Comparison table ────────────────────────────────────────────────── */
.comparison {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 800px; margin: 0 auto;
}
.plan-card {
  padding: 32px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
}
.plan-card.featured {
  border-color: var(--accent); position: relative;
  box-shadow: 0 0 40px rgba(240,120,180,0.1);
}
.plan-card.featured::after {
  content: "BEST VALUE"; position: absolute; top: -10px; right: 16px;
  padding: 4px 12px; border-radius: 4px; font-size: 10px; font-weight: 800;
  background: var(--accent); color: #fff; letter-spacing: 1px;
}
.plan-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.plan-price {
  font-size: 32px; font-weight: 900; margin: 12px 0;
}
.plan-price .currency { font-size: 18px; vertical-align: super; }
.plan-price .period { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.plan-features { list-style: none; margin: 20px 0; }
.plan-features li {
  padding: 8px 0; font-size: 14px; color: var(--text-secondary);
  display: flex; align-items: center; gap: 10px;
}
.plan-features .check { color: var(--success); font-weight: 700; }
.plan-features .cross { color: var(--text-muted); }

/* ── Downloads section ───────────────────────────────────────────────── */
.download-gate {
  max-width: 480px; margin: 0 auto; padding: 32px;
  border-radius: var(--radius-lg); background: var(--bg-card);
  border: 1px solid var(--border); text-align: center;
}
.download-gate h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.download-gate p { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; }
.download-form { display: flex; gap: 8px; }
.download-form input {
  flex: 1; padding: 10px 14px; border-radius: var(--radius);
  background: var(--bg-primary); border: 1px solid var(--border);
  color: var(--text-primary); font-size: 14px; font-family: var(--font-sans);
  outline: none; transition: border-color 0.2s;
}
.download-form input:focus { border-color: var(--accent); }
.download-result {
  margin-top: 16px; padding: 12px 16px; border-radius: var(--radius);
  font-size: 13px; display: none;
}
.download-result.success {
  display: block; background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2);
  color: var(--success);
}
.download-result.error {
  display: block; background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2);
  color: #ef4444;
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq-list { max-width: 680px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border); padding: 20px 0;
}
.faq-item summary {
  font-size: 15px; font-weight: 600; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between;
  align-items: center;
}
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--text-muted); }
.faq-item[open] summary::after { content: "-"; }
.faq-item p { margin-top: 10px; font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer {
  padding: 40px 0; border-top: 1px solid var(--border);
  background: var(--bg-primary);
}
.footer .container {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-copy { font-size: 13px; color: var(--text-muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--text-secondary); }

/* ── Legal pages ─────────────────────────────────────────────────────── */
.legal { padding: 120px 0 60px; }
.legal h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.legal .updated { font-size: 13px; color: var(--text-muted); margin-bottom: 32px; }
.legal h2 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; }
.legal p, .legal li {
  font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 12px;
}
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); }

/* ── Contact form ────────────────────────────────────────────────────── */
.contact-form {
  max-width: 520px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 16px;
}
.contact-form label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-primary); font-size: 14px; font-family: var(--font-sans);
  outline: none; transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--accent); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.form-group { display: flex; flex-direction: column; gap: 6px; }

/* ── Auth pages ──────────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 100px 24px 60px;
  background: radial-gradient(ellipse at 50% 20%, rgba(240,120,180,0.04) 0%, transparent 60%);
}
.auth-card {
  width: 100%; max-width: 420px; padding: 40px;
  border-radius: var(--radius-xl); background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.auth-card h1 {
  font-size: 24px; font-weight: 800; margin-bottom: 4px;
  letter-spacing: -0.5px;
}
.auth-card .auth-subtitle {
  font-size: 14px; color: var(--text-secondary); margin-bottom: 28px;
}
.auth-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 24px 0; color: var(--text-muted); font-size: 12px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}
.auth-footer {
  text-align: center; margin-top: 24px; font-size: 13px; color: var(--text-secondary);
}
.auth-footer a { color: var(--accent); font-weight: 600; }

/* ── Custom form elements ────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-label {
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  letter-spacing: 0.2px;
}
.form-input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius);
  background: var(--bg-primary); border: 1px solid var(--border);
  color: var(--text-primary); font-size: 14px; font-family: var(--font-sans);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240,120,180,0.1);
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:disabled {
  opacity: 0.5; cursor: not-allowed;
}

/* Password wrapper with show/hide toggle */
.password-wrapper { position: relative; }
.password-wrapper .form-input { padding-right: 44px; }
.password-toggle {
  position: absolute; right: 1px; top: 1px;
  width: 42px; height: calc(100% - 2px);
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: color 0.2s;
}
.password-toggle:hover { color: var(--text-secondary); }

/* Custom select */
.form-select {
  width: 100%; padding: 12px 40px 12px 14px; border-radius: var(--radius);
  background: var(--bg-primary); border: 1px solid var(--border);
  color: var(--text-primary); font-size: 14px; font-family: var(--font-sans);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%238c8ca6'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240,120,180,0.1);
}
.form-select option {
  background: var(--bg-card); color: var(--text-primary); padding: 8px;
}

/* Form hint / error */
.form-hint { font-size: 12px; color: var(--text-muted); }
.form-error { font-size: 12px; color: #ef4444; }

/* Google OAuth button */
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px 24px; border-radius: var(--radius);
  background: #fff; color: #1f1f1f; font-size: 14px; font-weight: 600;
  font-family: var(--font-sans); border: 1px solid #dadce0;
  cursor: pointer; transition: background 0.2s, box-shadow 0.2s;
}
.btn-google:hover {
  background: #f8f9fa; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  color: #1f1f1f;
}
.btn-google svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Toast notification ──────────────────────────────────────────────── */
.toast {
  position: fixed; top: 80px; right: 24px; z-index: 200;
  padding: 14px 20px; border-radius: var(--radius);
  font-size: 13px; font-weight: 600; font-family: var(--font-sans);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  transform: translateX(120%); transition: transform 0.3s ease;
  max-width: 360px;
}
.toast.show { transform: translateX(0); }
.toast.success {
  background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.3);
  color: var(--success);
}
.toast.error {
  background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3);
  color: #ef4444;
}

/* ── User menu (nav) ─────────────────────────────────────────────────── */
.user-menu { position: relative; }
.user-menu-trigger {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 8px 4px 4px; border-radius: 20px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  cursor: pointer; transition: border-color 0.2s;
}
.user-menu-trigger:hover { border-color: var(--border-light); }
.user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
  overflow: hidden; flex-shrink: 0;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-menu-name {
  font-size: 13px; font-weight: 600; color: var(--text-primary);
  max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.user-menu-chevron {
  font-size: 10px; color: var(--text-muted);
  transition: transform 0.2s;
}
.user-menu.open .user-menu-chevron { transform: rotate(180deg); }
.user-menu-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 200px; padding: 6px;
  border-radius: var(--radius); background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.user-menu.open .user-menu-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.user-menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 6px;
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  cursor: pointer; transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.user-menu-item:hover {
  background: var(--bg-elevated); color: var(--text-primary);
}
.user-menu-item.danger:hover { color: #ef4444; }
.user-menu-divider {
  height: 1px; background: var(--border); margin: 4px 8px;
}
.user-menu-badge {
  display: inline-flex; padding: 2px 6px; border-radius: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; margin-left: auto;
}
.user-menu-badge.admin {
  background: rgba(240,120,180,0.15); color: var(--accent);
}

/* ── Profile page ────────────────────────────────────────────────────── */
.profile-page { padding: 100px 0 60px; min-height: 100vh; }
.profile-layout { max-width: 800px; margin: 0 auto; }
.profile-header {
  display: flex; align-items: center; gap: 20px; margin-bottom: 32px;
  padding-bottom: 24px; border-bottom: 1px solid var(--border);
}
.profile-avatar-lg {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: #fff;
  overflow: hidden; flex-shrink: 0;
}
.profile-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.profile-info h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; }
.profile-info p { font-size: 13px; color: var(--text-secondary); }

/* Tab bar */
.tab-bar {
  display: flex; gap: 0; margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.tab-bar-item {
  padding: 12px 24px; font-size: 14px; font-weight: 600;
  color: var(--text-muted); cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  background: none; border-top: none; border-left: none; border-right: none;
  font-family: var(--font-sans);
}
.tab-bar-item:hover { color: var(--text-secondary); }
.tab-bar-item.active {
  color: var(--accent); border-bottom-color: var(--accent);
}

/* Profile sections */
.profile-section { margin-bottom: 32px; }
.profile-section h2 {
  font-size: 16px; font-weight: 700; margin-bottom: 16px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.profile-field {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid rgba(30,30,48,0.5);
}
.profile-field-label {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  min-width: 120px;
}
.profile-field-value {
  font-size: 14px; color: var(--text-primary); flex: 1;
}
.profile-field-edit {
  font-size: 12px; font-weight: 600; color: var(--accent);
  cursor: pointer; padding: 4px 10px; border-radius: 4px;
  background: transparent; border: 1px solid rgba(240,120,180,0.2);
  font-family: var(--font-sans);
  transition: background 0.2s;
}
.profile-field-edit:hover { background: rgba(240,120,180,0.08); }

/* Download cards */
.download-card {
  padding: 20px; border-radius: var(--radius-lg);
  background: var(--bg-secondary); border: 1px solid var(--border);
  margin-bottom: 12px;
}
.download-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.download-card-title {
  font-size: 14px; font-weight: 700;
}
.download-card .badge { margin-left: 8px; }
.download-card-meta {
  font-size: 12px; color: var(--text-muted);
}
.download-card-key {
  font-size: 11px; color: var(--text-secondary); padding: 10px 12px;
  border-radius: 6px; background: var(--bg-primary);
  border: 1px solid var(--border);
  font-family: var(--font-mono); word-break: break-all;
  user-select: all; cursor: text; margin-top: 12px;
}
.download-card-key-label {
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  margin-top: 12px; margin-bottom: 6px; text-transform: uppercase;
  letter-spacing: 0.5px;
}
.empty-state {
  text-align: center; padding: 48px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-secondary); border: 1px solid var(--border);
}
.empty-state-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.5; }
.empty-state h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.empty-state p { font-size: 13px; color: var(--text-secondary); }

/* ── Badges ──────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; padding: 3px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.3px;
  text-transform: uppercase;
}
.badge-active { background: rgba(34,197,94,0.15); color: var(--success); }
.badge-refunded { background: rgba(239,68,68,0.15); color: #ef4444; }
.badge-admin { background: rgba(240,120,180,0.15); color: var(--accent); }
.badge-user { background: rgba(140,140,166,0.15); color: var(--text-secondary); }

/* ── Admin dashboard ─────────────────────────────────────────────────── */
.admin-page { padding: 100px 0 60px; min-height: 100vh; }
.admin-layout { max-width: 960px; margin: 0 auto; }
.admin-header {
  margin-bottom: 32px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.admin-header h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.3px; }
.admin-header p { font-size: 14px; color: var(--text-secondary); }

/* Stats grid */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 32px;
}
.stat-card {
  padding: 20px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
}
.stat-card-label {
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px;
}
.stat-card-value {
  font-size: 28px; font-weight: 800; letter-spacing: -0.5px;
}
.stat-card-value.accent { color: var(--accent); }
.stat-card-value.success { color: var(--success); }

/* Admin table */
.admin-table-wrapper {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border);
}
.admin-table {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
}
.admin-table th {
  padding: 12px 16px; text-align: left;
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
  background: var(--bg-secondary); border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 12px 16px; border-bottom: 1px solid rgba(30,30,48,0.5);
  color: var(--text-secondary);
}
.admin-table tr:hover td { background: rgba(240,120,180,0.02); }
.admin-table .user-email { color: var(--text-primary); font-weight: 600; }
.admin-table .user-date { font-size: 12px; color: var(--text-muted); }

/* Role select in table */
.role-select {
  padding: 5px 28px 5px 10px; border-radius: 4px;
  background: var(--bg-primary); border: 1px solid var(--border);
  color: var(--text-primary); font-size: 12px; font-weight: 600;
  font-family: var(--font-sans); cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238c8ca6'%3E%3Cpath d='M3 5l3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: border-color 0.2s;
}
.role-select:focus { border-color: var(--accent); outline: none; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .comparison { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  section { padding: 48px 0; }
  .profile-header { flex-direction: column; text-align: center; }
  .profile-field { flex-direction: column; align-items: flex-start; gap: 4px; }
  .admin-table { font-size: 12px; }
  .admin-table th, .admin-table td { padding: 8px 10px; }
  .auth-card { padding: 28px 20px; }
}
