/* ============================================================
   锐淏统一认证 RAYHAW SSO · Design System
   ============================================================ */
:root {
    --navy: #0b1f3a;
    --navy-2: #123c5a;
    --navy-3: #1b4b6b;
    --teal: #14b8a6;
    --teal-2: #2dd4bf;
    --teal-dark: #0b6b5e;
    --mint: #e9faf6;
    --mint-2: #d2f4ec;
    --gold: #d4a017;
    --amber: #b54708;
    --amber-bg: #fffaeb;
    --red: #b42318;
    --red-bg: #fef3f2;
    --blue: #175cd3;
    --blue-bg: #eff8ff;
    --violet: #6941c6;
    --violet-bg: #f4f3ff;
    --bg: #f4f7fb;
    --bg-2: #eef3f9;
    --card: #ffffff;
    --text: #17233b;
    --text-2: #34445f;
    --muted: #6b7890;
    --muted-2: #8b97ab;
    --line: #e1e8f2;
    --line-2: #edf1f7;
    --radius: 18px;
    --radius-sm: 12px;
    --radius-xs: 9px;
    --shadow: 0 10px 40px rgba(11, 31, 58, .07);
    --shadow-lg: 0 24px 70px rgba(11, 31, 58, .14);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
    font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--teal); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
ul { margin: 0; padding: 0; }
code, pre { font-family: var(--mono); }
code { font-size: .88em; background: var(--line-2); color: var(--text-2); padding: 2px 6px; border-radius: 5px; word-break: break-all; }
pre.code-block { background: #0d1b2e; color: #d8e6f8; padding: 16px 18px; border-radius: 12px; overflow: auto; font-size: 12.5px; line-height: 1.7; }
:focus-visible { outline: 3px solid rgba(20, 184, 166, .35); outline-offset: 2px; }

.container { width: min(1200px, calc(100% - 64px)); margin: 0 auto; }
.icon { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: -3px; }
.icon-sm { width: 15px; height: 15px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.text-warn { color: var(--amber); }
.nowrap { white-space: nowrap; }
.align-right { text-align: right; }
.mt-16 { margin-top: 16px; }
.is-hidden { display: none !important; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 16px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand-mark { border-radius: 11px; box-shadow: 0 4px 14px rgba(11, 31, 58, .18); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 16px; letter-spacing: .2px; font-weight: 800; }
.brand-text small { font-size: 9px; letter-spacing: 2.6px; color: var(--muted-2); font-weight: 700; margin-top: 3px; }
.brand-light, .brand-light:hover { color: #fff; }
.brand-light .brand-text small { color: rgba(255, 255, 255, .55); }
.brand-footer { color: #fff; }
.brand-footer:hover { color: #fff; }
.brand-footer .brand-text small { color: rgba(255, 255, 255, .5); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 42px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
    font-size: 14px; font-weight: 650; line-height: 1.2; text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 17px; height: 17px; }
.btn-primary { background: linear-gradient(135deg, var(--teal) 0%, #0ea394 100%); color: #fff; box-shadow: 0 8px 20px rgba(20, 184, 166, .24); }
.btn-primary:hover { background: linear-gradient(135deg, #10a99a 0%, #0b8f83 100%); color: #fff; box-shadow: 0 10px 24px rgba(20, 184, 166, .32); }
.btn-soft { background: var(--mint); color: var(--teal-dark); border-color: var(--mint-2); }
.btn-soft:hover { background: var(--mint-2); color: var(--teal-dark); }
.btn-ghost { background: #fff; color: var(--text-2); border-color: var(--line); }
.btn-ghost:hover { border-color: #c9d5e5; background: #f8fafd; color: var(--navy); }
.btn-danger-ghost { background: #fff; border-color: #f3c7c2; color: var(--red); }
.btn-danger-ghost:hover { background: var(--red-bg); color: var(--red); }
.btn-danger { background: var(--red); color: #fff; }
.btn-lg { min-height: 50px; padding: 13px 24px; font-size: 15px; border-radius: 12px; }
.btn-sm { min-height: 34px; padding: 7px 13px; font-size: 13px; border-radius: 8px; }
.btn-xs { min-height: 28px; padding: 4px 9px; font-size: 12px; border-radius: 7px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }
.btn.is-loading::after { content: ""; width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.link-button { border: 0; background: none; padding: 0; color: inherit; display: inline-flex; align-items: center; gap: 8px; font-size: inherit; }
.text-link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 650; }
.icon-button { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: #fff; border-radius: 10px; color: var(--text-2); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid rgba(225, 232, 242, .8);
}
.header-inner { min-height: 70px; display: flex; align-items: center; gap: 28px; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.site-nav a { color: var(--text-2); font-size: 13.5px; font-weight: 600; padding: 9px 12px; border-radius: 8px; }
.site-nav a:hover { color: var(--navy); background: var(--bg); }
.site-nav a.is-active { color: var(--teal-dark); background: var(--mint); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; margin-left: auto; border: 1px solid var(--line); background: #fff; border-radius: 9px; width: 40px; height: 40px; color: var(--navy); }
.user-menu { position: relative; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: 9px; padding: 5px 8px 5px 5px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--text-2); }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary .icon { width: 15px; height: 15px; color: var(--muted); }
.user-menu-name { font-size: 13px; font-weight: 650; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-dropdown {
    position: absolute; right: 0; top: calc(100% + 10px); width: 240px; background: #fff;
    border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 70;
}
.user-dropdown::before { content: ""; position: absolute; top: -6px; right: 30px; width: 10px; height: 10px; background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.user-dropdown-head { padding: 10px 10px 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; display: flex; flex-direction: column; }
.user-dropdown-head strong { font-size: 14px; }
.user-dropdown-head span { font-size: 12px; color: var(--muted); }
.user-dropdown a, .user-dropdown button { width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 8px; font-size: 13px; color: var(--text-2); text-align: left; }
.user-dropdown a:hover, .user-dropdown button:hover { background: var(--bg); color: var(--navy); }
.user-dropdown .icon { width: 16px; height: 16px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .7); margin-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.15fr 1.1fr; gap: 46px; padding: 52px 0 38px; }
.footer-brand p { margin: 0; }
.footer-company { margin-top: 16px !important; font-size: 13px; color: rgba(255, 255, 255, .82); font-weight: 600; }
.footer-desc { margin-top: 8px !important; font-size: 12.5px; line-height: 1.75; color: rgba(255, 255, 255, .5); max-width: 290px; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .72); font-size: 12.5px; }
.footer-contact a:hover { color: var(--teal-2); }
.footer-contact .icon { width: 15px; height: 15px; }
.footer-col h3 { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 16px; letter-spacing: .4px; }
.footer-col a { display: block; color: rgba(255, 255, 255, .58); font-size: 12.5px; margin-bottom: 10px; line-height: 1.6; }
.footer-col a:hover { color: var(--teal-2); }
.footer-qrs { display: flex; gap: 18px; }
.footer-qrs figure { text-align: center; }
.footer-qrs img { width: 82px; height: 82px; border-radius: 8px; background: #fff; padding: 4px; object-fit: cover; }
.footer-qrs figcaption { margin-top: 7px; font-size: 11px; color: rgba(255, 255, 255, .5); }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .09); padding: 18px 0 22px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; font-size: 11.5px; color: rgba(255, 255, 255, .42); }
.footer-legal a { color: rgba(255, 255, 255, .5); }
.footer-legal a:hover { color: var(--teal-2); }
.police-link { display: inline-flex; align-items: center; gap: 5px; }
.police-link img { width: 15px; height: 15px; }
.announcement { background: var(--mint); border-bottom: 1px solid var(--mint-2); color: var(--teal-dark); font-size: 13px; }
.announcement > .container { display: flex; align-items: center; gap: 9px; padding: 10px 0; }
.announcement .icon { width: 16px; height: 16px; }
.site-main { min-height: calc(100vh - 70px - 360px); }

/* ---------- Common ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: 1.7px; color: var(--teal-dark); text-transform: uppercase; }
.eyebrow .icon { width: 14px; height: 14px; }
.eyebrow-light { color: var(--teal-2); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 2px 4px rgba(11, 31, 58, .02); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.card-head h2 { font-size: 17px; letter-spacing: -.2px; color: var(--navy); }
.card-head p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.card-divider { height: 1px; background: var(--line-2); margin: 22px 0; }
.subhead { font-size: 14px; color: var(--navy); margin-bottom: 14px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; line-height: 1.6; white-space: nowrap; }
.badge .icon { width: 12px; height: 12px; }
.badge-success { background: var(--mint); color: var(--teal-dark); }
.badge-warning { background: var(--amber-bg); color: var(--amber); }
.badge-danger { background: var(--red-bg); color: var(--red); }
.badge-muted { background: var(--line-2); color: var(--muted); }
.badge-soft { background: var(--blue-bg); color: var(--blue); }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--text-2); background: rgba(255, 255, 255, .7); border: 1px solid var(--line); padding: 4px 9px; border-radius: 999px; }
.chip .icon { width: 13px; height: 13px; }
.chip-success { color: var(--teal-dark); border-color: var(--mint-2); background: var(--mint); }
.chip-warning { color: var(--amber); border-color: #f5dfb8; background: var(--amber-bg); }
.alert { display: flex; gap: 10px; padding: 13px 15px; border-radius: 11px; border: 1px solid transparent; font-size: 12.5px; line-height: 1.65; margin-bottom: 16px; }
.alert > .icon { width: 17px; height: 17px; margin-top: 1px; }
.alert p { margin: 0; }
.alert p + p { margin-top: 4px; }
.alert-error { background: var(--red-bg); border-color: #f6d3cf; color: #912018; }
.alert-warning { background: var(--amber-bg); border-color: #f3dfb8; color: #8a3d08; }
.alert-info { background: var(--blue-bg); border-color: #d4e7fb; color: #17517e; }
.alert-success { background: var(--mint); border-color: var(--mint-2); color: var(--teal-dark); }
.toast {
    position: fixed; top: 20px; right: 20px; z-index: 200; max-width: 430px;
    display: flex; align-items: flex-start; gap: 10px; background: #fff; border: 1px solid var(--line);
    border-radius: 13px; padding: 14px 16px; box-shadow: var(--shadow-lg); font-size: 13px; color: var(--text-2);
    animation: toastIn .3s ease both;
}
.toast-icon { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.toast-icon .icon { width: 15px; height: 15px; }
.toast-success .toast-icon { background: var(--mint); color: var(--teal-dark); }
.toast-error .toast-icon { background: var(--red-bg); color: var(--red); }
.toast-info .toast-icon, .toast-warning .toast-icon { background: var(--amber-bg); color: var(--amber); }
.toast-close { border: 0; background: none; color: var(--muted); padding: 0; margin-left: 4px; }
.toast-close .icon { width: 14px; height: 14px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .field-label { font-size: 12.5px; font-weight: 650; color: var(--text-2); }
.field-hint { font-size: 11.5px; color: var(--muted); line-height: 1.6; margin: 0; }
.label-hint { font-weight: 400; color: var(--muted-2); margin-left: 3px; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.label-row a { font-size: 12px; font-weight: 600; }
input[type="text"], input[type="tel"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="search"], input[type="url"], select, textarea {
    width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px;
    background: #fff; color: var(--text); padding: 10px 13px; font-size: 14px;
    transition: border-color .15s, box-shadow .15s; appearance: none;
}
textarea { min-height: auto; resize: vertical; line-height: 1.7; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7890' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 34px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20, 184, 166, .13); }
input::placeholder, textarea::placeholder { color: #a9b4c4; }
input:disabled, select:disabled { background: #f6f8fb; color: var(--muted); }
.input-wrap { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.input-wrap:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20, 184, 166, .13); }
.input-wrap input { border: 0; border-radius: 0; min-height: 42px; box-shadow: none !important; }
.input-prefix { display: flex; align-items: center; padding: 0 11px; font-size: 13px; color: var(--muted); background: #f7f9fc; border-right: 1px solid var(--line); }
.input-suffix { display: flex; align-items: center; padding: 0 11px; color: var(--muted); background: #f7f9fc; border-left: 1px solid var(--line); }
.input-action { border: 0; background: transparent; color: var(--muted); padding: 0 12px; display: flex; align-items: center; }
.input-action:hover { color: var(--text); }
.input-action .icon { width: 17px; height: 17px; }
.input-action-text { border: 0; border-left: 1px solid var(--line); background: #fff; color: var(--teal-dark); padding: 0 13px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.input-action-text:hover { background: var(--mint); }
.sms-input-wrap input { min-width: 0; }
.sms-button { border: 0; border-left: 1px solid var(--line); background: #fff; color: var(--teal-dark); padding: 0 13px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.sms-button:hover { background: var(--mint); }
.sms-button:disabled { color: var(--muted-2); cursor: not-allowed; background: #f8fafc; }
.checkbox-row { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; color: var(--muted); line-height: 1.6; margin: 4px 0 18px; cursor: pointer; }
.checkbox-row input { width: 16px; height: 16px; margin: 2px 0 0; flex: none; accent-color: var(--teal); }
.checkbox-row a { font-weight: 600; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field-full { grid-column: 1 / -1; }
.form-stack { display: flex; flex-direction: column; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-actions { display: flex; gap: 10px; margin-top: 4px; }
.inline-form { display: inline-flex; }
.form-actions .btn { min-width: 120px; }
.password-meter { display: flex; gap: 4px; margin-top: 3px; }
.password-meter span { height: 3px; flex: 1; border-radius: 3px; background: var(--line); transition: background .2s; }
.password-meter[data-score="1"] span:nth-child(-n+1) { background: #ef4444; }
.password-meter[data-score="2"] span:nth-child(-n+2) { background: #f59e0b; }
.password-meter[data-score="3"] span:nth-child(-n+3) { background: #14b8a6; }
.password-meter[data-score="4"] span { background: #0b8f83; }
.id-preview { font-size: 11.5px; color: var(--teal-dark); background: var(--mint); border-radius: 8px; padding: 7px 10px; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch > span:not(.icon) { width: 38px; height: 22px; border-radius: 999px; background: #d7dee9; position: relative; transition: background .2s; }
.switch > span:not(.icon)::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.switch input:checked + span { background: var(--teal); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch small { font-size: 12px; color: var(--muted); }

/* ---------- Avatars / status ---------- */
.avatar { border-radius: 50%; object-fit: cover; background: var(--mint); color: var(--teal-dark); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.avatar-sm { width: 30px; height: 30px; font-size: 13px; }
.avatar-xl { width: 78px; height: 78px; font-size: 28px; border: 4px solid #fff; box-shadow: 0 4px 16px rgba(11,31,58,.12); }
.avatar-xxl { width: 112px; height: 112px; font-size: 40px; }
.avatar-letter { background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #fff; }
.avatar-camera { position: absolute; right: 2px; bottom: 4px; width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; border: 3px solid #fff; }
.avatar-camera .icon { width: 14px; height: 14px; }
.status-orb { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 4px auto 18px; }
.status-orb .icon { width: 28px; height: 28px; }
.status-orb-sm { width: 42px; height: 42px; margin: 0; }
.status-orb-sm .icon { width: 19px; height: 19px; }
.status-orb-success { background: var(--mint); color: var(--teal-dark); }
.status-orb-warn { background: var(--amber-bg); color: var(--amber); }

/* ---------- Auth ---------- */
.auth-body { background: #f2f6fb; }
.auth-shell { display: grid; grid-template-columns: minmax(400px, 44%) 1fr; min-height: 100vh; }
.auth-brand { position: relative; overflow: hidden; background: radial-gradient(120% 120% at 0% 0%, #164568 0%, #0b1f3a 58%, #071426 100%); color: #fff; padding: 42px 52px; display: flex; }
.auth-brand-inner { position: relative; z-index: 2; display: flex; flex-direction: column; width: 100%; max-width: 460px; margin: 0 auto; }
.auth-brand-glow { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; }
.auth-brand-glow-1 { width: 420px; height: 420px; right: -180px; top: -120px; background: radial-gradient(circle, rgba(45, 212, 191, .3), transparent 65%); }
.auth-brand-glow-2 { width: 520px; height: 520px; left: -220px; bottom: -220px; background: radial-gradient(circle, rgba(23, 92, 211, .28), transparent 65%); }
.auth-brand-copy { margin-top: 12vh; }
.auth-brand-copy h1 { font-size: clamp(38px, 4vw, 54px); line-height: 1.18; letter-spacing: -1.4px; font-weight: 800; margin: 18px 0 18px; }
.auth-brand-copy p { font-size: 14px; line-height: 1.9; color: rgba(255, 255, 255, .58); max-width: 390px; }
.auth-feature-list { list-style: none; margin: 36px 0 0; display: flex; flex-direction: column; gap: 18px; }
.auth-feature-list li { display: flex; gap: 13px; align-items: flex-start; }
.auth-feature-list li > span { width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .11); color: var(--teal-2); display: flex; align-items: center; justify-content: center; flex: none; }
.auth-feature-list li > span .icon { width: 17px; height: 17px; }
.auth-feature-list strong { display: block; font-size: 13px; color: rgba(255,255,255,.92); }
.auth-feature-list small { display: block; font-size: 11.5px; color: rgba(255,255,255,.44); margin-top: 2px; }
.auth-brand-bottom { margin-top: auto; padding-top: 40px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.auth-qrs { display: flex; gap: 14px; }
.auth-qrs figure { text-align: center; }
.auth-qrs img { width: 58px; height: 58px; border-radius: 6px; background: #fff; padding: 3px; object-fit: cover; }
.auth-qrs figcaption { font-size: 9.5px; color: rgba(255,255,255,.4); margin-top: 5px; }
.auth-contact { text-align: right; }
.auth-contact span { display: block; font-size: 10px; letter-spacing: 1px; color: rgba(255,255,255,.4); }
.auth-contact a { font-size: 15px; color: #fff; font-weight: 700; letter-spacing: .5px; }
.auth-main { display: flex; flex-direction: column; padding: 28px 56px 22px; min-height: 100vh; overflow-y: auto; }
.auth-mobile-head { display: none; align-items: center; justify-content: space-between; }
.auth-help { font-size: 12px; color: var(--muted); }
.auth-content { width: 100%; max-width: 470px; margin: auto; padding: 26px 0; }
.auth-card { background: #fff; border: 1px solid rgba(225, 232, 242, .9); border-radius: 22px; box-shadow: 0 24px 70px rgba(11, 31, 58, .1); padding: 34px 36px 28px; }
.auth-card-centered { text-align: center; }
.auth-card-centered .auth-card-head p { margin-left: auto; margin-right: auto; }
.auth-client-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px 4px 4px; font-size: 11.5px; color: var(--muted); margin-bottom: 16px; }
.auth-client-chip img, .auth-client-letter { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.auth-client-chip strong { color: var(--text); }
.auth-card-head h2 { font-size: 28px; letter-spacing: -.8px; color: var(--navy); margin: 8px 0 7px; line-height: 1.25; }
.auth-card-head p { font-size: 12.5px; color: var(--muted); line-height: 1.7; max-width: 340px; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--line); margin: 22px 0 20px; gap: 22px; }
.auth-tab { border: 0; background: none; padding: 0 0 10px; color: var(--muted); font-size: 13px; font-weight: 650; position: relative; }
.auth-tab.is-active { color: var(--navy); }
.auth-tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--teal); border-radius: 2px; }
.auth-form .btn-lg { margin-top: 6px; }
.auth-switch { text-align: center; font-size: 12px; color: var(--muted); margin-top: 17px; }
.auth-switch a { font-weight: 650; }
.auth-switch .icon { width: 13px; height: 13px; }
.auth-trust { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 18px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.auth-trust span { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--muted-2); }
.auth-trust .icon { width: 12px; height: 12px; color: var(--teal); }
.auth-side-note { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 16px 0 0; font-size: 11.5px; color: var(--muted); }
.auth-side-note i { width: 1px; height: 11px; background: var(--line); }
.auth-side-note a { color: var(--text-2); }
.auth-legal { margin-top: auto; padding-top: 12px; text-align: center; }
.auth-legal-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 13px; font-size: 10.5px; color: var(--muted-2); }
.auth-legal-links a { color: var(--muted-2); }
.auth-legal-links a:hover { color: var(--teal-dark); }
.auth-legal-links .police-link img { width: 13px; height: 13px; }
.auth-legal p { margin-top: 7px; font-size: 10px; color: #a5afbd; }
.auth-legal p a { color: #a5afbd; }
.auth-actions { display: flex; flex-direction: column; gap: 9px; margin-top: 22px; }
.auth-footnote { font-size: 11px; color: var(--muted); line-height: 1.7; margin-top: 16px; }
.error-code-box { display: flex; align-items: center; justify-content: space-between; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 18px 0; text-align: left; }
.error-code-box span { font-size: 11px; color: var(--muted); }
.error-code-box code { color: var(--red); background: transparent; }
.auth-card-centered .auth-card-head h2 { font-size: 24px; }

/* ---------- Consent ---------- */
.consent-card { padding: 30px 32px; }
.consent-app { display: flex; gap: 14px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line-2); }
.consent-logo { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; flex: none; }
.consent-app-label { font-size: 11px; color: var(--muted); }
.consent-app h2 { font-size: 20px; line-height: 1.3; color: var(--navy); margin: 2px 0; }
.consent-app a { font-size: 11.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.consent-app a .icon { width: 12px; height: 12px; }
.consent-user { display: flex; align-items: center; gap: 11px; padding: 16px 0; }
.consent-user .avatar { width: 40px; height: 40px; font-size: 15px; }
.consent-user div { flex: 1; display: flex; flex-direction: column; }
.consent-user strong { font-size: 13px; }
.consent-user span { font-size: 11.5px; color: var(--muted); }
.consent-permissions h3 { font-size: 13px; color: var(--text-2); margin-bottom: 10px; }
.consent-permissions ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.consent-permissions li { display: flex; gap: 10px; align-items: center; background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.consent-permissions li.is-sensitive { background: var(--amber-bg); }
.consent-scope-icon { width: 30px; height: 30px; border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--teal-dark); flex: none; }
.consent-scope-icon .icon { width: 15px; height: 15px; }
.consent-permissions li > div { display: flex; flex-direction: column; }
.consent-permissions strong { font-size: 12px; }
.consent-permissions small { font-size: 10px; color: var(--muted); }
.consent-permissions .alert { margin-top: 12px; margin-bottom: 0; }
.consent-actions { display: grid; grid-template-columns: .8fr 1.2fr; gap: 10px; margin-top: 20px; }
.consent-note { font-size: 10.5px; color: var(--muted); line-height: 1.6; margin-top: 13px; text-align: center; }

/* ---------- Account ---------- */
.account-page .site-main { padding: 30px 0 10px; }
.account-container { display: flex; flex-direction: column; gap: 20px; }
.email-reminder-banner { display: flex; align-items: center; gap: 14px; background: linear-gradient(100deg, #fff9ec, #fff); border: 1px solid #f2dfb4; border-radius: var(--radius); padding: 17px 20px; }
.email-reminder-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--amber-bg); color: var(--amber); display: flex; align-items: center; justify-content: center; flex: none; }
.email-reminder-banner > div:nth-child(2) { flex: 1; }
.email-reminder-banner strong { font-size: 13.5px; color: #7a3a08; }
.email-reminder-banner p { font-size: 11.5px; color: #97633a; margin-top: 2px; }
.email-reminder-actions { display: flex; align-items: center; gap: 4px; }
.email-reminder-actions form { margin: 0; }
.account-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: radial-gradient(100% 160% at 0% 0%, #e7faf6 0%, #fff 42%, #f7faff 100%); border: 1px solid var(--line); border-radius: 22px; padding: 28px 30px; box-shadow: 0 4px 20px rgba(11,31,58,.04); }
.account-identity { display: flex; align-items: center; gap: 20px; min-width: 0; }
.account-identity-copy h1 { font-size: 26px; letter-spacing: -.6px; color: var(--navy); line-height: 1.25; margin: 3px 0 9px; }
.account-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.account-completion { display: flex; align-items: center; gap: 13px; flex: none; padding-left: 20px; border-left: 1px solid var(--line); }
.completion-ring { --progress: 40; width: 58px; height: 58px; border-radius: 50%; background: conic-gradient(var(--teal) calc(var(--progress) * 1%), #e6edf4 0); display: flex; align-items: center; justify-content: center; position: relative; }
.completion-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.completion-ring span { position: relative; font-size: 12px; font-weight: 800; color: var(--teal-dark); }
.account-completion strong { display: block; font-size: 12px; color: var(--text-2); }
.account-completion small { display: block; font-size: 10.5px; color: var(--muted); max-width: 155px; line-height: 1.5; margin-top: 2px; }
.account-tabs { display: flex; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px; width: fit-content; max-width: 100%; overflow-x: auto; }
.account-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 9px; color: var(--muted); font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.account-tabs a:hover { color: var(--navy); }
.account-tabs a.is-active { background: var(--navy); color: #fff; }
.account-tabs .icon { width: 15px; height: 15px; }
.tab-dot { width: 6px; height: 6px; border-radius: 50%; background: #f79009; margin-left: 2px; }
.account-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; align-items: start; }
.account-grid.email-grid { grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr); }
.account-grid.security-grid { grid-template-columns: 1fr 1.2fr; }
.avatar-card { text-align: center; }
.avatar-card .card-head { text-align: left; }
.avatar-editor { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.avatar-preview { position: relative; margin: 4px 0 2px; }
.avatar-preview .avatar-letter { background: linear-gradient(135deg, var(--navy), var(--navy-3)); }
.avatar-status { font-size: 11.5px; color: var(--teal-dark); min-height: 18px; }
.meta-list { display: flex; flex-direction: column; gap: 9px; }
.meta-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.meta-list dt { font-size: 11.5px; color: var(--muted); }
.meta-list dd { font-size: 11.5px; color: var(--text-2); font-weight: 600; text-align: right; }
.meta-list dd code { font-size: 10px; }
.meta-list-compact > div { padding: 4px 0; border-bottom: 1px dashed var(--line-2); }
.meta-list-compact > div:last-child { border-bottom: 0; }
.profile-card .form-grid { margin-bottom: -2px; }
.id-field { background: #fbfcfe; border: 1px dashed var(--line); border-radius: 12px; padding: 14px; }
.id-field .field-hint { margin-top: 1px; }
.email-status { display: flex; gap: 12px; align-items: center; background: var(--bg); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.email-status strong { font-size: 13px; }
.email-status p { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.email-status-ok { background: var(--mint); }
.email-status-warn { background: var(--amber-bg); }
.email-send-form { margin-bottom: 4px; }
.email-confirm-form { margin-top: 2px; }
.inline-form { display: flex; gap: 9px; align-items: stretch; }
.inline-form input { flex: 1; }
.info-card { background: linear-gradient(180deg, #fbfdff, #fff); }
.info-card-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--mint); color: var(--teal-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 13px; }
.info-card h3 { font-size: 15px; color: var(--navy); margin-bottom: 10px; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.check-list li { position: relative; padding-left: 19px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.session-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 15px; }
.session-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.session-item:last-child { border-bottom: 0; }
.session-item.is-revoked { opacity: .55; }
.session-icon { width: 32px; height: 32px; border-radius: 8px; background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--muted); flex: none; }
.session-icon .icon { width: 15px; height: 15px; }
.session-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.session-copy strong { font-size: 11.5px; font-weight: 600; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-copy span { font-size: 10.5px; color: var(--muted); }
.session-list-tight .session-item { padding: 8px 0; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 4px 0 14px; }
.setting-row strong { font-size: 12.5px; }
.setting-row p { font-size: 11px; color: var(--muted); margin-top: 2px; }
.logout-form { margin-top: 6px; }

/* ---------- Admin ---------- */
.admin-body { background: var(--bg); }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; width: 248px; background: var(--navy); color: rgba(255,255,255,.65); display: flex; flex-direction: column; padding: 24px 16px 18px; z-index: 80; }
.admin-brand { padding: 0 8px 24px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 14px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.admin-nav-label { font-size: 9px; letter-spacing: 1.4px; color: rgba(255,255,255,.28); text-transform: uppercase; padding: 16px 12px 6px; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: rgba(255,255,255,.62); font-size: 12.5px; font-weight: 550; }
.admin-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.admin-nav a.is-active { color: #fff; background: linear-gradient(90deg, rgba(20,184,166,.22), rgba(20,184,166,.08)); box-shadow: inset 2px 0 0 var(--teal); }
.admin-nav .icon { width: 16px; height: 16px; }
.admin-sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 14px; }
.admin-sidebar-foot a, .admin-sidebar-foot button { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.45); font-size: 11.5px; padding: 6px 10px; border-radius: 6px; }
.admin-sidebar-foot a:hover, .admin-sidebar-foot button:hover { color: #fff; background: rgba(255,255,255,.05); }
.admin-sidebar-foot small { color: rgba(255,255,255,.22); font-size: 9.5px; padding: 8px 10px 0; }
.admin-main { margin-left: 248px; min-height: 100vh; display: flex; flex-direction: column; }
.admin-topbar { height: 68px; background: rgba(255,255,255,.9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 30px; position: sticky; top: 0; z-index: 40; }
.admin-menu-toggle { display: none; }
.admin-topbar-title { display: flex; flex-direction: column; line-height: 1.25; }
.admin-topbar-title span { font-size: 9.5px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.admin-topbar-title strong { font-size: 14px; color: var(--navy); }
.admin-topbar-user { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.admin-topbar-user div { display: flex; flex-direction: column; line-height: 1.25; }
.admin-topbar-user strong { font-size: 12px; }
.admin-topbar-user small { font-size: 9.5px; color: var(--muted); }
.admin-content { padding: 30px; display: flex; flex-direction: column; gap: 20px; flex: 1; }
.admin-footer { border-top: 1px solid var(--line); padding: 15px 30px; display: flex; justify-content: space-between; gap: 12px; font-size: 10px; color: var(--muted-2); }
.admin-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.admin-page-head h1 { font-size: 25px; letter-spacing: -.6px; color: var(--navy); line-height: 1.25; margin: 3px 0 3px; }
.admin-page-head p { font-size: 12px; color: var(--muted); }
.admin-page-actions { display: flex; gap: 8px; flex: none; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; gap: 13px; align-items: flex-start; }
.stat-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; }
.stat-icon .icon { width: 18px; height: 18px; }
.stat-icon-teal { background: var(--mint); color: var(--teal-dark); }
.stat-icon-blue { background: var(--blue-bg); color: var(--blue); }
.stat-icon-amber { background: var(--amber-bg); color: var(--amber); }
.stat-icon-violet { background: var(--violet-bg); color: var(--violet); }
.stat-card > div { display: flex; flex-direction: column; }
.stat-card span { font-size: 10.5px; color: var(--muted); }
.stat-card strong { font-size: 26px; letter-spacing: -.8px; color: var(--navy); line-height: 1.25; margin: 1px 0; }
.stat-card small { font-size: 10px; color: var(--muted-2); }
.admin-grid-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: start; }
.bar-chart { display: flex; align-items: flex-end; gap: 14px; height: 170px; padding: 8px 4px 0; }
.bar-item { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; gap: 4px; }
.bar-value { font-size: 10px; color: var(--muted); }
.bar-track { flex: 1; width: 100%; max-width: 34px; border-radius: 6px 6px 2px 2px; background: var(--bg); display: flex; align-items: flex-end; overflow: hidden; }
.bar-fill { width: 100%; background: linear-gradient(180deg, var(--teal-2), var(--teal)); border-radius: 5px 5px 2px 2px; min-height: 3px; }
.bar-label { font-size: 9.5px; color: var(--muted-2); }
.quick-links { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-links a { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; background: var(--bg); border-radius: 7px; padding: 7px 10px; color: var(--text-2); }
.quick-links a:hover { background: var(--mint); color: var(--teal-dark); }
.quick-links .icon { width: 13px; height: 13px; }
.table-wrap { overflow-x: auto; margin: 0 -26px; padding: 0 26px; }
.card > .table-wrap:last-child { margin-bottom: -26px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th { text-align: left; font-size: 9.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted-2); font-weight: 700; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fbfcfe; }
.data-table td { padding: 12px; border-bottom: 1px solid var(--line-2); color: var(--text-2); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: #fcfdff; }
.data-table .align-right { text-align: right; }
.data-table td.align-right { min-width: 118px; }
.data-table td.align-right .btn { margin-left: 2px; }
.data-table .empty-cell { text-align: center; color: var(--muted); padding: 34px; }
.table-primary { display: flex; align-items: center; gap: 9px; }
.table-primary > div { display: flex; flex-direction: column; min-width: 0; }
.table-primary strong { font-size: 12px; color: var(--text); }
.table-primary small { font-size: 10px; color: var(--muted); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-letter { width: 32px; height: 32px; border-radius: 9px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex: none; }
.client-letter-lg { width: 54px; height: 54px; border-radius: 14px; font-size: 22px; }
.action-code { font-size: 10px; background: var(--bg); color: var(--text-2); padding: 2px 6px; }
.copyable { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; }
.copyable .icon { width: 11px; height: 11px; color: var(--muted); }
.detail-cell { max-width: 340px; word-break: break-all; font-size: 10.5px; color: var(--muted); }
.admin-tip { display: flex; gap: 10px; align-items: flex-start; background: var(--blue-bg); border: 1px solid #d9e9fb; border-radius: 11px; padding: 13px 15px; font-size: 11.5px; color: #17517e; }
.admin-tip .icon { width: 16px; height: 16px; margin-top: 1px; }
.admin-tip.vertical { display: block; }
.admin-tip.vertical .icon { margin-bottom: 8px; }
.pagination { display: flex; gap: 4px; justify-content: flex-end; margin-top: 18px; }
.pagination a { min-width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 7px; border: 1px solid var(--line); font-size: 11px; color: var(--text-2); background: #fff; }
.pagination a.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.toolbar { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; flex-wrap: wrap; }
.search-box { display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 9px; padding: 0 11px; background: #fff; min-width: 280px; }
.search-box .icon { width: 15px; height: 15px; color: var(--muted); }
.search-box input { border: 0; min-height: 38px; padding: 0; box-shadow: none !important; background: transparent; font-size: 12px; }
.toolbar-select { width: auto; min-height: 36px; font-size: 12px; padding: 6px 30px 6px 10px; }
.toolbar-count { margin-left: auto; font-size: 11px; color: var(--muted); }
.admin-form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.admin-form-main { display: flex; flex-direction: column; gap: 18px; }
.admin-form-main > .btn { align-self: flex-start; }
.admin-form-side { display: flex; flex-direction: column; gap: 16px; }
.admin-form-side .card { padding: 22px; }
.admin-form-actions { display: flex; flex-direction: column; gap: 8px; }
.scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.scope-option { display: flex; gap: 9px; align-items: flex-start; border: 1px solid var(--line); border-radius: 9px; padding: 10px 11px; cursor: pointer; font-size: 11.5px; }
.scope-option:hover { border-color: #c9d5e5; }
.scope-option input { width: 15px; height: 15px; margin-top: 2px; accent-color: var(--teal); }
.scope-option > span { display: flex; flex-direction: column; }
.scope-option strong { font-size: 11.5px; color: var(--text-2); }
.scope-option code { font-size: 9.5px; background: transparent; padding: 0; color: var(--muted); margin-top: 1px; }
.scope-sensitive { background: #fffdf7; border-color: #f0dfb9; }
.radio-card { display: flex; gap: 9px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 8px; cursor: pointer; }
.radio-card input { margin-top: 3px; accent-color: var(--teal); }
.radio-card strong { display: block; font-size: 12px; }
.radio-card small { font-size: 10.5px; color: var(--muted); line-height: 1.5; display: block; margin-top: 2px; }
.checkbox-row strong { color: var(--text-2); font-size: 12px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.switch-row strong { display: block; font-size: 12.5px; }
.switch-row small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; max-width: 480px; }
.created-card { padding: 30px; }
.created-app { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.created-app > div { flex: 1; }
.created-app h2 { font-size: 19px; color: var(--navy); }
.created-app code { font-size: 11px; background: transparent; padding: 0; color: var(--muted); }
.secret-box { background: #0d1b2e; border-radius: 12px; padding: 16px 18px; margin-bottom: 20px; }
.secret-label { display: flex; align-items: center; justify-content: space-between; color: rgba(255,255,255,.5); font-size: 10px; letter-spacing: .8px; text-transform: uppercase; margin-bottom: 8px; }
.secret-label .btn { color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.06); }
.secret-box > code { color: var(--teal-2); background: transparent; font-size: 13px; padding: 0; word-break: break-all; }
.created-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.created-meta > div { display: flex; flex-direction: column; gap: 3px; background: var(--bg); border-radius: 8px; padding: 9px 11px; }
.created-meta span { font-size: 9.5px; color: var(--muted); }
.created-meta code { font-size: 9.5px; background: transparent; padding: 0; }
.created-actions { display: flex; gap: 9px; }
.user-profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.user-profile-head > div { flex: 1; }
.user-profile-head h2 { font-size: 19px; color: var(--navy); }
.user-profile-head code { font-size: 10px; background: transparent; padding: 0; color: var(--muted); }
.profile-list { display: flex; flex-direction: column; }
.profile-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.profile-list > div:last-child { border-bottom: 0; }
.profile-list dt { font-size: 11.5px; color: var(--muted); }
.profile-list dd { font-size: 11.5px; color: var(--text-2); text-align: right; word-break: break-all; }
.user-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.user-actions form { margin: 0; }
.admin-backdrop { display: none; }

/* ---------- Demo ---------- */
.demo-body { background: #f6f9f8; }
.demo-header { background: #fff; border-bottom: 1px solid #e4ece9; position: sticky; top: 0; z-index: 50; }
.demo-header-inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.demo-brand { display: flex; align-items: center; gap: 10px; color: #123b34; }
.demo-brand-mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #0f766e, #14b8a6); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
.demo-brand > span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.demo-brand strong { font-size: 14px; }
.demo-brand small { font-size: 9px; color: #7b918b; letter-spacing: .8px; }
.demo-header-right { display: flex; align-items: center; gap: 14px; }
.demo-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: #0f766e; background: #e8f7f3; border-radius: 999px; padding: 4px 9px; }
.demo-badge .icon { width: 12px; height: 12px; }
.demo-user-menu summary { border-color: #dce9e5; }
.demo-main { min-height: calc(100vh - 66px - 60px); padding: 30px 0 50px; }
.demo-container { display: flex; flex-direction: column; gap: 20px; }
.demo-landing { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; padding: 46px 0 30px; }
.demo-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: 1.6px; font-weight: 800; color: #0f766e; text-transform: uppercase; }
.demo-eyebrow .icon { width: 14px; height: 14px; }
.demo-landing-copy h1 { font-size: clamp(38px, 5vw, 58px); line-height: 1.15; letter-spacing: -1.6px; color: #0c2f29; margin: 16px 0 18px; }
.demo-landing-copy > p { max-width: 520px; color: #5d736e; font-size: 14px; line-height: 1.9; }
.demo-landing-actions { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.demo-flow { display: flex; gap: 28px; margin-top: 44px; flex-wrap: wrap; }
.demo-flow > div { display: flex; flex-direction: column; position: relative; padding-top: 19px; }
.demo-flow > div::before { content: ""; position: absolute; top: 0; left: 0; width: 28px; height: 2px; background: #14b8a6; }
.demo-flow span { font-size: 9px; color: #8aa39d; letter-spacing: 1px; }
.demo-flow strong { font-size: 12px; color: #123b34; margin: 1px 0; }
.demo-flow small { font-size: 10px; color: #7b918b; }
.demo-landing-card { background: #fff; border: 1px solid #dce9e5; border-radius: 18px; box-shadow: 0 30px 80px rgba(15, 118, 110, .12); overflow: hidden; transform: rotate(1deg); }
.demo-window-bar { height: 38px; background: #f2f7f5; border-bottom: 1px solid #e4ece9; display: flex; align-items: center; gap: 5px; padding: 0 13px; }
.demo-window-bar > span { width: 7px; height: 7px; border-radius: 50%; background: #d6e2de; }
.demo-window-bar > span:first-child { background: #f1a7a1; }
.demo-window-bar > span:nth-child(2) { background: #f1d49b; }
.demo-window-bar > span:nth-child(3) { background: #a6d8c8; }
.demo-window-bar small { margin-left: auto; font-size: 8px; color: #93a8a2; }
.demo-window-body { padding: 38px 34px 30px; text-align: center; }
.demo-window-avatar { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, #0f766e, #2dd4bf); color: #fff; font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 13px; }
.demo-window-body h3 { font-size: 17px; color: #0c2f29; }
.demo-window-body p { font-size: 11px; color: #7b918b; margin-top: 2px; }
.demo-window-button { margin-top: 22px; background: #0f766e; color: #fff; border-radius: 9px; padding: 11px; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; }
.demo-window-button .icon { width: 14px; height: 14px; }
.demo-window-meta { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.demo-window-meta span { font-size: 8px; color: #7b918b; border: 1px solid #e4ece9; border-radius: 4px; padding: 2px 5px; }
.demo-window-foot { border-top: 1px solid #e4ece9; padding: 10px; text-align: center; font-size: 9px; color: #93a8a2; background: #fbfdfc; }
.demo-window-foot .icon { width: 11px; height: 11px; vertical-align: -2px; }
.demo-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.demo-info-grid > div { background: #fff; border: 1px solid #e4ece9; border-radius: 14px; padding: 20px; }
.demo-info-grid span { width: 34px; height: 34px; border-radius: 9px; background: #e8f7f3; color: #0f766e; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.demo-info-grid span .icon { width: 16px; height: 16px; }
.demo-info-grid h3 { font-size: 13px; color: #123b34; margin-bottom: 4px; }
.demo-info-grid p { font-size: 11.5px; color: #6a807a; line-height: 1.7; }
.demo-hero { background: linear-gradient(120deg, #0f3f37, #0f766e 60%, #14958a); color: #fff; border-radius: 22px; padding: 34px; display: flex; justify-content: space-between; align-items: center; gap: 24px; overflow: hidden; position: relative; }
.demo-hero::after { content: ""; position: absolute; right: 8%; top: -60%; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.14), transparent 65%); }
.demo-hero > div { position: relative; z-index: 1; }
.demo-hero .demo-eyebrow { color: #a7f3d9; }
.demo-hero h1 { font-size: 31px; letter-spacing: -.8px; margin: 8px 0 8px; }
.demo-hero p { font-size: 12.5px; color: rgba(255,255,255,.65); max-width: 590px; line-height: 1.8; }
.demo-user-badges { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 16px; }
.demo-hero .chip { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.8); }
.demo-hero .chip-success { background: rgba(255,255,255,.13); color: #b8f5e3; }
.demo-avatar-large .avatar { border: 3px solid rgba(255,255,255,.35); box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.demo-grid .card { border-color: #e4ece9; }
.demo-grid .card-head h2 { color: #123b34; }
.json-details { margin-top: 16px; border-top: 1px solid #eef4f1; padding-top: 12px; }
.json-details summary { font-size: 11px; color: #6a807a; cursor: pointer; display: flex; align-items: center; gap: 5px; }
.json-details summary .icon { width: 13px; height: 13px; }
.json-details pre { margin-top: 10px; max-height: 300px; }
.demo-grid .profile-list dt { color: #7b918b; }
.demo-grid .profile-list dd { color: #274841; }
.sync-note { display: flex; gap: 8px; align-items: flex-start; font-size: 11px; color: #6a807a; line-height: 1.7; }
.sync-note .icon { width: 14px; height: 14px; color: #14b8a6; margin-top: 2px; }
.email-demo-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-color: #e4ece9; }
.email-demo-copy { display: flex; gap: 13px; align-items: center; }
.email-demo-icon { width: 42px; height: 42px; border-radius: 11px; background: #e8f7f3; color: #0f766e; display: flex; align-items: center; justify-content: center; flex: none; }
.email-demo-copy h3 { font-size: 14px; color: #123b34; }
.email-demo-copy p { font-size: 11px; color: #6a807a; }
.demo-inline-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.demo-footnote { display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: 10.5px; color: #7b918b; padding: 2px 2px 10px; flex-wrap: wrap; }
.demo-footnote span { display: inline-flex; gap: 5px; align-items: center; }
.demo-footnote .icon { width: 13px; height: 13px; }
.demo-footnote a { display: inline-flex; gap: 4px; align-items: center; color: #0f766e; font-weight: 650; }
.demo-setup { max-width: 620px; margin: 40px auto; text-align: center; padding: 40px; }
.demo-setup h1 { font-size: 24px; margin: 6px 0 8px; color: #123b34; }
.demo-setup p { color: #6a807a; font-size: 13px; margin-bottom: 14px; }
.demo-setup .code-block { text-align: left; margin: 12px 0; }
.demo-setup .demo-landing-actions { justify-content: center; }
.demo-footer { border-top: 1px solid #e4ece9; padding: 20px 0; }
.demo-footer .container { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; color: #8fa49e; flex-wrap: wrap; }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 150; background: rgba(7, 20, 38, .55); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop.is-closed { display: none; }
.modal { background: #fff; border-radius: 20px; max-width: 450px; width: 100%; padding: 32px; position: relative; box-shadow: var(--shadow-lg); animation: modalIn .25s ease both; }
.modal-close { position: absolute; top: 13px; right: 13px; width: 32px; height: 32px; border: 0; background: var(--bg); border-radius: 50%; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.modal-close .icon { width: 15px; height: 15px; }
.modal-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--mint); color: var(--teal-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.modal-icon .icon { width: 24px; height: 24px; }
.modal h2 { font-size: 21px; letter-spacing: -.4px; color: var(--navy); margin-bottom: 8px; }
.modal > p { font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.modal-note { background: var(--bg); border-radius: 9px; padding: 10px 12px; font-size: 11px; color: var(--muted); margin: 15px 0; }
.modal-actions { display: grid; grid-template-columns: 1.1fr .9fr; gap: 8px; }
.modal-dismiss-form { text-align: center; margin-top: 15px; }
.modal-dismiss-form .link-button { font-size: 11px; color: var(--muted); text-decoration: underline; }
.demo-body .modal { border: 1px solid #e4ece9; }

/* ---------- Legal / Error / Minimal ---------- */
.legal-page .site-main { padding: 36px 0 10px; }
.legal-head { text-align: center; padding: 18px 0 34px; }
.legal-head h1 { font-size: 36px; letter-spacing: -1px; color: var(--navy); margin: 8px 0 5px; }
.legal-head p { font-size: 11.5px; color: var(--muted); }
.legal-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 46px; align-items: start; }
.legal-toc { position: sticky; top: 92px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 2px; }
.legal-toc strong { font-size: 11px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.legal-toc a { font-size: 11.5px; color: var(--text-2); padding: 6px 7px; border-radius: 6px; }
.legal-toc a:hover { background: var(--bg); color: var(--teal-dark); }
.legal-content { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 40px 46px; box-shadow: var(--shadow); }
.legal-notice { display: flex; gap: 10px; background: var(--mint); border: 1px solid var(--mint-2); border-radius: 10px; padding: 13px 15px; color: var(--teal-dark); font-size: 12px; line-height: 1.7; margin-bottom: 26px; }
.legal-notice .icon { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.legal-content h2 { font-size: 18px; color: var(--navy); margin: 32px 0 10px; letter-spacing: -.2px; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 { font-size: 14px; color: var(--text-2); margin: 20px 0 7px; }
.legal-content p, .legal-content li { font-size: 13px; color: #4e5d75; line-height: 1.95; }
.legal-content p { margin-bottom: 9px; }
.legal-content ul { padding-left: 20px; margin: 6px 0 12px; }
.legal-content li { margin-bottom: 3px; }
.legal-content a { text-decoration: underline; text-underline-offset: 2px; }
.legal-contact { background: var(--bg); border-radius: 10px; padding: 16px 18px; margin-top: 12px; }
.legal-contact p { margin-bottom: 3px; font-size: 12.5px; }
.error-page { text-align: center; padding: 30px 0; }
.error-code { font-size: 80px; font-weight: 800; letter-spacing: -4px; line-height: 1; color: var(--navy); opacity: .14; }
.error-page h1 { font-size: 27px; color: var(--navy); margin: 10px 0 8px; }
.error-page > p { color: var(--muted); font-size: 13px; }
.error-actions { display: flex; justify-content: center; gap: 9px; margin-top: 22px; }
.error-detail { text-align: left; background: var(--bg); border-radius: 9px; padding: 12px; margin-top: 16px; font-size: 11px; color: var(--red); overflow: auto; }
.error-help { margin-top: 26px; font-size: 10.5px; color: var(--muted-2); }
.minimal-body { background: var(--bg); display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.minimal-shell { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 34px 40px; width: min(560px, 100%); box-shadow: var(--shadow-lg); }
.minimal-shell > .brand { margin-bottom: 20px; }
.minimal-footer { display: flex; flex-wrap: wrap; gap: 6px 13px; border-top: 1px solid var(--line-2); margin-top: 28px; padding-top: 16px; font-size: 10px; color: var(--muted-2); }
.minimal-footer a { color: var(--muted-2); }
.minimal-footer .police-link img { width: 13px; height: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .auth-shell { grid-template-columns: minmax(340px, 40%) 1fr; }
    .auth-brand { padding: 34px 34px; }
    .auth-brand-copy { margin-top: 9vh; }
    .auth-main { padding: 24px 34px 20px; }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1.1fr; gap: 30px; }
    .footer-qr-col { grid-column: 1 / -1; }
    .footer-qrs img { width: 70px; height: 70px; }
    .account-grid { grid-template-columns: 280px minmax(0, 1fr); }
    .admin-form-layout { grid-template-columns: minmax(0, 1fr) 270px; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .container { width: calc(100% - 40px); }
    .site-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 20px 16px; flex-direction: column; align-items: stretch; box-shadow: 0 18px 30px rgba(11,31,58,.08); }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 11px 12px; }
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .header-actions .btn-ghost { display: none; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
    .auth-main { padding: 20px 22px 18px; }
    .auth-mobile-head { display: flex; }
    .auth-content { max-width: 500px; margin: 20px auto auto; }
    .auth-card { padding: 26px 24px 22px; }
    .auth-legal { margin-top: 26px; }
    .account-grid, .account-grid.email-grid, .account-grid.security-grid { grid-template-columns: 1fr; }
    .account-hero { flex-direction: column; align-items: flex-start; }
    .account-completion { border-left: 0; border-top: 1px solid var(--line); padding: 14px 0 0; width: 100%; }
    .demo-landing { grid-template-columns: 1fr; gap: 34px; padding-top: 22px; }
    .demo-landing-card { max-width: 440px; }
    .demo-grid { grid-template-columns: 1fr; }
    .demo-info-grid { grid-template-columns: 1fr; }
    .demo-hero { flex-direction: column; align-items: flex-start; }
    .email-demo-card { flex-direction: column; align-items: flex-start; }
    .legal-layout { grid-template-columns: 1fr; gap: 18px; }
    .legal-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 2px; }
    .legal-toc strong { width: 100%; }
    .legal-content { padding: 28px 24px; }
    .admin-sidebar { transform: translateX(-100%); transition: transform .25s ease; }
    .admin-sidebar.is-open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .admin-menu-toggle { display: inline-flex; }
    .admin-backdrop.is-open { display: block; position: fixed; inset: 0; background: rgba(7,20,38,.45); z-index: 75; }
    .admin-content { padding: 22px; }
    .admin-grid-2 { grid-template-columns: 1fr; }
    .admin-form-layout { grid-template-columns: 1fr; }
    .admin-form-side { order: 2; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    body { font-size: 14px; }
    .container { width: calc(100% - 32px); }
    .header-inner { min-height: 62px; gap: 12px; }
    .brand-text strong { font-size: 14px; }
    .brand-text small { font-size: 8px; letter-spacing: 2px; }
    .brand-mark { width: 34px; height: 34px; }
    .user-menu-name { display: none; }
    .site-main { min-height: auto; }
    .auth-main { padding: 16px 14px 14px; }
    .auth-card { border-radius: 18px; padding: 24px 20px 20px; }
    .auth-card-head h2 { font-size: 23px; }
    .auth-brand-copy h1 { font-size: 35px; }
    .consent-card { padding: 22px 18px; }
    .consent-actions { grid-template-columns: 1fr; }
    .account-container { gap: 15px; }
    .account-hero { padding: 20px; border-radius: 18px; }
    .account-identity { gap: 14px; }
    .account-identity-copy h1 { font-size: 21px; }
    .account-completion small { max-width: none; }
    .account-tabs { width: 100%; }
    .account-tabs a { flex: 1; justify-content: center; padding: 9px 8px; font-size: 11.5px; }
    .account-tabs .icon { display: none; }
    .email-reminder-banner { flex-direction: column; align-items: flex-start; padding: 16px; }
    .email-reminder-actions { width: 100%; }
    .email-reminder-actions .btn { flex: 1; }
    .card { padding: 20px; border-radius: 15px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .inline-form { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; padding: 36px 0 26px; }
    .footer-qrs img { width: 78px; height: 78px; }
    .footer-legal { flex-direction: column; align-items: flex-start; }
    .site-footer { margin-top: 46px; }
    .admin-page-head { flex-direction: column; align-items: flex-start; }
    .stat-grid { grid-template-columns: 1fr; }
    .admin-content { padding: 16px; gap: 15px; }
    .admin-topbar { padding: 0 16px; }
    .admin-topbar-user div { display: none; }
    .admin-footer { flex-direction: column; padding: 14px 16px; }
    .table-wrap { margin: 0 -20px; padding: 0 20px; }
    .search-box { min-width: 0; flex: 1; }
    .toolbar-count { width: 100%; margin-left: 0; }
    .scope-grid { grid-template-columns: 1fr; }
    .created-meta { grid-template-columns: 1fr; }
    .created-actions { flex-direction: column; }
    .demo-header-inner { min-height: 60px; }
    .demo-badge { display: none; }
    .demo-main { padding: 20px 0 34px; }
    .demo-landing-copy h1 { font-size: 36px; }
    .demo-flow { gap: 18px; margin-top: 30px; }
    .demo-hero { padding: 24px 20px; }
    .demo-hero h1 { font-size: 24px; }
    .demo-avatar-large { display: none; }
    .legal-content h2 { font-size: 16px; }
    .legal-head h1 { font-size: 28px; }
    .modal { padding: 26px 20px; }
    .modal-actions { grid-template-columns: 1fr; }
    .toast { left: 14px; right: 14px; top: 14px; max-width: none; }
    .minimal-shell { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
