/* Identity check page (/kyc): clean cards, big tap targets, works from 320 px up. */
.kyc{max-width:760px;margin:0 auto;padding:4px 0 40px;display:grid;gap:14px}
.kyc-h{display:flex;gap:14px;align-items:center;padding:6px 2px}
.kyc-h h1{margin:0;font-size:24px;line-height:1.2}
.kyc-h p{margin:4px 0 0;color:var(--muted);font-size:14px;line-height:1.45}
.kyc-ico{width:52px;height:52px;border-radius:15px;background:var(--panel2);border:1px solid var(--line2);display:grid;place-items:center;color:var(--accent);flex:none}
.kyc-ico .ic{width:26px;height:26px}
.kyc-steps{list-style:none;margin:2px 0 4px;padding:0;display:flex;align-items:center;gap:6px}
.kyc-steps li{flex:1;display:flex;flex-direction:column;align-items:center;gap:5px;position:relative;font-size:11.5px;font-weight:700;color:var(--dim);text-align:center}
.kyc-steps li::before{content:"";position:absolute;top:13px;left:-50%;width:100%;height:2px;background:var(--line);z-index:0}
.kyc-steps li:first-child::before{display:none}
.kyc-steps li.done::before,.kyc-steps li.now::before{background:var(--accent)}
.kyc-steps i{position:relative;z-index:1;width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:var(--panel2);border:2px solid var(--line2);font-style:normal;font-size:12px;color:var(--muted)}
.kyc-steps li.done i{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.kyc-steps li.now i{border-color:var(--accent);color:var(--text)}
.kyc-steps li.done,.kyc-steps li.now{color:var(--text)}
.kyc-box{padding:20px}
.kyc-box h3{margin:0 0 12px;font-size:16px;display:flex;align-items:center;gap:10px}
.kyc-box h3.mt{margin-top:22px}
.kyc-box.center{text-align:center;display:grid;justify-items:center;gap:10px;padding:30px 20px}
.kyc-box.center h3{margin:0;justify-content:center}
.kyc-box.center p{margin:0;max-width:440px;line-height:1.55}
.kyc-big{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;background:rgba(34,229,140,.12);color:var(--accent)}
.kyc-big .ic{width:30px;height:30px}
.kyc-big.wait{background:rgba(246,226,160,.1);color:#f6e2a0}
.kyc-box.ok{border-color:rgba(34,229,140,.35)}
.kyc-docs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.kyc-doc{display:flex;flex-direction:column;gap:3px;align-items:flex-start;text-align:left;padding:13px 14px;min-height:64px;border-radius:13px;border:1px solid var(--line);background:var(--bg);color:var(--text);font:inherit;cursor:pointer;transition:border-color .15s,background .15s}
.kyc-doc b{font-size:14px}
.kyc-doc small{font-size:11.5px;color:var(--dim);font-weight:500}
.kyc-doc:hover{border-color:var(--line2)}
.kyc-doc.on{border-color:var(--accent);background:rgba(34,229,140,.08);box-shadow:0 0 0 1px var(--accent) inset}
.kyc-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.kyc-grid .field:first-child{grid-column:1/-1}
.kyc-ups{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}
.kyc-up{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center;min-height:150px;padding:14px 10px;border-radius:14px;border:1.5px dashed var(--line2);background:var(--bg);cursor:pointer;overflow:hidden;transition:border-color .15s,background .15s}
.kyc-up:hover{border-color:var(--accent)}
.kyc-up b{font-size:13.5px}
.kyc-up small{font-size:11.5px;color:var(--dim)}
.kyc-plus{width:40px;height:40px;border-radius:12px;background:var(--panel2);display:grid;place-items:center;color:var(--accent);margin-bottom:2px}
.kyc-plus .ic{width:20px;height:20px}
.kyc-up.has{border-style:solid;border-color:rgba(34,229,140,.5);padding:0}
.kyc-up.has img{width:100%;height:150px;object-fit:cover;display:block}
.kyc-up.has b,.kyc-up.has small{padding:0 8px}
.kyc-up.has small{padding-bottom:10px}
.kyc-chg{position:absolute;top:8px;right:8px;padding:3px 9px;border-radius:99px;background:rgba(7,8,11,.78);color:var(--text);font-size:11px;font-weight:700}
.kyc-up.busy{opacity:.55;pointer-events:none}
.kyc-tips,.kyc-safe,.kyc-note,.kyc-rej{display:flex;gap:10px;align-items:flex-start;margin-top:14px;padding:11px 13px;border-radius:12px;background:var(--panel2);font-size:12.5px;line-height:1.5;color:var(--muted)}
.kyc-tips .ic,.kyc-safe .ic,.kyc-note .ic,.kyc-rej .ic{width:17px;height:17px;flex:none;margin-top:1px}
.kyc-safe{margin-top:8px}
.kyc-safe .ic{color:var(--accent)}
.kyc-note{margin-top:0;color:var(--text)}
.kyc-rej{margin-top:0;background:rgba(255,138,152,.1);border:1px solid rgba(255,138,152,.35);color:#ffb3bc}
.kyc-rej b{display:block;color:#ff9aa6;margin-bottom:2px}
.kyc-rej span{color:var(--text)}
.kyc-err{margin-top:10px;color:#ff9aa6;font-size:13px;font-weight:600;min-height:18px;text-align:center}
@media (max-width:640px){
  .kyc-h h1{font-size:21px}
  .kyc-ico{width:44px;height:44px;border-radius:13px}
  .kyc-box{padding:16px 14px}
  .kyc-docs{grid-template-columns:1fr}
  .kyc-doc{flex-direction:row;justify-content:space-between;align-items:center;min-height:54px}
  .kyc-grid{grid-template-columns:1fr}
  .kyc-ups{grid-template-columns:1fr 1fr}
  .kyc-up{min-height:132px}
  .kyc-up.has img{height:116px}
  .kyc-steps li{font-size:10.5px}
}

/* a selfie holding the document is required (the admin ticked it) */
.kyc-selfie{display:flex;gap:12px;align-items:flex-start;margin-top:14px;padding:12px 14px;border-radius:12px;background:rgba(255,194,61,.1);border:1px solid rgba(255,194,61,.32);font-size:12.5px;line-height:1.5;color:var(--muted)}
.kyc-selfie .ic{width:20px;height:20px;flex:none;color:#ffc23d;margin-top:1px}
.kyc-selfie b{display:block;color:#ffd97a;margin-bottom:2px;font-size:13.5px}
.kyc-up.need{border-color:rgba(255,194,61,.55);background:rgba(255,194,61,.05)}
.kyc-up.need small{color:#ffd97a;font-weight:700}
