:root {
    --primary: #1565c0;
    --primary-dark: #0d47a1;
    --primary-soft: #eaf3ff;
    --navy: #102a43;
    --teal: #00897b;
    --success: #2e7d32;
    --warning: #ef6c00;
    --danger: #c62828;
    --info: #0277bd;
    --text: #172b3a;
    --text-soft: #5f7080;
    --border: #dce5ec;
    --surface: #ffffff;
    --background: #f4f7fa;
    --shadow: 0 8px 28px rgba(16, 42, 67, .08);
    --radius: 12px;
    --sidebar-width: 260px;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--background);
    font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; background: var(--background); color: var(--text); }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: .5rem; font-size: clamp(1.65rem, 3vw, 2.25rem); letter-spacing: -.035em; }
h2 { font-size: 1.18rem; letter-spacing: -.015em; }
.muted { color: var(--text-soft); }

.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand__mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 10px; color: white; background: linear-gradient(145deg, var(--primary-dark), var(--primary)); box-shadow: 0 6px 16px rgba(13, 71, 161, .22); }
.brand__mark span { font-size: .76rem; font-weight: 800; letter-spacing: .03em; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 1rem; letter-spacing: .01em; }
.brand__text small { margin-top: .23rem; color: var(--text-soft); font-size: .68rem; }
.brand--inverse { color: white; }
.brand--inverse:hover { color: white; }
.brand--inverse .brand__mark { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); box-shadow: none; }
.brand--inverse .brand__text small { color: rgba(255,255,255,.64); }

.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: .45rem; padding: .65rem 1.05rem; border: 1px solid transparent; border-radius: 9px; font-weight: 650; line-height: 1; cursor: pointer; transition: transform .15s, background .15s, border-color .15s, box-shadow .15s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .58; cursor: not-allowed; transform: none; }
.button--primary { color: white; background: linear-gradient(100deg, var(--primary-dark), var(--primary)); box-shadow: 0 4px 13px rgba(21, 101, 192, .2); }
.button--primary:hover { color: white; box-shadow: 0 7px 18px rgba(21, 101, 192, .27); }
.button--secondary { color: var(--primary-dark); background: white; border-color: #b8cce1; }
.button--secondary:hover { background: var(--primary-soft); border-color: var(--primary); }
.button--ghost { color: var(--text-soft); background: transparent; }
.button--ghost:hover { background: #edf1f5; }
.button--danger-ghost { color: var(--danger); background: white; border-color: #efc4c4; }
.button--danger-ghost:hover { background: #fff3f3; }
.button--small { min-height: 36px; padding: .5rem .8rem; font-size: .86rem; }
.button--large { min-height: 50px; padding: .85rem 1.25rem; }
.button--block { width: 100%; }
.text-link { font-weight: 600; }
.text-button { padding: .15rem .35rem; color: var(--primary); background: none; border: 0; font-weight: 650; cursor: pointer; }
.danger-link { color: var(--danger); background: none; border: 0; cursor: pointer; }
.back-link { display: inline-block; margin-bottom: .6rem; color: var(--text-soft); font-size: .86rem; font-weight: 600; }

.public-shell { display: flex; min-height: 100vh; flex-direction: column; background: white; }
.public-header { display: flex; width: min(1160px, calc(100% - 2rem)); height: 76px; margin: 0 auto; align-items: center; justify-content: space-between; }
.public-header__actions { display: flex; align-items: center; gap: 1.25rem; }
.public-main { flex: 1; }
.public-footer { display: flex; width: min(1160px, calc(100% - 2rem)); margin: auto; padding: 2rem 0; justify-content: space-between; border-top: 1px solid var(--border); color: var(--text-soft); font-size: .78rem; }

.hero { display: grid; width: min(1160px, calc(100% - 2rem)); min-height: 590px; margin: 0 auto; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 4rem; }
.hero h1 { margin: .75rem 0 1.25rem; color: var(--navy); font-size: clamp(2.6rem, 5.5vw, 4.55rem); line-height: 1.04; letter-spacing: -.06em; }
.hero h1 span { color: var(--primary); }
.hero__content > p { max-width: 610px; color: var(--text-soft); font-size: 1.07rem; line-height: 1.75; }
.eyebrow { color: var(--primary); font-family: Arial, "Segoe UI", sans-serif; font-size: .8rem; font-weight: 700; line-height: 1.5; letter-spacing: .04em; }
.hero__actions { display: flex; margin-top: 1.7rem; gap: .8rem; }
.hero__trust { display: flex; margin-top: 1.8rem; flex-wrap: wrap; gap: 1.1rem; color: #527083; font-size: .78rem; }
.hero__trust span::first-letter { color: var(--success); }
.hero__visual { position: relative; min-height: 400px; border-radius: 36% 64% 48% 52% / 57% 35% 65% 43%; background: linear-gradient(145deg, #e4f1ff, #f1f8ff); }
.hero__visual::after { position: absolute; right: 4%; bottom: 5%; width: 62%; height: 25%; border-radius: 50%; background: rgba(21,101,192,.1); filter: blur(20px); content: ""; }
.illustration-card { position: absolute; z-index: 1; border: 1px solid rgba(255,255,255,.8); border-radius: 18px; background: rgba(255,255,255,.94); box-shadow: 0 24px 60px rgba(16, 42, 67, .15); }
.illustration-card--main { top: 21%; right: 4%; width: 86%; padding: 1.35rem; transform: rotate(1.5deg); }
.illustration-card--back { top: 10%; left: 0; display: flex; width: 55%; padding: 1rem; flex-direction: column; transform: rotate(-8deg); opacity: .85; }
.illustration-card--back span { color: var(--text-soft); font-size: .64rem; font-weight: 700; letter-spacing: .1em; }
.illustration-card--back strong { margin-top: .3rem; color: var(--navy); }
.illustration-card__head { display: flex; align-items: center; justify-content: space-between; font-weight: 700; }
.illustration-card__head i { padding: .35rem .55rem; border-radius: 20px; color: #9c5700; background: #fff2dd; font-size: .66rem; font-style: normal; }
.illustration-card__container { margin: 1.35rem 0; padding: 1rem; border: 1px solid #dce9f6; border-radius: 10px; color: var(--primary-dark); background: var(--primary-soft); font-size: 1.3rem; font-weight: 800; letter-spacing: .08em; }
.progress-line { display: flex; align-items: center; gap: 0; }
.progress-line b, .progress-line i { display: block; width: 14px; height: 14px; border: 3px solid white; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.progress-line i { background: #d7e1e9; box-shadow: 0 0 0 1px #bccad4; }
.progress-line b + b::before, .progress-line b + i::before { display: block; width: 65px; height: 2px; margin: 3px 0 0 -65px; background: var(--primary); content: ""; transform: translateY(0); }
.progress-line b + i::before { background: #d7e1e9; }
.illustration-card__rows { margin-top: 1.2rem; }
.illustration-card__rows span { display: block; width: 100%; height: 9px; margin-top: .65rem; border-radius: 9px; background: #edf2f6; }
.illustration-card__rows span:nth-child(2) { width: 74%; }
.illustration-card__rows span:nth-child(3) { width: 48%; }
.feature-section { padding: 5.5rem max(1rem, calc((100% - 1160px)/2)); background: #f5f9fd; }
.section-heading { max-width: 640px; margin-bottom: 2.3rem; }
.section-heading h2 { margin-top: .7rem; color: var(--navy); font-size: clamp(1.7rem, 3vw, 2.5rem); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.feature-card { min-height: 210px; padding: 1.7rem; border: 1px solid #e3ebf2; border-radius: 14px; background: white; }
.feature-card__number { color: #94bce9; font-size: .8rem; font-weight: 800; }
.feature-card h3 { margin: 2rem 0 .7rem; font-size: 1.08rem; }
.feature-card p { color: var(--text-soft); font-size: .88rem; line-height: 1.65; }

.auth-page { display: grid; min-height: calc(100vh - 150px); padding: 2.5rem 1rem 4rem; place-items: center; background: radial-gradient(circle at 20% 20%, #edf6ff, transparent 36%), var(--background); }
.auth-card { width: min(460px, 100%); padding: clamp(1.5rem, 5vw, 2.3rem); border: 1px solid var(--border); border-radius: 18px; background: white; box-shadow: var(--shadow); }
.auth-page--wide .auth-card { width: min(680px, 100%); }
.auth-card--center { text-align: center; }
.auth-card__heading { margin-bottom: 1.5rem; }
.auth-card__heading h1 { margin: .45rem 0 .45rem; }
.auth-card__heading p, .auth-card--center p { color: var(--text-soft); line-height: 1.6; }
.auth-card__footer { margin: 1.5rem 0 0; text-align: center; color: var(--text-soft); font-size: .88rem; }
.auth-card__footer a { font-weight: 700; }
.form-stack { display: flex; flex-direction: column; gap: 1rem; }
.form-grid { display: grid; gap: 1rem; }
.form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { min-width: 0; }
.field > label, .field__label-row > label { display: block; margin-bottom: .42rem; color: #294052; font-size: .8rem; font-weight: 650; }
.field > label b { color: var(--danger); }
.field > label span, .field small { color: var(--text-soft); font-size: .7rem; font-weight: 400; }
.field > input, .field > select, .field > textarea { width: 100%; min-height: 43px; padding: .65rem .75rem; border: 1px solid #cbd8e2; border-radius: 8px; outline: none; color: var(--text); background: white; transition: border .15s, box-shadow .15s; }
.field > textarea { min-height: 100px; resize: vertical; }
.field > input:focus, .field > select:focus, .field > textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(21, 101, 192, .11); }
.field > input:disabled { color: #6b7c89; background: #f2f5f7; }
.field__label-row { display: flex; align-items: center; justify-content: space-between; }
.field__label-row a { font-size: .75rem; font-weight: 600; }
.check-field { display: flex; align-items: flex-start; gap: .65rem; color: #526574; font-size: .8rem; line-height: 1.5; cursor: pointer; }
.check-field input { width: 17px; height: 17px; margin-top: .12rem; accent-color: var(--primary); }
.validation-message { display: block; margin-top: .3rem; color: var(--danger); font-size: .7rem; }
.validation-errors { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--danger); font-size: .8rem; }
.modified.invalid, input.invalid, select.invalid, textarea.invalid { border-color: var(--danger) !important; }

.alert { margin-bottom: 1rem; padding: .85rem 1rem; border: 1px solid; border-radius: 9px; font-size: .82rem; line-height: 1.55; }
.alert--error { color: #8f1c1c; border-color: #efc1c1; background: #fff2f2; }
.alert--success { color: #236226; border-color: #bcdcbc; background: #eff9ef; }
.alert--warning { color: #83500e; border-color: #ecd1a9; background: #fff8e9; }
.result-icon { display: grid; width: 58px; height: 58px; margin: 0 auto 1.2rem; place-items: center; border-radius: 50%; font-size: 1.55rem; font-weight: 800; }
.result-icon--success { color: var(--success); background: #e8f5e9; }
.result-icon--error { color: var(--danger); background: #ffebee; }
.result-icon--warning { color: var(--warning); background: #fff3e0; }

.app-shell { min-height: 100vh; }
.nav-toggle { position: fixed; left: -9999px; }
.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; display: flex; width: var(--sidebar-width); padding: 1.25rem 1rem; flex-direction: column; background: linear-gradient(160deg, #102a43 0%, #0d2438 55%, #143a5a 100%); }
.sidebar > .brand { padding: 0 .55rem 1.2rem; }
.side-nav { display: flex; margin-top: .75rem; flex-direction: column; gap: .25rem; }
.side-nav__item { display: flex; min-height: 44px; padding: .65rem .75rem; align-items: center; gap: .7rem; border-radius: 8px; color: rgba(255,255,255,.72); font-size: .84rem; font-weight: 550; }
.side-nav__item:hover { color: white; background: rgba(255,255,255,.08); }
.side-nav__item.active { color: white; background: rgba(100,181,246,.17); box-shadow: inset 3px 0 #64b5f6; }
.side-nav__icon { display: grid; width: 24px; height: 24px; place-items: center; color: #8ac7f5; font-size: 1.1rem; }
.sidebar__foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.1); }
.app-content { min-height: 100vh; margin-left: var(--sidebar-width); }
.app-header { position: sticky; z-index: 20; top: 0; display: flex; height: 65px; padding: 0 1.5rem; align-items: center; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.95); backdrop-filter: blur(12px); }
.app-header__title { font-size: .88rem; font-weight: 650; }
.menu-button { display: none !important; margin-right: .6rem; }
.icon-button { display: inline-grid; width: 38px; height: 38px; padding: 0; place-items: center; border: 0; border-radius: 8px; color: var(--text); background: transparent; cursor: pointer; }
.icon-button:hover { background: #edf2f6; }
.user-chip { display: flex; margin-left: auto; align-items: center; gap: .55rem; color: var(--text); }
.user-chip__avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: white; background: var(--primary); font-size: .66rem; font-weight: 750; }
.user-chip__name { max-width: 180px; overflow: hidden; font-size: .78rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.app-main { width: min(1180px, 100%); margin: 0 auto; padding: 1.6rem; }
.mobile-nav { display: none; }

.page-heading { display: flex; margin-bottom: 1.35rem; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.page-heading h1 { margin: .35rem 0 .3rem; }
.page-heading p { margin: 0; color: var(--text-soft); font-size: .84rem; }
.page-heading--compact { align-items: flex-start; }
.page-heading--detail { align-items: flex-end; }
.detail-title { display: flex; align-items: center; gap: .8rem; }
.page-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; }
.card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: 0 2px 10px rgba(16,42,67,.035); }
.loading-panel { display: flex; min-height: 220px; align-items: center; justify-content: center; gap: .8rem; color: var(--text-soft); font-size: .84rem; }
.spinner { display: inline-block; width: 28px; height: 28px; border: 3px solid #d9e6f1; border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
.spinner--small { width: 17px; height: 17px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.inline-loading { display: inline-flex; align-items: center; gap: .45rem; color: var(--text-soft); font-size: .77rem; }

.filter-tabs { display: flex; margin-bottom: 1rem; padding-bottom: .1rem; gap: .35rem; overflow-x: auto; scrollbar-width: thin; }
.filter-tabs button { padding: .52rem .8rem; border: 1px solid var(--border); border-radius: 30px; color: var(--text-soft); background: white; font-size: .75rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
.filter-tabs button.active { color: white; border-color: var(--primary); background: var(--primary); }
.order-list { display: flex; flex-direction: column; gap: .7rem; }
.order-card { display: grid; padding: 1rem 1.15rem; grid-template-columns: minmax(0, 1fr) auto 18px; align-items: center; gap: 1rem; border: 1px solid var(--border); border-radius: 11px; color: var(--text); background: white; transition: border-color .15s, box-shadow .15s, transform .15s; }
.order-card:hover { color: var(--text); border-color: #a7c6e6; box-shadow: var(--shadow); transform: translateY(-1px); }
.order-card__title { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; }
.order-card__title strong { font-size: .98rem; letter-spacing: .015em; }
.order-card__type { margin: .35rem 0 .6rem; color: var(--primary-dark); font-size: .78rem; font-weight: 650; }
.order-card__meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; color: var(--text-soft); font-size: .73rem; }
.order-card__date { display: flex; min-width: 90px; flex-direction: column; text-align: right; }
.order-card__date span, .order-card__date small { color: var(--text-soft); font-size: .64rem; }
.order-card__date strong { margin: .18rem 0; font-size: .78rem; }
.order-card__arrow { color: #90a4b4; font-size: 1.5rem; }
.status-badge { display: inline-flex; width: fit-content; padding: .3rem .55rem; align-items: center; gap: .35rem; border-radius: 20px; font-size: .65rem; font-weight: 700; white-space: nowrap; }
.status-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-badge--neutral { color: #536875; background: #edf1f4; }
.status-badge--info { color: #05649a; background: #e6f4fb; }
.status-badge--warning { color: #9b5900; background: #fff2dd; }
.status-badge--danger { color: #a52525; background: #ffebeb; }
.status-badge--success { color: #266b29; background: #e8f5e9; }
.pagination { display: flex; margin-top: 1.2rem; align-items: center; justify-content: center; gap: .8rem; color: var(--text-soft); font-size: .76rem; }
.pagination button { width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 7px; background: white; cursor: pointer; }

.empty-state { padding: 3.5rem 1.5rem; text-align: center; }
.empty-state__icon { display: grid; width: 60px; height: 60px; margin: 0 auto 1rem; place-items: center; border-radius: 50%; color: var(--primary); background: var(--primary-soft); font-size: 1.2rem; font-weight: 750; }
.empty-state h2, .empty-state h3 { margin-bottom: .45rem; }
.empty-state p { max-width: 480px; margin: 0 auto 1.2rem; color: var(--text-soft); font-size: .83rem; line-height: 1.6; }
.container-narrow { max-width: 650px; margin: 3rem auto; }

.order-form { display: flex; padding-bottom: 5.5rem; flex-direction: column; gap: 1rem; }
.form-section { padding: 1.25rem; }
.form-section__head { display: flex; margin-bottom: 1.2rem; align-items: flex-start; gap: .8rem; }
.form-section__head h2 { margin: 0 0 .25rem; }
.form-section__head p { margin: 0; color: var(--text-soft); font-size: .75rem; }
.form-section__action { margin-left: auto; }
.step-number { display: grid; min-width: 30px; height: 30px; place-items: center; border-radius: 8px; color: var(--primary); background: var(--primary-soft); font-size: .76rem; font-weight: 800; }
.choice-grid { display: grid; margin-bottom: 1rem; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .8rem; }
.choice-card { display: flex; min-height: 82px; padding: .85rem; align-items: center; gap: .75rem; border: 1.5px solid var(--border); border-radius: 10px; cursor: pointer; }
.choice-card.selected { border-color: var(--primary); background: #f5faff; box-shadow: 0 0 0 2px rgba(21,101,192,.08); }
.choice-card input { width: 16px; height: 16px; accent-color: var(--primary); }
.choice-card__icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 8px; color: var(--primary); background: var(--primary-soft); font-size: 1.25rem; }
.choice-card > span:last-child { display: flex; flex-direction: column; }
.choice-card strong { font-size: .85rem; }
.choice-card small { margin-top: .25rem; color: var(--text-soft); font-size: .68rem; }
.upload-row { display: flex; margin-top: 1rem; flex-wrap: wrap; align-items: center; gap: .7rem; }
.upload-button { position: relative; display: inline-flex; min-height: 38px; padding: .55rem .8rem; align-items: center; gap: .4rem; overflow: hidden; border: 1px dashed #9eb9cf; border-radius: 8px; color: var(--primary-dark); background: #f8fbfe; font-size: .75rem; font-weight: 650; cursor: pointer; }
.upload-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-button.disabled { opacity: .55; cursor: not-allowed; }
.file-list { display: flex; margin-top: .85rem; flex-wrap: wrap; gap: .5rem; }
.file-chip { display: flex; max-width: 300px; padding: .55rem .65rem; align-items: center; gap: .5rem; border: 1px solid var(--border); border-radius: 8px; background: white; }
.file-chip > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.file-chip strong { font-size: .68rem; }
.file-chip small { overflow: hidden; color: var(--text-soft); font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.file-chip button { border: 0; color: var(--text-soft); background: none; cursor: pointer; }
.container-lines { display: flex; flex-direction: column; gap: .8rem; }
.container-line { padding: 1rem; border: 1px solid #d9e5ed; border-radius: 10px; background: #fbfcfd; }
.container-line > .form-grid + .form-grid { margin-top: 1rem; }
.container-line__head { display: flex; margin-bottom: .85rem; align-items: center; justify-content: space-between; font-size: .8rem; }
.sticky-actions { position: fixed; z-index: 15; right: 0; bottom: 0; left: var(--sidebar-width); display: flex; padding: .8rem max(1.6rem, calc((100vw - var(--sidebar-width) - 1180px)/2 + 1.6rem)); justify-content: flex-end; gap: .6rem; border-top: 1px solid var(--border); background: rgba(255,255,255,.97); box-shadow: 0 -8px 25px rgba(16,42,67,.06); backdrop-filter: blur(10px); }
.gate-card { display: flex; max-width: 650px; margin: 3rem auto; padding: 1.4rem; align-items: center; gap: 1.25rem; }
.gate-card .result-icon { min-width: 58px; margin: 0; }
.gate-card h2 { margin-bottom: .35rem; }
.gate-card p { color: var(--text-soft); }

.profile-grid { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(400px, 1.2fr); gap: 1rem; align-items: start; }
.kyc-uploads { display: flex; flex-direction: column; gap: .65rem; }
.document-slot { display: flex; min-height: 72px; padding: .75rem; align-items: center; gap: .7rem; border: 1px dashed #b7c8d6; border-radius: 9px; background: #fafcfd; }
.document-slot--ready { border-style: solid; border-color: #b9dabb; background: #f7fcf7; }
.document-slot__icon { display: grid; min-width: 34px; height: 34px; place-items: center; border-radius: 8px; color: var(--primary); background: var(--primary-soft); font-weight: 800; }
.document-slot--ready .document-slot__icon { color: var(--success); background: #e8f5e9; }
.document-slot__body { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.document-slot__body strong { font-size: .77rem; }
.document-slot__body small { margin-top: .22rem; overflow: hidden; color: var(--text-soft); font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.document-slot__upload { position: relative; padding: .45rem .6rem; overflow: hidden; border: 1px solid #aac2d5; border-radius: 7px; color: var(--primary-dark); background: white; font-size: .68rem; font-weight: 650; cursor: pointer; }
.document-slot__upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.review-note { display: flex; margin-top: 1rem; padding: .85rem; gap: .65rem; border-radius: 8px; color: #86510c; background: #fff6e7; }
.review-note--success { color: #28672b; background: #edf8ed; }
.review-note strong { font-size: .77rem; }
.review-note p { margin: .2rem 0 0; font-size: .68rem; }
.helper-text { display: block; margin-top: .55rem; color: var(--text-soft); text-align: center; font-size: .68rem; }

.approval-banner { display: flex; margin-bottom: 1rem; padding: 1rem 1.2rem; align-items: center; gap: .8rem; border: 1px solid #b9dabb; border-radius: 11px; color: #245e28; background: linear-gradient(100deg, #ecf8ed, #f7fff7); }
.approval-banner > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: white; background: var(--success); font-weight: 800; }
.approval-banner p { margin: .25rem 0 0; font-size: .78rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 1rem; align-items: start; }
.detail-main { display: flex; flex-direction: column; gap: 1rem; }
.detail-section { min-width: 0; padding: 1.25rem; overflow-wrap: anywhere; }
.detail-section h2 { margin-bottom: 1rem; }
.detail-section > p + p { margin-top: .35rem; }
.data-grid { display: grid; margin: 0; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem 1.3rem; }
.data-grid div { min-width: 0; }
.data-grid dt, .detail-container dt { margin-bottom: .25rem; color: var(--text-soft); font-size: .67rem; }
.data-grid dd, .detail-container dd { margin: 0; font-size: .8rem; font-weight: 550; overflow-wrap: anywhere; }
.detail-containers { display: flex; flex-direction: column; gap: .7rem; }
.detail-container { padding: .9rem; border: 1px solid var(--border); border-radius: 9px; }
.detail-container__head { display: flex; margin-bottom: .75rem; align-items: center; justify-content: space-between; }
.detail-container__head strong { color: var(--primary-dark); font-size: .94rem; letter-spacing: .05em; }
.detail-container__head span { padding: .25rem .45rem; border-radius: 6px; color: #425d70; background: #edf2f6; font-size: .67rem; font-weight: 700; }
.detail-container dl { display: grid; margin: 0 0 .75rem; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .8rem; }
.reservation { margin-top: .7rem; padding: .55rem .7rem; border-radius: 7px; color: var(--success); background: #edf8ed; font-size: .7rem; font-weight: 650; }
.reservation--expired { color: var(--danger); background: #fff1f1; }
.document-list { display: flex; flex-direction: column; gap: .5rem; }
.document-row { display: flex; width: 100%; padding: .65rem .75rem; align-items: center; gap: .65rem; border: 1px solid var(--border); border-radius: 8px; color: var(--text); background: #fbfcfd; text-align: left; cursor: pointer; }
.document-row__icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 7px; color: var(--primary); background: var(--primary-soft); }
.document-row > span:nth-child(2) { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.document-row strong { font-size: .75rem; }
.document-row small { margin-top: .2rem; overflow: hidden; color: var(--text-soft); font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }
.document-row i { color: var(--primary); font-size: .68rem; font-style: normal; }
.timeline-card { position: sticky; top: 81px; }
.timeline { display: flex; flex-direction: column; }
.timeline__item { position: relative; display: grid; padding-bottom: 1.15rem; grid-template-columns: 16px 1fr; gap: .6rem; }
.timeline__item::before { position: absolute; top: 14px; bottom: 0; left: 5px; width: 1px; background: #d6e1e9; content: ""; }
.timeline__item:last-child::before { display: none; }
.timeline__item > i { z-index: 1; width: 11px; height: 11px; margin-top: 2px; border: 2px solid white; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.timeline__item strong { font-size: .73rem; }
.timeline__item p { margin: .25rem 0; color: var(--text-soft); font-size: .67rem; line-height: 1.45; }
.timeline__item small { color: #8a9aa6; font-size: .6rem; }

.modal-backdrop { position: fixed; z-index: 50; inset: 0; display: grid; padding: 1rem; place-items: center; background: rgba(6, 25, 40, .58); backdrop-filter: blur(3px); }
.modal { width: min(560px, 100%); max-height: min(720px, 90vh); padding: 1.2rem; overflow-y: auto; border-radius: 14px; background: white; box-shadow: 0 24px 70px rgba(0,0,0,.25); }
.modal__head { display: flex; margin-bottom: 1rem; align-items: flex-start; justify-content: space-between; }
.modal__head h2 { margin: 0 0 .25rem; }
.modal__head p { margin: 0; color: var(--text-soft); font-size: .72rem; }
.candidate-list { display: flex; flex-direction: column; gap: .5rem; }
.candidate-list button { display: flex; width: 100%; padding: .75rem; align-items: center; justify-content: space-between; border: 1px solid var(--border); border-radius: 8px; color: var(--text); background: white; text-align: left; cursor: pointer; }
.candidate-list button:hover { border-color: var(--primary); background: #f7fbff; }
.candidate-list span { display: flex; flex-direction: column; }
.candidate-list strong { color: var(--primary-dark); letter-spacing: .05em; }
.candidate-list small { margin-top: .25rem; color: var(--text-soft); font-size: .67rem; }
.candidate-list i { color: var(--primary); font-size: .72rem; font-style: normal; font-weight: 700; }

.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.guide-card { display: flex; padding: 1.25rem; gap: 1rem; }
.guide-card > span { display: grid; min-width: 38px; height: 38px; place-items: center; border-radius: 9px; color: var(--primary); background: var(--primary-soft); font-size: .74rem; font-weight: 800; }
.guide-card h2 { margin: 0 0 .5rem; }
.guide-card p { color: var(--text-soft); font-size: .78rem; line-height: 1.6; }
.guide-card a { font-size: .75rem; font-weight: 700; }

/* Chứng từ sau tác nghiệp (phiếu EIR). Tách khỏi khối bàn giao phía trên bằng nền xanh vì đây là hai thứ
   khác bản chất: phiếu bàn giao CẤP QUYỀN vào cổng và phải giữ kín, còn EIR chỉ là chứng từ đã hoàn tất.
   Dùng cùng bộ màu với .review-note--success / .approval-banner để không sinh thêm tông màu mới. */
.handover-eir { margin-top: .9rem; padding: .85rem .95rem; border: 1px solid #b9dabb; border-radius: 10px; background: #f7fcf7; }
.handover-eir > p { margin: 0; color: #245e28; font-size: .78rem; line-height: 1.55; }
.handover-eir > p.muted { color: var(--text-soft); font-size: .7rem; }
.handover-eir .handover-actions { display: flex; margin: .7rem 0 .55rem; flex-wrap: wrap; gap: .5rem; }

#blazor-error-ui { position: fixed; z-index: 1000; right: 1rem; bottom: 1rem; display: none; padding: .8rem 1rem; border: 1px solid #efc1c1; border-radius: 8px; color: #8f1c1c; background: #fff2f2; box-shadow: var(--shadow); font-size: .8rem; }
#blazor-error-ui .dismiss { margin-left: .7rem; border: 0; background: none; cursor: pointer; }

@media (max-width: 960px) {
    .hero { min-height: auto; padding: 4rem 0; grid-template-columns: 1fr; text-align: center; }
    .hero__content > p { margin-right: auto; margin-left: auto; }
    .hero__actions, .hero__trust { justify-content: center; }
    .hero__visual { width: min(540px, 100%); margin: auto; }
    .profile-grid, .detail-grid { grid-template-columns: 1fr; }
    .timeline-card { position: static; }
    .form-grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .detail-container dl { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 760px) {
    :root { --sidebar-width: 265px; }
    .sidebar { transform: translateX(-102%); transition: transform .22s ease; }
    .nav-backdrop { position: fixed; z-index: 25; inset: 0; visibility: hidden; background: rgba(6,25,40,.48); opacity: 0; transition: opacity .2s, visibility .2s; }
    .nav-toggle:checked ~ .sidebar { transform: translateX(0); }
    .nav-toggle:checked ~ .nav-backdrop { visibility: visible; opacity: 1; }
    .app-content { margin-left: 0; }
    .app-header { height: 58px; padding: 0 .85rem; }
    .menu-button { display: inline-grid !important; }
    .app-header__title { font-size: .8rem; }
    .user-chip__name { display: none; }
    .app-main { padding: 1rem .8rem 5.4rem; }
    .mobile-nav { position: fixed; z-index: 20; right: 0; bottom: 0; left: 0; display: grid; height: 66px; padding-bottom: env(safe-area-inset-bottom); grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); background: rgba(255,255,255,.98); box-shadow: 0 -5px 18px rgba(16,42,67,.07); }
    .mobile-nav a { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .16rem; color: #6a7d8c; }
    .mobile-nav a.active { color: var(--primary); }
    .mobile-nav span { font-size: 1.1rem; line-height: 1; }
    .mobile-nav small { font-size: .61rem; font-weight: 650; }
    .mobile-nav__create span { display: grid; width: 34px; height: 34px; margin-top: -16px; place-items: center; border: 4px solid white; border-radius: 50%; color: white; background: var(--primary); box-sizing: content-box; }
    .sticky-actions { left: 0; bottom: 66px; padding: .65rem .8rem; }
    .order-form { padding-bottom: 6.5rem; }
    .page-heading { align-items: flex-start; }
    .page-heading:not(.page-heading--detail) > .button { min-width: 42px; padding-right: .8rem; padding-left: .8rem; font-size: 0; }
    .page-heading:not(.page-heading--detail) > .button span { font-size: 1.2rem; }
    .page-heading--detail { flex-direction: column; }
    .page-actions { width: 100%; justify-content: flex-start; }
    .order-card { grid-template-columns: minmax(0, 1fr) 16px; }
    .order-card__date { display: none; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-card { min-height: 170px; }
    .public-footer { flex-direction: column; gap: .35rem; text-align: center; }
}

@media (max-width: 560px) {
    .public-header { height: 66px; }
    .brand__mark { width: 38px; height: 38px; }
    .hide-mobile { display: none; }
    .hero { padding: 2.5rem 0 3.5rem; gap: 2.5rem; }
    .hero h1 { font-size: 2.6rem; }
    .hero__actions { flex-direction: column; }
    .hero__visual { min-height: 310px; }
    .illustration-card--main { top: 18%; right: 2%; width: 94%; }
    .illustration-card--back { left: 2%; }
    .feature-section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
    .auth-page { align-items: start; padding: 1rem .7rem 3rem; }
    .auth-card { padding: 1.25rem; border-radius: 13px; }
    .form-grid--2, .form-grid--3, .choice-grid, .data-grid, .guide-grid { grid-template-columns: 1fr; }
    .form-section { padding: 1rem; }
    .detail-section { padding: 1rem; }
    .form-section__head { flex-wrap: wrap; }
    .form-section__action { width: 100%; margin-left: 0; }
    .order-card { padding: .9rem; }
    .order-card__meta { flex-direction: column; gap: .25rem; }
    .status-badge { font-size: .6rem; }
    .sticky-actions .button--ghost { display: none; }
    .sticky-actions .button { flex: 1; padding-right: .45rem; padding-left: .45rem; font-size: .74rem; }
    .detail-container dl { grid-template-columns: 1fr 1fr; }
    .document-slot { flex-wrap: wrap; }
    .document-slot__upload { margin-left: 42px; }
    .gate-card { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
