/* Identity check: /account/identity (member), the strip on member pages, Admin → ID checks. app/identity.php */

/* ---------- the strip at the top of member pages ---------- */
.idb { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.idb-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); }
.idb-review .idb-ic { background: var(--gold-soft); color: var(--gold); }
.idb-action .idb-ic { background: var(--err-soft); color: var(--err); }
.idb-action { border-color: color-mix(in srgb, var(--err) 40%, var(--border)); }
.idb-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.idb-t b { font-weight: 600; }
.idb-t span { font-size: 13px; color: var(--text-3); }

/* ---------- progress: three steps and a bar ---------- */
.idp { padding: 18px 20px 16px; margin-bottom: 16px; }
.idp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.idp-s { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--text); text-decoration: none; }
.idp-s:hover b { color: var(--gold); }
.idp-dot { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--surface-2);
  font: 700 14px/1 var(--head); color: var(--text-3); font-variant-numeric: tabular-nums; }
.idp-s.ok .idp-dot { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.idp-s.review .idp-dot { background: var(--gold-soft); border-color: var(--gold); color: var(--gold); }
.idp-s.redo .idp-dot { background: var(--err-soft); border-color: var(--err); color: var(--err); }
.idp-t { display: flex; flex-direction: column; min-width: 0; }
.idp-t b { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idp-t small { font-size: 12px; color: var(--text-3); }
.idp-s.redo small { color: var(--err); }
.idp-bar { height: 6px; margin-top: 16px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.idp-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width .5s ease; }
.idp-bar .w1 { width: 33.4%; } .idp-bar .w2 { width: 66.7%; } .idp-bar .w3 { width: 100%; }
.idp-note { margin: 10px 0 0; font-size: 13px; color: var(--text-3); }

/* ---------- status callout ---------- */
.ido { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; margin-bottom: 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.ido > svg { flex: none; margin-top: 1px; }
.ido div { display: flex; flex-direction: column; gap: 3px; }
.ido b { font-weight: 600; }
.ido span { font-size: 14px; color: var(--text-2); }
.ido.ok { border-color: color-mix(in srgb, var(--ok) 45%, var(--border)); background: var(--ok-soft); } .ido.ok > svg { color: var(--ok); }
.ido.gold { border-color: var(--gold-line); background: var(--gold-soft); } .ido.gold > svg { color: var(--gold); }
.ido.err { border-color: color-mix(in srgb, var(--err) 45%, var(--border)); background: var(--err-soft); } .ido.err > svg { color: var(--err); }

/* ---------- the three step boxes ---------- */
.ids-cols { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.ids { scroll-margin-top: 20px; }
.ids-h { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.ids-h > div { flex: 1 1 auto; min-width: 0; }
.ids-h h2 { margin: 0; font: 700 18px/1.25 var(--head); }
.ids-k { display: block; font: 700 11px/1.4 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.ids-n { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border);
  font: 800 16px/1 var(--head); color: var(--text-2); }
.ids-n.ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 50%, var(--border)); color: var(--ok); }
.ids-n.review { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold); }
.ids-n.redo { background: var(--err-soft); border-color: color-mix(in srgb, var(--err) 50%, var(--border)); color: var(--err); }
.ids-form { display: flex; flex-direction: column; gap: 14px; max-width: none; }
.ids-form .btn-row { margin-top: 2px; }
.ids-form .btn svg { margin-right: 2px; }
.ids-lead { margin: 0; }
.ids-row3 { grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr) minmax(0, .8fr); }

/* Type of ID: a segmented choice */
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.seg legend { width: 100%; margin-bottom: 8px; padding: 0; font-weight: 600; font-size: 14px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2);
  font-size: 14px; font-weight: 600; color: var(--text-2); transition: border-color .15s, background .15s, color .15s; }
.seg label:hover span { border-color: var(--gold-line); color: var(--text); }
.seg input:checked + span { border-color: var(--gold); background: var(--gold-soft); color: var(--text); }
.seg input:focus-visible + span { box-shadow: var(--focus); }
.seg[disabled] label { cursor: default; }
.seg + .hint { margin-top: -4px; }

/* Upload boxes */
.dz-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dz-grid.one { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
.dz-grid.passport { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
.dz-grid.passport .dz-back { display: none; }
.dz { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dz-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
.dz-top b { font-weight: 600; font-size: 14px; }
.dz-drop { position: relative; display: grid; place-items: center; aspect-ratio: 1.586; min-height: 150px; border: 1.5px dashed var(--border); border-radius: 14px;
  background: var(--surface-2); cursor: pointer; overflow: hidden; transition: border-color .15s, background .15s; }
.dz-drop:hover, .dz-drop.drag { border-color: var(--gold); background: var(--gold-soft); }
.dz-drop:focus-within { box-shadow: var(--focus); }
.dz-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.dz-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px; text-align: center; color: var(--text-3); }
.dz-empty svg { color: var(--gold); }
.dz-empty b { color: var(--text); font-size: 14px; font-weight: 600; }
.dz-empty small { font-size: 12px; }
.dz-prev { position: absolute; inset: 0; display: grid; place-items: center; }
.dz-prev:empty { display: none; }
.dz-prev img { width: 100%; height: 100%; object-fit: contain; background: #0b0c07; }
.dz-pdf { display: flex; flex-direction: column; align-items: center; gap: 6px; font: 700 15px/1 var(--head); color: var(--text-2); }
.has-file .dz-drop { border-style: solid; }
.has-file .dz-empty { position: absolute; inset: auto 10px 10px; flex-direction: row; justify-content: center; padding: 7px 12px; border-radius: 999px;
  background: rgba(0, 0, 0, .72); color: #F4F5EC; opacity: 0; transition: opacity .15s; }
.has-file .dz-empty svg, .has-file .dz-empty small { display: none; }
.has-file .dz-empty b { color: #F4F5EC; font-size: 13px; }
.has-file .dz-drop:hover .dz-empty, .has-file .dz-drop:focus-within .dz-empty { opacity: 1; }
.dz-name { position: absolute; left: 10px; right: 10px; top: 10px; z-index: 1; padding: 5px 10px; border-radius: 8px; background: rgba(0, 0, 0, .72); color: #F4F5EC;
  font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz-name:empty { display: none; }
.is-big .dz-name { background: var(--err); color: #fff; }
.is-new .dz-drop { border-color: var(--gold); }
.is-redo .dz-drop { border-color: var(--err); }
.dz-ro { cursor: default; }
.dz-why { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 9px 12px; border-radius: 10px; background: var(--err-soft); color: var(--err); font-size: 13px; }
.dz-why svg { flex: none; margin-top: 2px; }
.ids > .dz-why { margin-bottom: 14px; }

/* SSN and address read-outs */
.ids-ssn { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 12px 14px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.ids-mask { font: 700 18px/1.2 var(--head); letter-spacing: .06em; }
.ids-ssn-form .field { max-width: 320px; }
.ids-addr { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.ids-addr svg { flex: none; margin-top: 2px; color: var(--gold); }
.ids-addr div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ids-addr b { font-weight: 600; }
.ids-addr span { font-size: 13px; color: var(--text-3); }
.ids-side .adm-p { margin: 0; }
.ids-ticks { margin: 0; }
.ids-ticks li { font-size: 14px; }

/* ---------- Admin → ID checks ---------- */
.idq > li { grid-template-columns: minmax(0, 1.3fr) 110px minmax(0, 1.4fr) 120px 150px; }
.idq-parts { display: flex; flex-wrap: wrap; gap: 6px; }
.idr-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.idr-part { padding: 18px; }
.idr-part + .idr-part { margin-top: 14px; }
.idr-part .box-h { margin-bottom: 12px; }
.idr-docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.idr-docs.one { grid-template-columns: minmax(0, 1fr); }
.idr-doc { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.idr-doc > span { font-size: 12px; color: var(--text-3); }
.idr-img { display: block; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #0b0c07; }
.idr-img img { display: block; width: 100%; max-height: 360px; object-fit: contain; }
.idr-img:hover { border-color: var(--gold); }
.idr-pdf { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 120px; color: var(--text-2); font-weight: 600; }
.idr-dec { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.idr-dec .seg span { height: 34px; padding: 0 14px; font-size: 13px; }
.idr-dec .seg input[value="0"]:checked + span { border-color: var(--err); background: var(--err-soft); }
.idr-dec select { flex: 1 1 220px; min-width: 0; }
.idr-ssn { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.idr-ssn .num { font: 700 20px/1.2 var(--head); letter-spacing: .05em; }
.idr-save { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; padding: 14px 0; background: var(--bg); border-top: 1px solid var(--border); z-index: 2; }
.idr-save p { margin: 0; font-size: 13px; color: var(--text-3); flex: 1 1 240px; }

/* ---------- phones and narrow screens ---------- */
@media (max-width: 1080px) {
  .ids-cols, .idr-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .idb { flex-wrap: wrap; }
  .idb .btn { width: 100%; justify-content: center; }
  .idp { padding: 16px; }
  .idp-steps { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .dz-grid, .idr-docs { grid-template-columns: minmax(0, 1fr); }
  .ids-row3 { grid-template-columns: minmax(0, 1fr); }
  .seg label { flex: 1 1 auto; }
  .seg span { width: 100%; justify-content: center; }
  .idq > li { grid-template-columns: minmax(0, 1fr) auto !important; gap: 4px 12px; }
  .idq > li > div:nth-child(1) { grid-column: 1; grid-row: 1; }
  .idq > li > div:nth-child(2) { grid-column: 2; grid-row: 1; }
  .idq > li > div:nth-child(3) { grid-column: 1 / -1; grid-row: 2; }
  .idq > li > div:nth-child(4), .idq > li > div:nth-child(5) { grid-column: 1 / -1; }
}

/* light theme: photo backgrounds stay neutral */
:root[data-theme="light"] .dz-prev img, :root[data-theme="light"] .idr-img, :root[data-theme="light"] .idr-img img { background: #F1F3EA; }

/* the dot next to "Identity check" in the member menu until it's verified */
.side a.it .badge.dot { min-width: 0; width: 9px; height: 9px; padding: 0; background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.side a.it .badge.dot.hot { background: var(--err); box-shadow: 0 0 0 3px var(--err-soft); }
.ids-row3 { align-items: start; }
.ids-more { margin-top: -4px; }
.ids-more > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--gold); font-size: 14px; font-weight: 600; list-style: none; }
.ids-more > summary::-webkit-details-marker { display: none; }
.ids-more > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.ids-more[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.ids-more[open] > summary { margin-bottom: 12px; }
.ids-more-b { display: flex; flex-direction: column; gap: 14px; }
.idr-dec { margin-top: 4px; padding-top: 10px; }
.idr-dec select { height: 34px; padding: 0 30px 0 12px; border: 1px solid var(--border); border-radius: 10px; background-color: var(--surface-2); color: var(--text); font: inherit; font-size: 13px; }
.idr-dec:not(:has(input[value="0"]:checked)) select { display: none; }
.idr-doc .dz-why { margin-top: 2px; }

/* sign-up: what you'll need afterwards */

/* Sign-in and security → Close your account */
.acct-close .acct-close-list { margin: 10px 0 14px; }
.acct-close .acct-close-list li { font-size: 14px; }
.acct-close .ids-more { margin-top: 0; }
.acct-close .acct-form { display: flex; flex-direction: column; gap: 14px; }
