/* Defence Enclave — resident portal. Uses theme tokens when present, with fallbacks. */
.dep-portal {
	--d-brand: var(--brand-700, #292a86); --d-brand-600: var(--brand-600, #3637a6); --d-brand-50: var(--brand-50, #f4f5fc); --d-brand-100: var(--brand-100, #e4e5f6);
	--d-accent: var(--accent, #f2b233); --d-ink: var(--ink, #0f1030); --d-soft: var(--ink-soft, #555873); --d-mute: var(--ink-mute, #8a8ca3); --d-line: var(--line, #e7e8f1);
	--d-ok: #1f9d6b; --d-ok-bg: #dcf5ea; --d-warn: #b57a06; --d-warn-bg: #fdf1d6; --d-alert: #e0413a; --d-alert-bg: #fde7e6;
	--d-radius: var(--radius, 18px); --d-ease: var(--ease, cubic-bezier(.22,1,.36,1)); --d-shadow: var(--shadow, 0 12px 32px -10px rgba(41,42,134,.18));
	--d-font-head: var(--font-head, "Plus Jakarta Sans", system-ui, sans-serif);
}
.dep-section { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 110px); margin-top: -48px; position: relative; z-index: 3; }
.dep-container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.dep-fallback-hero { padding: 120px 24px 80px; background: #292a86; color: #fff; text-align: center; }
.dep-portal .page-hero { padding-bottom: clamp(96px, 11vw, 140px); }

.dep-card { background: #fff; border: 1px solid var(--d-line); border-radius: var(--d-radius); box-shadow: 0 2px 10px rgba(41,42,134,.06); }
.dep-muted { color: var(--d-mute); font-size: 14px; }
.dep-fine { font-size: 13px; color: var(--d-mute); margin: 16px 0 0; text-align: center; }
.dep-fine a, .dep-link { color: var(--d-brand-600); font-weight: 600; }
.dep-link { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 600; }
.dep-link:disabled { color: var(--d-mute); cursor: default; }

/* Buttons */
.dep-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border: 0; border-radius: 99px; cursor: pointer; text-decoration: none; font: 600 15px/1.2 var(--d-font-head); transition: transform .25s var(--d-ease), box-shadow .3s, background-color .3s, color .3s, opacity .3s; }
.dep-btn:hover { transform: translateY(-2px); }
.dep-btn:active { transform: scale(.97); }
.dep-btn--primary { background: var(--d-brand); color: #fff; }
.dep-btn--primary:hover { background: var(--d-brand-600); color: #fff; box-shadow: 0 12px 26px -10px rgba(41,42,134,.6); }
.dep-btn--accent { background: var(--d-accent); color: #11123f; }
.dep-btn--accent:hover { color: #11123f; box-shadow: 0 12px 26px -10px rgba(242,178,51,.8); }
.dep-btn--ghost { background: transparent; color: var(--d-brand); box-shadow: inset 0 0 0 1.5px var(--d-brand-100); }
.dep-btn--ghost:hover { background: var(--d-brand); color: #fff; box-shadow: inset 0 0 0 1.5px var(--d-brand); }
.dep-btn--sm { padding: 9px 16px; font-size: 13.5px; }
.dep-btn--xs { padding: 7px 12px; font-size: 12.5px; gap: 6px; white-space: nowrap; }
.dep-btn--block { width: 100%; }
.dep-btn:disabled, .dep-btn.is-loading { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.dep-btn.is-loading i { animation: dep-spin 1s linear infinite; }
@keyframes dep-spin { to { transform: rotate(360deg); } }

/* Alerts & chips */
.dep-alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 14.5px; font-weight: 500; background: var(--d-brand-50); color: var(--d-brand); display: flex; gap: 10px; align-items: flex-start; }
.dep-alert[hidden], .dep-dev[hidden] { display: none; }
.dep-alert--err { background: var(--d-alert-bg); color: #a52a24; }
.dep-alert--ok { background: var(--d-ok-bg); color: #146a48; }
.dep-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; font: 700 12px/1.2 var(--d-font-head); letter-spacing: .06em; text-transform: uppercase; }
.dep-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dep-chip--ok { background: var(--d-ok-bg); color: var(--d-ok); }
.dep-chip--warn { background: var(--d-warn-bg); color: var(--d-warn); }
.dep-chip--alert { background: var(--d-alert-bg); color: var(--d-alert); }
.dep-chip--muted { background: #eef0f5; color: var(--d-mute); }

/* ---------- Auth ---------- */
.dep-auth { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 360px); justify-content: center; gap: clamp(24px, 5vw, 64px); align-items: center; }
.dep-auth__card { position: relative; padding: clamp(28px, 4vw, 44px); border-radius: 28px; background: #fff; box-shadow: 0 28px 60px -18px rgba(41,42,134,.32); border: 1px solid rgba(231,232,241,.8); }
.dep-auth__icon { width: 60px; height: 60px; margin: -64px auto 18px; border-radius: 18px; display: grid; place-items: center; font-size: 24px; color: #fff; background: linear-gradient(135deg, var(--d-brand-600), #1a1b5c); box-shadow: 0 14px 28px -10px rgba(41,42,134,.7); }
.dep-auth__card h2 { font-size: 26px; text-align: center; margin: 0 0 6px; }
.dep-auth__card .dep-muted { text-align: center; margin: 0 0 22px; }
.dep-step { display: none; }
.dep-step.is-active { display: block; animation: dep-in .45s var(--d-ease) both; }
@keyframes dep-in { from { opacity: 0; transform: translateY(12px); } }
.dep-field--mobile { display: flex; align-items: center; border: 1.5px solid var(--d-line); border-radius: 16px; background: #fafafd; margin-bottom: 16px; transition: border-color .25s, box-shadow .25s; overflow: hidden; }
.dep-field--mobile:focus-within { border-color: var(--d-brand-600); box-shadow: 0 0 0 4px var(--d-brand-100); background: #fff; }
.dep-field__prefix { padding: 0 4px 0 18px; font: 700 18px var(--d-font-head); color: var(--d-brand); }
.dep-field--mobile input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 17px 16px 17px 8px; font: 600 20px var(--d-font-head); letter-spacing: .06em; color: var(--d-ink); outline: 0; }
.dep-otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 18px; }
.dep-otp input { width: 100%; aspect-ratio: 1 / 1.15; text-align: center; font: 800 24px var(--d-font-head); color: var(--d-brand); border: 1.5px solid var(--d-line); border-radius: 14px; background: #fafafd; outline: 0; transition: border-color .2s, box-shadow .2s, transform .2s var(--d-ease); }
.dep-otp input:focus { border-color: var(--d-brand-600); box-shadow: 0 0 0 4px var(--d-brand-100); background: #fff; transform: translateY(-2px); }
.dep-otp input.is-filled { border-color: var(--d-brand-100); background: var(--d-brand-50); }
.dep-otp.is-error input { border-color: var(--d-alert); animation: dep-shake .4s; }
@keyframes dep-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.dep-dev { margin: -4px 0 16px; padding: 10px 14px; border-radius: 12px; background: var(--d-warn-bg); color: #7a5205; font-size: 13.5px; text-align: center; }
.dep-dev strong { letter-spacing: .2em; font-size: 16px; }
.dep-auth__points { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.dep-auth__points li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.dep-auth__points i { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--d-brand-50); color: var(--d-brand); font-size: 18px; }
.dep-auth__points strong { display: block; font: 700 16px var(--d-font-head); color: var(--d-ink); margin-bottom: 2px; }
.dep-auth__points span { color: var(--d-soft); font-size: 14.5px; }

.dep-form { text-align: left; }
.dep-form .dep-label { display: block; margin-bottom: 16px; font: 600 13.5px var(--d-font-head); color: var(--d-soft); }
.dep-form input { display: block; width: 100%; margin-top: 7px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--d-line); background: #fafafd; font: 500 16px var(--font-body, system-ui); color: var(--d-ink); outline: 0; transition: border-color .25s, box-shadow .25s; }
.dep-form input:focus { border-color: var(--d-brand-600); box-shadow: 0 0 0 4px var(--d-brand-100); background: #fff; }
.dep-form input:disabled { color: var(--d-mute); background: #f1f2f7; }
.dep-form small { display: block; margin-top: 6px; font-weight: 400; color: var(--d-mute); }

/* ---------- Dashboard ---------- */
.dep-dash { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.dep-profile { padding: 28px 24px; text-align: center; position: sticky; top: 96px; overflow: hidden; }
.dep-profile::before { content: ""; position: absolute; inset: 0 0 auto; height: 84px; background: radial-gradient(circle at 80% 0, rgba(242,178,51,.35), transparent 60%), linear-gradient(135deg, #212270, var(--d-brand-600)); }
.dep-profile > * { position: relative; }
.dep-profile__avatar { width: 88px; height: 88px; margin: 14px auto 14px; border-radius: 50%; display: grid; place-items: center; font: 800 34px var(--d-font-head); color: var(--d-brand); background: #fff; box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--d-accent), 0 14px 30px -10px rgba(41,42,134,.5); }
.dep-profile__name { font-size: 20px; margin: 8px 0 18px; }
.dep-profile__list { display: grid; gap: 2px; margin: 0 0 20px; text-align: left; }
.dep-profile__list div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 10px; }
.dep-profile__list div:nth-child(odd) { background: var(--d-brand-50); }
.dep-profile__list dt { color: var(--d-soft); font-size: 13.5px; }
.dep-profile__list dt i { width: 18px; color: var(--d-brand-600); }
.dep-profile__list dd { margin: 0; font-weight: 600; font-size: 14px; }
.dep-profile__actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

.dep-main { display: grid; gap: 24px; min-width: 0; }
.dep-status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dep-stat { position: relative; padding: 22px; overflow: hidden; transition: transform .45s var(--d-ease), box-shadow .45s var(--d-ease); }
.dep-stat:hover { transform: translateY(-4px); box-shadow: var(--d-shadow); }
.dep-stat::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--d-warn); }
.dep-stat.is-ok::after { background: var(--d-ok); }
.dep-stat.is-alert::after { background: var(--d-alert); }
.dep-stat__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; margin-bottom: 14px; font-size: 18px; color: var(--d-warn); background: var(--d-warn-bg); }
.is-ok .dep-stat__icon { color: var(--d-ok); background: var(--d-ok-bg); }
.is-alert .dep-stat__icon { color: var(--d-alert); background: var(--d-alert-bg); }
.dep-stat__label { margin: 0 0 8px; font: 600 13px var(--d-font-head); color: var(--d-soft); text-transform: uppercase; letter-spacing: .06em; }
.dep-stat__value { margin: 0 0 8px; }
.dep-stat__value--big { font: 800 30px/1 var(--d-font-head); color: var(--d-ink); letter-spacing: -.02em; }
.dep-stat__hint { margin: 0; font-size: 13px; color: var(--d-mute); }
.dep-stat--total { background: linear-gradient(135deg, #1a1b5c, var(--d-brand)); border: 0; color: #fff; }
.dep-stat--total::after { background: var(--d-accent); }
.dep-stat--total .dep-stat__icon { background: rgba(255,255,255,.12); color: var(--d-accent); }
.dep-stat--total .dep-stat__label, .dep-stat--total .dep-stat__hint { color: rgba(255,255,255,.75); }
.dep-stat--total .dep-stat__value--big { color: #fff; }

.dep-block { padding: clamp(20px, 3vw, 28px); }
.dep-block__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; margin-bottom: 16px; }
.dep-block__head h3 { font-size: 19px; margin: 0; }
.dep-dues { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dep-due label { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--d-line); cursor: pointer; transition: border-color .25s, background-color .25s; }
.dep-due label:hover { border-color: var(--d-brand-100); background: var(--d-brand-50); }
.dep-due input { width: 20px; height: 20px; accent-color: var(--d-brand); }
.dep-due__text strong { display: block; font: 600 15px var(--d-font-head); }
.dep-due__text small { color: var(--d-mute); font-size: 12.5px; }
.dep-due__amt { font: 700 16px var(--d-font-head); }
.dep-due--fine label { border-style: dashed; margin-left: 24px; }
.dep-due--fine .dep-due__amt, .dep-due--fine strong { color: var(--d-alert); }
.dep-paybar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: var(--d-brand-50); flex-wrap: wrap; }
.dep-paybar strong { font: 800 24px var(--d-font-head); color: var(--d-brand); margin-left: 8px; }
.dep-paynote { text-align: left; }

.dep-table-wrap { overflow-x: auto; margin: 0 -4px; }
.dep-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.dep-table th { text-align: left; padding: 12px 14px; font: 700 12px var(--d-font-head); color: var(--d-soft); text-transform: uppercase; letter-spacing: .06em; background: var(--d-brand-50); white-space: nowrap; }
.dep-table th:first-child { border-radius: 10px 0 0 10px; }
.dep-table th:last-child { border-radius: 0 10px 10px 0; }
.dep-table th[data-sort] { cursor: pointer; user-select: none; }
.dep-table th[data-sort]::after { content: "↕"; margin-left: 6px; opacity: .35; }
.dep-table th[aria-sort="ascending"]::after { content: "↑"; opacity: 1; }
.dep-table th[aria-sort="descending"]::after { content: "↓"; opacity: 1; }
.dep-table td { padding: 14px; border-bottom: 1px solid var(--d-line); vertical-align: middle; }
.dep-table tr:hover td { background: #fafbff; }
.dep-table code { white-space: nowrap; font-size: 12.5px; background: none; color: var(--d-brand); }
.dep-table .num { text-align: right; }
.dep-table__action { text-align: right; }
.dep-empty { text-align: center; padding: 28px 16px; color: var(--d-soft); }
.dep-empty i { font-size: 32px; color: var(--d-ok); margin-bottom: 10px; display: block; }
.dep-empty p { margin: 0; }

@media (max-width: 1080px) {
	.dep-dash { grid-template-columns: 1fr; }
	.dep-profile { position: static; }
	.dep-auth { grid-template-columns: minmax(0, 480px); }
	.dep-auth__points { display: none; }
}
@media (max-width: 720px) {
	.dep-status { grid-template-columns: 1fr; }
	.dep-otp { gap: 7px; }
	.dep-table thead { display: none; }
	.dep-table, .dep-table tbody, .dep-table tr, .dep-table td { display: block; width: 100%; }
	.dep-table tr { padding: 14px 0; border-bottom: 1px solid var(--d-line); }
	.dep-table td { border: 0; padding: 4px 4px; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
	.dep-table td::before { content: attr(data-label); color: var(--d-mute); font-size: 13px; text-align: left; }
	.dep-table td.dep-table__action { justify-content: flex-end; padding-top: 10px; }
	.dep-table td.dep-table__action::before { content: none; }
	.dep-due--fine label { margin-left: 12px; }
	.dep-paybar .dep-btn { width: 100%; }
}

/* Email / password forms */
.dep-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dep-pass { position: relative; display: block; }
.dep-pass input { padding-right: 48px; }
.dep-pass__toggle { position: absolute; right: 6px; top: 50%; margin-top: 3px; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--d-mute); cursor: pointer; }
.dep-pass__toggle:hover { color: var(--d-brand); background: var(--d-brand-50); }
.dep-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -2px 0 18px; font-size: 14px; }
.dep-row a { color: var(--d-brand-600); font-weight: 600; }
.dep-check { display: inline-flex; align-items: center; gap: 8px; color: var(--d-soft); cursor: pointer; }
.dep-check input { width: 17px; height: 17px; accent-color: var(--d-brand); margin: 0; }
.dep-form .dep-check input { display: inline-block; width: 17px; margin: 0; }
.dep-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.dep-hint { display: block; margin: -8px 0 18px; color: var(--d-mute); font-size: 12.5px; }
.dep-form .dep-field--sm { display: flex; margin: 7px 0 0; border-radius: 14px; }
.dep-form .dep-field--sm input { margin: 0; border: 0; background: transparent; box-shadow: none; padding: 14px 16px 14px 6px; font: 500 16px var(--font-body, system-ui); letter-spacing: 0; }
.dep-form .dep-field--sm .dep-field__prefix { font-size: 16px; }
@media (max-width: 520px) { .dep-two { grid-template-columns: 1fr; } }

/* ---------- Profile page ---------- */
.dep-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dep-pf { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; }
.dep-pf__alert { grid-column: 1 / -1; margin: 0; }
.dep-pf__card { position: sticky; top: 96px; padding: 0 24px 24px; text-align: center; overflow: hidden; }
.dep-pf__cover { height: 104px; margin: 0 -24px; background: radial-gradient(circle at 85% 0, rgba(242,178,51,.45), transparent 55%), radial-gradient(circle at 10% 100%, rgba(75,77,200,.6), transparent 60%), linear-gradient(135deg, #1a1b5c, var(--d-brand)); }
.dep-pf__avatar { position: relative; display: block; width: 136px; height: 136px; margin: -68px auto 10px; cursor: pointer; border-radius: 50%; }
.dep-pf__img { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--d-brand-50); box-shadow: 0 0 0 5px #fff, 0 0 0 8px var(--d-accent), 0 18px 36px -12px rgba(41,42,134,.55); transition: transform .5s var(--d-ease); }
.dep-pf__img img { width: 100%; height: 100%; object-fit: cover; }
.dep-pf__initials { font: 800 52px var(--d-font-head); color: var(--d-brand); }
.dep-pf__avatar:hover .dep-pf__img { transform: scale(1.04); }
.dep-pf__avatar:focus-within .dep-pf__img { box-shadow: 0 0 0 5px #fff, 0 0 0 8px var(--d-brand-600); }
.dep-pf__cam { position: absolute; right: 2px; bottom: 6px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--d-brand); color: #fff; border: 3px solid #fff; font-size: 15px; box-shadow: 0 6px 14px -4px rgba(41,42,134,.6); transition: transform .3s var(--d-ease), background-color .3s; }
.dep-pf__avatar:hover .dep-pf__cam { transform: scale(1.1); background: var(--d-brand-600); }
.dep-pf__photo-hint { margin: 4px 0 14px; font-size: 12px; color: var(--d-mute); }
.dep-pf__photo-hint.is-new { color: var(--d-brand-600); font-weight: 600; }
.dep-pf__photo-hint.is-err { color: var(--d-alert); font-weight: 600; }
.dep-pf__name { font-size: 22px; margin: 0 0 8px; }
.dep-pf__role { margin: 0 0 18px; }
.dep-pf__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.dep-pf__facts div { padding: 12px; border-radius: 14px; background: var(--d-brand-50); }
.dep-pf__facts span { display: block; font-size: 11.5px; color: var(--d-mute); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 3px; }
.dep-pf__facts strong { font: 700 16px var(--d-font-head); color: var(--d-brand); }
.dep-pf__links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.dep-pf__main { display: grid; gap: 24px; min-width: 0; }
.dep-block__head h3 i { color: var(--d-brand-600); margin-right: 6px; font-size: 16px; }
.dep-pf__lock, .dep-pf__edit { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; font: 600 12px var(--d-font-head); white-space: nowrap; }
.dep-pf__lock { background: #eef0f5; color: var(--d-soft); }
.dep-pf__edit { background: var(--d-ok-bg); color: var(--d-ok); }
.dep-pf__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.dep-pf__item { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--d-line); background: #fcfcfe; transition: border-color .25s, background-color .25s; }
.dep-pf__item:hover { border-color: var(--d-brand-100); background: var(--d-brand-50); }
.dep-pf__item dt { font-size: 12.5px; color: var(--d-mute); margin-bottom: 5px; }
.dep-pf__item dt i { width: 16px; color: var(--d-brand-600); margin-right: 4px; }
.dep-pf__item dd { margin: 0; font: 600 15.5px var(--d-font-head); color: var(--d-ink); word-break: break-word; }
.dep-pf__note { margin: 16px 0 0; font-size: 13.5px; color: var(--d-soft); }
.dep-pf__note i { color: var(--d-brand-600); margin-right: 4px; }
.dep-pf__note a { color: var(--d-brand-600); font-weight: 600; }
.dep-pf__label { display: block; margin-bottom: 8px; font: 600 13.5px var(--d-font-head); color: var(--d-soft); }
.dep-pf__label input, .dep-pf__label textarea { display: block; width: 100%; margin-top: 8px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--d-line); background: #fafafd; font: 500 15.5px/1.5 var(--font-body, system-ui); color: var(--d-ink); outline: 0; resize: vertical; transition: border-color .25s, box-shadow .25s, background-color .25s; }
.dep-pf__label input:focus, .dep-pf__label textarea:focus { border-color: var(--d-brand-600); box-shadow: 0 0 0 4px var(--d-brand-100); background: #fff; }
.dep-pf__label + .dep-pf__label { margin-top: 14px; }
.dep-pf__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--d-mute); }
.dep-pf__summary { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.dep-pf__summary > div { display: flex; flex-direction: column; gap: 6px; }
.dep-pf__summary strong { font: 800 22px var(--d-font-head); color: var(--d-ink); }
.dep-pf__summary .dep-btn { margin-left: auto; }
.dep-pf__save { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding: 12px 12px 12px 20px; border-radius: 99px; background: rgba(255,255,255,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--d-line); box-shadow: var(--d-shadow); }
.dep-pf__dirty { display: none; align-items: center; gap: 8px; margin-right: auto; font-size: 13.5px; font-weight: 600; color: var(--d-warn); }
.dep-pf__dirty i { font-size: 8px; }
.dep-pf__save.is-dirty { border-color: var(--d-accent); }
.dep-pf__save.is-dirty .dep-pf__dirty { display: inline-flex; }

@media (max-width: 1080px) { .dep-pf { grid-template-columns: 1fr; } .dep-pf__card { position: static; } }
@media (max-width: 600px) {
	.dep-pf__grid { grid-template-columns: 1fr; }
	.dep-pf__summary .dep-btn { margin-left: 0; width: 100%; }
	.dep-pf__save { border-radius: 18px; }
	.dep-pf__save .dep-btn { flex: 1; }
}

/* Dashboard avatar photo */
.dep-profile__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.dep-profile__avatar.has-photo { overflow: hidden; }

/* Transaction details dialog */
.dep-table__action { white-space: nowrap; }
.dep-table__action .dep-btn + .dep-btn { margin-left: 6px; }
.dep-tx { width: min(460px, calc(100vw - 32px)); padding: 24px; border: 0; border-radius: 24px; box-shadow: 0 30px 80px -20px rgba(17,18,63,.45); color: var(--d-ink); }
.dep-tx::backdrop { background: rgba(17,18,63,.55); backdrop-filter: blur(4px); }
.dep-tx[open] { animation: dep-in .35s var(--d-ease) both; }
.dep-tx__head { display: flex; align-items: center; gap: 14px; }
.dep-tx__head h3 { margin: 0 0 4px; font-size: 18px; }
.dep-tx__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--d-ok-bg); color: var(--d-ok); font-size: 20px; }
.dep-tx__close { margin-left: auto; align-self: flex-start; width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--d-brand-50); color: var(--d-soft); cursor: pointer; }
.dep-tx__close:hover { background: var(--d-brand-100); color: var(--d-brand); }
.dep-tx__amount { margin: 18px 0 14px; font: 800 34px/1 var(--d-font-head); color: var(--d-brand); letter-spacing: -.02em; }
.dep-tx__list { margin: 0 0 16px; border-top: 1px solid var(--d-line); }
.dep-tx__list div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--d-line); font-size: 14px; }
.dep-tx__list dt { color: var(--d-mute); }
.dep-tx__list dd { margin: 0; text-align: right; font-weight: 600; word-break: break-all; }
.dep-tx__list small { font-weight: 400; color: var(--d-mute); }
.dep-tx__list code { font-size: 12.5px; color: var(--d-brand); background: none; }
.dep-tx h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--d-soft); }
.dep-tx__items { list-style: none; margin: 0 0 18px; padding: 0; }
.dep-tx__items li { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 10px; font-size: 14px; }
.dep-tx__items li:nth-child(odd) { background: var(--d-brand-50); }
.dep-tx__foot { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 720px) { .dep-table td.dep-table__action { gap: 6px; } }

/* Transaction history month filter */
.dep-txfilter { position: relative; display: inline-flex; align-items: center; }
.dep-txfilter i { position: absolute; left: 14px; color: var(--d-brand-600); font-size: 12px; pointer-events: none; }
.dep-txfilter select { appearance: none; -webkit-appearance: none; padding: 9px 36px 9px 34px; border-radius: 99px; border: 1.5px solid var(--d-line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23555873' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center; font: 600 13.5px var(--d-font-head); color: var(--d-ink); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.dep-txfilter select:focus { outline: 0; border-color: var(--d-brand-600); box-shadow: 0 0 0 4px var(--d-brand-100); }
.dep-txfilter.is-active select { border-color: var(--d-brand-600); background-color: var(--d-brand-50); color: var(--d-brand); }
.dep-txsum { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 16px; border-radius: 14px; background: var(--d-brand-50); font-size: 14px; color: var(--d-soft); }
.dep-txsum strong { font: 800 18px var(--d-font-head); color: var(--d-brand); }
.dep-txsum button { background: none; border: 0; color: var(--d-brand-600); font-weight: 600; cursor: pointer; padding: 0; }
.dep-table tr.is-filtered { display: none; }
.dep-hints { margin: -6px 0 18px; padding: 0 0 0 18px; font-size: 13.5px; color: var(--d-soft); text-align: left; }
.dep-hints li { margin-bottom: 4px; }
.dep-hints a { color: var(--d-brand-600); font-weight: 600; }
.dep-alert--cta { flex-direction: column; align-items: stretch; gap: 12px; }
.dep-alert--cta .dep-btn { align-self: flex-start; }

/* Entry fee first */
.dep-step-note { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; padding: 12px 14px; border-radius: 14px; background: var(--d-warn-bg); color: #7a5205; font-size: 14px; }
.dep-step-note__n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--d-accent); color: #11123f; font: 800 13px var(--d-font-head); }
.dep-due.is-locked label { opacity: .55; cursor: not-allowed; background: #f6f7fa; }
.dep-due.is-locked label:hover { border-color: var(--d-line); background: #f6f7fa; }
.dep-due__lock { position: absolute; margin-left: -2px; margin-top: 1px; font-size: 11px; color: var(--d-mute); }
.dep-due label { position: relative; }

/* Privacy consent */
.dep-consent { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 20px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--d-line); background: #fafafd; font-size: 13.5px; line-height: 1.55; color: var(--d-soft); cursor: pointer; text-align: left; transition: border-color .2s, background-color .2s; }
.dep-consent:hover { border-color: var(--d-brand-100); }
.dep-consent:has(input:checked) { border-color: var(--d-brand-600); background: var(--d-brand-50); }
.dep-form .dep-consent input { flex: none; width: 19px; height: 19px; margin: 2px 0 0; padding: 0; accent-color: var(--d-brand); display: inline-block; }
.dep-consent a { color: var(--d-brand-600); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* =====================================================================
   Auth pages (login / sign-up / reset): split card on a full-bleed stage
   ===================================================================== */
.dep-stage {
	position: relative; overflow: hidden; isolation: isolate;
	padding: calc(var(--header-h, 76px) + var(--ticker-h, 0px) + clamp(28px, 5vw, 56px)) 0 clamp(48px, 7vw, 88px);
	background:
		radial-gradient(900px 500px at 90% -10%, rgba(75, 77, 200, .55), transparent 60%),
		radial-gradient(700px 420px at -10% 110%, rgba(242, 178, 51, .16), transparent 60%),
		linear-gradient(140deg, #11123f 0%, #212270 55%, #292a86 100%);
}
.dep-stage__pattern { position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); }
.dep-stage__orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); pointer-events: none; animation: dep-float 16s ease-in-out infinite; }
.dep-stage__orb--a { width: 420px; height: 420px; right: -120px; top: 6%; background: #4b4dc8; opacity: .45; }
.dep-stage__orb--b { width: 300px; height: 300px; left: -80px; bottom: -60px; background: var(--d-accent); opacity: .16; animation-delay: -6s; }
@keyframes dep-float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-24px, 24px); } }
.dep-stage__back { margin: 22px 0 0; text-align: center; }
.dep-stage__back a { color: rgba(255,255,255,.7); font: 600 13.5px var(--d-font-head); }
.dep-stage__back a:hover { color: var(--d-accent); }
.dep-stage__back i { font-size: 11px; margin-right: 4px; }

.dep-split { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); max-width: 1080px; margin: 0 auto; border-radius: 30px; overflow: hidden; background: #fff; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255,255,255,.06); animation: dep-in .7s var(--d-ease) both; }

/* Brand panel */
.dep-split__brand { position: relative; display: flex; flex-direction: column; padding: clamp(32px, 4vw, 52px); color: #fff; overflow: hidden; isolation: isolate;
	background: radial-gradient(500px 300px at 100% 0, rgba(242,178,51,.22), transparent 60%), linear-gradient(160deg, #1a1b5c, #292a86 70%, #3637a6); }
.dep-split__brand::after { content: ""; position: absolute; z-index: -1; right: -90px; bottom: -70px; width: 340px; height: 340px; opacity: .07; background: #fff; -webkit-mask: url(../../../themes/defence-enclave-theme/assets/img/mark.png) center / contain no-repeat; mask: url(../../../themes/defence-enclave-theme/assets/img/mark.png) center / contain no-repeat; }
.dep-split__mark { width: 64px; height: 64px; border-radius: 18px; margin-bottom: 28px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); position: relative; box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.dep-split__mark::after { content: ""; position: absolute; inset: 9px; background: #fff; -webkit-mask: url(../../../themes/defence-enclave-theme/assets/img/mark.png) center / contain no-repeat; mask: url(../../../themes/defence-enclave-theme/assets/img/mark.png) center / contain no-repeat; }
.dep-split__eyebrow { margin: 0 0 12px; font: 700 12px var(--d-font-head); letter-spacing: .22em; text-transform: uppercase; color: var(--d-accent); }
.dep-split__title { margin: 0 0 14px; color: #fff; font: 800 clamp(30px, 3.4vw, 42px)/1.08 var(--d-font-head); letter-spacing: -.03em; }
.dep-split__title span { color: var(--d-accent); }
.dep-split__text { margin: 0 0 28px; color: rgba(255,255,255,.78); font-size: 15.5px; line-height: 1.6; max-width: 400px; }
.dep-split__points { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 18px; }
.dep-split__points li { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; }
.dep-split__points i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: var(--d-accent); font-size: 16px; }
.dep-split__points strong { display: block; font: 700 15px var(--d-font-head); margin-bottom: 2px; }
.dep-split__points span { color: rgba(255,255,255,.72); font-size: 13.5px; line-height: 1.5; }
.dep-split__foot { margin-top: auto; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.dep-split__stat { font-size: 13.5px; color: rgba(255,255,255,.75); }
.dep-split__stat strong { color: #fff; font: 800 18px var(--d-font-head); margin-right: 4px; }
.dep-split__motto { font: 700 11px var(--d-font-head); letter-spacing: .4em; color: var(--d-accent); }

/* Form panel */
.dep-split__form { padding: clamp(28px, 4vw, 52px); display: flex; align-items: center; }
.dep-af { width: 100%; max-width: 460px; margin: 0 auto; text-align: left; }
.dep-af__head { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.dep-af__head h2 { margin: 0 0 2px; font-size: 26px; letter-spacing: -.02em; }
.dep-af__head p { margin: 0; color: var(--d-mute); font-size: 14.5px; }
.dep-af__icon { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 20px; color: #fff; background: linear-gradient(135deg, var(--d-brand-600), #1a1b5c); box-shadow: 0 12px 24px -10px rgba(41,42,134,.7); }
.dep-af .dep-alert { margin-bottom: 20px; }

.dep-fl { display: block; margin-bottom: 16px; }
.dep-fl__label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; font: 600 13.5px var(--d-font-head); color: var(--d-ink); }
.dep-fl__aside { font-weight: 600; font-size: 13px; color: var(--d-brand-600); }
.dep-fl__aside:hover { text-decoration: underline; }
.dep-fl__hint { margin: -6px 0 4px; font-size: 12.5px; color: var(--d-mute); }
.dep-fl__hint i { color: var(--d-brand-600); margin-right: 4px; }

.dep-in { position: relative; display: flex; align-items: center; border: 1.5px solid var(--d-line); border-radius: 14px; background: #fafafd; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.dep-in > i { position: absolute; left: 15px; color: var(--d-mute); font-size: 14px; pointer-events: none; transition: color .2s; }
.dep-in input { flex: 1; min-width: 0; width: 100%; border: 0 !important; background: transparent !important; box-shadow: none !important; outline: 0; margin: 0 !important; padding: 14px 14px 14px 42px; font: 500 15.5px var(--font-body, system-ui); color: var(--d-ink); }
.dep-in input::placeholder { color: #b3b5c7; }
.dep-in:focus-within { border-color: var(--d-brand-600); background: #fff; box-shadow: 0 0 0 4px var(--d-brand-100); }
.dep-in:focus-within > i { color: var(--d-brand-600); }
.dep-in.is-ok { border-color: var(--d-ok); }
.dep-in.is-bad { border-color: var(--d-alert); }
.dep-in__prefix { padding-left: 42px; margin-right: -34px; font: 700 15px var(--d-font-head); color: var(--d-brand); z-index: 1; }
.dep-in__prefix + input { padding-left: 40px; }
.dep-in.dep-pass input { padding-right: 46px; }
.dep-in .dep-pass__toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); margin: 0; }
.dep-af__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.dep-af__remember { margin: -2px 0 20px; font-size: 14px; }

.dep-af__group { margin: 0 0 18px; padding: 0; border: 0; }
.dep-af__group legend { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font: 700 12.5px var(--d-font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--d-soft); }
.dep-af__group legend span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--d-brand-50); color: var(--d-brand); font-size: 12px; letter-spacing: 0; }

.dep-meter { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: -4px 0 4px; font-size: 12.5px; }
.dep-meter__bar { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.dep-meter__bar span { height: 5px; border-radius: 4px; background: var(--d-line); transition: background-color .3s; }
.dep-meter[data-score="1"] .dep-meter__bar span:nth-child(-n+1) { background: var(--d-alert); }
.dep-meter[data-score="2"] .dep-meter__bar span:nth-child(-n+2) { background: #e98a1e; }
.dep-meter[data-score="3"] .dep-meter__bar span:nth-child(-n+3) { background: #a3b81d; }
.dep-meter[data-score="4"] .dep-meter__bar span { background: var(--d-ok); }
.dep-meter__text { color: var(--d-mute); }
.dep-meter__match { font-weight: 600; }
.dep-meter__match.is-ok { color: var(--d-ok); }
.dep-meter__match.is-bad { color: var(--d-alert); }

.dep-btn--lg { padding: 16px 26px; font-size: 16px; }
.dep-af__or { display: flex; align-items: center; gap: 14px; margin: 24px 0 16px; color: var(--d-mute); font-size: 13px; }
.dep-af__or::before, .dep-af__or::after { content: ""; flex: 1; height: 1px; background: var(--d-line); }
.dep-af__note { margin: 16px 0 0; text-align: center; font-size: 12.5px; color: var(--d-mute); }
.dep-af__note i { color: var(--d-brand-600); margin-right: 4px; }
.dep-af__switch { margin: 18px 0 0; text-align: center; font-size: 14px; color: var(--d-soft); }
.dep-af__switch a { color: var(--d-brand-600); font-weight: 700; }
.dep-af .dep-consent { margin: 6px 0 20px; }

@media (max-width: 900px) {
	.dep-split { grid-template-columns: 1fr; border-radius: 24px; }
	.dep-split__brand { padding: 28px 24px 26px; }
	.dep-split__mark { width: 48px; height: 48px; border-radius: 14px; margin-bottom: 16px; }
	.dep-split__title { font-size: 28px; }
	.dep-split__text { margin-bottom: 0; font-size: 14.5px; }
	.dep-split__points, .dep-split__foot { display: none; }
	.dep-split__form { padding: 28px 22px 32px; }
}
@media (max-width: 520px) {
	.dep-af__row { grid-template-columns: 1fr; }
	.dep-af__head h2 { font-size: 22px; }
	.dep-stage .dep-container { padding-inline: 12px; }
}
