@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #07070f;
  --bg2: #0f0f1e;
  --bg3: #16162a;
  --border: rgba(255,255,255,0.07);
  --accent: #6c63ff;
  --accent2: #8b5cf6;
  --accent3: #a78bfa;
  --green: #22c55e;
  --red: #ef4444;
  --text: #e8e8f0;
  --muted: rgba(255,255,255,0.38);
  --radius: 12px;
  --shadow-accent: 0 4px 32px rgba(108,99,255,.3);
}

/* ── Light mode ── */
html.light-mode {
  --bg: #f4f5fb;
  --bg2: #ffffff;
  --bg3: #eef0f8;
  --border: rgba(0,0,0,0.09);
  --accent: #6c63ff;
  --accent2: #8b5cf6;
  --accent3: #a78bfa;
  --green: #16a34a;
  --red: #dc2626;
  --text: #111827;
  --muted: rgba(0,0,0,0.45);
  --shadow-accent: 0 4px 24px rgba(108,99,255,.2);
}
html.light-mode body { background: var(--bg); color: var(--text); }
html.light-mode nav.topnav { background: rgba(244,245,251,0.92); }
html.light-mode .nav-links a:hover { color: var(--text); }
html.light-mode .card { box-shadow: 0 1px 8px rgba(0,0,0,.07); }
html.light-mode .sidebar { background: #fff; border-right-color: rgba(0,0,0,.08); }
html.light-mode .sidebar-logo { color: var(--text); }
html.light-mode .sidebar-link:hover, html.light-mode .sidebar-link.active { background: rgba(108,99,255,.08); }
html.light-mode .admin-header { background: #fff; border-bottom-color: rgba(0,0,0,.08); }
html.light-mode table thead th { background: #f8f9ff; color: #6b7280; }
html.light-mode table tbody tr:hover { background: rgba(108,99,255,.04); }
html.light-mode .btn-ghost { background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.1); color: var(--text); }
html.light-mode .btn-outline { border-color: rgba(0,0,0,.15); color: var(--text); }
html.light-mode .btn-outline:hover { border-color: var(--accent); color: var(--accent); }
html.light-mode input, html.light-mode select, html.light-mode textarea {
  background: #fff; border-color: rgba(0,0,0,.15); color: var(--text);
}
html.light-mode input::placeholder, html.light-mode textarea::placeholder { color: rgba(0,0,0,.3); }
html.light-mode input:focus, html.light-mode select:focus { border-color: var(--accent); }
html.light-mode .order-card { background: #fff; border-color: rgba(0,0,0,.09); }
html.light-mode .checkout-header { background: #fff; border-bottom-color: rgba(0,0,0,.08); }
html.light-mode .checkout-logo { color: var(--text); }
html.light-mode .stat-card { background: #fff; border-color: rgba(0,0,0,.08); }
html.light-mode .stat-value { color: var(--text); }
html.light-mode .plan-price-num { color: var(--text); }
html.light-mode .plan-option-price { color: var(--text); }
html.light-mode .testimonial-text { color: rgba(0,0,0,.75); }
html.light-mode .plan-feature { color: rgba(0,0,0,.65); }
html.light-mode .order-feature { color: rgba(0,0,0,.55); }
html.light-mode .footer-links a { color: rgba(0,0,0,.5); }
html.light-mode .footer-links a:hover { color: var(--text); }
html.light-mode .footer-bottom a:hover { color: var(--text); }
html.light-mode .hero-note { color: rgba(0,0,0,.35); }
html.light-mode .hero-trust-item { color: rgba(0,0,0,.5); }
html.light-mode .auth-logo { color: var(--text); }
html.light-mode .auth-card { background: #fff; }
html.light-mode .step { background: #f8f9ff; }
html.light-mode .feature-card { background: #fff; }
html.light-mode .testimonial-card { background: #fff; }
html.light-mode .pricing-card-v2 { background: #fff; }
html.light-mode .pricing-card-v2.featured { background: linear-gradient(160deg, rgba(108,99,255,.06), #fff); }
html.light-mode .section-dark { background: #eef0f8; }
html.light-mode .legal-nav { background: rgba(244,245,251,0.95); border-bottom-color: rgba(0,0,0,.08); }
html.light-mode .legal-nav a[style*="color:#fff"] { color: var(--text) !important; }
html.light-mode .legal-body h2 { color: var(--text); }
html.light-mode .legal-body h3 { color: rgba(0,0,0,.8); }
html.light-mode .legal-body p, html.light-mode .legal-body li { color: rgba(0,0,0,.65); }
html.light-mode .toc { background: #f8f9ff; }
html.light-mode .data-table th { color: rgba(0,0,0,.5); }
html.light-mode .data-table td { color: rgba(0,0,0,.65); }
html.light-mode .highlight-box { background: rgba(108,99,255,.05); }
html.light-mode .warn-box { background: rgba(239,68,68,.05); }
html.light-mode .contact-info-val { color: var(--text); }
html.light-mode .plan-toggle { background: #f8f9ff; }
html.light-mode .plan-toggle-btn:hover:not(.active) { color: var(--text); }

/* ── Theme + Lang toggle ── */
.pref-bar { display:flex; align-items:center; gap:8px; }
.pref-toggle { display:flex; border:1px solid var(--border); border-radius:8px; overflow:hidden; }
.pref-toggle button { background:transparent; border:none; padding:5px 11px; font-size:12px; font-weight:600; color:var(--muted); cursor:pointer; font-family:inherit; transition:all .15s; }
.pref-toggle button.active { background:var(--accent); color:#fff; }
.pref-toggle button:hover:not(.active) { background:rgba(108,99,255,.1); color:var(--accent); }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ── Layout ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.container-sm { max-width: 480px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ── */
nav.topnav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,7,15,0.88); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 28px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-size: 19px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 8px; letter-spacing: -.3px; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; color: var(--muted); transition: color .15s; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff !important; padding: 8px 20px; border-radius: 8px;
  font-weight: 700; font-size: 13px !important;
  box-shadow: 0 2px 14px rgba(108,99,255,.4);
  transition: all .2s !important;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(108,99,255,.55) !important; text-decoration: none !important; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px; border: none; border-radius: 10px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: all .2s; text-decoration: none; letter-spacing: -.1px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; box-shadow: var(--shadow-accent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(108,99,255,.55); text-decoration: none; color: #fff; }
.btn-outline { background: transparent; border: 1px solid rgba(255,255,255,.15); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; background: rgba(108,99,255,.06); }
.btn-ghost { background: rgba(255,255,255,.05); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,.09); text-decoration: none; }
.btn-danger { background: var(--red); color: #fff; }
.btn-success { background: var(--green); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 12px; border-radius: 7px; }
.btn-lg { padding: 15px 32px; font-size: 16px; border-radius: 12px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }

/* ── Forms ── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.form-group input, .form-group select {
  padding: 11px 16px; background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-size: 14px; outline: none;
  transition: border-color .15s, box-shadow .15s; font-family: inherit;
}
.form-group input:focus, .form-group select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(108,99,255,.15);
}
.form-group input::placeholder { color: rgba(255,255,255,.18); }

/* ── Cards ── */
.card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card-sm { padding: 16px; }

/* ── Alerts ── */
.alert { padding: 11px 16px; border-radius: 10px; font-size: 13px; margin-bottom: 16px; }
.alert-error { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.25); color: #fca5a5; }
.alert-success { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.25); color: #86efac; }
.alert-info { background: rgba(108,99,255,.1); border: 1px solid rgba(108,99,255,.25); color: #a5b4fc; }
.hidden { display: none !important; }

/* ── Badge ── */
.badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge-trial { background: rgba(255,255,255,.08); color: var(--muted); }
.badge-starter { background: rgba(34,197,94,.15); color: #86efac; }
.badge-pro { background: rgba(108,99,255,.2); color: #a5b4fc; }
.badge-agency { background: rgba(245,158,11,.15); color: #fcd34d; }
.badge-unlimited { background: rgba(239,68,68,.15); color: #fca5a5; }

/* ── Table ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; padding: 10px 14px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--border); }
td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,.02); }

/* ── Sidebar layout ── */
.app-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 228px; flex-shrink: 0; background: var(--bg2);
  border-right: 1px solid var(--border); padding: 24px 0;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar-logo { padding: 0 20px 24px; font-size: 16px; font-weight: 800; color: var(--text); border-bottom: 1px solid var(--border); margin-bottom: 16px; letter-spacing: -.2px; }
.sidebar-logo span { color: var(--accent); }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 10px; flex: 1; }
.sidebar-link {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: 8px; color: var(--muted); font-size: 13px; font-weight: 500;
  transition: all .15s; cursor: pointer; text-decoration: none;
}
.sidebar-link:hover { background: rgba(255,255,255,.05); color: var(--text); text-decoration: none; }
.sidebar-link.active { background: rgba(108,99,255,.15); color: var(--accent); }
.sidebar-icon { font-size: 16px; width: 20px; text-align: center; }
.sidebar-footer { padding: 16px 20px 0; border-top: 1px solid var(--border); margin-top: auto; }
.main-content { flex: 1; padding: 36px; overflow-y: auto; }
.page-title { font-size: 24px; font-weight: 800; margin-bottom: 28px; letter-spacing: -.3px; }

/* ── Stats grid ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.stat-value { font-size: 30px; font-weight: 800; color: var(--text); letter-spacing: -.5px; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ── Progress bar ── */
.progress-bar { height: 6px; background: var(--bg3); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 3px; transition: width .3s; }

/* ── Modal ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal { background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; padding: 32px; width: 100%; max-width: 440px; }
.modal-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ══════════════════════════════════════════
   LANDING PAGE
══════════════════════════════════════════ */

/* Hero */
.hero {
  padding: 120px 0 100px;
  background:
    radial-gradient(ellipse 70% 60% at 50% -5%, rgba(108,99,255,.22), transparent),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(139,92,246,.1), transparent);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236c63ff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 24px;
  background: rgba(108,99,255,.12); border: 1px solid rgba(108,99,255,.28);
  color: var(--accent3); font-size: 12px; font-weight: 700;
  margin-bottom: 24px; letter-spacing: .02em;
}
.hero-title {
  font-size: clamp(40px, 6.5vw, 72px); font-weight: 900;
  line-height: 1.05; margin-bottom: 22px; letter-spacing: -1.5px;
}
.gradient-text {
  background: linear-gradient(135deg, #6c63ff 0%, #a78bfa 50%, #c4b5fd 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  font-size: 19px; color: var(--muted); max-width: 580px;
  margin: 0 auto 36px; line-height: 1.65; font-weight: 400;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.hero-trust {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  margin-top: 56px; flex-wrap: wrap;
}
.hero-trust-item { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.hero-trust-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* Sections */
.section { padding: 96px 0; }
.section-dark { background: var(--bg2); }
.section-label {
  font-size: 11px; font-weight: 800; color: var(--accent);
  text-transform: uppercase; letter-spacing: .14em; margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 4vw, 42px); font-weight: 800;
  margin-bottom: 16px; letter-spacing: -.5px; line-height: 1.15;
}
.section-sub {
  font-size: 16px; color: var(--muted); max-width: 540px;
  margin: 0 auto 56px; line-height: 1.65;
}
.section-header { text-align: center; }

/* Feature cards */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.feature-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.feature-card:hover {
  border-color: rgba(108,99,255,.45);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(108,99,255,.12);
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(108,99,255,.12); border: 1px solid rgba(108,99,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.feature-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.1px; }
.feature-desc { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* How it works steps */
.steps { display: flex; align-items: flex-start; gap: 0; flex-wrap: wrap; justify-content: center; }
.step-wrap { display: flex; align-items: flex-start; gap: 0; flex: 1; min-width: 200px; max-width: 280px; }
.step {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px 24px; text-align: center;
  flex: 1; transition: border-color .2s;
}
.step:hover { border-color: rgba(108,99,255,.35); }
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-size: 18px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; box-shadow: 0 4px 16px rgba(108,99,255,.4);
}
.step-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.step-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }
.step-connector {
  display: flex; align-items: center; padding: 0 8px; margin-top: 54px;
  color: rgba(108,99,255,.4); font-size: 20px; flex-shrink: 0;
}
@media(max-width: 700px) { .step-connector { display: none; } }
@media(max-width: 640px) { .how-downloads-grid { grid-template-columns: 1fr !important; } }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.testimonial-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
  transition: border-color .2s, transform .2s;
}
.testimonial-card:hover { border-color: rgba(108,99,255,.35); transform: translateY(-2px); }
.testimonial-stars { color: #f59e0b; font-size: 14px; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-text { font-size: 15px; color: var(--text); line-height: 1.7; margin-bottom: 20px; font-style: italic; opacity: .8; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.testimonial-name { font-size: 14px; font-weight: 700; }
.testimonial-role { font-size: 12px; color: var(--muted); }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px; align-items: start;
}
.pricing-card-v2 {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px 26px;
  display: flex; flex-direction: column; gap: 22px;
  position: relative; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.pricing-card-v2:hover { border-color: rgba(108,99,255,.4); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(108,99,255,.1); }
.pricing-card-v2.featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(108,99,255,.1), var(--bg2));
  box-shadow: 0 0 50px rgba(108,99,255,.18);
}
.pricing-card-v2.is-current { border-color: var(--green); }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 16px; border-radius: 20px; white-space: nowrap; letter-spacing: .04em;
}
.plan-header { text-align: center; }
.plan-name { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.plan-price { margin-bottom: 6px; }
.plan-price-num { font-size: 42px; font-weight: 900; color: var(--text); line-height: 1; letter-spacing: -1px; }
.plan-price-per { font-size: 14px; color: var(--muted); margin-left: 2px; }
.plan-projects-label { font-size: 12px; color: var(--accent); font-weight: 600; margin-top: 6px; }
.plan-features-list { list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan-feature { font-size: 13px; color: var(--text); display: flex; align-items: flex-start; gap: 9px; line-height: 1.45; opacity: .8; }
.plan-check { color: var(--green); font-size: 12px; flex-shrink: 0; margin-top: 1px; }
.plan-action { margin-top: auto; }
.plan-current-badge {
  text-align: center; padding: 10px; border-radius: 8px;
  background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.25);
  color: #86efac; font-size: 13px; font-weight: 600;
}

/* Plan toggle */
.plan-toggle {
  display: inline-flex; background: var(--bg2);
  border: 1px solid var(--border); border-radius: 10px; padding: 4px; gap: 4px;
}
.plan-toggle-btn {
  background: transparent; border: none; color: var(--muted);
  font-size: 13px; font-weight: 600; padding: 8px 20px;
  border-radius: 7px; cursor: pointer; transition: all .15s; font-family: inherit;
}
.plan-toggle-btn.active { background: var(--accent); color: #fff; }
.plan-toggle-btn:hover:not(.active) { color: var(--text); }

/* Footer */
.footer { padding: 64px 0 36px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 48px; margin-bottom: 48px; }
@media(max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media(max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { font-size: 13px; color: var(--muted); max-width: 220px; line-height: 1.7; margin-top: 10px; }
.footer-col-title { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: var(--muted); transition: color .15s; }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom span, .footer-bottom a { font-size: 12px; color: var(--muted); }
.footer-bottom a:hover { color: var(--text); text-decoration: none; }

/* Admin */
#admin-stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.admin-plan-select:focus { outline: none; border-color: var(--accent); }

/* billing page */
#billing-plans-grid.pricing-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* Auth pages */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.auth-box { width: 100%; max-width: 420px; }
.auth-logo { text-align: center; margin-bottom: 32px; font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -.3px; }
.auth-logo span { color: var(--accent); }
.auth-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 18px; padding: 38px 34px; }
.auth-title { font-size: 22px; font-weight: 800; margin-bottom: 6px; letter-spacing: -.3px; }
.auth-sub { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.auth-footer { text-align: center; margin-top: 22px; font-size: 13px; color: var(--muted); }
.auth-footer a { color: var(--accent); }
.trial-note { background: rgba(108,99,255,.08); border: 1px solid rgba(108,99,255,.2); border-radius: 10px; padding: 11px 16px; font-size: 12px; color: #a5b4fc; margin-bottom: 22px; }
.divider { text-align: center; color: var(--muted); font-size: 12px; margin: 18px 0; position: relative; }
.divider::before, .divider::after { content: ''; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--border); }
.divider::before { left: 0; } .divider::after { right: 0; }

/* Checkout */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; max-width: 920px; margin: 0 auto; padding: 40px 24px; }
@media(max-width: 700px) { .checkout-layout { grid-template-columns: 1fr; } }
.checkout-header { max-width: 920px; margin: 0 auto; padding: 24px 24px 0; display: flex; align-items: center; justify-content: space-between; }
.checkout-logo { font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: -.3px; }
.checkout-logo span { color: var(--accent); }
.section-heading { font-size: 18px; font-weight: 700; margin-bottom: 20px; letter-spacing: -.2px; }
.plan-selector { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.plan-option { background: var(--bg2); border: 2px solid var(--border); border-radius: 12px; padding: 16px 18px; cursor: pointer; display: flex; align-items: center; gap: 14px; transition: border-color .15s; }
.plan-option:hover { border-color: rgba(108,99,255,.4); }
.plan-option.selected { border-color: var(--accent); background: rgba(108,99,255,.07); }
.plan-option input[type=radio] { accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
.plan-option-info { flex: 1; }
.plan-option-name { font-size: 14px; font-weight: 700; }
.plan-option-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.plan-option-price { font-size: 16px; font-weight: 800; color: var(--text); white-space: nowrap; }
.plan-option-price span { font-size: 11px; font-weight: 400; color: var(--muted); }
.plan-option-badge { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.order-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; padding: 28px; position: sticky; top: 24px; }
.order-title { font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.order-row { display: flex; justify-content: space-between; font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.order-row:last-of-type { border-bottom: none; }
.order-total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; padding-top: 16px; margin-top: 8px; border-top: 2px solid var(--border); }
.order-features { margin: 16px 0; }
.order-feature { font-size: 12px; color: var(--text); display: flex; align-items: center; gap: 6px; padding: 4px 0; opacity: .7; }
.order-feature .chk { color: var(--green); }
.secure-note { font-size: 11px; color: var(--muted); text-align: center; margin-top: 14px; }
.free-note { background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.2); border-radius: 10px; padding: 12px 16px; font-size: 13px; color: #86efac; margin-bottom: 16px; }

/* project table action buttons */
.btn-success { background: var(--green) !important; color: #fff !important; border-color: var(--green) !important; }
