/* =====================================================
   ASISPAY — Design System v2.0  ·  Premium Fintech
   ===================================================== */

/* ── Google Fonts preload hint ────────────────────────
   Inter is loaded via <link> in index.html            */

/* ── Design Tokens ───────────────────────────────────── */
:root {
  /* Core palette */
  --ink-900:  #050F1C;
  --ink-800:  #0A1929;
  --ink-700:  #0D2137;
  --ink-600:  #162B46;
  --navy:     #0A2540;
  --navy-mid: #1a3a5c;

  --blue-700: #1D4ED8;
  --blue:     #2563EB;
  --blue-500: #3B82F6;
  --blue-400: #60A5FA;
  --blue-100: #DBEAFE;
  --blue-50:  #EFF6FF;

  --green-700:#047857;
  --green:    #059669;
  --green-400:#34D399;
  --green-100:#D1FAE5;
  --green-50: #ECFDF5;

  --amber-700:#B45309;
  --amber:    #D97706;
  --amber-400:#FBBF24;
  --amber-100:#FEF3C7;
  --amber-50: #FFFBEB;

  --red-700:  #B91C1C;
  --red:      #DC2626;
  --red-100:  #FEE2E2;
  --red-50:   #FEF2F2;

  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1F2937;
  --gray-700: #374151;
  --gray-600: #4B5563;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-300: #D1D5DB;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50:  #F9FAFB;

  /* Semantic aliases */
  --surface:      #FFFFFF;
  --surface-soft: #FAFAFA;
  --border:       #E5E7EB;
  --border-soft:  #F3F4F6;
  --text:         #111827;

  /* Color subtle/border aliases (used in inline styles) */
  --blue-subtle:   var(--blue-50);
  --blue-border:   var(--blue-100);
  --green-subtle:  var(--green-50);
  --green-border:  var(--green-100);
  --amber-subtle:  var(--amber-50);
  --amber-border:  var(--amber-100);
  --red-subtle:    var(--red-50);
  --red-border:    var(--red-100);
  --text-2:       #4B5563;
  --text-3:       #9CA3AF;

  /* Radius scale */
  --r-xs:   3px;
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   20px;
  --r-2xl:  28px;
  --r-3xl:  36px;
  --r-full: 9999px;

  /* Shadow system — multi-layer for depth */
  --s-xs:   0 1px 2px rgba(0,0,0,.04);
  --s-sm:   0 1px 2px rgba(0,0,0,.04), 0 2px 4px rgba(0,0,0,.04);
  --s-md:   0 1px 2px rgba(0,0,0,.04), 0 4px 8px rgba(0,0,0,.06), 0 8px 16px rgba(0,0,0,.04);
  --s-lg:   0 1px 2px rgba(0,0,0,.04), 0 8px 16px rgba(0,0,0,.06), 0 24px 40px rgba(0,0,0,.08);
  --s-xl:   0 1px 2px rgba(0,0,0,.04), 0 16px 32px rgba(0,0,0,.08), 0 40px 64px rgba(0,0,0,.10);
  --s-2xl:  0 1px 2px rgba(0,0,0,.04), 0 24px 48px rgba(0,0,0,.10), 0 64px 96px rgba(0,0,0,.12);
  --s-glow-blue:  0 0 0 3px rgba(37,99,235,.12), 0 4px 12px rgba(37,99,235,.18);
  --s-glow-green: 0 0 0 3px rgba(5,150,105,.12), 0 4px 12px rgba(5,150,105,.18);

  /* Motion */
  --ease-out:    cubic-bezier(.16,1,.3,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --ease-in-out: cubic-bezier(.4,0,.2,1);
  --dur-fast:    120ms;
  --dur-base:    200ms;
  --dur-slow:    350ms;
  --dur-slower:  500ms;

  /* Type scale */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--text); background: var(--gray-50); min-height: 100vh; }
a { color: var(--blue); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--blue-700); }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: var(--font); }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--blue-100); color: var(--blue-700); }

/* ── Typography utilities ─────────────────────────────── */
.text-xs  { font-size: 11px; }
.text-sm  { font-size: 13px; }
.text-md  { font-size: 16px; }
.text-lg  { font-size: 18px; }
.text-xl  { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }
.text-4xl { font-size: 38px; }
.text-5xl { font-size: 48px; }
.font-normal   { font-weight: 400; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.font-extrabold{ font-weight: 800; }
.font-black    { font-weight: 900; }
.text-2       { color: var(--text-2); }
.text-3       { color: var(--text-3); }
.text-blue    { color: var(--blue); }
.text-green   { color: var(--green); }
.text-amber   { color: var(--amber); }
.text-red     { color: var(--red); }
.text-navy    { color: var(--navy); }
.text-white   { color: #fff; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.leading-tight { line-height: 1.2; }
.leading-snug  { line-height: 1.375; }
.tabular       { font-variant-numeric: tabular-nums; }

/* ── Layout ───────────────────────────────────────────── */
.container    { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.container-sm { width: 100%; max-width: 480px;  margin: 0 auto; padding: 0 24px; }
.container-md { width: 100%; max-width: 760px;  margin: 0 auto; padding: 0 24px; }
.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.flex-wrap     { flex-wrap: wrap; }
.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.items-end     { align-items: flex-end; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end     { justify-content: flex-end; }
.gap-1 { gap: 4px; }  .gap-2 { gap: 8px; }  .gap-3 { gap: 12px; }
.gap-4 { gap: 16px; } .gap-5 { gap: 20px; } .gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.w-full   { width: 100%; }
.hidden   { display: none !important; }
.relative { position: relative; }
.cursor-pointer  { cursor: pointer; }
.overflow-hidden { overflow: hidden; }
.mt-1{margin-top:4px}   .mt-2{margin-top:8px}   .mt-3{margin-top:12px}
.mt-4{margin-top:16px}  .mt-5{margin-top:20px}  .mt-6{margin-top:24px}
.mt-8{margin-top:32px}  .mt-10{margin-top:40px} .mt-12{margin-top:48px}
.mb-1{margin-bottom:4px}  .mb-2{margin-bottom:8px}  .mb-3{margin-bottom:12px}
.mb-4{margin-bottom:16px} .mb-5{margin-bottom:20px} .mb-6{margin-bottom:24px}
.mb-8{margin-bottom:32px}
.p-4{padding:16px} .p-5{padding:20px} .p-6{padding:24px} .p-8{padding:32px}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.01em;
  border: 1.5px solid transparent;
  transition: all var(--dur-base) var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  position: relative;
  outline: none;
}
.btn:focus-visible { box-shadow: 0 0 0 3px rgba(37,99,235,.35); }
.btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn:active   { transform: scale(.98); }

/* Primary */
.btn-primary {
  background: linear-gradient(180deg, var(--blue-500) 0%, var(--blue) 100%);
  color: #fff;
  border-color: var(--blue-700);
  box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, var(--s-sm);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-700) 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, var(--s-glow-blue);
  transform: translateY(-1px);
}

/* Navy */
.btn-navy {
  background: linear-gradient(180deg, var(--navy-mid) 0%, var(--navy) 100%);
  color: #fff;
  border-color: var(--ink-800);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, var(--s-sm);
}
.btn-navy:hover {
  background: linear-gradient(180deg, var(--ink-700) 0%, var(--ink-800) 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 4px 16px rgba(10,37,64,.35);
}

/* Success */
.btn-success {
  background: linear-gradient(180deg, var(--green-400) 0%, var(--green) 100%);
  color: #fff;
  border-color: var(--green-700);
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, var(--s-sm);
}
.btn-success:hover {
  background: linear-gradient(180deg, var(--green) 0%, var(--green-700) 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--s-glow-green);
}

/* Outline */
.btn-outline {
  background: var(--surface);
  color: var(--blue);
  border-color: var(--blue-100);
  box-shadow: var(--s-xs);
}
.btn-outline:hover {
  background: var(--blue-50);
  border-color: var(--blue-500);
  box-shadow: var(--s-sm);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-900); }

/* Danger */
.btn-danger {
  background: var(--surface);
  color: var(--red);
  border-color: var(--red-100);
}
.btn-danger:hover { background: var(--red-50); border-color: var(--red); }

/* Sizes */
.btn-sm  { padding: 6px 13px; font-size: 12px; border-radius: var(--r-sm); }
.btn-lg  { padding: 13px 28px; font-size: 15px; border-radius: var(--r-lg); }
.btn-xl  { padding: 16px 36px; font-size: 16px; border-radius: var(--r-lg); letter-spacing: -.02em; }
.btn-full { width: 100%; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: var(--r-md); }

/* Loading state */
.btn.loading::after {
  content: '';
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin-left: 4px;
}

/* ── Cards ────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--s-sm);
  transition: box-shadow var(--dur-base) var(--ease-out);
}
.card-hover:hover { box-shadow: var(--s-md); border-color: var(--gray-300); }
.card-body   { padding: 24px; }
.card-header { padding: 18px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-footer { padding: 14px 24px; border-top: 1px solid var(--border); background: var(--gray-50); border-radius: 0 0 var(--r-lg) var(--r-lg); }

/* Colored cards */
.card-blue {
  background: linear-gradient(140deg, #1E40AF 0%, var(--blue) 60%, var(--blue-500) 100%);
  border-color: transparent; color: #fff;
}
.card-navy {
  background: linear-gradient(140deg, var(--ink-900) 0%, var(--navy) 100%);
  border-color: transparent; color: #fff;
}
.card-success { background: var(--green-50);  border-color: var(--green-100); }
.card-warning { background: var(--amber-50);  border-color: var(--amber-100); }
.card-info    { background: var(--blue-50);   border-color: var(--blue-100); }

/* ── Forms ────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.form-label .req { color: var(--red); margin-left: 2px; }

.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  outline: none;
  line-height: 1.5;
}
.form-input::placeholder { color: var(--gray-400); font-weight: 400; }
.form-input:hover:not(:focus) { border-color: var(--gray-300); }
.form-input:focus  { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(37,99,235,.10); }
.form-input.error  { border-color: var(--red); box-shadow: 0 0 0 3px rgba(220,38,38,.08); }
.form-input.success{ border-color: var(--green); }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}
.form-hint  { font-size: 12px; color: var(--gray-500); line-height: 1.4; }
.form-error { font-size: 12px; color: var(--red); }

/* Range slider */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: var(--gray-200);
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--blue);
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(37,99,235,.12), var(--s-sm);
  transition: box-shadow var(--dur-fast);
}
input[type="range"]::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 6px rgba(37,99,235,.16), var(--s-md);
}

/* Checkbox refinement */
input[type="checkbox"] {
  width: 16px; height: 16px;
  border-radius: 4px;
  accent-color: var(--blue);
  cursor: pointer;
}

/* ── Badges ───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.badge-blue   { background: var(--blue-50);   color: var(--blue-700);  border: 1px solid var(--blue-100); }
.badge-green  { background: var(--green-50);  color: var(--green-700); border: 1px solid var(--green-100); }
.badge-amber  { background: var(--amber-50);  color: var(--amber-700); border: 1px solid var(--amber-100); }
.badge-red    { background: var(--red-50);    color: var(--red-700);   border: 1px solid var(--red-100); }
.badge-gray   { background: var(--gray-100);  color: var(--gray-600);  border: 1px solid var(--gray-200); }
.badge-navy   { background: var(--navy);      color: #fff;             border: 1px solid var(--ink-700); }
.badge-dot    { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.badge-dot-pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0;
  animation: dotPulse 2s ease infinite;
}
@keyframes dotPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(5,150,105,.4); }
  50%      { box-shadow: 0 0 0 5px rgba(5,150,105,0); }
}

/* ── Chips / Tags ─────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 12px; font-weight: 500;
  background: var(--gray-100); color: var(--gray-600);
}
.chip.green { background: var(--green-50);  color: var(--green-700); }
.chip.red   { background: var(--red-50);    color: var(--red-700); }
.chip.blue  { background: var(--blue-50);   color: var(--blue-700); }
.chip.amber { background: var(--amber-50);  color: var(--amber-700); }

/* ── Journey Steps ────────────────────────────────────── */
.journey-wrap { overflow-x: auto; padding-bottom: 4px; -ms-overflow-style: none; scrollbar-width: none; }
.journey-wrap::-webkit-scrollbar { display: none; }
.journey-steps { display: flex; align-items: flex-start; position: relative; min-width: max-content; }
.journey-steps::before {
  content: ''; position: absolute; top: 16px; left: 24px; right: 24px;
  height: 2px; background: var(--gray-200); z-index: 0;
  border-radius: 1px;
}
.journey-step { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; z-index: 1; gap: 7px; min-width: 72px; }
.journey-step-icon {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--gray-200); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--gray-400);
  transition: all var(--dur-slow) var(--ease-out);
}
.journey-step.completed .journey-step-icon {
  background: var(--green-50); border-color: var(--green); color: var(--green);
}
.journey-step.active .journey-step-icon {
  background: var(--blue); border-color: var(--blue); color: #fff;
  box-shadow: 0 0 0 5px rgba(37,99,235,.14);
}
.journey-step-label { font-size: 10px; font-weight: 600; color: var(--gray-400); text-align: center; line-height: 1.25; max-width: 72px; letter-spacing: .01em; text-transform: uppercase; }
.journey-step.completed .journey-step-label { color: var(--green-700); }
.journey-step.active    .journey-step-label { color: var(--blue); }

/* ── Navbar ───────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(0,0,0,.06);
  height: 62px; display: flex; align-items: center;
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; width: 100%; padding: 0 28px;
  max-width: 1180px; margin: 0 auto;
}

/* Logo */
.logo {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; cursor: pointer; flex-shrink: 0;
}
.logo-mark {
  width: 38px; height: 38px; flex-shrink: 0;
  background: linear-gradient(140deg, var(--navy) 0%, var(--blue) 100%);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(37,99,235,.25), 0 1px 0 rgba(255,255,255,.15) inset;
}
.logo-mark svg { display: block; }
.logo-text {
  font-size: 17px; font-weight: 800; color: var(--navy);
  letter-spacing: -.5px;
}
.logo-text span { color: var(--blue); }

.navbar-nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 7px 13px; border-radius: var(--r-md);
  font-size: 13px; font-weight: 500; color: var(--gray-600);
  cursor: pointer; transition: all var(--dur-fast) var(--ease-out);
  border: none; background: none;
}
.nav-link:hover  { color: var(--blue); background: var(--blue-50); }
.nav-link.active { color: var(--blue); background: var(--blue-50); font-weight: 600; }

.navbar-actions { display: flex; align-items: center; gap: 10px; }

.user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(140deg, var(--navy) 0%, var(--blue-500) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 700;
  cursor: pointer; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 0 0 2px var(--blue-100), var(--s-sm);
  transition: box-shadow var(--dur-fast);
}
.user-avatar:hover { box-shadow: 0 0 0 3px var(--blue-100), var(--s-md); }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  background: var(--ink-900);
  color: #fff;
  padding: 100px 0 88px;
  position: relative;
  overflow: hidden;
}
/* Mesh gradient blobs */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(37,99,235,.22) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(5,150,105,.12) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 90% 90%, rgba(59,130,246,.10) 0%, transparent 50%);
  pointer-events: none;
}
/* Dot grid */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
}
.hero > * { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 11px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: rgba(255,255,255,.8);
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.hero-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-400); flex-shrink: 0; animation: dotPulse 2s ease infinite; }

.hero-title {
  font-size: 54px; font-weight: 900;
  line-height: 1.06; letter-spacing: -2.5px;
  margin-bottom: 22px;
}
.hero-title .accent {
  background: linear-gradient(95deg, var(--blue-400) 0%, #34D399 55%, #60A5FA 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px; line-height: 1.65;
  color: rgba(255,255,255,.65);
  max-width: 500px; margin-bottom: 44px;
  font-weight: 350;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero-primary {
  background: #fff; color: var(--navy);
  border: 1.5px solid rgba(255,255,255,.9);
  font-weight: 700; font-size: 15px;
  padding: 14px 28px; border-radius: var(--r-lg);
  box-shadow: 0 4px 16px rgba(0,0,0,.25), 0 1px 0 rgba(255,255,255,.5) inset;
  transition: all var(--dur-base) var(--ease-out);
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.3), 0 1px 0 rgba(255,255,255,.5) inset;
}
.btn-hero-secondary {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
  border: 1.5px solid rgba(255,255,255,.14);
  font-weight: 600; font-size: 15px;
  padding: 14px 28px; border-radius: var(--r-lg);
  backdrop-filter: blur(8px);
  transition: all var(--dur-base) var(--ease-out);
}
.btn-hero-secondary:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.22);
  transform: translateY(-1px);
}
.btn-demo {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent;
  color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.1);
  font-size: 12px; font-weight: 500;
  padding: 7px 14px; border-radius: var(--r-full);
  margin-top: 20px;
  transition: all var(--dur-base);
}
.btn-demo:hover { color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.22); }

.hero-trust {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  margin-top: 60px; padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,.55); font-weight: 400;
}
.trust-icon {
  width: 28px; height: 28px; border-radius: 7px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
  color: rgba(255,255,255,0.6);
}

/* ── How it works ─────────────────────────────────────── */
.step-card {
  text-align: center; padding: 36px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--s-sm);
  transition: all var(--dur-base) var(--ease-out);
}
.step-card:hover { box-shadow: var(--s-md); transform: translateY(-2px); }
.step-num {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--blue-50); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 800; margin: 0 auto 18px;
  border: 1px solid var(--blue-100);
}
.step-icon-big { display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--blue-500); }

/* Icon utility */
.icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon svg { width: 100%; height: 100%; }

/* ── Dashboard Layout ─────────────────────────────────── */
.dashboard-layout { display: flex; min-height: calc(100vh - 62px); }

.sidebar {
  width: 230px; flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 20px 12px;
  display: flex; flex-direction: column; gap: 2px;
}
.sidebar-section-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--gray-400);
  padding: 12px 10px 5px;
}
.sidebar-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border-radius: var(--r-md);
  font-size: 13px; font-weight: 500; color: var(--gray-600);
  cursor: pointer; transition: all var(--dur-fast) var(--ease-out);
  border: none; background: none; width: 100%; text-align: left;
}
.sidebar-item:hover  { color: var(--blue); background: var(--blue-50); }
.sidebar-item.active { color: var(--blue); background: var(--blue-50); font-weight: 600; }
.sidebar-icon { font-size: 16px; flex-shrink: 0; }

.main-content { flex: 1; padding: 32px; overflow-y: auto; min-width: 0; }
.page-padded  { padding: 44px 0; }
.section      { padding: 80px 0; }

/* Semantic text color aliases (legacy compat) */
.text-secondary { color: var(--text-2); }

/* ── Phase Timeline ───────────────────────────────────── */
.phase-timeline { display: flex; flex-direction: column; }
.phase-item { display: flex; gap: 14px; position: relative; }
.phase-item:not(:last-child) .phase-connector {
  position: absolute; left: 15px; top: 36px; width: 2px; bottom: 0;
  background: var(--gray-200);
}
.phase-item.completed .phase-connector { background: linear-gradient(180deg, var(--green) 0%, var(--green-100) 100%); }
.phase-item.active    .phase-connector { background: linear-gradient(180deg, var(--blue) 0%, var(--gray-200) 100%); }

.phase-dot {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--gray-200); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--gray-400);
  flex-shrink: 0; z-index: 1; position: relative;
  transition: all var(--dur-slow) var(--ease-out);
}
.phase-item.completed .phase-dot { background: var(--green-50); border-color: var(--green); color: var(--green); }
.phase-item.active    .phase-dot { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 5px rgba(37,99,235,.12); animation: pulseDot 2.5s ease infinite; }
@keyframes pulseDot { 0%,100%{box-shadow:0 0 0 5px rgba(37,99,235,.12)} 50%{box-shadow:0 0 0 9px rgba(37,99,235,.04)} }

.phase-content { padding: 4px 0 24px; flex: 1; }
.phase-title { font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 3px; }
.phase-item.active .phase-title { color: var(--blue); }
.phase-item.completed .phase-title { color: var(--green-700); }
.phase-desc { font-size: 13px; color: var(--gray-500); line-height: 1.5; }

/* ── Data rows ────────────────────────────────────────── */
.data-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--gray-100); }
.data-row:last-child { border-bottom: none; }
.data-label { font-size: 13px; color: var(--gray-500); }
.data-value { font-size: 13px; font-weight: 500; color: var(--gray-800); text-align: right; }
.data-value.highlight { font-size: 16px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }

/* ── Vehicle hero card ────────────────────────────────── */
.vehicle-hero {
  background: linear-gradient(140deg, var(--ink-900) 0%, #102240 60%, #0d3060 100%);
  border-radius: var(--r-xl); padding: 32px; color: #fff;
  position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,.05);
}
.vehicle-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 100% 50%, rgba(37,99,235,.18) 0%, transparent 65%);
  pointer-events: none;
}
.vehicle-hero > * { position: relative; z-index: 1; }

.vehicle-plate-tag {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,.95); color: var(--navy);
  padding: 5px 16px; border-radius: 5px;
  font-size: 20px; font-weight: 900; letter-spacing: 4px;
  font-variant-numeric: tabular-nums;
  box-shadow: var(--s-sm);
  border: 2px solid rgba(0,0,0,.08);
}

.check-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-sm); margin-bottom: 5px; font-size: 13px; }
.check-item.ok   { background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100); }
.check-item.warn { background: var(--amber-50); color: var(--amber-700); border: 1px solid var(--amber-100); }
.check-item.fail { background: var(--red-50);   color: var(--red-700);   border: 1px solid var(--red-100); }
.check-icon { display: flex; align-items: center; flex-shrink: 0; }

/* ── Escrow Panel — Glassmorphism dark ────────────────── */
.escrow-panel {
  background: linear-gradient(140deg, var(--ink-900) 0%, #102240 55%, #0d2e58 100%);
  color: #fff; border-radius: var(--r-xl); padding: 32px;
  position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: var(--s-lg);
}
.escrow-panel::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 85% 20%, rgba(37,99,235,.22) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 90%, rgba(5,150,105,.10) 0%, transparent 50%);
  pointer-events: none;
}
.escrow-panel > * { position: relative; z-index: 1; }
.escrow-amount { font-size: 42px; font-weight: 800; letter-spacing: -2px; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.escrow-label  { font-size: 11px; opacity: .55; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.escrow-status-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  padding: 7px 14px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 600;
  backdrop-filter: blur(8px);
}
.escrow-divider { border: none; border-top: 1px solid rgba(255,255,255,.08); margin: 22px 0; }

/* ── Price Breakdown ──────────────────────────────────── */
.price-breakdown {
  background: var(--gray-50); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
}
.price-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 18px; font-size: 13px; border-bottom: 1px solid var(--gray-100); gap: 12px; }
.price-row:last-child { border-bottom: none; background: #fff; }
.price-row.total { background: var(--blue-50); border-top: 2px solid var(--blue-100); font-weight: 700; font-size: 15px; }

/* ── Credit Options ───────────────────────────────────── */
.credit-option {
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg); padding: 18px 20px;
  cursor: pointer; transition: all var(--dur-base) var(--ease-out);
  background: var(--surface); position: relative;
}
.credit-option:hover { border-color: var(--blue-100); box-shadow: var(--s-md); }
.credit-option.selected {
  border-color: var(--blue);
  background: var(--blue-50);
  box-shadow: 0 0 0 3px rgba(37,99,235,.10), var(--s-sm);
}
.credit-option.selected::after {
  content: '✓';
  position: absolute; top: 14px; right: 14px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.credit-monthly { font-size: 26px; font-weight: 800; color: var(--blue); letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.credit-detail  { font-size: 11px; color: var(--gray-500); }
.credit-detail strong { display: block; font-size: 13px; font-weight: 600; color: var(--gray-800); margin-bottom: 1px; }

/* ── Alerts ───────────────────────────────────────────── */
.alert { display: flex; align-items: flex-start; gap: 11px; padding: 13px 15px; border-radius: var(--r-md); font-size: 13px; line-height: 1.5; }
.alert-info    { background: var(--blue-50);  border: 1px solid var(--blue-100);  color: #1E40AF; }
.alert-success { background: var(--green-50); border: 1px solid var(--green-100); color: var(--green-700); }
.alert-warning { background: var(--amber-50); border: 1px solid var(--amber-100); color: var(--amber-700); }
.alert-error   { background: var(--red-50);   border: 1px solid var(--red-100);   color: var(--red-700); }
.alert-icon    { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.alert-title   { font-weight: 600; margin-bottom: 2px; }

/* ── Modal ────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(5,15,28,.6);
  backdrop-filter: blur(6px) saturate(120%);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: overlayIn var(--dur-base) var(--ease-out);
}
@keyframes overlayIn { from{opacity:0} to{opacity:1} }
.modal {
  background: var(--surface); border-radius: var(--r-2xl);
  max-width: 520px; width: 100%;
  box-shadow: var(--s-2xl);
  border: 1px solid rgba(0,0,0,.06);
  animation: modalIn var(--dur-slow) var(--ease-out);
  max-height: 90vh; overflow-y: auto;
}
@keyframes modalIn { from{transform:translateY(20px) scale(.97);opacity:0} to{transform:none;opacity:1} }
.modal-header { padding: 22px 28px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-body   { padding: 28px; }
.modal-footer { padding: 18px 28px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }
.modal-close  { background: var(--gray-100); border: none; border-radius: var(--r-md); width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--gray-500); cursor: pointer; transition: all var(--dur-fast); line-height: 1; }
.modal-close:hover { background: var(--gray-200); color: var(--gray-700); }

/* ── Toast ────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; max-width: 360px; pointer-events: none; }
.toast {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--s-lg);
  border: 1px solid var(--border); border-left: 4px solid var(--blue);
  animation: toastIn var(--dur-slow) var(--ease-out);
  pointer-events: all;
}
@keyframes toastIn { from{transform:translateX(110%);opacity:0} to{transform:none;opacity:1} }
.toast.success { border-left-color: var(--green); }
.toast.error   { border-left-color: var(--red); }
.toast.warning { border-left-color: var(--amber); }
.toast-icon  { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.toast-title { font-size: 13px; font-weight: 600; color: var(--gray-900); line-height: 1.3; }
.toast-msg   { font-size: 12px; color: var(--gray-500); margin-top: 2px; line-height: 1.4; }

/* ── Demo Panel ───────────────────────────────────────── */
.demo-panel {
  position: fixed; bottom: 24px; left: 24px; z-index: 500;
  background: linear-gradient(145deg, #0D1F35 0%, #0A2540 100%);
  color: #fff; border-radius: var(--r-2xl); padding: 18px 20px;
  box-shadow: var(--s-xl);
  min-width: 290px; max-width: 340px; font-size: 13px;
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
}
.demo-panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.demo-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.45); display: flex; align-items: center; gap: 6px; }
.demo-label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #F87171; box-shadow: 0 0 6px rgba(248,113,113,.6); }
.demo-phase-box {
  background: rgba(255,255,255,.06); border-radius: var(--r-md);
  padding: 12px 14px; margin-bottom: 14px; font-size: 12px; line-height: 1.55;
  border-left: 3px solid var(--blue-500); border: 1px solid rgba(255,255,255,.07);
  border-left: 3px solid var(--blue-500);
}
.demo-toggle {
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.8); padding: 5px 12px; border-radius: var(--r-sm);
  font-size: 11px; font-weight: 600; cursor: pointer;
  transition: all var(--dur-fast); font-family: var(--font);
}
.demo-toggle:hover { background: rgba(255,255,255,.17); }
.demo-close {
  background: rgba(255,255,255,.06); border: none;
  color: rgba(255,255,255,.35); cursor: pointer;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; line-height: 1; transition: all var(--dur-fast);
  font-family: var(--font);
}
.demo-close:hover { background: rgba(255,255,255,.12); color: rgba(255,255,255,.8); }

/* ── Auth pages ───────────────────────────────────────── */
.auth-wrapper {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--gray-50); padding: 24px;
  background-image: radial-gradient(var(--gray-200) 1px, transparent 1px);
  background-size: 20px 20px;
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-2xl); box-shadow: var(--s-xl); overflow: hidden;
}
.auth-header {
  padding: 36px 36px 26px; text-align: center;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--border);
}
.auth-body   { padding: 32px 36px; display: flex; flex-direction: column; gap: 18px; }
.auth-footer { padding: 17px 36px; border-top: 1px solid var(--border); background: var(--gray-50); text-align: center; font-size: 13px; color: var(--gray-600); }

/* ── Upload zone ──────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--gray-300); border-radius: var(--r-lg);
  padding: 36px 24px; text-align: center; cursor: pointer;
  transition: all var(--dur-base) var(--ease-out); background: var(--gray-50);
}
.upload-zone:hover { border-color: var(--blue-500); background: var(--blue-50); }
.upload-zone.uploaded { border-color: var(--green); background: var(--green-50); border-style: solid; }

/* ── KYC ──────────────────────────────────────────────── */
.kyc-step { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 36px 24px; gap: 18px; }
.kyc-icon-ring {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--blue-50); display: flex; align-items: center; justify-content: center;
  font-size: 38px; border: 3px solid var(--blue-100);
}
.kyc-icon-ring.green { background: var(--green-50); border-color: var(--green-100); }
.biometric-circle {
  width: 110px; height: 110px; border-radius: 50%;
  border: 3px solid var(--green); background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 50px; margin: 0 auto;
  transition: all var(--dur-slow) var(--ease-spring);
}

/* ── Progress bar ─────────────────────────────────────── */
.txn-progress { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px 24px; }
.txn-progress-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--gray-400); margin-bottom: 12px; }
.progress-bar-track { height: 6px; background: var(--gray-100); border-radius: var(--r-full); overflow: hidden; }
.progress-bar-fill  { height: 100%; background: linear-gradient(90deg, var(--blue) 0%, var(--green-400) 100%); border-radius: var(--r-full); transition: width .8s var(--ease-out); }

/* ── Success ──────────────────────────────────────────── */
.success-page { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 64px 24px; gap: 22px; }
.success-ring {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--green-50); border: 3px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 46px; animation: successPop .6s var(--ease-spring);
  box-shadow: var(--s-glow-green);
}
@keyframes successPop { 0%{transform:scale(0);opacity:0} 70%{transform:scale(1.08)} 100%{transform:scale(1);opacity:1} }

/* ── Audit trail ──────────────────────────────────────── */
.audit-item { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--gray-100); font-size: 13px; }
.audit-item:last-child { border-bottom: none; }
.audit-dot { width: 30px; height: 30px; border-radius: 8px; background: var(--gray-100); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 13px; }
.audit-time { font-size: 11px; color: var(--gray-400); margin-top: 2px; font-variant-numeric: tabular-nums; }

/* ── ChileAutos mock ──────────────────────────────────── */
.ca-header { background: #E31B2A; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.ca-logo   { color: #fff; font-size: 22px; font-weight: 900; letter-spacing: -.5px; }
.listing-card { border: 1px solid #E5E7EB; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: var(--s-sm); }
.listing-image { width: 200px; height: 160px; background: var(--gray-100); border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center; color: var(--gray-300); flex-shrink: 0; }
.listing-details { padding: 24px; }

/* ── Pre-approval popup ───────────────────────────────── */
.popup-bg { position: fixed; inset: 0; background: rgba(5,15,28,.6); z-index: 999; backdrop-filter: blur(4px); }
.popup-card {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: #fff; border-radius: var(--r-2xl); box-shadow: var(--s-2xl);
  width: 360px; max-width: calc(100vw - 32px); overflow: hidden; z-index: 1000;
  animation: modalIn .3s var(--ease-out);
  border: 1px solid rgba(0,0,0,.06);
}
.popup-header { background: linear-gradient(140deg, var(--green-700) 0%, var(--green) 100%); color: #fff; padding: 28px 24px; text-align: center; }
.popup-body   { padding: 24px; }

/* ── Divider ──────────────────────────────────────────── */
.divider { display: flex; align-items: center; gap: 14px; color: var(--gray-400); font-size: 12px; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── Stats row (landing) ──────────────────────────────── */
.stat-item { text-align: center; }
.stat-value { font-size: 38px; font-weight: 900; letter-spacing: -1.5px; color: var(--blue-400); font-variant-numeric: tabular-nums; }
.stat-label { font-size: 13px; color: rgba(255,255,255,.5); margin-top: 4px; font-weight: 400; }

/* ── Bottom nav (mobile) ──────────────────────────────── */
.bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: rgba(255,255,255,.95); backdrop-filter: blur(16px); border-top: 1px solid var(--border); padding: 6px 0; z-index: 200; }
.bottom-nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px; font-size: 10px; font-weight: 500; color: var(--gray-400); cursor: pointer; border: none; background: none; transition: color var(--dur-fast); font-family: var(--font); }
.bottom-nav-item.active { color: var(--blue); }
.bottom-nav-icon { font-size: 20px; }

/* ── Animations & utilities ───────────────────────────── */
@keyframes fadeIn   { from{opacity:0}              to{opacity:1} }
@keyframes slideUp  { from{transform:translateY(16px);opacity:0} to{transform:none;opacity:1} }
@keyframes spin     { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
@keyframes shimmer  { from{background-position:-200% 0} to{background-position:200% 0} }

.fade-in  { animation: fadeIn  .25s var(--ease-out); }
.slide-up { animation: slideUp .28s var(--ease-out); }
.spin     { animation: spin .8s linear infinite; display: inline-flex; }

.skeleton { background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--r-sm); }

/* ── Scrollbar ────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ── Page transition ──────────────────────────────────── */
#app-root > * { animation: pageIn .22s var(--ease-out); }
@keyframes pageIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .main-content { padding: 20px 16px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .bottom-nav { display: flex; }
  .page { padding-bottom: 76px; }
  .hero-trust { flex-direction: column; gap: 12px; }
}
@media (max-width: 640px) {
  .hero { padding: 72px 0 64px; }
  .hero-title { font-size: 34px; letter-spacing: -1px; }
  .hero-subtitle { font-size: 16px; }
  .container { padding: 0 16px; }
  .navbar-inner { padding: 0 16px; }
  .navbar-nav { display: none; }
  .auth-body { padding: 24px 20px; }
  .auth-header { padding: 28px 20px 20px; }
  .demo-panel { left: 12px; right: 12px; bottom: 80px; max-width: none; min-width: 0; }
  .toast-container { left: 12px; right: 12px; max-width: none; }
  .modal { max-height: 85vh; }
  .escrow-amount { font-size: 32px; }
  .stat-value { font-size: 28px; }
}
@media (max-width: 400px) {
  .hero-title { font-size: 28px; }
  .btn-xl { padding: 14px 24px; font-size: 15px; }
  .vehicle-plate-tag { font-size: 16px; letter-spacing: 3px; }
}
