/* =================== PAISA24FINANCE — LOAN APPLICATION JOURNEY ===================
   Visual system inherited from the Paisa24Finance landing page:
   Plus Jakarta Sans + JetBrains Mono + Caveat, emerald/teal #06A89A primary. */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&family=Caveat:wght@600;700&display=swap');

:root {
  --primary: #06A89A;
  --primary-dark: #057E68;
  --primary-light: #E2F4EF;
  --pink: #18B26B;        /* secondary green */
  --blue: #2563EB;
  --cyan: #00D4FF;
  --mint: #00D4B8;
  --amber: #FFB547;
  --orange: #F97316;

  --ink: #0A2540;
  --ink-2: #425466;
  --ink-3: #697386;
  --line: #E5E9F0;
  --line-2: #EEF1F6;
  --bg: #FFFFFF;
  --bg-soft: #F6F9FC;
  --bg-tint: #FAFBFD;
  --success: #00B89C;
  --success-bg: #E6FAF5;
  --danger: #E54B4B;
  --danger-bg: #FDECEC;

  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.04);
  --shadow: 0 6px 22px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 30px 60px -20px rgba(10, 37, 64, 0.18), 0 18px 36px -18px rgba(10, 37, 64, 0.12);
  --shadow-xl: 0 50px 100px -20px rgba(50, 50, 93, 0.22), 0 30px 60px -30px rgba(0, 0, 0, 0.28);
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --grad: linear-gradient(135deg, var(--primary), var(--pink));
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg-soft);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--primary); color: #fff; }
input, select, textarea { font-family: inherit; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; }
.mono { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; }
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--primary);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: '//'; opacity: 0.5; }

/* ============ BACKDROP ============ */
.app-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.app-bg::before {
  content: ''; position: absolute; top: -30%; left: -10%; right: -10%; height: 70%;
  background: conic-gradient(from 215deg at 50% 40%, #8FE9CF 0deg, #06A89A 60deg, #2BB8A3 120deg, #18B26B 180deg, #C9F2E4 300deg, #8FE9CF 360deg);
  filter: blur(120px) saturate(130%); opacity: 0.30;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

/* ============ HEADER ============ */
.jhead {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(229,233,240,0.7);
}
.jhead-inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.jhead-logo { height: 28px; width: auto; }
.jhead-center { flex: 1; display: flex; justify-content: center; min-width: 0; }
.jhead-prog {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--ink-3); font-weight: 600;
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 6px 8px 6px 16px; border-radius: 999px;
}
.jhead-prog .label { font-family: 'JetBrains Mono', monospace; letter-spacing: 0.02em; }
.jhead-prog .track { width: 120px; height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.jhead-prog .fill { height: 100%; width: 0%; background: var(--grad); border-radius: 3px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.jhead-prog .pct { background: var(--ink); color: #fff; border-radius: 999px; padding: 3px 9px; font-size: 11px; }
.jhead-right { display: flex; align-items: center; gap: 10px; }
.secure-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: var(--primary-dark);
  background: var(--primary-light); padding: 7px 13px; border-radius: 999px;
}
.secure-badge svg { width: 13px; height: 13px; }
.jhead-help { font-size: 13px; color: var(--ink-2); font-weight: 600; padding: 7px 12px; border-radius: 999px; transition: .15s; }
.jhead-help:hover { background: var(--bg-soft); color: var(--ink); }
@media (max-width: 720px) { .jhead-help, .secure-badge .txt { display: none; } .jhead-prog .label { display: none; } }

/* ============ STAGE / SCREEN TRANSITIONS ============ */
.stage { max-width: 1080px; margin: 0 auto; padding: 48px 24px 96px; }
.screen { animation: screenIn .5s cubic-bezier(.2,.8,.2,1); }
@keyframes screenIn { from { opacity: 0.5; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen { animation: none; } }

.screen-head { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.screen-head .eyebrow { margin-bottom: 14px; }
.screen-title { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.035em; margin-bottom: 12px; }
.screen-title .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.screen-sub { font-size: 16px; color: var(--ink-2); line-height: 1.6; }

/* ============ CARD ============ */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); padding: 40px;
}
.card-narrow { max-width: 540px; margin: 0 auto; }
.card-mid { max-width: 720px; margin: 0 auto; }
.card-wide { max-width: 940px; margin: 0 auto; }
@media (max-width: 600px) { .card { padding: 26px 20px; border-radius: 20px; } }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; font-size: 15px; font-weight: 600;
  border-radius: 999px; border: none; transition: all .16s ease; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-accent { background: var(--grad); color: #fff; box-shadow: 0 10px 22px rgba(6,168,154,0.35); }
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(6,168,154,0.45); }
.btn-outline { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn-arrow svg { transition: transform .2s; }
.btn-arrow:hover svg { transform: translateX(3px); }

.btn-row { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.btn-row.split { justify-content: space-between; }

/* ============ FORM FIELDS ============ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.col-2 { grid-column: span 2; }
@media (max-width: 600px) { .field.col-2 { grid-column: auto; } }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field label .req { color: var(--danger); }
.field .hint { font-size: 11.5px; color: var(--ink-3); }
.input, .select {
  width: 100%; padding: 13px 15px; font-size: 14.5px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color .15s, box-shadow .15s; outline: none;
}
.input::placeholder { color: var(--ink-3); }
.input:focus, .select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(6,168,154,0.12); }
.input.locked { background: var(--bg-soft); color: var(--ink-2); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23697386' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

/* phone input */
.input-phone { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; }
.input-phone:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(6,168,154,0.12); }
.input-phone .flag { width: 26px; height: 18px; border-radius: 3px; overflow: hidden; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0,0,0,0.06); }
.input-phone .flag i { display: block; height: 6px; }
.input-phone .flag .o { background: #FF9933; } .input-phone .flag .w { background: #fff; } .input-phone .flag .g { background: #138808; }
.input-phone .cc { font-weight: 700; font-size: 15px; color: var(--ink); }
.input-phone input { border: 0; outline: 0; flex: 1; font-size: 16px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink); background: transparent; padding: 10px 0; }

/* segmented toggle */
.seg { display: inline-flex; background: var(--bg-soft); border: 1.5px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; width: 100%; }
.seg button { flex: 1; padding: 10px 14px; border: 0; background: transparent; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: .15s; }
.seg button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

/* checkbox */
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; cursor: pointer; }
.check input { display: none; }
.check .box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line); flex-shrink: 0; display: grid; place-items: center; transition: .15s; margin-top: 1px; }
.check .box svg { width: 12px; height: 12px; color: #fff; opacity: 0; transform: scale(.6); transition: .15s; }
.check input:checked + .box { background: var(--primary); border-color: var(--primary); }
.check input:checked + .box svg { opacity: 1; transform: scale(1); }
.check a { color: var(--primary-dark); font-weight: 600; }

/* ============ OTP ============ */
.otp-grid { display: flex; gap: 12px; justify-content: center; margin: 8px 0 22px; }
.otp-cell {
  width: 58px; height: 66px; text-align: center; font-size: 26px; font-weight: 700; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 14px; background: #fff; outline: none; transition: .15s;
}
.otp-cell:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(6,168,154,0.14); }
.otp-cell.filled { border-color: var(--primary); background: var(--primary-light); }
@media (max-width: 480px) { .otp-cell { width: 46px; height: 56px; font-size: 22px; } }
.otp-resend { text-align: center; font-size: 13.5px; color: var(--ink-3); }
.otp-resend b { color: var(--primary-dark); cursor: pointer; }
.otp-meta { text-align: center; font-size: 13px; color: var(--ink-3); margin-bottom: 6px; }
.otp-meta b { color: var(--ink); }

/* ============ JOURNEY HUB ============ */
.hub-head { margin-bottom: 28px; }
.hub-head .screen-title { text-align: left; font-size: clamp(30px, 4.4vw, 46px); }
.hub-head .screen-sub { font-size: 16px; max-width: 560px; }

/* full-width segmented progress bar */
.hub-progress { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 24px 22px; box-shadow: var(--shadow); margin-bottom: 40px; }
.hub-progress-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.hp-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); white-space: nowrap; }
.hp-count { font-size: 13.5px; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.hp-count b { color: var(--ink); font-size: 17px; font-weight: 800; letter-spacing: -0.02em; margin-right: 2px; }
.hp-segs { display: flex; gap: 7px; }
.hp-bar { position: relative; height: 18px; background: var(--line-2); border-radius: 999px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(10,37,64,0.06); }
.hp-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--pink)); overflow: hidden; transition: width .9s cubic-bezier(.2,.8,.2,1); }
.hp-bar-fill::after { content: ''; position: absolute; top: 0; bottom: 0; width: 60px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent); transform: translateX(-80px); animation: hpSheen 2.6s ease-in-out infinite; }
@keyframes hpSheen { 0% { transform: translateX(-80px); } 60%, 100% { transform: translateX(620px); } }
@media (prefers-reduced-motion: reduce) { .hp-bar-fill::after { animation: none; } }

.hub-group { margin-bottom: 30px; }
.hub-group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.hub-group-idx {
  width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.hub-group-title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.hub-group-line { flex: 1; height: 1px; background: var(--line); }
.hub-group-count { font-size: 12px; color: var(--ink-3); font-weight: 600; font-family: 'JetBrains Mono', monospace; }

.hub-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.step-card {
  position: relative; display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border-radius: var(--r-lg); border: 1.5px solid var(--line);
  background: #fff; transition: transform .18s, box-shadow .18s, border-color .18s; overflow: hidden;
}
.step-card.locked { border-style: dashed; background: var(--bg-tint); opacity: 0.72; }
.step-card.done { border-color: rgba(0,184,156,0.4); }
.step-card.active { cursor: pointer; border-color: transparent; background: linear-gradient(120deg, #07314D, #0A2540); color: #fff; box-shadow: 0 18px 40px -16px rgba(6,168,154,0.5); }
.step-card.done, .step-card:not(.locked):not(.active) { cursor: pointer; }
.step-card:not(.locked):hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.step-card.active:hover { box-shadow: 0 22px 48px -16px rgba(6,168,154,0.6); }
.step-card.active::after {
  content: ''; position: absolute; inset: 0; border-radius: var(--r-lg); padding: 1.5px;
  background: var(--grad); -webkit-mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.step-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; background: var(--primary-light); color: var(--primary-dark); }
.step-ico svg { width: 22px; height: 22px; }
.step-card.active .step-ico { background: rgba(255,255,255,0.14); color: #fff; }
.step-card.done .step-ico { background: var(--success-bg); color: var(--success); }
.step-card.locked .step-ico { background: var(--line-2); color: var(--ink-3); }
.step-body { flex: 1; min-width: 0; }
.step-name { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.step-desc { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; line-height: 1.4; }
.step-card.active .step-desc { color: rgba(255,255,255,0.72); }
.step-tag { position: absolute; top: 12px; right: 12px; font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: 0.03em; text-transform: uppercase; font-family: 'JetBrains Mono', monospace; }
.step-tag.continue { background: #fff; color: var(--primary-dark); }
.step-tag.done { background: var(--success-bg); color: var(--success); }
.step-tag.locked { background: var(--line-2); color: var(--ink-3); }
.step-card.active .step-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #fff; margin-top: 8px; white-space: nowrap; }
.step-card .step-cta { display: none; }
.step-card.active .step-cta svg { width: 14px; height: 14px; }

/* ============ STAGE PANELS (illustration side) ============ */
.split-card { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 0; overflow: hidden; padding: 0; }
@media (max-width: 820px) { .split-card { grid-template-columns: 1fr; } }
.split-main { padding: 40px; }
.split-aside {
  background: linear-gradient(160deg, #EAF6F2 0%, #DDF1FB 100%);
  padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 18px;
  position: relative; overflow: hidden;
}
@media (max-width: 820px) { .split-aside { display: none; } }
.split-aside::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(6,168,154,0.10) 1px, transparent 1px); background-size: 18px 18px; opacity: 0.6; }
.aside-points { display: flex; flex-direction: column; gap: 14px; position: relative; }
.aside-point { display: flex; gap: 12px; align-items: flex-start; }
.aside-point .ic { width: 32px; height: 32px; border-radius: 9px; background: #fff; color: var(--primary); display: grid; place-items: center; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.aside-point .ic svg { width: 16px; height: 16px; }
.aside-point b { font-size: 14px; color: var(--ink); display: block; }
.aside-point span { font-size: 12.5px; color: var(--ink-2); }
.aside-illu { position: relative; align-self: center; }

/* ============ UPLOAD DROPZONE ============ */
.dropzone {
  border: 2px dashed var(--primary); border-radius: var(--r-lg);
  background: var(--primary-light); padding: 38px 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  cursor: pointer; transition: .18s;
}
.dropzone:hover { background: #d5efe7; border-color: var(--primary-dark); }
.dropzone.has-file { border-style: solid; border-color: var(--success); background: var(--success-bg); }
.dropzone .dz-ico { width: 56px; height: 56px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--primary); box-shadow: var(--shadow-sm); }
.dropzone .dz-ico svg { width: 26px; height: 26px; }
.dropzone .dz-title { font-size: 17px; font-weight: 700; color: var(--ink); }
.dropzone .dz-sub { font-size: 12.5px; color: var(--ink-3); }
.dz-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; margin-top: 18px; }
@media (max-width: 600px) { .dz-rules { grid-template-columns: 1fr; } }
.dz-rules li { list-style: none; font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.dz-rules li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }

/* uploaded chip */
.file-chip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; margin-top: 12px; }
.file-chip .fc-ico { width: 36px; height: 36px; border-radius: 9px; background: var(--danger-bg); color: var(--danger); display: grid; place-items: center; flex-shrink: 0; }
.file-chip .fc-ico svg { width: 18px; height: 18px; }
.file-chip .fc-name { font-size: 13.5px; font-weight: 600; flex: 1; }
.file-chip .fc-size { font-size: 11.5px; color: var(--ink-3); }
.file-chip .fc-del { width: 28px; height: 28px; border-radius: 8px; border: 0; background: var(--bg-soft); color: var(--ink-3); display: grid; place-items: center; }
.file-chip .fc-del:hover { background: var(--danger-bg); color: var(--danger); }
.file-chip.ok .fc-ico { background: var(--success-bg); color: var(--success); }

/* ============ TABS ============ */
.tabs { display: flex; border-bottom: 1.5px solid var(--line); margin-bottom: 28px; position: relative; }
.tabs button { flex: 1; padding: 16px 12px; border: 0; background: transparent; font-size: 15.5px; font-weight: 600; color: var(--ink-3); position: relative; }
.tabs button.active { color: var(--ink); }
.tabs button.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1.5px; height: 3px; background: var(--grad); border-radius: 3px; }
.tab-reco { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 10px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; font-family: 'JetBrains Mono', monospace; }
.tab-pane { display: none; } .tab-pane.active { display: block; animation: screenIn .35s ease both; }

/* AA steps list */
.aa-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; align-items: center; }
@media (max-width: 700px) { .aa-grid { grid-template-columns: 1fr; } }
.aa-illu { border: 1.5px solid var(--primary); border-radius: var(--r-lg); padding: 26px; text-align: center; position: relative; }
.aa-illu .reco { position: absolute; top: -11px; left: 16px; background: var(--success); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.aa-illu .aa-ico { width: 70px; height: 70px; margin: 6px auto 12px; color: var(--primary); }
.aa-illu .aa-label { color: var(--primary-dark); font-weight: 700; font-size: 15px; }
.aa-points { list-style: none; padding: 16px; margin: 18px 0 0; background: var(--bg-soft); border: 1px dashed var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 9px; }
.aa-points li { font-size: 12.5px; color: var(--ink-2); display: flex; gap: 8px; }
.aa-points li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); flex-shrink: 0; margin-top: 7px; }
.aa-steps { display: flex; flex-direction: column; gap: 12px; }
.aa-step { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 600; font-size: 14px; color: var(--ink); transition: .2s; }
.aa-step .n { width: 30px; height: 30px; border-radius: 50%; background: var(--primary-light); color: var(--primary-dark); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.aa-step.done { border-color: var(--success); background: var(--success-bg); }
.aa-step.done .n { background: var(--success); color: #fff; }

/* ============ SELFIE ============ */
.selfie-frame {
  border: 2.5px dashed var(--danger); border-radius: 20px; aspect-ratio: 4/3;
  display: grid; place-items: center; background: var(--bg-soft); position: relative; overflow: hidden; max-width: 420px; margin: 0 auto;
}
.selfie-frame .cam-ic { color: var(--danger); width: 60px; height: 60px; }
.selfie-frame.scanning { border-color: var(--primary); }
.selfie-frame.captured { border-style: solid; border-color: var(--success); }
.selfie-scanline { position: absolute; left: 8%; right: 8%; height: 3px; background: linear-gradient(90deg, transparent, var(--primary), transparent); box-shadow: 0 0 14px var(--primary); top: 10%; display: none; }
.selfie-frame.scanning .selfie-scanline { display: block; animation: scanMove 1.4s ease-in-out infinite alternate; }
@keyframes scanMove { from { top: 12%; } to { top: 86%; } }
.selfie-avatar { width: 120px; height: 120px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; }
.selfie-avatar svg { width: 64px; height: 64px; }
.selfie-note { font-size: 12.5px; color: var(--danger); font-weight: 600; text-align: center; margin-top: 14px; }
.selfie-note b { color: var(--danger); }

/* selfie motion graphic (aside) */
.selfie-aside { justify-content: center; gap: 26px; }
.selfie-scene { position: relative; width: 240px; height: 250px; margin: 0 auto; }
.ss-halo { position: absolute; left: 50%; top: 44%; width: 200px; height: 200px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(6,168,154,0.18), transparent 62%); }
.ss-halo::before, .ss-halo::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(6,168,154,0.35); animation: ssRipple 3s ease-out infinite; }
.ss-halo::after { animation-delay: 1.5s; }
@keyframes ssRipple { 0% { transform: scale(0.7); opacity: 0.6; } 100% { transform: scale(1.25); opacity: 0; } }
.ss-person { position: absolute; left: 50%; bottom: 0; width: 200px; transform: translateX(-50%); filter: drop-shadow(0 14px 26px rgba(10,37,64,0.16)); animation: ssBob 4.5s ease-in-out infinite; }
@keyframes ssBob { 50% { transform: translateX(-50%) translateY(-6px); } }
.ss-person .ss-eye { animation: ssBlink 4s infinite; transform-origin: center; transform-box: fill-box; }
@keyframes ssBlink { 0%, 92%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.1); } }
.ss-phone { position: absolute; right: 26px; bottom: 58px; width: 30px; height: 52px; border-radius: 8px; background: #0A2540; box-shadow: 0 8px 16px rgba(10,37,64,0.3); transform: rotate(-14deg); display: grid; place-items: center; animation: ssBob 4.5s ease-in-out infinite; }
.ss-phone::before { content: ''; position: absolute; inset: 3px; border-radius: 5px; background: linear-gradient(135deg, #18B26B, #06A89A); }
.ss-lens { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,0.4); }
.ss-reticle { position: absolute; left: 50%; top: 120px; width: 124px; height: 124px; transform: translate(-50%, -50%); }
.ss-reticle .b { position: absolute; width: 22px; height: 22px; border: 3px solid var(--primary); animation: ssPulse 2.4s ease-in-out infinite; }
.ss-reticle .tl { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.ss-reticle .tr { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.ss-reticle .bl { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.ss-reticle .br { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
@keyframes ssPulse { 50% { opacity: 0.45; } }
.ss-scan { position: absolute; left: 4px; right: 4px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--primary), transparent); box-shadow: 0 0 12px var(--primary); top: 6px; animation: ssScan 2.6s ease-in-out infinite; }
@keyframes ssScan { 0%, 100% { top: 6px; } 50% { top: 112px; } }
.ss-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px rgba(6,168,154,0.25); opacity: 0; }
.ss-dot.d1 { left: 50%; top: 102px; margin-left: -18px; animation: ssDot 2.6s ease-in-out infinite; }
.ss-dot.d2 { left: 50%; top: 102px; margin-left: 10px; animation: ssDot 2.6s ease-in-out infinite .15s; }
.ss-dot.d3 { left: 50%; top: 138px; margin-left: -4px; animation: ssDot 2.6s ease-in-out infinite .3s; }
@keyframes ssDot { 0%, 40% { opacity: 0; transform: scale(0.4); } 55%, 88% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
.ss-badge { position: absolute; right: 30px; top: 30px; width: 38px; height: 38px; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 18px rgba(0,184,156,0.45); transform: scale(0); animation: ssBadge 2.6s ease-in-out infinite; }
.ss-badge svg { width: 20px; height: 20px; }
@keyframes ssBadge { 0%, 60% { transform: scale(0); } 72% { transform: scale(1.18); } 80%, 96% { transform: scale(1); } 100% { transform: scale(0); } }
.ss-spark { position: absolute; width: 8px; height: 8px; background: var(--amber); border-radius: 2px; transform: rotate(45deg); opacity: 0; }
.ss-spark.k1 { left: 24px; top: 40px; animation: ssTwinkle 3s ease-in-out infinite; }
.ss-spark.k2 { right: 18px; top: 96px; width: 6px; height: 6px; background: var(--primary); animation: ssTwinkle 3s ease-in-out infinite 1s; }
.ss-spark.k3 { left: 36px; bottom: 70px; width: 5px; height: 5px; background: var(--pink); animation: ssTwinkle 3s ease-in-out infinite 1.8s; }
@keyframes ssTwinkle { 0%, 100% { opacity: 0; transform: rotate(45deg) scale(0.4); } 50% { opacity: 1; transform: rotate(45deg) scale(1); } }
.selfie-tips { display: flex; flex-direction: column; gap: 14px; position: relative; }

/* e-KYC aadhaar scan motion graphic */
.kyc-scan { text-align: center; padding: 8px 0 4px; }
.kyc-scan-card { position: relative; overflow: hidden; max-width: 400px; margin: 0 auto; }
.kyc-scanline { position: absolute; left: 0; right: 0; top: -24%; height: 24%; background: linear-gradient(180deg, transparent, rgba(6,168,154,0.28)); border-bottom: 2.5px solid var(--primary); box-shadow: 0 0 18px rgba(6,168,154,0.6); animation: kycScan 1.8s cubic-bezier(.45,.05,.55,.95) infinite; }
@keyframes kycScan { 0% { top: -24%; } 100% { top: 100%; } }
.kyc-scan-card::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(6,168,154,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(6,168,154,0.06) 1px, transparent 1px); background-size: 16px 16px; pointer-events: none; }
.kyc-checks { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin: 20px auto 4px; max-width: 420px; }
.kyc-chk { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--line); padding: 7px 13px; border-radius: 999px; opacity: 0; transform: translateY(6px); animation: kycChk .45s ease forwards; }
.kyc-chk-ic { width: 17px; height: 17px; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.kyc-chk-ic svg { width: 11px; height: 11px; }
.kyc-chk.c1 { animation-delay: .45s; } .kyc-chk.c2 { animation-delay: .9s; } .kyc-chk.c3 { animation-delay: 1.35s; } .kyc-chk.c4 { animation-delay: 1.8s; }
@keyframes kycChk { to { opacity: 1; transform: none; } }
.kyc-scan-caption { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-top: 16px; }
/* e-KYC success pop */
.kyc-success-ico { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 18px; background: var(--success); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(0,184,156,0.45); position: relative; animation: kycPop .5s cubic-bezier(.2,1.3,.5,1) both; }
.kyc-success-ico svg { width: 36px; height: 36px; }
.kyc-success-ico::before, .kyc-success-ico::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--success); opacity: 0.3; animation: ssRipple 2s ease-out infinite; }
.kyc-success-ico::after { animation-delay: 1s; }
@keyframes kycPop { from { transform: scale(0); } }
@media (prefers-reduced-motion: reduce) { .kyc-scanline { animation: none; top: 40%; } .kyc-chk { animation: none; opacity: 1; transform: none; } .kyc-success-ico, .kyc-success-ico::before, .kyc-success-ico::after { animation: none; } }
@media (prefers-reduced-motion: reduce) { .ss-person, .ss-phone, .ss-halo::before, .ss-halo::after, .ss-eye, .ss-scan, .ss-dot, .ss-badge, .ss-spark, .ss-reticle .b { animation: none; } .ss-badge { transform: scale(1); } .ss-dot { opacity: 1; } }

/* ============ LOAN OFFER ============ */
.offer-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: 30px; align-items: stretch; }
@media (max-width: 820px) { .offer-grid { grid-template-columns: 1fr; } }
.offer-controls { display: flex; flex-direction: column; justify-content: center; }
.slider-box { background: var(--bg-soft); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.slider-box + .slider-box { margin-top: 16px; }
.slider-box .sb-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.slider-box .sb-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.slider-box .sb-val { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--primary-dark); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: var(--line-2); outline: none; margin: 14px 0 8px; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); box-shadow: 0 4px 12px rgba(6,168,154,0.4); cursor: pointer; }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); box-shadow: 0 4px 12px rgba(6,168,154,0.4); cursor: pointer; }
.range-meta { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.offer-hint { margin-top: 18px; display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-2); background: var(--primary-light); border: 1px dashed rgba(6,168,154,0.4); padding: 11px 14px; border-radius: 11px; }
.offer-hint svg { width: 16px; height: 16px; color: var(--primary-dark); flex-shrink: 0; }

.offer-summary { background: linear-gradient(155deg, #0C3050 0%, #0A2540 60%, #0A1E36 100%); border-radius: var(--r-lg); padding: 28px; color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.offer-summary::before { content: ''; position: absolute; top: -70px; right: -70px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(6,168,154,0.5), transparent 65%); pointer-events: none; }
.os-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: relative; }
.os-label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.6); font-family: 'JetBrains Mono', monospace; }
.os-chip { font-size: 11.5px; color: rgba(255,255,255,0.72); background: rgba(255,255,255,0.1); padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.os-chip b { color: #fff; }
.os-total { font-size: 42px; font-weight: 800; letter-spacing: -0.035em; margin: 8px 0 18px; position: relative; }
.os-bar { height: 12px; border-radius: 999px; overflow: hidden; display: flex; background: rgba(255,255,255,0.12); position: relative; }
.os-seg { height: 100%; transition: width .45s cubic-bezier(.2,.8,.2,1); }
.os-seg.p { background: linear-gradient(90deg, #06A89A, #18B26B); }
.os-seg.i { background: linear-gradient(90deg, #FFC061, #F97316); }
.os-legend { display: flex; gap: 22px; margin: 14px 0 20px; flex-wrap: wrap; }
.os-leg { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.72); }
.os-leg b { color: #fff; font-weight: 700; }
.os-leg .d { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.os-leg .d.p { background: #10C49A; } .os-leg .d.i { background: #FFB547; }
.os-rows { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 15px; display: flex; flex-direction: column; gap: 9px; }
.os-row { display: flex; justify-content: space-between; font-size: 13.5px; color: rgba(255,255,255,0.68); }
.os-row b { color: #fff; font-weight: 600; }
.os-credit { margin-top: 18px; display: flex; align-items: center; gap: 14px; background: rgba(6,168,154,0.16); border: 1px solid rgba(6,168,154,0.4); border-radius: 14px; padding: 14px 16px; position: relative; }
.os-credit-ic { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #06A89A, #18B26B); display: grid; place-items: center; color: #fff; flex-shrink: 0; box-shadow: 0 8px 18px rgba(6,168,154,0.4); }
.os-credit-ic svg { width: 22px; height: 22px; }
.os-credit-amt { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.os-credit-sub { font-size: 11.5px; color: rgba(255,255,255,0.7); margin-top: 1px; }

/* ============ REFERENCES ============ */
.ref-block { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 22px; margin-bottom: 18px; }
.ref-block-head { font-size: 15px; font-weight: 700; color: var(--ink); padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.ref-block-head .rn { width: 26px; height: 26px; border-radius: 8px; background: var(--primary-light); color: var(--primary-dark); display: grid; place-items: center; font-size: 12px; font-weight: 700; }

/* ============ KFS / E-SIGN ============ */
.kfs-doc { border: 1.5px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.kfs-bar { background: var(--ink); color: #fff; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; }
.kfs-bar .t { font-size: 14px; font-weight: 700; white-space: nowrap; }
.kfs-bar .badge { font-size: 11px; font-family: 'JetBrains Mono', monospace; background: rgba(255,255,255,0.12); padding: 4px 10px; border-radius: 999px; }
.kfs-body { max-height: 340px; overflow-y: auto; padding: 6px 0; }
.kfs-section-t { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary-dark); padding: 16px 20px 6px; font-family: 'JetBrains Mono', monospace; }
.kfs-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 20px; font-size: 13px; color: var(--ink-2); border-bottom: 1px dashed var(--line-2); }
.kfs-row:last-child { border-bottom: 0; }
.kfs-row b { color: var(--ink); font-weight: 700; text-align: right; }
.kfs-row.hl { background: var(--primary-light); }
.sign-pad { border: 2px dashed var(--primary); border-radius: var(--r-lg); padding: 26px; text-align: center; background: #fff; margin-top: 8px; }
.sign-script { font-family: 'Caveat', cursive; font-size: 40px; font-weight: 700; color: var(--primary-dark); min-height: 52px; display: grid; place-items: center; }
.sign-script.placeholder { color: var(--ink-3); font-family: 'Plus Jakarta Sans'; font-size: 14px; font-weight: 500; }
.sign-line { height: 1.5px; background: var(--line); margin: 6px 30px 8px; }
.sign-label { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }

/* ============ STATUS TIMELINE ============ */
.status-wrap { text-align: center; }
.status-illu { width: 92px; height: 92px; margin: 0 auto 22px; border-radius: 50%; background: var(--primary-light); display: grid; place-items: center; color: var(--primary); position: relative; }
.status-illu::before, .status-illu::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--primary); opacity: 0.3; animation: ripple 2.4s ease-out infinite; }
.status-illu::after { animation-delay: 1.2s; }
@keyframes ripple { 0% { transform: scale(1); opacity: 0.4; } 100% { transform: scale(1.7); opacity: 0; } }
.status-illu svg { width: 42px; height: 42px; }
.timeline { display: flex; align-items: flex-start; justify-content: space-between; max-width: 760px; margin: 40px auto 0; position: relative; }
.timeline::before { content: ''; position: absolute; top: 22px; left: 8%; right: 8%; height: 3px; background: var(--line-2); border-radius: 3px; z-index: 0; }
.timeline-fill { position: absolute; top: 22px; left: 8%; height: 3px; background: var(--grad); border-radius: 3px; z-index: 1; width: 0%; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.tl-node { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.tl-dot { width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 3px solid var(--line); display: grid; place-items: center; color: var(--ink-3); transition: .3s; }
.tl-dot svg { width: 20px; height: 20px; }
.tl-node.done .tl-dot { background: var(--success); border-color: var(--success); color: #fff; }
.tl-node.current .tl-dot { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 0 0 6px rgba(10,37,64,0.1); animation: pulseDot 1.6s ease-in-out infinite; }
@keyframes pulseDot { 50% { box-shadow: 0 0 0 12px rgba(10,37,64,0); } }
.tl-label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); text-align: center; max-width: 90px; }
.tl-node.done .tl-label, .tl-node.current .tl-label { color: var(--ink); }
@media (max-width: 600px) { .tl-label { font-size: 10.5px; } .tl-dot { width: 38px; height: 38px; } }

/* ============ REPAY ============ */
.repay-hero { background: linear-gradient(120deg, #07314D, #0A2540); border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 30px 40px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.repay-hero .rh-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.repay-hero .status-chip { background: var(--success); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 13px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.loan-table { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-xl) var(--r-xl); overflow: hidden; }
@media (max-width: 600px) { .loan-table { grid-template-columns: 1fr; } }
.lt-cell { background: #fff; padding: 16px 22px; display: flex; flex-direction: column; gap: 3px; }
.lt-cell .k { font-size: 11.5px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.lt-cell .v { font-size: 15px; font-weight: 700; color: var(--ink); }
.lt-cell.pay { background: var(--primary-light); flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.lt-cell.pay .amt { font-size: 22px; font-weight: 800; color: var(--primary-dark); }

.pay-options { display: flex; flex-direction: column; gap: 14px; margin: 8px 0 24px; }
.pay-opt { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border: 1.5px solid var(--line); border-radius: var(--r-lg); cursor: pointer; transition: .15s; }
.pay-opt:hover { border-color: var(--primary); }
.pay-opt.active { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 0 0 3px rgba(6,168,154,0.1); }
.pay-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; display: grid; place-items: center; transition: .15s; }
.pay-opt.active .pay-radio { border-color: var(--primary); }
.pay-opt.active .pay-radio::after { content: ''; width: 11px; height: 11px; border-radius: 50%; background: var(--primary); }
.pay-logo { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; flex: 1; }
.pay-logo .razor { color: #0C2451; } .pay-logo .razor b { color: #3395FF; }
.pay-logo .payu { color: #00457C; } .pay-logo .payu b { color: #A3CE49; }
.pay-tag { font-size: 11px; color: var(--ink-3); font-weight: 600; }

/* ============ TOAST ============ */
.toast-wrap { position: fixed; top: 78px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 12px 18px 12px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-lg); animation: toastIn .4s cubic-bezier(.2,.8,.2,1) both; }
.toast .ti { width: 24px; height: 24px; border-radius: 50%; background: var(--success); display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.toast .ti svg { width: 14px; height: 14px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

/* ============ MODAL ============ */
.modal { position: fixed; inset: 0; z-index: 150; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(8,41,63,0.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal-dialog { position: relative; z-index: 1; background: #fff; border-radius: 22px; padding: 36px 34px 30px; max-width: 460px; width: 100%; text-align: center; box-shadow: var(--shadow-xl); animation: screenIn .35s ease both; }
.modal-ico { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; }
.modal-ico.warn { background: var(--danger-bg); color: var(--danger); }
.modal-ico.ok { background: var(--success-bg); color: var(--success); }
.modal-ico svg { width: 34px; height: 34px; }
.modal-title { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.modal-text { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; margin-bottom: 24px; }

/* spinner */
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.spinner.dark { border-color: rgba(10,37,64,0.2); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

/* aadhaar card */
.aadhaar-card { background: linear-gradient(135deg, #FFFDF6, #FFF6DE); border: 1.5px solid #F0DFAE; border-radius: var(--r-lg); padding: 22px; position: relative; overflow: hidden; }
.aadhaar-card::before { content: ''; position: absolute; top: -40px; right: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(255,181,71,0.3), transparent 70%); }
.aadhaar-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; position: relative; }
.aadhaar-emblem { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #FF9933, #138808); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; flex-shrink: 0; }
.aadhaar-org { font-size: 11px; color: var(--ink-3); font-weight: 600; } .aadhaar-org b { display: block; color: var(--ink); font-size: 14px; }
.aadhaar-name { font-size: 17px; font-weight: 800; color: var(--ink); position: relative; }
.aadhaar-meta { font-size: 12.5px; color: var(--ink-2); position: relative; }
.aadhaar-num { font-family: 'JetBrains Mono', monospace; font-size: 18px; letter-spacing: 0.12em; font-weight: 600; color: var(--ink); margin-top: 12px; position: relative; }

.consent-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 12px; }
.consent-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); }
.consent-list li .ci { width: 26px; height: 26px; border-radius: 8px; background: var(--primary-light); color: var(--primary-dark); display: grid; place-items: center; flex-shrink: 0; }
.consent-list li .ci svg { width: 14px; height: 14px; }

/* misc helpers */
.center-narrow { max-width: 440px; margin: 0 auto; }
.text-center { text-align: center; }
.muted { color: var(--ink-3); }
.divider { height: 1px; background: var(--line); margin: 22px 0; }
.value-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: var(--bg-soft); border-radius: 999px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--ink-2); }
.amount-big { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.spin-center { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 30px 0; }
.spin-center .big-spin { width: 54px; height: 54px; border: 4px solid var(--line-2); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
