/* =========================================================
   PayLogic merchant onboarding - design system
   Mirrors the live PayLogic merchant portal look:
   Helvetica type, turquoise primary, dark-teal sidebar shell,
   neutral surfaces, pill badges, 8-10px radii.
   ========================================================= */
:root {
  /* Turquoise */
  --teal: #08A0AD;          /* Turquoise 600 - accents, focus, icons */
  --teal-light: #06BAC7;    /* Turquoise 500 - primary actions */
  --teal-dark: #078592;     /* Turquoise 700 - text on light, pressed */
  --side: #055660;          /* Turquoise 800 - sidebar shell */
  --side-deep: #033B43;     /* Turquoise 900 */
  /* Blue */
  --blue: #215DC7;
  --blue-dark: #1A46A4;
  /* Neutrals */
  --navy: #0D0D0D;          /* heading */
  --white: #FFFFFF;
  --bg: #F5F5F5;            /* page surface */
  --surface: #FAFAFA;       /* main panel */
  --border: #E6E6E6;
  --field-border: #D1D1D1;
  --text: #333333;          /* body */
  --text-2: #595959;        /* sub heading */
  --hint: #7F7F7F;

  --grad-1: #06BAC7;
  --grad-2: #215DC7;

  --teal-50: rgba(6, 186, 199, .08);
  --teal-100: rgba(6, 186, 199, .2);
  --blue-50: rgba(33, 93, 199, .08);
  --blue-100: rgba(33, 93, 199, .18);
  --navy-50: rgba(0, 0, 0, .04);

  /* status */
  --ok: #058F64; --ok-bg: #ECFDF5; --ok-bd: rgba(5, 143, 100, .3);
  --err: #D92E3A;
  --err-50: #FEF5F7;
  --err-100: rgba(237, 61, 72, .35);
  --warn: #B27F00;
  --warn-50: #FFFCEB;

  --radius: 8px;
  --radius-field: 10px;
  --shadow-1: 0 1px 2px 0 rgba(0, 0, 0, .08);
  --shadow-2: 0 2px 4px 0 rgba(0, 0, 0, .1), 0 1px 2px rgba(0, 0, 0, .05);
  --shadow-3: 0 12px 40px rgba(0, 0, 0, .2);
  --shadow-container: 0 2px 24px -10px rgba(0, 0, 0, .1);

  --font-display: Helvetica, "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
  --font-body: Helvetica, "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
  --font-btn: Helvetica, "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
  --hdr-h: 74px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; margin: 0; letter-spacing: 0; line-height: 1.25; color: var(--navy); }
h1 { font-size: 32px; line-height: 40px; } h2 { font-size: 24px; line-height: 32px; } h3 { font-size: 20px; line-height: 28px; } h4 { font-size: 16px; line-height: 24px; font-family: var(--font-body); font-weight: 700; }
p { margin: 0; }
button { font: inherit; color: inherit; }
a { color: var(--blue); }
body, html { background: var(--bg); }
:focus-visible { outline: 3px solid rgba(6, 186, 199, .55); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-2); }
.small { font-size: 14px; } .xs { font-size: 12.5px; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.hide { display: none !important; }

/* ---------- Layout: portal shell ---------- */
.app { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.ph .topbar-right { margin-left: auto; }
.ph { position: sticky; top: 0; z-index: 25; background: var(--bg); height: var(--hdr-h); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 32px 0 50px; }
.logo-link { display: inline-block; line-height: 0; text-decoration: none; }
.logo-img { display: block; width: 188px; height: 28px; max-width: 100%; }
.ob { flex: 1; display: grid; grid-template-columns: 270px minmax(0, 1fr); padding: 0 32px 32px; align-items: start; }
.sidebar {
  position: sticky; top: var(--hdr-h); height: calc(100vh - var(--hdr-h) - 32px); min-height: 520px; background: var(--side);
  border-radius: 16px 0 0 16px; padding: 24px 16px 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; overflow-y: auto;
}
.main { display: flex; flex-direction: column; min-width: 0; min-height: calc(100vh - var(--hdr-h) - 32px); background: var(--surface); border-radius: 0 16px 16px 0; box-shadow: var(--shadow-container); }

.vstepper { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.vstep { display: block; }
.vstep-btn { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 16px; width: 100%; min-height: 40px; padding: 10px 12px; border-radius: 8px; cursor: pointer; color: #CFFAFE; font-size: 14px; line-height: 20px; transition: background .15s; }
.vstep-btn:hover { background: rgba(255, 255, 255, .07); }
.vstep-btn[aria-disabled="true"] { cursor: not-allowed; }
.vstep-btn[aria-disabled="true"]:hover { background: transparent; }
.vstep-btn:focus-visible { outline: 2px solid #ECFEFF; outline-offset: 2px; }
.vdot { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; line-height: 1; border: 1px solid #CFFAFE; color: #CFFAFE; box-sizing: border-box; }
.vdot i { font-size: 10px; }
.vstep.active .vstep-btn { background: rgba(236, 254, 255, .2); color: #ECFEFF; gap: 12px; }
.vstep.active .vdot { background: #ECFEFF; border-color: #ECFEFF; color: var(--side); }
.vstep.done .vstep-btn { color: #A5F3F6; }
.vstep.done .vdot { background: #A5F3F6; border-color: #A5F3F6; color: var(--side); }
.vlabel { min-width: 0; }
.vlabel .t { display: block; }
.vlabel .s { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.side-bottom { display: flex; flex-direction: column; gap: 12px; }
.side-note { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 8px; background: rgba(6, 186, 199, .2); color: #ECFEFF; font-size: 12px; line-height: 16px; }
.side-note i { font-size: 16px; margin-top: 0; flex: none; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 32px 0; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 12px; min-width: 0; }
.autosave { font-size: 13px; color: var(--text-2); display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.autosave i { color: var(--ok); }
.autosave.saving i { animation: spin 1s linear infinite; color: var(--teal); }
.content { width: 100%; max-width: 980px; margin: 0; padding: 24px 32px 40px; flex: 1; }
.page-head { margin-bottom: 28px; }
.ph-step { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.pill-badge { align-self: flex-start; display: inline-flex; font-size: 12px; line-height: 16px; padding: 4px 8px; border-radius: 999px; background: #ECFEFF; color: var(--teal-dark); border: 1px solid rgba(6, 186, 199, .3); }
.pbar { height: 8px; border-radius: 999px; background: var(--border); overflow: hidden; }
.pbar span { display: block; height: 100%; border-radius: 999px; background: #22D3D8; transition: width .3s; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 8px; }
.page-head h1 { font-size: 24px; line-height: 32px; }
.page-head p { margin-top: 6px; color: var(--text-2); font-size: 15px; max-width: 680px; }
.bottombar {
  position: sticky; bottom: 0; z-index: 15; background: rgba(250, 250, 250, .96); backdrop-filter: blur(8px); border-radius: 0 0 16px 0;
  border-top: 1px solid var(--border); padding: 14px 32px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.bottombar .grp { display: flex; gap: 12px; align-items: center; }
.mobile-header { display: none; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-btn); font-weight: 600; font-size: 16px; line-height: 1; border-radius: var(--radius); border: 1px solid transparent;
  padding: 0 22px; height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; transition: transform .08s, box-shadow .2s, background .2s, opacity .2s;
  text-decoration: none; white-space: nowrap; user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad-1); color: #fff; box-shadow: 0 2px 8px rgba(9, 148, 164, .3); }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(9, 148, 164, .38); }
.btn-blue { background: var(--grad-2); color: #fff; box-shadow: 0 2px 8px rgba(33, 93, 199, .28); }
.btn-blue:hover { box-shadow: 0 6px 18px rgba(33, 93, 199, .36); }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--border); box-shadow: var(--shadow-1); }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); }
.btn-ghost { background: transparent; color: var(--blue); padding: 0 12px; }
.btn-ghost:hover { background: var(--blue-50); }
.btn-danger { background: #fff; color: var(--err); border-color: var(--err-100); }
.btn-danger:hover { background: var(--err-50); }
.btn-sm { height: 36px; font-size: 14px; padding: 0 14px; gap: 7px; }
.btn-lg { height: 52px; padding: 0 30px; }
.btn[disabled], .btn.is-loading { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn-block { width: 100%; }
.icon-btn { all: unset; cursor: pointer; width: 34px; height: 34px; border-radius: 8px; display: inline-grid; place-items: center; color: var(--text-2); }
.icon-btn:hover { background: var(--navy-50); color: var(--navy); }
.icon-btn:focus-visible { outline: 3px solid rgba(6, 186, 199, .55); }

/* ---------- Cards & sections ---------- */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.section { padding: 26px; margin-bottom: 20px; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.section-head h3 { font-size: 22px; }
.section-head p { color: var(--text-2); font-size: 14.5px; margin-top: 4px; }
.section-head .num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--teal-50); color: var(--teal); font-size: 14px; font-weight: 800; margin-right: 10px; vertical-align: 2px; font-family: var(--font-body); }
.grid { display: grid; gap: 18px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid .span2 { grid-column: 1 / -1; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.divider { height: 1px; background: var(--border); margin: 22px 0; border: 0; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; position: relative; }
.field > label, .lbl { font-size: 14px; font-weight: 600; color: var(--navy); display: flex; gap: 4px; align-items: center; }
.req { color: var(--err); }
.opt { font-weight: 500; color: var(--text-2); font-size: 12.5px; margin-left: 4px; }
.control { position: relative; display: flex; align-items: center; }
.control > i.lead { position: absolute; left: 13px; color: var(--text-2); font-size: 14px; pointer-events: none; }
.control > .prefix { position: absolute; left: 1px; top: 1px; bottom: 1px; display: flex; align-items: center; padding: 0 12px; background: var(--bg); border-right: 1px solid var(--border); border-radius: 7px 0 0 7px; color: var(--text-2); font-size: 15px; font-weight: 600; }
.control > .trail { position: absolute; right: 12px; font-size: 14px; display: flex; gap: 6px; align-items: center; }
.input, .select, .textarea {
  width: 100%; height: 46px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--navy); background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
.textarea { height: auto; min-height: 92px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.has-lead .input { padding-left: 38px; }
.has-prefix .input { padding-left: 62px; }
.has-trail .input { padding-right: 76px; }
.input::placeholder, .textarea::placeholder { color: #94A3B8; }
.input:hover, .select:hover, .textarea:hover { border-color: #CBD5E1; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-100); }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2364748B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea, .field.invalid .combo-btn { border-color: var(--err); box-shadow: 0 0 0 4px var(--err-50); }
.field.valid .input { border-color: var(--teal); }
.input[readonly], .input:disabled, .select:disabled { background: var(--bg); color: var(--text-2); cursor: not-allowed; }
.helper { font-size: 13px; color: var(--text-2); }
.error-msg { font-size: 13px; color: var(--err); font-weight: 600; display: none; gap: 6px; align-items: flex-start; }
.field.invalid .error-msg { display: flex; }
.field.invalid .helper { display: none; }
.ok-ico { color: var(--teal); }

/* searchable select */
.combo { position: relative; }
.combo-btn { all: unset; box-sizing: border-box; width: 100%; height: 46px; padding: 0 38px 0 14px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; cursor: pointer; display: flex; align-items: center; font-size: 16px; position: relative; }
.combo-btn:hover { border-color: #CBD5E1; }
.combo-btn:focus-visible, .combo.open .combo-btn { border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-100); outline: none; }
.combo-btn::after { content: ""; position: absolute; right: 14px; width: 12px; height: 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2364748B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat; }
.combo-btn .ph { color: #94A3B8; }
.pop { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-2); overflow: hidden; display: none; }
.combo.open .pop { display: block; }
.pop-search { padding: 10px; border-bottom: 1px solid var(--border); position: relative; }
.pop-search i { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); color: var(--text-2); font-size: 13px; }
.pop-search input { width: 100%; height: 38px; padding: 0 12px 0 34px; border: 1px solid var(--border); border-radius: 8px; font: inherit; font-size: 15px; }
.pop-search input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-100); }
.pop-list { max-height: 232px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; }
.pop-list li { padding: 9px 10px; border-radius: 6px; cursor: pointer; font-size: 15px; display: flex; justify-content: space-between; gap: 8px; }
.pop-list li:hover, .pop-list li.hl { background: var(--teal-50); }
.pop-list li[aria-selected="true"] { color: var(--teal); font-weight: 700; }
.pop-empty { padding: 14px; color: var(--text-2); font-size: 14px; text-align: center; }

/* date picker */
.cal { padding: 14px; min-width: 292px; right: auto; }
.cal-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.cal-head select { height: 34px; border: 1px solid var(--border); border-radius: 8px; padding: 0 8px; font: inherit; font-size: 14px; font-weight: 600; background: #fff; }
.cal-head .sp { flex: 1; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-grid .dow { font-size: 12px; color: var(--text-2); font-weight: 700; padding: 6px 0; }
.cal-grid button { all: unset; cursor: pointer; height: 36px; display: grid; place-items: center; border-radius: 8px; font-size: 14px; font-weight: 600; }
.cal-grid button:hover:not([disabled]) { background: var(--teal-50); }
.cal-grid button.sel { background: var(--grad-1); color: #fff; }
.cal-grid button.today { box-shadow: inset 0 0 0 1.5px var(--teal); }
.cal-grid button[disabled] { color: #CBD5E1; cursor: not-allowed; }
.cal-grid button:focus-visible { outline: 3px solid rgba(6, 186, 199, .55); }

/* checkbox + radio */
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; line-height: 1.5; }
.check input { position: absolute; opacity: 0; }
.check .box { flex: none; width: 22px; height: 22px; border: 1.5px solid #CBD5E1; border-radius: 6px; display: grid; place-items: center; background: #fff; transition: all .15s; margin-top: 1px; }
.check .box i { font-size: 11px; color: #fff; opacity: 0; transform: scale(.6); transition: all .15s; }
.check input:checked + .box { background: var(--grad-1); border-color: var(--teal); }
.check input:checked + .box i { opacity: 1; transform: none; }
.check input:focus-visible + .box { outline: 3px solid rgba(6, 186, 199, .55); outline-offset: 2px; }
.check.invalid .box { border-color: var(--err); box-shadow: 0 0 0 4px var(--err-50); }
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 3px; gap: 3px; flex-wrap: wrap; }
.seg button { all: unset; cursor: pointer; padding: 8px 14px; border-radius: 6px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--teal); box-shadow: var(--shadow-1); }
.seg button:focus-visible { outline: 3px solid rgba(6, 186, 199, .55); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.badge i { font-size: 11px; }
.b-verified { background: var(--teal-50); color: #067683; border-color: var(--teal-100); }
.b-pending { background: var(--navy-50); color: var(--text-2); border-color: var(--border); }
.b-progress { background: var(--blue-50); color: var(--blue); border-color: var(--blue-100); }
.b-rejected { background: var(--err-50); color: var(--err); border-color: var(--err-100); }
.b-warn { background: var(--warn-50); color: var(--warn); border-color: rgba(214, 140, 0, .3); }
.b-dark { background: var(--navy); color: #fff; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Product cards ---------- */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pcard { all: unset; box-sizing: border-box; cursor: pointer; position: relative; padding: 22px; background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; gap: 14px; transition: all .18s; }
.pcard:hover { border-color: var(--teal); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.pcard:focus-visible { outline: 3px solid rgba(6, 186, 199, .55); outline-offset: 2px; }
.pcard[aria-pressed="true"] { border-color: var(--teal); background: linear-gradient(180deg, var(--teal-50), #fff 70%); box-shadow: 0 0 0 4px var(--teal-100); }
.pico { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; color: var(--teal); background: var(--teal-50); transition: all .18s; }
.pcard[aria-pressed="true"] .pico { background: var(--grad-1); color: #fff; }
.pcard h4 { font-size: 18px; }
.pcard p { color: var(--text-2); font-size: 14.5px; }
.pcard ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.pcard li { font-size: 12.5px; font-weight: 600; color: var(--text-2); background: var(--bg); border: 1px solid var(--border); padding: 3px 9px; border-radius: 999px; }
.psel { position: absolute; top: 18px; right: 18px; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #CBD5E1; display: grid; place-items: center; color: #fff; font-size: 12px; background: #fff; transition: all .18s; }
.pcard[aria-pressed="true"] .psel { background: var(--grad-1); border-color: var(--teal); }
.pcard .psel i { opacity: 0; }
.pcard[aria-pressed="true"] .psel i { opacity: 1; }

/* ---------- Document cards ---------- */
.docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.doc { border: 1.5px dashed #CBD5E1; border-radius: var(--radius); padding: 18px; background: #fff; display: flex; flex-direction: column; gap: 12px; transition: all .15s; position: relative; }
.doc.drag { border-color: var(--teal); background: var(--teal-50); }
.doc.has { border-style: solid; border-color: var(--border); }
.doc.verified { border-color: var(--teal-100); background: linear-gradient(180deg, var(--teal-50), #fff 60%); }
.doc.rejected { border-color: var(--err-100); background: linear-gradient(180deg, var(--err-50), #fff 60%); }
.doc.missing-flag { border-color: var(--err); }
.doc-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.doc-title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.doc-title small { display: block; font-weight: 500; font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 14px 8px; cursor: pointer; border-radius: 8px; color: var(--text-2); font-size: 13.5px; }
.drop:hover { background: var(--teal-50); }
.drop i { font-size: 22px; color: var(--teal); }
.drop b { color: var(--blue); }
.file-row { display: flex; gap: 12px; align-items: center; min-width: 0; }
.thumb { flex: none; width: 48px; height: 56px; border-radius: 6px; background: var(--bg); border: 1px solid var(--border); display: grid; place-items: center; color: var(--teal); font-size: 20px; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-meta { min-width: 0; flex: 1; }
.file-meta .n { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta .m { font-size: 12.5px; color: var(--text-2); }
.progress { height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--grad-1); border-radius: 99px; transition: width .2s; }
.doc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.reason { font-size: 13px; color: var(--err); background: var(--err-50); border: 1px solid var(--err-100); border-radius: 8px; padding: 9px 11px; display: flex; gap: 8px; }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; font-size: 14.5px; align-items: flex-start; }
.alert > i { margin-top: 3px; }
.alert .at { font-weight: 700; display: block; }
.alert-info { background: var(--blue-50); border-color: var(--blue-100); } .alert-info > i { color: var(--blue); }
.alert-success { background: var(--teal-50); border-color: var(--teal-100); } .alert-success > i { color: var(--teal); }
.alert-error { background: var(--err-50); border-color: var(--err-100); } .alert-error > i { color: var(--err); }
.alert-warn { background: var(--warn-50); border-color: rgba(214, 140, 0, .3); } .alert-warn > i { color: var(--warn); }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert li { margin: 2px 0; }
.alert li a, .alert li button { all: unset; color: var(--err); text-decoration: underline; cursor: pointer; font-weight: 600; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }

/* ---------- Verification cards ---------- */
.vcard { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; background: #fff; display: flex; gap: 16px; align-items: flex-start; }
.vcard + .vcard { margin-top: 12px; }
.vcard .vi { flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--navy-50); color: var(--text-2); display: grid; place-items: center; font-size: 18px; }
.vcard.ok { border-color: var(--teal-100); background: linear-gradient(90deg, var(--teal-50), #fff 50%); } .vcard.ok .vi { background: var(--grad-1); color: #fff; }
.vcard.run { border-color: var(--blue-100); background: linear-gradient(90deg, var(--blue-50), #fff 50%); } .vcard.run .vi { background: var(--grad-2); color: #fff; }
.vcard.fail { border-color: var(--err-100); background: linear-gradient(90deg, var(--err-50), #fff 50%); } .vcard.fail .vi { background: var(--err); color: #fff; }
.vbody { flex: 1; min-width: 0; }
.vbody h4 { font-size: 16px; }
.vbody p { font-size: 14px; color: var(--text-2); margin-top: 2px; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 20px; margin-top: 12px; }
.kv div span { display: block; font-size: 12px; color: var(--text-2); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.kv div b { font-size: 14.5px; font-weight: 700; word-break: break-word; }
.meter { height: 8px; background: var(--border); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.meter > span { display: block; height: 100%; background: var(--grad-1); }
.meter.low > span { background: var(--err); }

/* ---------- Lists (directors etc.) ---------- */
.plist { display: flex; flex-direction: column; gap: 10px; }
.prow { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--grad-2); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.prow .who { flex: 1; min-width: 0; }
.prow .who b { display: block; font-weight: 700; }
.prow .who span { font-size: 13px; color: var(--text-2); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.empty { border: 1.5px dashed #CBD5E1; border-radius: var(--radius); padding: 22px; text-align: center; color: var(--text-2); font-size: 14.5px; }
.empty.invalid { border-color: var(--err); color: var(--err); background: var(--err-50); }
.sumbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; padding: 12px 14px; background: var(--bg); border-radius: var(--radius); font-size: 14px; }

/* KYC person */
.person { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; margin-bottom: 16px; overflow: hidden; }
.person-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--border); background: var(--bg); flex-wrap: wrap; }
.person-head .who { flex: 1; min-width: 180px; }
.person-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.sub { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.sub-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.sub-h h4 { font-size: 15.5px; display: flex; gap: 10px; align-items: center; }
.sub-h h4 i { color: var(--teal); }
.otp { display: flex; gap: 8px; }
.otp input { width: 44px; height: 52px; text-align: center; font-size: 20px; font-weight: 700; border: 1px solid var(--border); border-radius: 8px; font-family: var(--font-body); }
.otp input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-100); }

/* slots */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
.slot { all: unset; box-sizing: border-box; cursor: pointer; text-align: center; padding: 11px 8px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-weight: 600; background: #fff; }
.slot:hover { border-color: var(--teal); }
.slot[aria-pressed="true"] { background: var(--grad-1); color: #fff; border-color: var(--teal); }
.slot[disabled] { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.slot:focus-visible { outline: 3px solid rgba(6, 186, 199, .55); outline-offset: 2px; }

/* review */
.rv { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.rv:last-child { border-bottom: 0; }
.rv .ic { flex: none; width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal); }
.rv .tx { flex: 1; min-width: 160px; }
.rv .tx b { display: block; font-size: 15px; } .rv .tx span { font-size: 13.5px; color: var(--text-2); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.tl { display: flex; gap: 16px; position: relative; padding-bottom: 24px; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--border); }
.tl:last-child::before { display: none; }
.tl.done::before { background: var(--teal); }
.tl .d { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--border); color: var(--text-2); font-size: 13px; z-index: 1; }
.tl.done .d { background: var(--grad-1); color: #fff; }
.tl.active .d { background: var(--grad-2); color: #fff; box-shadow: 0 0 0 5px var(--blue-100); }
.tl b { display: block; font-size: 15.5px; } .tl span { font-size: 14px; color: var(--text-2); }

/* ---------- Full-page screens ---------- */
.stage { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); position: relative; }
.stage-top { display: flex; justify-content: space-between; align-items: center; padding: 20px 40px; gap: 12px; flex-wrap: wrap; }
.stage-body { flex: 1; display: grid; place-items: start center; padding: 24px 24px 60px; }
.stage-card { width: 100%; max-width: 760px; padding: 40px; }
.hero-glow { position: absolute; inset: 0 0 auto 0; height: 360px; background: radial-gradient(60% 100% at 50% 0%, var(--teal-100), transparent 70%), radial-gradient(40% 80% at 90% 0%, var(--blue-100), transparent 70%); pointer-events: none; }
.stage > * { position: relative; }
.stage > .hero-glow { position: absolute; }
.welcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.wopt { text-align: left; padding: 22px; border: 1.5px solid var(--border); border-radius: var(--radius); background: #fff; cursor: pointer; display: flex; flex-direction: column; gap: 10px; transition: all .18s; }
.wopt:hover { border-color: var(--teal); box-shadow: var(--shadow-2); }
.wopt .pico { width: 44px; height: 44px; font-size: 18px; }
.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.feat div { font-size: 13.5px; color: var(--text-2); display: flex; gap: 10px; align-items: flex-start; }
.feat i { color: var(--teal); margin-top: 3px; }
.success-ring { width: 88px; height: 88px; border-radius: 50%; background: var(--grad-1); color: #fff; display: grid; place-items: center; font-size: 38px; margin: 12px auto 40px; box-shadow: 0 0 0 10px var(--teal-100), 0 0 0 22px var(--teal-50); animation: pop .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.center { text-align: center; }
.idcard { background: var(--navy); color: #fff; border-radius: 12px; padding: 26px; margin: 28px 0 20px; position: relative; overflow: hidden; text-align: left; }
.idcard::before { content: ""; position: absolute; width: 280px; height: 280px; right: -80px; top: -120px; border-radius: 50%; background: var(--grad-1); opacity: .5; }
.idcard::after { content: ""; position: absolute; width: 220px; height: 220px; left: -90px; bottom: -150px; border-radius: 50%; background: var(--grad-2); opacity: .7; }
.idcard > * { position: relative; z-index: 1; }
.idcard .lab { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; font-weight: 700; }
.idcard .big { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: .04em; margin-top: 4px; }
.idcard .two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.idcard .two b { font-size: 16px; display: block; margin-top: 2px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.chip { display: inline-flex; gap: 7px; align-items: center; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); padding: 5px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }

/* ---------- Modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(13, 3, 27, .55); backdrop-filter: blur(3px); z-index: 100; display: grid; place-items: center; padding: 20px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 12px; width: 100%; max-width: 480px; box-shadow: var(--shadow-3); max-height: calc(100vh - 40px); display: flex; flex-direction: column; animation: rise .22s cubic-bezier(.2, .9, .3, 1); }
@keyframes rise { from { transform: translateY(14px) scale(.98); opacity: 0; } }
.modal.wide { max-width: 640px; } .modal.xl { max-width: 860px; }
.modal-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 24px 0; }
.modal-h h3 { font-size: 20px; }
.modal-b { padding: 16px 24px; overflow-y: auto; }
.modal-f { padding: 16px 24px 22px; display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.modal-ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; margin: 0 24px; margin-top: 24px; background: var(--blue-50); color: var(--blue); }
.modal-ico.danger { background: var(--err-50); color: var(--err); }
.modal-ico.ok { background: var(--teal-50); color: var(--teal); }
.preview-doc { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; min-height: 340px; display: grid; place-items: center; overflow: hidden; }
.preview-doc img { max-width: 100%; max-height: 62vh; display: block; }
.paper { width: min(360px, 90%); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-2); padding: 28px 24px; border-radius: 4px; margin: 20px; }
.paper .ln { height: 8px; background: var(--border); border-radius: 4px; margin: 10px 0; }
.paper .ln.t { height: 14px; width: 60%; background: var(--teal-100); }
.paper .stamp { display: inline-block; border: 2px solid var(--teal); color: var(--teal); font-weight: 800; font-size: 12px; letter-spacing: .1em; padding: 3px 8px; border-radius: 4px; transform: rotate(-6deg); margin-top: 10px; }

/* camera / video kyc */
.cam { position: relative; background: var(--navy); border-radius: 12px; aspect-ratio: 4 / 3; overflow: hidden; display: grid; place-items: center; color: #fff; }
.cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.cam .ph-face { position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 45%, rgba(33, 93, 199, .55), rgba(13, 3, 27, 0) 70%); }
.cam .oval { position: relative; width: 44%; aspect-ratio: 3 / 4; border: 3px dashed rgba(255, 255, 255, .7); border-radius: 50%; display: grid; place-items: center; font-size: 56px; color: rgba(255, 255, 255, .5); transition: all .3s; }
.cam .oval.ok { border-style: solid; border-color: var(--teal-light); box-shadow: 0 0 0 6px rgba(6, 186, 199, .25); }
.cam .prompt { position: absolute; bottom: 14px; left: 14px; right: 14px; text-align: center; background: rgba(13, 3, 27, .7); padding: 10px 12px; border-radius: 8px; font-weight: 700; font-size: 15px; }
.cam .rec { position: absolute; top: 12px; left: 12px; background: rgba(13, 3, 27, .7); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; font-weight: 700; display: flex; gap: 6px; align-items: center; }
.cam .rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.vk-room { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.vk-agent { position: absolute; right: 12px; top: 12px; width: 28%; aspect-ratio: 4 / 3; border-radius: 8px; background: var(--grad-2); border: 2px solid rgba(255, 255, 255, .5); display: grid; place-items: center; font-size: 11px; text-align: center; padding: 4px; font-weight: 700; z-index: 2; }
.vk-agent i { font-size: 20px; display: block; margin-bottom: 2px; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--text-2); }
.checklist li i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--border); color: #fff; font-size: 10px; flex: none; margin-top: 1px; }
.checklist li.done { color: var(--navy); } .checklist li.done i { background: var(--grad-1); }
.checklist li.now { color: var(--navy); font-weight: 700; } .checklist li.now i { background: var(--grad-2); }

/* toast */
#toast-root { position: fixed; right: 20px; top: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 40px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--teal); border-radius: var(--radius); padding: 13px 14px; box-shadow: var(--shadow-2); animation: slide .25s cubic-bezier(.2, .9, .3, 1); font-size: 14.5px; }
.toast.error { border-left-color: var(--err); } .toast.info { border-left-color: var(--blue); } .toast.warn { border-left-color: #D68C00; }
.toast > i { margin-top: 3px; color: var(--teal); } .toast.error > i { color: var(--err); } .toast.info > i { color: var(--blue); } .toast.warn > i { color: var(--warn); }
.toast b { display: block; }
.toast.out { opacity: 0; transform: translateX(20px); transition: all .25s; }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }

/* ---------- Admin ---------- */
.admin { min-height: 100vh; background: var(--bg); }
.admin-top { background: var(--navy); color: #fff; padding: 14px 32px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-top .logo, .admin-top .logo-word { color: #fff; }
.admin-wrap { max-width: 1180px; margin: 0 auto; padding: 28px 32px 60px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 20px 0; }
.kpi { padding: 18px; } .kpi span { font-size: 13px; color: var(--text-2); font-weight: 600; } .kpi b { display: block; font-family: var(--font-display); font-size: 30px; margin-top: 4px; }
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg); white-space: nowrap; }
.tbl td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr.click { cursor: pointer; } .tbl tbody tr.click:hover { background: var(--teal-50); }
.drawer-ov { position: fixed; inset: 0; background: rgba(13, 3, 27, .5); z-index: 90; display: flex; justify-content: flex-end; animation: fade .15s; }
.drawer { width: min(640px, 100%); background: #fff; height: 100%; display: flex; flex-direction: column; box-shadow: var(--shadow-3); animation: drawer .25s cubic-bezier(.2, .9, .3, 1); }
@keyframes drawer { from { transform: translateX(40px); opacity: 0; } }
.drawer-h { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.drawer-b { padding: 20px 24px; overflow-y: auto; flex: 1; }
.drawer-f { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.dl { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; flex-wrap: wrap; }
.dl:last-child { border-bottom: 0; }
.h5 { font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); margin: 22px 0 6px; }

/* design system page */
.ds { max-width: 1100px; margin: 0 auto; padding: 32px 32px 80px; }
.ds h2 { margin: 44px 0 6px; font-size: 26px; }
.ds .lead { color: var(--text-2); margin-bottom: 18px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.sw { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.sw .c { height: 84px; } .sw div:last-child { padding: 10px 12px; font-size: 13px; } .sw b { display: block; font-size: 14px; }
.demo { padding: 24px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.type-row { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.type-row code, .code { font-size: 12.5px; color: var(--text-2); background: var(--bg); padding: 2px 8px; border-radius: 6px; border: 1px solid var(--border); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .ph { padding: 0 20px; }
  .ob { grid-template-columns: 1fr; padding: 0 16px 16px; }
  .sidebar { display: none; }
  .main { border-radius: 16px; min-height: calc(100vh - var(--hdr-h) - 16px); }
  .mobile-header { display: block; padding: 16px 20px 0; }
  .mh-dots { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 4px; scrollbar-width: none; }
  .mh-dots::-webkit-scrollbar { display: none; }
  .mh-dots button { all: unset; cursor: pointer; flex: none; display: flex; gap: 8px; align-items: center; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; color: var(--text-2); background: #fff; }
  .mh-dots button .n { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--field-border); display: grid; place-items: center; font-size: 12px; }
  .mh-dots button.done .n { background: var(--teal-light); border-color: var(--teal-light); color: #fff; } .mh-dots button.done { color: var(--navy); }
  .mh-dots button.active { border-color: var(--teal-light); color: var(--teal-dark); background: #ECFEFF; } .mh-dots button.active .n { background: var(--side); border-color: var(--side); color: #fff; }
  .topbar { padding: 16px 20px 0; }
  .content { padding: 20px 20px 32px; }
  .bottombar { padding: 12px 20px; border-radius: 0 0 16px 16px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  h1 { font-size: 28px; line-height: 36px; } .page-head h1 { font-size: 22px; line-height: 30px; } h3, .section-head h3 { font-size: 18px; }
  .ph { padding: 0 16px; --hdr-h: 60px; }
  .logo-img { width: 130px; height: auto; }
  .ph { gap: 8px; }
  .ob { padding: 0 8px 8px; }
  .content { padding: 18px 16px 28px; }
  .section { padding: 18px 16px; }
  .grid, .grid-3, .products, .docs, .welcome-grid, .feat, .vk-room { grid-template-columns: 1fr; }
  .section-head { flex-wrap: wrap; } .section-head > div:first-child { flex: 1 1 100%; } .timeline[aria-label="Onboarding steps"] { grid-template-columns: 1fr 1fr !important; }
  .topbar { padding: 14px 16px 0; gap: 8px; } .ph .lbl-long { display: none; } .autosave .txt { display: none; } .topbar-right { gap: 6px; flex: none; }
  .mobile-header { padding: 14px 16px 0; }
  .bottombar { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .bottombar .grp { display: contents; }
  .bottombar .btn { width: 100%; padding: 0 10px; }
  .bottombar .draft-btn { grid-column: 1 / -1; order: 3; height: 40px; }
  .bottombar .prev-btn { order: 1; } .bottombar .next-btn { order: 2; }
  .stage-card { padding: 26px 18px; } .stage-top { padding: 16px; }
  .prow { flex-wrap: wrap; } .vcard { flex-direction: column; gap: 12px; }
  .idcard .big { font-size: 22px; } .idcard .two { grid-template-columns: 1fr; }
  .modal-f .btn { flex: 1; } .overlay { padding: 12px; align-items: end; } .modal { max-height: 92vh; }
  .admin-wrap { padding: 20px 16px 40px; } .admin-top { padding: 12px 16px; } .kpis { grid-template-columns: 1fr 1fr; } .ds { padding: 20px 16px 60px; }
  .otp input { width: 40px; height: 48px; }
  .rv { display: grid; grid-template-columns: 36px 1fr; gap: 8px 12px; align-items: start; }
  .rv .tx { min-width: 0; } .rv .tx span { word-break: break-word; }
  .rv > .badge, .rv > .btn { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

.linkbtn { all: unset; color: var(--blue); cursor: pointer; text-decoration: underline; font-weight: 600; }
.linkbtn:focus-visible { outline: 3px solid rgba(6, 186, 199, .55); border-radius: 4px; }
.demo-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.shake { animation: shake .25s 2; }


/* ---------- Portal theme overrides (match merchant-dev.paylogic.in) ---------- */
.btn { height: 42px; font-size: 14px; font-weight: 700; padding: 0 20px; border-radius: 8px; box-shadow: none; }
.btn-sm { height: 34px; font-size: 13px; padding: 0 14px; }
.btn-lg { height: 48px; font-size: 15px; }
.btn-primary { background: var(--teal-light); border-color: var(--teal-light); color: #ECFEFF; box-shadow: var(--shadow-1); }
.btn-primary:hover { background: #08A0AD; border-color: #08A0AD; box-shadow: var(--shadow-1); }
.btn-primary:active { background: #078592; border-color: #078592; }
.btn-blue { background: var(--blue); color: #fff; box-shadow: var(--shadow-1); } .btn-blue:hover { background: var(--blue-dark); box-shadow: var(--shadow-1); }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--field-border); box-shadow: var(--shadow-1); }
.btn-secondary:hover { border-color: var(--teal-light); color: var(--teal-dark); }
.btn-ghost { color: var(--teal-dark); } .btn-ghost:hover { background: var(--teal-50); }
.card { border-radius: 12px; border-color: var(--border); background: #fff; box-shadow: var(--shadow-1); }
.field > label, .lbl { font-size: 14px; font-weight: 400; color: var(--text); }
.input, .select, .textarea, .combo-btn { border-color: var(--field-border); border-radius: var(--radius-field); color: var(--text); }
.input:hover, .select:hover, .textarea:hover, .combo-btn:hover { border-color: #A6A6A6; }
.input:focus, .select:focus, .textarea:focus, .combo-btn:focus-visible, .combo.open .combo-btn { border-color: var(--teal-light); box-shadow: 0 0 0 3px rgba(6, 186, 199, .12); }
.input::placeholder, .textarea::placeholder { color: var(--hint); }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea, .field.invalid .combo-btn { border-color: #ED3D48; background: var(--err-50); box-shadow: none; }
.field.valid .input { border-color: var(--field-border); }
.error-msg { font-weight: 400; }
.pop, .modal, .drawer { border-radius: 12px; }
.pop { border-radius: 10px; }
.badge { height: 24px; font-weight: 400; font-size: 12px; }
.b-verified { background: var(--ok-bg); color: #047857; border-color: var(--ok-bd); }
.b-progress { background: #ECFEFF; color: var(--teal-dark); border-color: rgba(6, 186, 199, .35); }
.b-dark { background: var(--side); color: #fff; }
.alert { border-radius: 10px; }
.alert-success { background: var(--ok-bg); border-color: var(--ok-bd); } .alert-success > i { color: var(--ok); }
.alert-info { background: #ECFEFF; border-color: rgba(8, 160, 173, .45); } .alert-info > i { color: var(--teal); }
.toast { border-left-color: var(--ok); } .toast > i { color: var(--ok); }
.toast.info { border-left-color: var(--teal); } .toast.info > i { color: var(--teal); }
.vcard.ok { border-color: var(--ok-bd); background: linear-gradient(90deg, var(--ok-bg), #fff 50%); } .vcard.ok .vi { background: var(--ok); }
.vcard.run { border-color: rgba(6, 186, 199, .35); background: linear-gradient(90deg, #ECFEFF, #fff 50%); } .vcard.run .vi { background: var(--teal-light); }
.doc.verified { border-color: var(--ok-bd); background: linear-gradient(180deg, var(--ok-bg), #fff 60%); }
.pcard { border-radius: 12px; }
.pcard[aria-pressed="true"] { box-shadow: 0 0 0 3px rgba(6, 186, 199, .2); }
.tl.active .d { background: var(--teal-light); box-shadow: 0 0 0 5px var(--teal-100); }
.checklist li.now i { background: var(--teal-light); }
.avatar { background: var(--side); }
.idcard { background: var(--side); border-radius: 16px; }
.idcard::before { background: var(--teal-light); opacity: .35; } .idcard::after { background: var(--side-deep); opacity: .7; }
.cam { background: var(--side-deep); }
.vk-agent { background: var(--side); }
.overlay, .drawer-ov { background: rgba(13, 13, 13, .5); }
.stage, .admin { background: var(--bg); }
.hero-glow { background: radial-gradient(60% 100% at 50% 0%, rgba(6, 186, 199, .12), transparent 70%); }
.stage-top { padding: 17px 32px 17px 50px; }
.admin-top { background: var(--bg); color: var(--text); padding: 17px 32px 17px 50px; }
.admin-top .row { gap: 12px; }
.success-ring { background: var(--ok); box-shadow: 0 0 0 10px rgba(5, 143, 100, .14), 0 0 0 22px rgba(5, 143, 100, .07); }
.kpi b { font-family: var(--font-display); }
.tbl th { background: var(--surface); }
.linkbtn { color: var(--teal-dark); }
@media (max-width: 720px) { .stage-top, .admin-top { padding: 0 16px; min-height: 60px; } .btn { height: 44px; } .btn-sm { height: 36px; } }

/* Cashfree Secure ID mode chip */
.cf-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.cf-chip[hidden] { display: none; }
.cf-chip i { font-size: 11px; }
.cf-live { background: #E6F7F5; color: #067683; border-color: rgba(8, 160, 173, .35); }
.cf-sandbox { background: #FFF6DB; color: #8A6100; border-color: rgba(178, 127, 0, .35); }
.cf-demo { background: #EEF1F4; color: #4B5563; border-color: #D5DBE1; }

/* ---------- merchant sign-in ---------- */
.auth-card { max-width: 460px; padding: 36px 34px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; text-align: left; }
.auth-note { margin: 16px 0 0; text-align: left; }
.auth-form > .auth-note { margin: 0; }
.auth-foot { text-align: center; font-size: 13px; color: var(--text-2); padding: 0 16px 28px; }
.auth-card .link, .auth-foot .link { color: var(--blue); font-weight: 600; text-decoration: none; }
.auth-card .link:hover { text-decoration: underline; }
.auth-card .divider { display: flex; align-items: center; gap: 12px; height: auto; background: none; margin: 22px 0 16px; font-size: 13px; color: var(--text-2); }
.auth-card .divider::before, .auth-card .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.pw-rules { list-style: none; margin: -6px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--text-2); }
.pw-rules li { display: flex; gap: 8px; align-items: center; }
.pw-rules li.ok { color: var(--ok, #058F64); }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; color: var(--text-2); border-radius: 8px; }
.pw-eye:hover { color: var(--navy); background: var(--bg); }
.demo-inbox { margin-top: 20px; border: 1px dashed var(--border); border-radius: 10px; padding: 10px 14px; background: var(--bg); font-size: 14px; text-align: left; }
.demo-inbox summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.demo-inbox ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.demo-inbox li { display: flex; flex-direction: column; gap: 2px; }
.demo-inbox li a { color: var(--blue); font-weight: 600; word-break: break-word; }
@media (max-width: 560px) { .auth-card { padding: 26px 18px; } }
