/* ──────────────────────────────────────────────────────────────────
   FINBI Website — Shared Styles  v2
   ────────────────────────────────────────────────────────────────── */

:root {
  --brand:        #1a56db;
  --brand-dark:   #1447c0;
  --brand-light:  #e8f0fe;
  --brand-50:     #eff6ff;
  --accent:       #10b981;
  --accent-dark:  #059669;
  --danger:       #ef4444;
  --warning:      #f59e0b;

  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white:    #ffffff;

  --radius:    0.75rem;
  --radius-xl: 1.25rem;
  --radius-2xl:1.75rem;

  --shadow-xs: 0 1px 2px 0 rgb(0 0 0/.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0/.1),0 1px 2px -1px rgb(0 0 0/.1);
  --shadow:    0 4px 6px -1px rgb(0 0 0/.1),0 2px 4px -2px rgb(0 0 0/.1);
  --shadow-md: 0 6px 16px -4px rgb(0 0 0/.12),0 2px 6px -2px rgb(0 0 0/.08);
  --shadow-lg: 0 10px 25px -5px rgb(0 0 0/.12),0 4px 10px -5px rgb(0 0 0/.08);
  --shadow-xl: 0 20px 40px -10px rgb(0 0 0/.18),0 8px 16px -8px rgb(0 0 0/.1);
  --shadow-brand: 0 8px 24px -4px rgb(26 86 219/.35);

  --font: 'Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;

  /* light-mode defaults */
  --bg:           #f8fafc;
  --bg-secondary: #ffffff;
  --text:         #0f172a;
  --text-muted:   #64748b;
  --border:       #e2e8f0;
  --card-bg:      #ffffff;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Reset ───────────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img,svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }

/* ── Layout ──────────────────────────────────────────────────────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Typography ──────────────────────────────────────────────────── */
h1 { font-size: clamp(2.2rem,5vw,3.75rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
.text-muted { color: var(--text-muted); }
.section-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.9rem; border-radius: 9999px;
  background: var(--brand-light); color: var(--brand);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.6rem 1.5rem; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 600; border: none;
  cursor: pointer; transition: all 0.18s ease; text-decoration: none;
  white-space: nowrap; line-height: 1;
}
.btn-primary {
  background: var(--brand); color: white;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 8px 28px -4px rgb(26 86 219/.45); transform: translateY(-1px); text-decoration: none; color: white; }
.btn-primary:active { transform: translateY(0); }

.btn-outline { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.btn-outline:hover { background: var(--brand-light); text-decoration: none; }

.btn-white { background: white; color: var(--brand); box-shadow: var(--shadow-md); }
.btn-white:hover { background: var(--brand-50); transform: translateY(-1px); text-decoration: none; }

.btn-ghost { background: transparent; color: var(--gray-600); border: 1.5px solid var(--gray-200); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; background: var(--brand-50); }

.btn-success { background: var(--accent); color: white; }
.btn-success:hover { background: var(--accent-dark); color: white; text-decoration: none; }

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; color: white; text-decoration: none; }

.btn-lg { padding: 0.875rem 2.25rem; font-size: 1rem; border-radius: var(--radius-xl); }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }
.btn-xl { padding: 1rem 2.5rem; font-size: 1.05rem; border-radius: var(--radius-xl); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-full { width: 100%; }
.btn-icon { padding: 0.5rem; border-radius: var(--radius); }

/* ── Cards ───────────────────────────────────────────────────────── */
.card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 1.5rem;
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card-hover:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-bordered { border: 2px solid var(--gray-200); }
.card-branded { border: 2px solid var(--brand); box-shadow: var(--shadow-brand); }

/* ── Forms ───────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }
.form-label {
  display: block; font-size: 0.875rem; font-weight: 500;
  color: var(--text); margin-bottom: 0.4rem;
}
.form-input {
  width: 100%; height: 2.75rem; padding: 0 0.875rem;
  border: 1.5px solid var(--border); border-radius: 0.625rem;
  font-size: 0.875rem; font-family: inherit;
  background: var(--bg-secondary); color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3.5px rgb(26 86 219/.12);
}
.form-input::placeholder { color: var(--gray-400); }
.form-input.error { border-color: var(--danger); }
.form-input.success { border-color: var(--accent); }

.input-wrap { position: relative; }
.input-icon { position: absolute; left: 0.875rem; top: 50%; transform: translateY(-50%); color: var(--gray-400); pointer-events: none; }
.input-icon ~ .form-input { padding-left: 2.5rem; }
.input-action { position: absolute; right: 0.875rem; top: 50%; transform: translateY(-50%); color: var(--gray-400); background: none; border: none; cursor: pointer; padding: 0; }
.input-action:hover { color: var(--brand); }

.form-error { font-size: 0.75rem; color: var(--danger); margin-top: 0.3rem; display: none; }
.form-error.show { display: block; }
.form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.3rem; }

/* password strength */
.pwd-strength { margin-top: 0.4rem; }
.pwd-strength-bar { display: flex; gap: 0.25rem; margin-bottom: 0.25rem; }
.pwd-seg { flex: 1; height: 3px; border-radius: 2px; background: var(--gray-200); transition: background 0.2s; }
.pwd-seg.weak   { background: var(--danger); }
.pwd-seg.fair   { background: var(--warning); }
.pwd-seg.good   { background: #3b82f6; }
.pwd-seg.strong { background: var(--accent); }
.pwd-label { font-size: 0.7rem; color: var(--text-muted); }

/* ── Alerts ──────────────────────────────────────────────────────── */
.alert {
  padding: 0.8rem 1rem; border-radius: 0.625rem; font-size: 0.875rem;
  margin-bottom: 1rem; display: none; font-weight: 500;
  border-left: 3px solid;
}
.alert.show { display: flex; align-items: flex-start; gap: 0.5rem; }
.alert-error   { background: #fef2f2; border-color: var(--danger);  color: #b91c1c; }
.alert-success { background: #f0fdf4; border-color: var(--accent);  color: #15803d; }
.alert-info    { background: #eff6ff; border-color: var(--brand);   color: #1e40af; }
.alert-warning { background: #fffbeb; border-color: var(--warning); color: #92400e; }

/* ── Navbar ──────────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid rgba(226,232,240,0.8);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  transition: box-shadow 0.2s;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgb(0 0 0/.08); }
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 4rem; padding: 0 1.5rem; max-width: 1120px; margin: 0 auto;
}
.navbar-logo {
  display: flex; align-items: center; gap: 0.625rem;
  font-size: 1.25rem; font-weight: 800; color: var(--text); text-decoration: none;
}
.navbar-logo:hover { text-decoration: none; }
.logo-icon {
  width: 2.25rem; height: 2.25rem; border-radius: 0.625rem;
  background: linear-gradient(135deg,var(--brand),#3b82f6);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 900; font-size: 1.1rem; font-style: italic;
  box-shadow: 0 2px 8px rgb(26 86 219/.3);
}
.navbar-links { display: flex; align-items: center; gap: 0.25rem; }
.navbar-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--text-muted);
  padding: 0.4rem 0.75rem; border-radius: 0.5rem;
  transition: color 0.15s, background 0.15s;
}
.navbar-links a:hover { color: var(--brand); background: var(--brand-50); text-decoration: none; }
.navbar-links a.active { color: var(--brand); font-weight: 600; }
.navbar-actions { display: flex; align-items: center; gap: 0.625rem; }

/* mobile nav */
.nav-hamburger {
  display: none; padding: 0.5rem; border: none; background: none;
  cursor: pointer; color: var(--text); border-radius: 0.4rem;
}
.nav-hamburger:hover { background: var(--gray-100); }
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 199;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
}
.mobile-nav.open { display: flex; align-items: flex-start; justify-content: flex-end; }
.mobile-nav-panel {
  background: white; width: 280px; height: 100vh; padding: 1.5rem;
  box-shadow: -4px 0 24px rgb(0 0 0/.12);
  display: flex; flex-direction: column; gap: 0.25rem;
  overflow-y: auto; transform: translateX(100%);
  transition: transform 0.25s ease;
}
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-close { align-self: flex-end; padding: 0.5rem; margin-bottom: 1rem; background: none; border: none; cursor: pointer; color: var(--gray-500); font-size: 1.25rem; }
.mobile-nav a { display: block; padding: 0.75rem 1rem; border-radius: 0.625rem; font-weight: 500; color: var(--text); transition: background 0.15s; }
.mobile-nav a:hover { background: var(--brand-50); color: var(--brand); text-decoration: none; }

@media (max-width: 768px) {
  .navbar-links, .navbar-actions .btn:not(:last-child) { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── Hero ────────────────────────────────────────────────────────── */
.hero-mesh {
  background:
    radial-gradient(ellipse 80% 60% at 10% 10%, rgba(26,86,219,.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 90% 90%, rgba(59,130,246,.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(16,185,129,.05) 0%, transparent 60%),
    #f8fafc;
}

/* ── Feature Cards ───────────────────────────────────────────────── */
.feature-icon {
  width: 3rem; height: 3rem; border-radius: 0.875rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; margin-bottom: 1rem;
  box-shadow: 0 2px 8px -2px rgb(0 0 0/.12);
}

/* ── Stats ───────────────────────────────────────────────────────── */
.stat-card { text-align: center; padding: 1.5rem; }
.stat-number {
  font-size: 2.5rem; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg,var(--brand),#3b82f6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.375rem; font-weight: 500; }

/* ── How-It-Works steps ──────────────────────────────────────────── */
.step-num {
  width: 3rem; height: 3rem; border-radius: 50%;
  background: linear-gradient(135deg,var(--brand),#3b82f6);
  color: white; font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; box-shadow: var(--shadow-brand);
  flex-shrink: 0;
}
.step-connector { display: none; }
@media (min-width: 768px) {
  .steps-row { display: flex; gap: 0; }
  .step-wrap { flex: 1; position: relative; }
  .step-connector {
    display: block; position: absolute; top: 1.5rem; left: 50%; right: -50%;
    height: 2px; background: linear-gradient(90deg,var(--brand),#3b82f6);
    opacity: .25; z-index: 0;
  }
  .step-wrap:last-child .step-connector { display: none; }
}

/* ── Testimonials ────────────────────────────────────────────────── */
.testimonial-card { position: relative; }
.testimonial-card::before {
  content: '\201C';
  font-size: 5rem; line-height: 1; font-family: Georgia,serif;
  color: var(--brand); opacity: .15;
  position: absolute; top: -0.5rem; left: 1rem; pointer-events: none;
}
.stars { color: #f59e0b; font-size: 0.875rem; letter-spacing: 0.05em; }

/* ── App mockup ──────────────────────────────────────────────────── */
.app-mockup {
  border-radius: 1rem; overflow: hidden;
  box-shadow: 0 32px 64px -12px rgb(0 0 0/.25), 0 0 0 1px rgb(0 0 0/.08);
  background: #0f172a;
}
.mockup-bar {
  background: #1e293b; padding: 0.625rem 1rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.mockup-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; }
.mockup-body { padding: 1.25rem; }
.mockup-row {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0.875rem; border-radius: 0.5rem;
  margin-bottom: 0.375rem; background: rgba(255,255,255,.04);
}
.mockup-row.active-row { background: rgba(26,86,219,.25); }
.mockup-bar-pill { height: 0.45rem; border-radius: 9999px; background: rgba(255,255,255,.12); }
.mockup-bar-pill.brand { background: rgba(59,130,246,.7); }
.mockup-circle { border-radius: 50%; flex-shrink: 0; }
.mockup-num { font-size: 0.875rem; font-weight: 700; color: #10b981; font-family: monospace; margin-left: auto; }

/* ── Progress bar ────────────────────────────────────────────────── */
.progress-wrap { background: var(--gray-100); border-radius: 9999px; height: 0.5rem; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 9999px; background: linear-gradient(90deg,var(--brand),#3b82f6); transition: width 0.6s ease; }

/* ── Spinner ─────────────────────────────────────────────────────── */
.spinner {
  width: 1.1rem; height: 1.1rem;
  border: 2px solid rgba(255,255,255,.35); border-top-color: white;
  border-radius: 50%; animation: spin .65s linear infinite; display: inline-block;
  vertical-align: middle;
}
.spinner-dark {
  border-color: rgba(0,0,0,.12); border-top-color: var(--brand);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Badge ───────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.2rem 0.65rem; border-radius: 9999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em;
}
.badge-blue   { background: #dbeafe; color: #1d4ed8; }
.badge-green  { background: #d1fae5; color: #065f46; }
.badge-amber  { background: #fef3c7; color: #92400e; }
.badge-red    { background: #fee2e2; color: #991b1b; }
.badge-purple { background: #ede9fe; color: #6d28d9; }
.badge-gray   { background: var(--gray-100); color: var(--gray-600); }

/* ── Divider ─────────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* ── Auth layout ─────────────────────────────────────────────────── */
.auth-page { min-height: 100vh; display: flex; }
.auth-brand {
  flex: 0 0 42%; display: flex; flex-direction: column;
  background: linear-gradient(145deg,#0f172a 0%,#1e3a8a 50%,#1e40af 100%);
  color: white; padding: 3rem; position: relative; overflow: hidden;
}
.auth-brand::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(59,130,246,.25) 0%,transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 80%, rgba(16,185,129,.15) 0%,transparent 60%);
  pointer-events: none;
}
.auth-brand-content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; }
.auth-form { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--gray-50); }
.auth-form-inner { width: 100%; max-width: 440px; }
.auth-card { background: white; border-radius: var(--radius-2xl); padding: 2.25rem; box-shadow: var(--shadow-xl); border: 1px solid var(--border); }

@media (max-width: 768px) {
  .auth-brand { display: none; }
  .auth-form { padding: 1.5rem; }
}

/* ── Dashboard layout ────────────────────────────────────────────── */
.dash-layout { display: flex; min-height: 100vh; }
.dash-sidebar {
  width: 240px; flex-shrink: 0; background: #0f172a;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
}
.dash-sidebar-logo {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1.25rem 1.25rem 0.75rem; color: white;
  font-weight: 800; font-size: 1.15rem; text-decoration: none;
}
.dash-nav { padding: 0 0.75rem; flex: 1; }
.dash-nav-section { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #475569; padding: 0.875rem 0.625rem 0.375rem; }
.dash-nav a {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.6rem 0.75rem; border-radius: 0.625rem; margin-bottom: 0.125rem;
  font-size: 0.875rem; font-weight: 500; color: #94a3b8;
  transition: background 0.15s, color 0.15s; text-decoration: none;
}
.dash-nav a:hover { background: rgba(255,255,255,.07); color: white; text-decoration: none; }
.dash-nav a.active { background: rgba(26,86,219,.25); color: #93c5fd; }
.dash-main { flex: 1; display: flex; flex-direction: column; overflow-x: hidden; }
.dash-topbar {
  background: white; border-bottom: 1px solid var(--border);
  padding: 0 1.75rem; height: 3.75rem;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 1px 4px rgb(0 0 0/.05); position: sticky; top: 0; z-index: 10;
}
.dash-content { padding: 1.75rem; flex: 1; }

@media (max-width: 900px) {
  .dash-sidebar { display: none; }
}

/* ── KPI cards ───────────────────────────────────────────────────── */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.kpi-card {
  background: white; border-radius: var(--radius-xl); padding: 1.25rem;
  border: 1px solid var(--border); box-shadow: var(--shadow-xs);
  transition: box-shadow 0.2s, transform 0.2s;
}
.kpi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.kpi-label { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.kpi-value { font-size: 1.75rem; font-weight: 800; color: var(--text); margin-top: 0.25rem; line-height: 1.1; }
.kpi-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }
.kpi-icon { width: 2.25rem; height: 2.25rem; border-radius: 0.625rem; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; margin-bottom: 0.875rem; }

/* ── Timeline ────────────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 0.625rem; top: 0; bottom: 0; width: 1.5px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 1.25rem; }
.timeline-dot {
  position: absolute; left: -1.625rem; top: 0.25rem;
  width: 0.75rem; height: 0.75rem; border-radius: 50%;
  background: var(--brand); border: 2px solid white;
  box-shadow: 0 0 0 2px var(--brand);
}
.timeline-item.dim .timeline-dot { background: var(--gray-300); box-shadow: 0 0 0 2px var(--gray-300); }

/* ── FAQ accordion ───────────────────────────────────────────────── */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 0.5rem; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; background: white; border: none; cursor: pointer;
  font-size: 0.925rem; font-weight: 600; color: var(--text); text-align: left;
  transition: background 0.15s;
}
.faq-q:hover { background: var(--gray-50); }
.faq-q[aria-expanded="true"] { background: var(--brand-50); color: var(--brand); }
.faq-chevron { font-size: 0.7rem; transition: transform 0.2s; flex-shrink: 0; }
.faq-q[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 1.25rem 1rem; font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; border-top: 1px solid var(--border); background: white; }
.faq-a.open { display: block; }

/* ── Pricing ─────────────────────────────────────────────────────── */
.pricing-toggle { display: flex; align-items: center; gap: 0.75rem; justify-content: center; margin-bottom: 2.5rem; }
.toggle-track {
  width: 2.75rem; height: 1.5rem; border-radius: 9999px;
  background: var(--gray-300); position: relative; cursor: pointer; transition: background 0.2s;
}
.toggle-track.on { background: var(--brand); }
.toggle-thumb {
  position: absolute; top: 0.2rem; left: 0.2rem;
  width: 1.1rem; height: 1.1rem; border-radius: 50%; background: white;
  transition: transform 0.2s; box-shadow: var(--shadow-sm);
}
.toggle-track.on .toggle-thumb { transform: translateX(1.25rem); }

/* ── Trust badges ────────────────────────────────────────────────── */
.trust-badge {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 500; color: var(--text-muted);
}
.trust-badge svg { color: var(--accent); }

/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
  background: #0f172a; color: #94a3b8;
  padding: 4rem 1.5rem 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; max-width: 1120px; margin: 0 auto 3rem; }
.footer-brand p { font-size: 0.875rem; line-height: 1.8; margin-top: 0.75rem; color: #64748b; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #e2e8f0; margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 0.875rem; color: #64748b; padding: 0.2rem 0; transition: color 0.15s; }
.footer-col a:hover { color: white; text-decoration: none; }
.footer-bottom { max-width: 1120px; margin: 0 auto; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.06); display: flex; align-items: center; justify-content: space-between; flex-wrap: gap-1rem; }
.footer-bottom p { font-size: 0.8rem; color: #475569; }
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}

/* ── Scroll animations ───────────────────────────────────────────── */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-in { opacity: 0; transition: opacity 0.55s ease; }
.fade-in.visible { opacity: 1; }
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.12s; }
.stagger-3 { transition-delay: 0.19s; }
.stagger-4 { transition-delay: 0.26s; }
.stagger-5 { transition-delay: 0.33s; }
.stagger-6 { transition-delay: 0.40s; }

/* ── Gradient text ───────────────────────────────────────────────── */
.grad-text {
  background: linear-gradient(135deg,var(--brand) 0%,#3b82f6 50%,#06b6d4 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── Glow ────────────────────────────────────────────────────────── */
.glow-ring {
  box-shadow: 0 0 0 6px rgba(26,86,219,.12), var(--shadow-xl);
}

/* ── Scrollbar ───────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ── SPA Shell ───────────────────────────────────────────────────── */
.spa-root { min-height: calc(100vh - 4rem); }
.spa-loading { display: flex; align-items: center; justify-content: center; min-height: 40vh; }
.spa-loading .spinner {
  width: 2rem; height: 2rem;
  border: 3px solid rgba(26,86,219,.15); border-top-color: var(--brand);
  border-radius: 50%; animation: spin .7s linear infinite;
}
.spa-root > section, .spa-root > div { animation: spa-fade-in .2s ease; }
@keyframes spa-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ── Flash messages ──────────────────────────────────────────────── */
.flash-msg {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
  padding: .75rem 1.25rem; border-radius: .625rem; font-size: .875rem; font-weight: 500;
  max-width: 380px; box-shadow: 0 4px 20px rgb(0 0 0/.15);
  animation: flash-in .2s ease;
}
@keyframes flash-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.flash-error   { background: #fef2f2; color: #b91c1c; border-left: 4px solid #ef4444; }
.flash-success { background: #f0fdf4; color: #15803d; border-left: 4px solid #10b981; }
.flash-warn    { background: #fffbeb; color: #92400e; border-left: 4px solid #f59e0b; }
.flash-info    { background: #eff6ff; color: #1e40af; border-left: 4px solid #3b82f6; }

/* ── Dashboard SPA cards ─────────────────────────────────────────── */
.dash-card {
  background: #1e293b; border-radius: .75rem; padding: 1.25rem;
  border: 1px solid rgba(255,255,255,.07);
}
.dash-card-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #475569; margin-bottom: .375rem; }
.dash-card-value { font-size: 1.5rem; font-weight: 800; color: white; }
.dash-nav { display: block; padding: .55rem .75rem; border-radius: .5rem; font-size: .875rem; font-weight: 500; color: #64748b; text-decoration: none; transition: background .15s, color .15s; margin-bottom: .125rem; }
.dash-nav:hover { background: rgba(255,255,255,.06); color: #93c5fd; text-decoration: none; }
.dash-nav.active { background: rgba(26,86,219,.2); color: #93c5fd; }

/* ── Form control (alias for SPA forms) ──────────────────────────── */
.form-control {
  width: 100%; height: 2.75rem; padding: 0 .875rem;
  border: 1.5px solid var(--border); border-radius: .625rem;
  font-size: .875rem; font-family: inherit;
  background: white; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgb(26 86 219/.1); }
.form-control::placeholder { color: var(--gray-400); }
.form-group label { display: block; font-size: .875rem; font-weight: 500; color: var(--text); margin-bottom: .4rem; }

/* ── mt-2 helper ─────────────────────────────────────────────────── */
.mt-2 { margin-top: .5rem; }
.btn-full { width: 100%; }

