/* Gweru Smart Council admin console */

:root {
    --bg: #f5f7fb;
    --bg-2: #eef1f6;
    --surface: #ffffff;
    --surface-2: #f8f9fc;
    --surface-3: #eef1f6;
    --border: #e1e5ec;
    --border-strong: #c8ced9;
    --text: #172033;
    --text-muted: #697386;
    --cyan: #17255a;
    --cyan-soft: rgba(23, 37, 90, 0.08);
    --coral: #cf2428;
    --coral-soft: rgba(207, 36, 40, 0.10);
    --gold: #d6a514;
    --green: #218653;
    --danger: #c62828;
    --violet: #5a4f86;
    --shadow: 0 18px 48px rgba(23, 32, 51, 0.10);
    --navbar-h: 68px;
    --footer-h: 34px;
    --sidebar-w: 264px;
}

.brand-crest {
    width: 42px;
    height: 48px;
    object-fit: contain;
}

* { box-sizing: border-box; }

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background:
        linear-gradient(135deg, rgba(33, 237, 240, 0.16), transparent 28%),
        radial-gradient(circle at 74% 8%, rgba(255, 98, 84, 0.16), transparent 28%),
        var(--bg);
    overflow: hidden;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: #fff; text-decoration: none; }

.admin-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-h);
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0 24px;
    background: rgba(10, 6, 29, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
    z-index: 1000;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 238px;
    font-size: 15px;
    font-weight: 700;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--cyan), var(--coral));
    color: #070417;
    font-weight: 900;
}

.accent { color: var(--cyan); }

.global-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(460px, 36vw);
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
}

.global-search input {
    width: 100%;
    border: 0;
    outline: none;
    color: var(--text);
    background: transparent;
}

.global-search input::placeholder { color: #757d9f; }

.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
}

.topnav-menu {
    position: relative;
}

.topnav-menu > summary {
    list-style: none;
}

.topnav-menu > summary::-webkit-details-marker {
    display: none;
}

.topnav-action,
.avatar-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text);
    background: transparent;
    cursor: pointer;
    user-select: none;
}

.topnav-action {
    gap: 7px;
    padding: 0 11px;
    font-weight: 700;
}

.topnav-action svg,
.avatar-trigger svg {
    width: 17px;
    height: 17px;
    stroke-width: 2;
}

.topnav-action.icon-only {
    position: relative;
    width: 40px;
    padding: 0;
    background: var(--surface-2);
    border-color: var(--border);
}

.topnav-action-text {
    color: #fff;
    background: var(--coral);
    box-shadow: 0 7px 18px rgba(207, 36, 40, 0.16);
}

.topnav-menu[open] > summary,
.topnav-action:hover,
.avatar-trigger:hover {
    border-color: var(--border-strong);
}

.topnav-menu[open] .chevron {
    transform: rotate(180deg);
}

.chevron {
    transition: transform 160ms ease;
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    display: grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 10px;
    color: #fff;
    background: var(--coral);
    font-size: 9px;
    font-weight: 800;
}

.avatar-trigger {
    gap: 10px;
    min-width: 178px;
    padding: 4px 8px 4px 5px;
}

.user-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    background: var(--cyan);
    font-size: 13px;
    font-weight: 800;
}

.user-avatar.large {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    font-size: 16px;
}

.user-identity {
    display: grid;
    min-width: 0;
    text-align: left;
}

.user-identity strong {
    max-width: 116px;
    overflow: hidden;
    color: var(--text);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-identity small {
    color: var(--text-muted);
    font-size: 10px;
}

.topnav-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 1200;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    background: #fff;
    box-shadow: 0 22px 56px rgba(23, 32, 51, 0.16);
}

.quick-actions-dropdown {
    width: min(440px, calc(100vw - 28px));
}

.notifications-dropdown {
    width: min(390px, calc(100vw - 28px));
}

.avatar-dropdown {
    width: 290px;
    padding: 10px;
}

.dropdown-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.dropdown-heading > div {
    display: grid;
    gap: 3px;
}

.dropdown-heading strong {
    color: var(--text);
    font-size: 14px;
}

.dropdown-heading span {
    color: var(--text-muted);
    font-size: 11px;
}

.text-action {
    flex: 0 0 auto;
    padding: 3px 0;
    border: 0;
    color: var(--coral);
    background: transparent;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
}

.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
}

.quick-action-grid > a {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: var(--text);
}

.quick-action-grid > a:hover {
    border-color: var(--border);
    background: var(--surface-2);
}

.quick-action-grid a > span:last-child,
.dropdown-menu-item > span,
.notification-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.quick-action-grid strong,
.dropdown-menu-item strong {
    color: var(--text);
    font-size: 12px;
}

.quick-action-grid small,
.dropdown-menu-item small {
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.35;
}

.action-icon,
.notification-icon {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 7px;
}

.action-icon svg,
.notification-icon svg {
    width: 17px;
    height: 17px;
}

.action-icon.navy,
.notification-icon.sync {
    color: var(--cyan);
    background: var(--cyan-soft);
}

.action-icon.red,
.notification-icon.urgent {
    color: var(--coral);
    background: var(--coral-soft);
}

.action-icon.gold {
    color: #755800;
    background: rgba(214, 165, 20, 0.15);
}

.action-icon.green,
.notification-icon.payment {
    color: var(--green);
    background: rgba(33, 134, 83, 0.11);
}

.notification-list {
    max-height: 390px;
    overflow-y: auto;
}

.notification-item {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.notification-item:hover {
    background: var(--surface-2);
}

.notification-item.unread {
    background: rgba(23, 37, 90, 0.035);
}

.notification-item.unread::after {
    content: "";
    position: absolute;
    top: 18px;
    right: 14px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--coral);
}

.notification-copy {
    padding-right: 12px;
}

.notification-copy strong {
    color: var(--text);
    font-size: 12px;
}

.notification-copy small {
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.4;
}

.notification-copy time {
    margin-top: 2px;
    color: #9098a7;
    font-size: 9px;
}

.dropdown-footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px;
    color: var(--cyan);
    font-size: 11px;
    font-weight: 700;
}

.dropdown-footer-link svg {
    width: 14px;
    height: 14px;
}

.avatar-profile {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px;
}

.avatar-profile > span:last-child {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.avatar-profile strong {
    overflow: hidden;
    color: var(--text);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.avatar-profile small {
    overflow: hidden;
    color: var(--text-muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-divider {
    height: 1px;
    margin: 7px 0;
    background: var(--border);
}

.dropdown-menu-item {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 10px;
    border: 0;
    border-radius: 7px;
    color: var(--text);
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.dropdown-menu-item:hover {
    background: var(--surface-2);
}

.dropdown-menu-item > svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.logout-item:hover {
    background: var(--coral-soft);
}

.logout-item:hover strong,
.logout-item:hover > svg {
    color: var(--coral);
}

.global-search svg {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
}

.global-search kbd {
    padding: 2px 6px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-muted);
    background: #fff;
    font-family: inherit;
    font-size: 9px;
}

.admin-sidebar {
    position: fixed;
    top: var(--navbar-h);
    bottom: var(--footer-h);
    left: 0;
    width: var(--sidebar-w);
    overflow-y: auto;
    padding: 14px 12px 18px;
    background: rgba(12, 8, 35, 0.96);
    border-right: 1px solid var(--border);
    z-index: 900;
}

.sidebar-nav { padding: 0; }

.nav-group {
    margin-bottom: 10px;
    padding: 10px 8px;
    border: 1px solid rgba(122, 244, 255, 0.07);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
}

.nav-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    color: #71799c;
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    list-style: none;
}

.nav-group-title::-webkit-details-marker { display: none; }

.nav-group-title::after {
    content: "+";
    color: var(--cyan);
    font-size: 13px;
}

.nav-group[open] .nav-group-title {
    padding-bottom: 8px;
    color: var(--cyan);
}

.nav-group[open] .nav-group-title::after {
    content: "-";
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu a {
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 10px;
    border-radius: 7px;
    color: var(--text-muted);
    font-size: 13px;
}

.menu a:hover {
    color: var(--text);
    background: rgba(33, 237, 240, 0.08);
}

.menu a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--coral), #ff7a57);
    box-shadow: 0 10px 28px rgba(255, 98, 84, 0.22);
}

.admin-content {
    position: fixed;
    top: var(--navbar-h);
    bottom: var(--footer-h);
    left: var(--sidebar-w);
    right: 0;
    overflow-y: auto;
    padding: 26px 30px 38px;
}

.admin-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--footer-h);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 4, 23, 0.96);
    border-top: 1px solid var(--border);
    color: #737b9d;
    font-size: 12px;
    z-index: 1000;
}

.profile-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 18px;
    max-width: 1050px;
}

.profile-summary {
    align-self: start;
    text-align: center;
}

.profile-avatar {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    margin: 4px auto 16px;
    border-radius: 50%;
    color: #fff;
    background: var(--cyan);
    box-shadow: 0 0 0 7px var(--cyan-soft);
    font-size: 28px;
    font-weight: 800;
}

.profile-summary h2 {
    margin-bottom: 5px;
    font-size: 18px;
}

.profile-summary > p {
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 12px;
}

.profile-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    border-radius: 6px;
    color: var(--green);
    background: rgba(33, 134, 83, 0.08);
    font-size: 10px;
    font-weight: 700;
}

.profile-status span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
}

.profile-summary dl {
    margin: 22px 0 0;
    text-align: left;
}

.profile-summary dl div {
    display: grid;
    gap: 4px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
}

.profile-summary dt {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.profile-summary dd {
    margin: 0;
    color: var(--text);
    font-size: 12px;
}

.profile-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.profile-form label {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.profile-form label small {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 400;
}

.profile-form input:disabled {
    color: var(--text-muted);
    background: var(--surface-3);
}

.profile-form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 5px;
}

.profile-notice {
    margin-bottom: 18px;
    padding: 11px 13px;
    border-radius: 7px;
    font-size: 12px;
}

.profile-notice.success {
    color: var(--green);
    background: rgba(33, 134, 83, 0.08);
}

/* Residents and council accounts */
.registry-header {
    align-items: flex-end;
}

.header-actions .btn,
.registry-panel .btn,
.modal-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.header-actions .btn svg,
.registry-panel .btn svg,
.modal-actions .btn svg {
    width: 15px;
    height: 15px;
}

.flash-message {
    margin-bottom: 16px;
    padding: 11px 14px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
}

.flash-message.success {
    color: var(--green);
    background: rgba(33, 134, 83, 0.07);
    border-color: rgba(33, 134, 83, 0.16);
}

.flash-message.error {
    color: var(--danger);
    background: rgba(198, 40, 40, 0.07);
    border-color: rgba(198, 40, 40, 0.16);
}

.registry-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.registry-stats .stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 96px;
}

.registry-stats .value {
    margin-top: 4px;
    font-size: 22px;
}

.money-value {
    font-size: 18px !important;
}

.metric-icon {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 8px;
}

.metric-icon svg {
    width: 19px;
    height: 19px;
}

.metric-icon.navy {
    color: var(--cyan);
    background: var(--cyan-soft);
}

.metric-icon.green {
    color: var(--green);
    background: rgba(33, 134, 83, 0.10);
}

.metric-icon.gold {
    color: #755800;
    background: rgba(214, 165, 20, 0.14);
}

.metric-icon.red {
    color: var(--coral);
    background: var(--coral-soft);
}

.registry-panel {
    padding: 0;
    overflow: visible;
}

.registry-toolbar {
    align-items: center;
    padding: 16px 18px;
    margin: 0;
    border-bottom: 1px solid var(--border);
}

.registry-filters {
    justify-content: flex-end;
    margin: 0;
}

.registry-filters select {
    min-width: 150px;
}

.search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 260px;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #fff;
}

.search-field:focus-within {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px var(--cyan-soft);
}

.search-field svg {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.search-field input {
    min-width: 0;
    width: 100%;
    padding: 9px 0;
    border: 0;
    box-shadow: none;
}

.filter-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--text-muted);
    background: #fff;
    font-size: 11px;
    font-weight: 600;
}

.filter-check input {
    width: 15px;
    height: 15px;
    padding: 0;
    accent-color: var(--coral);
}

.table-wrap {
    overflow-x: auto;
}

.registry-table {
    min-width: 920px;
}

.registry-table th:first-child,
.registry-table td:first-child {
    padding-left: 18px;
}

.registry-table th:last-child,
.registry-table td:last-child {
    padding-right: 18px;
}

.resident-cell,
.resident-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.resident-cell > span:last-child {
    display: grid;
    gap: 3px;
}

.resident-cell strong,
.account-number {
    color: var(--cyan);
    font-size: 12px;
    font-weight: 750;
}

.resident-cell small,
.cell-secondary {
    display: block;
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.35;
}

.cell-primary {
    display: block;
    color: var(--text);
    font-size: 12px;
}

.table-avatar,
.mini-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--cyan);
    background: var(--cyan-soft);
    font-size: 10px;
    font-weight: 800;
}

.mini-avatar {
    flex-basis: 27px;
    width: 27px;
    height: 27px;
}

.resident-inline {
    font-size: 11px;
    font-weight: 650;
}

.unassigned {
    color: var(--text-muted);
    font-size: 11px;
    font-style: italic;
}

.money {
    color: var(--text);
    font-variant-numeric: tabular-nums;
    font-weight: 650;
    white-space: nowrap;
}

.money-due {
    color: var(--coral);
}

.table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 8px 18px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 10px;
}

.table-footer .pagination {
    margin: 0;
}

.empty-state {
    display: grid;
    justify-items: center;
    gap: 7px;
    padding: 42px 20px;
    color: var(--text-muted);
    text-align: center;
}

.empty-state > svg {
    width: 30px;
    height: 30px;
    margin-bottom: 3px;
    color: var(--border-strong);
}

.empty-state strong {
    color: var(--text);
    font-size: 13px;
}

.empty-state span {
    font-size: 11px;
}

.empty-state .btn {
    margin-top: 8px;
}

.form-section-title {
    margin: 20px 0 12px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--border);
    color: var(--cyan);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.form-section-title:first-of-type {
    margin-top: 0;
}

.toggle-field {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    margin-top: 19px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--surface-2);
}

.toggle-field input {
    width: 18px;
    height: 18px;
    padding: 0;
    accent-color: var(--coral);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 11px;
}

.breadcrumbs svg {
    width: 13px;
    height: 13px;
}

.resident-profile-head,
.account-detail-head {
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.profile-heading-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-avatar.compact {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    margin: 0;
    box-shadow: none;
    font-size: 18px;
}

.profile-heading-main h1 {
    margin-bottom: 5px;
}

.profile-heading-main p,
.account-detail-head p {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
}

.dot-separator::before {
    content: "·";
    margin: 0 6px;
}

.resident-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(270px, 0.7fr);
    gap: 18px;
    margin-bottom: 18px;
}

.detail-list {
    margin: 0;
}

.detail-list > div {
    display: grid;
    grid-template-columns: minmax(125px, 0.55fr) 1fr;
    gap: 18px;
    align-items: center;
    min-height: 43px;
    border-bottom: 1px solid var(--border);
}

.detail-list > div:last-child {
    border-bottom: 0;
}

.detail-list dt {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 11px;
}

.detail-list dt svg {
    width: 14px;
    height: 14px;
}

.detail-list dd {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
}

.account-summary-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.summary-balance {
    margin: 8px 0 20px;
    color: var(--coral);
    font-size: 26px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.summary-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 18px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.summary-split > div {
    display: grid;
    gap: 3px;
    padding: 14px 0;
}

.summary-split > div + div {
    padding-left: 16px;
    border-left: 1px solid var(--border);
}

.summary-split strong {
    color: var(--text);
    font-size: 18px;
}

.summary-split span {
    color: var(--text-muted);
    font-size: 10px;
}

.account-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
    gap: 12px;
}

.account-card {
    display: grid;
    gap: 5px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    background: #fff;
}

.account-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 10px 24px rgba(23, 32, 51, 0.07);
}

.account-card-head,
.account-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.account-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 7px;
    color: var(--cyan);
    background: var(--cyan-soft);
}

.account-icon svg {
    width: 17px;
    height: 17px;
}

.account-card > strong {
    margin-top: 7px;
    color: var(--cyan);
    font-size: 15px;
}

.account-card > span:not(.account-card-head, .account-card-foot) {
    font-size: 11px;
}

.account-card > small {
    color: var(--text-muted);
    font-size: 10px;
}

.account-card-foot {
    margin-top: 11px;
    padding-top: 11px;
    border-top: 1px solid var(--border);
}

.account-card-foot > span {
    display: grid;
    gap: 3px;
}

.account-card-foot > span:last-child {
    text-align: right;
}

.account-card-foot small {
    color: var(--text-muted);
    font-size: 9px;
}

.account-card-foot b {
    color: var(--text);
    font-size: 11px;
}

.title-with-status {
    display: flex;
    align-items: center;
    gap: 11px;
}

.title-with-status h1 {
    margin-bottom: 6px;
}

.balance-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.balance-card {
    display: grid;
    gap: 6px;
    min-height: 125px;
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.balance-card span,
.balance-card small {
    color: var(--text-muted);
    font-size: 10px;
}

.balance-card strong {
    align-self: center;
    color: var(--text);
    font-size: 19px;
    font-variant-numeric: tabular-nums;
}

.balance-card.primary {
    color: #fff;
    background: var(--cyan);
    border-color: var(--cyan);
}

.balance-card.primary span,
.balance-card.primary small {
    color: rgba(255, 255, 255, 0.7);
}

.balance-card.primary strong {
    color: #fff;
}

.balance-card.arrears strong {
    color: var(--coral);
}

.balance-card .date-value {
    font-size: 17px;
}

.account-detail-grid,
.history-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.holder-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    background: var(--surface-2);
}

.holder-card > span:nth-child(2) {
    display: grid;
    flex: 1;
    gap: 3px;
}

.holder-card strong {
    color: var(--text);
    font-size: 13px;
}

.holder-card small {
    color: var(--text-muted);
    font-size: 10px;
}

.holder-card > svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.compact-empty {
    padding: 24px 15px;
}

.activity-list {
    display: grid;
}

.activity-row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
}

.activity-row:last-child {
    border-bottom: 0;
}

.activity-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 7px;
}

.activity-icon.bill {
    color: var(--cyan);
    background: var(--cyan-soft);
}

.activity-icon.payment {
    color: var(--green);
    background: rgba(33, 134, 83, 0.10);
}

.activity-icon svg {
    width: 16px;
    height: 16px;
}

.activity-row > span:nth-child(2),
.activity-amount {
    display: grid;
    gap: 3px;
}

.activity-row strong {
    color: var(--text);
    font-size: 11px;
}

.activity-row small:not(.badge) {
    color: var(--text-muted);
    font-size: 9px;
}

.activity-amount {
    justify-items: end;
}

.page-header,
.dashboard-hero {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 20px;
}

.dashboard-hero,
.module-hero {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(33, 237, 240, 0.10), transparent 46%),
        linear-gradient(90deg, rgba(255, 98, 84, 0.08), transparent 55%),
        rgba(18, 13, 44, 0.92);
    box-shadow: var(--shadow);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--cyan);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

h1,
h2,
p { margin-top: 0; }

h1 {
    margin-bottom: 8px;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.05;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 4px;
    font-size: 15px;
    letter-spacing: 0;
}

.page-header p,
.dashboard-hero p,
.panel-heading p {
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.header-actions {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.hero-total {
    min-width: 240px;
    padding: 18px;
    border-radius: 8px;
    background: rgba(7, 4, 23, 0.56);
    border: 1px solid var(--border);
}

.hero-total span,
.hero-total small {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
}

.hero-total strong {
    display: block;
    margin: 8px 0;
    color: var(--cyan);
    font-size: 28px;
}

.stats-grid,
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.stat-card,
.metric-card,
.panel,
.card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(18, 13, 44, 0.86);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.18);
}

.stat-card,
.metric-card {
    min-height: 120px;
    padding: 16px;
}

.label {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.value {
    margin-top: 8px;
    color: var(--text);
    font-size: 25px;
    font-weight: 800;
}

.trend {
    margin-top: 8px;
    color: var(--cyan);
    font-size: 12px;
}

.sparkline {
    height: 28px;
    margin-top: 12px;
    border-radius: 18px;
    background:
        linear-gradient(90deg, transparent 0 8%, var(--cyan) 8% 16%, transparent 16% 24%, var(--cyan) 24% 36%, transparent 36% 48%, var(--cyan) 48% 68%, transparent 68%),
        linear-gradient(180deg, transparent 46%, rgba(33, 237, 240, 0.22) 47% 52%, transparent 53%);
}

.sparkline.alt {
    background:
        linear-gradient(90deg, transparent 0 10%, var(--coral) 10% 18%, transparent 18% 32%, var(--coral) 32% 44%, transparent 44% 58%, var(--coral) 58% 76%, transparent 76%),
        linear-gradient(180deg, transparent 48%, rgba(255, 98, 84, 0.22) 49% 53%, transparent 54%);
}

.dashboard-grid,
.workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
}

.panel { padding: 18px; }
.panel-wide { min-width: 0; }

.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.module-activation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.module-pill {
    display: grid;
    gap: 7px;
    min-height: 138px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.035);
}

.module-pill:hover {
    border-color: var(--border-strong);
    background: rgba(33, 237, 240, 0.08);
}

.module-pill strong {
    color: var(--cyan);
    font-size: 25px;
}

.module-pill small {
    color: var(--text-muted);
    line-height: 1.35;
}

.module-pill em {
    width: max-content;
    padding: 4px 8px;
    border-radius: 999px;
    color: #fff;
    background: var(--coral-soft);
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.6px;
}

.health-list,
.flow-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.health-list li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.health-list li:last-child { border-bottom: 0; }
.health-list span { color: var(--text); font-size: 13px; }
.health-list strong { color: var(--green); font-size: 12px; }
.health-list small { grid-column: 1 / -1; color: var(--text-muted); }

.flow-list li {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
}

.flow-list span {
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--cyan-soft);
    color: var(--cyan);
    font-weight: 800;
}

.flow-list p {
    margin: 0;
    color: var(--text);
    font-size: 13px;
}

.mini-chart {
    display: flex;
    align-items: end;
    gap: 9px;
    height: 108px;
    margin-top: 18px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(7, 4, 23, 0.45);
}

.mini-chart span {
    flex: 1;
    min-width: 16px;
    border-radius: 5px 5px 0 0;
    background: linear-gradient(180deg, var(--cyan), var(--coral));
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
}

input,
select,
textarea {
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 9px 11px;
    color: var(--text);
    background: rgba(7, 4, 23, 0.54);
    font: inherit;
    outline: none;
}

textarea { resize: vertical; }

input:focus,
select:focus,
textarea:focus { border-color: var(--cyan); }

.filter-bar input,
.filter-bar select { min-width: 210px; }

.btn,
.icon-btn,
.link-btn {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.btn {
    min-height: 38px;
    padding: 9px 14px;
    border-radius: 7px;
    color: #fff;
    background: linear-gradient(135deg, var(--coral), #ff7a57);
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(255, 98, 84, 0.18);
}

.btn:hover { filter: brightness(1.08); }

.btn-secondary {
    color: var(--cyan);
    background: rgba(33, 237, 240, 0.08);
    border: 1px solid var(--border-strong);
    box-shadow: none;
}

.btn.compact {
    min-height: 30px;
    padding: 6px 10px;
}

.icon-btn {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.link-btn {
    padding: 0;
    color: var(--cyan);
    background: transparent;
    font-weight: 700;
}

table.data {
    width: 100%;
    border-collapse: collapse;
    color: var(--text);
    font-size: 13px;
}

table.data th,
table.data td {
    padding: 12px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

table.data thead th {
    color: #7780a5;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

table.data tbody tr:hover { background: rgba(33, 237, 240, 0.045); }

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(156, 164, 199, 0.24);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-PENDING,
.badge-SUBMITTED,
.badge-DRAFT,
.badge-REVIEW,
.badge-VALIDATING,
.badge-VALUATION_DUE,
.badge-KYC_PENDING,
.badge-WATCH,
.badge-DUE,
.badge-TESTING { background: rgba(255, 200, 87, 0.24); color: var(--gold); }

.badge-ACTIVE,
.badge-LIVE,
.badge-CONNECTED,
.badge-SUCCESS,
.badge-SUCCESSFUL,
.badge-READY,
.badge-PASSED,
.badge-PUBLISHED,
.badge-VALIDATED,
.badge-COMPLETED,
.badge-ON_TRACK,
.badge-APPROVED { background: rgba(55, 216, 137, 0.18); color: var(--green); }

.badge-IN_PROGRESS,
.badge-ASSIGNED,
.badge-RUNNING,
.badge-ROUTED,
.badge-SCHEDULED,
.badge-MATCHING,
.badge-INSPECTION,
.badge-SENT,
.badge-BETA,
.badge-SANDBOX,
.badge-QUEUED,
.badge-PLANNED { background: rgba(33, 237, 240, 0.15); color: var(--cyan); }

.badge-FAILED,
.badge-OVERDUE,
.badge-REJECTED,
.badge-SLA_RISK,
.badge-OVERRUN,
.badge-FLAGGED,
.badge-ALERT,
.badge-LOCKED { background: rgba(255, 78, 114, 0.18); color: var(--danger); }

.badge-ON_HOLD,
.badge-ARCHIVED,
.badge-CLOSED,
.badge-PARTIALLY_PAID,
.badge-RETRY,
.badge-MONITORING { background: rgba(141, 124, 255, 0.18); color: #b9b0ff; }

.modal {
    width: min(760px, calc(100vw - 32px));
    padding: 0;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    color: var(--text);
    background: transparent;
    box-shadow: var(--shadow);
}

.modal::backdrop {
    background: rgba(3, 2, 12, 0.72);
    backdrop-filter: blur(4px);
}

.modal-card {
    padding: 20px;
    background: var(--surface);
}

.modal-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.modal-head h2 { font-size: 22px; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-grid label {
    display: grid;
    gap: 7px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.span-2 { grid-column: 1 / -1; }

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.card {
    padding: 18px;
    margin-bottom: 20px;
}

.pagination {
    display: flex;
    gap: 4px;
    margin-top: 12px;
    list-style: none;
    padding: 0;
}

.pagination a {
    display: grid;
    place-items: center;
    min-width: 32px;
    min-height: 32px;
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--cyan);
    background: rgba(255, 255, 255, 0.04);
    font-size: 13px;
}

.chat-panel { min-height: 520px; }
.chat-stream { display: grid; gap: 12px; max-width: 900px; margin: 0 auto; }
.chat-message { width: min(76%, 620px); padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; white-space: pre-wrap; line-height: 1.5; }
.chat-message.incoming { justify-self: start; background: rgba(255,255,255,.05); }
.chat-message.outgoing { justify-self: end; background: rgba(33,237,240,.10); border-color: var(--border-strong); }
.chat-message small { display: block; margin-top: 7px; color: var(--text-muted); font-size: 10px; text-transform: uppercase; }

.pagination a.active {
    color: #fff;
    background: var(--coral);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(33, 237, 240, 0.22), transparent 34%),
        radial-gradient(circle at 72% 20%, rgba(255, 98, 84, 0.18), transparent 30%),
        var(--bg);
}

.login-card {
    width: 390px;
    max-width: 92vw;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(18, 13, 44, 0.96);
    box-shadow: var(--shadow);
}

.login-card h1 { margin-bottom: 6px; color: var(--text); }
.login-card p.subtitle { margin-bottom: 22px; color: var(--text-muted); font-size: 14px; }
.login-card label { display: block; margin: 12px 0 5px; color: var(--text-muted); font-size: 13px; }
.login-card input { width: 100%; }
.login-card .btn { width: 100%; margin-top: 16px; }
.login-card .error { color: var(--danger); font-size: 13px; margin-top: 8px; }

@media (max-width: 1100px) {
    .dashboard-grid,
    .workspace-grid { grid-template-columns: 1fr; }
    .global-search { display: none; }
    .user-identity { display: none; }
    .avatar-trigger { min-width: 46px; }
    .registry-stats,
    .balance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .registry-toolbar { align-items: flex-start; flex-direction: column; }
    .registry-filters { justify-content: flex-start; width: 100%; }
}

@media (max-width: 900px) {
    :root { --sidebar-w: 0px; }
    .admin-sidebar { display: none; }
    .admin-content { left: 0; padding: 18px; }
    .dashboard-hero,
    .page-header { flex-direction: column; }
    .hero-total { min-width: 0; }
    .form-grid { grid-template-columns: 1fr; }
    .profile-layout { grid-template-columns: 1fr; }
    .profile-summary { text-align: left; }
    .profile-avatar { margin-left: 0; }
    .resident-detail-grid,
    .account-detail-grid,
    .history-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .admin-navbar {
        gap: 8px;
        padding: 0 12px;
    }
    .brand {
        min-width: 0;
    }
    .brand > span {
        display: none;
    }
    .topnav-action-text {
        width: 40px;
        padding: 0;
    }
    .topnav-action-text > span,
    .topnav-action-text .chevron {
        display: none;
    }
    .quick-actions-dropdown,
    .notifications-dropdown {
        position: fixed;
        top: calc(var(--navbar-h) - 1px);
        right: 10px;
        left: 10px;
        width: auto;
    }
    .profile-form { grid-template-columns: 1fr; }
    .quick-action-grid { grid-template-columns: 1fr; }
    .registry-stats,
    .balance-grid { grid-template-columns: 1fr; }
    .registry-filters { display: grid; grid-template-columns: 1fr; }
    .registry-filters > * { width: 100%; min-width: 0; }
    .registry-filters .icon-btn { width: 38px; }
    .resident-profile-head,
    .account-detail-head { align-items: flex-start; }
    .profile-heading-main { align-items: flex-start; }
    .header-actions { flex-wrap: wrap; width: 100%; }
}

/* Crest-inspired light theme */
html,
body {
    background: var(--bg);
}

a:hover { color: var(--coral); }

.admin-navbar,
.admin-sidebar,
.admin-footer {
    background: #fff;
}

.admin-navbar { box-shadow: 0 1px 0 var(--border); }

.global-search,
.nav-group,
.icon-btn,
.hero-total,
.mini-chart,
.pagination a {
    background: var(--surface-2);
}

.nav-group {
    border-color: var(--border);
}

.nav-group-title { color: #7a8495; }

.menu a:hover,
.module-pill:hover,
.btn-secondary {
    background: var(--cyan-soft);
}

.menu a.active,
.btn,
.pagination a.active {
    color: #fff;
    background: var(--coral);
    box-shadow: 0 8px 20px rgba(207, 36, 40, 0.16);
}

.dashboard-hero,
.module-hero {
    background:
        linear-gradient(135deg, rgba(23, 37, 90, 0.055), transparent 48%),
        linear-gradient(90deg, rgba(207, 36, 40, 0.035), transparent 60%),
        #fff;
}

.stat-card,
.metric-card,
.panel,
.card,
.module-pill {
    background: #fff;
    box-shadow: 0 10px 28px rgba(23, 32, 51, 0.055);
}

input,
select,
textarea {
    color: var(--text);
    background: #fff;
}

.modal::backdrop {
    background: rgba(23, 32, 51, 0.44);
}

table.data thead th { color: #697386; }
table.data tbody tr:hover { background: rgba(23, 37, 90, 0.035); }

.badge {
    color: var(--text);
    background: var(--surface-3);
}

.badge-PENDING,
.badge-SUBMITTED,
.badge-DRAFT,
.badge-REVIEW,
.badge-VALIDATING,
.badge-VALUATION_DUE,
.badge-KYC_PENDING,
.badge-WATCH,
.badge-DUE,
.badge-TESTING {
    color: #755800;
    background: rgba(214, 165, 20, 0.16);
}

.badge-IN_PROGRESS,
.badge-ASSIGNED,
.badge-RUNNING,
.badge-ROUTED,
.badge-SCHEDULED,
.badge-MATCHING,
.badge-INSPECTION,
.badge-SENT,
.badge-BETA,
.badge-SANDBOX,
.badge-QUEUED,
.badge-PLANNED {
    color: var(--cyan);
    background: var(--cyan-soft);
}

/* Minimal login and preloader */
.login-page {
    overflow: auto;
    background: #fff;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
    background:
        linear-gradient(90deg, var(--coral) 0 5px, transparent 5px),
        #fff;
}

.login-card {
    width: 420px;
    max-width: 100%;
    padding: 28px 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.login-brand img {
    width: 82px;
    height: 96px;
    object-fit: contain;
}

.login-kicker {
    display: block;
    margin-top: 12px;
    margin-bottom: 5px;
    color: var(--coral);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.login-card .login-brand h1 {
    margin: 0;
    color: var(--cyan);
    font-size: 23px;
}

.login-brand p {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 12px;
}

.login-intro {
    padding: 32px 0 12px;
    text-align: center;
}

.login-intro h2 {
    margin-bottom: 7px;
    color: var(--text);
    font-size: 25px;
}

.login-intro p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.login-field-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.login-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 54px;
    margin-top: 14px;
    padding: 0 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-2);
}

.login-input-wrap:focus-within {
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(207, 36, 40, 0.09);
}

.login-input-wrap > svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    color: #5e5052;
}

.login-card .login-input-wrap input {
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--text);
    font-size: 14px;
}

.login-card .login-input-wrap input::placeholder {
    color: var(--text-muted);
}

.password-toggle {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    color: #5e5052;
    background: transparent;
    cursor: pointer;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.login-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 20px;
    border-radius: 8px;
    background: var(--coral);
}

.button-spinner {
    display: none;
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.is-loading .button-label { display: none; }
.is-loading .button-spinner { display: inline-block; }

.login-message {
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.login-message.error {
    color: var(--danger);
    background: rgba(198, 40, 40, 0.07);
}

.login-message.success {
    color: var(--green);
    background: rgba(33, 134, 83, 0.07);
}

.login-card footer {
    margin-top: 30px;
    color: var(--text-muted);
    font-size: 11px;
    text-align: center;
}

.page-preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: #fff;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.page-preloader img {
    width: 88px;
    height: 100px;
    object-fit: contain;
}

.preloader-ring {
    position: absolute;
    width: 122px;
    height: 122px;
    border: 3px solid rgba(23, 37, 90, 0.10);
    border-top-color: var(--coral);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

.page-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 520px) {
    .login-card { padding: 24px 20px; }
    .login-shell { padding: 18px 8px; }
}
