/* Light luxury system (navy + gold). Site: hero w/ portrait arch, perks, about, brokers, join/transfer wizard w/ uploads, sessions, course, FAQ, footer, assistant. Admin (#admin): sidebar, KPIs, requests, detail drawer, chats, brokers, settings, notifications. */
:root {
  --navy: #101736; --navy2: #1A2350; --ring: #2A3566;
  --gold: #D9A84E; --gold2: #E9C27A; --gold-ink: #8F6714; --gold-soft: #FBF4E4;
  --ink: #131A33; --muted: #5B6380; --line: #E7E9F1; --line2: #EEF0F5; --soft: #F5F6FA; --page: #FFFFFF;
  --ok: #157A52; --ok-soft: #E3F6EC; --warn-ink: #8A5A00; --warn-soft: #FFF4DE; --bad: #B42318; --bad-soft: #FDECEA; --blue: #1D4ED8; --blue-soft: #E8EEFE;
  --display: 'Alexandria', 'IBM Plex Sans Arabic', Tahoma, sans-serif;
  --latin: 'Unbounded', 'Alexandria', sans-serif;
  --body: 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--navy); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num, .ltr { font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 14px 26px; min-height: 50px; font-weight: 700; font-size: 15.5px; text-decoration: none; transition: transform .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn.gold { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: var(--navy); box-shadow: 0 10px 24px -14px rgba(143,103,20,.9); }
.btn.navy { background: var(--navy); color: #fff; }
.btn.ghost-dark { background: transparent; color: #fff; border: 1px solid #3A4678; }
.btn.ghost { background: #fff; color: var(--navy); border: 1px solid #D5D9E6; }
.btn.okb { background: var(--ok); color: #fff; }
.btn.badb { background: #fff; color: var(--bad); border: 1px solid #F3C4BF; }
.btn.sm { padding: 9px 16px; min-height: 42px; font-size: 14px; border-radius: 12px; }
.btn.xs { padding: 6px 12px; min-height: 34px; font-size: 13px; border-radius: 10px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* top + header */
.topbar { background: var(--navy); color: #DDE1F0; font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: space-between; align-items: center; padding-block: 8px; }
.topbar b { color: var(--gold); font-weight: 600; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--ring); border-radius: 999px; padding: 2px 12px; }
.topbar a i { font-style: normal; background: var(--gold); color: var(--navy); border-radius: 999px; min-width: 20px; height: 20px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; padding: 0 5px; }
header.site { border-bottom: 1px solid var(--line2); background: rgba(255,255,255,.94); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 30; }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand svg { width: 46px; height: 46px; flex-shrink: 0; }
.brand b { display: block; font-family: var(--latin); font-weight: 800; font-size: 21px; letter-spacing: 2px; line-height: 1.15; direction: ltr; text-align: right; }
.brand small { font-size: 12.5px; color: var(--muted); }
nav.main { display: flex; flex-wrap: wrap; gap: 4px 22px; font-weight: 500; font-size: 15px; }
nav.main a { text-decoration: none; color: var(--ink); }
nav.main a:hover { color: var(--gold-ink); }
@media (max-width: 860px) { nav.main { display: none; } }

/* hero */
.hero { padding-top: 24px; }
.hero-card { background: radial-gradient(120% 90% at 0% 0%, #1F2A5C 0%, var(--navy) 55%); border-radius: 36px; position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: stretch; gap: 36px; padding: clamp(26px, 5vw, 60px); }
.hero-card .ring { position: absolute; border-radius: 50%; border: 1px solid var(--ring); pointer-events: none; }
.hero-text { flex: 999 1 440px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 18px; position: relative; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; color: var(--gold); border: 1px solid #5A4A26; border-radius: 999px; padding: 5px 15px; font-size: 14px; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(217,168,78,.18); }
.hero h1 { margin: 0; font-weight: 800; font-size: clamp(38px, 5.2vw, 66px); line-height: 1.15; color: #fff; }
.hero h1 span { background: linear-gradient(90deg, var(--gold2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 0; font-size: 18px; color: #C9CEE4; max-width: 540px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 14px 0; margin-top: 10px; }
.facts > div { padding-inline: 0 26px; margin-inline: 0 26px; border-inline-end: 1px solid var(--ring); }
.facts > div:last-child { border: 0; margin: 0; padding: 0; }
.facts b { display: block; font-family: var(--display); font-size: 24px; color: #fff; line-height: 1.3; }
.facts span { font-size: 13.5px; color: #9FA6C6; }
.hero-photo { flex: 1 1 360px; min-width: 0; position: relative; min-height: 500px; }
.arch { position: absolute; inset: 10px 8% 0; border-radius: 260px 260px 30px 30px; background: linear-gradient(180deg, #FFF8EA 0%, #F4E2BC 100%); overflow: hidden; }
.arch::before { content: ""; position: absolute; inset: 22px; border-radius: 240px 240px 18px 18px; border: 1px solid rgba(143,103,20,.22); }
.arch::after { content: "M.Z"; position: absolute; top: 9%; inset-inline: 0; text-align: center; font-family: var(--latin); font-weight: 800; font-size: clamp(80px, 11vw, 130px); color: rgba(143,103,20,.10); letter-spacing: 6px; }
.arch img.cut { position: absolute; z-index: 1; bottom: 0; left: 50%; transform: translateX(-50%); height: 86%; width: auto; max-width: none; display: block; filter: drop-shadow(0 18px 28px rgba(16,23,54,.22)); }
.float { position: absolute; z-index: 2; background: #fff; border-radius: 18px; padding: 10px 14px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.55); display: flex; align-items: center; gap: 10px; }
.float .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: var(--gold); flex-shrink: 0; }
.float b { display: block; font-family: var(--display); font-size: 16px; line-height: 1.3; }
.float small { color: var(--muted); font-size: 12px; }
.float.f1 { top: 40px; inset-inline-end: 0; }
.float.f2 { bottom: 92px; inset-inline-start: 0; }
.nameplate { position: absolute; z-index: 2; bottom: 16px; inset-inline: 12%; background: var(--navy); color: #fff; border: 1px solid #3A4678; border-radius: 16px; padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.nameplate b { font-family: var(--display); font-size: 16px; }
.nameplate small { color: var(--gold); font-size: 12.5px; }
@media (max-width: 540px) { .hero-photo { min-height: 400px; } .float.f1 { top: 10px; } .float.f2 { bottom: 80px; } .nameplate { inset-inline: 4%; } }

/* perks */
.perks { padding-top: 18px; }
.perks .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.perk { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line2); border-radius: 18px; padding: 15px 17px; }
.perk .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: var(--gold-soft); color: var(--gold-ink); }
.perk b { display: block; font-weight: 600; }
.perk span { font-size: 13.5px; color: var(--muted); }

/* sections */
section.block { padding-top: 84px; scroll-margin-top: 70px; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 26px; }
.kicker { font-size: 14px; font-weight: 600; color: var(--gold-ink); display: inline-flex; align-items: center; gap: 8px; }
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
.sec-head h2 { margin: 4px 0 0; font-weight: 700; font-size: clamp(27px, 3vw, 38px); line-height: 1.25; }
.sec-head p { margin: 6px 0 0; color: var(--muted); font-size: 17px; max-width: 620px; }

/* about */
.about { display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch; }
.quote { flex: 1 1 340px; max-width: 460px; background: var(--navy); color: #fff; border-radius: 32px; padding: 30px; display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; }
.quote .ring { position: absolute; border-radius: 50%; border: 1px solid var(--ring); }
.quote .who { display: flex; align-items: center; gap: 14px; position: relative; }
.quote .av { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(180deg, #FFF8EA, #F0DDB4) ; overflow: hidden; border: 2px solid var(--gold); flex-shrink: 0; }
.quote .av img { width: 150%; margin-inline-start: -25%; margin-top: 2px; display: block; }
.quote .who b { display: block; font-family: var(--display); font-size: 18px; }
.quote .who small { color: var(--gold); }
.quote blockquote { margin: 0; font-family: var(--display); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.5; position: relative; }
.quote blockquote span { color: var(--gold); }
.quote p { margin: 0; color: #C9CEE4; position: relative; }
.quote .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: auto; position: relative; }
.quote .stats div { background: var(--navy2); border: 1px solid var(--ring); border-radius: 16px; padding: 10px; text-align: center; }
.quote .stats b { display: block; font-family: var(--display); color: var(--gold); font-size: 19px; }
.quote .stats small { color: #9FA6C6; font-size: 12px; }
.about-text { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.about-text p { margin: 0; font-size: 17px; color: #3D4560; max-width: 62ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 16px; font-size: 14px; font-weight: 600; }
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; border: 1px solid var(--line); border-radius: 12px; padding: 9px 14px; min-height: 42px; font-weight: 600; font-size: 14px; color: var(--navy); background: #fff; }
.social a:hover { border-color: var(--gold); }
.social.dark a { background: transparent; color: #fff; border-color: var(--ring); }

/* brokers */
.bfilter { display: flex; gap: 8px; flex-wrap: wrap; }
.bfilter button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 16px; min-height: 40px; font-weight: 600; font-size: 14px; }
.bfilter button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 14px; }
.bk { border: 1px solid var(--line2); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 14px; background: #fff; transition: border-color .15s, box-shadow .15s; position: relative; }
.bk:hover { border-color: #E3CF9F; box-shadow: 0 18px 40px -26px rgba(16,23,54,.35); }
.bk.star { background: linear-gradient(180deg, #FFFCF5, #fff 60%); border-color: #EAD9AE; }
.bk .top { display: flex; align-items: center; gap: 12px; }
.mono { width: 50px; height: 50px; border-radius: 15px; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-family: var(--latin); font-weight: 800; font-size: 14px; letter-spacing: .5px; flex-shrink: 0; }
.bk .nm b { display: block; font-family: var(--latin); font-weight: 600; font-size: 15.5px; direction: ltr; text-align: right; line-height: 1.4; }
.bk .nm small { color: var(--muted); font-size: 13px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px; }
.tag.t-ok { background: var(--ok-soft); color: var(--ok); }
.tag.t-gold { background: var(--gold-soft); color: var(--gold-ink); }
.tag.t-gray { background: var(--soft); color: var(--muted); }
.codeb { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--soft); border: 1px dashed #D5D9E6; border-radius: 12px; padding: 6px 6px 6px 12px; font-size: 13.5px; }
.codeb code { font-family: var(--latin); font-size: 13px; font-weight: 600; direction: ltr; }
.codeb button { border: 0; background: #fff; border-radius: 9px; padding: 4px 10px; min-height: 32px; font-size: 12.5px; font-weight: 700; color: var(--navy); }
.bk .acts { display: flex; gap: 8px; margin-top: auto; }
.bk .acts .btn { flex: 1; }

/* join */
.join { background: var(--soft); border-radius: 36px; padding: clamp(20px, 4vw, 44px); display: flex; flex-wrap: wrap; gap: 30px; align-items: flex-start; }
.join .left { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.tabs { display: flex; flex-direction: column; gap: 10px; }
.tab { display: flex; gap: 14px; align-items: center; text-align: right; border: 2px solid transparent; background: #fff; border-radius: 18px; padding: 14px 16px; width: 100%; }
.tab[aria-pressed="true"] { border-color: var(--navy); }
.tab .n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--navy); font-family: var(--latin); font-weight: 600; flex-shrink: 0; }
.tab[aria-pressed="true"] .n { background: var(--navy); color: var(--gold); }
.tab b { display: block; font-size: 16px; }
.tab span { color: var(--muted); font-size: 14px; }
.need-box { background: #fff; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.need-box b { font-size: 15px; }
.need-box ul { margin: 0; padding-inline-start: 18px; color: var(--muted); }
.join .card { flex: 999 1 480px; min-width: 0; background: #fff; border: 1px solid var(--line2); border-radius: 28px; padding: clamp(18px, 3vw, 28px); display: flex; flex-direction: column; gap: 18px; }
.lbl { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.bpick { display: flex; flex-wrap: wrap; gap: 8px; }
.bpick button { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 6px 12px 6px 8px; min-height: 42px; font-weight: 600; font-size: 14px; }
.bpick button i { font-style: normal; width: 28px; height: 28px; border-radius: 8px; background: var(--soft); color: var(--navy); display: grid; place-items: center; font-family: var(--latin); font-size: 10px; font-weight: 800; }
.bpick button[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.bpick button[aria-pressed="true"] i { background: var(--gold); color: var(--navy); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; }
.steps li::before { counter-increment: s; content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); font-weight: 700; }
.steps b { display: block; }
.steps span { color: var(--muted); font-size: 14.5px; }
.copy { background: var(--soft); border: 1px dashed #D5D9E6; border-radius: 16px; padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.copy > span { flex: 1 1 220px; min-width: 0; font-size: 14.5px; overflow-wrap: anywhere; }
.copy small { color: var(--muted); display: block; font-size: 12.5px; }
.copy .b2 { display: flex; gap: 8px; flex-wrap: wrap; }
.form { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line2); padding-top: 18px; }
.form h4 { margin: 0; font-family: var(--display); font-size: 18px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 540px) { .row2 { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label { font-size: 13.5px; font-weight: 600; }
.field label em { font-style: normal; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; background: #fff; min-width: 0; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(217,168,78,.18); }
.ups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 540px) { .ups { grid-template-columns: minmax(0, 1fr); } }
.up { border: 1.5px dashed #D3C39B; background: #FFFCF4; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.up b { font-size: 14.5px; }
.up small { color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.up label.pick { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: var(--navy); color: #fff; border-radius: 10px; padding: 8px 14px; min-height: 40px; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.up .pv { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px; }
.up .pv img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; }
.up .pv span { flex: 1; font-size: 13px; color: var(--ok); font-weight: 700; }
.up .pv button { border: 0; background: var(--soft); border-radius: 8px; padding: 4px 10px; min-height: 32px; font-size: 12.5px; }
.up.done { border-style: solid; border-color: #BFE3CF; background: #F6FCF8; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--navy); }
.msg-ok { background: var(--ok-soft); color: var(--ok); border-radius: 14px; padding: 14px 16px; }
.msg-warn { background: var(--warn-soft); color: var(--warn-ink); border-radius: 14px; padding: 12px 14px; }
.msg-bad { background: var(--bad-soft); color: var(--bad); border-radius: 14px; padding: 12px 14px; }
.done-card { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.done-card .big { width: 60px; height: 60px; border-radius: 18px; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }
.done-card h3 { margin: 0; font-size: 22px; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.timeline li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding-bottom: 16px; position: relative; }
.timeline li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: #D5D9E6; margin: 6px 7px 0; position: relative; z-index: 1; }
.timeline li::after { content: ""; position: absolute; top: 20px; bottom: 0; inset-inline-start: 13px; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.on::before { background: var(--ok); }
.timeline li.cur::before { background: var(--gold); box-shadow: 0 0 0 4px rgba(217,168,78,.25); }
.timeline li.badst::before { background: var(--bad); }
.timeline b { display: block; }
.timeline span { color: var(--muted); font-size: 14px; }

/* benefits, course, sessions, faq */
.cards4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.bcard { border: 1px solid var(--line2); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.bcard .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: var(--gold); }
.bcard h3 { margin: 4px 0 0; font-size: 19px; }
.bcard p { margin: 0; color: var(--muted); font-size: 15px; }
.sessions { display: flex; flex-wrap: wrap; gap: 16px; }
.countdown { flex: 1 1 320px; background: var(--gold-soft); border-radius: 28px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.cd { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; text-align: center; }
.cd div { background: #fff; border-radius: 16px; padding: 12px 4px; }
.cd b { display: block; font-family: var(--display); font-size: 30px; color: var(--navy); line-height: 1.2; }
.cd small { color: var(--muted); font-size: 12px; }
.sched { flex: 999 1 440px; min-width: 0; border: 1px solid var(--line2); border-radius: 28px; padding: 10px 26px; }
.sched .r { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line2); }
.sched .r:last-child { border-bottom: 0; }
.sched .d { display: flex; gap: 14px; align-items: center; }
.sched .day { width: 58px; height: 58px; border-radius: 16px; background: var(--soft); display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--navy); text-align: center; line-height: 1.3; flex-shrink: 0; }
.sched .r span.t { color: var(--muted); font-weight: 600; }
.faq { max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-ink); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 10px 0 0; color: var(--muted); }
.cta-band { background: var(--navy); border-radius: 32px; padding: clamp(26px, 4vw, 44px); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; color: #fff; }
.cta-band h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); }
.cta-band p { margin: 4px 0 0; color: #C9CEE4; }
footer.site { margin-top: 84px; background: var(--navy); color: #C9CEE4; }
footer.site .wrap { display: flex; flex-direction: column; gap: 18px; padding-block: 40px 110px; font-size: 14.5px; }
footer.site .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
footer.site .risk { border: 1px solid var(--ring); border-radius: 16px; padding: 14px 16px; font-size: 13.5px; line-height: 1.8; }

/* assistant */
.fab { position: fixed; z-index: 40; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); left: calc(20px + env(safe-area-inset-left, 0px)); display: flex; align-items: center; gap: 10px; border: 0; background: var(--navy); color: #fff; border-radius: 999px; padding: 6px 18px 6px 6px; min-height: 58px; font-weight: 700; box-shadow: 0 14px 34px -10px rgba(16,23,54,.55); }
.fab .av { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(180deg, #FFF8EA, #F0DDB4); overflow: hidden; border: 2px solid var(--gold); position: relative; }
.fab .av img { width: 150%; margin-inline-start: -25%; display: block; }
.fab .av::after { content: ""; position: absolute; bottom: 1px; right: 1px; width: 11px; height: 11px; border-radius: 50%; background: #2BD17E; border: 2px solid var(--navy); }
.chat { position: fixed; z-index: 41; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); left: calc(18px + env(safe-area-inset-left, 0px)); width: 400px; max-width: calc(100% - 36px); height: min(640px, calc(100% - 40px)); background: #fff; border: 1px solid var(--line); border-radius: 26px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(16,23,54,.5); }
@media (max-width: 540px) { .chat { left: 8px; right: 8px; bottom: 8px; width: auto; max-width: none; height: calc(100% - 16px); } }
.chat-h { background: var(--navy); color: #fff; padding: 12px 14px; display: flex; align-items: center; gap: 12px; }
.chat-h .av { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(180deg, #FFF8EA, #F0DDB4); overflow: hidden; border: 2px solid var(--gold); flex-shrink: 0; }
.chat-h .av img { width: 150%; margin-inline-start: -25%; display: block; }
.chat-h div.t { flex: 1; display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.chat-h small { font-size: 12.5px; color: #9FD9B9; }
.x { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--ring); background: transparent; color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.progress { height: 3px; background: var(--navy2); }
.progress i { display: block; height: 100%; background: var(--gold); transition: width .3s; }
.feed { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #F7F8FB; }
.m { max-width: 88%; display: flex; flex-direction: column; gap: 6px; }
.m.me { align-self: flex-end; align-items: flex-end; } .m.bot { align-self: flex-start; }
.m .b { border-radius: 18px; padding: 10px 14px; font-size: 14.5px; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
.m.me .b { background: var(--navy); color: #fff; border-end-end-radius: 6px; }
.m.bot .b { background: #fff; border: 1px solid var(--line); border-end-start-radius: 6px; }
.m .b code { font-family: var(--latin); font-size: 12.5px; background: var(--gold-soft); color: var(--gold-ink); border-radius: 6px; padding: 1px 6px; direction: ltr; unicode-bidi: isolate; }
.m .shot { width: 180px; border-radius: 14px; border: 1px solid var(--line); display: block; }
.m .row { display: flex; flex-wrap: wrap; gap: 6px; }
.m .act { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--gold); color: var(--navy); border-radius: 10px; padding: 7px 13px; min-height: 38px; font-weight: 700; font-size: 13.5px; text-decoration: none; cursor: pointer; }
.m .opt { border: 1px solid #D5D9E6; background: #fff; color: var(--navy); border-radius: 999px; padding: 6px 13px; min-height: 36px; font-weight: 600; font-size: 13px; }
.m .opt:hover { border-color: var(--navy); }
.m .sum { background: var(--soft); border-radius: 12px; padding: 8px 10px; font-size: 13.5px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; }
.m .sum span { color: var(--muted); }
.typing { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; display: flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #AEB4C8; animation: bl 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bl { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.quick { display: flex; gap: 6px; padding: 10px 12px 0; overflow-x: auto; scrollbar-width: none; }
.quick button { flex-shrink: 0; border: 1px solid #E8D6AE; background: var(--gold-soft); color: #6B4A0E; border-radius: 999px; padding: 6px 12px; min-height: 36px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.chat form { display: flex; gap: 8px; padding: 10px 12px 12px; align-items: center; }
.chat form input[type=text] { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--soft); border-radius: 999px; padding: 11px 16px; font-size: 14.5px; }
.clip { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); display: grid; place-items: center; flex-shrink: 0; cursor: pointer; }
.send { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; flex-shrink: 0; }

/* toasts + lightbox */
.toasts { position: fixed; z-index: 90; top: 14px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100% - 24px)); pointer-events: none; }
.toast { pointer-events: auto; background: var(--navy); color: #fff; border-radius: 16px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; box-shadow: 0 20px 40px -16px rgba(16,23,54,.6); border: 1px solid var(--ring); animation: tin .25s ease-out; }
.toast .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--gold); color: var(--navy); display: grid; place-items: center; flex-shrink: 0; }
.toast b { display: block; font-size: 14.5px; }
.toast small { color: #C9CEE4; font-size: 12.5px; }
.toast button { margin-inline-start: auto; border: 0; background: #fff; color: var(--navy); border-radius: 10px; padding: 6px 12px; min-height: 34px; font-weight: 700; font-size: 13px; flex-shrink: 0; }
@keyframes tin { from { opacity: 0; transform: translateY(-8px); } }
.lb { position: fixed; inset: 0; z-index: 95; background: rgba(10,14,34,.86); display: grid; place-items: center; padding: 20px; }
.lb img { max-width: 100%; max-height: 86vh; border-radius: 14px; background: #fff; }
.lb button { position: absolute; top: 16px; left: 16px; }

/* ===== admin ===== */
.adm { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; background: var(--soft); }
.side { background: var(--navy); color: #C9CEE4; padding: 20px 14px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; }
.side .brand { color: #fff; padding-inline: 6px; }
.side .brand small { color: var(--gold); }
.side nav { display: flex; flex-direction: column; gap: 4px; }
.side nav button { display: flex; align-items: center; gap: 12px; border: 0; background: transparent; color: #C9CEE4; border-radius: 12px; padding: 10px 12px; min-height: 46px; font-weight: 600; font-size: 15px; text-align: right; width: 100%; }
.side nav button:hover { background: var(--navy2); color: #fff; }
.side nav button[aria-current="page"] { background: var(--navy2); color: #fff; box-shadow: inset -3px 0 0 var(--gold); }
.side nav button i { font-style: normal; margin-inline-start: auto; background: var(--gold); color: var(--navy); border-radius: 999px; min-width: 22px; height: 22px; display: grid; place-items: center; font-size: 12px; font-weight: 800; padding: 0 6px; }
.side .foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.side .foot a { color: #fff; text-decoration: none; border: 1px solid var(--ring); border-radius: 12px; padding: 9px 12px; text-align: center; }
.amain { min-width: 0; display: flex; flex-direction: column; }
.abar { background: #fff; border-bottom: 1px solid var(--line2); padding: 12px clamp(14px, 3vw, 28px); display: flex; align-items: center; gap: 14px; position: sticky; top: 0; z-index: 20; }
.abar h1 { margin: 0; font-size: 20px; }
.abar p { margin: 0; font-size: 13px; color: var(--muted); }
.abar .sp { flex: 1; }
.bell { position: relative; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--navy); }
.bell i { position: absolute; top: -6px; left: -6px; background: var(--bad); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; font-style: normal; font-size: 12px; font-weight: 800; display: grid; place-items: center; padding: 0 6px; border: 2px solid #fff; }
.bell.ring { animation: ring .6s ease-in-out 2; }
@keyframes ring { 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
.npanel { position: absolute; top: 64px; left: clamp(14px, 3vw, 28px); width: min(380px, calc(100vw - 28px)); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 60px -24px rgba(16,23,54,.4); overflow: hidden; z-index: 30; }
.npanel .h { padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line2); }
.npanel .h button { border: 0; background: none; color: var(--gold-ink); font-weight: 700; font-size: 13px; }
.npanel .list { max-height: 360px; overflow-y: auto; }
.nitem { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line2); width: 100%; border-inline: 0; border-top: 0; background: #fff; text-align: right; align-items: flex-start; }
.nitem.unread { background: #FFFBF1; }
.nitem .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); margin-top: 8px; flex-shrink: 0; }
.nitem:not(.unread) .dot { background: transparent; }
.nitem b { display: block; font-size: 14px; }
.nitem small { color: var(--muted); font-size: 12.5px; }
.acontent { padding: clamp(14px, 3vw, 28px); display: flex; flex-direction: column; gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi { background: #fff; border: 1px solid var(--line2); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.kpi small { color: var(--muted); font-weight: 600; font-size: 13.5px; }
.kpi b { font-family: var(--display); font-size: 32px; line-height: 1.2; }
.kpi span { font-size: 12.5px; color: var(--muted); }
.kpi.hl { background: var(--navy); color: #fff; border-color: var(--navy); }
.kpi.hl small, .kpi.hl span { color: #9FA6C6; }
.kpi.hl b { color: var(--gold); }
.panel { background: #fff; border: 1px solid var(--line2); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.panel .ph { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 17px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 1000px) { .cols { grid-template-columns: minmax(0, 1fr); } }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bars .r { display: grid; grid-template-columns: 110px minmax(0, 1fr) 28px; gap: 10px; align-items: center; font-size: 13.5px; }
.bars .tr { height: 10px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.bars .tr i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold2)); border-radius: 99px; }
.ftabs { display: flex; gap: 6px; flex-wrap: wrap; }
.ftabs button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; min-height: 38px; font-weight: 600; font-size: 13.5px; display: inline-flex; gap: 6px; align-items: center; }
.ftabs button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.ftabs button i { font-style: normal; font-size: 12px; opacity: .75; }
.tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.tools input { border: 1px solid var(--line); border-radius: 12px; padding: 9px 13px; background: #fff; min-width: 0; width: 260px; max-width: 100%; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: right; color: var(--muted); font-weight: 600; font-size: 12.5px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td b.ltr { white-space: nowrap; }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.tbl tr.rowbtn { cursor: pointer; }
.tbl tr.rowbtn:hover td { background: #FAFBFD; }
.tbl tr.unread td:first-child { box-shadow: inset -3px 0 0 var(--gold); }
.tbl .who b { display: block; }
.tbl .who small { color: var(--muted); font-size: 12px; }
.tscroll { overflow-x: auto; }
.st { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 11px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st.blue { background: var(--blue-soft); color: var(--blue); }
.st.gold { background: var(--gold-soft); color: var(--gold-ink); }
.st.warn { background: var(--warn-soft); color: var(--warn-ink); }
.st.ok { background: var(--ok-soft); color: var(--ok); }
.st.bad { background: var(--bad-soft); color: var(--bad); }
.kind { font-size: 12px; font-weight: 700; color: var(--navy); background: var(--soft); border-radius: 8px; padding: 2px 8px; white-space: nowrap; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.drawer-bg { position: fixed; inset: 0; z-index: 60; background: rgba(10,14,34,.45); }
.drawer { position: fixed; z-index: 61; top: 0; bottom: 0; left: 0; width: min(620px, 100%); background: var(--soft); overflow-y: auto; display: flex; flex-direction: column; box-shadow: 30px 0 60px -30px rgba(0,0,0,.4); }
.drawer .dh { background: #fff; padding: 14px 18px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line2); position: sticky; top: 0; z-index: 2; }
.drawer .dh h2 { margin: 0; font-size: 19px; }
.drawer .dh .sp { flex: 1; }
.drawer .db { padding: 16px 18px 30px; display: flex; flex-direction: column; gap: 14px; }
.info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.info div { background: var(--soft); border-radius: 12px; padding: 8px 12px; min-width: 0; }
.info small { display: block; color: var(--muted); font-size: 12px; }
.info b { font-size: 14.5px; overflow-wrap: anywhere; }
.info .cp { border: 0; background: none; color: var(--gold-ink); font-weight: 700; font-size: 12px; padding: 0 4px; }
@media (max-width: 480px) { .info { grid-template-columns: minmax(0, 1fr); } }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.shots figure { margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.shots button { border: 0; padding: 0; display: block; width: 100%; background: #0E1430; }
.shots img { width: 100%; height: 150px; object-fit: cover; display: block; }
.shots figcaption { padding: 8px 10px; font-size: 12.5px; font-weight: 600; }
.shots .none { height: 150px; display: grid; place-items: center; color: var(--muted); font-size: 13px; background: var(--soft); }
.vcheck { display: flex; flex-direction: column; gap: 8px; }
.vcheck label { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.vcheck input { width: 18px; height: 18px; accent-color: var(--ok); }
.dacts { display: flex; flex-wrap: wrap; gap: 8px; }
.log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.log li { display: flex; gap: 10px; }
.log li small { color: var(--muted); white-space: nowrap; }
.reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.reasons button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; min-height: 36px; font-size: 13px; font-weight: 600; }
.reasons button[aria-pressed="true"] { border-color: var(--warn-ink); background: var(--warn-soft); color: var(--warn-ink); }
.transcript { display: flex; flex-direction: column; gap: 6px; background: var(--soft); border-radius: 14px; padding: 12px; max-height: 340px; overflow-y: auto; }
.transcript .m { max-width: 92%; }
.bedit { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 2.4fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line2); }
.bedit input { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-width: 0; width: 100%; font-size: 13px; }
.bedit .nm { display: flex; gap: 10px; align-items: center; }
.bedit .nm .mono { width: 38px; height: 38px; border-radius: 11px; font-size: 11px; }
@media (max-width: 760px) { .bedit { grid-template-columns: minmax(0, 1fr); } }
.sw { display: inline-flex; gap: 8px; align-items: center; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.sw input { width: 40px; height: 22px; appearance: none; -webkit-appearance: none; background: #D5D9E6; border-radius: 99px; position: relative; cursor: pointer; transition: background .15s; flex-shrink: 0; }
.sw input::after { content: ""; position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: right .15s; }
.sw input:checked { background: var(--ok); }
.sw input:checked::after { right: 21px; }
@media (max-width: 900px) {
  .adm { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; padding: 12px; gap: 10px; }
  .side nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .side nav button { width: auto; flex-shrink: 0; min-height: 42px; padding: 8px 12px; font-size: 14px; }
  .side nav button[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold); }
  .side .foot { display: none; }
  .abar { position: static; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(120% 90% at 0% 0%, #1F2A5C 0%, var(--navy) 60%); }
.login { width: min(420px, 100%); background: #fff; border-radius: 28px; padding: 30px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.login h1 { margin: 0; font-size: 24px; }
.login .brand b { font-size: 19px; }
.side .who { color: #9FA6C6; font-size: 12.5px; text-align: center; }
.side .foot a.lo { border-color: transparent; color: #F5A89E; }
.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.tgcard { display: flex; flex-direction: column; gap: 10px; }
.tgcard ol { margin: 0; padding-inline-start: 20px; color: var(--muted); font-size: 14px; }
.badge-ok { display: inline-flex; gap: 6px; align-items: center; background: var(--ok-soft); color: var(--ok); border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 700; }
.badge-off { display: inline-flex; gap: 6px; align-items: center; background: var(--soft); color: var(--muted); border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 700; }
.bedit.head { padding-top: 0; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.bedit .tg3 { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.bedit { grid-template-columns: minmax(150px, 1fr) minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) auto; }
@media (max-width: 900px) { .bedit { grid-template-columns: minmax(0, 1fr); } .bedit.head { display: none; } }
