/* ============================================================
   Nomzodlarni roʻyxatdan oʻtkazish tizimi — Design System
   Grotesk · neutral cool greys · sky-700 accent (#0369a1)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,400;0,500;0,600;0,700;0,800&family=Geist+Mono:wght@400;500;600&display=swap');

:root {
  /* ---- brand / accent (sky-700 family) ---- */
  --accent:        #0369a1;
  --accent-600:    #0277b8;
  --accent-700:    #075985;
  --accent-800:    #0c4a6e;
  --accent-tint:   #eef6fc;
  --accent-tint-2: #dcecf8;
  --accent-ring:   rgba(3,105,161,.16);

  /* ---- neutrals (cool slate) ---- */
  --ink:      #0f1b2d;
  --ink-2:    #3d4a5c;
  --ink-3:    #647387;
  --ink-4:    #93a0b1;
  --line:     #e4e9f0;
  --line-2:   #eef1f6;
  --surface:  #ffffff;
  --canvas:   #f4f7fb;
  --canvas-2: #eef2f8;

  /* ---- semantic ---- */
  --ok:       #0a8f5b;
  --ok-tint:  #e8f7ef;
  --ok-line:  #b8e6cd;
  --err:      #d5392f;
  --err-tint: #fdeeed;
  --err-line: #f4c5c1;
  --warn:     #b7791f;
  --warn-tint:#fdf4e3;

  /* ---- radii / shadow ---- */
  --r-sm: 8px;
  --r:    11px;
  --r-lg: 16px;
  --r-xl: 22px;
  --sh-1: 0 1px 2px rgba(15,27,45,.04), 0 1px 3px rgba(15,27,45,.05);
  --sh-2: 0 1px 2px rgba(15,27,45,.04), 0 10px 28px -14px rgba(15,27,45,.18);
  --sh-3: 0 2px 6px rgba(15,27,45,.06), 0 24px 56px -22px rgba(15,27,45,.28);

  --ff: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ff);
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.5;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: var(--accent-tint-2); }

/* ============================================================
   APP SHELL
   ============================================================ */
.app { min-height: 100vh; display: flex; flex-direction: column; }

/* ---- header ---- */
.hdr { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.hdr-bar { height: 3px; background: linear-gradient(90deg, var(--accent-800), var(--accent) 55%, var(--accent-600)); }
.hdr-in { max-width: 1180px; margin: 0 auto; padding: 14px 28px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand-txt { min-width: 0; }
.brand-ttl { font-size: 15px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-size: 11.5px; color: var(--ink-3); font-weight: 500; letter-spacing: .02em; text-transform: uppercase; }
.hdr-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* emblem */
.emblem { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--accent-700), var(--accent-800)); box-shadow: var(--sh-1), inset 0 1px 0 rgba(255,255,255,.18); }
.emblem svg { width: 24px; height: 24px; }

/* lang switch */
.seg { display: inline-flex; background: var(--canvas-2); border: 1px solid var(--line); border-radius: 9px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--ink-3); cursor: pointer; transition: .15s; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--accent-700); box-shadow: var(--sh-1); }

.ghost-btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: 13.5px; cursor: pointer; transition: .15s; }
.ghost-btn:hover { border-color: var(--ink-4); background: #fafbfd; }
.ghost-btn svg { width: 17px; height: 17px; }

/* ============================================================
   STEPPER
   ============================================================ */
.stepper-wrap { background: var(--surface); border-bottom: 1px solid var(--line); }
.stepper { max-width: 1180px; margin: 0 auto; padding: 20px 28px; display: flex; align-items: flex-start; gap: 0; }
.step { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.step:last-child { flex: none; }
.step-dot { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-4); transition: .25s; }
.step-dot svg { width: 17px; height: 17px; }
.step-meta { min-width: 0; }
.step-k { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-4); }
.step-t { font-size: 13.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: .2s; }
.step-line { flex: 1; height: 1.5px; background: var(--line); margin: 0 14px; border-radius: 2px; position: relative; overflow: hidden; }
.step-line i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.step.done .step-line i, .step.active ~ .step .step-line i { }
.step.active .step-dot { border-color: var(--accent); color: var(--accent-700); background: var(--accent-tint); box-shadow: 0 0 0 4px var(--accent-ring); }
.step.active .step-t { color: var(--ink); }
.step.done .step-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.step.done .step-t { color: var(--ink-2); }
.step.done + .step .step-line i, .step.done .step-line i { transform: scaleX(1); }

/* mobile compact stepper */
.stepper-m { display: none; }

/* ============================================================
   MAIN / LAYOUT
   ============================================================ */
.main { flex: 1; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 36px 28px 64px; }
.page-head { margin-bottom: 26px; }
.page-kicker { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-700); margin-bottom: 8px; }
.page-ttl { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
.page-sub { color: var(--ink-3); margin: 8px 0 0; font-size: 15px; max-width: 60ch; }

.cols { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 26px; align-items: start; }

/* ---- card ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); margin-bottom: 22px; }
.card-h { padding: 18px 22px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: 12px; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.card-h .ci { width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent-700); }
.card-h .ci svg { width: 18px; height: 18px; }
.card-h h3 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.card-h p { margin: 1px 0 0; font-size: 12.5px; color: var(--ink-3); }
.card-b { padding: 22px; }

/* aside summary */
.aside { position: sticky; top: 92px; }
.mini { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 20px; }
.mini h4 { margin: 0 0 4px; font-size: 14px; font-weight: 700; }
.mini .mp { font-size: 12.5px; color: var(--ink-3); margin: 0 0 16px; }
.prog-ring { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.prog-ring svg { width: 54px; height: 54px; transform: rotate(-90deg); flex: none; }
.prog-ring .pn { font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.prog-ring .pl { font-size: 12px; color: var(--ink-3); }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.checklist li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); }
.checklist li .cb { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; display: grid; place-items: center; }
.checklist li.on { color: var(--ink); font-weight: 500; }
.checklist li.on .cb { background: var(--ok); border-color: var(--ok); }
.checklist li.on .cb svg { width: 11px; height: 11px; color: #fff; }
.help-note { margin-top: 18px; padding: 13px 14px; background: var(--accent-tint); border-radius: var(--r); font-size: 12.5px; color: var(--accent-800); display: flex; gap: 9px; }
.help-note svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }

/* ============================================================
   FORM FIELDS
   ============================================================ */
.grid { display: grid; gap: 18px 18px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: 1fr 1fr 1fr; }
.col-span { grid-column: 1 / -1; }

.field label.lbl { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.field label.lbl .req { color: var(--err); font-weight: 700; }
.field label.lbl .opt { color: var(--ink-4); font-weight: 500; font-size: 12px; }

.inp { width: 100%; height: 46px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); transition: .15s; outline: none; font-size: 14.5px; }
.inp::placeholder { color: var(--ink-4); }
.inp:hover { border-color: var(--ink-4); }
.inp:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
textarea.inp { height: auto; min-height: 92px; padding: 12px 14px; resize: vertical; line-height: 1.55; }
select.inp { 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='%23647387' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; cursor: pointer; }

.inp-wrap { position: relative; }
.inp-wrap .lead { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-4); pointer-events: none; display: flex; }
.inp-wrap .lead svg { width: 18px; height: 18px; }
.inp-wrap .lead.txt { font-size: 14.5px; color: var(--ink-3); font-weight: 500; }
.inp-wrap.has-lead .inp { padding-left: 42px; }
.inp-wrap.has-lead-txt .inp { padding-left: 56px; }

.hint { font-size: 12px; color: var(--ink-4); margin-top: 6px; }
.err-msg { display: none; align-items: center; gap: 5px; font-size: 12px; color: var(--err); margin-top: 6px; font-weight: 500; }
.err-msg svg { width: 13px; height: 13px; }
.field.invalid .inp { border-color: var(--err); background: var(--err-tint); }
.field.invalid .inp:focus { box-shadow: 0 0 0 4px rgba(213,57,47,.14); }
.field.invalid .err-msg { display: flex; }
.field.valid .inp { border-color: var(--ok-line); }

/* radio pills (gender) */
.pills { display: flex; gap: 10px; }
.pill { flex: 1; position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border: 1.5px solid var(--line); border-radius: var(--r); font-weight: 600; font-size: 14px; color: var(--ink-2); transition: .15s; cursor: pointer; }
.pill span svg { width: 18px; height: 18px; color: var(--ink-4); }
.pill input:hover + span { border-color: var(--ink-4); }
.pill input:checked + span { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-800); }
.pill input:checked + span svg { color: var(--accent-700); }
.pill input:focus-visible + span { box-shadow: 0 0 0 4px var(--accent-ring); }

/* ============================================================
   SEARCHABLE SELECT (region / district)
   ============================================================ */
.combo { position: relative; }
.combo-btn { width: 100%; height: 46px; padding: 0 40px 0 14px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); text-align: left; cursor: pointer; transition: .15s; display: flex; align-items: center; font-size: 14.5px; position: relative; }
.combo-btn:hover { border-color: var(--ink-4); }
.combo-btn .ph { color: var(--ink-4); }
.combo-btn .chev { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-4); transition: .2s; display: flex; }
.combo-btn .chev svg { width: 18px; height: 18px; }
.combo.open .combo-btn { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.combo.open .combo-btn .chev { transform: translateY(-50%) rotate(180deg); }
.combo-btn:disabled { background: var(--canvas); color: var(--ink-4); cursor: not-allowed; }
.field.invalid .combo-btn { border-color: var(--err); background: var(--err-tint); }

.pop { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 100%; width: max-content; max-width: 280px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-3); overflow: hidden; }
.combo.up .pop { top: auto; bottom: calc(100% + 6px); }
.pop-search { padding: 10px; border-bottom: 1px solid var(--line-2); position: relative; }
.pop-search svg { position: absolute; left: 21px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-4); }
.pop-search input { width: 100%; height: 38px; padding: 0 12px 0 36px; border: 1px solid var(--line); border-radius: var(--r-sm); outline: none; font-size: 14px; background: var(--canvas); color: var(--ink); }
.pop-search input:focus { border-color: var(--accent); background: var(--canvas); color: var(--ink); }
.pop-list { max-height: 300px; overflow-y: auto; overflow-x: hidden; padding: 6px; }
.pop-list::-webkit-scrollbar { width: 4px; }
.pop-list::-webkit-scrollbar-track { background: transparent; }
.pop-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.pop-list::-webkit-scrollbar-thumb:hover { background: var(--ink-4); }
.pop-list .opt { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: var(--r-sm); cursor: pointer; font-size: 14.5px; color: var(--ink-2); white-space: normal; word-break: break-word; }
.pop-list .opt:hover, .pop-list .opt.cur { background: var(--accent-tint); color: var(--accent-800); }
.pop-list .opt .tick { margin-left: auto; color: var(--accent); display: none; }
.pop-list .opt.sel { color: var(--accent-800); font-weight: 600; }
.pop-list .opt.sel .tick { display: flex; }
.pop-list .opt .tick svg { width: 16px; height: 16px; }
.pop-empty { padding: 22px; text-align: center; color: var(--ink-4); font-size: 13px; }

/* mobile bottom-sheet picker */
.sheet-layer { position: fixed; inset: 0; z-index: 60; }
.sheet-backdrop { position: fixed; inset: 0; background: rgba(15,27,45,.45); }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: var(--surface);
  border-radius: 22px 22px 0 0; box-shadow: 0 -12px 44px rgba(15,27,45,.28); max-height: 86vh;
  display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); }
.sheet-grab { width: 42px; height: 4px; border-radius: 3px; background: var(--line); margin: 10px auto 2px; flex: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 18px 12px; border-bottom: 1px solid var(--line-2); flex: none; }
.sheet-head .sh-t { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.sheet-head .sh-x { width: 36px; height: 36px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink-3); }
.sheet-head .sh-x svg { width: 18px; height: 18px; }
.sheet .pop-search { padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.sheet .pop-search svg { left: 27px; width: 18px; height: 18px; }
.sheet .pop-search input { height: 46px; font-size: 15.5px; padding-left: 42px; border-radius: var(--r); background: var(--canvas); color: var(--ink); }
.sheet .pop-list { max-height: none; flex: 1; overflow-y: auto; padding: 8px 12px 18px; -webkit-overflow-scrolling: touch; }
.sheet .pop-list .opt { padding: 14px 14px; font-size: 16px; border-radius: 12px; }
.sheet .pop-list .opt .tick svg { width: 19px; height: 19px; }

/* ============================================================
   PHONE VERIFICATION
   ============================================================ */
.verify-row { display: flex; gap: 10px; align-items: flex-end; }
.verify-row .field { flex: 1; }
.btn-send { height: 46px; padding: 0 18px; white-space: nowrap; }

/* inline "send code" button, aligned to the input itself */
.phone-verify-wrap .inp { padding-right: 150px; }
.otp-send { position: absolute; right: 5px; top: 5px; height: 36px; padding: 0 16px; border: 0; border-radius: 8px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 13.5px; letter-spacing: -.01em; cursor: pointer;
  white-space: nowrap; transition: .15s; box-shadow: 0 1px 2px rgba(3,105,161,.35); }
.otp-send:hover { background: var(--accent-700); }
.otp-send:disabled { background: var(--canvas-2); color: var(--ink-4); cursor: not-allowed; box-shadow: none; }
.otp-box { margin-top: 14px; padding: 18px; border: 1.5px dashed var(--accent-tint-2); background: var(--accent-tint); border-radius: var(--r); }
.otp-box .ot { font-size: 13px; color: var(--accent-800); margin: 0 0 12px; display: flex; align-items: center; gap: 8px; font-weight: 500; }
.otp-box .ot svg { width: 16px; height: 16px; flex: none; }
.otp-inputs { display: flex; gap: 9px; }
.otp-inputs input { width: 46px; height: 54px; text-align: center; font-size: 22px; font-weight: 700; font-family: var(--mono); border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; outline: none; transition: .15s; color: var(--ink); }
.otp-inputs input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.otp-inputs input.filled { border-color: var(--accent-600); }
.otp-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 12.5px; color: var(--ink-3); }
.linkb { background: none; border: 0; color: var(--accent-700); font-weight: 600; cursor: pointer; padding: 0; font-size: 12.5px; }
.linkb:disabled { color: var(--ink-4); cursor: default; }
.verified-tag { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px; background: var(--ok-tint); border: 1px solid var(--ok-line); color: var(--ok); font-size: 12.5px; font-weight: 600; }
.verified-tag svg { width: 15px; height: 15px; }

/* ============================================================
   DOCUMENT UPLOAD CARDS
   ============================================================ */
.docs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.doc { min-width: 0; border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 16px; transition: .18s; background: var(--surface); position: relative; }
.doc-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 13px; }
.doc-ic { width: 40px; height: 40px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--canvas-2); color: var(--ink-3); transition: .18s; }
.doc-ic svg { width: 20px; height: 20px; }
.doc-meta { min-width: 0; flex: 1; }
.doc-name { font-size: 14px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.doc-req { font-size: 11.5px; color: var(--ink-4); margin-top: 2px; }
.doc-req .reqd { color: var(--err); font-weight: 700; }

/* dropzone (empty) */
.dz { border: 1.5px dashed var(--line); border-radius: var(--r); padding: 18px 14px; text-align: center; cursor: pointer; transition: .18s; background: var(--canvas); }
.dz:hover { border-color: var(--accent); background: var(--accent-tint); }
.dz .dz-ic { width: 36px; height: 36px; margin: 0 auto 8px; border-radius: 9px; display: grid; place-items: center; background: var(--surface); color: var(--accent-700); border: 1px solid var(--line); }
.dz .dz-ic svg { width: 18px; height: 18px; }
.dz .dz-t { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.dz .dz-t b { color: var(--accent-700); }
.dz .dz-h { font-size: 11.5px; color: var(--ink-4); margin-top: 3px; }
.doc.drag .dz { border-color: var(--accent); background: var(--accent-tint-2); transform: scale(1.005); }
.doc.drag .doc-ic { background: var(--accent-tint); color: var(--accent-700); }

/* uploading */
.up-state { display: flex; align-items: center; gap: 13px; }
.up-prev { width: 48px; height: 48px; border-radius: 9px; flex: none; overflow: hidden; background: var(--canvas-2); display: grid; place-items: center; border: 1px solid var(--line); position: relative; }
.up-prev img { width: 100%; height: 100%; object-fit: cover; }
.up-prev .ext { font-size: 10px; font-weight: 700; font-family: var(--mono); color: var(--ink-3); }
.up-prev.pdf { background: var(--err-tint); }
.up-prev.pdf .ext { color: var(--err); }
.up-info { flex: 1; min-width: 0; }
.up-fname { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; display: flex; align-items: center; gap: 7px; }
.bar { height: 6px; border-radius: 4px; background: var(--canvas-2); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .2s linear; }

/* uploaded success */
.doc.ok { border-color: var(--ok-line); background: linear-gradient(0deg, var(--ok-tint), var(--ok-tint)); }
.doc.ok .doc-ic { background: var(--ok-tint); color: var(--ok); }
.doc.err { border-color: var(--err-line); }
.doc.err .doc-ic { background: var(--err-tint); color: var(--err); }
.up-acts { display: flex; gap: 6px; }
.iconbtn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink-3); transition: .15s; }
.iconbtn:hover { border-color: var(--ink-4); color: var(--ink); }
.iconbtn.danger:hover { border-color: var(--err-line); color: var(--err); background: var(--err-tint); }
.iconbtn svg { width: 16px; height: 16px; }
.up-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--ok); }
.up-badge svg { width: 14px; height: 14px; }
.up-badge.err { color: var(--err); }

/* ============================================================
   REVIEW
   ============================================================ */
.rev-card { padding: 0; }
.rev-sec { padding: 20px 22px; border-bottom: 1px solid var(--line-2); }
.rev-sec:last-child { border-bottom: 0; }
.rev-head { display: flex; align-items: center; margin-bottom: 14px; }
.rev-head h4 { margin: 0; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.rev-head h4 .ci { width: 28px; height: 28px; border-radius: 8px; background: var(--accent-tint); color: var(--accent-700); display: grid; place-items: center; }
.rev-head h4 .ci svg { width: 15px; height: 15px; }
.rev-edit { margin-left: auto; }
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.dl .di { min-width: 0; }
.dl dt { font-size: 11.5px; color: var(--ink-4); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 3px; }
.dl dd { margin: 0; font-size: 14.5px; font-weight: 500; color: var(--ink); word-break: break-word; }
.dl dd.empty { color: var(--ink-4); font-weight: 400; font-style: italic; }
.rev-files { display: flex; flex-direction: column; gap: 9px; }
.rev-file { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); }
.rev-file .fi { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; background: var(--ok-tint); color: var(--ok); flex: none; }
.rev-file .fi svg { width: 16px; height: 16px; }
.rev-file .fn { font-size: 13px; font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rev-file .fs { font-size: 12px; color: var(--ink-3); font-family: var(--mono); }
.rev-file.miss .fi { background: var(--canvas-2); color: var(--ink-4); }
.rev-file.miss .fn { color: var(--ink-4); font-weight: 500; }

.consent { display: flex; gap: 12px; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: var(--r-lg); background: var(--canvas); cursor: pointer; transition: .15s; align-items: flex-start; }
.consent:hover { border-color: var(--accent); }
.consent.on { border-color: var(--accent); background: var(--accent-tint); }
.consent input { position: absolute; opacity: 0; }
.consent .cbx { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--ink-4); flex: none; display: grid; place-items: center; transition: .15s; margin-top: 1px; background: #fff; }
.consent.on .cbx { background: var(--accent); border-color: var(--accent); }
.consent .cbx svg { width: 14px; height: 14px; color: #fff; opacity: 0; transition: .12s; }
.consent.on .cbx svg { opacity: 1; }
.consent .ct { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.consent.invalid { border-color: var(--err); background: var(--err-tint); }

/* ============================================================
   SUCCESS
   ============================================================ */
.success { max-width: 600px; margin: 20px auto; text-align: center; }
.suc-badge { width: 96px; height: 96px; margin: 0 auto 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-tint); position: relative; }
.suc-badge::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--ok-line); opacity: .5; }
.suc-badge svg { width: 46px; height: 46px; color: var(--ok); }
.suc-check { stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw .6s .15s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 10px; line-height: 1.12; }
.success > p { color: var(--ink-3); font-size: 16px; margin: 0 auto 30px; max-width: 46ch; }
.suc-ticket { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); text-align: left; overflow: hidden; }
.suc-ticket .tk-top { padding: 20px 24px; display: flex; align-items: center; gap: 16px; border-bottom: 1px dashed var(--line); position: relative; }
.suc-ticket .tk-top::after, .suc-ticket .tk-top::before { content: ''; position: absolute; bottom: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--canvas); }
.suc-ticket .tk-top::before { left: -9px; }
.suc-ticket .tk-top::after { right: -9px; }
.tk-id-l { font-size: 11.5px; color: var(--ink-4); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.tk-id { font-size: 25px; font-weight: 700; font-family: var(--mono); letter-spacing: .01em; color: var(--accent-800); margin-top: 3px; }
.tk-qr { width: 64px; height: 64px; margin-left: auto; border-radius: 10px; flex: none; }
.tk-rows { padding: 18px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tk-rows .di dt { font-size: 11px; color: var(--ink-4); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.tk-rows .di dd { margin: 3px 0 0; font-size: 14px; font-weight: 600; }
.suc-acts { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.suc-meta { margin-top: 22px; font-size: 12.5px; color: var(--ink-4); display: flex; align-items: center; justify-content: center; gap: 7px; }
.suc-meta svg { width: 15px; height: 15px; }

/* ============================================================
   FOOTER NAV / BUTTONS
   ============================================================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 26px; border-radius: var(--r); border: 1.5px solid transparent; font-weight: 700; font-size: 15px; letter-spacing: -.01em; cursor: pointer; transition: .16s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(3,105,161,.4), 0 8px 18px -8px rgba(3,105,161,.5); }
.btn-primary:hover { background: var(--accent-700); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--ink-4); background: #fafbfd; }
.btn-soft { background: var(--accent-tint); color: var(--accent-800); }
.btn-soft:hover { background: var(--accent-tint-2); }
.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 9px; }

.formnav { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.formnav .spacer { flex: 1; }
.formnav .err-banner { display: none; }

.err-banner { display: flex; align-items: center; gap: 9px; padding: 12px 16px; background: var(--err-tint); border: 1px solid var(--err-line); border-radius: var(--r); color: var(--err); font-size: 13.5px; font-weight: 500; margin-bottom: 22px; }
.err-banner svg { width: 18px; height: 18px; flex: none; }

/* fade between steps */
.step-view { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }

/* ============================================================
   RESPONSIVE  (mobile)
   ============================================================ */
@media (max-width: 860px) {
  body { font-size: 15px; }
  .hdr-in { padding: 11px 16px; gap: 10px; }
  .brand-ttl { font-size: 13px; white-space: normal; line-height: 1.18; }
  .brand-sub { display: none; }
  .ghost-btn .lbl-txt { display: none; }
  .ghost-btn { padding: 0 10px; }
  .emblem { width: 36px; height: 36px; }
  .emblem svg { width: 20px; height: 20px; }

  .stepper { display: none; }
  .stepper-m { display: block; padding: 14px 16px; }
  .stepper-m .smr { display: flex; align-items: center; gap: 12px; }
  .stepper-m .smr .sring { width: 46px; height: 46px; flex: none; position: relative; }
  .stepper-m .smr .sring svg { width: 46px; height: 46px; transform: rotate(-90deg); }
  .stepper-m .smr .sn { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; font-weight: 800; }
  .stepper-m .sk { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-4); }
  .stepper-m .st { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
  .stepper-m .snext { font-size: 12px; color: var(--ink-3); margin-top: 1px; }

  .wrap { padding: 22px 16px 90px; }
  .page-ttl { font-size: 22px; }
  .page-sub { font-size: 14px; }
  .cols { grid-template-columns: 1fr; }
  .aside { display: none; }

  .card-b { padding: 16px; }
  .card-h { padding: 15px 16px; }
  .grid.g2, .grid.g3 { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: 1fr; }
  .dl, .tk-rows { grid-template-columns: 1fr; }
  .rev-sec { padding: 16px; }

  .verify-row { flex-direction: column; align-items: stretch; }
  .btn-send { width: 100%; }
  .otp-inputs input { flex: 1; width: auto; min-width: 0; }

  /* sticky footer nav on mobile */
  .formnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--bg-2); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 12px 16px; margin: 0; gap: 10px; }
  .main { padding-bottom: 80px; }
  .btn { flex: 1; height: 50px; }
  .formnav .btn-ghost { flex: 0 0 auto; padding: 0 16px; }
  .success { margin-top: 8px; }
  .suc-acts .btn { flex: 1 1 100%; }

  /* prevent stray horizontal scroll on narrow screens */
  .wrap { overflow-x: clip; }
  /* apply wizard vacancy banner stacks */
  .vac-banner .card-b { flex-wrap: wrap; }
  /* review: keep long values inside the card */
  .dl dd, .rev-file .fn, .rev-file .fs { overflow-wrap: anywhere; }
  .rev-head { flex-wrap: wrap; gap: 8px; }
  .rev-head .rev-edit { margin-left: auto; }
}
