/* Auth, account and identity (KYC) screens. Design v2: neutral surfaces, hairline borders, one accent for primary actions and active states,
   no gradients, no tinted blocks. Tokens only (shares the token bridge declared in bookings.css, repeated here so this file stands alone). */
:where(.ax, .acct, .kc) {
  --s2: var(--surface-2, var(--line-2));
  --c-ok: var(--ok, var(--pine));
  --c-bad: var(--bad, var(--danger));
  --c-warn: var(--warn, var(--on-gold));
  --gutter: clamp(16px, 4vw, 64px);
  --r-card: 14px;
}
.ax .i, .acct .i, .kc .i { width: 20px; height: 20px; flex: none; }
.ax .i.sm, .acct .i.sm, .kc .i.sm { width: 16px; height: 16px; }

/* ================================================================== auth */
.au { display: grid; min-height: calc(100dvh - var(--chrome-h, var(--top-h, 60px)) - var(--safe-b, 0px)); }
.au-side { display: none; }
.au-main { display: grid; align-content: start; justify-items: center; padding: 24px var(--gutter) 56px; }
.au-card { width: 100%; max-width: 440px; }
.au-logo { width: 56px; height: 56px; border-radius: 14px; margin: 0 0 20px; object-fit: cover; }
.au-card h1 { font-size: 28px; line-height: 1.12; letter-spacing: -.03em; margin: 0 0 6px; }
.au-card .au-sub { color: var(--ink-2); margin: 0 0 22px; font-size: 15px; }
.au-back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: 0 0 8px -4px; color: var(--muted); font-size: 14px; font-weight: 600; }
.au-back:hover { color: var(--ink); }
@media (min-width: 900px) {
  .au { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .au-side { display: block; position: relative; overflow: hidden; background: var(--s2); min-height: calc(100dvh - var(--chrome-h, var(--top-h, 60px))); }
  .au-side picture, .au-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
  .au-side .au-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(24px, 4vw, 64px); background: var(--scrim); color: var(--on-photo, white); display: grid; gap: 8px; }
  .au-side .au-copy h2 { font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -.03em; line-height: 1.1; max-width: 18ch; color: inherit; }
  .au-side .au-copy p { max-width: 44ch; color: inherit; opacity: .9; }
  .au-main { align-content: center; padding-block: 48px; }
  body:has(.au-side) .footer { margin-top: 0; }   /* the photo panel meets the footer line, no white band between them */
}
.au-form > * + * { margin-top: 16px; }
.au-field label, .au-label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.au-hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.au-err { font-size: 13px; color: var(--c-bad); margin-top: 6px; font-weight: 600; }
.au-err:empty { display: none; }
.au-field.bad input, .au-pw.bad input { box-shadow: inset 0 0 0 2px var(--c-bad); }
.au-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; background: var(--s2); border: 1px solid var(--line); margin-bottom: 14px; }
.au-alert .i { flex: none; margin-top: 1px; color: var(--c-bad); }
.au-alert.info .i { color: var(--ink-2); }
.au-phone { display: flex; align-items: stretch; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .15s; overflow: hidden; }
.au-phone:focus-within { box-shadow: inset 0 0 0 2px var(--brand); }
.au-phone.bad { box-shadow: inset 0 0 0 2px var(--c-bad); }
.au-phone .cc { display: flex; align-items: center; padding: 0 14px; font-weight: 700; color: var(--ink-2); background: var(--s2); border-right: 1px solid var(--line); }
.au-phone input { border: 0 !important; box-shadow: none !important; background: transparent !important; flex: 1; min-width: 0; letter-spacing: .04em; border-radius: 0 !important; }
.au-pw { position: relative; }
.au-pw input { padding-right: 84px; }
.au-pw button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-height: 40px; min-width: 64px; padding: 0 12px; border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 700; border-radius: 10px; }
.au-pw button:hover { color: var(--ink); background: var(--s2); }
.au-caps { display: none; font-size: 13px; color: var(--c-warn); margin-top: 6px; gap: 6px; align-items: center; }
.au-caps.on { display: flex; }
/* strength: neutral ink segments plus a word, never colour alone */
.au-pwhint { transition: color .15s; }
.au-pwhint.ok { color: var(--c-ok); font-weight: 600; }
.au-strength { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.au-strength[hidden] { display: none; }
.au-meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; flex: 1; max-width: 160px; }
.au-meter i { height: 4px; border-radius: 3px; background: var(--line); display: block; transition: background-color .2s; }
.au-strength[data-s="1"] .au-meter i:nth-child(-n+1), .au-strength[data-s="2"] .au-meter i:nth-child(-n+2), .au-strength[data-s="3"] .au-meter i { background: var(--ink); }
.au-strength-l { font-size: 13px; font-weight: 700; color: var(--ink-2); min-width: 3.5em; }
.au-reqtoggle { margin-top: 8px; border: 0; background: transparent; padding: 0; min-height: 32px; color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.au-reqtoggle:hover { color: var(--ink); }
.au-req[hidden] { display: none; }
.au-req { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.au-req li { display: flex; gap: 8px; align-items: center; }
.au-req li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--muted); flex: none; }
.au-req li.ok { color: var(--ink); }
.au-req li.ok::before { background: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 3px var(--surface); }
.au-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); min-height: 44px; }
.au-check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--brand); }
.au-check a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.au-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.au-links a { color: var(--brand); font-weight: 600; }
.au-links a:hover { text-decoration: underline; text-underline-offset: 2px; }
.au-alt { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; color: var(--ink-2); line-height: 1.9; }
.au-alt a { color: var(--brand); font-weight: 700; }
.au-partner { display: flex; gap: 8px; align-items: center; color: var(--ink-2); font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.au-code { text-align: center; font-size: 30px !important; letter-spacing: .5em; font-weight: 800; min-height: 64px !important; padding-left: calc(12px + .5em) !important; font-variant-numeric: tabular-nums; }
.au-timer { text-align: center; font-size: 14px; color: var(--ink-2); }
.au-dev { border: 1px dashed var(--line); border-radius: 12px; padding: 12px; text-align: center; font-size: 13px; color: var(--ink-2); }
.au-dev b { display: block; font-size: 24px; letter-spacing: .3em; color: var(--ink); }
.au-trust { display: grid; gap: 10px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.au-trust span { display: flex; gap: 8px; align-items: center; }
.au-trust .i { width: 16px; height: 16px; color: var(--ink-2); }
.au-btn-busy { opacity: .8; }

/* ================================================================== account */
.acct-page { padding: 8px var(--gutter) 64px; }
.acct-head { display: flex; align-items: center; gap: 16px; padding: 12px 0 20px; }
.acct-av { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: 22px; font-weight: 800; flex: none; }
.acct-head h1 { font-size: 26px; letter-spacing: -.03em; margin: 0; }
.acct-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin-top: 2px; }
.acct-ok { display: inline-flex; align-items: center; gap: 4px; color: var(--c-ok); font-weight: 700; font-size: 13px; }
.acct-cols { display: grid; gap: 28px; }
@media (min-width: 900px) {
  .acct-cols { grid-template-columns: clamp(280px, 24vw, 380px) minmax(0, 1fr); gap: clamp(32px, 4vw, 72px); align-items: start; }
  .acct-side { position: sticky; top: calc(var(--top-h, 60px) + 16px); }
}
.acct-main { display: grid; gap: 28px; align-content: start; }
@media (min-width: 1200px) { .acct-main { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 56px); } .acct-main > .wide { grid-column: 1 / -1; } }
.acct-sec { display: grid; gap: 12px; align-content: start; }
.acct-sec > h2 { font-size: 17px; letter-spacing: -.02em; margin: 0; }
.acct-note { color: var(--muted); font-size: 14px; }
.acct-rows { display: grid; border-top: 1px solid var(--line); }
.acct-rows > a, .acct-rows > button { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0; width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-weight: 600; font-size: 15px; text-align: left; cursor: pointer; }
.acct-rows > a:hover, .acct-rows > button:hover { color: var(--brand); }
.acct-rows .l { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.acct-rows .l .i { color: var(--ink-2); }
.acct-rows > a > .i:last-child { color: var(--muted); width: 18px; height: 18px; }
.acct-form > * + * { margin-top: 16px; }
.acct-form summary { cursor: pointer; font-weight: 700; color: var(--brand); min-height: 44px; display: flex; align-items: center; }
.acct-dev { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.acct-dev .ua { font-weight: 600; word-break: break-word; }
.acct-dev .cur { color: var(--c-ok); font-size: 12.5px; font-weight: 700; margin-left: 6px; }
.acct-state { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.acct-state.ok { color: var(--c-ok); } .acct-state.bad { color: var(--c-bad); } .acct-state.wait { color: var(--ink-2); }

/* ================================================================== KYC */
.kc-page { padding: 8px var(--gutter) 120px; }
.kc-wrap { max-width: 1040px; margin-inline: auto; }
.kc-state { display: grid; gap: 10px; padding: 8px 0 18px; max-width: 640px; }
.kc-state h1, .kc-state .kc-h { font-size: 28px; letter-spacing: -.03em; line-height: 1.12; margin: 0; }
.kc-lead { color: var(--ink-2); font-size: 16px; }
.kc-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.kc-pill.ok { color: var(--c-ok); } .kc-pill.bad { color: var(--c-bad); } .kc-pill.warn { color: var(--c-warn); }
.kc-why { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 14px; }
.kc-why li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.kc-why .i { color: var(--ink); margin-top: 1px; }
.kc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 4px 0 22px; padding: 0; list-style: none; max-width: 640px; }
.kc-steps li { display: grid; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.kc-steps li::before { content: ""; height: 3px; border-radius: 3px; background: var(--line); }
.kc-steps li.on { color: var(--ink); } .kc-steps li.on::before { background: var(--ink); }
.kc-sum dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 8px 0 0; font-size: 14px; }
.kc-sum dt { color: var(--muted); } .kc-sum dd { margin: 0; font-weight: 600; }
.kc-block { display: grid; gap: 14px; padding: 22px 0; border-top: 1px solid var(--line); }
.kc-block > h2 { font-size: 18px; letter-spacing: -.02em; margin: 0; display: flex; gap: 10px; align-items: center; }
.kc-n { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--bg); display: inline-grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.kc-miss { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-bottom: 8px; }
.kc-miss b { display: block; }
.kc-miss ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); }
.kc-docs { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.kc-docs legend { padding: 0; font-weight: 800; font-size: 18px; letter-spacing: -.02em; margin-bottom: 10px; }
@media (min-width: 720px) { .kc-docs { grid-template-columns: repeat(3, 1fr); } .kc-docs legend, .kc-docs > .au-err { grid-column: 1 / -1; } }
.kc-doc { display: block; cursor: pointer; }
.kc-doc input { position: absolute; opacity: 0; pointer-events: none; }
.kc-doc .box { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); height: 100%; transition: border-color .15s; }
.kc-doc .box span { font-size: 13px; color: var(--muted); }
.kc-doc:has(input:checked) .box { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.kc-doc:has(input:focus-visible) .box { outline: 3px solid var(--focus); outline-offset: 2px; }
.kc-fields { display: grid; gap: 16px; }
@media (min-width: 720px) { .kc-fields { grid-template-columns: 1fr 1fr; } }
.kc-slots { display: grid; gap: 14px; }
@media (min-width: 720px) { .kc-slots { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
.kc-slot { display: grid; gap: 10px; align-content: start; padding: 14px; border: 1px dashed var(--line); border-radius: var(--r-card); background: var(--surface); position: relative; }
.kc-slot[hidden] { display: none; }
.kc-slot.has { border-style: solid; }
.kc-slot.bad { border-color: var(--c-bad); border-style: solid; }
.kc-slot.busy { opacity: .6; }
.kc-slot header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.kc-slot .req { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.kc-slot .req.warn { color: var(--c-warn); }
.kc-slot .pv { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 10px; background: var(--s2); }
.kc-slot .ph { display: grid; place-items: center; gap: 4px; aspect-ratio: 4 / 3; border-radius: 10px; background: var(--s2); color: var(--muted); font-size: 13px; text-align: center; padding: 12px; }
.kc-slot .ph .i { width: 28px; height: 28px; }
.kc-slot.has .ph { display: none; }
.kc-slot .acts { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.kc-slot .acts label.btn { cursor: pointer; }
.kc-slot input[type=file] { display: none; }
.kc-slot [data-cam-label] { order: -1; }
.kc-slot .acts:has([data-cam-label]:not([hidden])) [data-pick-label] { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.kc-bar { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.kc-bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .15s linear; }
.kc-privacy { border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px; }
.kc-privacy h2 { font-size: 15px; display: flex; gap: 8px; align-items: center; margin: 0 0 10px; }
.kc-privacy ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.kc-privacy li { display: flex; gap: 10px; align-items: flex-start; }
.kc-privacy li .i { color: var(--ink-2); margin-top: 2px; }
.kc-actions { position: sticky; bottom: calc(var(--nav-h, 64px) + var(--safe-b, 0px)); z-index: 5; display: flex; gap: 10px; justify-content: flex-end; padding: 12px var(--gutter); margin-inline: calc(var(--gutter) * -1); background: var(--surface); border-top: 1px solid var(--line); }
.kc-actions .btn { flex: 1; }
@media (min-width: 720px) { .kc-actions { position: static; background: transparent; border: 0; padding: 0; margin: 0; justify-content: flex-start; } .kc-actions .btn { flex: none; min-width: 190px; } }
.kc-thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.kc-thumbs img { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.kc-banner { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; background: var(--surface); }
.kc-banner > .i { color: var(--ink-2); }
.kc-banner.bad > .i { color: var(--c-bad); }
.kc-banner b { display: block; }

@media (prefers-reduced-motion: reduce) { .au-meter i, .kc-bar i { transition: none; } }

/* ================================================================== stack navigation shell (account sections, drill-down pages) */
.sx { display: block; padding: 0 0 56px; }
.sx-nav { display: none; padding: 8px var(--gutter) 24px; }
.sx-hub .sx-nav { display: block; }
.sx-hub .sx-main { display: none; }
.sx-main { padding: 0 var(--gutter); min-width: 0; }
.sx-bar { position: sticky; top: calc(var(--chrome-h, var(--top-h, 60px)) + var(--safe-t, 0px)); z-index: 30; display: flex; align-items: center; gap: 4px; min-height: 52px; background: var(--bg); margin-inline: calc(var(--gutter) * -1); padding-inline: calc(var(--gutter) - 10px) var(--gutter); }
.sx-back { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); flex: none; transition: background-color .15s; }
.sx-back:hover { background: var(--s2); }
.sx-title { font-size: 20px; letter-spacing: -.025em; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-act { display: flex; gap: 8px; align-items: center; }
.sx-crumbs { display: none; }
.sx-body { padding: 8px 0 24px; max-width: 760px; }
.sx-stackv { display: grid; gap: 32px; }
.sx-form { max-width: 520px; }
.sx-who { display: flex; align-items: center; gap: 14px; padding: 12px 0 20px; }
.sx-who .acct-av { width: 56px; height: 56px; font-size: 19px; }
.sx-who-t { display: grid; min-width: 0; } .sx-who-t b { font-size: 20px; letter-spacing: -.025em; } .sx-who-t span { color: var(--muted); font-size: 14px; }
.sx-group { margin-bottom: 20px; }
.sx-group h2 { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0; margin: 0 0 6px; }
.sx-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sx-list li { border-bottom: 1px solid var(--line); }
.sx-list a { display: flex; align-items: center; gap: 14px; min-height: 56px; color: var(--ink); font-weight: 600; font-size: 15px; transition: color .15s; }
.sx-list a:hover { color: var(--brand); }
.sx-list a > .i:first-child { color: var(--ink-2); }
.sx-list a > .i:last-child { margin-left: auto; color: var(--muted); width: 18px; height: 18px; }
.sx-list .t { flex: 0 1 auto; min-width: 0; }
.sx-list .e { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 500; }
.sx-list .e + .i { margin-left: 0 !important; }
.sx-list .e.ok { color: var(--c-ok); font-weight: 700; }
.sx-out { margin-top: 8px; }
.acct-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.acct-row .grow { flex: 1; min-width: 0; } .acct-row.dim { opacity: .75; }
.acct-row > .i { color: var(--ink-2); }
@media (min-width: 900px) {
  .sx { display: grid; grid-template-columns: clamp(260px, 22vw, 340px) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); padding-inline: var(--gutter); align-items: start; }
  .sx-nav, .sx-hub .sx-nav { display: block; position: sticky; top: calc(var(--chrome-h, var(--top-h, 60px)) + 16px); padding: 16px 0 24px; }
  .sx-hub .sx-main { display: flex; }
  .sx-main { padding: 0; }
  .sx-main { display: flex; flex-direction: column; }
  .sx-bar { position: static; margin: 0; padding: 6px 0 4px; min-height: 0; order: 1; }
  .sx-back { display: none; }
  .sx-title { font-size: 32px; letter-spacing: -.03em; white-space: normal; }
  .sx-body { order: 2; }
  .sx-crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); padding-top: 24px; order: 0; }
  .sx-crumbs a:hover { color: var(--ink); text-decoration: underline; }
  .sx-crumbs > * + *::before { content: "/"; margin-right: 8px; color: var(--line-strong, var(--line)); }
  .sx-crumbs [aria-current] { color: var(--ink); font-weight: 600; }
  .sx-body { padding-top: 8px; max-width: none; }
  .sx-main .sx-body > * { max-width: 880px; }
  .sx-nav[data-active="profile"] a[data-key="profile"], .sx-nav[data-active="addresses"] a[data-key="addresses"], .sx-nav[data-active="payments"] a[data-key="payments"],
  .sx-nav[data-active="kyc"] a[data-key="kyc"], .sx-nav[data-active="prefs"] a[data-key="prefs"], .sx-nav[data-active="favourites"] a[data-key="favourites"],
  .sx-nav[data-active="invite"] a[data-key="invite"], .sx-nav[data-active="security"] a[data-key="security"], .sx-nav[data-active="support"] a[data-key="support"],
  .sx-nav[data-active="legal"] a[data-key="legal"] { color: var(--brand); }
  .sx-list a { padding-inline: 0; }
}
/* page title on desktop (the appbar title is mobile only) */
@media (min-width: 900px) { .sx-main .sx-crumbs + .sx-body { padding-top: 12px; } }
.sx-nav [aria-current="page"] { color: var(--brand); }

/* direction-aware slide between levels (View Transitions API, set up in stack.js) */
.sx-main { view-transition-name: sx-page; }
.sx-hub .sx-nav { view-transition-name: sx-page; }
@media (min-width: 900px) { .sx-hub .sx-nav { view-transition-name: sx-nav; } .sx-nav { view-transition-name: sx-nav; } }
@keyframes sx-out-left { to { transform: translateX(-22%); opacity: 0; } }
@keyframes sx-in-right { from { transform: translateX(22%); opacity: 0; } }
@keyframes sx-out-right { to { transform: translateX(22%); opacity: 0; } }
@keyframes sx-in-left { from { transform: translateX(-22%); opacity: 0; } }
@keyframes sx-fade-out { to { opacity: 0; } }
@keyframes sx-fade-in { from { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  html:active-view-transition-type(forward)::view-transition-old(sx-page) { animation: .22s cubic-bezier(.2, .8, .2, 1) both sx-out-left; }
  html:active-view-transition-type(forward)::view-transition-new(sx-page) { animation: .22s cubic-bezier(.2, .8, .2, 1) both sx-in-right; }
  html:active-view-transition-type(back)::view-transition-old(sx-page) { animation: .22s cubic-bezier(.2, .8, .2, 1) both sx-out-right; }
  html:active-view-transition-type(back)::view-transition-new(sx-page) { animation: .22s cubic-bezier(.2, .8, .2, 1) both sx-in-left; }
  html:active-view-transition-type(fade)::view-transition-old(sx-page) { animation: .15s both sx-fade-out; }
  html:active-view-transition-type(fade)::view-transition-new(sx-page) { animation: .15s both sx-fade-in; }
}
::view-transition-old(sx-nav), ::view-transition-new(sx-nav) { animation: none; mix-blend-mode: normal; }
::view-transition-old(sx-nav) { display: none; }

/* signup steps and offer */
.au-steps { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 14px; }
.au-steps[hidden] { display: none; }
.au-prog { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 120px; }
.au-prog i { height: 3px; border-radius: 3px; background: var(--line); transition: background-color .2s; } .au-prog i.on { background: var(--ink); }
.au-offer { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; }
.au-offer b { color: var(--ink); letter-spacing: .04em; }
.au-offer .i { color: var(--ink-2); }
.au-bullets { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.au-bullets li { display: flex; gap: 10px; align-items: center; }
button.au-back { border: 0; background: transparent; cursor: pointer; font: inherit; }
button.au-back[hidden] { display: none; }
[data-step][hidden] { display: none; }


/* ---------- KYC wizard ---------- */
.kc-intro { grid-template-columns: 1fr !important; }
.kc-wiz { display: grid; gap: 14px; margin-top: 14px; }
.kc-stepper { display: grid; gap: 8px; }
.kc-prog { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .02em; text-transform: uppercase; }
.kc-prog b { color: var(--ink); }
.kc-stepper ol { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; }
.kc-stepper button { display: grid; justify-items: center; gap: 4px; width: 100%; min-height: 56px; padding: 6px 2px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; border-radius: 10px; }
.kc-stepper button:disabled { cursor: default; opacity: .6; }
.kc-stepper button i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-strong, var(--line)); font-style: normal; font-size: 13px; color: var(--ink-2); background: var(--surface); }
.kc-stepper button.on { color: var(--ink); }
.kc-stepper button.on i { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
.kc-stepper button.done:not(.on) i { border-color: var(--ok); background: var(--ok-t, var(--surface-2)); color: var(--ok); }
.kc-stepper button.done:not(.on) i::before { content: "\2713"; }
.kc-stepper button.done:not(.on) i { font-size: 0; }
.kc-stepper button.done:not(.on) i::before { font-size: 14px; font-weight: 800; }
.kc-stepper button:focus-visible { outline: 2px solid var(--focus, var(--brand)); outline-offset: 2px; }
.kc-meter { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.kc-meter i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .25s ease; }
.kc-step[hidden] { display: none; }
.kc-step h2 { font-size: 22px; line-height: 1.2; letter-spacing: -.01em; margin: 4px 0 6px; outline: 0; }
.kc-sub { margin: 0 0 14px; color: var(--ink-2); font-size: 15px; }
.kc-wiz:not(.js) .kc-step { display: block !important; margin-bottom: 22px; }
.kc-wiz:not(.js) .kc-stepper, .kc-wiz:not(.js) [data-next-btn], .kc-wiz:not(.js) [data-back] { display: none; }
.kc-wiz:not(.js) [data-submit] { display: inline-flex !important; }
.kc-wiz.busy { cursor: progress; }
.kc-doc .box { min-height: 64px; display: grid; align-content: center; }
.kc-doc input:checked + .box { box-shadow: inset 0 0 0 1px var(--brand); }
.kc-why-box { margin-top: 14px; background: var(--surface-2); border-radius: 14px; padding: 12px 14px; font-size: 14px; color: var(--ink-2); }
.kc-why-box p { margin: 6px 0 0; }
.kc-why-box b { display: flex; gap: 6px; align-items: center; color: var(--ink); }
.kc-tips { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.kc-tips li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.kc-tips .i { flex: none; color: var(--warn, var(--brand)); margin-top: 2px; }
.kc-slots.one { grid-template-columns: 1fr !important; max-width: 420px; }
.kc-slot .acts .btn { min-height: 44px; }
.kc-selfie { display: grid; gap: 14px; margin-bottom: 14px; }
.kc-example { margin: 0; display: grid; gap: 8px; justify-items: start; }
.kc-example svg { width: 100%; max-width: 240px; height: auto; }
.kc-example figcaption { font-size: 13px; color: var(--muted); }
.au-hint.ok { color: var(--ok); } .au-hint.bad { color: var(--bad); font-weight: 600; }
.kc-review dl { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.kc-review .row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kc-review dt { grid-column: 1; font-size: 13px; color: var(--muted); }
.kc-review dd { grid-column: 1; margin: 0; font-weight: 700; word-break: break-word; }
.kc-review .row a { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 14px; font-weight: 600; min-height: 44px; display: grid; align-items: center; }
.kc-thumbs figure { margin: 0; display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.kc-thumbs figcaption a { margin-left: 6px; font-weight: 600; }
.kc-consent { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); margin-top: 14px; cursor: pointer; font-size: 14px; }
.kc-consent input { width: 22px; height: 22px; margin-top: 1px; flex: none; accent-color: var(--brand); }
.kc-saved { display: flex; gap: 12px; align-items: center; background: var(--ok-t, var(--surface-2)); border: 1px solid var(--ok-b, var(--ok)); border-radius: 14px; padding: 12px 14px; font-size: 14px; }
.kc-saved[hidden], .kc-restored[hidden] { display: none; }
.kc-saved > div { flex: 1; min-width: 0; } .kc-saved b { display: block; } .kc-saved .i { color: var(--ok); flex: none; }
.kc-restored { display: flex; gap: 8px; align-items: center; background: var(--warn-t, var(--surface-2)); border: 1px solid var(--warn-b, var(--line)); border-radius: 12px; padding: 8px 12px; font-size: 14px; margin-top: 12px; }
.kc-link { background: none; border: 0; padding: 8px; min-height: 36px; margin-left: auto; font: inherit; font-weight: 700; color: var(--brand-t, var(--brand)); text-decoration: underline; cursor: pointer; }
.kc-note { display: flex; gap: 10px; align-items: flex-start; background: var(--bad-t, var(--surface-2)); border: 1px solid var(--bad-b, var(--bad)); color: var(--ink); border-radius: 14px; padding: 12px 14px; font-size: 14px; margin-bottom: 12px; }
.kc-note .i { color: var(--bad); flex: none; margin-top: 2px; } .kc-note b { display: block; }
.kc-nav { flex-wrap: wrap; align-items: stretch; }
.kc-nav .btn { flex: 1 1 0; min-height: 48px; justify-content: center; }
.kc-nav [data-back] { flex: 0 0 auto; }
.kc-nav [data-later] { order: 3; flex: 1 0 100%; min-height: 40px; background: none; border: 0; text-decoration: underline; color: var(--ink-2); font-weight: 600; }
.kc-nav [hidden] { display: none !important; }
.kc-savestate { margin: -4px 0 0; font-size: 13px; color: var(--muted); min-height: 1em; }
@media (min-width: 720px) { .kc-selfie { grid-template-columns: 240px 1fr; align-items: center; } .kc-stepper button { flex-direction: row; } .kc-nav [data-later] { order: 0; flex: 0 0 auto; padding: 0 14px; } .kc-nav .btn[data-next-btn], .kc-nav [data-submit] { flex: 0 0 auto; min-width: 180px; margin-left: auto; } }
@media (max-width: 719px) { .kc-intro .kc-why { display: none; } .kc-intro { padding: 16px; } .kc-intro .kc-h { font-size: 24px; } }
@media (prefers-reduced-motion: reduce) { .kc-meter i { transition: none; } }

/* the hub's page title lives in .sx-main, which is hidden on phones; expose one h1 there only */
.sx-nav-h1 { display: none; }
@media (max-width: 899px) { .sx-hub .sx-nav-h1 { display: block; } }
