/* ===== RESET & ROOT ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --red: #E30613; --navy: #1A2B5E; --white: #fff;
  --gbg: #EEF0F6; --gmid: #CCCCCC; --gtext: #777; --border: #D0D0D0; --text: #1a1a1a;
}
html, body { height: 100%; overscroll-behavior: none; }
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--gbg); min-height: 100vh; font-size: 14px;
  color: var(--text); -webkit-text-size-adjust: 100%;
}

/* ===== PAGES ===== */
.page { display: none; min-height: 100vh; flex-direction: column; }
.page.active { display: flex; }

/* ===== TOP BAR ===== */
.top {
  background: var(--navy); color: rgba(255,255,255,.65);
  padding: 5px 16px; font-size: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap;
}
.top-left { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.top-right { display: flex; align-items: center; gap: 4px; white-space: nowrap; flex-shrink: 0; }

/* ===== HEADER ===== */
.hdr {
  background: #fff; border-bottom: 3px solid var(--red);
  padding: 0 16px; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
}
.vfs-name { font-size: 19px; font-weight: 700; color: var(--navy); cursor: default; user-select: none; }
.uk-flag-wrap { display: flex; align-items: center; gap: 6px; }
.flag-uk { width: 26px; height: 16px; border-radius: 2px; overflow: hidden; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.hdr-tag {
  background: #F0F2F7; border: 1px solid #D0D5E8; border-radius: 3px;
  padding: 3px 7px; font-size: 9px; color: var(--navy); font-weight: 600;
  display: flex; align-items: center; gap: 3px; white-space: nowrap;
}
.hdr-tag i { font-size: 11px; color: var(--red); }

/* ===== STEPS BAR ===== */
.steps-bar, .sbar {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 0 16px; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.steps-bar::-webkit-scrollbar, .sbar::-webkit-scrollbar { display: none; }
.steps-bar-inner, .sbar-in { display: flex; align-items: center; min-width: max-content; padding: 10px 0; }
.sbar-item, .si { display: flex; align-items: center; gap: 5px; }
.sbar-dot, .sd {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--gbg); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: var(--gtext); flex-shrink: 0;
}
.sbar-dot.active, .sd.act { background: var(--red); border-color: var(--red); color: #fff; }
.sbar-dot.done, .sd.done { background: #2E7D32; border-color: #2E7D32; color: #fff; }
.sbar-label, .sl { font-size: 9px; font-weight: 600; color: var(--gtext); white-space: nowrap; }
.sbar-label.active, .sl.act { color: var(--red); }
.sbar-label.done, .sl.done { color: #2E7D32; }
.sbar-line, .sline { width: 18px; height: 2px; background: var(--border); margin: 0 3px; flex-shrink: 0; }
.sbar-line.done, .sline.done { background: #2E7D32; }

/* ===== FOOTER ===== */
.footer {
  background: var(--navy); color: rgba(255,255,255,.45);
  font-size: 9px; padding: 10px 16px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px;
}
.footer strong { color: rgba(255,255,255,.8); }

/* ===== NOTIF ===== */
.notif {
  position: fixed; bottom: 14px; right: 14px; left: 14px;
  background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 2px;
  font-size: 12px; display: flex; align-items: center; gap: 8px;
  transform: translateY(80px); opacity: 0; transition: all .26s;
  z-index: 999; border-left: 4px solid var(--red);
}
.notif.show { transform: translateY(0); opacity: 1; }

/* ===== LOCK PAGE ===== */
.lock-body { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 16px; gap: 12px; }
.uk-banner { width: 100%; max-width: 440px; background: var(--navy); border-radius: 3px; overflow: hidden; }
.uk-banner-inner { display: flex; align-items: stretch; }
.uk-flag-stripe { width: 5px; background: linear-gradient(180deg,#C8102E 33%,#fff 33%,#fff 66%,#012169 66%); flex-shrink: 0; }
.uk-banner-content { padding: 10px 14px; flex: 1; }
.uk-banner-top { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; flex-wrap: wrap; }
.uk-badge {
  background: rgba(255,255,255,.12); border-radius: 2px; padding: 2px 7px;
  font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.85); display: flex; align-items: center; gap: 3px;
}
.uk-badge i { font-size: 9px; }
.geo-badge { display: flex; align-items: center; gap: 3px; }
.geo-badge.loading { animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.uk-title { font-size: 12px; font-weight: 700; color: #fff; margin-bottom: 1px; }
.uk-sub { font-size: 9px; color: rgba(255,255,255,.6); }

.lock-steps { width: 100%; max-width: 440px; display: flex; background: #fff; border-radius: 3px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,.07); }
.ls-item { flex: 1; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 3px; border-right: 1px solid var(--gbg); position: relative; }
.ls-item:last-child { border-right: none; }
.ls-item.act { background: #F8F0F0; }
.ls-icon { width: 24px; height: 24px; border-radius: 50%; background: var(--gbg); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--gtext); }
.ls-icon.act { background: var(--red); color: #fff; }
.ls-lbl { font-size: 8px; font-weight: 600; color: var(--gtext); text-align: center; line-height: 1.2; }
.ls-lbl.act { color: var(--red); }
.ls-arrow { position: absolute; right: -4px; top: 50%; transform: translateY(-50%); font-size: 8px; color: var(--gmid); z-index: 1; }

.lock-card { background: #fff; width: 100%; max-width: 440px; border-radius: 3px; box-shadow: 0 4px 20px rgba(0,0,0,.09); overflow: hidden; }
.lc-hdr { background: var(--navy); padding: 14px 18px 12px; }
.lc-eyebrow { font-size: 9px; color: rgba(255,255,255,.5); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 3px; display: flex; align-items: center; gap: 4px; }
.lc-title { font-size: 14px; font-weight: 700; color: #fff; }
.lc-body { padding: 18px; }

.access-note { width: 100%; max-width: 440px; background: #fff; border-radius: 3px; padding: 10px 13px; display: flex; align-items: flex-start; gap: 8px; font-size: 10px; color: var(--gtext); line-height: 1.55; }
.access-note i { color: var(--navy); font-size: 13px; flex-shrink: 0; margin-top: 1px; }

/* ===== PIN ===== */
.field-lbl { font-size: 9px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 8px; }
.pin-display { display: flex; gap: 8px; margin-bottom: 16px; }
.pd { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--border); background: #fff; transition: all .15s; }
.pd.on { background: var(--red); border-color: var(--red); }
.pin-pad { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.pb {
  padding: 15px 8px; background: #fff; border: 1px solid var(--border); border-radius: 2px;
  font-size: 19px; font-family: inherit; color: var(--text); cursor: pointer;
  transition: all .12s; text-align: center; -webkit-tap-highlight-color: transparent;
}
.pb:active { background: var(--navy); color: #fff; transform: scale(.95); }
.pb.del { color: var(--gtext); font-size: 14px; }
.pb.clr { font-size: 10px; color: var(--red); font-weight: 700; }

/* ===== TEXT ===== */
.fw { position: relative; margin-bottom: 14px; }
.fw input {
  width: 100%; padding: 14px 42px 14px 13px; border: 1px solid var(--border); border-radius: 2px;
  font-family: inherit; font-size: 16px; color: var(--text); outline: none; transition: border-color .2s;
}
.fw input:focus { border-color: var(--navy); }
.ey { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--gtext); font-size: 18px; padding: 4px; }

/* ===== PATTERN ===== */
.pattern-wrap { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pattern-hint { font-size: 11px; color: rgba(255,255,255,.5); text-align: center; min-height: 16px; transition: all .2s; }
.pattern-hint.ok { color: #4A9EFF; font-weight: 500; }
.pattern-hint.err-h { color: #FF5555; }
.pattern-canvas-wrap { width: 100%; background: #0D1B2A; border-radius: 12px; overflow: hidden; }
#p-canvas { display: block; width: 100%; touch-action: none; }
.pattern-canvas-wrap { position: relative; width: 100%; max-width: 260px; aspect-ratio: 1; touch-action: none; user-select: none; -webkit-user-select: none; }
.pattern-canvas-wrap canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 8px; cursor: crosshair; }

/* ===== BUTTONS ===== */
.vbtn {
  width: 100%; padding: 14px; background: var(--red); color: #fff; border: none; border-radius: 2px;
  font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background .18s; display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 14px; -webkit-tap-highlight-color: transparent;
}
.vbtn:active { background: #B8000F; }
.vbtn:disabled { opacity: .35; pointer-events: none; }

/* ===== ERROR ===== */
.err {
  margin-top: 10px; padding: 10px 12px; background: #FFF2F2;
  border: 1px solid #F5C6C6; border-left: 4px solid var(--red);
  border-radius: 2px; font-size: 12px; color: #C0392B; display: none; align-items: center; gap: 7px;
}
.err.show { display: flex; }

/* ===== SELECT PAGE ===== */
.sel-body { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 16px; gap: 12px; }
.sel-card { background: #fff; width: 100%; max-width: 440px; border-radius: 3px; box-shadow: 0 4px 20px rgba(0,0,0,.09); overflow: hidden; }
.sch { background: var(--navy); padding: 13px 18px 11px; }
.sch-ey { font-size: 9px; color: rgba(255,255,255,.5); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 3px; display: flex; align-items: center; gap: 4px; }
.sch-t { font-size: 14px; font-weight: 700; color: #fff; }
.scb { padding: 18px; }
.fg { margin-bottom: 16px; }
.fl { font-size: 9px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px; display: flex; align-items: center; gap: 4px; }
.fl i { font-size: 11px; color: var(--red); }
.cs { position: relative; }
.cs select {
  width: 100%; padding: 13px 34px 13px 13px; border: 1px solid var(--border); border-radius: 2px;
  font-family: inherit; font-size: 13px; color: var(--text); background: #fff;
  outline: none; appearance: none; -webkit-appearance: none; cursor: pointer;
}
.cs select:focus { border-color: var(--navy); }
.cs::after { content: ''; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--gtext); pointer-events: none; }
.dvd { height: 1px; background: var(--gbg); margin: 2px 0 16px; }
.qblock { background: var(--gbg); border: 1px solid var(--border); border-radius: 2px; padding: 13px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; transition: opacity .3s; }
.ql { font-size: 10px; color: var(--gtext); margin-bottom: 2px; }
.qn { font-size: 30px; font-weight: 700; color: var(--navy); line-height: 1; display: flex; align-items: baseline; gap: 5px; }
.qn span { font-size: 11px; font-weight: 400; color: var(--gtext); }
.qi { width: 42px; height: 42px; background: rgba(26,43,94,.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 19px; color: var(--navy); }
.qbtn {
  width: 100%; padding: 15px; background: var(--red); color: #fff; border: none; border-radius: 2px;
  font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background .18s; display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 14px; -webkit-tap-highlight-color: transparent;
}
.qbtn:active { background: #B8000F; }
.qbtn:disabled { opacity: .4; pointer-events: none; }
.info-note { width: 100%; max-width: 440px; background: #fff; border-radius: 3px; padding: 10px 13px; display: flex; align-items: flex-start; gap: 8px; font-size: 10px; color: var(--gtext); line-height: 1.55; }
.info-note i { color: var(--navy); font-size: 13px; flex-shrink: 0; margin-top: 1px; }

/* ===== LOADING PAGE ===== */
.load-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; }
.load-card { background: #fff; width: 100%; max-width: 380px; border-radius: 3px; box-shadow: 0 4px 24px rgba(0,0,0,.1); overflow: hidden; text-align: center; }
.lct { background: var(--navy); padding: 18px 18px 15px; }
.lct-title { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 5px; }
.lct-sub { font-size: 11px; color: rgba(255,255,255,.65); line-height: 1.6; }
.lcb { padding: 20px 18px 18px; }
.spinner { width: 50px; height: 50px; border: 4px solid var(--gbg); border-top-color: var(--red); border-radius: 50%; animation: spin .9s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.l-status { font-size: 12px; font-weight: 600; color: var(--navy); margin-bottom: 5px; min-height: 18px; transition: opacity .3s; }
.l-detail { font-size: 11px; color: var(--gtext); line-height: 1.55; min-height: 34px; transition: opacity .3s; }
.pdots { display: flex; justify-content: center; gap: 6px; margin: 13px 0 15px; }
.pdot { width: 7px; height: 7px; border-radius: 50%; background: var(--border); transition: background .4s; }
.pdot.on { background: var(--red); }
.big-warn { background: var(--red); border-radius: 2px; padding: 12px 13px; margin-bottom: 13px; display: flex; align-items: flex-start; gap: 9px; text-align: left; }
.big-warn i { font-size: 20px; color: #fff; flex-shrink: 0; margin-top: 1px; }
.bwt { color: #fff; font-size: 12px; font-weight: 700; line-height: 1.5; letter-spacing: .01em; }
.bwt em { font-style: normal; font-weight: 400; opacity: .9; display: block; margin-top: 3px; font-size: 10px; }
.reset-msg { background: #FFF2F2; border: 1px solid #F5C6C6; border-left: 4px solid var(--red); border-radius: 2px; padding: 9px 11px; font-size: 11px; color: #C0392B; font-weight: 600; margin-bottom: 12px; display: none; align-items: center; gap: 6px; text-align: left; }
.reset-msg.show { display: flex; }
.cancel-btn { position: relative; z-index: 100; width: 100%; padding: 14px; background: #fff; color: var(--navy); border: 1.5px solid var(--navy); border-radius: 2px; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: all .18s; display: flex; align-items: center; justify-content: center; gap: 7px; -webkit-tap-highlight-color: transparent; }
.cancel-btn:active { background: var(--navy); color: #fff; }
.tap-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 70px; z-index: 50; cursor: default; }
.tap-flash { background: rgba(227,6,19,.08) !important; }

/* ===== ADMIN PAGE ===== */
.admin-body { flex: 1; padding: 14px; max-width: 440px; margin: 0 auto; width: 100%; }
.a-card { background: #fff; border: 1px solid var(--gmid); border-radius: 2px; margin-bottom: 10px; overflow: hidden; }
.a-hdr { background: var(--navy); color: #fff; padding: 8px 14px; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
.a-hdr i { font-size: 13px; }
.a-body { padding: 12px 14px; }
.a-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #EBEBEB; }
.a-row:last-child { border: none; padding-bottom: 0; }
.a-lbl { font-size: 12px; font-weight: 500; }
.a-desc { font-size: 10px; color: var(--gtext); margin-top: 2px; line-height: 1.45; }
.blk-warn { background: #FFF0F0; border: 1px solid #F5C6C6; border-radius: 2px; padding: 9px 12px; font-size: 11px; color: #C0392B; display: none; align-items: center; gap: 7px; margin-top: 7px; }
.blk-warn i { font-size: 13px; flex-shrink: 0; }

/* Toggle */
.tog-wrap { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.tog { position: relative; width: 38px; height: 20px; cursor: pointer; display: block; }
.tog input { opacity: 0; width: 0; height: 0; position: absolute; }
.tog-sl { position: absolute; inset: 0; background: var(--gmid); border-radius: 10px; transition: background .2s; }
.tog-thumb { position: absolute; width: 14px; height: 14px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; }
.tog-lbl { font-size: 11px; font-weight: 600; color: var(--gtext); }

/* Seg buttons */
.seg { display: flex; border: 1px solid var(--border); border-radius: 2px; overflow: hidden; flex-shrink: 0; }
.seg-btn { padding: 7px 9px; background: #fff; border: none; font-family: inherit; font-size: 11px; font-weight: 500; color: var(--gtext); cursor: pointer; transition: all .13s; white-space: nowrap; display: flex; align-items: center; gap: 3px; }
.seg-btn.active { background: var(--red); color: #fff; }
.seg-btn i { font-size: 11px; }

/* Range */
.range-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.range-row input[type=range] { flex: 1; -webkit-appearance: none; height: 4px; background: var(--gmid); border-radius: 2px; outline: none; }
.range-row input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--red); cursor: pointer; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--red); }
.range-lbl { font-size: 10px; color: var(--gtext); }
.len-val { font-size: 15px; font-weight: 700; color: var(--navy); }

/* Config bar */
.cfg-bar { background: var(--gbg); border: 1px solid var(--border); border-radius: 2px; padding: 8px 12px; font-size: 11px; color: var(--gtext); display: flex; align-items: center; gap: 7px; }
.cfg-bar i { color: var(--red); font-size: 13px; }

/* Admin buttons */
.save-btn { width: 100%; padding: 13px; background: var(--red); color: #fff; border: none; border-radius: 2px; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 8px; transition: background .18s; }
.save-btn:active { background: #B8000F; }
.preview-btn { width: 100%; padding: 12px; background: #fff; color: var(--navy); border: 1.5px solid var(--navy); border-radius: 2px; font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; transition: all .18s; }
.preview-btn:active { background: var(--navy); color: #fff; }

/* ===== ADMIN TABS ===== */
.adm-tabs{background:#fff;border-bottom:1px solid var(--gmid);padding:0 16px;display:flex;overflow-x:auto;}
.adm-tabs::-webkit-scrollbar{display:none;}
.adm-tab{padding:10px 13px;font-size:11px;font-weight:500;color:var(--gtext);cursor:pointer;border-bottom:3px solid transparent;margin-bottom:-1px;white-space:nowrap;-webkit-tap-highlight-color:transparent;}
.adm-tab.on{color:var(--red);border-bottom-color:var(--red);}
.vinp{width:100%;padding:9px 11px;border:1px solid var(--border);border-radius:2px;font-family:inherit;font-size:12px;color:var(--text);outline:none;margin-top:5px;}
.vinp:focus{border-color:var(--navy);}
.vinp-sm{width:90px;padding:8px 10px;border:1px solid var(--border);border-radius:2px;font-family:inherit;font-size:12px;color:var(--text);outline:none;}
.vinp-sm:focus{border-color:var(--navy);}
.add-person-btn{padding:7px 12px;background:var(--gbg);border:1px dashed var(--border);border-radius:2px;font-family:inherit;font-size:11px;color:var(--navy);cursor:pointer;width:100%;text-align:center;font-weight:600;margin-top:4px;}
.person-row{display:flex;align-items:center;gap:8px;margin-bottom:7px;}
.person-row input{flex:1;padding:8px 10px;border:1px solid var(--border);border-radius:2px;font-family:inherit;font-size:12px;color:var(--text);outline:none;}
.person-row input:focus{border-color:var(--navy);}
.del-person-btn{width:28px;height:28px;background:#FFF2F2;border:1px solid #F5C6C6;border-radius:2px;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--red);font-size:13px;flex-shrink:0;}

/* ===== DOCS PAGE ===== */
.docs-body{flex:1;display:flex;flex-direction:column;align-items:center;padding:16px;gap:14px;}
.docs-hcard{background:#fff;width:100%;max-width:440px;border-radius:3px;overflow:hidden;box-shadow:0 2px 12px rgba(0,0,0,.08);}
.dhc-top{background:var(--navy);padding:14px 18px 12px;}
.dhc-ey{font-size:9px;color:rgba(255,255,255,.5);font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin-bottom:3px;display:flex;align-items:center;gap:4px;}
.dhc-title{font-size:14px;font-weight:700;color:#fff;}
.dhc-body{padding:13px 18px;font-size:11px;color:var(--gtext);line-height:1.6;}
.pay-banner{width:100%;max-width:440px;background:#EEF7EE;border:1px solid #A5D6A7;border-left:4px solid #2E7D32;border-radius:3px;padding:12px 14px;display:flex;align-items:flex-start;gap:10px;}
.pay-title{font-size:12px;font-weight:700;color:#2E7D32;margin-bottom:3px;}
.pay-sub{font-size:10px;color:#555;line-height:1.55;}
.pay-amount{display:inline-flex;align-items:center;gap:5px;background:#2E7D32;color:#fff;border-radius:2px;padding:2px 9px;font-size:12px;font-weight:700;margin-top:5px;}
.docs-status-banner{width:100%;max-width:440px;border-radius:3px;padding:12px 14px;display:flex;align-items:flex-start;gap:10px;}
.docs-status-banner.err{background:#FFF2F2;border:1px solid #F5C6C6;border-left:4px solid var(--red);}
.docs-status-banner.ok{background:#E8F5E9;border:1px solid #A5D6A7;border-left:4px solid #2E7D32;}
.sb-title{font-size:12px;font-weight:700;color:var(--text);margin-bottom:2px;}
.sb-sub{font-size:10px;color:var(--gtext);line-height:1.5;}
.docs-list-card{background:#fff;width:100%;max-width:440px;border-radius:3px;box-shadow:0 2px 12px rgba(0,0,0,.08);overflow:hidden;}
.dlc-hdr{background:var(--navy);padding:9px 16px;font-size:9px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#fff;display:flex;align-items:center;gap:6px;}
.dlc-hdr i{font-size:13px;}
.d-item{display:flex;align-items:center;justify-content:space-between;padding:11px 16px;border-bottom:1px solid #F0F0F0;gap:10px;}
.d-item:last-child{border:none;}
.d-item.d-fail-row{background:#FFF8F8;}
.d-name{font-size:12px;font-weight:500;color:var(--text);display:flex;align-items:center;gap:8px;}
.d-name i{font-size:14px;color:var(--gtext);flex-shrink:0;}
.d-name.d-fail{color:var(--red);}
.d-name.d-fail i{color:var(--red);}
.d-st{display:flex;align-items:center;gap:4px;font-size:10px;font-weight:600;white-space:nowrap;flex-shrink:0;}
.d-st.ok{color:#2E7D32;}
.d-st.err{color:var(--red);}
.docs-err-card{background:#fff;width:100%;max-width:440px;border-radius:3px;box-shadow:0 2px 12px rgba(0,0,0,.08);overflow:hidden;border:1.5px solid #F5C6C6;}
.dec-hdr{background:var(--red);padding:12px 16px 10px;}
.dec-ey{font-size:9px;color:rgba(255,255,255,.7);font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin-bottom:3px;display:flex;align-items:center;gap:4px;}
.dec-title{font-size:14px;font-weight:700;color:#fff;}
.dec-body{padding:16px;}
.dec-desc{font-size:11px;color:var(--gtext);line-height:1.65;margin-bottom:14px;}
.docs-people-list{background:var(--gbg);border:1px solid var(--border);border-radius:3px;padding:10px 12px;margin-bottom:14px;}
.docs-people-title{font-size:9px;font-weight:700;color:var(--navy);text-transform:uppercase;letter-spacing:.07em;margin-bottom:8px;}
.docs-person-item{display:flex;align-items:center;gap:7px;padding:5px 0;border-bottom:1px solid #E0E0E0;font-size:11px;}
.docs-person-item:last-child{border:none;}
.docs-person-avatar{width:22px;height:22px;border-radius:50%;background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:700;flex-shrink:0;}
.docs-upload-area{border:2px dashed var(--border);border-radius:4px;padding:20px 16px;display:flex;flex-direction:column;align-items:center;gap:8px;cursor:pointer;background:var(--gbg);margin-bottom:14px;transition:all .2s;}
.docs-upload-area:hover{border-color:var(--navy);background:#E8EAF2;}
.docs-upload-area.uploaded{border-color:#2E7D32;background:#E8F5E9;border-style:solid;}
.docs-upload-success{background:#E8F5E9;border:1px solid #A5D6A7;border-radius:2px;padding:10px 12px;font-size:11px;color:#2E7D32;font-weight:600;display:none;align-items:center;gap:7px;margin-bottom:12px;}
.docs-upload-success.show{display:flex;}
.docs-upload-btn{flex:1;padding:13px;background:var(--red);color:#fff;border:none;border-radius:2px;font-family:inherit;font-size:13px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:7px;-webkit-tap-highlight-color:transparent;}
.docs-upload-btn:disabled{opacity:.4;pointer-events:none;}
.docs-cancel-btn{flex:1;padding:13px;background:#fff;color:var(--navy);border:1.5px solid var(--navy);border-radius:2px;font-family:inherit;font-size:13px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:7px;}

/* Тёмный фон для паттерна внутри lock-card */
.lock-card:has(#p-wrap) { background: #0A1628; }

@keyframes simPulse {
  0%, 100% { transform: scale(1); opacity: .6; }
  50% { transform: scale(1.15); opacity: .2; }
}
