/* =====================================================================
   CREDEEL - Premium Fintech UI
   A pure HTML / CSS / JS experience
   Theme: White + Light Grey · Slim, sleek typography · Minimal & clean
   ===================================================================== */

/* -------------------------------------------------- *
 * 1. DESIGN TOKENS
 * -------------------------------------------------- */
:root {
  /* Neutrals - the white & light-grey canvas */
  --white:      #ffffff;
  --grey-50:    #fbfbfc;
  --grey-100:   #f6f6f8;
  --grey-150:   #f0f0f3;
  --grey-200:   #e9e9ee;
  --grey-250:   #e1e1e8;
  --grey-300:   #d6d6de;
  --grey-400:   #b6b6c0;
  --grey-500:   #8a8a96;
  --grey-600:   #6b6b77;
  --grey-700:   #4a4a55;

  /* Ink - near-black for contrast surfaces & text */
  --ink:        #111114;
  --ink-soft:   #1c1c22;
  --ink-700:    #2a2a32;

  /* Accent - a restrained premium indigo→violet */
  --accent:     #5b5bf0;
  --accent-600: #4f46e5;
  --accent-700: #4338ca;
  --accent-soft:#eceaff;
  --violet:     #9b7bff;

  /* Functional text */
  --text:       #16161a;
  --text-muted: #6b6b77;
  --text-faint: #9a9aa4;

  /* Danger / validation errors */
  --danger:      #e5484d;
  --danger-soft: #fdecec;

  /* Success & gold semantic tints */
  --success:        #1f9d6b;
  --success-strong: #128a5b;
  --success-soft:   #e9faf2;
  --gold:           #f5b53d;
  --gold-soft:      #fdf3e2;

  /* Lines & surfaces */
  --line:       #ebebf0;
  --line-strong:#e0e0e7;
  --surface:    #ffffff;
  --surface-2:  #f6f6f8;

  /* Gradients */
  --grad-accent: linear-gradient(120deg, #5b5bf0 0%, #8b6bff 100%);
  --grad-ink:    linear-gradient(160deg, #1c1c22 0%, #0c0c10 100%);
  --grad-sheen:  linear-gradient(120deg, #ffffff 0%, #f2f2f6 100%);
  --grad-gold-ink: linear-gradient(160deg, #2e2611 0%, #171006 100%);
  --grad-platinum: linear-gradient(140deg, #f4f4f8 0%, #d9d9e3 55%, #c3c3d0 100%);

  /* Shadows - soft, premium, layered */
  --sh-xs: 0 1px 2px rgba(20,20,30,.04);
  --sh-sm: 0 2px 8px rgba(20,20,30,.05);
  --sh-md: 0 10px 30px rgba(20,20,30,.07);
  --sh-lg: 0 24px 60px rgba(20,20,30,.10);
  --sh-xl: 0 40px 90px rgba(20,20,30,.14);
  --sh-accent: 0 16px 40px rgba(91,91,240,.28);

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --t-fast: .25s;
  --t: .45s;
  --t-slow: .8s;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 76px;

  /* Type families */
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

/* -------------------------------------------------- *
 * 2. RESET & BASE
 * -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

::selection { background: var(--accent); color: #fff; }

/* Slim, sleek scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--grey-100); }
::-webkit-scrollbar-thumb { background: var(--grey-300); border-radius: 99px; border: 3px solid var(--grey-100); }
::-webkit-scrollbar-thumb:hover { background: var(--grey-400); }

/* -------------------------------------------------- *
 * 3. TYPOGRAPHY
 * -------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.7rem, 6.2vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.display strong { font-weight: 600; }

h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.85rem, 3.8vw, 2.9rem); font-weight: 500; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); font-weight: 600; }
h4 { font-size: 1.12rem; font-weight: 600; }

p { color: var(--text-muted); }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.6;
  color: var(--text-muted);
  font-weight: 400;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-600);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
  opacity: .7;
}
.eyebrow.center::before { display: none; }

.text-grad {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* -------------------------------------------------- *
 * 4. LAYOUT
 * -------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-wide { max-width: 1360px; }

section { position: relative; }
.section { padding-block: clamp(64px, 9vw, 75px); }
.section-sm { padding-block: clamp(48px, 6vw, 60px); }

.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 18px; }
.section-head p { font-size: 1.08rem; }

.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.bg-grey { background: var(--grey-100); }
.bg-soft { background: var(--grey-50); }

.divider { height: 1px; background: var(--line); border: none; }

/* -------------------------------------------------- *
 * 5. BUTTONS
 * -------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 20px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: var(--r-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; transition: transform var(--t-fast) var(--ease); }
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--sh-sm);
}
.btn-primary:hover {
  background: var(--accent-600);
  box-shadow: var(--sh-accent);
  transform: translateY(-2px);
}
.btn-primary:hover svg { transform: translateX(3px); }

.btn-accent { background: var(--grad-accent); color: #fff; box-shadow: var(--sh-accent); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 22px 48px rgba(91,91,240,.36); }
.btn-accent:hover svg { transform: translateX(3px); }

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--sh-md); }

.btn-light {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(6px);
}
.btn-light:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }

.btn-lg { padding: 17px 34px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
  color: var(--ink);
  transition: gap var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.btn-text svg { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); }
.btn-text:hover { color: var(--accent-600); gap: 11px; }

/* Pills / chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  box-shadow: var(--sh-xs);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: #2ecc8f; box-shadow: 0 0 0 3px rgba(46,204,143,.16); }

/* -------------------------------------------------- *
 * 6. HEADER / NAVIGATION
 * -------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: height var(--t) var(--ease), background var(--t) var(--ease),
              box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  opacity: 0;
  transition: opacity var(--t) var(--ease);
  z-index: -1;
}
.site-header.scrolled { height: 64px; border-bottom-color: var(--line); }
.site-header.scrolled::before { opacity: 1; }

.nav {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Brand / logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--grad-accent);
  box-shadow: var(--sh-accent);
  transition: transform var(--t) var(--ease);
}
.brand-mark svg { width: 19px; height: 19px; }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand b { font-weight: 600; }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  background: rgba(246,246,248,.7);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}
.site-header.scrolled .nav-links { background: rgba(246,246,248,.9); }
.nav-links a {
  position: relative;
  padding: 8px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--r-pill);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); background: var(--white); box-shadow: var(--sh-xs); }

/* Resources dropdown */
.nav-dropdown { position: relative; display: flex; }
.nav-drop-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav-drop-toggle:hover { color: var(--ink); }
.nav-drop-toggle.active { color: var(--ink); background: var(--white); box-shadow: var(--sh-xs); }
.nav-caret { width: 15px; height: 15px; transition: transform var(--t-fast) var(--ease); }
.nav-dropdown.open .nav-caret,
.nav-dropdown:hover .nav-caret { transform: rotate(180deg); }

.nav-drop-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 190px;
  padding: 7px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--sh-lg, 0 18px 44px rgba(20, 20, 40, 0.14));
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  z-index: 60;
}
/* A hover bridge keeps the menu reachable across the gap below the toggle. */
.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px;
}
.nav-dropdown:hover .nav-drop-menu,
.nav-dropdown.open .nav-drop-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-drop-menu a {
  padding: 9px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 10px;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav-drop-menu a:hover { color: var(--ink); background: rgba(246, 246, 248, 0.9); }
.nav-drop-menu a.is-disabled {
  color: var(--text-faint);
  cursor: default;
  pointer-events: none;
  opacity: 0.55;
}

.nav-cta { display: flex; align-items: center; gap: 12px; }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.nav-toggle span:nth-child(1) { transform: translate(-50%, -6px); }
.nav-toggle span:nth-child(3) { transform: translate(-50%, 6px); }
.nav-toggle.open span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--white);
  padding: calc(var(--header-h) + 28px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}
.mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a.m-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a.m-link span { color: var(--text-faint); font-size: 1rem; }
.mobile-menu a.m-link.active { color: var(--accent-600); }
.mobile-menu .m-group-label {
  margin-top: 14px;
  padding: 0 4px 4px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.mobile-menu a.m-link.m-sub { font-size: 1.28rem; padding: 14px 4px 14px 16px; }
.mobile-menu a.m-link.is-disabled { color: var(--text-faint); opacity: 0.6; pointer-events: none; }
.mobile-menu .m-foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }

/* -------------------------------------------------- *
 * 7. HERO
 * -------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 90px));
  padding-bottom: clamp(60px, 8vw, 110px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(30px, 5vw, 60px);
}
.hero-copy { max-width: 600px; }
.hero .display { margin: 22px 0 24px; }
.hero .lead { max-width: 480px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-meta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}
.hero-meta .stat strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hero-meta .stat span { display: block; font-size: 0.82rem; color: var(--text-faint); }
.hero-meta .vline { width: 1px; height: 36px; background: var(--line-strong); }

/* Ambient orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .5;
  z-index: -1;
  pointer-events: none;
}
.orb-1 { width: 420px; height: 420px; background: radial-gradient(circle, #d8d4ff 0%, transparent 70%); top: -120px; right: -80px; }
.orb-2 { width: 360px; height: 360px; background: radial-gradient(circle, #d4ecff 0%, transparent 70%); bottom: -120px; left: -100px; }
.orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, #e7e3ff 0%, transparent 70%); top: 40%; left: 45%; opacity: .35; }

/* -------------------------------------------------- *
 * 8. HERO CARD (CSS credit card)
 * -------------------------------------------------- */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.card-stage { position: relative; width: min(100%, 420px); aspect-ratio: 1.05/1; perspective: 1400px; }

.credit-card {
  position: absolute;
  width: 340px;
  height: 214px;
  border-radius: 22px;
  padding: 24px;
  color: #fff;
  background: var(--grad-ink);
  box-shadow: var(--sh-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform var(--t) var(--ease);
}
.credit-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 80% 0%, rgba(139,107,255,.45) 0%, transparent 55%),
              radial-gradient(80% 60% at 0% 100%, rgba(91,91,240,.4) 0%, transparent 60%);
  opacity: .9;
}
.credit-card > * { position: relative; z-index: 1; }
.cc-top { display: flex; align-items: center; justify-content: space-between; }
.cc-brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -.02em; }
.cc-chip {
  width: 42px; height: 32px; border-radius: 7px;
  background: linear-gradient(135deg, #f4d98b, #c9a23f);
  position: relative; overflow: hidden;
}
.cc-chip::before { content:""; position:absolute; inset: 6px 8px; border: 1px solid rgba(120,90,10,.4); border-radius: 3px; }
.cc-number { font-family: var(--font-display); font-size: 1.18rem; letter-spacing: .14em; font-weight: 400; }
.cc-bottom { display: flex; align-items: flex-end; justify-content: space-between; }
.cc-bottom .lbl { font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.cc-bottom .val { font-size: .9rem; letter-spacing: .04em; }
.cc-logo { width: 38px; height: 24px; opacity: .92; }

.card-front {
  z-index: 3;
  top: 30px; left: 50%;
  transform: translateX(-50%) rotate(-6deg);
  animation: floatCard 7s var(--ease) infinite;
}
.card-back {
  z-index: 2;
  top: 92px; left: 50%;
  transform: translateX(-50%) rotate(7deg) scale(.96);
  background: linear-gradient(160deg, #2a2a32 0%, #16161b 100%);
  opacity: .96;
  animation: floatCard 7s var(--ease) infinite reverse;
}

@keyframes floatCard {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

/* Floating mini badges around the card */
.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--sh-lg);
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink);
  z-index: 4;
}
.float-badge .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-600); }
.float-badge .ic svg { width: 16px; height: 16px; }
.float-badge small { display: block; font-weight: 400; color: var(--text-faint); font-size: .72rem; }
.fb-1 { top: 4%; left: -6%; animation: floatY 5s var(--ease) infinite; }
.fb-2 { bottom: 12%; right: -4%; animation: floatY 6s var(--ease) infinite .8s; }
.fb-3 { bottom: -2%; left: 6%; animation: floatY 5.5s var(--ease) infinite .4s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* -------------------------------------------------- *
 * 9. MARQUEE / TRUST BAR
 * -------------------------------------------------- */
.trust {
  padding-block: 30px;
  border-block: 1px solid var(--line);
  background: var(--white);
}
.trust-label { text-align: center; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 22px; }
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; gap: 64px; animation: scrollX 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -.02em;
  color: var(--grey-400);
  display: flex; align-items: center; gap: 10px;
  transition: color var(--t-fast) var(--ease);
}
.marquee-item:hover { color: var(--ink); }
.marquee-item svg { width: 22px; height: 22px; }
@keyframes scrollX { to { transform: translateX(-50%); } }

/* -------------------------------------------------- *
 * 10. CARDS & FEATURES
 * -------------------------------------------------- */
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 34px);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: transparent; }

.feature-icon {
  width: 52px; height: 52px;
  border-radius: 15px;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
  margin-bottom: 22px;
  transition: background var(--t) var(--ease), color var(--t) var(--ease), transform var(--t) var(--ease);
}
.feature-icon svg { width: 24px; height: 24px; stroke-width: 1.5; }
.card:hover .feature-icon { background: var(--grad-accent); color: #fff; transform: scale(1.05) rotate(-4deg); border-color: transparent; }
.card h3 { margin-bottom: 11px; }
.card p { font-size: .96rem; }
.card .card-link { margin-top: 20px; display: inline-flex; }

/* Big bento feature */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(16px, 2vw, 22px); }
.bento .b-item { grid-column: span 2; }
.bento .b-wide { grid-column: span 3; }
.bento .b-tall { grid-column: span 2; grid-row: span 2; }
.bento .b-full { grid-column: span 6; }

.feature-tile {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 36px);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
  min-height: 230px;
  display: flex;
  flex-direction: column;
}
.feature-tile:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: transparent; }
.feature-tile.dark { background: var(--grad-ink); color: #fff; border-color: transparent; }
.feature-tile.dark h3 { color: #fff; }
.feature-tile.dark p { color: rgba(255,255,255,.62); }
.feature-tile.accent { background: var(--grad-accent); color: #fff; border-color: transparent; }
.feature-tile.accent h3 { color: #fff; }
.feature-tile.accent p { color: rgba(255,255,255,.78); }
.feature-tile h3 { margin-bottom: 10px; }
.feature-tile p { font-size: .95rem; }
.tile-spacer { flex: 1; }

/* Decorative mini chart inside tiles */
.mini-bars { display: flex; align-items: flex-end; gap: 7px; height: 64px; margin-top: 20px; }
.mini-bars span { flex: 1; background: var(--grad-accent); border-radius: 5px 5px 0 0; opacity: .85; animation: barGrow 1.2s var(--ease) backwards; }
.feature-tile.dark .mini-bars span { background: linear-gradient(180deg, #8b6bff, #5b5bf0); }
@keyframes barGrow { from { height: 4px; opacity: 0; } }

.ring {
  --val: 78;
  width: 96px; height: 96px;
  border-radius: 50%;
  display: grid; place-items: center;
  margin-top: 14px;
  background:
    conic-gradient(var(--accent) calc(var(--val) * 1%), rgba(255,255,255,.16) 0);
  position: relative;
}
.ring::before { content:""; position:absolute; inset: 10px; border-radius: 50%; background: var(--ink-soft); }
.ring b { position: relative; font-family: var(--font-display); font-size: 1.3rem; color: #fff; }

/* -------------------------------------------------- *
 * 11. STEPS / HOW IT WORKS
 * -------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: clamp(20px, 3vw, 30px); }
.step {
  position: relative;
  padding: 30px clamp(22px, 3vw, 32px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.step-num {
  counter-increment: step;
  font-family: var(--font-display);
  font-size: .85rem; font-weight: 600;
  color: var(--accent-600);
  letter-spacing: .1em;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.step-num::before { content: "0" counter(step); font-size: 2.4rem; font-weight: 300; color: var(--grey-300); letter-spacing: -.03em; }
.step h3 { margin-bottom: 8px; }
.step p { font-size: .94rem; }

/* -------------------------------------------------- *
 * 12. STATS BAND
 * -------------------------------------------------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 3vw, 28px); }
.stat-block { text-align: center; padding: 12px; }
.stat-block .num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 300;
  letter-spacing: -.04em;
  color: var(--ink);
  line-height: 1;
}
.stat-block .num .suf { color: var(--accent); font-weight: 400; }
.stat-block .lbl { margin-top: 12px; font-size: .92rem; color: var(--text-muted); }

/* -------------------------------------------------- *
 * 13. SPLIT / SHOWCASE
 * -------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 6vw, 80px); align-items: center; }
.split.reverse .split-visual { order: -1; }
.split-copy .eyebrow { margin-bottom: 16px; }
.split-copy h2 { margin-bottom: 18px; }
.split-list { margin-top: 26px; display: grid; gap: 16px; }
.split-list li { display: flex; gap: 14px; align-items: flex-start; }
.split-list .tick {
  flex-shrink: 0;
  width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-600);
  margin-top: 2px;
}
.split-list .tick svg { width: 15px; height: 15px; }
.split-list strong { display: block; color: var(--ink); font-weight: 600; font-size: .98rem; }
.split-list span { font-size: .92rem; color: var(--text-muted); }

.showcase-panel {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--grad-sheen);
  border: 1px solid var(--line);
  padding: clamp(26px, 4vw, 44px);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
.showcase-panel.dark { background: var(--grad-ink); border-color: transparent; }

/* Phone mockup */
.phone {
  width: 248px; margin-inline: auto;
  background: var(--ink); border-radius: 38px;
  padding: 11px; box-shadow: var(--sh-xl);
  position: relative;
}
.phone::before { content:""; position:absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 86px; height: 7px; background: #000; border-radius: 99px; z-index: 3; }
.phone-screen { background: var(--white); border-radius: 28px; overflow: hidden; aspect-ratio: 9/19; padding: 26px 18px 18px; display: flex; flex-direction: column; }
.ps-top { display: flex; justify-content: space-between; align-items: center; font-size: .7rem; color: var(--text-faint); margin-bottom: 18px; }
.ps-balance { font-size: .76rem; color: var(--text-faint); }
.ps-amount { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; letter-spacing: -.03em; color: var(--ink); margin: 2px 0 16px; }
.ps-card-mini { background: var(--grad-ink); border-radius: 14px; height: 96px; padding: 14px; color:#fff; position: relative; overflow:hidden; margin-bottom: 16px; }
.ps-card-mini::after { content:""; position:absolute; inset:0; background: radial-gradient(80% 80% at 90% 10%, rgba(139,107,255,.5), transparent 60%); }
.ps-card-mini .mini-num { position:relative; font-family: var(--font-display); letter-spacing:.1em; font-size:.82rem; margin-top: 30px; }
.ps-row { display:flex; align-items:center; gap:12px; padding: 11px 0; border-top: 1px solid var(--line); }
.ps-row .pic { width:34px; height:34px; border-radius:10px; background:var(--surface-2); display:grid; place-items:center; color:var(--accent-600); }
.ps-row .pic svg{ width:17px; height:17px; }
.ps-row .pmeta strong { display:block; font-size:.8rem; color:var(--ink); }
.ps-row .pmeta span { font-size:.68rem; color:var(--text-faint); }
.ps-row .pval { margin-left:auto; font-size:.82rem; font-weight:600; color:var(--ink); }
.ps-row .pval.pos { color:#1f9d6b; }

/* -------------------------------------------------- *
 * 14. TESTIMONIALS
 * -------------------------------------------------- */
.tcard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3vw, 34px);
  display: flex; flex-direction: column;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.tcard:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.tcard .quote-mark { font-family: var(--font-display); font-size: 3rem; line-height: .6; color: var(--grey-250); margin-bottom: 14px; }
.tcard p { color: var(--text); font-size: 1.02rem; line-height: 1.6; }
.tcard .t-author { margin-top: 24px; display: flex; align-items: center; gap: 13px; }
.t-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; color: #fff; font-size: .95rem; }
.t-author strong { display: block; font-size: .92rem; color: var(--ink); }
.t-author span { font-size: .8rem; color: var(--text-faint); }
.stars { display: flex; gap: 3px; margin-bottom: 16px; color: #f5b53d; }
.stars svg { width: 16px; height: 16px; }

/* -------------------------------------------------- *
 * 15. CTA BAND (dark, brand presence)
 * -------------------------------------------------- */
.cta-band {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--grad-ink);
  padding: clamp(44px, 7vw, 84px);
  overflow: hidden;
  text-align: center;
}
.cta-band::before {
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(60% 120% at 50% -20%, rgba(139,107,255,.4), transparent 60%),
             radial-gradient(50% 80% at 90% 120%, rgba(91,91,240,.34), transparent 60%);
}
.cta-band > * { position: relative; z-index:1; }
.cta-band .eyebrow { color: #b9b2ff; justify-content: center; }
.cta-band .eyebrow::before { background: #b9b2ff; }
.cta-band h2 { color: #fff; max-width: 640px; margin: 18px auto 16px; }
.cta-band p { color: rgba(255,255,255,.66); max-width: 480px; margin: 0 auto 32px; }
.cta-band .hero-actions { justify-content: center; }

/* grid texture */
.grid-texture::after {
  content:""; position:absolute; inset:0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent);
          mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent);
}

/* -------------------------------------------------- *
 * 15b. POLICY PAGES (admin-authored rich-text prose)
 * -------------------------------------------------- */
.policy-body {
  max-width: 760px;
  margin-inline: auto;
  color: var(--text-muted);
  font-size: 16.5px;
  line-height: 1.7;
}
.policy-body > :first-child { margin-top: 0; }
.policy-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 40px 0 14px; }
.policy-body h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); margin: 32px 0 12px; }
.policy-body h4 { font-size: 1.12rem; margin: 26px 0 10px; }
.policy-body p { margin-bottom: 18px; }
.policy-body ul,
.policy-body ol { margin: 0 0 18px 1.25em; display: grid; gap: 8px; }
.policy-body li { padding-left: 4px; }
.policy-body a { color: var(--accent-600); text-decoration: underline; text-underline-offset: 2px; }
.policy-body a:hover { color: var(--accent-700); }
.policy-body strong { color: var(--text); font-weight: 600; }
.policy-body blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--line-strong);
  color: var(--text-faint);
}
.policy-body hr { border: none; border-top: 1px solid var(--line); margin: 32px 0; }
.policy-body img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.policy-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: .95rem;
}
.policy-body th,
.policy-body td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; }
.policy-body th { background: var(--surface-2); color: var(--ink); font-weight: 600; }

/* -------------------------------------------------- *
 * 16. FOOTER (brand presence)
 * -------------------------------------------------- */
.site-footer {
  position: relative;
  background: var(--grey-50);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.footer-top { padding-block: clamp(56px, 7vw, 90px) clamp(40px, 5vw, 56px); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: clamp(30px, 4vw, 56px);
}
.footer-brand .brand { font-size: 1.5rem; margin-bottom: 18px; }
.footer-brand p { font-size: .95rem; max-width: 300px; margin-bottom: 24px; }
.footer-newsletter { display: flex; gap: 8px; max-width: 330px; }
.footer-newsletter input {
  flex: 1;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--white);
  font-size: .9rem;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.footer-newsletter input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.footer-newsletter button { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.footer-newsletter button:hover { background: var(--accent-600); transform: scale(1.05); }
.footer-newsletter button svg { width: 18px; height: 18px; }

.footer-col h4 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px; font-weight: 600; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: .94rem; color: var(--text-muted); transition: color var(--t-fast) var(--ease), padding-left var(--t-fast) var(--ease); }
.footer-col a:hover { color: var(--ink); padding-left: 4px; }

.social-row { display: flex; gap: 10px; margin-top: 26px; }
.social-row a {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--white); border: 1px solid var(--line);
  color: var(--text-muted);
  transition: all var(--t-fast) var(--ease);
}
.social-row a:hover { color: #fff; background: var(--ink); border-color: var(--ink); transform: translateY(-3px); }
.social-row a svg { width: 18px; height: 18px; }

/* Oversized brand wordmark */
.footer-wordmark {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.05em;
  font-size: clamp(4rem, 19vw, 18rem);
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1px var(--grey-300);
  background: linear-gradient(180deg, var(--grey-200), transparent 90%);
  -webkit-background-clip: text;
  background-clip: text;
  padding-top: 20px;
  user-select: none;
  pointer-events: none;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 22px;
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: space-between;
}
.footer-bottom p { font-size: .86rem; color: var(--text-faint); }
.footer-legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-legal a { font-size: .86rem; color: var(--text-faint); transition: color var(--t-fast) var(--ease); }
.footer-legal a:hover { color: var(--ink); }

/* -------------------------------------------------- *
 * 17. PAGE HERO (inner pages)
 * -------------------------------------------------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(50px, 7vw, 96px));
  padding-bottom: clamp(46px, 6vw, 80px);
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero.center { text-align: center; }
.page-hero.center .eyebrow { justify-content: center; }
.page-hero.center .eyebrow::before { display: none; }
.page-hero .display { margin: 20px 0 22px; }
.page-hero .lead { max-width: 600px; }
.page-hero.center .lead { margin-inline: auto; }

.breadcrumb { display: flex; gap: 9px; align-items: center; font-size: .85rem; color: var(--text-faint); margin-bottom: 6px; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { opacity: .5; }
.page-hero.center .breadcrumb { justify-content: center; }

/* -------------------------------------------------- *
 * 18. ABOUT - values, timeline, team
 * -------------------------------------------------- */
.value-card { text-align: left; }
.value-card .vnum { font-family: var(--font-display); font-size: .8rem; color: var(--accent-600); letter-spacing: .14em; font-weight: 600; margin-bottom: 14px; }

.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { content:""; position:absolute; left: 10px; top: 8px; bottom: 8px; width: 1.5px; background: linear-gradient(var(--accent), var(--line)); }
.tl-item { position: relative; padding: 0 0 38px 44px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content:""; position:absolute; left: 4px; top: 5px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.tl-year { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.1rem; margin-bottom: 6px; }
.tl-item p { font-size: .96rem; }

.team-card { text-align: center; }
.team-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; color:#fff;
  position: relative;
}
.team-card h4 { margin-bottom: 3px; }
.team-card .role { font-size: .86rem; color: var(--accent-600); margin-bottom: 14px; }
.team-card .socials { display: flex; gap: 8px; justify-content: center; }
.team-card .socials a { width: 32px; height: 32px; border-radius: 9px; display:grid; place-items:center; background: var(--surface-2); color: var(--text-muted); transition: all var(--t-fast) var(--ease); }
.team-card .socials a:hover { background: var(--ink); color:#fff; }
.team-card .socials svg { width: 15px; height: 15px; }

/* -------------------------------------------------- *
 * 19. SERVICES - pricing
 * -------------------------------------------------- */
.svc-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px clamp(20px,3vw,32px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.svc-row:hover { transform: translateX(6px); box-shadow: var(--sh-md); border-color: transparent; }
.svc-row .svc-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); transition: all var(--t) var(--ease); }
.svc-row:hover .svc-ic { background: var(--grad-accent); color: #fff; }
.svc-row .svc-ic svg { width: 24px; height: 24px; stroke-width: 1.5; }
.svc-row h3 { font-size: 1.2rem; margin-bottom: 4px; }
.svc-row p { font-size: .92rem; margin: 0; }
.svc-row .svc-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); transition: all var(--t) var(--ease); }
.svc-row:hover .svc-arrow { background: var(--ink); color: #fff; border-color: var(--ink); transform: rotate(-45deg); }

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.5vw, 26px); align-items: stretch; }
.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(28px, 3vw, 38px);
  display: flex; flex-direction: column;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.price-card.featured { background: var(--grad-ink); border-color: transparent; color: #fff; box-shadow: var(--sh-xl); }
.price-card.featured h3, .price-card.featured .price { color: #fff; }
.price-card.featured p, .price-card.featured .pf-list li { color: rgba(255,255,255,.72); }
.price-tag { display: inline-flex; align-self: flex-start; padding: 5px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-600); font-size: .74rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 18px; }
.price-card.featured .price-tag { background: rgba(255,255,255,.14); color: #fff; }
.price-card h3 { margin-bottom: 6px; }
.price-card .pdesc { font-size: .9rem; margin-bottom: 22px; }
.price { font-family: var(--font-display); font-size: 2.8rem; font-weight: 300; letter-spacing: -.04em; color: var(--ink); line-height: 1; }
.price small { font-size: .9rem; color: var(--text-faint); font-weight: 400; letter-spacing: 0; }
.pf-list { display: grid; gap: 13px; margin: 26px 0 28px; }
.pf-list li { display: flex; gap: 11px; align-items: flex-start; font-size: .92rem; color: var(--text-muted); }
.pf-list .pk { flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-600); display: grid; place-items: center; margin-top: 2px; }
.price-card.featured .pf-list .pk { background: rgba(255,255,255,.16); color: #fff; }
.pf-list .pk svg { width: 11px; height: 11px; }
.price-card .btn { margin-top: auto; }

/* -------------------------------------------------- *
 * 20. CONTACT
 * -------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(30px, 5vw, 64px); align-items: start; }

.contact-info { display: grid; gap: 16px; }
.info-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.info-card .ic { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent-600); }
.info-card .ic svg { width: 21px; height: 21px; stroke-width: 1.5; }
.info-card h4 { margin-bottom: 3px; font-size: 1rem; }
.info-card p { font-size: .92rem; margin: 0; }

.form-card {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  padding: clamp(26px, 4vw, 48px);
  box-shadow: none;
}
.form-row { display: grid; grid-template-columns: repeat(var(--row-cols, 2), 1fr); gap: 20px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--font-display); font-size: .84rem; font-weight: 500; color: var(--ink); margin-bottom: 9px; letter-spacing: -.01em; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  background: var(--grey-50);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  box-shadow: inset 0 1px 2px rgba(20,20,30,.03);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--grey-400); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }

/* ===================================================================
   Application form — 12-column smart grid
   Each field declares its width with --col (out of 12) and an optional
   --cs (explicit start column, used to force a clean new row). Short
   inputs get a small span; long ones span the full width. Everything
   collapses to a single column on small screens.
   =================================================================== */
.field-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 20px;
  align-items: start;
}
.field-grid > .field {
  grid-column: var(--cs, auto) / span var(--col, 12);
  margin-bottom: 0;
  min-width: 0;
}
/* Select the same style as text inputs, with a custom caret. */
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b6b76' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
  cursor: pointer;
}

/* Prefix affix (e.g. +91 on the mobile field) */
.input-affix { position: relative; display: flex; align-items: stretch; }
.input-affix .affix {
  display: inline-flex; align-items: center;
  padding: 0 12px;
  font-size: .92rem; font-weight: 600; color: var(--text-muted);
  background: var(--grey-100);
  border: 1.5px solid var(--line-strong);
  border-right: 0;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
}
.input-affix input { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.input-affix:focus-within .affix { border-color: var(--accent); color: var(--accent-700); }
.input-affix:focus-within { border-radius: var(--r-sm); box-shadow: 0 0 0 4px var(--accent-soft); }
.input-affix input:focus { box-shadow: none; }
.field.has-error .input-affix .affix { border-color: var(--danger); }

/* Per-step intro copy — lowers the "form anxiety" by framing each step. */
.step-intro { margin-bottom: 22px; }
.step-intro-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  font-weight: 600; letter-spacing: -.02em; color: var(--ink);
  margin-bottom: 5px;
}
.step-intro-sub { font-size: .9rem; color: var(--text-muted); line-height: 1.5; max-width: 54ch; }

/* Keep the application form at a comfortable, readable width in both the
   public apply page and the in-dashboard application page. (`.container-narrow`
   carries no width of its own, so the form would otherwise stretch to the full
   marketing container and the fields would feel uncomfortably long.) */
.apply-section > .container { max-width: 760px; }
.apply-form { box-shadow: 0 24px 60px -32px rgba(20, 20, 45, .28); }
.form-note { font-size: .82rem; color: var(--text-faint); margin-top: 14px; text-align: center; }
.form-success {
  display: none;
  align-items: center; gap: 12px;
  padding: 16px 18px; margin-bottom: 20px;
  background: #e9faf2; border: 1px solid #b7ebd2; border-radius: var(--r-sm);
  color: #128a5b; font-size: .92rem; font-weight: 500;
}
.form-success.show { display: flex; }
.form-success svg { width: 20px; height: 20px; flex-shrink: 0; }

/* FAQ accordion */
.faq { display: grid; gap: 14px; max-width: 800px; margin-inline: auto; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: box-shadow var(--t) var(--ease), border-color var(--t) var(--ease); }
.faq-item.open { box-shadow: var(--sh-md); border-color: var(--line-strong); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; text-align: left; font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; color: var(--ink); }
.faq-q .pm { position: relative; width: 22px; height: 22px; flex-shrink: 0; }
.faq-q .pm::before, .faq-q .pm::after { content:""; position:absolute; left:50%; top:50%; background: var(--accent-600); border-radius: 2px; transition: transform var(--t-fast) var(--ease); }
.faq-q .pm::before { width: 14px; height: 1.8px; transform: translate(-50%,-50%); }
.faq-q .pm::after { width: 1.8px; height: 14px; transform: translate(-50%,-50%); }
.faq-item.open .faq-q .pm::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--t) var(--ease); }
.faq-a-inner { padding: 0 26px 24px; color: var(--text-muted); font-size: .96rem; }

/* -------------------------------------------------- *
 * 21. BLOG
 * -------------------------------------------------- */
.blog-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: clamp(36px, 5vw, 56px); }
.filter-btn {
  padding: 9px 20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--white);
  font-size: .88rem; font-weight: 500;
  color: var(--text-muted);
  transition: all var(--t-fast) var(--ease);
}
.filter-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.featured-post {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-xl); overflow: hidden;
  margin-bottom: clamp(36px, 5vw, 56px);
  transition: box-shadow var(--t) var(--ease);
}
.featured-post:hover { box-shadow: var(--sh-lg); }
.fp-visual { position: relative; min-height: 320px; background: var(--grad-ink); overflow: hidden; display:grid; place-items:center; }
.fp-visual .fp-art { position:absolute; inset:0; }
.fp-body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.fp-body .post-meta { margin-bottom: 16px; }
.fp-body h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 14px; line-height: 1.12; }
.fp-body p { margin-bottom: 24px; }

.post-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: transparent; }
.post-thumb { aspect-ratio: 16/10; position: relative; overflow: hidden; display: grid; place-items: center; }
.post-thumb .tag { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 5px 12px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); border-radius: 99px; font-size: .72rem; font-weight: 600; color: var(--ink); }
.post-art { position: absolute; inset: 0; }
.post-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--text-faint); }
.post-meta .pill-cat { color: var(--accent-600); font-weight: 600; }
.post-meta .dotsep { width: 3px; height: 3px; border-radius: 50%; background: var(--grey-300); }
.post-body h3 { margin: 12px 0 10px; font-size: 1.2rem; line-height: 1.25; transition: color var(--t-fast) var(--ease); }
.post-card:hover .post-body h3 { color: var(--accent-600); }
.post-body p { font-size: .92rem; flex: 1; }
.post-foot { margin-top: 20px; display: flex; align-items: center; gap: 11px; padding-top: 18px; border-top: 1px solid var(--line); }
.post-foot .av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: .76rem; font-weight: 600; color: #fff; font-family: var(--font-display); }
.post-foot strong { font-size: .82rem; color: var(--ink); font-weight: 500; }
.post-foot span { font-size: .74rem; color: var(--text-faint); display:block; }

/* Decorative post artwork (CSS only) */
.art-mesh { background:
  radial-gradient(circle at 20% 30%, #8b6bff55, transparent 45%),
  radial-gradient(circle at 80% 70%, #5b5bf055, transparent 45%),
  linear-gradient(135deg, #f2f0ff, #e9ecff); }
.art-mesh-2 { background:
  radial-gradient(circle at 75% 25%, #7be0c255, transparent 45%),
  radial-gradient(circle at 25% 80%, #5b9cf055, transparent 45%),
  linear-gradient(135deg, #eef6ff, #e6fff6); }
.art-mesh-3 { background:
  radial-gradient(circle at 30% 70%, #ffb87a55, transparent 45%),
  radial-gradient(circle at 80% 20%, #ff7ba855, transparent 45%),
  linear-gradient(135deg, #fff2ec, #ffeaf2); }
.art-lines { background-image: repeating-linear-gradient(45deg, var(--grey-150) 0 1px, transparent 1px 13px); background-color: var(--grey-50); }
.art-dots { background-image: radial-gradient(var(--grey-300) 1.2px, transparent 1.2px); background-size: 16px 16px; background-color: var(--grey-50); }
.art-grid { background-image: linear-gradient(var(--grey-150) 1px, transparent 1px), linear-gradient(90deg, var(--grey-150) 1px, transparent 1px); background-size: 22px 22px; background-color: var(--white); }

.art-glyph { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 600; font-size: 3rem; color: rgba(255,255,255,.9); letter-spacing: -.03em; }
.fp-glyph { color: rgba(255,255,255,.95); }

/* Newsletter strip */
.news-strip {
  background: var(--grad-ink);
  border-radius: var(--r-xl);
  padding: clamp(36px, 5vw, 60px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.news-strip::before { content:""; position:absolute; inset:0; background: radial-gradient(60% 100% at 50% 0%, rgba(139,107,255,.34), transparent 60%); }
.news-strip > * { position: relative; z-index: 1; }
.news-strip h2 { color: #fff; margin-bottom: 12px; }
.news-strip p { color: rgba(255,255,255,.66); max-width: 440px; margin: 0 auto 28px; }
.news-form { display: flex; gap: 10px; max-width: 440px; margin-inline: auto; }
.news-form input { flex: 1; padding: 15px 20px; border-radius: var(--r-pill); border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08); color: #fff; font-size: .95rem; }
.news-form input::placeholder { color: rgba(255,255,255,.5); }
.news-form input:focus { outline: none; border-color: rgba(255,255,255,.4); }

/* -------------------------------------------------- *
 * 22. REVEAL ANIMATIONS
 * -------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .40s; }
.reveal-x { opacity: 0; transform: translateX(-30px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal-x.in-view { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(.96); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal-scale.in-view { opacity: 1; transform: none; }

/* Hero entrance */
.hero-anim { opacity: 0; transform: translateY(20px); animation: heroIn .9s var(--ease-out) forwards; }
.hero-anim.a1 { animation-delay: .05s; }
.hero-anim.a2 { animation-delay: .15s; }
.hero-anim.a3 { animation-delay: .25s; }
.hero-anim.a4 { animation-delay: .35s; }
.hero-anim.a5 { animation-delay: .5s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* Back to top */
.to-top {
  position: fixed; right: 24px; bottom: 96px; z-index: 80;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--sh-lg);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: all var(--t) var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent-600); transform: translateY(-3px); }
.to-top svg { width: 19px; height: 19px; }

/* PWA install pill — injected by pwa.js only when the app is installable.
   Anchored bottom-left so it never collides with the chatbot/back-to-top. */
.pwa-install-btn {
  position: fixed; left: 24px; bottom: 24px; z-index: 85;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 16px 11px 14px; border: 0; border-radius: 999px;
  font-family: inherit; font-size: .9rem; font-weight: 600; color: #fff;
  background: var(--grad-accent); cursor: pointer;
  box-shadow: 0 12px 28px rgba(91, 91, 240, .34);
  opacity: 0; transform: translateY(16px) scale(.96);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease),
              box-shadow var(--t) var(--ease);
}
.pwa-install-btn.is-visible { opacity: 1; transform: none; }
.pwa-install-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(91, 91, 240, .42); }
.pwa-install-btn svg { width: 18px; height: 18px; }
.pwa-install-btn .pwa-install-x {
  font-style: normal; font-size: 1.05rem; line-height: 1; margin-left: 3px;
  padding: 0 4px; border-radius: 50%; opacity: .75; transition: opacity var(--t);
}
.pwa-install-btn .pwa-install-x:hover { opacity: 1; }
@media (max-width: 560px) {
  .pwa-install-btn { left: 16px; bottom: 16px; }
}

/* Scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2.5px; width: 0; background: var(--grad-accent); z-index: 200; transition: width .1s linear; }

/* -------------------------------------------------- *
 * 23. RESPONSIVE
 * -------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 380px; }
  .hero-copy { max-width: 640px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-visual { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .featured-post { grid-template-columns: 1fr; }
  .fp-visual { min-height: 240px; }
  .bento .b-wide { grid-column: span 6; }
  .bento .b-tall { grid-row: span 1; grid-column: span 3; }
  .bento .b-item { grid-column: span 3; }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .pricing { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .price-card.featured { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: span 2; }
  .stats-band { grid-template-columns: repeat(2, 1fr); gap: 30px 18px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento .b-item, .bento .b-wide, .bento .b-tall, .bento .b-full { grid-column: span 1; }
  .form-row { grid-template-columns: 1fr; }
  /* Application form: collapse the 12-col grid to a single column. */
  .field-grid { row-gap: 18px; }
  .field-grid > .field { grid-column: 1 / -1; }
  .selfie { flex-direction: column; align-items: stretch; text-align: center; }
  .selfie-frame { margin-inline: auto; }
  .selfie-actions { justify-content: center; }
  .svc-row { grid-template-columns: auto 1fr; }
  .svc-row .svc-arrow { display: none; }
  .hero-meta { gap: 18px; }
  .hero-meta .vline { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .news-form { flex-direction: column; }
  .news-form .btn { width: 100%; }
  .credit-card { width: 290px; height: 184px; }
  .float-badge { font-size: .76rem; padding: 9px 12px; }
  .fb-1 { left: -2%; }
  .fb-2 { right: 0; }
}

@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .stats-band { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-x, .reveal-scale, .hero-anim { opacity: 1 !important; transform: none !important; }
}

/* -------------------------------------------------- *
 * 24. DYNAMIC APPLY FORM
 * -------------------------------------------------- */
/* Required marker + inline validation */
.field .req { color: var(--accent-600); font-weight: 600; }
.field-error { display: block; margin-top: 6px; font-size: .8rem; color: var(--danger); min-height: 0; }
.field.has-error input,
.field.has-error textarea,
.field.has-error select { border-color: var(--danger); background: var(--danger-soft); box-shadow: 0 0 0 4px rgba(229,72,77,.12); }

.form-error-banner {
  display: none; align-items: center; gap: 12px;
  padding: 14px 18px; margin-bottom: 20px;
  background: var(--danger-soft); border: 1px solid #f4c7c8; border-radius: var(--r-sm);
  color: var(--danger); font-size: .92rem; font-weight: 500;
}
.form-error-banner:not([hidden]) { display: flex; }

/* Checkbox line */
.field-check .check-line { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.field-check .check-line input { width: 18px; height: 18px; accent-color: var(--accent); }

/* Selectable pills (Yes/No + working status) */
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-row.seg { gap: 10px; }
.radio-pill {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill);
  background: var(--grey-50); font-size: .92rem; font-weight: 500; color: var(--text-muted); cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.radio-pill:hover { border-color: var(--grey-400); color: var(--ink); }
.radio-pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.radio-pill:has(input:checked) {
  border-color: var(--accent); background: var(--accent-soft); color: var(--accent-700);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.radio-pill:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--accent-soft); }
/* Working-status pills stretch to share the row evenly on wider screens. */
.radio-row.seg .radio-pill { flex: 1 1 130px; }

/* File dropzone */
.file-input { display: none; }
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center;
  padding: 30px 20px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-md);
  background: linear-gradient(var(--grey-50), var(--grey-50)) padding-box;
  color: var(--text-muted); cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.dropzone:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-700); }
.dropzone:active { transform: scale(.995); }
.dropzone .dz-ic {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--white); color: var(--accent-600);
  border: 1px solid var(--line); box-shadow: var(--sh-xs);
}
.dropzone:hover .dz-ic { color: var(--accent-700); border-color: var(--accent); }
.dropzone .dz-text { font-weight: 600; color: var(--ink); }
.dropzone small { color: var(--text-faint); font-size: .8rem; }
.field.has-file .dropzone { border-style: solid; border-color: var(--success); background: var(--success-soft); }

.file-list { margin-top: 10px; display: grid; gap: 6px; }
.file-list li {
  display: flex; align-items: center; gap: 8px;
  font-size: .84rem; color: var(--text-muted);
  padding: 9px 12px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--r-sm);
}
.file-list li::before {
  content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--success-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23127a54' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Live selfie */
.selfie {
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(16px, 3vw, 28px);
  padding: clamp(16px, 2.4vw, 22px);
  background: var(--grey-50); border: 1px solid var(--line); border-radius: var(--r-md);
}
.selfie-side { flex: 1 1 240px; display: grid; gap: 14px; }
.selfie-frame {
  flex: none;
  width: 176px; height: 176px; border-radius: 50%; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  display: grid; place-items: center; position: relative;
  box-shadow: 0 10px 30px rgba(20,20,40,.10);
}
.selfie-frame > * { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; }
.selfie-placeholder { display: grid; place-items: center; color: var(--text-faint); }
.selfie-video { transform: scaleX(-1); }
.selfie-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* GPS */
.gps-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.gps-row .chip .dot { background: #2ecc8f; }

/* Apply form note lock */
.form-card .form-note { margin-top: 18px; }

/* Apply page — tighten spacing between the hero and the form (matches contact) */
[data-page="apply"] .apply-hero { padding-bottom: clamp(14px, 2vw, 24px); }
[data-page="apply"] .apply-section { padding-top: clamp(14px, 2vw, 22px); }
.apply-card-title { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 8px; }
.apply-card-sub { margin-bottom: 26px; }

/* -------------------------------------------------- *
 * 25. AUTH PAGES (login / signup / recovery)
 * -------------------------------------------------- */
.auth-hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 84px));
  padding-bottom: clamp(48px, 7vw, 104px);
}
.auth-hero .container { position: relative; z-index: 1; }

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: clamp(40px, 6vw, 84px);
  align-items: flex-start;
}
.auth-panel-brand .display { font-size: clamp(2.3rem, 4.4vw, 3.9rem); }
.auth-panel-brand .lead { max-width: 480px; }

/* Brand-side floating card (reuses the .credit-card motif) */
.auth-card-stage {
  position: relative;
  max-width: 430px;
  height: 300px;
  margin-top: clamp(22px, 3vw, 38px);
}
.auth-card-stage .credit-card { width: 320px; height: 200px; }
.auth-card-stage .fb-2 { right: 2%; bottom: 4%; }

.auth-points { display: grid; gap: 12px; margin-top: clamp(18px, 2.6vw, 30px); }
.auth-points li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .93rem; color: var(--text-muted); max-width: 460px;
}
.auth-points svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--accent-600); }

/* Form card */
.auth-card { padding: clamp(24px, 3.4vw, 42px); }
.auth-card-title { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-bottom: 6px; }
.auth-card-sub { font-size: .95rem; margin-bottom: 22px; }

.auth-step[hidden] { display: none !important; }
.auth-step.step-in { animation: authStepIn .45s var(--ease-out); }
@keyframes authStepIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Method tabs (segmented pill) */
.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 5px; margin-bottom: 22px;
  background: var(--grey-100); border-radius: var(--r-pill);
}
.auth-tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 12px; border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--text-muted);
  font-family: var(--font-body); font-size: .9rem; font-weight: 500;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.auth-tab svg { width: 16px; height: 16px; }
.auth-tab.is-active { background: var(--white); color: var(--ink); box-shadow: var(--sh-xs); }
.auth-tab:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--accent-soft); }

/* Label row with inline "Forgot password?" */
.auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.auth-label-row label { margin-bottom: 9px; }

.auth-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--accent-600); font-family: var(--font-body);
  font-size: .84rem; font-weight: 500; text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
.auth-link:hover { color: var(--accent-700); text-decoration: underline; }

/* Phone input with fixed country-code prefix */
.field-prefix { display: flex; }
.field-prefix .prefix {
  display: flex; align-items: center; padding: 0 15px;
  background: var(--grey-100); color: var(--text-muted);
  border: 1.5px solid var(--line-strong); border-right: 0;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
  font-size: .95rem; font-weight: 500; white-space: nowrap;
}
.field-prefix input { border-radius: 0 var(--r-sm) var(--r-sm) 0; min-width: 0; flex: 1; }
.field-prefix input:focus { box-shadow: none; border-color: var(--line-strong); background: var(--white); }

.auth-note { margin-top: 14px; text-align: center; font-size: .8rem; color: var(--text-faint); }

/* "or continue with" divider */
.auth-divider {
  display: flex; align-items: center; gap: 14px; margin: 22px 0;
  color: var(--text-faint); font-size: .74rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em;
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Social buttons */
.auth-social-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.social-slot { display: flex; align-items: center; justify-content: center; min-height: 44px; min-width: 0; }
.btn-social {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; min-height: 44px; padding: 10px 16px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: var(--white); color: var(--ink);
  font-family: var(--font-body); font-size: .92rem; font-weight: 500;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.btn-social svg { width: 18px; height: 18px; }
.btn-social:hover { transform: translateY(-2px); box-shadow: var(--sh-sm); border-color: var(--accent); }
.btn-social:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
/* Icon-only disabled variant (e.g. Google when sign-in is unavailable) */
.btn-social-icon svg { width: 20px; height: 20px; }

.auth-alt { margin-top: 20px; text-align: center; font-size: .9rem; color: var(--text-muted); }
.auth-alt a { color: var(--accent-600); font-weight: 600; text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; }

/* OTP step chrome */
.auth-back {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 0; margin-bottom: 18px;
  color: var(--text-muted); font-family: var(--font-body);
  font-size: .86rem; font-weight: 500; cursor: pointer;
  transition: color var(--t-fast) var(--ease);
}
.auth-back svg { width: 16px; height: 16px; }
.auth-back:hover { color: var(--ink); }

.otp-resend { margin-top: 16px; text-align: center; font-size: .86rem; color: var(--text-muted); }
.otp-resend b { font-family: var(--font-display); font-weight: 600; color: var(--ink); }

.auth-restart {
  margin-top: 18px; padding: 18px; text-align: center;
  background: var(--grey-50); border: 1px solid var(--line); border-radius: var(--r-md);
}
.auth-restart p { margin-bottom: 12px; font-size: .9rem; }

/* Password rule hints (signup / reset) */
.pw-hints { display: grid; gap: 4px; margin-top: 8px; }
.pw-hints li { position: relative; padding-left: 18px; font-size: .78rem; color: var(--text-faint); }
.pw-hints li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--grey-300);
  transition: background var(--t-fast) var(--ease);
}
.pw-hints li.ok { color: #128a5b; }
.pw-hints li.ok::before { background: #2ecc8f; }

/* Signup: keep the whole form (incl. the submit button) inside the viewport on
   desktop so the user never has to scroll to reach "Create account". Password +
   confirm sit side-by-side and vertical rhythm is tightened. Scoped to the
   two-column desktop layout; the mobile stacked layout is left untouched. */
@media (min-width: 861px) {
  body[data-page="signup"] .auth-hero {
    padding-top: calc(var(--header-h) + clamp(20px, 3vw, 40px));
    padding-bottom: clamp(28px, 4vw, 56px);
  }
  body[data-page="signup"] .auth-card { padding: clamp(22px, 2.4vw, 32px); }
  body[data-page="signup"] .auth-card-sub { margin-bottom: 16px; }
  body[data-page="signup"] [data-signup-form] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    row-gap: 14px;
    align-items: start;
  }
  body[data-page="signup"] [data-signup-form] > * { grid-column: 1 / -1; }
  body[data-page="signup"] [data-signup-form] .field { margin-bottom: 0; }
  body[data-page="signup"] [data-field="password"] { grid-column: 1 / 2; }
  body[data-page="signup"] [data-field="password2"] { grid-column: 2 / 3; }
  body[data-page="signup"] .pw-hints { margin-top: 6px; }
  body[data-page="signup"] .auth-note { margin-top: 10px; }
  body[data-page="signup"] .auth-alt { margin-top: 14px; }
}

/* Single-card recovery layout */
.auth-single { max-width: 520px; margin: 0 auto; }
.auth-single-head { text-align: center; margin-bottom: 28px; }
.auth-single-head .lead { margin-top: 12px; }

/* -------------------------------------------------- *
 * 26. OTP INPUT (segmented 6-digit code)
 * -------------------------------------------------- */
.otp-inputs { display: flex; justify-content: center; gap: 10px; margin-bottom: 8px; }
.otp-inputs input {
  width: 48px; height: 56px; padding: 0; text-align: center;
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--ink);
  background: var(--grey-50); border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.otp-inputs input:focus {
  outline: none; border-color: var(--accent); background: var(--white);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.otp-inputs.has-error input {
  border-color: var(--danger); background: var(--danger-soft);
}
.otp-inputs.shake { animation: authShake .4s var(--ease); }
@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
.otp-error { display: block; text-align: center; min-height: 18px; margin-bottom: 10px; }

/* -------------------------------------------------- *
 * 27. DASHBOARD
 * -------------------------------------------------- */
.dash-hero { padding-bottom: clamp(30px, 4vw, 54px); }

.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.dash-card { display: flex; flex-direction: column; }
.dash-card h3 { margin-bottom: 4px; }
.dash-meta { font-size: .88rem; color: var(--text-faint); margin-bottom: 16px; }

.dash-profile { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.dash-profile h3 { margin-bottom: 2px; }
.dash-profile .dash-meta { margin-bottom: 0; }
.dash-avatar {
  width: 56px; height: 56px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-accent); color: #fff;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600;
  box-shadow: var(--sh-accent);
}

.dash-list { display: grid; }
.dash-list li {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 12px; padding: 12px 0;
  border-top: 1px solid var(--line); font-size: .92rem;
}
.dash-list li:first-child { border-top: 0; padding-top: 4px; }
.dash-label { color: var(--text-muted); font-weight: 500; }
.dash-value {
  display: inline-flex; align-items: center; justify-content: flex-end;
  flex-wrap: wrap; gap: 8px; color: var(--ink); text-align: right;
  word-break: break-word; min-width: 0;
}

.badge-ok, .badge-muted {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: var(--r-pill);
  font-size: .72rem; font-weight: 600; white-space: nowrap;
}
.badge-ok { background: #e9faf2; border: 1px solid #b7ebd2; color: #128a5b; }
.badge-ok .dot { width: 6px; height: 6px; border-radius: 50%; background: #2ecc8f; }
.badge-muted { background: var(--grey-100); border: 1px solid var(--line-strong); color: var(--text-muted); }

/* Dark accent tile (reuses the CTA-band ink treatment) */
.dash-cta { background: var(--grad-ink); border-color: transparent; }
.dash-cta h3 { color: #fff; }
.dash-cta .dash-meta { color: rgba(255, 255, 255, .65); }
.dash-cta .btn { align-self: flex-start; margin-top: auto; }

.dash-card form { margin-top: auto; }

/* ---------- auth + dashboard responsive ---------- */
@media (max-width: 1024px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 40px; }
}

@media (max-width: 860px) {
  .auth-shell { grid-template-columns: 1fr; gap: 30px; align-items: start; }
  .auth-panel-brand { max-width: 560px; }
  .auth-panel-brand .lead { margin-bottom: 0; }
  .auth-card-stage, .auth-points { display: none; }
  .auth-hero { padding-top: calc(var(--header-h) + clamp(28px, 5vw, 48px)); padding-bottom: clamp(40px, 6vw, 64px); }
  .dash-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .auth-social-row { grid-template-columns: 1fr; }
  .otp-inputs input { width: 44px; height: 52px; }
}

@media (max-width: 420px) {
  .auth-tabs .auth-tab { font-size: .84rem; padding: 9px 8px; }
  .otp-inputs { gap: 7px; }
  .otp-inputs input { width: 40px; height: 48px; font-size: 1.25rem; }
  .dash-list li { flex-direction: column; align-items: flex-start; }
  .dash-value { justify-content: flex-start; text-align: left; }
}

/* -------------------------------------------------- *
 * 28. CHATBOT WIDGET ("Cee", site-wide assistant)
 * -------------------------------------------------- */
.chatbot { position: fixed; z-index: 120; }

/* Launcher — the Lottie sits inside a gradient pill in the corner */
.chatbot-launcher {
  position: fixed; right: 24px; bottom: 24px; z-index: 120;
  width: 64px; height: 64px; border-radius: var(--r-pill);
  background: var(--grad-accent); box-shadow: var(--sh-accent), var(--sh-lg);
  display: grid; place-items: center; cursor: pointer;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.chatbot-launcher:hover { transform: translateY(-3px); }
.chatbot-launcher.is-open { transform: scale(.85); opacity: 0; pointer-events: none; }
.chatbot-lottie { width: 46px; height: 46px; display: block; }
.chatbot-lottie svg path { stroke: #fff; }

/* Panel */
.chatbot-panel {
  position: fixed; right: 24px; bottom: 24px; z-index: 300;
  width: 380px; max-width: calc(100vw - 32px);
  height: min(620px, calc(100vh - 120px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); box-shadow: var(--sh-xl);
  transform-origin: bottom right;
  animation: chatIn var(--t-fast) var(--ease-out);
}
@keyframes chatIn {
  from { opacity: 0; transform: translateY(14px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
.chatbot-panel[hidden] { display: none; }

.chatbot-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 16px 18px;
  background: var(--grad-ink); color: #fff;
}
.chatbot-ident { display: flex; align-items: center; gap: 12px; }
.chatbot-avatar {
  width: 40px; height: 40px; border-radius: var(--r-pill);
  background: var(--grad-accent); display: grid; place-items: center; flex-shrink: 0;
}
.chatbot-avatar svg { width: 22px; height: 22px; }
.chatbot-name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: #fff; }
.chatbot-status { font-size: .78rem; color: rgba(255,255,255,.66); display: flex; align-items: center; gap: 6px; margin-top: 1px; }
.chatbot-status .dot { width: 7px; height: 7px; border-radius: 50%; background: #2ecc8f; box-shadow: 0 0 0 3px rgba(46,204,143,.22); }
.chatbot-close {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,.08); transition: background var(--t-fast) var(--ease);
}
.chatbot-close:hover { background: rgba(255,255,255,.18); }
.chatbot-close svg { width: 18px; height: 18px; }

.chatbot-body {
  flex: 1; overflow-y: auto; padding: 20px 18px;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--grey-50);
}
.chatbot-body::-webkit-scrollbar { width: 8px; }
.chatbot-body::-webkit-scrollbar-thumb { background: var(--grey-300); border-radius: 999px; }

.chat-msg { max-width: 84%; font-size: .95rem; line-height: 1.55; }
.chat-msg .bubble {
  padding: 11px 15px; border-radius: var(--r-lg);
  white-space: pre-wrap; word-wrap: break-word;
}
.chat-msg.bot { align-self: flex-start; }
.chat-msg.bot .bubble {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-bottom-left-radius: var(--r-sm);
}
.chat-msg.user { align-self: flex-end; }
.chat-msg.user .bubble {
  background: var(--grad-accent); color: #fff;
  border-bottom-right-radius: var(--r-sm);
}

/* CTA button inside a bot message (never a raw URL) */
.chat-cta { margin-top: 10px; }
.chat-cta .btn { font-size: .9rem; }

/* Typing indicator */
.chat-typing { display: flex; gap: 4px; padding: 12px 15px; }
.chat-typing span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--grey-400);
  animation: chatDot 1s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatDot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* Input row — 16px min font so mobile browsers never zoom on focus */
.chatbot-input {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-top: 1px solid var(--line); background: var(--surface);
}
.chatbot-input input {
  flex: 1; min-width: 0; font-family: var(--font-body); font-size: 16px;
  padding: 12px 16px; border: 1px solid var(--line-strong);
  border-radius: var(--r-pill); background: var(--grey-50); color: var(--text);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.chatbot-input input::placeholder { color: var(--text-faint); }
.chatbot-input input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.chatbot-send {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.chatbot-send:hover { background: var(--accent-600); transform: scale(1.05); }
.chatbot-send:disabled { opacity: .5; pointer-events: none; }
.chatbot-send svg { width: 19px; height: 19px; }

/* Full-screen on mobile */
@media (max-width: 680px) {
  .chatbot-panel {
    right: 0; bottom: 0; top: 0; left: 0;
    width: 100%; max-width: 100%; height: 100%;
    border: none; border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chatbot-panel { animation: none; }
  .chat-typing span { animation: none; }
}

.db-body { background: var(--grey-100); }

.db-shell { display: flex; gap: 20px; min-height: 100vh; padding: 16px; }

.db-sidebar {
  position: sticky; top: 16px; flex: none; width: 248px;
  height: calc(100vh - 32px); overflow-y: auto;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-sm);
  padding: 20px 14px 16px; z-index: 90;
}
.db-sidebar { scrollbar-width: none; -ms-overflow-style: none; }
.db-sidebar::-webkit-scrollbar { width: 0; height: 0; }
.db-sidebar .brand { padding: 0 8px; margin-bottom: 22px; }

.db-nav { display: grid; gap: 4px; }
.db-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 14px;
  font-size: .93rem; font-weight: 500; color: var(--text-muted);
  white-space: nowrap;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.db-nav a svg { width: 20px; height: 20px; flex: none; }
.db-nav a:hover { background: var(--grey-100); color: var(--ink); }
.db-nav a.is-active { background: var(--grad-accent); color: #fff; font-weight: 600; box-shadow: var(--sh-accent); }

/* Highlighted Creators Program CTA, pinned to the bottom of the sidebar */
.db-nav-cta {
  margin-top: auto;
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: 16px;
  color: #fff; background: var(--grad-accent);
  box-shadow: var(--sh-accent);
  position: relative; overflow: hidden;
  animation: dbCtaPulse 2.8s var(--ease) infinite;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.db-nav-cta::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: skewX(-18deg); animation: dbCtaShine 3.4s var(--ease) infinite;
}
.db-nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(91, 91, 240, .5); }
.db-nav-cta.is-active { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent), var(--sh-accent); animation: none; }
.db-nav-cta-icon { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); }
.db-nav-cta-icon svg { width: 20px; height: 20px; }
.db-nav-cta-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.db-nav-cta-txt b { font-size: .9rem; font-weight: 600; white-space: nowrap; }
.db-nav-cta-txt small { font-size: .72rem; opacity: .85; white-space: nowrap; }
.db-nav-cta-arrow { width: 18px; height: 18px; flex: none; margin-left: auto; transition: transform var(--t-fast) var(--ease); }
.db-nav-cta:hover .db-nav-cta-arrow { transform: translateX(3px); }
@keyframes dbCtaPulse {
  0%, 100% { box-shadow: var(--sh-accent); }
  50% { box-shadow: 0 10px 30px rgba(91, 91, 240, .55); }
}
@keyframes dbCtaShine {
  0% { left: -60%; } 55%, 100% { left: 130%; }
}

.db-refer {
  margin-top: auto; padding: 20px 16px 16px; text-align: center;
  background: var(--grey-50); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.db-refer svg { width: 88px; height: 74px; margin: 0 auto 10px; }
.db-refer h4 { font-size: .95rem; color: var(--accent-600); margin-bottom: 4px; }
.db-refer p { font-size: .78rem; color: var(--text-muted); line-height: 1.45; margin-bottom: 14px; }
.db-refer .btn { width: auto; padding: 11px 22px; font-size: .84rem; gap: 8px; }
.db-refer .btn svg { width: 15px; height: 15px; }

.db-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* position + z-index give the topbar its own stacking context so the user
   dropdown (#dbUserMenu) always paints above the content cards below it,
   while staying under the mobile sidebar/scrim (z-index 85+). */
.db-topbar { display: flex; align-items: center; gap: 14px; padding-top: 4px; position: relative; z-index: 20; }
.db-topbar-brand { display: none; }
.db-burger {
  display: none; flex: none; width: 42px; height: 42px;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px;
}
.db-burger span { width: 18px; height: 2px; border-radius: 2px; background: var(--ink); }
.db-heading h1 { font-size: clamp(1.3rem, 2vw, 1.65rem); letter-spacing: -0.02em; }
.db-heading p { font-size: .9rem; color: var(--text-muted); margin-top: 2px; }
.db-top-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.db-score-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line-strong);
  color: var(--accent-600); font-size: .88rem; font-weight: 600; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.db-score-btn svg { width: 18px; height: 18px; flex: none; }
.db-score-btn:hover { transform: translateY(-2px); box-shadow: var(--sh-sm); }
.db-bell {
  position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line-strong);
  display: grid; place-items: center; color: var(--ink);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.db-bell:hover { transform: translateY(-2px); box-shadow: var(--sh-sm); }
.db-bell svg { width: 20px; height: 20px; }
.db-bell-badge {
  position: absolute; top: -4px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: var(--r-pill); background: var(--grad-accent); border: 2px solid var(--grey-100);
  color: #fff; font-size: .64rem; font-weight: 600; line-height: 1;
  display: grid; place-items: center;
}
.db-user { position: relative; }
.db-user-btn { display: flex; align-items: center; gap: 10px; padding: 3px; border-radius: var(--r-pill); }
.db-user-avatar {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad-accent); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
}
.db-user-name { font-size: .9rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.db-user-btn > svg { width: 16px; height: 16px; color: var(--text-muted); }
.db-user-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 190px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--sh-lg); z-index: 95;
}
.db-user-menu a, .db-user-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px;
  border-radius: var(--r-sm); font-size: .88rem; font-weight: 500; color: var(--text); text-align: left;
  transition: background var(--t-fast) var(--ease);
}
.db-user-menu a:hover, .db-user-menu button:hover { background: var(--grey-100); }
.db-user-menu svg { width: 17px; height: 17px; flex: none; }
.db-user-menu .db-logout { color: var(--danger); }

.db-banner {
  display: grid; grid-template-columns: minmax(230px, .95fr) auto minmax(0, 250px);
  align-items: center; gap: clamp(18px, 3vw, 40px);
  padding: clamp(20px, 2.5vw, 30px) clamp(20px, 2.5vw, 34px);
  background: linear-gradient(115deg, var(--white) 35%, var(--accent-soft) 100%);
  border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-sm);
}
.db-banner h2 { font-size: 1.32rem; font-weight: 600; margin-bottom: 6px; }
.db-banner-copy p { font-size: .9rem; color: var(--text-muted); margin-bottom: 18px; max-width: 36ch; }

.db-steps { display: flex; align-items: flex-start; }
.db-step {
  position: relative; flex: 1; min-width: 108px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 0 10px;
}
.db-step:not(:first-child)::before {
  content: ""; position: absolute; top: 16px;
  left: calc(-50% + 28px); width: calc(100% - 56px); height: 2px;
  background: var(--grey-250);
}
.db-step.done:not(:first-child)::before,
.db-step.current:not(:first-child)::before { background: #2ecc8f; }
.db-step-ic {
  position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 9px;
  background: var(--grey-200); color: var(--grey-500);
}
.db-step-ic svg { width: 16px; height: 16px; }
.db-step.done .db-step-ic { background: #2ecc8f; color: #fff; box-shadow: 0 6px 14px rgba(46,204,143,.35); }
.db-step.current .db-step-ic { background: var(--grad-accent); color: #fff; box-shadow: var(--sh-accent); }
.db-step b { font-family: var(--font-body); font-size: .8rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.db-step i { font-style: normal; font-size: .72rem; font-weight: 600; margin-top: 3px; color: var(--text-faint); }
.db-step.done i { color: var(--success); }
.db-step.current i { color: var(--accent-600); }
.db-banner-art { justify-self: end; }
.db-banner-art svg { width: clamp(150px, 16vw, 220px); height: auto; }

.db-grid {
  display: grid; align-items: start; gap: 20px;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .98fr) minmax(0, 1.08fr);
}
.db-col { display: grid; gap: 20px; min-width: 0; }

.db-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-xs);
  padding: clamp(18px, 1.8vw, 24px); min-width: 0;
}
.db-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.db-card h3 { font-size: 1.05rem; letter-spacing: -0.015em; }
.db-link { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; color: var(--accent-600); white-space: nowrap; }
.db-link svg { width: 15px; height: 15px; transition: transform var(--t-fast) var(--ease); }
.db-link:hover svg { transform: translateX(3px); }
.db-chip {
  display: inline-flex; align-items: center; padding: 4px 12px;
  border-radius: var(--r-pill); background: var(--accent-soft);
  color: var(--accent-700); font-size: .74rem; font-weight: 600;
}

.db-loan-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.db-loan-top .db-chip { margin-bottom: 18px; }
.db-amount-label { display: block; font-size: .8rem; color: var(--text-muted); }
.db-amount {
  font-family: var(--font-display); font-size: clamp(1.55rem, 2.2vw, 1.95rem);
  font-weight: 600; letter-spacing: -0.02em; color: var(--ink); line-height: 1.15;
}
.db-loan-art {
  flex: none; width: 96px; height: 96px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--grey-100) 100%);
  display: grid; place-items: center; color: var(--accent-600);
}
.db-loan-art svg { width: 42px; height: 42px; }
.db-loan-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 16px; }
.db-loan-stats span { display: block; font-size: .78rem; color: var(--text-muted); margin-bottom: 3px; }
.db-loan-stats b { font-family: var(--font-display); font-size: .98rem; font-weight: 600; color: var(--ink); }
.db-progress { height: 6px; border-radius: var(--r-pill); background: var(--grey-150); overflow: hidden; }
.db-progress i { display: block; height: 100%; width: 35%; border-radius: inherit; background: var(--grad-accent); }
.db-loan-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.db-loan-foot small { font-size: .8rem; color: var(--text-faint); }

.db-due { display: block; margin-top: 4px; font-size: .82rem; font-weight: 600; color: var(--danger); }
.db-pay-rows { margin: 18px 0; }
.db-pay-rows li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .88rem; }
.db-pay-rows li span { color: var(--text-muted); }
.db-pay-rows li b { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.db-repay .btn + .btn { margin-top: 10px; }

.db-quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.db-qa {
  display: grid; justify-items: center; gap: 10px;
  padding: 20px 12px; border-radius: var(--r-md); text-align: center;
  font-size: .8rem; font-weight: 600; color: var(--ink); line-height: 1.3;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.db-qa:hover { transform: translateY(-3px); box-shadow: var(--sh-sm); }
.db-qa .ic {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--surface); box-shadow: var(--sh-xs);
  display: grid; place-items: center;
}
.db-qa .ic svg { width: 22px; height: 22px; }
.db-qa.t-grey { background: var(--grey-100); }
.db-qa.t-grey .ic { color: var(--accent-600); }
.db-qa.t-green { background: var(--success-soft); }
.db-qa.t-green .ic { color: var(--success); }
.db-qa.t-gold { background: var(--gold-soft); }
.db-qa.t-gold .ic { color: var(--gold); }
.db-qa.t-rose { background: var(--danger-soft); }
.db-qa.t-rose .ic { color: var(--danger); }

.db-offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.db-offer {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 18px 70px 18px 18px; border-radius: var(--r-md);
}
.db-offer h4 { font-size: .98rem; margin-bottom: 4px; }
.db-offer p { font-size: .8rem; color: var(--text-muted); line-height: 1.45; }
.db-upto { display: block; margin-top: 12px; font-size: .74rem; color: var(--text-faint); }
.db-offer-amt { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--ink); }
.db-offer-btn {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; padding: 8px 15px; border-radius: var(--r-pill);
  border: 1.5px solid currentColor; background: transparent;
  font-size: .78rem; font-weight: 600;
  transition: transform var(--t-fast) var(--ease);
}
.db-offer-btn svg { width: 14px; height: 14px; }
.db-offer-btn:hover { transform: translateY(-2px); }
.db-offer.t-green { background: var(--success-soft); }
.db-offer.t-green h4, .db-offer.t-green .db-offer-btn { color: var(--success-strong); }
.db-offer.t-violet { background: var(--accent-soft); }
.db-offer.t-violet h4, .db-offer.t-violet .db-offer-btn { color: var(--accent-700); }
.db-offer-art { position: absolute; right: 12px; bottom: 16px; width: 56px; height: 56px; }

.db-act-list li { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.db-act-list li:first-child { border-top: 0; padding-top: 2px; }
.db-act-ic {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grey-100); color: var(--text-muted);
}
.db-act-ic svg { width: 16px; height: 16px; }
.db-act-ic.ok { background: var(--success-soft); color: var(--success); }
.db-act-list b { display: block; font-size: .87rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.db-act-list time { font-size: .75rem; color: var(--text-faint); }

.db-help-sub { font-size: .84rem; color: var(--text-muted); margin: -10px 0 12px; }
.db-help-list a { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.db-help-list a:first-child { border-top: 0; }
.db-help-ic {
  flex: none; width: 38px; height: 38px; border-radius: 12px;
  background: var(--grey-100); color: var(--accent-600);
  display: grid; place-items: center;
}
.db-help-ic svg { width: 18px; height: 18px; }
.db-help-list .txt { flex: 1; min-width: 0; }
.db-help-list b { display: block; font-size: .87rem; font-weight: 600; color: var(--ink); }
.db-help-list span { font-size: .75rem; color: var(--text-faint); }
.db-help-list .chev { flex: none; width: 16px; height: 16px; color: var(--grey-400); transition: transform var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.db-help-list a:hover .chev { transform: translateX(3px); color: var(--accent-600); }
.db-chat-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  margin-top: 14px; padding: 14px 16px; border-radius: var(--r-md);
  background: var(--accent-soft); text-align: left;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.db-chat-row:hover { transform: translateY(-2px); box-shadow: var(--sh-sm); }
.db-chat-row b { display: block; font-size: .88rem; font-weight: 600; color: var(--accent-700); }
.db-chat-row span { font-size: .75rem; color: var(--text-muted); }
.db-chat-row > svg { flex: none; width: 24px; height: 24px; margin-left: auto; color: var(--accent-600); }

.db-secure {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 16px 22px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-xs);
}
.db-secure-left { display: flex; align-items: center; gap: 12px; }
.db-secure-ic {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-600);
  display: grid; place-items: center;
}
.db-secure-ic svg { width: 19px; height: 19px; }
.db-secure b { display: block; font-size: .9rem; font-weight: 600; color: var(--accent-700); }
.db-secure p { font-size: .8rem; color: var(--text-muted); }

.db-scrim {
  position: fixed; inset: 0; z-index: 85;
  background: rgba(17,17,20,.45); opacity: 0; pointer-events: none;
  transition: opacity var(--t-fast) var(--ease);
}
.db-scrim.is-show { opacity: 1; pointer-events: auto; }

/* ---------- entrance animations ---------- */
@keyframes dbRise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes dbFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes dbSlideX {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: none; }
}
.db-sidebar { animation: dbSlideX .55s var(--ease-out) both; }
.db-topbar  { animation: dbFade .5s var(--ease-out) both; }
.db-banner  { animation: dbRise .6s var(--ease-out) .06s both; }
.db-secure  { animation: dbRise .6s var(--ease-out) .1s both; }

.db-nav a { animation: dbSlideX .5s var(--ease-out) both; }
.db-nav a:nth-child(1) { animation-delay: .10s; }
.db-nav a:nth-child(2) { animation-delay: .15s; }
.db-nav a:nth-child(3) { animation-delay: .20s; }
.db-nav a:nth-child(4) { animation-delay: .25s; }
.db-nav a:nth-child(5) { animation-delay: .30s; }
.db-nav a:nth-child(6) { animation-delay: .35s; }
.db-nav a:nth-child(7) { animation-delay: .40s; }
.db-nav a:nth-child(8) { animation-delay: .45s; }
.db-refer { animation: dbRise .55s var(--ease-out) .5s both; }

.db-grid .db-card { animation: dbRise .6s var(--ease-out) both; }
.db-col:nth-child(1) .db-card:nth-child(1) { animation-delay: .12s; }
.db-col:nth-child(1) .db-card:nth-child(2) { animation-delay: .24s; }
.db-col:nth-child(2) .db-card:nth-child(1) { animation-delay: .18s; }
.db-col:nth-child(2) .db-card:nth-child(2) { animation-delay: .30s; }
.db-col:nth-child(3) .db-card:nth-child(1) { animation-delay: .24s; }
.db-col:nth-child(3) .db-card:nth-child(2) { animation-delay: .36s; }

.db-step { animation: dbRise .5s var(--ease-out) both; }
.db-step:nth-child(1) { animation-delay: .20s; }
.db-step:nth-child(2) { animation-delay: .30s; }
.db-step:nth-child(3) { animation-delay: .40s; }
.db-step:nth-child(4) { animation-delay: .50s; }

@media (max-width: 1280px) {
  .db-banner { grid-template-columns: minmax(220px, .9fr) minmax(0, 1fr); }
  .db-banner-art { display: none; }
  .db-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .db-col-3 { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .db-sidebar { width: 86px; padding: 18px 12px 14px; align-items: center; }
  .db-sidebar .brand { padding: 0; margin-bottom: 20px; }
  .db-sidebar .brand b { display: none; }
  .db-nav { width: 100%; }
  .db-nav a { justify-content: center; padding: 12px; }
  .db-nav a span { display: none; }
  .db-refer { display: none; }
  .db-nav-cta { padding: 11px; justify-content: center; gap: 0; }
  .db-nav-cta-txt, .db-nav-cta-arrow { display: none; }
  .db-nav-cta::after { display: none; }
}

@media (max-width: 860px) {
  .db-shell { padding: 12px; gap: 0; }
  .db-sidebar {
    position: fixed; top: 0; left: 0; width: 280px;
    height: 100vh; height: 100dvh;
    border-radius: 0 var(--r-lg) var(--r-lg) 0;
    transform: translateX(-105%); transition: transform var(--t) var(--ease-out);
    align-items: stretch; padding: 20px 14px 16px;
  }
  .db-sidebar { animation: none; }
  .db-sidebar.is-open { transform: none; box-shadow: var(--sh-xl); }
  .db-sidebar .brand { padding: 0 8px; margin-bottom: 22px; }
  .db-sidebar .brand b { display: block; }
  .db-nav a { justify-content: flex-start; padding: 11px 14px; }
  .db-nav a span { display: inline; }
  .db-refer { display: block; }
  .db-nav-cta { padding: 13px 14px; justify-content: flex-start; gap: 12px; }
  .db-nav-cta-txt, .db-nav-cta-arrow { display: flex; }
  .db-nav-cta-txt { display: flex; }
  .db-burger { display: flex; }
  .db-banner { grid-template-columns: 1fr; }
  .db-steps { width: 100%; }
  .db-step { min-width: 0; padding: 0 4px; }
  .db-grid { grid-template-columns: 1fr; }
  .db-col-3 { grid-column: auto; display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .db-shell { padding: 10px; }
  .db-main { gap: 14px; }
  .db-col, .db-grid { gap: 14px; }

  .db-topbar {
    display: grid; align-items: center;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "burger brand user"
      "greet  greet acts";
    gap: 6px 12px;
    padding: 14px 16px 16px; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm);
  }
  .db-burger { grid-area: burger; margin: 0; }
  .db-topbar-brand { grid-area: brand; display: inline-flex; justify-self: center; }
  .db-user { grid-area: user; justify-self: end; }

  .db-heading {
    grid-area: greet; align-self: stretch; min-width: 0;
    padding-top: 16px; margin-top: 10px; border-top: 1px solid var(--line);
  }
  .db-heading h1 { font-size: 1.32rem; }
  .db-heading p { font-size: .84rem; margin-top: 1px; }
  .db-top-actions {
    grid-area: acts; align-self: stretch; align-items: flex-start;
    justify-self: end; gap: 10px;
    padding-top: 16px; margin-top: 10px; border-top: 1px solid var(--line);
  }

  .db-score-btn { width: 42px; height: 42px; padding: 0; justify-content: center; border-radius: 50%; }
  .db-score-btn span { display: none; }
  .db-bell { width: 42px; height: 42px; }
  .db-user-name, .db-user-btn > svg { display: none; }
  .db-user-btn { padding: 0; }
  .db-user-avatar { width: 44px; height: 44px; }

  .db-col-3 { grid-template-columns: 1fr; }
  .db-offer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .db-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 8px; }
  .db-step:not(:first-child)::before { display: none; }
}

@media (max-width: 420px) {
  .db-heading p { font-size: .82rem; }
  .db-loan-art { display: none; }
  .db-loan-stats { gap: 8px; }
  .db-quick-grid { gap: 10px; }
  .db-offer { padding-right: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .db-sidebar, .db-scrim, .db-qa, .db-offer-btn, .db-chat-row,
  .db-score-btn, .db-bell, .db-link svg, .db-help-list .chev { transition: none; }
  .db-sidebar, .db-topbar, .db-banner, .db-secure, .db-nav a,
  .db-refer, .db-grid .db-card, .db-step { animation: none; }
  .db-nav-cta, .db-nav-cta::after { animation: none; }
}

/* ==================================================================== *
 * DASHBOARD SUB-PAGES  (My Loans, Repayment, Profile, Documents,
 * Support, Refer & Earn, Settings)
 * ==================================================================== */

/* ---- Shared page scaffolding ---- */
.db-page { display: grid; gap: 20px; animation: dbFade .5s var(--ease-out) both; }
.db-page-cols { display: grid; align-items: start; gap: 20px; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.db-page-cols .db-col { gap: 20px; }
.db-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 2px; }
.db-section-title h2 { font-size: 1.1rem; letter-spacing: -0.015em; }
.db-muted { color: var(--text-muted); font-size: .88rem; }
.db-card-sub { font-size: .84rem; color: var(--text-muted); margin: -8px 0 14px; }

/* status badges */
.db-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: var(--r-pill); font-size: .74rem; font-weight: 600; }
.db-badge.ok    { background: var(--success-soft); color: var(--success-strong); }
.db-badge.warn  { background: var(--gold-soft); color: #a9761a; }
.db-badge.info  { background: var(--accent-soft); color: var(--accent-700); }
.db-badge.muted { background: var(--grey-150); color: var(--text-muted); }
.db-badge.danger{ background: var(--danger-soft); color: var(--danger); }
.db-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---- Virtual bank card (My Loans header) ---- */
.db-vcard {
  position: relative; overflow: hidden; color: #fff;
  border-radius: var(--r-lg); padding: 24px;
  min-height: 218px; display: flex; flex-direction: column;
  background: linear-gradient(135deg, #4f46e5 0%, #6d5cf0 45%, #8b6bff 100%);
  box-shadow: 0 24px 50px rgba(79,70,229,.32);
}
.db-vcard::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(130% 90% at 88% -10%, rgba(255,255,255,.28) 0%, transparent 45%),
    radial-gradient(90% 70% at -5% 110%, rgba(0,0,0,.28) 0%, transparent 55%);
}
.db-vcard > * { position: relative; z-index: 1; }
.db-vcard-top { display: flex; align-items: flex-start; justify-content: space-between; }
.db-vcard-brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; }
.db-vcard-brand svg { width: 20px; height: 20px; }
.db-vcard-kind { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; opacity: .8; margin-top: 3px; }
.db-vcard-chip { width: 46px; height: 34px; border-radius: 7px; background: linear-gradient(135deg,#f4d98b,#c9a23f); position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.db-vcard-chip::before { content:""; position:absolute; inset:6px 9px; border:1px solid rgba(120,90,10,.45); border-radius:3px; }
.db-vcard-chip::after { content:""; position:absolute; top:6px; bottom:6px; left:50%; width:1px; background:rgba(120,90,10,.45); }
.db-vcard-number { font-family: var(--font-display); font-size: 1.42rem; letter-spacing: .18em; margin: auto 0 18px; }
.db-vcard-foot { display: flex; align-items: flex-end; gap: 26px; }
.db-vcard-foot .lbl { font-size: .56rem; letter-spacing: .14em; text-transform: uppercase; opacity: .65; }
.db-vcard-foot .val { font-size: .92rem; letter-spacing: .06em; margin-top: 4px; font-family: var(--font-display); }
.db-vcard-net { display: flex; align-items: flex-end; }
.db-vcard-net svg { width: 48px; height: 30px; }
.db-vcard-tail { margin-left: auto; display: flex; align-items: flex-end; gap: 12px; }
.db-vcard-lock {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
  color: #fff; backdrop-filter: blur(4px); cursor: pointer;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.db-vcard-lock:hover { background: rgba(255,255,255,.3); transform: translateY(-1px); }
.db-vcard-lock svg { width: 17px; height: 17px; }
.db-vcard-lock .ic-unlocked { display: none; }
.db-vcard:not(.masked) .db-vcard-lock .ic-locked { display: none; }
.db-vcard:not(.masked) .db-vcard-lock .ic-unlocked { display: block; }
.db-vcard-lock.is-set { background: rgba(46,204,143,.28); border-color: rgba(46,204,143,.5); }
.db-vcard.masked .is-secret { filter: blur(7px); user-select: none; }
.db-vcard-reveal {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
  color: #fff; font-size: .74rem; font-weight: 600; backdrop-filter: blur(4px);
  transition: background var(--t-fast) var(--ease);
}
.db-vcard-reveal:hover { background: rgba(255,255,255,.28); }
.db-vcard-reveal svg { width: 14px; height: 14px; }
.db-vcard-note { display: flex; align-items: center; gap: 7px; margin-top: 12px; font-size: .78rem; color: var(--text-faint); }
.db-vcard-note svg { width: 14px; height: 14px; flex: none; }

/* ---- Key/value info rows (Profile, loan summary) ---- */
.db-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 24px; }
.db-kv > div { display: flex; flex-direction: column; padding: 12px 0; border-top: 1px solid var(--line); }
.db-kv.one-col { grid-template-columns: 1fr; }
.db-kv span { font-size: .76rem; color: var(--text-muted); margin-bottom: 4px; }
.db-kv b { font-size: .94rem; font-weight: 600; color: var(--ink); font-family: var(--font-body); }

/* summary stat strip */
.db-stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 16px; }
.db-stat-strip > div { padding: 14px 16px; border-radius: var(--r-md); background: var(--grey-50); border: 1px solid var(--line); }
.db-stat-strip span { display: block; font-size: .76rem; color: var(--text-muted); margin-bottom: 4px; }
.db-stat-strip b { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--ink); }

/* ---- Data table (repayment schedule, tickets, referrals) ---- */
.db-table-wrap { overflow-x: auto; margin: 0 -4px; }
.db-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 460px; }
.db-table th { text-align: left; font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.db-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); color: var(--text); }
.db-table tbody tr:last-child td { border-bottom: none; }
.db-table tbody tr:hover { background: var(--grey-50); }
.db-table b { font-family: var(--font-display); font-weight: 600; color: var(--ink); }

/* ---- Toggle switch ---- */
.db-switch { position: relative; flex: none; width: 44px; height: 26px; }
.db-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.db-switch .slider { position: absolute; inset: 0; background: var(--grey-300); border-radius: var(--r-pill); transition: background var(--t-fast) var(--ease); }
.db-switch .slider::before { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: var(--sh-xs); transition: transform var(--t-fast) var(--ease); }
.db-switch input:checked + .slider { background: var(--accent); }
.db-switch input:checked + .slider::before { transform: translateX(18px); }

/* setting / preference rows */
.db-setrow { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.db-setrow:first-child { border-top: none; }
.db-setrow .txt { flex: 1; min-width: 0; }
.db-setrow .txt b { display: block; font-size: .92rem; font-weight: 600; color: var(--ink); }
.db-setrow .txt span { font-size: .8rem; color: var(--text-muted); }
.db-setrow .db-setrow-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--grey-100); color: var(--accent-600); display: grid; place-items: center; }
.db-setrow .db-setrow-ic svg { width: 19px; height: 19px; }

/* ---- Documents ---- */
.db-doc { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.db-doc:first-child { border-top: none; }
.db-doc-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-600); }
.db-doc-ic svg { width: 21px; height: 21px; }
.db-doc .txt { flex: 1; min-width: 0; }
.db-doc .txt b { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); }
.db-doc .txt span { font-size: .78rem; color: var(--text-muted); }
.db-doc-act { flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--grey-100); color: var(--ink); transition: background var(--t-fast) var(--ease); }
.db-doc-act:hover { background: var(--accent-soft); color: var(--accent-600); }
.db-doc-act svg { width: 18px; height: 18px; }
.db-upload {
  display: grid; justify-items: center; gap: 8px; text-align: center;
  padding: 26px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-md);
  color: var(--text-muted); background: var(--grey-50); cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.db-upload:hover { border-color: var(--accent); color: var(--accent-600); }
.db-upload svg { width: 30px; height: 30px; }
.db-upload b { color: var(--ink); font-size: .92rem; }
.db-upload span { font-size: .78rem; }

/* ---- Support ---- */
.db-channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.db-channel { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--r-md); background: var(--grey-50); border: 1px solid var(--line); transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.db-channel:hover { transform: translateY(-3px); box-shadow: var(--sh-sm); }
.db-channel .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-600); margin-bottom: 6px; }
.db-channel .ic svg { width: 20px; height: 20px; }
.db-channel b { font-size: .9rem; }
.db-channel span { font-size: .78rem; color: var(--text-muted); }

.db-faq { border-top: 1px solid var(--line); }
.db-faq:first-of-type { border-top: none; }
.db-faq summary { display: flex; align-items: center; gap: 12px; padding: 15px 0; font-size: .92rem; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.db-faq summary::-webkit-details-marker { display: none; }
.db-faq summary .chev { flex: none; margin-left: auto; width: 18px; height: 18px; color: var(--text-muted); transition: transform var(--t-fast) var(--ease); }
.db-faq[open] summary .chev { transform: rotate(180deg); }
.db-faq p { font-size: .86rem; color: var(--text-muted); line-height: 1.55; padding: 0 0 16px; }

/* ---- Refer & Earn ---- */
.db-refer-hero {
  position: relative; overflow: hidden; color: #fff;
  border-radius: var(--r-xl); padding: clamp(24px, 3vw, 34px);
  background: linear-gradient(130deg, #4f46e5 0%, #7c5cff 60%, #9b7bff 100%);
  box-shadow: 0 24px 50px rgba(79,70,229,.3);
}
.db-refer-hero h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); letter-spacing: -0.02em; }
.db-refer-hero p { font-size: .92rem; opacity: .88; margin-top: 6px; max-width: 44ch; }
.db-code {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 20px; padding: 12px 12px 12px 18px; max-width: 380px;
  background: rgba(255,255,255,.16); border: 1px dashed rgba(255,255,255,.5);
  border-radius: var(--r-md); backdrop-filter: blur(4px);
}
.db-code b { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: .16em; }
.db-code .btn { margin-left: auto; padding: 9px 18px; }
.db-share { display: flex; gap: 10px; margin-top: 18px; }
.db-share a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.16); color: #fff; transition: background var(--t-fast) var(--ease); }
.db-share a:hover { background: rgba(255,255,255,.3); }
.db-share svg { width: 20px; height: 20px; }

.db-steps-num { display: grid; gap: 16px; }
.db-steps-num li { display: flex; gap: 14px; align-items: flex-start; }
.db-steps-num .n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-700); font-family: var(--font-display); font-weight: 700; font-size: .95rem; }
.db-steps-num b { display: block; font-size: .92rem; color: var(--ink); }
.db-steps-num span { font-size: .82rem; color: var(--text-muted); }

/* segmented control (repayment amount, support category) */
.db-seg { display: inline-flex; background: var(--grey-100); border-radius: var(--r-pill); padding: 4px; gap: 4px; flex-wrap: wrap; }
.db-seg button { padding: 8px 16px; border-radius: var(--r-pill); font-size: .82rem; font-weight: 600; color: var(--text-muted); transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.db-seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-xs); }

.db-hr { height: 1px; background: var(--line); margin: 18px 0; border: 0; }

.db-pay-method { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-md); margin-bottom: 10px; cursor: pointer; transition: border-color var(--t-fast) var(--ease); }
.db-pay-method:hover { border-color: var(--accent); }
.db-pay-method input { accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.db-pay-method .ic { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--grey-100); color: var(--ink); display: grid; place-items: center; }
.db-pay-method .ic svg { width: 19px; height: 19px; }
.db-pay-method .txt b { display: block; font-size: .88rem; font-weight: 600; }
.db-pay-method .txt span { font-size: .78rem; color: var(--text-muted); }

/* creators program page */
.cp-hero { display: flex; align-items: center; gap: 24px; padding: clamp(20px, 3vw, 30px); border-radius: var(--r-lg); background: linear-gradient(120deg, var(--accent-soft), var(--grey-50)); border: 1px solid var(--line); }
.cp-hero-copy { flex: 1 1 auto; }
.cp-hero-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-700); background: var(--surface); border: 1px solid var(--line); padding: 5px 12px; border-radius: var(--r-pill); margin-bottom: 12px; }
.cp-hero-copy h2 { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 700; color: var(--ink); line-height: 1.2; }
.cp-hero-copy p { margin-top: 10px; max-width: 60ch; color: var(--text-muted); font-size: .92rem; line-height: 1.6; }
.cp-hero-art { flex: none; width: clamp(140px, 20vw, 200px); }

.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

.cp-card { --cp: var(--accent); --cp-soft: var(--accent-soft); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-xs); position: relative; overflow: hidden; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease); }
.cp-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--cp); }
.cp-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: var(--cp); }
.cp-card.a-violet { --cp: #5b5bf0; --cp-soft: var(--accent-soft); }
.cp-card.a-green  { --cp: #17a673; --cp-soft: var(--success-soft); }
.cp-card.a-gold   { --cp: #c9a23f; --cp-soft: var(--gold-soft); }
.cp-card.a-rose   { --cp: #e5484d; --cp-soft: var(--danger-soft); }
.cp-card.a-blue   { --cp: #2b7fff; --cp-soft: #e6efff; }

.cp-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cp-icon { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--cp-soft); color: var(--cp); }
.cp-icon svg { width: 21px; height: 21px; }
.cp-cat { font-size: .74rem; font-weight: 600; color: var(--cp); background: var(--cp-soft); padding: 4px 10px; border-radius: var(--r-pill); }
.cp-slots { margin-left: auto; font-size: .74rem; color: var(--text-muted); }
.cp-card h3 { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; color: var(--ink); }
.cp-tagline { margin-top: 4px; font-size: .86rem; color: var(--text-muted); line-height: 1.5; }

.cp-payout { margin: 16px 0; padding: 14px 16px; border-radius: var(--r-md); background: var(--cp-soft); }
.cp-payout-label { display: block; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--cp); }
.cp-payout b { display: block; margin-top: 3px; font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.cp-payout small { display: block; margin-top: 3px; font-size: .76rem; color: var(--text-muted); }

.cp-meta { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--text-muted); margin-bottom: 14px; }
.cp-meta svg { width: 16px; height: 16px; flex: none; color: var(--cp); }

.cp-reqs { margin-bottom: 18px; }
.cp-reqs-title { display: block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted); margin-bottom: 8px; }
.cp-reqs ul { display: grid; gap: 7px; }
.cp-reqs li { display: flex; align-items: flex-start; gap: 8px; font-size: .85rem; color: var(--ink); line-height: 1.4; }
.cp-reqs li svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--cp); }

.cp-foot { margin-top: auto; padding-top: 4px; }
.cp-foot .cp-apply { width: 100%; justify-content: center; }
.cp-foot .db-badge { font-size: .82rem; padding: 7px 14px; }
.cp-note { margin-top: 8px; font-size: .8rem; color: var(--text-muted); line-height: 1.45; }

.cp-empty { text-align: center; padding: 44px 24px; }
.cp-empty svg { width: 46px; height: 46px; color: var(--accent); margin: 0 auto 8px; }
.cp-empty h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.cp-empty p { margin-top: 6px; max-width: 46ch; margin-inline: auto; }

/* browse button on the program cards */
.cp-browse { width: 100%; justify-content: center; gap: 8px; }
.cp-browse .cp-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .22); font-size: .74rem; font-weight: 700; }
.cp-browse svg { width: 17px; height: 17px; }

/* program detail (campaign browse) page */
.cp-back { display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; font-weight: 600; color: var(--text-muted); width: fit-content; transition: color var(--t-fast) var(--ease); }
.cp-back:hover { color: var(--accent); }
.cp-back svg { width: 17px; height: 17px; }

.cp-detail-head { --cp: var(--accent); --cp-soft: var(--accent-soft); display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: clamp(20px, 3vw, 28px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-xs); position: relative; overflow: hidden; }
.cp-detail-head::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--cp); }
.cp-detail-head.a-violet { --cp: #5b5bf0; --cp-soft: var(--accent-soft); }
.cp-detail-head.a-green  { --cp: #17a673; --cp-soft: var(--success-soft); }
.cp-detail-head.a-gold   { --cp: #c9a23f; --cp-soft: var(--gold-soft); }
.cp-detail-head.a-rose   { --cp: #e5484d; --cp-soft: var(--danger-soft); }
.cp-detail-head.a-blue   { --cp: #2b7fff; --cp-soft: #e6efff; }
.cp-detail-head-copy { flex: 1 1 300px; }
.cp-detail-head-copy .cp-cat { color: var(--cp); background: var(--cp-soft); }
.cp-detail-head-copy h2 { margin-top: 10px; font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 700; color: var(--ink); }
.cp-detail-head-copy p { margin-top: 8px; max-width: 64ch; font-size: .9rem; color: var(--text-muted); line-height: 1.6; }
.cp-detail-payout { flex: none; text-align: right; padding: 14px 18px; border-radius: var(--r-md); background: var(--cp-soft); }
.cp-detail-payout .cp-payout-label { color: var(--cp); }
.cp-detail-payout b { display: block; margin-top: 3px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.cp-detail-payout small { display: block; margin-top: 3px; font-size: .76rem; color: var(--text-muted); }

.cp-detail-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cp-detail-bar h3 { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; color: var(--ink); }
.cp-detail-count { font-size: .82rem; color: var(--text-muted); }

/* pagination */
.cp-pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.cp-pager-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--r-md); border: 1px solid var(--line-strong); font-size: .85rem; font-weight: 600; color: var(--ink); background: var(--surface); transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.cp-pager-btn svg { width: 16px; height: 16px; }
.cp-pager-btn:hover { border-color: var(--accent); color: var(--accent); }
.cp-pager-btn.is-disabled { opacity: .45; pointer-events: none; }
.cp-pager-nums { display: inline-flex; align-items: center; gap: 4px; }
.cp-pager-num { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border-radius: var(--r-md); font-size: .86rem; font-weight: 600; color: var(--text-muted); transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.cp-pager-num:hover { background: var(--grey-100); color: var(--ink); }
.cp-pager-num.is-current { background: var(--grad-accent); color: #fff; box-shadow: var(--sh-accent); }

@media (max-width: 640px) {
  .cp-detail-head { flex-direction: column; align-items: flex-start; }
  .cp-detail-payout { text-align: left; align-self: stretch; }
}

/* apply modal */
.cp-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.cp-modal[hidden] { display: none; }
.cp-modal-scrim { position: absolute; inset: 0; background: rgba(17, 17, 34, .55); backdrop-filter: blur(2px); }
.cp-modal-card { position: relative; width: min(460px, 100%); background: var(--surface); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 30px); box-shadow: var(--sh-lg); animation: cpPop .24s var(--ease-out) both; }
@keyframes cpPop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.cp-modal-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--text-muted); background: var(--grey-100); }
.cp-modal-x:hover { color: var(--ink); }
.cp-modal-x svg { width: 17px; height: 17px; }
.cp-modal-eyebrow { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-700); }
.cp-modal-card h3 { margin-top: 6px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.cp-modal-payout { margin-top: 4px; font-size: .88rem; color: var(--text-muted); }
.cp-modal-label { display: block; margin: 18px 0 8px; font-size: .84rem; font-weight: 600; color: var(--ink); }
.cp-modal-label span { font-weight: 400; color: var(--text-muted); }
.cp-modal-card textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 12px 14px; font: inherit; font-size: .9rem; resize: vertical; color: var(--ink); background: var(--surface); transition: border-color var(--t-fast) var(--ease); }
.cp-modal-card textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cp-modal-err { margin-top: 10px; font-size: .84rem; color: var(--danger); }
.cp-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

@media (max-width: 640px) {
  .cp-hero { flex-direction: column; text-align: center; }
  .cp-hero-copy p { margin-inline: auto; }
  .cp-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .db-page-cols { grid-template-columns: 1fr; }
  .db-kv { grid-template-columns: 1fr; }
}

/* -------------------------------------------------- *
 * 29. CARD PICKER + 3-STEP APPLICATION
 * -------------------------------------------------- */
.pick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.6vw, 30px);
  align-items: stretch;
}

.pick-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(16px, 2vw, 22px);
  box-shadow: var(--sh-sm);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.pick-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.pick-card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--sh-md); }

.pick-cc {
  position: relative;
  width: 100%;
  aspect-ratio: 1.586 / 1;
  border-radius: 20px;
  padding: clamp(16px, 2.2vw, 24px);
  color: #fff;
  background: var(--grad-ink);
  box-shadow: var(--sh-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform var(--t) var(--ease);
}
.pick-card:hover .pick-cc { transform: rotate(-2deg) translateY(-2px); }
.pick-cc::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 80% 0%, rgba(139,107,255,.45) 0%, transparent 55%),
              radial-gradient(80% 60% at 0% 100%, rgba(91,91,240,.4) 0%, transparent 60%);
  opacity: .9;
}
.pick-cc > * { position: relative; z-index: 1; }
.pick-cc .cc-number { font-size: clamp(.98rem, 1.4vw, 1.18rem); }
.pick-cc .cc-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

.pick-cc.cc-gold { background: var(--grad-gold-ink); }
.pick-cc.cc-gold::after {
  background: radial-gradient(120% 80% at 80% 0%, rgba(245,181,61,.5) 0%, transparent 55%),
              radial-gradient(80% 60% at 0% 100%, rgba(201,162,63,.42) 0%, transparent 60%);
}
.pick-cc.cc-platinum { background: var(--grad-platinum); color: var(--ink); }
.pick-cc.cc-platinum::after {
  background: radial-gradient(120% 80% at 80% 0%, rgba(255,255,255,.85) 0%, transparent 55%),
              radial-gradient(80% 60% at 0% 100%, rgba(155,123,255,.22) 0%, transparent 60%);
}
.pick-cc.cc-platinum .cc-bottom .lbl { opacity: .55; }

.pick-body { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; flex: 1; }
.pick-body h3 { font-size: 1.18rem; }
.pick-body p { font-size: .9rem; color: var(--text-muted); line-height: 1.55; flex: 1; }
.pick-actions { display: flex; gap: 10px; margin-top: 16px; }
.pick-actions .btn { flex: 1; justify-content: center; padding: 12px 14px; }

.card-sheet { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: var(--gutter); }
.card-sheet[hidden] { display: none; }
.apply-section .btn[hidden],
.apply-section .btn-text[hidden],
.selfie-actions .btn[hidden],
.selfie-placeholder[hidden],
.handle-open[hidden],
.handle-remove[hidden],
.apply-done[hidden] { display: none; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(17,17,20,.5); backdrop-filter: blur(4px); }
.sheet-panel {
  position: relative;
  width: min(100%, 560px);
  max-height: 86vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
  padding: clamp(22px, 3vw, 34px);
  animation: sheetIn .45s var(--ease-out) both;
}
@keyframes sheetIn {
  from { opacity: 0; transform: translateY(26px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
body.sheet-open { overflow: hidden; }
.sheet-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grey-100); color: var(--ink);
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.sheet-close:hover { background: var(--grey-200); transform: rotate(90deg); }
.sheet-close svg { width: 16px; height: 16px; }
.sheet-head { padding-right: 44px; margin-bottom: 18px; }
.sheet-head h3 { font-size: 1.35rem; }
.sheet-head p { font-size: .9rem; color: var(--text-muted); margin-top: 6px; }
.sheet-tabs {
  display: inline-flex;
  background: var(--grey-100);
  border-radius: var(--r-pill);
  padding: 4px;
  gap: 4px;
  margin-bottom: 18px;
}
.sheet-tab {
  padding: 9px 20px;
  border-radius: var(--r-pill);
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.sheet-tab.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--sh-xs); }
.sheet-foot { margin-top: 22px; }

.card-prose { font-size: .95rem; color: var(--text-muted); line-height: 1.7; }
.card-prose h1, .card-prose h2, .card-prose h3, .card-prose h4 { color: var(--ink); margin: 18px 0 8px; }
.card-prose p { margin-bottom: 12px; }
.card-prose ul, .card-prose ol { padding-left: 22px; margin-bottom: 12px; display: grid; gap: 8px; }
.card-prose li::marker { color: var(--accent-600); }
.card-prose strong { color: var(--ink); font-weight: 600; }
.card-prose a { color: var(--accent-600); text-decoration: underline; }
.card-prose img { max-width: 100%; border-radius: var(--r-md); }
.card-prose table { width: 100%; border-collapse: collapse; font-size: .88rem; margin-bottom: 12px; }
.card-prose th, .card-prose td { padding: 9px 12px; border: 1px solid var(--line); text-align: left; }
.card-prose th { background: var(--surface-2); color: var(--ink); }

.selected-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; margin-bottom: 24px;
  background: linear-gradient(120deg, var(--accent-soft), transparent 70%);
  border: 1px solid var(--line); border-radius: var(--r-md);
}
.selected-card .chip b { color: var(--ink); }

.apply-stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}
.stepper-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; }
.stepper-item::before {
  content: "";
  position: absolute;
  top: 18px; left: calc(-50% + 26px); right: calc(50% + 26px);
  height: 2px;
  background: var(--grey-300);
  transition: background var(--t) var(--ease);
}
.stepper-item:first-child::before { display: none; }
.stepper-item.done::before, .stepper-item.current::before { background: var(--accent); }
.stepper-num {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--text-muted);
  border: 1.5px solid var(--line-strong);
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}
.stepper-item.current .stepper-num {
  background: var(--grad-accent); color: #fff; border-color: transparent;
  box-shadow: var(--sh-accent);
  transform: scale(1.06);
}
.stepper-item.done .stepper-num { background: var(--success-soft); color: var(--success-strong); border-color: var(--success); }
/* A tick replaces the number once a step is completed. */
.stepper-item.done .stepper-num { font-size: 0; }
.stepper-item.done .stepper-num::after {
  content: ""; width: 15px; height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%23127a54' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.stepper-label { font-size: .8rem; font-weight: 600; color: var(--text-faint); }
.stepper-item.current .stepper-label, .stepper-item.done .stepper-label { color: var(--ink); }

.apply-step { border: 0; padding: 0; margin: 0; min-width: 0; animation: stepFade .45s var(--ease-out) both; }
@keyframes stepFade {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.form-row:not(:has(> .field:not([hidden]))) { display: none; }

.field .opt { font-weight: 400; color: var(--text-faint); }

.step-nav {
  display: flex; gap: 12px; align-items: center;
  margin-top: 30px; padding-top: 22px;
  border-top: 1px solid var(--line);
}
.step-nav [data-step-next], .step-nav [data-submit] { margin-left: auto; }
.step-nav .btn { min-width: 132px; justify-content: center; }

/* Encryption note + error banner refinements */
.form-note {
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.form-note svg { flex: none; color: var(--success-strong); }
.form-error-banner svg { flex: none; }

.handle-rows { display: grid; gap: 10px; margin-bottom: 10px; }
.handle-row {
  display: grid;
  grid-template-columns: minmax(110px, 150px) 1fr auto auto;
  gap: 10px;
  align-items: center;
}
.handle-row select, .handle-row input { margin: 0; }
.handle-open {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--accent-soft); color: var(--accent-700);
  font-size: .78rem; font-weight: 600;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.handle-open:hover { background: var(--accent); color: #fff; }
.handle-open.is-opened { background: var(--success-soft); color: var(--success-strong); }
.handle-remove {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grey-100); color: var(--text-muted);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.handle-remove:hover { background: var(--danger-soft); color: var(--danger); }

.selfie-hint {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.5;
  min-height: 1.5em;
  max-width: 42ch;
  transition: color var(--t-fast) var(--ease);
}
.selfie-hint.ok { color: var(--success-strong); font-weight: 500; }
.selfie-ring { z-index: 3; pointer-events: none; transform: rotate(-90deg); }
.selfie-ring[hidden] { display: none; }
.selfie-ring .ring-track { fill: none; stroke: rgba(255,255,255,.4); stroke-width: 4; }
.selfie-ring .ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 351.86;
  stroke-dashoffset: 351.86;
  transition: stroke-dashoffset var(--t) var(--ease);
}

.apply-done { text-align: center; display: grid; justify-items: center; gap: 12px; }
.done-badge {
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--success-soft); color: var(--success-strong);
  border: 1.5px solid var(--success);
}
.done-badge svg { width: 28px; height: 28px; }
.apply-done p { max-width: 46ch; }
.apply-done .btn { margin-top: 8px; }

@media (max-width: 1080px) and (orientation: portrait) {
  .pick-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .pick-grid { grid-template-columns: 1fr; }
  .card-sheet { padding: 0; align-items: end; }
  .sheet-panel {
    width: 100%;
    max-height: 92vh;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    align-self: end;
  }
  .handle-row { grid-template-columns: 1fr; }
  .handle-row .handle-open { justify-self: start; }
  .handle-row .handle-remove { justify-self: end; }
  .step-nav { flex-wrap: wrap; }
  .step-nav .btn { flex: 1; justify-content: center; }
}
@media (max-width: 420px) {
  .stepper-label { font-size: .7rem; }
  .stepper-item::before { left: calc(-50% + 22px); right: calc(50% + 22px); }
}

@media (prefers-reduced-motion: reduce) {
  .sheet-panel, .apply-step { animation: none; }
  .pick-card, .pick-cc { transition: none; }
}

.pc-modal { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 16px; }
.pc-modal[hidden] { display: none; }
.pc-scrim { position: absolute; inset: 0; background: rgba(17,17,20,.55); backdrop-filter: blur(3px); }
.pc-panel {
  position: relative; width: 100%; max-width: 360px;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-xl);
  padding: 22px; animation: pcIn .35s var(--ease-out);
}
@keyframes pcIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.pc-close {
  position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
  background: var(--surface-2); cursor: pointer; transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.pc-close:hover { background: var(--line-strong); color: var(--ink); }
.pc-close svg { width: 15px; height: 15px; }
.pc-head { text-align: center; margin-bottom: 16px; }
.pc-badge {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: 12px; background: var(--accent-soft); color: var(--accent-600); margin-bottom: 10px;
}
.pc-badge svg { width: 21px; height: 21px; }
.pc-head h3 { font-family: var(--font-display); font-size: 1.18rem; color: var(--ink); letter-spacing: -.02em; }
.pc-head p { margin-top: 4px; font-size: .84rem; color: var(--text-muted); }
.pc-panel .field { margin-bottom: 12px; }
.pc-panel .field label { margin-bottom: 5px; font-size: .8rem; }
.pc-panel .field input, .pc-panel .field select { padding: 10px 12px; }
.pc-screen { display: none; }
.pc-screen.is-active { display: block; animation: authStepIn .35s var(--ease-out); }
.pc-steps { display: flex; gap: 7px; justify-content: center; margin-bottom: 14px; }
.pc-steps i { width: 22px; height: 4px; border-radius: 999px; background: var(--line-strong); transition: background var(--t-fast) var(--ease); }
.pc-steps i.is-on { background: var(--grad-accent); }
.pc-panel .btn { margin-top: 4px; }
.pc-otp-group { margin-bottom: 12px; }
.pc-otp-group > label { display: block; font-family: var(--font-display); font-size: .78rem; font-weight: 500; color: var(--ink); margin-bottom: 7px; }
.pc-otp-group > label b { color: var(--accent-600); font-weight: 600; }
.pc-otp-group .otp-inputs { gap: 6px; justify-content: space-between; }
.pc-otp-group .otp-inputs input { width: 42px; height: 46px; font-size: 1.2rem; }
.pc-resend { text-align: center; margin-top: 10px; font-size: .8rem; color: var(--text-muted); }
.pc-resend b { color: var(--ink); }
.pc-alt { text-align: center; margin-top: 12px; font-size: .86rem; }
.pc-done { text-align: center; padding: 4px 0 14px; }
.pc-done-badge {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 50%; background: var(--success-soft); color: var(--success-strong); margin-bottom: 10px;
}
.pc-done-badge svg { width: 26px; height: 26px; }
.pc-done h4 { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.pc-done p { margin-top: 4px; font-size: .86rem; color: var(--text-muted); }
@media (max-width: 400px) {
  .pc-otp-group .otp-inputs input { width: 38px; height: 44px; font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pc-panel, .pc-screen.is-active { animation: none; }
}
