/* ============================================================
   WANDACONNECT — GUEST DESIGN SYSTEM
   Version: 1.0
   Philosophy: White canvas. Brand color as accent only.
   Inspired by: Material You / Android 15 / Facebook / WhatsApp
   ============================================================

   TABLE OF CONTENTS
   1.  Tokens (design variables)
   2.  Reset & base
   3.  Typography scale
   4.  Layout utilities
   5.  Buttons
   6.  Form elements
   7.  Navigation
   8.  Cards (service, category, freelancer, blog)
   9.  Chips & pills
   10. Section chrome
   11. Divider row
   12. How It Works
   13. Split section
   14. Escrow card
   15. CTA block
   16. Footer
   17. Auth pages
   18. Empty states
   19. Badges & tags
   20. Responsive
   ============================================================ */

/* ── 1. TOKENS ─────────────────────────────────────────────*/
:root {
  /* Brand — used in exactly 3 contexts:
     logo, one primary button, one accent word/element */
  --navy:        #1a237e;
  --navy-hover:  #0d1757;
  --red:         #e53935;
  --red-hover:   #c62828;

  /* Tonal surfaces — brand-tinted but nearly white */
  --tonal-navy:  #f0f4ff;   /* icon bg, active chip bg */
  --tonal-red:   #fff0f0;   /* error states, warning tags */

  /* Surface scale — white to barely-off-white */
  --surface-0:   #ffffff;   /* base white */
  --surface-1:   #f8fafc;   /* section alternates, wash */
  --surface-2:   #f1f5f9;   /* card hover bg, input bg */

  /* Text scale */
  --text-1:      #0f172a;   /* headlines, primary labels */
  --text-2:      #1e293b;   /* body text */
  --text-3:      #475569;   /* secondary / supporting text */
  --text-4:      #64748b;   /* muted labels, captions */
  --text-5:      #94a3b8;   /* placeholder, hints, faint */

  /* Borders */
  --border-1:    #e2e8f0;   /* default borders, dividers */
  --border-2:    #cbd5e1;   /* slightly stronger border */
  --border-3:    #94a3b8;   /* focused/active border */

  /* Semantic */
  --success:     #16a34a;
  --success-bg:  #f0fdf4;
  --warning:     #d97706;
  --warning-bg:  #fffbeb;
  --error:       #dc2626;
  --error-bg:    #fef2f2;
  --info:        #2563eb;
  --info-bg:     #eff6ff;

  /* Star rating */
  --star:        #f59e0b;

  /* Elevation — consistent shadow scale */
  --e0: none;
  --e1: 0 1px 2px rgba(15,23,42,.04);
  --e2: 0 2px 8px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --e3: 0 8px 24px rgba(15,23,42,.08), 0 2px 6px rgba(15,23,42,.04);
  --e4: 0 20px 48px rgba(15,23,42,.10), 0 4px 12px rgba(15,23,42,.06);

  /* Radius — single scale */
  --r-sm:   8px;
  --r:      12px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-full: 9999px;

  /* Spacing scale */
  --sp-1:   4px;
  --sp-2:   8px;
  --sp-3:   12px;
  --sp-4:   16px;
  --sp-5:   20px;
  --sp-6:   24px;
  --sp-8:   32px;
  --sp-10:  40px;
  --sp-12:  48px;
  --sp-16:  64px;
  --sp-20:  80px;
  --sp-22:  88px;

  /* Transition — single value everywhere */
  --t: 150ms cubic-bezier(.4,0,.2,1);

  /* Font */
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
          'Helvetica Neue', Arial, sans-serif;

  /* Max widths */
  --wrap:       1100px;
  --wrap-prose: 720px;
  --wrap-tight: 540px;
}

/* ── 2. RESET & BASE ────────────────────────────────────────*/
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-2);
  background: var(--surface-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
img, video { display: block; max-width: 100%; }
button { font-family: var(--font); cursor: pointer; }
input, textarea, select { font-family: var(--font); }
ul, ol { list-style: none; }

/* ── 3. TYPOGRAPHY SCALE ────────────────────────────────────*/
.t-display {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--text-1);
}
.t-h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--text-1);
}
.t-h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--text-1);
}
.t-h3 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--text-1);
}
.t-h4 {
  font-size: .925rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-1);
}
.t-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-3);
}
.t-body-sm {
  font-size: .875rem;
  line-height: 1.7;
  color: var(--text-3);
}
.t-caption {
  font-size: .775rem;
  line-height: 1.5;
  color: var(--text-4);
}
.t-micro {
  font-size: .7rem;
  line-height: 1.4;
  color: var(--text-5);
}
.t-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-5);
}
/* Navy accent — used once in hero h1 */
.t-navy { color: var(--navy); }
/* Red accent */
.t-red  { color: var(--red); }

/* ── 4. LAYOUT UTILITIES ────────────────────────────────────*/
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
.wrap-prose {
  max-width: var(--wrap-prose);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
.wrap-tight {
  max-width: var(--wrap-tight);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

/* Grid utilities */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-6); }
.grid-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-16); align-items: center; }

/* Flex utilities */
.flex       { display: flex; }
.flex-col   { display: flex; flex-direction: column; }
.flex-center{ display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: var(--sp-1); }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }

/* ── 5. BUTTONS ─────────────────────────────────────────────*/

/* Primary — red. Used once per view as the main CTA */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2); font-weight: 600; border: none;
  border-radius: var(--r-sm); transition: all var(--t);
  white-space: nowrap; cursor: pointer; font-family: var(--font);
  text-decoration: none; line-height: 1;
}
.btn-sm  { font-size: .835rem; padding: 8px 16px; border-radius: var(--r-sm); }
.btn-md  { font-size: .875rem; padding: 11px 22px; border-radius: var(--r); }
.btn-lg  { font-size: .95rem;  padding: 13px 28px; border-radius: var(--r); }
.btn-xl  { font-size: 1rem;    padding: 15px 32px; border-radius: var(--r); }
.btn-full{ width: 100%; }

/* Filled — red */
.btn-red {
  background: var(--red); color: #fff;
  box-shadow: 0 1px 4px rgba(229,57,53,.3);
}
.btn-red:hover { background: var(--red-hover); box-shadow: 0 2px 10px rgba(229,57,53,.4); }

/* Filled — dark */
.btn-dark { background: var(--text-1); color: #fff; }
.btn-dark:hover { background: var(--text-2); }

/* Filled — navy */
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-hover); }

/* Outlined */
.btn-outline {
  background: transparent; color: var(--text-1);
  border: 1.5px solid var(--border-2);
}
.btn-outline:hover { border-color: var(--border-3); background: var(--surface-1); }

/* Ghost */
.btn-ghost {
  background: transparent; color: var(--text-3);
}
.btn-ghost:hover { background: var(--surface-1); color: var(--text-1); }

/* Ghost destructive */
.btn-ghost-red { background: transparent; color: var(--red); }
.btn-ghost-red:hover { background: var(--tonal-red); }

/* ── 6. FORM ELEMENTS ───────────────────────────────────────*/
.form-group { display: flex; flex-direction: column; gap: var(--sp-1); margin-bottom: var(--sp-4); }
.form-label {
  font-size: .82rem; font-weight: 600; color: var(--text-3);
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: .9rem;
  color: var(--text-1);
  background: var(--surface-0);
  border: 1.5px solid var(--border-1);
  border-radius: var(--r-sm);
  font-family: var(--font);
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-5); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--border-3);
  box-shadow: 0 0 0 3px rgba(148,163,184,.15);
}
.form-textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; cursor: pointer; }
.form-error { font-size: .775rem; color: var(--error); margin-top: 4px; }
.form-hint  { font-size: .775rem; color: var(--text-5); margin-top: 4px; }

/* Search box — hero/page search bar */
.search-box {
  display: flex; align-items: center;
  background: var(--surface-0);
  border: 1.5px solid var(--border-2);
  border-radius: var(--r);
  box-shadow: var(--e3);
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t);
}
.search-box:focus-within {
  border-color: var(--border-3);
  box-shadow: var(--e4);
}
.search-ico { padding: 0 14px; color: var(--text-5); font-size: .95rem; flex-shrink: 0; }
.search-input {
  flex: 1; border: none; outline: none;
  font-size: .925rem; color: var(--text-1);
  padding: 14px 0; background: transparent; font-family: var(--font);
}
.search-input::placeholder { color: var(--text-5); }
.search-btn {
  background: var(--red); color: #fff; border: none;
  font-size: .875rem; font-weight: 700; padding: 14px 22px;
  cursor: pointer; font-family: var(--font);
  transition: background var(--t); white-space: nowrap; flex-shrink: 0;
}
.search-btn:hover { background: var(--red-hover); }

/* ── 7. NAVIGATION ──────────────────────────────────────────*/
.nav {
  position: sticky; top: 0; z-index: 500;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-1);
}
.nav-row {
  height: 60px;
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}

/* Logo */
.nav-logo {
  display: flex; align-items: center; gap: 9px;
  margin-right: 32px; flex-shrink: 0; min-width: 0;
}
/* Logo text hides on very small screens — mark only shows */
@media(max-width:360px){
  .nav-logo-name { display: none; }
  .nav-logo      { margin-right: 0; }
}
.nav-logo-sq {
  width: 30px; height: 30px; border-radius: var(--r-sm);
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem; font-weight: 900; color: #fff; flex-shrink: 0;
}
.nav-logo-name {
  font-size: 1rem; font-weight: 800;
  letter-spacing: -.02em; color: var(--text-1);
}
.nav-logo-name em { font-style: normal; color: var(--red); }

/* Nav links */
.nav-links { display: flex; gap: 2px; flex: 1; }
.nav-link {
  font-size: .835rem; font-weight: 500; color: var(--text-4);
  padding: 6px 11px; border-radius: var(--r-sm);
  transition: color var(--t), background var(--t);
}
.nav-link:hover { color: var(--text-1); background: var(--surface-1); }
.nav-link.active { color: var(--text-1); font-weight: 600; }

/* Auth area */
.nav-auth { display: flex; align-items: center; gap: 6px; margin-left: auto; }

/* Logged-in state */
.nav-user {
  display: flex; align-items: center; gap: var(--sp-3);
  margin-left: auto;
}
.nav-user-av {
  width: 32px; height: 32px; border-radius: var(--r-full);
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 800; flex-shrink: 0;
  overflow: hidden;
}
.nav-user-av img { width: 100%; height: 100%; object-fit: cover; }
.nav-dashboard {
  font-size: .835rem; font-weight: 600; color: var(--text-1);
  background: var(--surface-1); border: 1.5px solid var(--border-1);
  padding: 7px 15px; border-radius: var(--r-sm);
  transition: all var(--t);
}
.nav-dashboard:hover { border-color: var(--border-2); }
.nav-logout {
  font-size: .835rem; font-weight: 500; color: var(--text-4);
  padding: 7px 13px; border-radius: var(--r-sm);
  transition: all var(--t);
}
.nav-logout:hover { color: var(--text-1); background: var(--surface-1); }

/* Mobile nav toggle */
.nav-toggle {
  display: none; background: none; border: none;
  padding: 6px; color: var(--text-3); font-size: 1.25rem;
  border-radius: var(--r-sm); transition: background var(--t);
}
.nav-toggle:hover { background: var(--surface-1); }

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed; inset: 60px 0 0 0; z-index: 490;
  background: var(--surface-0);
  border-top: 1px solid var(--border-1);
  padding: var(--sp-4);
  flex-direction: column; gap: var(--sp-2);
  box-shadow: var(--e4);
}
.nav-drawer.open { display: flex; }
.nav-drawer .nav-link {
  display: block; padding: 11px 14px; font-size: .9rem; border-radius: var(--r-sm);
}
.nav-drawer-divider { height: 1px; background: var(--border-1); margin: var(--sp-2) 0; }
.nav-drawer-auth { display: flex; flex-direction: column; gap: var(--sp-2); padding-top: var(--sp-2); }

/* ── 8. CARDS ───────────────────────────────────────────────*/

/* ── Service card */
.svc-card {
  background: var(--surface-0);
  border-radius: var(--r);
  border: 1px solid var(--border-1);
  box-shadow: var(--e1);
  overflow: hidden;
  transition: box-shadow var(--t), transform var(--t);
  display: flex; flex-direction: column;
}
.svc-card:hover {
  box-shadow: var(--e4);
  transform: translateY(-3px);
}
.svc-card-thumb {
  width: 100%; height: 160px;
  object-fit: cover;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; flex-shrink: 0;
}
.svc-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.svc-card-body { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.svc-card-seller { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-2); }
.svc-card-av {
  width: 24px; height: 24px; border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  font-size: .6rem; font-weight: 800; color: #fff; flex-shrink: 0;
  overflow: hidden; background: var(--navy);
}
.svc-card-av img { width: 100%; height: 100%; object-fit: cover; }
.svc-card-username { font-size: .72rem; font-weight: 600; color: var(--text-3); flex: 1; }
.svc-card-rating { font-size: .68rem; color: var(--text-5); }
.svc-card-title {
  font-size: .8rem; font-weight: 600; color: var(--text-1);
  line-height: 1.45; margin-bottom: auto;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.svc-card-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--sp-3); margin-top: var(--sp-3);
  border-top: 1px solid var(--surface-1);
}
.svc-card-stars { font-size: .7rem; color: var(--star); font-weight: 600; }
.svc-card-price { font-size: .7rem; color: var(--text-5); }
.svc-card-price strong { font-size: .84rem; color: var(--text-1); font-weight: 700; }

/* ── Category card */
.cat-card {
  display: flex; align-items: center; gap: var(--sp-3);
  background: var(--surface-0);
  border: 1.5px solid var(--border-1);
  border-radius: var(--r); padding: 16px 15px;
  cursor: pointer; transition: all var(--t);
  text-decoration: none; color: inherit;
}
.cat-card:hover {
  border-color: var(--border-2);
  background: var(--surface-1);
  box-shadow: var(--e2);
}
.cat-card-ico {
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--tonal-navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; flex-shrink: 0;
  transition: background var(--t);
}
.cat-card:hover .cat-card-ico { background: #e4e8ff; }
.cat-card-name { font-size: .845rem; font-weight: 700; color: var(--text-1); }
.cat-card-count { font-size: .7rem; color: var(--text-5); margin-top: 2px; }

/* ── Freelancer profile card */
.fl-card {
  background: var(--surface-0);
  border: 1.5px solid var(--border-1);
  border-radius: var(--r); padding: var(--sp-5);
  text-align: center; transition: all var(--t);
  text-decoration: none; color: inherit;
}
.fl-card:hover { border-color: var(--border-2); box-shadow: var(--e3); }
.fl-card-av {
  width: 72px; height: 72px; border-radius: var(--r-full);
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800;
  margin: 0 auto var(--sp-3); overflow: hidden;
}
.fl-card-av img { width: 100%; height: 100%; object-fit: cover; }
.fl-card-name { font-size: .9rem; font-weight: 700; color: var(--text-1); }
.fl-card-title { font-size: .775rem; color: var(--text-4); margin-top: 3px; }
.fl-card-rating { font-size: .78rem; color: var(--star); font-weight: 600; margin-top: var(--sp-2); }
.fl-card-tag {
  display: inline-block;
  font-size: .68rem; color: var(--text-4);
  background: var(--surface-1); border: 1px solid var(--border-1);
  padding: 3px 9px; border-radius: var(--r-full); margin-top: var(--sp-2);
}

/* ── Blog card */
.blog-card {
  background: var(--surface-0);
  border: 1px solid var(--border-1);
  border-radius: var(--r); overflow: hidden;
  transition: all var(--t); text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}
.blog-card:hover { box-shadow: var(--e3); transform: translateY(-2px); }
.blog-card-thumb {
  height: 180px; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; font-size: 3rem;
}
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: var(--sp-5); flex: 1; display: flex; flex-direction: column; }
.blog-card-cat {
  font-size: .68rem; font-weight: 700; color: var(--text-4);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--sp-2);
}
.blog-card-title { font-size: .9rem; font-weight: 700; color: var(--text-1); line-height: 1.35; margin-bottom: var(--sp-2); }
.blog-card-excerpt { font-size: .8rem; color: var(--text-4); line-height: 1.6; margin-bottom: auto; }
.blog-card-meta { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid var(--border-1); }
.blog-card-date { font-size: .72rem; color: var(--text-5); }
.blog-card-read { font-size: .72rem; color: var(--text-5); margin-left: auto; }

/* ── 9. CHIPS & PILLS ───────────────────────────────────────*/

/* Category chips in hero / search */
.chip-row { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.chip {
  font-size: .775rem; font-weight: 500; color: var(--text-4);
  background: var(--surface-0); border: 1.5px solid var(--border-1);
  padding: 6px 14px; border-radius: var(--r-full);
  cursor: pointer; transition: all var(--t); white-space: nowrap;
}
.chip:hover { border-color: var(--border-2); color: var(--text-2); }
.chip.active {
  background: var(--text-1); color: var(--surface-0);
  border-color: var(--text-1);
}

/* Filter pills (category/search page) */
.filter-row { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.filter-pill {
  font-size: .775rem; font-weight: 500; color: var(--text-4);
  background: var(--surface-0); border: 1.5px solid var(--border-1);
  padding: 6px 14px; border-radius: var(--r-full);
  cursor: pointer; transition: all var(--t);
}
.filter-pill:hover { border-color: var(--border-2); color: var(--text-2); }
.filter-pill.active { background: var(--text-1); color: #fff; border-color: var(--text-1); }

/* Status badge */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .7rem; font-weight: 600; padding: 3px 9px;
  border-radius: var(--r-full);
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-error   { background: var(--error-bg);   color: var(--error); }
.badge-info    { background: var(--info-bg);     color: var(--info); }
.badge-neutral { background: var(--surface-2);  color: var(--text-4); }

/* Tag link (popular searches) */
.tag-link {
  font-size: .72rem; color: var(--text-3);
  background: var(--surface-1); border: 1px solid var(--border-1);
  padding: 3px 10px; border-radius: var(--r-full);
  transition: all var(--t); cursor: pointer;
}
.tag-link:hover { border-color: var(--border-2); color: var(--text-1); }

/* Kicker / eyebrow */
.kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .7rem; font-weight: 600; color: var(--text-4);
  background: var(--surface-1); border: 1px solid var(--border-1);
  padding: 4px 12px; border-radius: var(--r-full);
  letter-spacing: .03em;
}
.kicker::before {
  content: ''; width: 5px; height: 5px;
  background: var(--text-5); border-radius: 50%;
}

/* ── 10. SECTION CHROME ─────────────────────────────────────*/
.sec { padding: var(--sp-22) 0; }
.sec-sm { padding: var(--sp-12) 0; }
.sec-wash { background: var(--surface-1); }

.sec-head {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--sp-8); gap: var(--sp-4);
}
.sec-head-left {}
.eyebrow {
  font-size: .68rem; font-weight: 700; color: var(--text-5);
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: var(--sp-1); display: block;
}
.sec-title {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 800; color: var(--text-1);
  line-height: 1.15; letter-spacing: -.02em;
}
.sec-sub { font-size: .855rem; color: var(--text-4); margin-top: var(--sp-1); }
.see-all {
  font-size: .8rem; font-weight: 600; color: var(--text-3);
  white-space: nowrap; transition: color var(--t);
}
.see-all:hover { color: var(--text-1); }

/* ── 11. DIVIDER ROW ────────────────────────────────────────*/
.divider-row {
  border-top: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
}
.divider-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
}
.divider-item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 20px 22px;
}
.divider-item + .divider-item { border-left: 1px solid var(--border-1); }
.divider-ico {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--surface-1); border: 1px solid var(--border-1);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; flex-shrink: 0;
}
.divider-strong { font-size: .82rem; font-weight: 700; color: var(--text-1); display: block; line-height: 1.3; }
.divider-span   { font-size: .72rem; color: var(--text-4); }

/* ── 12. HOW IT WORKS ───────────────────────────────────────*/
.hiw-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 0; position: relative;
}
.hiw-grid::before {
  content: ''; position: absolute;
  top: 24px; left: 14%; right: 14%;
  height: 1px; background: var(--border-1); z-index: 0;
}
.hiw-step { text-align: center; padding: 0 14px; position: relative; z-index: 1; }
.hiw-num {
  width: 48px; height: 48px; border-radius: var(--r-full);
  background: var(--surface-0); border: 1.5px solid var(--border-1);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; font-weight: 800; color: var(--text-1);
  margin: 0 auto 16px;
  box-shadow: 0 0 0 5px var(--surface-0), 0 0 0 6px var(--border-1);
}
.hiw-step.current .hiw-num {
  background: var(--text-1); color: #fff; border-color: var(--text-1);
}
.hiw-tag {
  display: inline-block; background: var(--surface-1);
  color: var(--text-4); font-size: .63rem; font-weight: 600;
  padding: 2px 8px; border-radius: 6px; margin-bottom: var(--sp-2);
}
.hiw-step h3 { font-size: .875rem; font-weight: 700; color: var(--text-1); margin-bottom: var(--sp-2); }
.hiw-step p  { font-size: .775rem; color: var(--text-4); line-height: 1.65; }

/* ── 13. SPLIT SECTION ──────────────────────────────────────*/
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-16); align-items: center; }
.split-text p { font-size: .875rem; color: var(--text-3); line-height: 1.8; margin: var(--sp-3) 0 var(--sp-6); }
.feat-list { display: flex; flex-direction: column; gap: var(--sp-4); }
.feat-item { display: flex; gap: var(--sp-3); align-items: flex-start; }
.feat-ico {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--surface-0); border: 1px solid var(--border-1);
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem; flex-shrink: 0; box-shadow: var(--e1);
}
.feat-strong { font-size: .845rem; color: var(--text-1); display: block; margin-bottom: 2px; font-weight: 600; }
.feat-span   { font-size: .775rem; color: var(--text-4); line-height: 1.55; }

/* ── 14. ESCROW CARD ────────────────────────────────────────*/
.escrow-card {
  background: var(--surface-0); border-radius: var(--r);
  border: 1px solid var(--border-1); box-shadow: var(--e3); overflow: hidden;
}
.escrow-head {
  padding: 16px 20px; border-bottom: 1px solid var(--border-1);
  display: flex; align-items: center; gap: var(--sp-3);
}
.escrow-ico {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--surface-1); border: 1px solid var(--border-1);
  display: flex; align-items: center; justify-content: center; font-size: .9rem;
}
.escrow-title { font-size: .875rem; font-weight: 700; color: var(--text-1); display: block; }
.escrow-sub   { font-size: .72rem; color: var(--text-4); }
.escrow-body  { padding: 6px 20px 12px; }
.e-step { display: flex; gap: var(--sp-3); padding: 12px 0; position: relative; }
.e-step:not(:last-child)::after {
  content: ''; position: absolute; left: 14px; top: 42px;
  width: 1px; height: calc(100% - 8px); background: var(--border-1);
}
.e-dot {
  width: 30px; height: 30px; border-radius: var(--r-full); flex-shrink: 0;
  background: var(--surface-0); border: 1.5px solid var(--border-1);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 800; color: var(--text-4);
  position: relative; z-index: 1;
}
.e-step.done .e-dot { background: var(--text-1); border-color: var(--text-1); color: #fff; }
.e-strong { font-size: .8rem; color: var(--text-1); display: block; margin-bottom: 2px; font-weight: 600; }
.e-span   { font-size: .72rem; color: var(--text-5); }
.e-pill {
  display: inline-block; background: var(--surface-1); border: 1px solid var(--border-1);
  color: var(--text-3); font-size: .64rem; font-weight: 600;
  padding: 2px 8px; border-radius: 5px; margin-top: 4px;
}

/* ── 15. CTA BLOCK ──────────────────────────────────────────*/
.cta-block {
  background: var(--surface-1); border-radius: var(--r-lg);
  border: 1px solid var(--border-1);
  display: grid; grid-template-columns: 1fr auto;
  gap: var(--sp-12); align-items: center;
  padding: 52px 56px;
}
.cta-eyebrow {
  font-size: .68rem; font-weight: 700; color: var(--text-5);
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: var(--sp-3); display: block;
}
.cta-title {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800; color: var(--text-1);
  letter-spacing: -.02em; line-height: 1.15; margin-bottom: var(--sp-3);
}
.cta-body { font-size: .875rem; color: var(--text-3); line-height: 1.75; max-width: 440px; }
.cta-stats { display: flex; gap: var(--sp-6); margin-top: var(--sp-5); }
.cta-stat strong { font-size: 1.25rem; font-weight: 800; color: var(--text-1); display: block; line-height: 1.1; }
.cta-stat span   { font-size: .68rem; color: var(--text-5); margin-top: 3px; display: block; }
.cta-btns { display: flex; flex-direction: column; gap: var(--sp-2); flex-shrink: 0; }

/* ── 16. FOOTER ─────────────────────────────────────────────*/
.footer {
  background: var(--surface-1);
  border-top: 1px solid var(--border-1);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-12);
  padding-bottom: var(--sp-12);
}
.footer-brand-name {
  font-size: .975rem; font-weight: 800;
  color: var(--text-1); letter-spacing: -.01em;
  margin-bottom: var(--sp-3); display: block;
}
.footer-brand-name em { font-style: normal; color: var(--red); }
.footer-brand p { font-size: .775rem; color: var(--text-4); line-height: 1.75; max-width: 220px; }
.footer-col h5 {
  font-size: .67rem; font-weight: 700; color: var(--text-5);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--sp-4);
}
.footer-col a {
  display: block; color: var(--text-4); font-size: .8rem;
  margin-bottom: var(--sp-2); transition: color var(--t);
}
.footer-col a:hover { color: var(--text-1); }
.footer-bottom {
  border-top: 1px solid var(--border-1); padding: 18px 0;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: var(--sp-3);
}
.footer-copy { font-size: .72rem; color: var(--text-5); }
.footer-legal { display: flex; gap: var(--sp-5); }
.footer-legal a { font-size: .72rem; color: var(--text-5); transition: color var(--t); }
.footer-legal a:hover { color: var(--text-3); }

/* ── 17. AUTH PAGES ─────────────────────────────────────────*/
.auth-page {
  min-height: 100vh; background: var(--surface-1);
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-8) var(--sp-6);
}
.auth-card {
  background: var(--surface-0); border-radius: var(--r-lg);
  border: 1px solid var(--border-1); box-shadow: var(--e3);
  padding: 36px 32px; width: 100%; max-width: 420px;
}
.auth-logo {
  display: flex; align-items: center; gap: 9px;
  justify-content: center; margin-bottom: var(--sp-6);
}
.auth-title { font-size: 1.2rem; font-weight: 800; color: var(--text-1); text-align: center; margin-bottom: var(--sp-2); }
.auth-sub   { font-size: .855rem; color: var(--text-4); text-align: center; margin-bottom: var(--sp-6); }
.auth-divider {
  display: flex; align-items: center; gap: var(--sp-3);
  margin: var(--sp-5) 0; color: var(--text-5); font-size: .75rem;
}
.auth-divider::before,
.auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border-1); }
.auth-footer {
  text-align: center; margin-top: var(--sp-5);
  font-size: .82rem; color: var(--text-4);
}
.auth-footer a { color: var(--text-1); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* Alert messages */
.alert {
  padding: 11px 14px; border-radius: var(--r-sm);
  font-size: .84rem; line-height: 1.5; margin-bottom: var(--sp-4);
  display: flex; align-items: flex-start; gap: var(--sp-2);
}
.alert-error   { background: var(--error-bg);   color: var(--error);   border: 1px solid #fecaca; }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid #bbf7d0; }
.alert-info    { background: var(--info-bg);    color: var(--info);    border: 1px solid #bfdbfe; }
.alert-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid #fde68a; }

/* ── 18. EMPTY STATES ───────────────────────────────────────*/
.empty-state {
  text-align: center; padding: var(--sp-20) var(--sp-6);
}
.empty-icon  { font-size: 2.5rem; margin-bottom: var(--sp-4); display: block; }
.empty-title { font-size: 1.05rem; font-weight: 700; color: var(--text-1); margin-bottom: var(--sp-2); }
.empty-body  { font-size: .875rem; color: var(--text-4); max-width: 320px; margin: 0 auto var(--sp-6); }

/* ── 19. PAGINATION ─────────────────────────────────────────*/
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: var(--sp-1); margin-top: var(--sp-10);
}
.page-btn {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 600; color: var(--text-3);
  background: var(--surface-0); border: 1.5px solid var(--border-1);
  cursor: pointer; transition: all var(--t); text-decoration: none;
}
.page-btn:hover { border-color: var(--border-2); color: var(--text-1); }
.page-btn.active { background: var(--text-1); color: #fff; border-color: var(--text-1); }
.page-btn.disabled { opacity: .4; cursor: not-allowed; }

/* ── 20. RESPONSIVE ─────────────────────────────────────────*/
@media(max-width:1024px){
  .grid-4 { grid-template-columns: repeat(3,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid > *:first-child { grid-column: 1/-1; }
}
@media(max-width:900px){
  :root { --sp-22: 64px; --sp-16: 48px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .grid-4  { grid-template-columns: 1fr 1fr; }
  .grid-3  { grid-template-columns: 1fr 1fr; }
  .grid-split { grid-template-columns: 1fr; gap: var(--sp-8); }
  .split-section { grid-template-columns: 1fr; gap: var(--sp-10); }
  .hiw-grid { grid-template-columns: 1fr 1fr; }
  .hiw-grid::before { display: none; }
  .divider-grid { grid-template-columns: 1fr 1fr; }
  .cta-block { grid-template-columns: 1fr; padding: 36px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > *:first-child { grid-column: 1/-1; }
}
@media(max-width:600px){
  :root { --sp-22: 48px; --sp-12: 36px; }
  .wrap, .wrap-prose, .wrap-tight { padding: 0 16px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hiw-grid { grid-template-columns: 1fr; }
  .divider-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-auth a {
        display: none !important;
    }
  
}


