/* WFsign Web — mobile-first blue theme, RTL, app-like surfaces. */
:root {
    --bg: #eef5ff;
    --bg-2: #f7faff;
    --bg-3: #dce9fb;
    --surface: #ffffff;
    --surface-2: #f2f7ff;
    --surface-3: #e6effc;
    --text: #10233f;
    --muted: #5b6f8a;
    --muted-2: #7b8ca3;
    --blue: #1e5aa8;
    --blue-deep: #0b3d7a;
    --blue-soft: #cfe2ff;
    --blue-light: #dbe9ff;
    /* Aliases keep the existing component rules blue without a large rewrite. */
    --gold: var(--blue);
    --gold-deep: var(--blue-deep);
    --gold-soft: var(--blue-soft);
    --gold-light: var(--blue-light);
    --line: rgba(11, 61, 122, 0.16);
    --line-strong: rgba(11, 61, 122, 0.28);
    --green: #3f7d5a;
    --green-bg: rgba(63, 125, 90, 0.10);
    --red: #b54a3f;
    --red-bg: rgba(181, 74, 63, 0.08);
    --shadow-sm: 0 4px 14px rgba(16, 35, 63, 0.06);
    --shadow: 0 16px 40px rgba(16, 35, 63, 0.10);
    --shadow-lg: 0 28px 70px rgba(16, 35, 63, 0.14);
    --radius: 24px;
    --font: "Cairo", "SF Arabic", "Geeza Pro", "Segoe UI", Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.7;
    background:
        radial-gradient(900px 520px at 92% -12%, rgba(30, 90, 168, 0.13), transparent 62%),
        radial-gradient(760px 480px at 0% 108%, rgba(11, 61, 122, 0.08), transparent 58%),
        linear-gradient(160deg, var(--bg-2), var(--bg) 55%, var(--bg-3));
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.28;
    background-image: radial-gradient(rgba(11, 61, 122, 0.12) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(to bottom, #000, transparent 55%);
    z-index: -1;
}
a { color: var(--gold-deep); text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.icon { display: inline-block; flex: 0 0 auto; vertical-align: -0.18em; }
[hidden] { display: none !important; }
code, .ltr { direction: ltr; unicode-bidi: embed; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(11, 61, 122, 0.12);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 26px rgba(16, 35, 63, 0.05);
}
.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    min-height: 76px;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); }
.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 21px;
    font-weight: 900;
    color: #ffffff;
    background: linear-gradient(145deg, var(--blue), var(--blue-deep));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 6px 16px rgba(11, 61, 122, 0.22);
    flex: 0 0 auto;
}
.brand-mark.small { width: 36px; height: 36px; border-radius: 11px; font-size: 17px; }
.brand-copy { display: grid; line-height: 1.25; }
.brand-copy strong { font-size: 19px; letter-spacing: -0.3px; }
.brand-copy small { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: 8px; }
.main-nav a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: 12px;
    transition: background 0.18s ease, color 0.18s ease;
}
.main-nav a:hover { background: rgba(30, 90, 168, 0.08); color: var(--text); }
.main-nav a.is-active { color: var(--text); background: var(--gold-soft); box-shadow: inset 0 0 0 1px rgba(11, 61, 122, 0.10); }
.header-side { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }
.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}
.status-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(30, 90, 168, 0.12); }
.status-chip.is-ok { color: var(--green); border-color: rgba(63, 125, 90, 0.22); background: var(--green-bg); }
.status-chip.is-ok i { background: var(--green); box-shadow: 0 0 0 3px rgba(63, 125, 90, 0.12); }
.status-chip.is-bad { color: var(--red); border-color: rgba(181, 74, 63, 0.22); background: var(--red-bg); }
.status-chip.is-bad i { background: var(--red); box-shadow: 0 0 0 3px rgba(181, 74, 63, 0.12); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #ffffff; box-shadow: 0 10px 22px rgba(11, 61, 122, 0.24); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(11, 61, 122, 0.28); }
.btn-soft { background: #123e6b; color: #ffffff; border-color: #123e6b; }
.btn-soft:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn-ghost { background: #10233f; color: #ffffff; border-color: #10233f; }
.btn-ghost:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn-sm { padding: 9px 13px; border-radius: 11px; font-size: 12.5px; }
.btn-xl { width: 100%; padding: 16px 22px; border-radius: 16px; font-size: 16px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.btn-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #ffffff; display: none; animation: spin 0.8s linear infinite; }
.btn.is-loading .btn-spinner { display: inline-block; }
.btn.is-loading .btn-label .icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   Page shell and hero
   -------------------------------------------------------------------------- */
.page { max-width: 1240px; margin: 0 auto; padding: 0 24px 72px; }
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: 48px;
    padding: 58px 0 36px;
}
.hero-compact { padding: 46px 0 30px; grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr); }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-deep);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(30, 90, 168, 0.12); }
.hero h1 {
    margin: 14px 0 16px;
    font-size: clamp(38px, 4.6vw, 58px);
    line-height: 1.16;
    letter-spacing: -1.6px;
    font-weight: 900;
}
.grad-text {
    color: var(--gold-deep);
    background: linear-gradient(100deg, var(--gold-deep), var(--gold) 55%, #4f8bd6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-lead { max-width: 610px; margin: 0 0 20px; color: var(--muted); font-size: 16px; line-height: 1.9; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 24px; }
.hero-points span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}
.hero-points .icon { color: var(--gold-deep); }
.hero-proof { display: flex; align-items: center; gap: 12px; }
.proof-avatars { display: flex; direction: ltr; }
.proof-avatars span {
    width: 31px; height: 31px; margin-left: -8px;
    border-radius: 50%; display: grid; place-items: center;
    background: var(--gold-soft); border: 2px solid var(--bg);
    color: var(--gold-deep); font-size: 10px; font-weight: 900;
}
.proof-avatars span:first-child { margin-left: 0; }
.hero-proof p { margin: 0; display: grid; line-height: 1.4; }
.hero-proof strong { font-size: 12.5px; }
.hero-proof small { color: var(--muted); font-size: 11px; }

/* Phone mockup */
.hero-art { position: relative; min-height: 420px; display: grid; place-items: center; }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.orb-one { width: 310px; height: 310px; background: rgba(207, 226, 255, 0.58); top: 22px; right: 30px; }
.orb-two { width: 210px; height: 210px; background: rgba(30, 90, 168, 0.10); bottom: 14px; left: 20px; }
.phone-card {
    position: relative; width: 292px; border-radius: 42px; padding: 9px;
    background: linear-gradient(145deg, #9ec3f5, #1e5aa8 45%, #0b3d7a);
    box-shadow: var(--shadow-lg); transform: rotate(-3deg);
}
.phone-notch { position: absolute; z-index: 2; top: 17px; left: 50%; transform: translateX(-50%); width: 86px; height: 19px; border-radius: 999px; background: #10233f; }
.phone-screen { border-radius: 34px; background: var(--surface); padding: 34px 18px 20px; min-height: 390px; overflow: hidden; }
.phone-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 9px; font-weight: 700; margin-bottom: 22px; }
.phone-signal { width: 28px; height: 7px; border-radius: 4px; background: linear-gradient(90deg, var(--gold) 20%, var(--gold-soft) 20%); }
.phone-battery { width: 16px; height: 8px; border-radius: 3px; border: 1px solid var(--muted); position: relative; }
.phone-battery::after { content: ""; position: absolute; inset: 1px; border-radius: 1px; background: var(--green); }
.install-tile { display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.app-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(145deg, var(--blue), var(--blue-deep)); color: #ffffff; font-weight: 900; font-size: 19px; border: 1px solid rgba(255, 255, 255, 0.18); flex: 0 0 auto; }
.install-tile div { display: grid; line-height: 1.3; }
.install-tile strong { font-size: 12px; }
.install-tile small { font-size: 9px; color: var(--muted); }
.mini-check { margin-inline-start: auto; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: white; }
.install-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 9px; color: var(--muted); }
.install-line code { font-size: 8px; color: var(--text); }
.ok-text { color: var(--green) !important; }
.bad-text { color: var(--red) !important; }
.fake-install-btn { margin-top: 15px; padding: 9px; border-radius: 12px; text-align: center; background: var(--gold-deep); color: #ffffff; font-size: 10px; font-weight: 800; }
.fake-qr { display: grid; place-items: center; margin-top: 18px; color: var(--gold); }
.float-badge {
    position: absolute; display: flex; align-items: center; gap: 8px;
    padding: 9px 11px; border-radius: 14px; background: var(--surface);
    border: 1px solid var(--line); box-shadow: var(--shadow);
    color: var(--gold-deep); font-size: 10px;
}
.float-badge span { display: grid; line-height: 1.25; }
.float-badge strong { color: var(--text); font-size: 10.5px; }
.float-badge small { color: var(--muted); font-size: 9px; }
.float-badge-top { top: 52px; left: 8px; transform: rotate(2deg); }
.float-badge-bottom { bottom: 38px; right: 0; transform: rotate(-2deg); }

/* Upload illustration */
.upload-illustration { display: grid; place-items: center; position: relative; min-height: 240px; }
.upload-stack { width: min(100%, 360px); display: grid; gap: 10px; }
.upload-file { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.upload-file > span { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-deep); }
.upload-file div { display: grid; line-height: 1.35; }
.upload-file strong { font-size: 14px; }
.upload-file small { color: var(--muted); font-size: 11px; }
.upload-file b { margin-inline-start: auto; color: var(--muted); font-size: 10px; letter-spacing: 1px; }
.upload-file.is-done { border-color: rgba(63, 125, 90, 0.22); }
.upload-file.is-done > span { background: var(--green-bg); color: var(--green); }
.upload-arrow { justify-self: center; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-deep); transform: rotate(-90deg); }

/* --------------------------------------------------------------------------
   Form cards
   -------------------------------------------------------------------------- */
.signer-shell, .upload-shell { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; scroll-margin-top: 96px; }
.form-card, .side-card, .progress-card, .result-card, .how-card, .install-card {
    background: linear-gradient(145deg, var(--surface), var(--surface-2));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.form-card { padding: 26px; }
.card-head { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.step-badge { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-deep); font-weight: 900; font-size: 15px; flex: 0 0 auto; }
.card-head-copy { display: grid; gap: 2px; }
.card-head h2 { margin: 0; font-size: 20px; letter-spacing: -0.3px; }
.card-head p { margin: 0; color: var(--muted); font-size: 12.5px; }
.secure-pill { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 999px; background: var(--green-bg); color: var(--green); font-size: 10.5px; font-weight: 700; white-space: nowrap; }

.file-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dropzone {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 100px;
    padding: 14px;
    border: 1.5px dashed rgba(11, 61, 122, 0.26);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--gold); background: rgba(207, 226, 255, 0.28); transform: translateY(-1px); }
.dropzone.has-file { border-style: solid; border-color: rgba(63, 125, 90, 0.30); background: rgba(63, 125, 90, 0.05); }
.drop-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-deep); flex: 0 0 auto; }
.dropzone.has-file .drop-icon { background: var(--green-bg); color: var(--green); }
.drop-copy { display: grid; gap: 1px; min-width: 0; line-height: 1.45; }
.drop-copy strong { font-size: 13.5px; }
.drop-copy span { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop-copy small { color: var(--muted-2); font-size: 10px; }
.drop-choose { margin-inline-start: auto; padding: 6px 10px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); color: var(--gold-deep); font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.dropzone.has-file .drop-choose { display: none; }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }

.field { display: grid; align-content: center; gap: 6px; min-width: 0; }
.field label { color: var(--text); font-size: 12.5px; font-weight: 700; }
.field label b { color: var(--red); font-weight: 800; }
.field .optional { color: var(--muted-2); font-size: 10px; font-weight: 500; }
.field-hint { color: var(--muted); font-size: 10.5px; line-height: 1.6; }
.input-wrap, .select-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .input-icon { position: absolute; inset-inline-start: 12px; color: var(--gold-deep); display: grid; place-items: center; pointer-events: none; }
.input-wrap input, .select-wrap select {
    width: 100%;
    min-height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(11, 61, 122, 0.22);
    background: var(--surface);
    color: var(--text);
    padding: 10px 12px;
    font-size: 13.5px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.input-wrap .input-icon + input { padding-inline-start: 39px; }
.input-wrap input:focus, .select-wrap select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(30, 90, 168, 0.14); }
.input-wrap input::placeholder { color: rgba(91, 111, 138, 0.55); }
.password-field { padding: 13px 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.72); border: 1.5px dashed rgba(11, 61, 122, 0.20); }
.icon-btn {
    position: absolute; inset-inline-end: 8px;
    width: 32px; height: 32px; border-radius: 9px;
    border: 1px solid var(--line); background: var(--surface);
    color: var(--muted); display: grid; place-items: center;
}
.icon-btn:hover { background: var(--gold-soft); color: var(--gold-deep); }
.input-wrap input[type="password"], .input-wrap input[type="text"]:has(+ .icon-btn) { padding-inline-end: 44px; }

.form-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; color: var(--muted); font-size: 11px; font-weight: 700; }
.form-divider::before, .form-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-row { display: flex; align-items: flex-start; gap: 9px; margin: 18px 0; cursor: pointer; }
.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.check-box { width: 21px; height: 21px; border-radius: 7px; border: 1.5px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; color: transparent; flex: 0 0 auto; margin-top: 1px; }
.check-row input:checked + .check-box { background: var(--gold-deep); border-color: var(--gold-deep); color: #ffffff; }
.check-row span:last-child { display: grid; line-height: 1.4; }
.check-row strong { font-size: 12.5px; }
.check-row small { color: var(--muted); font-size: 10.5px; }
.form-note { display: flex; align-items: flex-start; gap: 6px; margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.form-note .icon { color: var(--gold); margin-top: 2px; }
.form-alert { margin-top: 12px; }

/* Alerts */
.alert { display: flex; align-items: flex-start; gap: 8px; padding: 12px 14px; border-radius: 12px; font-size: 12.5px; line-height: 1.7; margin: 0 0 16px; }
.alert-error { background: var(--red-bg); color: var(--red); border: 1px solid rgba(181, 74, 63, 0.22); }
.alert-info { background: rgba(30, 90, 168, 0.08); color: var(--gold-deep); border: 1px solid var(--line); }
.alert-success { background: var(--green-bg); color: var(--green); border: 1px solid rgba(63, 125, 90, 0.22); }

/* Side cards */
.side-stack { display: grid; gap: 14px; }
.side-card { padding: 20px; box-shadow: var(--shadow-sm); }
.side-card-head { display: flex; align-items: center; gap: 8px; color: var(--gold-deep); margin-bottom: 14px; }
.side-card h3 { margin: 0; color: var(--text); font-size: 15px; }
.flow-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.flow-list li { display: flex; align-items: flex-start; gap: 10px; position: relative; }
.flow-list li:not(:last-child)::after { content: ""; position: absolute; top: 28px; inset-inline-start: 13px; width: 1px; height: 18px; background: var(--line); }
.flow-list li > span { width: 27px; height: 27px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--gold-deep); font-size: 9.5px; font-weight: 900; flex: 0 0 auto; }
.flow-list div { display: grid; line-height: 1.35; }
.flow-list strong { font-size: 12.5px; }
.flow-list small { color: var(--muted); font-size: 10.5px; }
.security-card { background: linear-gradient(150deg, #ffffff, #e6effc); }
.security-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-deep); margin-bottom: 10px; }
.security-card p { margin: 0 0 10px; color: var(--muted); font-size: 11.5px; line-height: 1.8; }
.security-points { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.security-points span { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-size: 10px; font-weight: 600; }
.highlight-card { background: linear-gradient(150deg, var(--gold-soft), #ffffff 72%); }
.highlight-card p { margin: 0 0 12px; color: var(--muted); font-size: 11.5px; line-height: 1.8; }
.mini-steps { display: grid; gap: 7px; }
.mini-steps span { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; }
.mini-steps b { width: 20px; height: 20px; border-radius: 7px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--gold-deep); font-size: 9px; }

/* Upload form */
.upload-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dropzone-wide { grid-column: 1 / -1; min-height: 126px; }
.pair-info { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr; gap: 6px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.pair-info div { display: grid; gap: 1px; min-width: 0; }
.pair-info span { color: var(--muted); font-size: 8.5px; }
.pair-info code, .pair-info strong { font-size: 9px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-wrap select { appearance: none; padding-inline-end: 36px; }
.select-arrow { position: absolute; inset-inline-end: 12px; color: var(--muted); pointer-events: none; display: grid; place-items: center; }

/* --------------------------------------------------------------------------
   Progress
   -------------------------------------------------------------------------- */
.progress-card { padding: 24px; margin-top: 20px; }
.progress-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.progress-head h2 { margin: 4px 0 0; font-size: 19px; }
.progress-percent { font-size: 24px; font-weight: 900; color: var(--gold-deep); direction: ltr; }
.progress-track { height: 9px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin: 18px 0 20px; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-deep), var(--gold), #6aa2e0); transition: width 0.4s ease; }
.progress-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.progress-step { display: flex; align-items: flex-start; gap: 8px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.65); opacity: 0.62; }
.progress-step > span { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: 9px; font-weight: 900; flex: 0 0 auto; }
.progress-step div { display: grid; line-height: 1.3; }
.progress-step strong { font-size: 10.5px; }
.progress-step small { color: var(--muted); font-size: 9px; }
.progress-step.is-active { opacity: 1; border-color: rgba(30, 90, 168, 0.30); background: rgba(207, 226, 255, 0.24); }
.progress-step.is-active > span { background: var(--gold-deep); border-color: var(--gold-deep); color: #ffffff; }
.progress-step.is-done { opacity: 1; border-color: rgba(63, 125, 90, 0.22); }
.progress-step.is-done > span { background: var(--green); border-color: var(--green); color: #ffffff; }
.progress-note { margin: 14px 0 0; color: var(--muted); font-size: 11px; }

/* --------------------------------------------------------------------------
   Result
   -------------------------------------------------------------------------- */
.result-card { position: relative; overflow: hidden; padding: 26px; margin-top: 20px; border-color: rgba(30, 90, 168, 0.30); }
.result-glow { position: absolute; width: 280px; height: 280px; border-radius: 50%; background: rgba(207, 226, 255, 0.55); filter: blur(50px); top: -160px; left: -80px; pointer-events: none; }
.result-head { position: relative; display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.result-check { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: var(--green); color: #ffffff; box-shadow: 0 8px 18px rgba(63, 125, 90, 0.22); flex: 0 0 auto; }
.result-head h2 { margin: 2px 0 0; font-size: 20px; }
.result-head .btn { margin-inline-start: auto; }
.result-body { position: relative; }
.result-app { display: flex; align-items: center; gap: 12px; padding: 18px 0; }
.app-icon.large { width: 58px; height: 58px; border-radius: 16px; font-size: 24px; }
.result-app h3 { margin: 0; font-size: 18px; }
.result-app p { margin: 1px 0; color: var(--muted); font-size: 12px; }
.result-app code { font-size: 10px; color: var(--muted-2); }
.verified-pill { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 4px; padding: 6px 9px; border-radius: 999px; background: var(--green-bg); color: var(--green); font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.result-actions { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; }
.result-share { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 14px; align-items: center; margin-top: 16px; padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.share-copy { display: grid; gap: 7px; min-width: 0; }
.share-copy > span, .share-label { color: var(--muted); font-size: 10.5px; font-weight: 600; }
.share-link { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.share-link code { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; color: var(--gold-deep); }
.share-link .icon-btn { position: static; flex: 0 0 auto; }
.qr-box { display: grid; place-items: center; min-height: 126px; padding: 8px; border-radius: 14px; background: #ffffff; border: 1px solid var(--line); }
.qr-box img, .qr-box canvas { display: block; max-width: 100%; height: auto; }
.result-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.result-details div { display: grid; gap: 2px; justify-items: start; text-align: right; padding: 10px; border-radius: 11px; background: rgba(255, 255, 255, 0.75); border: 1px solid var(--line); }
.result-details span { color: var(--muted); font-size: 9.5px; }
.result-details strong { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --------------------------------------------------------------------------
   How section
   -------------------------------------------------------------------------- */
.how-section { padding-top: 54px; scroll-margin-top: 90px; }
.section-heading { max-width: 620px; margin: 0 auto 24px; text-align: center; }
.section-heading h2 { margin: 8px 0 6px; font-size: 28px; letter-spacing: -0.7px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.how-card { position: relative; padding: 22px; box-shadow: var(--shadow-sm); }
.how-number { position: absolute; top: 16px; left: 18px; color: rgba(11, 61, 122, 0.22); font-size: 22px; font-weight: 900; }
.how-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-deep); margin-bottom: 12px; }
.how-card h3 { margin: 0 0 5px; font-size: 15px; }
.how-card p { margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.8; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.55); margin-top: 30px; }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 26px 24px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand div { display: grid; line-height: 1.3; }
.footer-brand strong { font-size: 13px; }
.footer-brand p { margin: 0; color: var(--muted); font-size: 10.5px; }
.footer-links { display: flex; gap: 16px; margin-inline-start: auto; }
.footer-links a { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.footer-links a:hover { color: var(--gold-deep); }
.footer-note { flex-basis: 100%; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 10px; }

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(16, 35, 63, 0.38); backdrop-filter: blur(4px); }
.modal-card { position: relative; width: min(100%, 430px); padding: 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); text-align: center; }
.modal-close { position: absolute; top: 12px; inset-inline-start: 12px; width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); display: grid; place-items: center; }
.modal-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-deep); margin: 0 auto 12px; }
.modal-card h2 { margin: 0 0 6px; font-size: 19px; }
.modal-card p { margin: 0 0 16px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.modal-status { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 14px; color: var(--muted); font-size: 11px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: pulse 1.4s ease infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.modal-note { margin: 10px 0 0 !important; font-size: 10px !important; color: var(--muted-2) !important; }

/* --------------------------------------------------------------------------
   Install page
   -------------------------------------------------------------------------- */
.page-install .site-header { position: static; }
.page-install .header-inner { min-height: 68px; }
.install-page { max-width: 720px; margin: 0 auto; padding: 36px 18px 50px; }
.install-card { padding: 28px; text-align: center; box-shadow: var(--shadow-lg); }
.install-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.install-eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--gold-deep); font-size: 10px; font-weight: 800; letter-spacing: 1.3px; }
.install-app-head { display: flex; align-items: center; gap: 14px; text-align: right; padding: 18px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 18px; }
.app-icon.hero-icon { width: 72px; height: 72px; border-radius: 20px; font-size: 30px; box-shadow: 0 8px 18px rgba(11, 61, 122, 0.12); }
.install-app-head h1 { margin: 0; font-size: 23px; letter-spacing: -0.5px; }
.install-app-head p { margin: 2px 0; color: var(--muted); font-size: 12px; }
.install-app-head code { font-size: 9.5px; color: var(--muted-2); }
.btn-install { padding: 17px 22px; font-size: 16px; border-radius: 16px; }
.install-hint { display: flex; align-items: flex-start; justify-content: center; gap: 5px; margin: 10px auto 20px; max-width: 460px; color: var(--muted); font-size: 10.5px; line-height: 1.7; text-align: center; }
.install-hint .icon { color: var(--gold); margin-top: 2px; }
.install-share { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); text-align: right; }
.qr-panel { display: grid; justify-items: center; gap: 6px; }
.qr-panel > span { color: var(--muted); font-size: 9.5px; }
.install-qr { width: 132px; min-height: 132px; padding: 6px; }
.share-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.share-panel p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.install-details { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; text-align: right; }
.install-details div { display: grid; gap: 2px; justify-items: start; text-align: right; padding: 9px 11px; border-radius: 11px; background: rgba(255, 255, 255, 0.75); border: 1px solid var(--line); }
.install-details span { color: var(--muted); font-size: 9px; }
.install-details strong { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.install-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.install-steps div { display: flex; align-items: center; gap: 7px; text-align: right; }
.install-steps b { width: 23px; height: 23px; border-radius: 8px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-deep); font-size: 9px; flex: 0 0 auto; }
.install-steps span { color: var(--muted); font-size: 9.5px; line-height: 1.5; }
.install-back { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 18px; color: var(--muted); font-size: 11px; }
.install-error { max-width: 460px; margin: 40px auto; }
.install-error h1 { margin: 0 0 8px; font-size: 22px; }
.install-error p { margin: 0 0 18px; color: var(--muted); font-size: 12.5px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
    .hero { gap: 28px; }
    .float-badge-top { left: -4px; }
    .float-badge-bottom { right: -8px; }
}
@media (max-width: 980px) {
    .main-nav { display: none; }
    .hero, .hero-compact { grid-template-columns: 1fr; padding-top: 38px; }
    .hero-art { display: none; }
    .upload-illustration { display: none; }
    .signer-shell, .upload-shell { grid-template-columns: 1fr; }
    .side-stack { grid-template-columns: 1fr 1fr; }
    .hero-lead { max-width: none; }
}
@media (max-width: 720px) {
    body { font-size: 14px; }
    .header-inner { min-height: 66px; padding: 8px 16px; gap: 12px; }
    .brand-mark { width: 38px; height: 38px; border-radius: 12px; font-size: 18px; }
    .brand-copy strong { font-size: 16px; }
    .brand-copy small { font-size: 10px; }
    .status-chip { padding: 6px 8px; font-size: 9.5px; }
    .status-chip span { max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .header-cta { display: none; }
    .page { padding: 0 14px 50px; }
    .hero { padding: 30px 0 22px; }
    .hero h1 { font-size: 38px; letter-spacing: -1px; }
    .hero-lead { font-size: 14px; line-height: 1.85; }
    .hero-proof { display: none; }
    .hero-points span { font-size: 10.5px; padding: 6px 9px; }
    .form-card { padding: 18px; border-radius: 20px; }
    .card-head { gap: 9px; padding-bottom: 15px; margin-bottom: 15px; }
    .card-head h2 { font-size: 17px; }
    .card-head p { font-size: 11px; }
    .step-badge { width: 33px; height: 33px; border-radius: 10px; font-size: 13px; }
    .secure-pill { display: none; }
    .file-grid, .field-grid, .upload-form-grid { grid-template-columns: 1fr; }
    .dropzone-wide { grid-column: auto; }
    .dropzone { min-height: 88px; }
    .password-field { padding: 12px; }
    .side-stack { grid-template-columns: 1fr; }
    .progress-card, .result-card { padding: 18px; border-radius: 20px; }
    .progress-steps { grid-template-columns: 1fr 1fr; }
    .progress-step small { display: none; }
    .result-head { flex-wrap: wrap; }
    .result-head .btn { margin-inline-start: 0; width: 100%; }
    .result-actions { grid-template-columns: 1fr; }
    .result-share { grid-template-columns: 1fr; }
    .qr-box { min-height: 110px; }
    .result-details { grid-template-columns: 1fr; }
    .how-section { padding-top: 36px; }
    .section-heading h2 { font-size: 23px; }
    .how-grid { grid-template-columns: 1fr; }
    .footer-inner { padding: 20px 16px; gap: 14px; }
    .footer-links { margin-inline-start: 0; }
    .install-page { padding: 20px 12px 36px; }
    .install-card { padding: 18px; border-radius: 20px; }
    .install-top { align-items: flex-start; }
    .install-app-head { padding: 13px; gap: 10px; }
    .app-icon.hero-icon { width: 58px; height: 58px; border-radius: 16px; font-size: 24px; }
    .install-app-head h1 { font-size: 19px; }
    .install-share { grid-template-columns: 1fr; }
    .qr-panel { order: 2; }
    .install-details { grid-template-columns: 1fr; }
    .install-steps { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
    .hero h1 { font-size: 33px; }
    .brand-copy small { display: none; }
}
