/* Uttra Retailer surface stylesheet (v0.12.0, bank-style, full width). Self-contained; not shared with any other surface. System fonts only. */
:root {
  --bg: #F2F5F6; --surface: #FFFFFF; --line: #D5DEE0; --line2: #E5ECED; --ink: #0F2230; --muted: #4F6470;
  --side: #0A2A33; --brand: #0B5D55; --brand-ink: #FFFFFF; --gold: #D9A441;
  --ok: #0B6B43; --ok-bg: #DDF3E8; --warn: #8A5A00; --warn-bg: #FCEFD2; --err: #B3261E; --err-bg: #FBE9E7; --focus: #1666C5;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1 { margin: 0 0 12px; font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -.2px; }
.ico { flex: none; }
.mono { font-family: var(--mono); letter-spacing: .03em; }

/* brand */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--gold); color: #1B1303; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.brand-name { font-weight: 600; font-size: 20px; color: #fff; }
.brand-lg .brand-mark { width: 42px; height: 42px; font-size: 22px; border-radius: 11px; }
.brand-lg .brand-name { font-size: 24px; }

/* forms */
label { display: block; font-weight: 500; font-size: 14px; margin: 16px 0 6px; }
.opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=tel], input[type=password] { width: 100%; height: 50px; padding: 0 14px; font: inherit; font-size: 17px; color: var(--ink); background: #fff; border: 1.5px solid #8FA5A0; border-radius: 10px; }
input:focus { border-color: var(--brand); }
.phonefield { display: flex; align-items: stretch; border: 1.5px solid #8FA5A0; border-radius: 10px; background: #fff; overflow: hidden; }
.phonefield:focus-within { border-color: var(--brand); outline: 3px solid var(--focus); outline-offset: 1px; }
.phonefield .cc { display: flex; align-items: center; padding: 0 12px; color: var(--muted); background: #F6F9F9; border-right: 1px solid var(--line); }
.phonefield input { border: 0; border-radius: 0; flex: 1; min-width: 0; outline: 0; }
#otp { height: 56px; font-family: var(--mono); font-size: 24px; letter-spacing: 10px; text-align: center; }
.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin-top: 20px; padding: 0 18px; font: inherit; font-weight: 600; text-align: center; text-decoration: none; color: var(--brand-ink); background: var(--brand); border: 1.5px solid var(--brand); border-radius: 10px; cursor: pointer; }
.btn:hover { filter: brightness(1.1); }
.btn-ghost { background: #fff; color: var(--brand); }
.btn-inline { display: inline-flex; width: auto; margin-top: 14px; padding: 0 22px; }
form.inline { margin-top: 6px; }
form.inline .btn { margin-top: 10px; }
.lead { margin: 0 0 8px; color: var(--muted); font-size: 15px; }
.small { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.flash { padding: 11px 14px; border-radius: 10px; margin: 0 0 14px; font-size: 15px; }
.flash-ok { background: var(--ok-bg); color: var(--ok); }
.flash-warn { background: var(--warn-bg); color: var(--warn); }
.flash-err { background: var(--err-bg); color: var(--err); }
.field-err { color: var(--err); font-size: 14px; margin: 6px 0 0; }
.warn { color: var(--warn); }
.facts { margin: 0 0 6px; }
.facts dt { font-size: 13px; color: var(--muted); margin-top: 12px; }
.facts dd { margin: 2px 0 0; font-weight: 600; font-size: 18px; }
.idbox { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; margin: 8px 0 14px; background: var(--brand); color: #fff; border-radius: 14px; }
.idbox .small { color: #BFE0DA; margin: 0; }
.idbox strong { font-size: 28px; letter-spacing: .06em; font-family: var(--mono); }

/* centered auth layout (sign-up, notices) */
.authbar { padding: 16px 24px; background: var(--side); }
.authmain { display: flex; justify-content: center; padding: 32px 16px 56px; }
.authwrap { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 20px; }
.card { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px 20px; }
.foot { margin: 24px 0 0; padding-top: 12px; border-top: 1px solid var(--line2); font-size: 13px; color: var(--muted); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; }
.steps li { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }
.steps .bar { height: 5px; border-radius: 3px; background: #C9D6D8; }
.steps li.now { color: var(--ink); font-weight: 600; }
.steps li.now .bar, .steps li.done .bar { background: var(--brand); }
.steps li.done { color: var(--ok); }

/* split sign-in */
.split { display: flex; flex-wrap: wrap; min-height: 100vh; }
.split-brand { flex: 1 1 420px; min-width: 0; background: var(--side); color: #CFE0E1; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.split-copy { max-width: 440px; }
.split-copy h2 { margin: 0; font-size: 36px; line-height: 1.15; font-weight: 600; color: #fff; letter-spacing: -.4px; }
.split-copy p { margin: 16px 0 0; font-size: 17px; line-height: 1.6; }
.split-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.split-points li { display: flex; align-items: center; gap: 12px; }
.split-points .ico { color: var(--gold); }
.split-main { flex: 1 1 440px; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.card-login { max-width: 420px; padding: 34px 30px 20px; }

/* signed-in shell */
.shell { display: flex; min-height: 100vh; }
.side { flex: 0 0 256px; background: var(--side); color: #CFE0E1; padding: 24px 16px; display: flex; flex-direction: column; gap: 28px; position: sticky; top: 0; height: 100vh; }
.side .brand { padding: 0 8px; }
.sidenav { display: flex; flex-direction: column; gap: 4px; }
.sidenav a, .side-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 10px; color: #CFE0E1; text-decoration: none; font: inherit; font-size: 15px; background: none; border: 0; cursor: pointer; text-align: left; }
.sidenav a:hover, .side-btn:hover { background: rgba(255,255,255,.07); }
.sidenav a[aria-current=page] { background: rgba(255,255,255,.12); color: #fff; font-weight: 500; }
.side-out { margin: auto 0 0; }
.side-note { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 0 8px; font-size: 12.5px; line-height: 1.5; color: #9FB8BB; }
.side-note .ico { color: var(--gold); width: 18px; height: 18px; margin-top: 1px; }
.mobbar, .tabbar { display: none; }
.dash { flex: 1 1 auto; min-width: 0; max-width: 1100px; padding: 32px 40px 56px; }
.dash h1 { font-size: 28px; margin-bottom: 18px; }
.dash h2 { font-size: 18px; font-weight: 600; margin: 30px 0 12px; }
.dash h3 { font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.crumb { margin: 0 0 4px; font-size: 14px; color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.panel p { margin: 8px 0 0; }

.acct { background: var(--brand); color: #fff; border-radius: 16px; padding: 22px 24px; }
.idrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.idrow strong { display: block; font-size: 18px; font-weight: 600; }
.idrow .big { font-size: 24px; }
.acct .lbl { display: block; font-size: 13px; color: #BFE0DA; }
.badge { display: inline-block; padding: 2px 12px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: 14px; font-weight: 600; }

.wallets { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.wallet { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.wallet .wl { font-size: 14px; color: var(--muted); }
.wallet strong { font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wallet-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.wallet-primary .wl { color: #BFE0DA; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; min-height: 96px; }
.tile-name { font-weight: 600; }
.tile-soon { font-size: 13px; color: var(--muted); }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 12px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; }
.plan-fee { font-size: 30px; font-weight: 600; margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan .small { margin-bottom: 12px; }

.tblwrap { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.scroll { overflow-x: auto; }
.tbl { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 12px 18px; border-bottom: 1px solid var(--line); background: #F6F9F9; white-space: nowrap; }
.tbl td { padding: 14px 18px; border-bottom: 1px solid var(--line2); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .small { margin: 2px 0 0; font-size: 13px; }
.pos { color: var(--ok); font-weight: 600; }
.neg { color: var(--err); font-weight: 600; }

/* phones: top bar + bottom tab bar */
@media (max-width: 860px) {
  .side { display: none; }
  .shell { flex-direction: column; }
  .mobbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--side); }
  .mob-out { background: none; border: 0; color: #CFE0E1; font: inherit; font-size: 14px; padding: 8px 4px; cursor: pointer; }
  .mobbar form { margin: 0; }
  .dash { padding: 22px 16px 96px; }
  .dash h1 { font-size: 24px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 5; }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; color: var(--muted); text-decoration: none; font-size: 12px; min-height: 48px; }
  .tabbar a[aria-current=page] { color: var(--brand); font-weight: 600; }
  .split-brand { padding: 28px 24px; gap: 24px; }
  .split-copy h2 { font-size: 28px; }
  .card { padding: 24px 20px 16px; }
}

/* v0.4.1: dashboard offer cards (coupon style) on the right */
.dash:has(.dgrid) { max-width: 1400px; }
.dgrid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.dmain > h2:first-child { margin-top: 0; }
.offers { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.offers h2 { margin: 0 0 -2px; font-size: 18px; font-weight: 600; }
.coupon { position: relative; display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.coupon-stub { flex: 0 0 56px; display: flex; align-items: center; justify-content: center; background: var(--brand); color: #fff; border-right: 2px dashed #fff; position: relative; }
.coupon-stub span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap; }
.coupon-stub::before, .coupon-stub::after { content: ""; position: absolute; right: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); z-index: 1; }
.coupon-stub::before { top: -9px; }
.coupon-stub::after { bottom: -9px; }
.coupon:nth-of-type(2) .coupon-stub { background: var(--side); }
.coupon:nth-of-type(3) .coupon-stub { background: var(--gold); color: #1B1303; }
.coupon-body { padding: 16px 16px 16px 20px; min-width: 0; }
.coupon-body h3 { margin: 0 0 4px; font-size: 16px; }
.coupon-body p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.coupon-cta { display: inline-block; margin-top: 10px; padding: 6px 14px; border: 1.5px dashed var(--brand); border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; }
.coupon-cta:hover { background: var(--ok-bg); }
@media (max-width: 1180px) { .dgrid { grid-template-columns: minmax(0, 1fr); } .offers { position: static; } }

/* v0.4.2: vertical news ticker */
.ticker h2 { margin: 6px 0 10px; font-size: 18px; font-weight: 600; }
.ticker-view { height: 260px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; position: relative; }
.ticker-view::before, .ticker-view::after { content: ""; position: absolute; left: 0; right: 0; height: 22px; z-index: 1; pointer-events: none; }
.ticker-view::before { top: 0; background: linear-gradient(var(--surface), rgba(255,255,255,0)); }
.ticker-view::after { bottom: 0; background: linear-gradient(rgba(255,255,255,0), var(--surface)); }
.ticker-list { list-style: none; margin: 0; padding: 0; animation: ticker-up 48s linear infinite; }
.ticker-view:hover .ticker-list, .ticker-view:focus-within .ticker-list { animation-play-state: paused; }
.ticker-list li { padding: 12px 16px; border-bottom: 1px solid var(--line2); font-size: 14px; line-height: 1.45; }
.ticker-tag { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-size: 11px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; }
@keyframes ticker-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-view { overflow-y: auto; }
  .ticker-list { animation: none; }
  .ticker-list li[aria-hidden=true] { display: none; }
}

/* v0.4.3: use the full width on wide screens (no empty strip on the right) */
.dash:has(.dgrid) { max-width: none; padding-right: 40px; }
.dgrid { grid-template-columns: minmax(0, 1fr) clamp(320px, 27vw, 460px); gap: clamp(28px, 2.5vw, 48px); }
.ticker-view { height: clamp(260px, 34vh, 380px); }
@media (max-width: 1180px) { .dgrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) { .dash:has(.dgrid) { padding-right: 16px; } }

/* v0.5: distributor application, KYC, notices, profile */
.notice { padding: 12px 16px; border-radius: 12px; margin: 0 0 16px; font-size: 15px; }
.notice-warn { background: var(--warn-bg); color: var(--warn); }
.notice-err { background: var(--err-bg); color: var(--err); }
.notice a { color: inherit; font-weight: 600; }
.step-gap { margin-top: 16px; }
.choice { border: 0; padding: 0; margin: 8px 0 0; }
.choice legend { font-weight: 500; font-size: 14px; padding: 0; margin-bottom: 6px; }
.choice .sr, legend.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.choice-item { display: flex; align-items: center; gap: 10px; margin: 8px 0; padding: 12px 14px; border: 1.5px solid #8FA5A0; border-radius: 10px; background: #fff; font-weight: 500; cursor: pointer; }
.choice-item input { width: 18px; height: 18px; accent-color: var(--brand); }
.choice-item.is-short { opacity: .65; }
.choice-item:has(input:checked) { border-color: var(--brand); background: var(--ok-bg); }
.muted { color: var(--muted); font-weight: 400; }
input[type=file] { width: 100%; padding: 10px; font: inherit; font-size: 15px; background: #fff; border: 1.5px dashed #8FA5A0; border-radius: 10px; }
input[type=email] { width: 100%; height: 50px; padding: 0 14px; font: inherit; font-size: 17px; background: #fff; border: 1.5px solid #8FA5A0; border-radius: 10px; }
input[type=email]:focus { border-color: var(--brand); }
.dmain form .panel { margin: 0; }

/* v0.5.2: every signed-in page uses the full width; form fields keep a readable width */
.dash, .dash:has(.dgrid) { max-width: none; width: 100%; }
.panel input[type=text], .panel input[type=email], .panel input[type=password], .panel input[type=file], .panel .choice { max-width: 560px; }
.plans { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* v0.5.3: distributor application page, animated (CSS only; motion is switched off for reduced-motion users) */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.apply { max-width: none; }
.apply-steps { list-style: none; display: flex; gap: 0; margin: 4px 0 22px; padding: 0; counter-reset: s; }
.apply-steps li { flex: 1; display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 500; font-size: 14px; position: relative; }
.apply-steps li span { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 2px solid var(--line); font-size: 13px; font-weight: 600; flex: none; }
.apply-steps li:not(:last-child)::after { content: ""; flex: 1; height: 3px; margin: 0 12px; border-radius: 3px; background: var(--line2); }
.apply-steps li.is-now { color: var(--brand); }
.apply-steps li.is-now span { background: var(--brand); border-color: var(--brand); color: #fff; animation: ring 2.4s ease-out infinite; }
.apply-steps li.is-now::after { background: linear-gradient(90deg, var(--brand) 0 35%, var(--line2) 35%); background-size: 200% 100%; animation: fillbar 1.4s ease-out both; }
.apply-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.apply-main { display: grid; gap: 16px; }
.apply-side { position: sticky; top: 20px; display: grid; gap: 16px; }

.acard { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; box-shadow: 0 1px 2px rgba(15,34,48,.04); animation: rise .55s cubic-bezier(.2,.7,.2,1) both; transition: box-shadow .25s, border-color .25s, transform .25s; }
.apply-main .acard:nth-child(2) { animation-delay: .08s; }
.apply-main .acard:nth-child(3) { animation-delay: .16s; }
.apply-main .acard:nth-child(4) { animation-delay: .24s; }
.acard:focus-within { border-color: var(--brand); box-shadow: 0 8px 28px rgba(11,93,85,.12); }
.acard-h { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.acard-h h3 { margin: 0; font-size: 18px; letter-spacing: -.1px; }
.acard-h .small { margin: 2px 0 0; }
.num { flex: none; width: 34px; height: 34px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand), #14887b); box-shadow: 0 4px 10px rgba(11,93,85,.3); animation: pop .5s .15s cubic-bezier(.3,1.6,.5,1) both; }

/* wallet selector */
.wsel { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.wopt { margin: 0; cursor: pointer; display: block; }
.wopt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wopt-in { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "i t k" "i s k"; gap: 0 12px; align-items: center; padding: 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .2s, background .2s, transform .2s, box-shadow .2s; }
.wopt:hover .wopt-in { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,34,48,.08); }
.wopt-ico { grid-area: i; width: 42px; height: 42px; border-radius: 12px; background: var(--bg); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.wopt-t { grid-area: t; display: flex; flex-direction: column; line-height: 1.25; }
.wopt-b { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wopt-s { grid-area: s; font-size: 13px; color: var(--ok); font-weight: 500; }
.wopt.is-short .wopt-s { color: var(--err); }
.wopt.is-short .wopt-in { opacity: .7; }
.wopt-tick { grid-area: k; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); color: transparent; display: inline-flex; align-items: center; justify-content: center; transition: all .25s; }
.wopt-tick .ico { width: 16px; height: 16px; }
.wopt input:checked + .wopt-in { border-color: var(--brand); background: linear-gradient(180deg, #F2FBF7, #E6F6EE); box-shadow: 0 0 0 3px rgba(11,93,85,.12); }
.wopt input:checked + .wopt-in .wopt-ico { background: var(--brand); color: #fff; }
.wopt input:checked + .wopt-in .wopt-tick { background: var(--brand); border-color: var(--brand); color: #fff; animation: pop .35s cubic-bezier(.3,1.6,.5,1); }
.wopt input:focus-visible + .wopt-in { outline: 3px solid var(--focus); outline-offset: 2px; }

/* email */
.efield { display: flex; align-items: center; gap: 10px; max-width: 560px; padding: 0 14px; border: 1.5px solid #8FA5A0; border-radius: 12px; background: #fff; color: var(--muted); transition: border-color .2s, box-shadow .2s; }
.efield:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(11,93,85,.12); color: var(--brand); }
.efield input[type=email] { border: 0; outline: 0; flex: 1; min-width: 0; max-width: none; padding: 0; background: transparent; }

/* KYC fields (also used on the re-upload form) */
.kdocs { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.kdocs legend { width: 100%; font-weight: 500; font-size: 14px; padding: 0; margin-bottom: 8px; }
.kdoc { margin: 0; cursor: pointer; }
.kdoc input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kdoc span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-weight: 500; transition: all .2s; }
.kdoc span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #8FA5A0; transition: all .2s; }
.kdoc:hover span { border-color: var(--brand); }
.kdoc input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(11,93,85,.25); }
.kdoc input:checked + span::before { border-color: #fff; background: #fff; box-shadow: inset 0 0 0 3px var(--brand); }
.kdoc input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.kdrops { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.kdrop { padding: 14px; border: 2px dashed #9CB3AE; border-radius: 14px; background: #FAFCFC; transition: border-color .2s, background .2s, transform .2s; }
.kdrop:hover, .kdrop:focus-within { border-color: var(--brand); background: #F2FBF7; transform: translateY(-2px); }
.kdrop label { margin: 0 0 8px; }
.kdrop input[type=file] { max-width: none; border: 0; padding: 0; background: transparent; font-size: 14px; color: var(--muted); }
.kdrop input[type=file]::file-selector-button { margin-right: 12px; padding: 9px 16px; font: inherit; font-weight: 600; color: #fff; background: var(--brand); border: 0; border-radius: 9px; cursor: pointer; transition: filter .2s, transform .2s; }
.kdrop input[type=file]::file-selector-button:hover { filter: brightness(1.12); transform: translateY(-1px); }
.ktip { margin-top: 12px; }

/* submit */
.acard-go { background: linear-gradient(135deg, #0A2A33, #0B5D55); border: 0; color: #fff; }
.acard-go .small, .acard-go a { color: rgba(255,255,255,.82); }
.acard-go .num { background: var(--gold); color: #1B1303; box-shadow: none; }
.btn-go { position: relative; overflow: hidden; width: auto; min-width: 280px; margin-top: 4px; font-size: 17px; color: #1B1303; background: var(--gold); border-color: var(--gold); transition: transform .2s, box-shadow .2s; }
.btn-go:hover { filter: none; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.28); }
.btn-go:active { transform: translateY(0); }
.btn-go::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: shine 3.2s ease-in-out 1s infinite; }
.go-back { margin: 14px 0 0; }
.go-back a { display: inline-flex; align-items: center; gap: 4px; }

/* summary side */
.sumcard { border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(15,34,48,.08); animation: rise .6s .1s cubic-bezier(.2,.7,.2,1) both; }
.sumcard-top { position: relative; padding: 22px 24px; color: #fff; background: linear-gradient(135deg, #0A2A33 0%, #0B5D55 70%, #14887b 100%); overflow: hidden; }
.sumcard-top::before { content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -90px; border-radius: 50%; background: rgba(217,164,65,.22); animation: floaty 7s ease-in-out infinite; }
.sumcard-top::after { content: ""; position: absolute; width: 140px; height: 140px; left: -50px; bottom: -80px; border-radius: 50%; background: rgba(255,255,255,.08); animation: floaty 9s ease-in-out infinite reverse; }
.sumcard-top > * { position: relative; z-index: 1; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: 12px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; }
.sumcard-top h2 { margin: 10px 0 0; font-size: 20px; font-weight: 600; }
.sum-fee { margin: 2px 0 0; font-size: 38px; font-weight: 700; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.sum-note { margin: 0; opacity: .8; font-size: 14px; }
.ticks { list-style: none; margin: 0; padding: 16px 24px 4px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; animation: slidein .5s both; }
.ticks li:nth-child(1) { animation-delay: .45s; } .ticks li:nth-child(2) { animation-delay: .55s; } .ticks li:nth-child(3) { animation-delay: .65s; }
.ticks li:nth-child(4) { animation-delay: .75s; } .ticks li:nth-child(n+5) { animation-delay: .85s; }
.ticks .ico { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); margin-top: 1px; }
.ticks .draw, .tdot .draw { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .6s .7s ease-out forwards; }
.after { margin: 0; padding: 12px 24px 20px; }
.after-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line); font-size: 14px; }
.after-row:first-child { border-top-color: transparent; }
.after dt { color: var(--muted); }
.after dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.after-row { display: none; }
.apply:has(input[value=wallet_o]:checked) .after-o, .apply:has(input[value=aeps]:checked) .after-a { display: flex; animation: fadein .35s both; }

.nextcard { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; animation: rise .6s .2s cubic-bezier(.2,.7,.2,1) both; }
.nextcard h3 { margin: 0 0 14px; font-size: 16px; }
.tline { list-style: none; margin: 0; padding: 0; }
.tline li { position: relative; display: flex; gap: 14px; padding-bottom: 18px; animation: slidein .5s both; }
.tline li:nth-child(1) { animation-delay: .5s; } .tline li:nth-child(2) { animation-delay: .65s; } .tline li:nth-child(3) { animation-delay: .8s; } .tline li:nth-child(4) { animation-delay: .95s; }
.tline li:last-child { padding-bottom: 0; }
.tline li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: 2px; width: 2px; background: repeating-linear-gradient(var(--line) 0 4px, transparent 4px 8px); }
.tdot { flex: none; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ok-bg); color: var(--ok); }
.tline li:nth-child(3) .tdot { background: var(--warn-bg); color: var(--warn); }
.tline li:nth-child(1) .tdot { animation: ring 2.6s 1.2s ease-out infinite; }
.tline strong { display: block; font-size: 15px; line-height: 1.3; }
.tline .small { margin: 2px 0 0; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes slidein { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@keyframes floaty { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-14px, 12px); } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(11,93,85,.45); } 70%, 100% { box-shadow: 0 0 0 12px rgba(11,93,85,0); } }
@keyframes fillbar { from { background-position: 100% 0; } to { background-position: 0 0; } }

@media (max-width: 1100px) { .apply-grid { grid-template-columns: minmax(0, 1fr); } .apply-side { position: static; } }
@media (max-width: 640px) {
  .apply-steps li { font-size: 0; gap: 0; }
  .apply-steps li span { font-size: 13px; }
  .acard { padding: 18px 16px; }
  .btn-go { width: 100%; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .apply *, .apply *::before, .apply *::after { animation: none !important; transition: none !important; }
  .ticks .draw, .tdot .draw { stroke-dashoffset: 0; }
}

/* v0.5.4: balance too low for every wallet -> the other steps are greyed out and disabled */
.lockbar { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 16px 20px; border-radius: 16px; background: var(--err-bg); color: var(--err); border: 1px solid #F2C4BF; animation: rise .45s both; }
.lockbar .ico { width: 28px; height: 28px; flex: none; animation: shake 1.2s .4s ease-in-out 2; }
.lockbar strong { display: block; font-size: 16px; }
.lockbar p { margin: 2px 0 0; color: var(--ink); }
.lockbar > div { flex: 1; }
.lockbar-btn { margin: 0; flex: none; text-decoration: none; }
.is-locked .acard:not(:first-child), .is-locked .apply-side, .is-locked .apply-steps { filter: grayscale(1); opacity: .45; pointer-events: none; user-select: none; }
.is-locked .acard-go { background: #6B7C84; }
.is-locked .btn-go { cursor: not-allowed; }
.is-locked .btn-go::after, .is-locked .num { animation: none; }
.wopt input:disabled + .wopt-in { filter: grayscale(1); opacity: .6; cursor: not-allowed; }
.wopt:hover input:disabled + .wopt-in { transform: none; box-shadow: none; }
@keyframes shake { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-12deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(4deg); } }
@media (max-width: 640px) { .lockbar { flex-wrap: wrap; } .lockbar-btn { width: 100%; } }
.is-locked .num { background: #6B7C84; box-shadow: none; }

/* v0.6.0: add money to Wallet-O (UPI QR, bank details, UTR) */
.walletcta { margin: 4px 0 22px; }
.walletcta .btn { margin-top: 0; text-decoration: none; }
.tag { display: inline-block; padding: 2px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.tag-wait { background: var(--warn-bg); color: var(--warn); }
.tag-ok { background: var(--ok-bg); color: var(--ok); }
.tag-no { background: var(--err-bg); color: var(--err); }
.amtform { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.amtform .btn { margin-top: 0; }
.efield.amt { max-width: 280px; flex: 1 1 200px; }
.efield .rs { font-size: 22px; font-weight: 600; color: var(--ink); }
.efield.amt input { font-size: 24px; font-weight: 600; height: 56px; font-variant-numeric: tabular-nums; }
.efield.utrf { max-width: 420px; margin-bottom: 14px; background: #fff; }
.efield.utrf input { font-family: var(--mono); font-size: 20px; letter-spacing: .08em; text-transform: uppercase; height: 56px; color: var(--ink); }
.amterr { margin: 12px 0 0; }
.payrow { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; }
.qrbox { position: relative; width: 244px; padding: 10px; background: #fff; border: 2px solid var(--brand); border-radius: 18px; overflow: hidden; animation: pop .5s .1s cubic-bezier(.3,1.4,.5,1) both; box-shadow: 0 10px 28px rgba(11,93,85,.18); }
.qrbox .qr { display: block; width: 100%; height: auto; }
.qrline { position: absolute; left: 10px; right: 10px; top: 10px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--brand), transparent); box-shadow: 0 0 12px 2px rgba(20,136,123,.5); animation: qrscan 2.8s ease-in-out infinite; }
.paydl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; align-items: baseline; }
.paydl dt, .bankdl dt { color: var(--muted); font-size: 14px; }
.paydl dd, .bankdl dd { margin: 0; font-weight: 600; word-break: break-all; }
.payamt { font-size: 32px; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.bankbox { margin-top: 22px; padding: 16px 18px; background: var(--bg); border-radius: 14px; border: 1px dashed #9CB3AE; }
.bankbox h4 { margin: 0 0 10px; font-size: 15px; }
.bankdl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; }
.acard-dim { filter: grayscale(1); opacity: .45; pointer-events: none; }
.acard-dim .acard-h { margin-bottom: 0; }
.acard-dim .num { background: #6B7C84; box-shadow: none; animation: none; }
.topup .tdot { font-weight: 700; }
@keyframes qrscan { 0%, 100% { top: 10px; opacity: 0; } 10%, 90% { opacity: 1; } 50% { top: calc(100% - 13px); } }
@media (max-width: 640px) { .payrow { justify-content: center; } .qrbox { width: 220px; } .amtform .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .qrline { animation: none; display: none; } .qrbox { animation: none; } }
.efield input[type=text] { border: 0; outline: 0; flex: 1; min-width: 0; max-width: none; padding: 0; background: transparent; }
.efield.utrf input::placeholder { text-transform: none; letter-spacing: 0; font-family: var(--font); font-size: 17px; }

/* v0.6.1: colourful news tags (each tag has its own colour; the item gets a matching left edge) */
.ticker-list li { --tc: #7A2E8E; --tb: #F3DFF8; border-left: 4px solid var(--tc); }
.ticker-tag { background: var(--tc); color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.ticker-list li:hover { background: var(--tb); }
.ticker-list li.t-new { --tc: #0B7A4B; --tb: #D5F3E3; }
.ticker-list li.t-offer { --tc: #C2410C; --tb: #FFE3D4; }
.ticker-list li.t-alert { --tc: #B3261E; --tb: #FBDAD7; }
.ticker-list li.t-important { --tc: #9A1B6B; --tb: #FBDDF0; }
.ticker-list li.t-update { --tc: #0B4FB3; --tb: #DCE9FB; }
.ticker-list li.t-tip { --tc: #5B3FC4; --tb: #E8E1FB; }
.ticker-list li.t-wallet { --tc: #946200; --tb: #FCEBC4; }
.ticker-list li.t-distributor { --tc: #0B5D55; --tb: #D2F0EA; }
.ticker-list li.t-notice { --tc: #7A2E8E; --tb: #F3DFF8; }
.ticker-tag { padding: 2px 9px; font-size: 11px; }

/* v0.6.2: wallet page redesign */
.wl-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin: 4px 0 28px; }
.wcard { position: relative; overflow: hidden; padding: 26px 28px 24px; border-radius: 22px; color: #fff; box-shadow: 0 14px 34px rgba(10,42,51,.22); animation: rise .6s cubic-bezier(.2,.7,.2,1) both; transition: transform .3s, box-shadow .3s; }
.wcard:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(10,42,51,.3); }
.wcard-o { background: linear-gradient(135deg, #0A2A33 0%, #0B5D55 65%, #14887b 100%); }
.wcard-a { background: linear-gradient(135deg, #12284F 0%, #1B4B9B 65%, #2F7DE0 100%); animation-delay: .1s; }
.wcard::before, .wcard::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.wcard::before { width: 240px; height: 240px; right: -80px; top: -110px; background: rgba(255,255,255,.09); animation: floaty 8s ease-in-out infinite; }
.wcard::after { width: 150px; height: 150px; left: -50px; bottom: -80px; background: rgba(217,164,65,.22); animation: floaty 10s ease-in-out infinite reverse; }
.wcard > * { position: relative; z-index: 1; }
.wcard-chip { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.wcard-sub { margin: 10px 0 0; font-size: 14px; opacity: .8; }
.wcard-bal { margin: 4px 0 18px; font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -.8px; font-variant-numeric: tabular-nums; animation: pop .6s .25s cubic-bezier(.3,1.4,.5,1) both; transform-origin: left center; }
.wcard-btn { display: inline-flex; align-items: center; min-height: 42px; padding: 0 22px; border-radius: 999px; background: var(--gold); color: #1B1303; font-weight: 700; text-decoration: none; position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.wcard-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.wcard-btn::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.6), transparent); transform: skewX(-20deg); animation: shine 3.4s ease-in-out 1.2s infinite; }
.wcard-note { margin: 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.2); font-size: 14px; opacity: .9; }
.wcard-note strong { font-variant-numeric: tabular-nums; }

.wl-sec { margin: 0 0 30px; animation: rise .6s .2s cubic-bezier(.2,.7,.2,1) both; }
.wl-sec h2 { margin: 0 0 12px; font-size: 19px; }
.wl-headrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.wl-headrow h2 { margin: 0; }
.wl-tabs { display: inline-flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.wl-tabs a { padding: 7px 16px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; transition: background .2s, color .2s; }
.wl-tabs a:hover { background: var(--bg); color: var(--ink); }
.wl-tabs a.is-on { background: var(--brand); color: #fff; }

.reqlist, .stm { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.req { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 14px; animation: slidein .5s both; transition: transform .2s, box-shadow .2s; }
.req:hover { transform: translateX(3px); box-shadow: 0 6px 18px rgba(15,34,48,.07); }
.req:nth-child(2) { animation-delay: .08s; } .req:nth-child(3) { animation-delay: .16s; } .req:nth-child(n+4) { animation-delay: .24s; }
.rq-wait { border-left-color: #D9A441; } .rq-ok { border-left-color: var(--ok); } .rq-no { border-left-color: var(--err); }
.req-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--line); }
.rq-wait .req-dot { background: #D9A441; animation: dotpulse 1.8s ease-out infinite; }
.rq-ok .req-dot { background: var(--ok); } .rq-no .req-dot { background: var(--err); }
.req-main { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.req-main strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.req-utr { font-size: 13px; color: var(--muted); }
.req-why { flex-basis: 100%; font-size: 13px; color: var(--err); }
.req-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.req-date { font-size: 12px; color: var(--muted); }

.stm-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; animation: slidein .5s both; transition: transform .2s, box-shadow .2s, border-color .2s; }
.stm-row:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(15,34,48,.08); border-color: #B9C9CC; }
.stm-row:nth-child(1) { animation-delay: .05s; } .stm-row:nth-child(2) { animation-delay: .1s; } .stm-row:nth-child(3) { animation-delay: .15s; } .stm-row:nth-child(4) { animation-delay: .2s; }
.stm-row:nth-child(5) { animation-delay: .25s; } .stm-row:nth-child(6) { animation-delay: .3s; } .stm-row:nth-child(7) { animation-delay: .35s; } .stm-row:nth-child(n+8) { animation-delay: .4s; }
.stm-ico { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: transform .25s; }
.stm-row:hover .stm-ico { transform: scale(1.1) rotate(-6deg); }
.is-in .stm-ico { background: var(--ok-bg); color: var(--ok); }
.is-out .stm-ico { background: var(--err-bg); color: var(--err); }
.stm-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.stm-main strong { font-size: 15px; }
.stm-note { font-size: 14px; color: var(--ink); opacity: .8; word-break: break-word; }
.stm-meta { font-size: 12.5px; color: var(--muted); }
.stm-amt { text-align: right; display: flex; flex-direction: column; }
.stm-amt strong { font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.is-in .stm-amt strong { color: var(--ok); } .is-out .stm-amt strong { color: var(--err); }
.stm-amt span { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

.wl-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 44px 20px; background: #fff; border: 2px dashed var(--line); border-radius: 18px; color: var(--muted); }
.wl-empty svg { color: #9CB3AE; animation: floaty 5s ease-in-out infinite; }
.wl-empty p { margin: 8px 0 0; }
.wl-empty strong { color: var(--ink); font-size: 17px; }

@keyframes dotpulse { 0% { box-shadow: 0 0 0 0 rgba(217,164,65,.6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(217,164,65,0); } }
@media (max-width: 640px) {
  .wcard { padding: 22px 20px; } .wcard-bal { font-size: 34px; }
  .req { flex-wrap: wrap; } .req-side { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  .stm-row { grid-template-columns: auto 1fr; } .stm-amt { grid-column: 2; text-align: left; flex-direction: row; align-items: baseline; gap: 10px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .wcard, .wcard *, .wcard::before, .wcard::after, .wl-sec, .req, .stm-row, .wl-empty svg { animation: none !important; transition: none !important; }
}

/* ===== v0.7.0 Customers ===== */
.cust-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.cust-sub { margin: 0; }
.btn-add { background: var(--brand); color: #fff; text-decoration: none; }
.listbox { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; box-shadow: 0 1px 2px rgba(15,34,48,.04); animation: rise .5s both; }
.csearch { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.csearch input[type=search], .csearch input[type=text] { flex: 1 1 220px; min-width: 0; height: 44px; padding: 0 14px; border: 1.5px solid #8FA5A0; border-radius: 12px; font: inherit; background: #fff; color: var(--ink); }
.csearch input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(11,93,85,.12); }
.cust-count { margin: 0 0 8px; }
.cust-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 36px 16px; color: var(--muted); }
.cust-empty svg { color: #9CB3AE; animation: floaty 5s ease-in-out infinite; }
.cust-empty p { margin: 6px 0 0; } .cust-empty strong { color: var(--ink); font-size: 17px; } .cust-empty .btn { margin-top: 14px; }
.ctable { display: flex; flex-direction: column; }
.crow { display: grid; grid-template-columns: minmax(0, 2.2fr) 1.2fr 1.2fr .9fr 24px; gap: 12px; align-items: center; padding: 13px 8px; border-top: 1px solid var(--line2); color: var(--ink); text-decoration: none; transition: background .2s, transform .2s; }
.crow:not(.chead):hover { background: #F2F8F7; transform: translateX(3px); }
.crow:not(.chead):focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.chead { border-top: 0; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.cname { display: flex; flex-direction: column; min-width: 0; } .cname b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cname small { color: var(--muted); font-size: 12.5px; }
.cmono { font-family: var(--mono); font-size: 14px; }
.cgo { color: #9CB3AE; font-size: 22px; text-align: right; transition: transform .2s, color .2s; } .crow:hover .cgo { transform: translateX(3px); color: var(--brand); }
.cs { display: inline-block; font-style: normal; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.cs-active { background: var(--ok-bg); color: var(--ok); } .cs-inactive { background: #E8EDEF; color: #43555F; }
.cpager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.cgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.cf { display: flex; flex-direction: column; gap: 6px; min-width: 0; } .cf > span { font-size: 14px; font-weight: 600; }
.cf-wide { grid-column: 1 / -1; }
.cf .efield { max-width: none; width: 100%; }
.efield input[type=tel], .efield input[type=text], .efield input[type=email] { border: 0; outline: 0; flex: 1; min-width: 0; max-width: none; padding: 0; background: transparent; font: inherit; height: 46px; color: var(--ink); }
.efield select { border: 0; outline: 0; flex: 1; min-width: 0; height: 46px; background: transparent; font: inherit; color: var(--ink); }
.samebox { display: flex; align-items: center; gap: 10px; margin: 16px 0 6px; font-size: 15px; cursor: pointer; } .samebox input { width: 20px; height: 20px; accent-color: var(--brand); }
.shipblock { display: none; margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--line); }
.acard:has(#same:not(:checked)) .shipblock { display: block; animation: rise .35s both; }
.cdl, .sumdl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.cdl dt, .sumdl dt { color: var(--muted); font-size: 14px; } .cdl dd, .sumdl dd { margin: 0; word-break: break-word; }
.sumdl { padding: 16px 22px; }
.sum-fee { margin: 8px 0 0; font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; } .sum-note { margin: 2px 0 0; font-size: 13.5px; opacity: .88; }
.tgl { padding: 16px 22px 20px; } .tgl .btn { width: 100%; }
@media (max-width: 760px) {
  .chead { display: none; }
  .crow { grid-template-columns: 1fr auto; row-gap: 4px; padding: 14px 4px; }
  .crow .cname { grid-column: 1; } .crow [data-l="Status"] { grid-column: 2; grid-row: 1; justify-self: end; }
  .crow [data-l="Mobile"], .crow [data-l="PAN"] { grid-column: 1 / -1; font-size: 13.5px; }
  .crow [data-l="Mobile"]::before, .crow [data-l="PAN"]::before { content: attr(data-l) ": "; color: var(--muted); font-family: var(--font); }
  .cgo { display: none; }
  .cgrid { grid-template-columns: minmax(0, 1fr); }
  .cdl { grid-template-columns: 1fr; gap: 2px; } .cdl dd { margin-bottom: 8px; }
  .listbox { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { .listbox, .crow, .cgo, .cust-empty svg, .acard:has(#same:not(:checked)) .shipblock { animation: none !important; transition: none !important; } .crow:not(.chead):hover { transform: none; } }
.efield-lock { background: #EEF2F3; border-color: #C5D1D4; } .efield-lock input { color: #43555F; cursor: not-allowed; }

/* ===== v0.8.0 Taxation ===== */
.tabsbar { display: flex; gap: 6px; margin: 0 0 16px; padding: 5px; width: fit-content; max-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.tabsbar a { padding: 9px 18px; border-radius: 8px; color: var(--muted); font-weight: 600; text-decoration: none; transition: background .2s, color .2s; }
.tabsbar a:hover { background: #EEF4F3; color: var(--ink); } .tabsbar a.is-on { background: var(--brand); color: #fff; }
.tsearch { margin-bottom: 18px; }
.tcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.tcat { --tc: #0B5D55; --tb: #DDF3EE; display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 16px; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--tc); border-radius: 16px; color: var(--ink); text-decoration: none; animation: rise .5s both; transition: transform .2s, box-shadow .2s, border-color .2s; }
.tcat:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(15,34,48,.10); border-color: var(--tc); }
.tcat:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.tcat:nth-child(6n+2) { --tc: #7A2E8E; --tb: #F3DFF8; } .tcat:nth-child(6n+3) { --tc: #C2410C; --tb: #FFE3D4; } .tcat:nth-child(6n+4) { --tc: #0B4FB3; --tb: #DCE9FB; }
.tcat:nth-child(6n+5) { --tc: #946200; --tb: #FCEBC4; } .tcat:nth-child(6n) { --tc: #9A1B6B; --tb: #FBDDF0; }
.tcat:nth-child(2) { animation-delay: .04s; } .tcat:nth-child(3) { animation-delay: .08s; } .tcat:nth-child(4) { animation-delay: .12s; } .tcat:nth-child(5) { animation-delay: .16s; } .tcat:nth-child(n+6) { animation-delay: .2s; }
.tcat-n { font-size: 17px; font-weight: 700; } .tcat-s { font-size: 13.5px; color: var(--muted); }
.tcat-p { margin-top: 6px; align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--tb); color: var(--tc); font-size: 13px; font-weight: 600; }
.tlist { display: flex; flex-direction: column; gap: 12px; }
.tsvc { display: flex; gap: 18px; justify-content: space-between; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; animation: rise .45s both; transition: border-color .2s, box-shadow .2s; }
.tsvc:hover { border-color: #9CB3AE; box-shadow: 0 6px 20px rgba(15,34,48,.07); }
.tsvc-main { min-width: 0; } .tsvc-main h3 { margin: 0 0 4px; font-size: 17px; } .tsvc-main .small { margin: 0 0 8px; }
.tsvc-meta { margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.chip-lite { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #EEF4F3; color: var(--brand); font-size: 12.5px; font-weight: 600; }
.tsvc-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.tsvc-price { font-size: 22px; font-variant-numeric: tabular-nums; }
.tsvc-side .btn { margin-top: 8px; }
.tnote { margin: 14px 0 0; color: var(--muted); }
.os { display: inline-block; font-style: normal; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.os-ok { background: var(--ok-bg); color: var(--ok); } .os-off { background: #E8EDEF; color: #43555F; } .os-warn { background: var(--warn-bg); color: var(--warn); } .os-live { background: #DCE9FB; color: #0B4FB3; }
.otable .crow { grid-template-columns: minmax(0, 2.4fr) 1.3fr 1fr 1.3fr 24px; }
@media (max-width: 760px) {
  .tabsbar { width: 100%; } .tabsbar a { flex: 1; text-align: center; }
  .tsvc { flex-direction: column; align-items: stretch; } .tsvc-side { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; } .tsvc-side .btn { margin-top: 0; }
  .otable .crow [data-l="Customer"], .otable .crow [data-l="Amount"] { grid-column: 1 / -1; font-size: 13.5px; }
  .otable .crow [data-l="Customer"]::before, .otable .crow [data-l="Amount"]::before { content: attr(data-l) ": "; color: var(--muted); font-family: var(--font); }
  .tabbar a { font-size: 11px; padding: 6px 2px; }
}
@media (prefers-reduced-motion: reduce) { .tcat, .tsvc { animation: none !important; transition: none !important; } .tcat:hover { transform: none; } }
.efield-area { align-items: stretch; padding: 8px 14px; } .efield-area textarea { border: 0; outline: 0; flex: 1; min-width: 0; background: transparent; font: inherit; color: var(--ink); resize: vertical; min-height: 64px; }

/* v0.9.0 Documents */
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.doc { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--surface); }
.doc-ask { border-color: var(--gold); background: #FFFBF1; }
.doc-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.doc .small { margin: 6px 0 0; }
.docform { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.docfile { flex: 1; min-width: 200px; font: inherit; font-size: 14px; color: var(--ink); border: 1px dashed var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface); }
.docfile::file-selector-button { font: inherit; font-size: 14px; border: 0; border-radius: 8px; padding: 6px 12px; margin-right: 10px; background: var(--brand); color: var(--brand-ink); cursor: pointer; }

/* order notes */
.notes { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.note { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; background: var(--surface); max-width: 560px; }
.note-mine { margin-left: auto; background: #F1F8F7; }
.note-h { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.note-h .small { margin: 0; font-size: 13px; }
.note p { margin: 6px 0 0; overflow-wrap: anywhere; }
.noteform { display: grid; gap: 12px; justify-items: start; }
.noteform .cf, .noteform .efield { width: 100%; box-sizing: border-box; } .noteform .cf { display: grid; gap: 6px; }

/* credit checks */
.ucbs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); margin-top: 12px; }
.ucbcard { margin: 0; }
.ucblist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ucblist li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line2); }
.ucblist li:first-child { border-top: 0; }
.ucblist .small { margin: 2px 0 0; }
.ucbbuy { display: flex; align-items: center; gap: 14px; }
.ucbprice { display: grid; gap: 0; text-align: right; }
.ucbprice .small { margin: 0; }
.cf.ucbconsent { display: flex; flex-direction: row; gap: 10px; align-items: flex-start; }
.ucbconsent input { margin-top: 3px; flex: none; }
.ucbconsent span { font-weight: 400; }
.ucbscore { display: grid; gap: 2px; margin: 0 0 12px; }
.ucbscore strong { font-size: 40px; line-height: 1.1; }
/* v0.12.1: amount/score cells in tables must not take the round step-number look */
.tbl th.num, .tbl td.num { width: auto; height: auto; border-radius: 0; box-shadow: none; color: inherit; display: table-cell; font-weight: inherit; animation: none; }
.tbl td.num { background: none; }

/* v0.13.0 Loans */
.lopts { display: grid; gap: 10px; }
.lopt { margin: 0; }
.lopt .btn { width: 100%; justify-content: space-between; text-align: left; gap: 12px; min-height: 52px; white-space: normal; }
.lopt .btn small { color: var(--muted); font-weight: 400; margin-left: auto; text-align: right; }
.lundo { margin: 4px 0 0; }
.tbl input[type=checkbox] { width: 20px; height: 20px; }

/* v0.14.0 Loans redesign (bank style): tabs, stepper, file header, document checklist */
.ln-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin: 4px 0 22px; overflow-x: auto; scrollbar-width: thin; }
.ln-tabs a { display: flex; gap: 8px; align-items: center; padding: 12px 20px; font-weight: 600; font-size: 15px; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.ln-tabs a:hover { color: var(--ink); }
.ln-tabs a.is-on { color: var(--brand); border-bottom-color: var(--brand); }
.ln-ct { background: var(--line2); color: var(--muted); border-radius: 999px; font-size: 12px; padding: 1px 9px; font-weight: 600; }
.ln-tabs a.is-on .ln-ct { background: #DDF0EC; color: var(--brand); }
.ln-pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.ln-pills a { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 7px 16px; font-size: 14px; text-decoration: none; }
.ln-pills a.is-on { background: var(--side); color: #fff; border-color: var(--side); }
.ln-cols { display: grid; grid-template-columns: 220px minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
@media (max-width: 1100px) { .ln-cols { grid-template-columns: minmax(0, 1fr); } .ln-steps { display: flex; overflow-x: auto; gap: 6px; } }
.ln-steps { list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.ln-steps li { display: flex; gap: 10px; align-items: center; padding: 11px 10px; border-radius: 9px; color: var(--muted); font-size: 15px; white-space: nowrap; }
.ln-steps li b { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 12px; flex: none; }
.ln-steps li.is-on { color: var(--ink); font-weight: 600; background: #E6F3F0; }
.ln-steps li.is-on b { border-color: var(--brand); background: var(--brand); color: #fff; }
.ln-steps li.is-done { color: var(--ink); }
.ln-steps li.is-done b { border-color: var(--brand); color: var(--brand); }
.ln-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(15,34,48,.05); padding: 22px; margin-bottom: 18px; }
.ln-card h3 { margin: 0 0 4px; font-size: 18px; }
.ln-card .ln-hint { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.ln-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .ln-two { grid-template-columns: 1fr; } }
.ln-card select { width: 100%; height: 50px; padding: 0 12px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid #8FA5A0; border-radius: 10px; }
.ln-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 22px; }
.ln-actions .btn { width: auto; margin-top: 0; min-width: 140px; }
.ln-note { border-radius: 10px; padding: 12px 15px; font-size: 14.5px; margin: 16px 0 0; }
.ln-note-info { background: #E7F0FA; color: #1F5FA6; } .ln-note-warn { background: var(--warn-bg); color: var(--warn); }
.ln-note-ok { background: var(--ok-bg); color: var(--ok); } .ln-note-bad { background: var(--err-bg); color: var(--err); }
.ln-bar { height: 8px; background: var(--line2); border-radius: 99px; overflow: hidden; margin: 10px 0 14px; } .ln-bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.ln-kpi { font-size: 40px; font-weight: 700; line-height: 1; color: var(--side); margin: 4px 0; }
.ln-side { position: sticky; top: 12px; }
.ln-dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 9px 14px; font-size: 14.5px; } .ln-dl dt { color: var(--muted); } .ln-dl dd { margin: 0; font-weight: 600; text-align: right; word-break: break-word; }
.ln-chip { display: inline-block; border-radius: 999px; padding: 3px 11px; font-size: 12.5px; font-weight: 600; white-space: nowrap; font-style: normal; }
.ln-chip-warn { background: var(--warn-bg); color: var(--warn); } .ln-chip-live { background: #E7F0FA; color: #1F5FA6; } .ln-chip-ok { background: var(--ok-bg); color: var(--ok); } .ln-chip-off { background: #ECEFF1; color: #5A6A70; } .ln-chip-bad { background: var(--err-bg); color: var(--err); }
.ln-tw { overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 1px 2px rgba(15,34,48,.05); }
.ln-tw .tbl { margin: 0; } .ln-tw .tbl th:first-child, .ln-tw .tbl td:first-child { padding-left: 20px; }
.ln-fh { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(15,34,48,.05); margin-bottom: 18px; overflow: hidden; }
.ln-fh-head { display: flex; gap: 14px; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line2); }
.ln-fh-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.ln-fh-strip div { padding: 14px 22px; border-right: 1px solid var(--line2); } .ln-fh-strip div:last-child { border-right: 0; }
.ln-fh-strip span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); } .ln-fh-strip b { font-size: 15.5px; }
.ln-dline { border-radius: 12px; padding: 16px 20px; margin-bottom: 18px; background: var(--warn-bg); color: var(--warn); display: flex; gap: 18px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.ln-dline .t { font-size: 28px; font-weight: 700; line-height: 1.1; }
.ln-dline .ln-bar { background: rgba(0,0,0,.09); width: 260px; max-width: 100%; margin: 8px 0 0; } .ln-dline .ln-bar i { background: var(--warn); }
.ln-ck { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 10px; padding: 12px 15px; margin-top: 10px; }
.ln-ck .ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; flex: none; background: var(--line2); color: var(--muted); }
.ln-ck.is-got .ic { background: var(--ok-bg); color: var(--ok); }
.ln-ck form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; } .ln-ck form .btn { margin-top: 0; width: auto; min-height: 40px; }
.ln-link { border: 1px dashed var(--line); border-radius: 9px; padding: 10px 14px; margin-top: 10px; background: #F6F9F9; font-size: 14px; word-break: break-all; }
.ln-tl { list-style: none; margin: 0; padding: 0 0 0 6px; } .ln-tl li { position: relative; padding: 0 0 20px 24px; border-left: 2px solid var(--line); } .ln-tl li:last-child { border-left-color: transparent; }
.ln-tl li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--surface); }
.ln-tl b { display: block; } .ln-tl span { font-size: 13px; color: var(--muted); }
.ln-empty { text-align: center; padding: 34px 10px; color: var(--muted); }
.ln-opt { display: block; margin: 0 0 10px; } .ln-opt .btn { width: 100%; justify-content: space-between; text-align: left; gap: 12px; min-height: 54px; margin-top: 0; white-space: normal; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; font-weight: 500; }
.ln-opt .btn:hover { border-color: var(--brand); background: #E6F3F0; filter: none; } .ln-opt .btn small { color: var(--muted); font-weight: 400; white-space: nowrap; }
.ln-ro { background: #FFF8DC; border: 1px solid #ECDCA0; color: #6B5A14; border-radius: 10px; padding: 10px 14px; font-size: 14px; margin: 0 0 16px; }
.ln-ck form input[type=file] { width: auto; max-width: 250px; min-height: 0; padding: 6px; font-size: 13px; }
.ln-ckact{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.ln-actions form textarea{display:block}

/* v0.14.3 website logo */
.brand-logo { display: block; height: 46px; width: auto; max-width: 100%; }
.brand-lg .brand-logo { height: 76px; }
.brand-mob .brand-logo { height: 36px; }
