/* ============================================================
   ARCT Signature — p2.1 design system
   "Trusted Digital Signature" — deep navy + warm gold
   ============================================================ */
:root {
  --navy: #0A1F44;
  --navy-2: #0D2B5E;
  --navy-3: #16346b;
  --gold: #C9A227;
  --gold-2: #D4AF37;
  --gold-soft: #F5EBD2;
  --gold-line: rgba(201,162,39,.35);
  --white: #FFFFFF;
  --bg: #F7F8FA;
  --card: #FFFFFF;
  --ink: #0A1F44;
  --slate: #4A5568;
  --muted: #7A8699;
  --line: rgba(10,31,68,.10);
  --line-2: rgba(10,31,68,.16);
  --coral: #C0564F;
  --coral-soft: #FBEFEE;
  --ok: #1E8E5A;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-card: 0 1px 2px rgba(10,31,68,.04), 0 14px 40px -18px rgba(10,31,68,.22);
  --shadow-pop: 0 24px 70px -24px rgba(10,31,68,.40);
  --ring: 0 0 0 4px rgba(201,162,39,.22);
  --font-head: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-script: 'Great Vibes', 'Dancing Script', 'Segoe Script', 'Brush Script MT', cursive;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
h1,h2,h3,h4 { font-family: var(--font-head); color: var(--navy); letter-spacing: -.01em; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
a { color: var(--navy-2); }
a:hover { color: var(--gold-2); }

/* ---------- background ---------- */
.bg-scene { position: fixed; inset: 0; z-index: -2; background:
  radial-gradient(100% 70% at 10% 0%, #FFFFFF 0%, transparent 55%),
  radial-gradient(90% 60% at 95% 6%, rgba(201,162,39,.06) 0%, transparent 50%),
  linear-gradient(180deg, #FFFFFF 0%, var(--bg) 100%);
}
.seal-watermark { position: fixed; right: -90px; bottom: -90px; width: 320px; height: 320px; z-index: -1;
  background: radial-gradient(circle, rgba(201,162,39,.10), transparent 70%); border-radius: 50%;
  pointer-events: none;
}

/* ---------- typography helpers ---------- */
.script { font-family: var(--font-script); color: var(--gold-2); font-weight: 400; }
.script.navy { color: var(--navy); }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 2.6px; text-transform: uppercase; color: var(--gold-2); }
.gold-seal {
  display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
  border-radius: 50%; border: 1.6px solid var(--gold); color: var(--gold-2); font-size: 12px; flex: none;
}

/* ---------- navbar ---------- */
.navbar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px clamp(18px, 4vw, 56px);
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.85); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img.brand-logo { height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-size: 19px; font-weight: 800; letter-spacing: .8px; color: var(--navy); }
.brand-text em { font-style: normal; font-family: var(--font-script); font-size: 17px; color: var(--gold-2); }
.brand-text small { font-size: 10.5px; color: var(--muted); letter-spacing: .4px; }
.navbar nav { display: flex; align-items: center; gap: 16px; }
.navbar nav a.nav-link { text-decoration: none; color: var(--slate); font-size: 14px; font-weight: 600; padding: 6px 2px; position: relative; }
.navbar nav a.nav-link:hover { color: var(--navy); }
.navbar nav a.nav-link.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); border-radius: 2px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600;
  color: var(--slate); background: #fff; border: 1px solid var(--line-2); padding: 6px 12px; border-radius: 999px;
}
.status-pill .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.status-pill.ok { color: var(--ok); } .status-pill.ok .pulse { background: var(--ok); animation: pulse 2s infinite; }
.status-pill.bad { color: var(--coral); } .status-pill.bad .pulse { background: var(--coral); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(30,142,90,.45);} 50% { box-shadow: 0 0 0 6px rgba(30,142,90,0);} }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--font-head); font-weight: 700; border: none; cursor: pointer;
  border-radius: var(--radius); transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  position: relative; user-select: none; white-space: nowrap; text-decoration: none;
}
.btn:active { transform: translateY(0) scale(.985); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 10px 26px -12px rgba(10,31,68,.55); }
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(10,31,68,.65); background: var(--navy-2); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #fff; box-shadow: 0 10px 26px -12px rgba(201,162,39,.65); }
.btn-gold:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 32px -12px rgba(201,162,39,.75); }
.btn-ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--line-2); }
.btn-ghost:hover:not(:disabled) { border-color: var(--gold); color: var(--navy); background: #fffdf8; }
.btn-block { width: 100%; padding: 14px 18px; font-size: 15px; margin-top: 6px; }
.btn-sm { padding: 8px 14px; font-size: 12.5px; border-radius: 10px; }
.btn-lg { padding: 15px 28px; font-size: 15.5px; }
.btn-dl { background: #fff; color: var(--navy); border: 1.5px solid var(--line-2); padding: 10px 14px; font-size: 12.5px; border-radius: 10px; }
.btn-dl:hover { border-color: var(--gold); color: var(--gold-2); transform: translateY(-1px); }
.btn .btn-spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; flex: none; }
.btn-ghost .btn-spin, .btn-dl .btn-spin { border-color: rgba(10,31,68,.22); border-top-color: var(--navy); }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: none; cursor: pointer; color: var(--navy-2); font-weight: 700; font-size: 13.5px; padding: 5px 2px; }
.link-btn:hover { color: var(--gold-2); text-decoration: underline; }

/* gold flourish under primary actions */
.btn-flourish { position: relative; }
.btn-flourish::after {
  content: ''; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%);
  width: 46px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
}

/* ---------- cards / layout ---------- */
.main { padding: 0 clamp(16px, 4vw, 56px) 64px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.card-pad { padding: 28px 30px; }
.center-col { display: flex; flex-direction: column; align-items: center; padding: 36px 16px 64px; }
.auth-card { width: min(460px, 100%); padding: 34px 36px 30px; }
.auth-head { text-align: center; margin-bottom: 24px; }
.auth-head .logo-mark { height: 54px; margin-bottom: 6px; }
.auth-head h1 { margin: 8px 0 4px; font-size: 24px; font-weight: 800; }
.auth-head .script { font-size: 22px; line-height: 1.1; }
.auth-head p { margin: 6px 0 0; color: var(--slate); font-size: 14px; }
.secure-note { font-size: 12px; color: var(--muted); text-align: center; margin: 18px 0 0; }

/* tabs */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px; margin-bottom: 24px; }
.tab {
  font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--slate);
  padding: 11px 0; border-radius: 9px; text-align: center; text-decoration: none; display: block;
  transition: all .2s;
}
.tab.active { background: #fff; color: var(--navy); box-shadow: 0 4px 14px -6px rgba(10,31,68,.18); }

/* ---------- forms ---------- */
.field { display: block; margin-bottom: 16px; }
.field-label { display: flex; align-items: baseline; gap: 6px; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 7px; }
.field-label .req { font-weight: 500; color: var(--muted); font-size: 11.5px; }
.input-wrap { position: relative; display: block; }
.input-ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #A9B4C4; pointer-events: none; }
.field input {
  width: 100%; padding: 13px 14px 13px 42px; font-size: 15px; font-family: var(--font-body);
  border: 1.5px solid var(--line-2); border-radius: var(--radius); background: #fff; color: var(--ink);
  outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder { color: #B4BECD; }
.field input:focus { border-color: var(--gold); box-shadow: var(--ring); }
.field input.invalid { border-color: var(--coral); background: #fffafa; box-shadow: 0 0 0 4px rgba(192,86,79,.12); }
.field input.valid { border-color: var(--ok); }
.field-msg { display: block; margin-top: 6px; font-size: 12px; font-weight: 600; }
.field-msg.ok { color: var(--ok); }
.field-msg.bad { color: var(--coral); }
.err { color: var(--coral); font-size: 12.5px; font-weight: 600; min-height: 16px; margin: 4px 0 8px; }
.row-between { display: flex; justify-content: space-between; align-items: center; margin: -2px 0 10px; flex-wrap: wrap; gap: 8px; }
.form-alt { font-size: 13.5px; color: var(--slate); text-align: center; margin-top: 18px; }
.form-alt .link-btn { font-size: 14px; }
.pw-wrap { position: relative; }
.pw-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 15px; padding: 8px; opacity: .5; }
.pw-eye:hover { opacity: 1; }
.strength { height: 5px; border-radius: 99px; background: #EDF0F4; margin-top: 8px; overflow: hidden; }
.strength i { display: block; height: 100%; border-radius: 99px; width: 0; background: var(--gold); transition: width .25s ease, background .25s; }

/* PIN input (4–6 digits) */
.pin-field { display: flex; align-items: center; gap: 12px; }
.pin-input { letter-spacing: .6em; font-variant-numeric: tabular-nums; font-weight: 800; font-size: 20px !important; padding-left: 14px !important; text-align: center; }
.pin-meta { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

/* 6-digit code boxes */
.pin-boxes { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 4px; }
.pin-box {
  width: 46px; height: 54px; text-align: center; font-size: 21px; font-weight: 800; font-family: var(--font-head);
  border: 1.5px solid var(--line-2); border-radius: var(--radius); background: #fff; color: var(--navy);
  outline: none; transition: border-color .15s, transform .1s, box-shadow .15s;
}
.pin-box:focus { border-color: var(--gold); box-shadow: var(--ring); transform: translateY(-2px); }
.pin-box.filled { border-color: var(--gold); color: var(--navy); }
.pin-box.invalid { border-color: var(--coral); animation: shake .4s ease; }
.pin-sep { font-size: 20px; color: var(--muted); font-weight: 800; }
@keyframes shake { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-6px)} 40%{transform:translateX(6px)} 60%{transform:translateX(-4px)} 80%{transform:translateX(4px)} }

/* terms */
.terms-field { margin-bottom: 16px; }
.terms-row { display: flex; gap: 10px; align-items: flex-start; justify-content: center; text-align: left; }
.terms-check { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--gold-2); flex: none; cursor: pointer; }
.terms-label { font-size: 12.5px; color: var(--slate); line-height: 1.55; text-align: left; }
.terms-label a { color: var(--gold-2); font-weight: 700; text-decoration: underline; }
.terms-check.invalid { outline: 2px solid var(--coral); outline-offset: 2px; }

/* ---------- Turnstile ---------- */
.captcha { margin: 4px 0 14px; }
.cap-state { min-height: 16px; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--coral); }
.captcha.shake { animation: shake .45s ease; }
.hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.ts-note {
  width: min(460px, 100%); background: var(--gold-soft); border: 1px solid var(--gold-line); color: #6b5413;
  font-size: 12.5px; line-height: 1.5; border-radius: var(--radius); padding: 11px 14px;
}
.ts-note code { background: rgba(201,162,39,.14); padding: 1px 5px; border-radius: 5px; font-size: 11.5px; }
.ts-note.hidden { display: none !important; }

/* ---------- verification method cards ---------- */
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 14px; }
.method-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 10px 18px;
  font-family: var(--font-head); font-size: 13.5px; font-weight: 700; color: var(--navy);
  background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--radius-lg); cursor: pointer;
  transition: all .18s ease; position: relative;
}
.method-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(10,31,68,.28); }
.method-card.selected { border-color: var(--gold); background: #FFFDF6; box-shadow: 0 0 0 4px rgba(201,162,39,.14); }
.method-card .check { position: absolute; top: 8px; right: 9px; width: 19px; height: 19px; border-radius: 50%; background: var(--gold-2); color: #fff; font-size: 12px; display: none; align-items: center; justify-content: center; }
.method-card.selected .check { display: inline-flex; }
.method-card .mc-ic { line-height: 1; height: 28px; display: flex; align-items: center; }
.method-card small { font-size: 10.5px; color: var(--muted); font-weight: 500; }
.method-card:disabled { opacity: .6; cursor: wait; transform: none !important; }
.subflow { margin-top: 8px; animation: fadeUp .25s ease; }
.subflow.hidden { display: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- redirect banner ---------- */
.redirect-banner {
  display: flex; align-items: center; gap: 12px; width: min(460px, 100%);
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: var(--radius); padding: 12px 16px; font-size: 13px; box-shadow: var(--shadow-card);
}
.redirect-banner.hidden, .hidden { display: none !important; }
.rb-ic { color: var(--gold-2); display: inline-flex; }
.redirect-banner small { color: var(--muted); }

/* ---------- denial ---------- */
#denied { text-align: center; }
.denied-ic { display: flex; justify-content: center; margin: 4px 0 12px; color: var(--coral); }
.denied-target { background: var(--coral-soft); border: 1px solid rgba(192,86,79,.25); color: var(--coral); font-size: 12.5px; font-weight: 600; border-radius: 10px; padding: 10px 14px; margin: 4px 0 14px; word-break: break-all; }
.denied-build { font-size: 11.5px; color: var(--muted); margin: 0 0 14px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center; background: rgba(10,31,68,.45); backdrop-filter: blur(6px); padding: 16px; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal.hidden, .overlay.hidden { display: none; }
.modal-box { position: relative; width: min(440px, 100%); padding: 28px 30px; }
.modal-close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 15px; color: var(--muted); cursor: pointer; width: 32px; height: 32px; border-radius: 9px; }
.modal-close:hover { background: var(--bg); color: var(--navy); }

/* ---------- oauth overlay ---------- */
.oauth-overlay { position: fixed; inset: 0; z-index: 520; background: rgba(10,31,68,.5); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fadeIn .2s ease; }
.oauth-overlay.hidden { display: none; }
.oauth-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); padding: 34px 40px; text-align: center; max-width: 360px; }
.oauth-spin { display: block; width: 42px; height: 42px; margin: 0 auto 16px; border-radius: 50%; border: 4px solid rgba(201,162,39,.2); border-top-color: var(--gold); animation: spin .75s linear infinite; }
.oauth-card p { margin: 0 0 8px; font-weight: 800; color: var(--navy); font-size: 16px; }
.oauth-card small { color: var(--muted); font-size: 12px; line-height: 1.55; display: block; }

/* ---------- splash ---------- */
.splash { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #fff, var(--bg)); transition: opacity .45s ease, visibility .45s; }
.splash.done { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.splash-inner img { height: 76px; }
.splash-inner h1 { font-size: 24px; font-weight: 800; color: var(--navy); margin: 12px 0 2px; }
.splash-inner .script { font-size: 24px; }
.splash-inner p { margin: 0; font-size: 13px; color: var(--slate); }
.splash-bar { width: 220px; height: 4px; border-radius: 99px; background: #EDF0F4; margin-top: 16px; overflow: hidden; }
.splash-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--gold-2), var(--gold)); transition: width .5s ease; }

/* ---------- certificate ---------- */
.cert-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #fff; margin-bottom: 14px; flex-wrap: wrap; }
.cert-head h2 { color: #fff; margin: 0 0 4px; font-size: clamp(18px, 3vw, 26px); }
.cert-head p { margin: 0; font-size: 13.5px; color: rgba(255,255,255,.85); }
.cert-head .app-name { color: var(--gold-2); }
.countdown { position: relative; width: 66px; height: 66px; flex: none; }
.countdown svg { display: block; }
.countdown #count-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 23px; color: #fff; }
#count-ring { transition: stroke-dashoffset 1s linear; }
.cert-frame { background: #fff; border-radius: 14px; padding: 12px; box-shadow: var(--shadow-pop); }
#cert-img { display: block; width: 100%; height: auto; border-radius: 8px; }
.cert-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.dl-group { display: flex; gap: 8px; flex-wrap: wrap; }
.cert-go { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cert-go .btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.4); }
.cert-go .btn-ghost:hover { background: rgba(255,255,255,.26); border-color: #fff; color: #fff; }
.cert-url { text-align: center; color: rgba(255,255,255,.8); font-size: 12px; margin: 10px 0 0; word-break: break-all; }
.cert-stage { width: min(880px, 100%); margin: 0 auto; }

/* ---------- landing ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 64px 0 30px; max-width: 1160px; margin: 0 auto; }
.hero-copy .brand-logo-hero { height: 64px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 4.8vw, 54px); line-height: 1.06; margin: 14px 0 10px; letter-spacing: -.02em; }
.hero h1 .script { font-size: 1.05em; }
.hero .lede { font-size: 17px; line-height: 1.7; color: var(--slate); max-width: 52ch; }
.hero-actions { display: flex; gap: 14px; margin: 26px 0; flex-wrap: wrap; }
.trust-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--slate); font-weight: 600; }
.trust-item .gold-seal { width: 18px; height: 18px; font-size: 10px; }
.hero-art { display: flex; justify-content: center; }
.flow-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 24px; width: 100%; max-width: 400px; }
.flow-row { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--slate); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; }
.flow-row.center { justify-content: center; }
.flow-row .badge { background: var(--navy); color: #fff; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 12.5px; }
.flow-row .arrow { color: var(--gold-2); font-weight: 800; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #D6DCE6; flex: none; }
.dot-ok { background: var(--gold); }
.flow-row.cert { background: var(--gold-soft); color: #6b5413; justify-content: center; }
.band { max-width: 1160px; margin: 56px auto 0; }
.band h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 8px; }
.band .band-sub { color: var(--slate); font-size: 15px; margin: 0 0 24px; }
.sec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.sec-grid > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-card); }
.sec-grid h3 { margin: 0 0 8px; font-size: 15.5px; }
.sec-grid p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--slate); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; padding: 0; margin: 0; }
.steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 22px 20px; box-shadow: var(--shadow-card); }
.step-n { position: absolute; top: -13px; left: 18px; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 13px; border: 2px solid var(--gold); }
.steps h3 { margin: 6px 0 6px; font-size: 15px; }
.steps p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--slate); }
.steps code, .sec-grid code { background: var(--bg); color: var(--navy); padding: 2px 6px; border-radius: 6px; font-size: 11.5px; border: 1px solid var(--line); }
.projects-cta { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; background: linear-gradient(135deg, #fff, #FFFDF6); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 34px; box-shadow: var(--shadow-card); position: relative; overflow: hidden; }
.projects-cta::after { content: '✓'; position: absolute; right: -20px; bottom: -60px; font-size: 200px; color: rgba(201,162,39,.08); line-height: 1; pointer-events: none; }
.projects-cta h3 { margin: 0 0 6px; font-size: 20px; }
.projects-cta p { margin: 0; font-size: 14px; color: var(--slate); max-width: 52ch; }
.foot { text-align: center; padding: 30px 16px 42px; border-top: 1px solid var(--line); margin-top: 50px; }
.foot p { margin: 4px 0; font-size: 13px; color: var(--slate); }
.foot .muted { color: var(--muted); font-size: 12px; }
.foot img { height: 40px; margin-bottom: 8px; }

/* ---------- account ---------- */
.acct-hero { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.acct-avatar { width: 58px; height: 58px; border-radius: var(--radius-lg); color: #fff; font-family: var(--font-head); font-size: 26px; font-weight: 800; display: flex; align-items: center; justify-content: center; background: var(--navy); flex: none; box-shadow: 0 10px 22px -10px rgba(10,31,68,.5); }
.acct-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.acct-badge { font-size: 11.5px; font-weight: 700; color: var(--navy); background: var(--bg); border: 1px solid var(--line-2); padding: 6px 11px; border-radius: 999px; }
.acct-badge.ok { color: var(--ok); background: #EAF6F0; border-color: rgba(30,142,90,.25); }
.acct-badge.gold { color: #6b5413; background: var(--gold-soft); border-color: var(--gold-line); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(10px); background: var(--navy); color: #fff; font-size: 13.5px; font-weight: 600; padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow-pop); z-index: 600; max-width: min(90vw, 480px); text-align: center; opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; display: flex; align-items: center; gap: 9px; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.bad { background: var(--coral); }
.toast.ok { background: var(--navy); border: 1px solid var(--gold-line); }
.toast .t-ic { font-size: 15px; color: var(--gold-2); }

/* ---------- fatal ---------- */
.fatal { position: fixed; inset: 0; z-index: 550; background: rgba(10,31,68,.55); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.fatal.hidden { display: none; }
.fatal-box { width: min(540px, 100%); padding: 28px 30px; }
.fatal-box h2 { margin: 0 0 6px; font-size: 20px; color: var(--coral); }
.fatal-pre { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; font-size: 12.5px; white-space: pre-wrap; word-break: break-word; max-height: 150px; overflow: auto; }

/* ---------- signature ceremony (certificate success) ---------- */
.ink-line { height: 2px; width: 100%; max-width: 420px; margin: 18px auto 6px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--gold-2), transparent); animation: inkDraw 1.2s ease forwards; transform-origin: left; }
@keyframes inkDraw { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
.seal-pop { animation: sealPop .6s cubic-bezier(.2,.9,.3,1.3); display: inline-flex; }
@keyframes sealPop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .navbar nav > a.nav-link { display: none; }
  .cert-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .auth-card { padding: 26px 20px 22px; }
  .pin-box { width: 40px; height: 48px; }
  .method-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- static human verification ---------- */
.static-captcha { margin: 4px 0 14px; }
.sc-row { display: flex; align-items: center; gap: 12px; background: var(--bg); border: 1.5px solid var(--line-2); border-radius: var(--radius); padding: 10px 12px; }
.sc-q { font-size: 14px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.sc-input { width: 92px; padding: 9px 10px; font-size: 15px; font-weight: 700; text-align: center; font-family: var(--font-head); border: 1.5px solid var(--line-2); border-radius: 9px; background: #fff; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.sc-input:focus { border-color: var(--gold); box-shadow: var(--ring); }
.sc-input.invalid { border-color: var(--coral); }

/* ---------- backend-required panel (p2.3.2 — no static mode) ---------- */
#backend-required { text-align: center; }
#backend-required .denied-ic { color: var(--navy); }
