:root {
    --bg: #f3eee4;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: rgba(255, 255, 255, 0.98);
    --surface-muted: rgba(247, 241, 232, 0.72);
    --border: rgba(31, 51, 62, 0.1);
    --text: #17303b;
    --muted: #61737c;
    --primary: #0f7a78;
    --primary-dark: #0b5a58;
    --primary-soft: rgba(15, 122, 120, 0.1);
    --accent: #c87a37;
    --accent-soft: rgba(200, 122, 55, 0.12);
    --warning: #e6a748;
    --danger: #b34747;
    --success: #24755d;
    --shadow: 0 24px 70px rgba(24, 49, 59, 0.12);
    --shadow-soft: 0 14px 36px rgba(24, 49, 59, 0.08);
    --radius: 28px;
    --radius-small: 16px;
    --font-body: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
    --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(209, 123, 56, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(15, 122, 120, 0.18), transparent 24%),
        linear-gradient(180deg, #fbf7f0 0%, var(--bg) 100%);
    background-attachment: fixed;
}

body {
    padding: 24px;
    position: relative;
    overflow-x: hidden;
}

body.theme-admin {
    background:
        linear-gradient(180deg, #f3f6fa 0%, #edf2f7 100%);
}

body.theme-admin::before,
body.theme-admin::after {
    content: none;
}

body.is-modal-open {
    overflow: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    pointer-events: none;
    z-index: -1;
    border-radius: 999px;
    filter: blur(14px);
}

body::before {
    width: 280px;
    height: 280px;
    top: 8%;
    left: -80px;
    background: rgba(255, 214, 173, 0.28);
}

body::after {
    width: 340px;
    height: 340px;
    right: -110px;
    bottom: 12%;
    background: rgba(124, 196, 192, 0.16);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.shell {
    max-width: 1200px;
    margin: 0 auto;
}

.shell--admin {
    max-width: 1440px;
}

.login-screen {
    min-height: calc(100vh - 48px);
    display: grid;
    place-items: center;
    position: relative;
}

.login-card,
.card {
    background: var(--surface);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.login-card::before,
.card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(200, 122, 55, 0.9), rgba(15, 122, 120, 0.9), rgba(36, 117, 93, 0.8));
    z-index: -1;
}

.login-card::after,
.card::after {
    content: "";
    position: absolute;
    inset: auto -80px -120px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 122, 120, 0.08), transparent 70%);
    z-index: -1;
}

.login-card {
    width: min(100%, 520px);
    padding: 36px;
}

.login-helper {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

.login-helper__link {
    color: var(--primary);
    font-weight: 700;
}

.login-helper__link:hover {
    color: var(--primary-dark);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}

.brand-mark__line {
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
}

.brand-mark p {
    font-family: var(--font-display);
    font-size: 1.15rem;
}

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

h1 {
    margin-bottom: 8px;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.3rem);
    letter-spacing: -0.03em;
    line-height: 1;
}

h2 {
    margin-bottom: 0;
    font-family: var(--font-display);
    font-size: 1.55rem;
    letter-spacing: -0.02em;
}

h3 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

.muted {
    color: var(--muted);
    line-height: 1.65;
}

.eyebrow {
    margin-bottom: 6px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 700;
}

.stack-form,
.grid-form {
    display: grid;
    gap: 18px;
}

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

.compact-form {
    align-items: end;
}

label {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

label span {
    font-size: 0.83rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #52656d;
}

.required-mark {
    color: var(--danger);
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(24, 49, 59, 0.16);
    background: rgba(255, 255, 255, 0.94);
    border-radius: 14px;
    padding: 15px 16px;
    color: var(--text);
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease, background 140ms ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(15, 122, 120, 0.5);
    box-shadow: 0 0 0 4px rgba(15, 122, 120, 0.12), 0 10px 22px rgba(15, 122, 120, 0.08);
    background: white;
}

textarea {
    resize: vertical;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 14px;
    padding: 13px 18px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: var(--shadow-soft);
    transition: transform 140ms ease, opacity 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(24, 49, 59, 0.12);
}

.button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.button--primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.button--secondary {
    background: linear-gradient(135deg, rgba(215, 143, 83, 0.18), rgba(200, 122, 55, 0.1));
    color: #8a4f1f;
}

.button--ghost {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(24, 49, 59, 0.08);
    color: var(--text);
}

.button--small {
    padding: 10px 14px;
    font-size: 0.88rem;
}

.app-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.theme-user .app-header {
    padding: 28px 30px;
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(250, 245, 237, 0.86)),
        linear-gradient(135deg, rgba(15, 122, 120, 0.08), rgba(200, 122, 55, 0.08));
    border: 1px solid rgba(24, 49, 59, 0.08);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.theme-user .app-header h1 {
    margin-bottom: 0;
}

.app-header__identity {
    min-width: 0;
    flex: 1 1 auto;
    display: grid;
    gap: 8px;
}

.app-header__eyebrow {
    margin-bottom: 0;
}

.app-header__headline {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.app-header__headline h1,
.app-header__status {
    margin: 0;
}

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

.profile-menu {
    position: relative;
}

.profile-menu summary {
    list-style: none;
}

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

.profile-menu__button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}

.profile-menu__avatar {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 18px 28px rgba(24, 49, 59, 0.16);
}

.profile-menu__dot {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: var(--warning);
}

.profile-menu__content {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: min(260px, 82vw);
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(24, 49, 59, 0.12);
    box-shadow: 0 28px 48px rgba(24, 49, 59, 0.16);
    z-index: 20;
}

.profile-menu__identity {
    display: grid;
    gap: 4px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(24, 49, 59, 0.08);
}

.profile-menu__identity span {
    color: var(--muted);
    font-size: 0.9rem;
    word-break: break-word;
}

.profile-menu__link {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text);
    font-weight: 700;
}

.profile-menu__link:hover,
.profile-menu__link.is-active {
    background: rgba(15, 122, 120, 0.08);
    color: var(--primary);
}

.profile-menu__action {
    margin: 0;
}

.profile-menu__action-button {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(15, 122, 120, 0.08);
    color: var(--primary);
    text-align: left;
    font-weight: 700;
    cursor: pointer;
}

.profile-menu__action-button:hover {
    background: rgba(15, 122, 120, 0.14);
}

.profile-menu__logout {
    margin: 0;
}

.profile-menu__logout-button {
    width: 100%;
}

.profile-page__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-page__nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 128px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(24, 49, 59, 0.08);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    font-weight: 700;
    transition: transform 140ms ease, background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.profile-page__nav-link:hover,
.profile-page__nav-link.is-active {
    transform: translateY(-1px);
    background: rgba(15, 122, 120, 0.1);
    border-color: rgba(15, 122, 120, 0.14);
    color: var(--primary);
}

.profile-password__actions {
    margin-bottom: 18px;
}

.profile-inline-form {
    margin: 0;
}

.dashboard {
    display: grid;
    gap: 20px;
    padding-bottom: 98px;
}

.mobile-dashboard {
    gap: 18px;
}

.card {
    padding: 26px;
}

.card--highlight {
    background:
        linear-gradient(135deg, rgba(15, 122, 120, 0.08), rgba(209, 123, 56, 0.08)),
        var(--surface);
}

.card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.user-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.user-stat-card {
    display: grid;
    gap: 10px;
    padding: 22px 22px 20px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 243, 235, 0.84));
    border: 1px solid rgba(24, 49, 59, 0.08);
    box-shadow: var(--shadow-soft);
}

.user-stat-card__label {
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
}

.user-stat-card__value {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.05;
}

.user-stat-card__note {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.55;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(24, 49, 59, 0.08);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 700;
}

.status-badge--success {
    background: rgba(36, 117, 93, 0.12);
    color: var(--success);
}

.status-badge--warning {
    background: rgba(230, 167, 72, 0.18);
    color: #9b5f14;
}

.status-badge--neutral {
    background: rgba(100, 116, 139, 0.12);
    color: #475569;
}

.loan-dashboard-card {
    margin-top: 20px;
}

.loan-dashboard-card--highlight {
    border-color: rgba(37, 99, 235, 0.14);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(242, 248, 255, 0.95)),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 42%);
}

.loan-highlight {
    display: grid;
    gap: 18px;
    padding: 20px 22px;
    border-radius: 22px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.09), transparent 40%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.96));
}

.loan-highlight__label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.loan-highlight__value {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    letter-spacing: -0.04em;
}

.loan-highlight__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.loan-highlight__meta > div {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.loan-highlight__meta span {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.loan-highlight__meta strong {
    color: var(--text);
}

.alert {
    padding: 15px 17px;
    border-radius: var(--radius-small);
    margin-bottom: 18px;
    border: 1px solid transparent;
    box-shadow: var(--shadow-soft);
}

.alert p:last-child {
    margin-bottom: 0;
}

.alert--success {
    background: rgba(36, 117, 93, 0.12);
    border-color: rgba(36, 117, 93, 0.18);
    color: var(--success);
}

.alert--warning {
    background: rgba(230, 167, 72, 0.16);
    border-color: rgba(230, 167, 72, 0.24);
    color: #8f5712;
}

.alert--error {
    background: rgba(179, 71, 71, 0.1);
    border-color: rgba(179, 71, 71, 0.18);
    color: var(--danger);
}

.section-title {
    grid-column: 1 / -1;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    padding-top: 10px;
}

.section-title--tight {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.reference-table {
    display: grid;
    gap: 12px;
}

.reference-table__header,
.reference-row {
    display: grid;
    gap: 14px;
    grid-template-columns: 140px minmax(180px, 1fr) minmax(160px, 1fr) minmax(200px, 1fr) minmax(220px, 1.2fr);
}

.reference-table__header {
    padding: 0 10px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.reference-list {
    display: grid;
    gap: 12px;
}

.reference-row {
    align-items: start;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(24, 49, 59, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.reference-row label {
    margin: 0;
}

.reference-row__meta {
    display: grid;
    gap: 10px;
    align-self: center;
}

.reference-row__title {
    align-self: center;
    font-weight: 800;
    color: var(--text);
}

.reference-row__remove {
    justify-self: start;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 500;
}

.checkbox-row input {
    width: auto;
    margin-top: 3px;
}

.table-wrap {
    overflow-x: auto;
    border-radius: 20px;
}

.payment-hero {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

.payment-hero__qr,
.payment-qr-preview {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(24, 49, 59, 0.08);
    box-shadow: var(--shadow-soft);
}

.payment-hero__qr {
    appearance: none;
    display: block;
    width: 100%;
    cursor: zoom-in;
    text-align: center;
    font: inherit;
}

.payment-hero__qr:focus-visible {
    outline: 3px solid rgba(79, 104, 236, 0.35);
    outline-offset: 4px;
}

.payment-hero__qr img,
.payment-qr-preview img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.payment-hero__zoom-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(79, 104, 236, 0.08);
    color: #4f68ec;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.payment-hero__content {
    display: grid;
    gap: 10px;
}

.payment-hero__content h3 {
    margin-bottom: 0;
}

body.is-qr-lightbox-open,
body.is-admin-overlay-open {
    overflow: hidden;
}

.payment-qr-lightbox[hidden] {
    display: none !important;
}

.payment-qr-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 24px;
}

.payment-qr-lightbox__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(9, 18, 23, 0.8);
    cursor: pointer;
}

.payment-qr-lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 720px);
    padding: 18px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 80px rgba(9, 18, 23, 0.28);
    display: grid;
    gap: 14px;
}

.payment-qr-lightbox__close {
    justify-self: end;
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(24, 49, 59, 0.08);
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.payment-qr-lightbox__image {
    display: block;
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 20px;
    background: #fff;
}

table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.92rem;
    line-height: 1.4;
}

th,
td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid rgba(24, 49, 59, 0.08);
    vertical-align: top;
}

th {
    color: #5d6f78;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: rgba(248, 250, 252, 0.92);
}

tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.26);
}

tbody tr:hover {
    background: rgba(15, 122, 120, 0.05);
}

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

.detail-grid > div {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(24, 49, 59, 0.035);
    border: 1px solid rgba(24, 49, 59, 0.06);
}

.subsection {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(24, 49, 59, 0.08);
}

.tab-panels {
    display: grid;
    gap: 20px;
}

.tab-panel {
    display: none;
}

.tab-panel.is-active {
    display: grid;
    gap: 20px;
}

.mobile-tabbar {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: min(100%, 560px);
    padding: 10px;
    background: rgba(18, 34, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 22px 48px rgba(24, 49, 59, 0.26);
    backdrop-filter: blur(16px);
}

.mobile-tabbar--triple {
    grid-template-columns: repeat(3, 1fr);
}

.mobile-tabbar a {
    text-align: center;
    padding: 14px 12px;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 700;
}

.mobile-tabbar a.is-active {
    background: linear-gradient(135deg, rgba(209, 123, 56, 0.95), rgba(15, 122, 120, 0.95));
    color: white;
}

.admin-shell {
    display: grid;
    grid-template-columns: 286px minmax(0, 1fr);
    gap: 24px;
    min-height: calc(100vh - 48px);
}

.admin-sidebar {
    position: sticky;
    top: 24px;
    height: calc(100vh - 48px);
    display: grid;
    align-content: start;
    gap: 22px;
    padding: 24px 18px 18px;
    overflow: auto;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid #e4ebf5;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
}

.admin-sidebar__brand {
    display: grid;
    gap: 12px;
}

.admin-sidebar__brand-mark {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.admin-sidebar__logo {
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    color: #eff6ff;
    font-weight: 800;
    letter-spacing: 0.05em;
    box-shadow: 0 16px 26px rgba(37, 99, 235, 0.22);
}

.admin-sidebar__brand h2 {
    font-family: var(--font-body);
    font-size: 1.16rem;
    margin-bottom: 6px;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.admin-sidebar__brand p:last-child {
    margin-bottom: 0;
    color: #64748b;
    line-height: 1.55;
}

.admin-sidebar__overline,
.admin-sidebar__section-title,
.admin-sidebar__label,
.admin-topbar__chip-label,
.admin-overview-card__label,
.metric-card__label,
.admin-user-kpi__label,
.admin-user-meta > div span {
    color: #8b9bb2;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.admin-sidebar__section {
    display: grid;
    gap: 12px;
}

.admin-sidebar__section-title {
    padding-inline: 10px;
}

.admin-sidebar__nav {
    display: grid;
    gap: 8px;
}

.admin-sidebar__link {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 16px;
    border: 1px solid transparent;
    color: #475569;
    transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.admin-sidebar__link:hover {
    transform: translateY(-1px);
    background: #f8fbff;
    border-color: #e6eef8;
}

.admin-sidebar__link.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #4c9cff, #3182f6);
    border-color: transparent;
    box-shadow: 0 18px 28px rgba(76, 156, 255, 0.24);
}

.admin-sidebar__icon {
    position: relative;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #f3f7fc;
    overflow: hidden;
}

.admin-sidebar__icon::before,
.admin-sidebar__icon::after {
    content: "";
    position: absolute;
}

.admin-sidebar__icon--applications::before {
    inset: 10px 11px 18px;
    background: #8b9bb2;
    border-radius: 4px;
    box-shadow: 0 8px 0 #8b9bb2, 0 16px 0 #8b9bb2;
}

.admin-sidebar__icon--references::before {
    left: 10px;
    top: 11px;
    width: 20px;
    height: 14px;
    border: 2px solid #8b9bb2;
    border-radius: 8px;
}

.admin-sidebar__icon--references::after {
    left: 16px;
    top: 16px;
    width: 8px;
    height: 4px;
    background: #8b9bb2;
    border-radius: 999px;
}

.admin-sidebar__icon--users::before {
    left: 10px;
    top: 11px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8b9bb2;
    box-shadow: 12px 0 0 #8b9bb2;
}

.admin-sidebar__icon--users::after {
    left: 8px;
    bottom: 10px;
    width: 22px;
    height: 8px;
    border-radius: 999px 999px 6px 6px;
    border: 2px solid #8b9bb2;
    border-top: 0;
}

.admin-sidebar__text {
    display: grid;
    gap: 3px;
}

.admin-sidebar__text strong {
    font-size: 0.96rem;
}

.admin-sidebar__text small {
    color: #8b9bb2;
    font-size: 0.8rem;
}

.admin-sidebar__count {
    min-width: 30px;
    padding: 6px 9px;
    border-radius: 999px;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: #64748b;
    background: #f3f7fc;
}

.admin-sidebar__link.is-active .admin-sidebar__icon,
.admin-sidebar__link.is-active .admin-sidebar__count {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.admin-sidebar__link.is-active .admin-sidebar__text small {
    color: rgba(255, 255, 255, 0.82);
}

.admin-sidebar__link.is-active .admin-sidebar__icon--applications::before,
.admin-sidebar__link.is-active .admin-sidebar__icon--references::before,
.admin-sidebar__link.is-active .admin-sidebar__icon--references::after,
.admin-sidebar__link.is-active .admin-sidebar__icon--users::before,
.admin-sidebar__link.is-active .admin-sidebar__icon--users::after {
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 8px 0 #ffffff, 0 16px 0 #ffffff;
}

.admin-sidebar__link.is-active .admin-sidebar__icon--references::before {
    box-shadow: none;
}

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

.admin-sidebar__summary-card,
.admin-sidebar__support,
.admin-sidebar__footer {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid #e6eef8;
}

.admin-sidebar__summary-card strong,
.admin-sidebar__support strong {
    font-size: 1.35rem;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.admin-sidebar__summary-card span,
.admin-sidebar__support p,
.admin-sidebar__footer span:last-child {
    color: #64748b;
    margin-bottom: 0;
}

.admin-sidebar__footer {
    margin-top: auto;
    background: linear-gradient(180deg, #f8fbff 0%, #f5f8fc 100%);
}

.admin-main {
    display: grid;
    align-content: start;
    gap: 18px;
}

.admin-topbar {
    position: sticky;
    top: 24px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e4ebf5;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(16px);
}

.admin-topbar__left,
.admin-topbar__right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-topbar__right {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-topbar__breadcrumb {
    margin-bottom: 8px;
    color: #7b8ca5;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.admin-icon-button {
    position: relative;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dfe7f1;
    border-radius: 14px;
    background: #ffffff;
    color: #64748b;
    cursor: pointer;
    transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.admin-icon-button:hover {
    transform: translateY(-1px);
    background: #f8fbff;
    border-color: #d1dced;
}

.admin-icon-button__badge {
    position: absolute;
    top: -4px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border-radius: 999px;
    background: #fb7185;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
}

.admin-icon {
    position: relative;
    display: block;
    width: 18px;
    height: 18px;
}

.admin-icon--menu::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 3px;
    width: 14px;
    height: 2px;
    background: #7b8ca5;
    box-shadow: 0 5px 0 #7b8ca5, 0 10px 0 #7b8ca5;
}

.admin-icon--grid::before {
    content: "";
    position: absolute;
    inset: 2px;
    background:
        linear-gradient(#8b9bb2 0 0) 0 0 / 5px 5px no-repeat,
        linear-gradient(#8b9bb2 0 0) 100% 0 / 5px 5px no-repeat,
        linear-gradient(#8b9bb2 0 0) 0 100% / 5px 5px no-repeat,
        linear-gradient(#8b9bb2 0 0) 100% 100% / 5px 5px no-repeat;
}

.admin-icon--search::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 2px;
    width: 10px;
    height: 10px;
    border: 2px solid #8b9bb2;
    border-radius: 50%;
}

.admin-icon--search::after {
    content: "";
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: 6px;
    height: 2px;
    background: #8b9bb2;
    transform: rotate(45deg);
    transform-origin: center;
}

.admin-icon--moon::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 4px 0 0 0 #8b9bb2;
}

.admin-icon--bell::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 2px;
    width: 10px;
    height: 11px;
    border: 2px solid #8b9bb2;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.admin-icon--bell::after {
    content: "";
    position: absolute;
    left: 5px;
    bottom: 2px;
    width: 8px;
    height: 2px;
    background: #8b9bb2;
    box-shadow: 3px 4px 0 -1px #8b9bb2;
}

.admin-search {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 290px;
    height: 44px;
    padding: 0 15px;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid #e4ebf5;
}

.admin-search input {
    border: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 600;
}

.admin-search input:focus {
    box-shadow: none;
}

.admin-topbar__chip {
    display: grid;
    gap: 4px;
    padding: 11px 14px;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid #e4ebf5;
}

.admin-topbar__chip strong {
    color: #0f172a;
}

.admin-topbar__profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid #e4ebf5;
}

.admin-topbar__profile div {
    display: grid;
    gap: 4px;
}

.admin-topbar__profile span:last-child {
    color: #64748b;
    font-size: 0.88rem;
}

.admin-topbar__avatar {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.admin-topbar__logout {
    min-height: 44px;
    padding-inline: 18px;
}

.admin-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.72fr);
    gap: 18px;
}

.admin-overview-card,
.admin-overview-side__card,
.metric-card,
.admin-card {
    background: #ffffff;
    border: 1px solid #e4ebf5;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

.admin-overview-card {
    display: grid;
    gap: 24px;
    padding: 28px;
    border-radius: 30px;
}

.admin-overview-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.admin-overview-card__header h1 {
    margin-bottom: 10px;
    font-family: var(--font-body);
    font-size: clamp(2rem, 3vw, 2.5rem);
    letter-spacing: -0.04em;
    color: #0f172a;
}

.admin-overview-card__header .muted {
    max-width: 680px;
}

.admin-overview-card__tabs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: #f5f8fd;
    border: 1px solid #e6eef8;
}

.admin-overview-card__tabs span {
    padding: 10px 14px;
    border-radius: 999px;
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 700;
}

.admin-overview-card__tabs .is-active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.admin-overview-card__body {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
    gap: 24px;
    align-items: end;
}

.admin-overview-card__summary {
    display: grid;
    gap: 14px;
}

.admin-overview-card__value {
    font-size: clamp(2.7rem, 6vw, 4rem);
    line-height: 0.95;
    color: #0f172a;
    letter-spacing: -0.05em;
}

.admin-overview-card__note {
    margin-bottom: 0;
    color: #64748b;
    line-height: 1.6;
}

.admin-overview-card__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.admin-overview-mini-stat {
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid #e6eef8;
}

.admin-overview-mini-stat span {
    color: #7b8ca5;
    font-size: 0.8rem;
    font-weight: 700;
}

.admin-overview-mini-stat strong {
    font-size: 1.35rem;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.admin-overview-card__visual {
    min-width: 0;
}

.admin-overview-chart {
    position: relative;
    min-height: 308px;
    display: grid;
    align-items: end;
    padding: 24px 18px 18px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 0.98)),
        linear-gradient(135deg, rgba(76, 156, 255, 0.12), rgba(56, 189, 248, 0.08));
    border: 1px solid #dbeafe;
    overflow: hidden;
}

.admin-overview-chart::before {
    content: "";
    position: absolute;
    inset: 24px 18px 60px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px) 0 0 / 100% 25%,
        linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px) 0 0 / 20% 100%;
}

.admin-overview-chart__lines {
    position: absolute;
    inset: 42px 28px 78px;
    pointer-events: none;
}

.admin-overview-chart__line {
    position: absolute;
    left: 0;
    right: 0;
    height: 120px;
    border-radius: 999px;
    opacity: 0.6;
}

.admin-overview-chart__line--primary {
    bottom: 18px;
    background:
        linear-gradient(120deg,
            transparent 0 10%,
            #4c9cff 10.5% 12.5%,
            transparent 13% 28%,
            #4c9cff 28.5% 30.5%,
            transparent 31% 49%,
            #4c9cff 49.5% 51.5%,
            transparent 52% 70%,
            #4c9cff 70.5% 72.5%,
            transparent 73%);
}

.admin-overview-chart__line--secondary {
    bottom: 44px;
    background:
        linear-gradient(110deg,
            transparent 0 8%,
            rgba(148, 163, 184, 0.75) 8.5% 10.5%,
            transparent 11% 26%,
            rgba(148, 163, 184, 0.75) 26.5% 28.5%,
            transparent 29% 47%,
            rgba(148, 163, 184, 0.75) 47.5% 49.5%,
            transparent 50% 68%,
            rgba(148, 163, 184, 0.75) 68.5% 70.5%,
            transparent 71%);
}

.admin-overview-chart__bars {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
    min-height: 210px;
}

.admin-overview-chart__bars span {
    display: block;
    width: 100%;
    height: var(--bar-height);
    border-radius: 999px 999px 14px 14px;
    background: linear-gradient(180deg, rgba(76, 156, 255, 0.94), rgba(76, 156, 255, 0.32));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.admin-overview-chart__bars span:nth-child(even) {
    background: linear-gradient(180deg, rgba(203, 213, 225, 0.92), rgba(226, 232, 240, 0.42));
}

.admin-overview-chart__labels {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    margin-top: 14px;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
}

.admin-overview-side {
    display: grid;
    gap: 14px;
}

.admin-overview-side__card {
    display: grid;
    gap: 10px;
    padding: 22px;
    border-radius: 26px;
}

.admin-overview-side__label {
    color: #7b8ca5;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.admin-overview-side__value {
    font-size: clamp(2rem, 4vw, 2.7rem);
    line-height: 1;
    color: #0f172a;
    letter-spacing: -0.05em;
}

.admin-overview-side__card p {
    margin-bottom: 0;
    color: #64748b;
    line-height: 1.6;
}

.admin-overview-side__card:nth-child(1) {
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.admin-overview-side__card:nth-child(2) {
    background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 100%);
}

.admin-overview-side__card:nth-child(3) {
    background: linear-gradient(180deg, #ecfeff 0%, #ffffff 100%);
}

.admin-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.metric-card {
    display: grid;
    gap: 12px;
    min-height: 220px;
    padding: 22px;
    border-radius: 28px;
    overflow: hidden;
}

.metric-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.metric-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(76, 156, 255, 0.16);
}

.metric-card__menu {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #8b9bb2;
    box-shadow: 0 -7px 0 #8b9bb2, 0 7px 0 #8b9bb2;
}

.metric-card__value {
    font-size: clamp(2rem, 4vw, 2.9rem);
    line-height: 0.95;
    color: #0f172a;
    letter-spacing: -0.05em;
}

.metric-card__note {
    margin-bottom: 0;
    color: #64748b;
    line-height: 1.55;
}

.metric-card__spark {
    align-self: end;
    display: flex;
    align-items: end;
    gap: 10px;
    min-height: 68px;
    margin-top: auto;
}

.metric-card__spark span {
    flex: 1;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(76, 156, 255, 0.96), rgba(76, 156, 255, 0.26));
}

.metric-card__spark span:nth-child(1) {
    height: 34%;
}

.metric-card__spark span:nth-child(2) {
    height: 56%;
}

.metric-card__spark span:nth-child(3) {
    height: 72%;
}

.metric-card__spark span:nth-child(4) {
    height: 48%;
}

.metric-card__spark span:nth-child(5) {
    height: 64%;
}

.metric-card:nth-child(1) {
    background: linear-gradient(135deg, #fff5f7 0%, #ffffff 100%);
}

.metric-card:nth-child(1) .metric-card__icon,
.metric-card:nth-child(1) .metric-card__spark span {
    background: linear-gradient(180deg, rgba(244, 114, 182, 0.92), rgba(244, 114, 182, 0.26));
}

.metric-card:nth-child(2) {
    background: linear-gradient(135deg, #f5f3ff 0%, #ffffff 100%);
}

.metric-card:nth-child(2) .metric-card__icon,
.metric-card:nth-child(2) .metric-card__spark span {
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.92), rgba(139, 92, 246, 0.24));
}

.metric-card:nth-child(3) {
    background: linear-gradient(135deg, #ecfeff 0%, #ffffff 100%);
}

.metric-card:nth-child(3) .metric-card__icon,
.metric-card:nth-child(3) .metric-card__spark span {
    background: linear-gradient(180deg, rgba(45, 212, 191, 0.92), rgba(45, 212, 191, 0.24));
}

.admin-page-stack {
    display: grid;
    gap: 18px;
    padding-bottom: 24px;
}

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

.admin-workspace-grid.has-side {
    grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
}

.admin-users-layout {
    grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
}

.admin-workspace-side {
    display: grid;
    gap: 18px;
}

.admin-card {
    padding: 24px;
    border-radius: 30px;
}

.admin-card--table {
    overflow: hidden;
}

.admin-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.admin-section-header__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-card .table-wrap {
    border-radius: 22px;
    border: 1px solid #e9eff7;
}

.admin-table {
    min-width: 100%;
}

.admin-table--users {
    min-width: 820px;
}

.admin-table--compact {
    min-width: 520px;
}

.admin-card th,
.admin-card td {
    border-bottom: 1px solid #edf2f8;
}

.admin-card th {
    padding-top: 16px;
    color: #7b8ca5;
    background: #f8fbff;
    letter-spacing: 0.14em;
    font-size: 0.74rem;
}

.admin-card td {
    color: #0f172a;
    background: #ffffff;
}

.admin-card tbody tr:nth-child(even) td {
    background: #ffffff;
}

.admin-card tbody tr:hover td {
    background: #f8fbff;
}

.admin-card tbody tr.is-selected td {
    background: #eef5ff;
}

.admin-card--detail .detail-grid > div,
.admin-card--detail .subsection p {
    padding: 15px 16px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid #e6eef8;
}

.admin-card--detail .detail-grid > .full-span {
    grid-column: 1 / -1;
}

.admin-table__primary {
    display: grid;
    gap: 4px;
}

.admin-table__primary strong {
    font-size: 0.95rem;
}

.admin-table__primary span {
    color: #64748b;
    font-size: 0.8rem;
}

.admin-action-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid #dbe7f3;
    background: #ffffff;
    color: #2563eb;
    font-size: 0.82rem;
    font-weight: 700;
    transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.admin-action-button:hover {
    transform: translateY(-1px);
    background: #eff6ff;
    border-color: #bfdbfe;
}

.admin-action-button--accent {
    background: #eff6ff;
}

.admin-action-icon {
    position: relative;
    width: 14px;
    height: 14px;
    display: inline-block;
}

.admin-action-icon::before,
.admin-action-icon::after {
    content: "";
    position: absolute;
}

.admin-action-icon--view::before {
    inset: 2px 1px 3px;
    border: 2px solid currentColor;
    border-radius: 999px;
}

.admin-action-icon--view::after {
    width: 4px;
    height: 4px;
    left: 5px;
    top: 5px;
    border-radius: 50%;
    background: currentColor;
}

.admin-action-icon--edit::before {
    left: 2px;
    top: 8px;
    width: 10px;
    height: 2px;
    background: currentColor;
    transform: rotate(-35deg);
    transform-origin: left center;
}

.admin-action-icon--edit::after {
    right: 1px;
    top: 1px;
    width: 0;
    height: 0;
    border-left: 4px solid currentColor;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    transform: rotate(-35deg);
}

.admin-action-icon--assign::before {
    left: 1px;
    top: 5px;
    width: 12px;
    height: 2px;
    background: currentColor;
}

.admin-action-icon--assign::after {
    left: 6px;
    top: 0;
    width: 2px;
    height: 12px;
    background: currentColor;
}

.admin-user-directory,
.admin-user-detail {
    min-width: 0;
}

.admin-user-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.admin-user-kpi,
.admin-user-meta > div {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid #e6eef8;
}

.admin-user-kpi strong,
.admin-user-meta > div strong {
    color: #0f172a;
    font-size: 0.98rem;
    word-break: break-word;
}

.admin-user-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-user-meta__wide {
    grid-column: 1 / -1;
}

.admin-empty-state {
    display: grid;
    gap: 8px;
    place-items: center;
    min-height: 320px;
    padding: 28px;
    text-align: center;
    border: 1px dashed #c8d6e6;
    border-radius: 24px;
    background: #f8fbff;
    color: #64748b;
}

.admin-empty-state h3 {
    margin-bottom: 0;
    color: #0f172a;
}

.theme-admin h1,
.theme-admin h2,
.theme-admin h3 {
    font-family: var(--font-body);
    letter-spacing: -0.02em;
}

.theme-admin .card {
    background: #ffffff;
    backdrop-filter: none;
    border: 1px solid #e4ebf5;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

.theme-admin .card::before,
.theme-admin .card::after {
    display: none;
}

.theme-admin .button--ghost {
    background: #ffffff;
    border: 1px solid #dbe7f3;
    color: #0f172a;
    box-shadow: none;
}

.theme-admin .button--secondary {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    box-shadow: none;
}

.theme-admin .button--primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: none;
}

.theme-admin .status-badge {
    background: #eef4ff;
    color: #334155;
}

.theme-admin .status-badge--success {
    background: #dcfce7;
    color: #166534;
}

.theme-admin .status-badge--warning {
    background: #fef3c7;
    color: #92400e;
}

.theme-admin tbody tr:nth-child(even) {
    background: transparent;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card,
.theme-user .app-header,
.card,
.admin-overview-card,
.admin-overview-side__card,
.metric-card,
.admin-topbar,
.admin-sidebar {
    animation: rise-in 420ms ease both;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.is-disabled {
    opacity: 0.65;
}

@media (max-width: 1180px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
        overflow: visible;
    }

    .admin-overview-grid,
    .admin-workspace-grid.has-side,
    .admin-users-layout,
    .admin-overview-card__body {
        grid-template-columns: 1fr;
    }

    .admin-overview-side {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    body {
        padding: 16px;
    }

    .card-head,
    .section-title--tight {
        flex-direction: column;
    }

    .theme-user .app-header {
        position: sticky;
        top: 12px;
        z-index: 32;
        padding: 10px 14px;
        margin-bottom: 14px;
        border-radius: 18px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .user-overview {
        grid-template-columns: 1fr;
    }

    .app-header__identity {
        display: flex;
        align-items: center;
        gap: 0;
        min-width: 0;
        flex: 1 1 auto;
        overflow: hidden;
    }

    .app-header__eyebrow {
        display: none;
    }

    .app-header__headline {
        display: block;
        min-width: 0;
        flex: 1 1 auto;
    }

    .app-header__headline h1 {
        margin: 0;
        font-size: 0.98rem;
        line-height: 1.15;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .app-header__status {
        display: none;
    }

    .header-actions {
        flex: 0 0 auto;
        align-items: center;
        gap: 0;
    }

    .profile-menu__avatar {
        width: 38px;
        height: 38px;
        font-size: 0.82rem;
    }

    .profile-menu__dot {
        right: 1px;
        bottom: 1px;
        width: 10px;
        height: 10px;
    }

    .admin-overview-card__stats,
    .admin-overview-side,
    .admin-metrics,
    .admin-users-layout,
    .admin-workspace-grid.has-side,
    .admin-user-kpis,
    .admin-user-meta,
    .admin-sidebar__summary-grid {
        grid-template-columns: 1fr;
    }

    .admin-sidebar,
    .admin-topbar,
    .admin-overview-card,
    .admin-overview-side__card,
    .metric-card,
    .admin-card {
        border-radius: 24px;
    }

    .admin-topbar,
    .admin-topbar__left,
    .admin-topbar__right,
    .admin-overview-card__header,
    .admin-section-header,
    .admin-section-header__meta {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-search {
        min-width: 0;
    }

    .admin-overview-card__tabs {
        align-self: flex-start;
    }

    .admin-overview-chart {
        min-height: 260px;
    }

    .grid-form,
    .detail-grid,
    .reference-table__header,
    .reference-row,
    .payment-hero {
        grid-template-columns: 1fr;
    }

    .reference-table__header {
        display: none;
    }

    .reference-row {
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .login-card,
    .card {
        padding: 20px;
        border-radius: 22px;
    }

    .mobile-tabbar {
        width: calc(100% - 20px);
        bottom: 10px;
    }

    .profile-page__nav-link {
        width: 100%;
    }

    .admin-sidebar__link {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .admin-sidebar__count {
        grid-column: 2;
        justify-self: start;
    }

    .admin-search,
    .admin-topbar__chip,
    .admin-topbar__profile {
        width: 100%;
    }

    .admin-icon-button {
        align-self: flex-start;
    }

    .admin-overview-chart__bars,
    .admin-overview-chart__labels {
        gap: 8px;
    }

    .admin-topbar__right {
        width: 100%;
        justify-content: stretch;
    }
}

.theme-admin .shell--admin {
    max-width: 100%;
}

.bs-admin {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
    min-height: calc(100vh - 48px);
}

.bs-admin.is-sidebar-hidden {
    grid-template-columns: minmax(0, 1fr);
}

.bs-admin__sidebar {
    position: sticky;
    top: 24px;
    height: calc(100vh - 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    padding-right: 0.25rem;
}

.bs-admin__sidebar > .card {
    min-height: 100%;
}

.bs-admin.is-sidebar-hidden .bs-admin__sidebar {
    display: none;
}

.bs-admin__main {
    display: grid;
    align-content: start;
    gap: 24px;
}

.bs-admin .card {
    padding: 0;
    border-radius: 1.4rem;
    background: #ffffff;
    border: 1px solid #e7edf5;
    box-shadow: 0 0.9rem 2rem rgba(15, 23, 42, 0.08);
    backdrop-filter: none;
}

.bs-admin .card::before,
.bs-admin .card::after {
    display: none;
}

.bs-admin__brand-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.05em;
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.22);
}

.bs-admin__nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    color: #495057;
    background: transparent;
    border: 1px solid transparent;
}

.bs-admin__nav-link small {
    display: block;
    color: #8d99a6;
}

.bs-admin__nav-link:hover {
    color: #1d4ed8;
    background: #f8fbff;
    border-color: #e5edf8;
}

.bs-admin__nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    box-shadow: 0 14px 24px rgba(37, 99, 235, 0.22);
}

.bs-admin__nav-link.active small {
    color: rgba(255, 255, 255, 0.82);
}

.bs-admin__nav-link.active .badge {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

.bs-admin__sidebar-summary {
    background: linear-gradient(180deg, #f8fbff 0%, #fdfefe 100%);
}

.bs-admin__summary-tile {
    display: grid;
    gap: 0.35rem;
    padding: 0.85rem;
    border-radius: 1rem;
    background: #ffffff;
    border: 1px solid #e7edf5;
}

.bs-admin__summary-tile span {
    color: #6c757d;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.bs-admin__summary-tile strong {
    color: #212529;
    font-size: 1.3rem;
    line-height: 1;
}

.bs-admin__sidebar-support {
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.bs-admin__sidebar-user {
    background: #f8fafc;
}

.bs-admin__topbar {
    position: sticky;
    top: 24px;
    z-index: 10;
    overflow: visible;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.bs-admin__topbar-inner,
.bs-admin__topbar-group,
.bs-admin__topbar-tools {
    display: flex;
    align-items: center;
}

.bs-admin__topbar-inner {
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.bs-admin__topbar-group {
    gap: 0.75rem;
    min-width: 0;
    flex: 0 0 auto;
}

.bs-admin__topbar-tools {
    gap: 0.5rem;
    justify-content: flex-end;
    flex-wrap: nowrap;
    min-width: 0;
}

.bs-admin__page-heading h1 {
    color: #212529;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 1.25rem;
    white-space: nowrap;
}

.bs-admin__icon-button {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    border-color: #dee6f0;
    color: #495057;
    font-size: 1rem;
    background: #f8fafc;
    box-shadow: none;
    padding: 0;
}

.bs-admin__icon-button:hover {
    background: #eef4fb;
    border-color: #d2dceb;
    color: #0f172a;
}

.bs-admin__icon-button.is-active {
    background: #e7f1ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.bs-admin__search {
    min-width: 180px;
    max-width: 240px;
    flex: 1 1 220px;
}

.bs-admin .form-control,
.bs-admin .form-select,
.bs-admin .input-group-text {
    border-color: #dee6f0;
    border-radius: 0.8rem;
    box-shadow: none;
}

.bs-admin .form-control:focus,
.bs-admin .form-select:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 0.22rem rgba(37, 99, 235, 0.12);
}

.bs-admin__search .input-group-text {
    border-right: 0;
}

.bs-admin__search .form-control {
    border-left: 0;
    background: #ffffff;
    min-width: 0;
    font-size: 0.92rem;
    padding-block: 0.45rem;
}

.bs-admin__topbar-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e7edf5;
    border-radius: 999px;
    background: #f8fafc;
    color: #495057;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1;
}

.bs-admin__profile {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.3rem 0.6rem 0.3rem 0.3rem;
    border: 1px solid #e7edf5;
    border-radius: 999px;
    background: #ffffff;
    flex: 0 0 auto;
    white-space: nowrap;
}

.bs-admin__profile--compact {
    gap: 0.35rem;
    padding-right: 0.45rem;
    min-width: auto;
}

.bs-admin__avatar {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.82rem;
}

.bs-admin__profile strong {
    font-size: 0.92rem;
    line-height: 1;
}

.bs-admin__profile-copy {
    display: grid;
    gap: 0.12rem;
}

.bs-admin__profile-copy small {
    color: #94a3b8;
    font-size: 0.72rem;
    line-height: 1;
}

.bs-admin__profile-menu .profile-menu__button {
    justify-content: flex-start;
}

.bs-admin__profile-menu .profile-menu__content {
    right: 0;
    top: calc(100% + 10px);
    width: min(290px, 82vw);
    z-index: 50;
}

.bs-admin__logout-form {
    display: flex;
    margin: 0;
}

.bs-admin__logout-button {
    min-height: 38px;
    border-radius: 0.8rem;
    padding: 0.42rem 0.85rem;
    font-size: 0.9rem;
    line-height: 1;
}

.bs-admin__mini-card {
    height: 100%;
}

.bs-admin__mini-card-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 1.25rem;
}

.bs-admin__metric-tile {
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid #edf2f7;
}

.bs-admin__metric-tile span,
.bs-admin__side-label,
.bs-admin__form-label,
.bs-admin__detail-tile span {
    color: #6c757d;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.bs-admin__metric-tile strong {
    color: #212529;
    font-size: 1.25rem;
    line-height: 1.1;
    word-break: break-word;
}

.bs-admin__metric-tile small {
    color: #6c757d;
}

.bs-admin__chart-card {
    padding: 1.25rem;
    border-radius: 1.2rem;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border: 1px solid #e8eef6;
}

.bs-admin__chart-bars {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: end;
    min-height: 200px;
}

.bs-admin__chart-column {
    display: grid;
    justify-items: center;
    gap: 0.55rem;
}

.bs-admin__chart-track {
    position: relative;
    width: 100%;
    max-width: 28px;
    height: 150px;
    border-radius: 999px;
    background: #e9eef5;
    overflow: hidden;
}

.bs-admin__chart-fill {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--chart-height);
    border-radius: 999px;
}

.bs-admin__chart-fill.is-primary {
    background: linear-gradient(180deg, #2563eb 0%, #60a5fa 100%);
}

.bs-admin__chart-fill.is-muted {
    background: linear-gradient(180deg, #94a3b8 0%, #cbd5e1 100%);
}

.bs-admin__chart-column small {
    color: #8d99a6;
    font-weight: 700;
}

.bs-admin__side-card {
    height: 100%;
}

.bs-admin__side-value {
    font-size: clamp(1.7rem, 4vw, 2.15rem);
    line-height: 1;
    letter-spacing: -0.04em;
    color: #212529;
    margin: 0.55rem 0 0.35rem;
}

.bs-admin__panel {
    height: 100%;
}

.bs-admin__panel .table-responsive {
    border: 1px solid #e6edf5;
    border-radius: 1rem;
    background: #ffffff;
    overflow: hidden;
}

.bs-admin__table {
    margin-bottom: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9rem;
    line-height: 1.35;
}

.bs-admin__table thead th {
    white-space: nowrap;
    color: #6c757d;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: linear-gradient(180deg, #fbfcfd 0%, #f8fafc 100%);
    border-bottom: 1px solid #e5eaf0;
    padding: 0.82rem 0.9rem;
}

.bs-admin__table tbody td {
    color: #212529;
    padding: 0.82rem 0.9rem;
    border-bottom: 1px solid #edf2f7;
    vertical-align: middle;
}

.bs-admin__table tbody tr:nth-child(even) td {
    background: #fcfdff;
}

.bs-admin__table tbody tr:last-child td {
    border-bottom: 0;
}

.bs-admin__table td small,
.bs-admin__table td .text-body-secondary {
    font-size: 0.75rem;
    line-height: 1.35;
}

.bs-admin__table .btn-sm {
    font-size: 0.78rem;
}

.bs-admin__table .bs-admin__icon-button {
    width: 2.1rem;
    height: 2.1rem;
}

.bs-admin__table--standard {
    min-width: 980px;
}

.bs-admin__table--standard thead th,
.bs-admin__table--standard tbody td {
    white-space: nowrap;
}

.bs-admin__cell-primary {
    display: block;
    font-weight: 600;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bs-admin__cell-secondary {
    display: block;
    margin-top: 0.18rem;
    color: #94a3b8;
    font-size: 0.74rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bs-admin__action-cell {
    width: 1%;
    white-space: nowrap;
}

.bs-admin__row-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.bs-admin__row-actions > * {
    flex: 0 0 auto;
}

.bs-admin__row-actions form {
    margin: 0;
}

.bs-admin__table--compact thead th,
.bs-admin__table--compact tbody td {
    vertical-align: middle;
}

.bs-admin__table--compact tbody td {
    padding-block: 0.6rem;
}

.bs-admin__row-link {
    cursor: pointer;
}

.bs-admin__row-link:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: -2px;
}

.bs-admin__table tr.table-active td {
    background: #e7f1ff;
}

.bs-admin__selection-cell {
    width: 44px;
    text-align: center;
}

.bs-admin__inline-meta {
    display: inline-block;
    margin-left: 0.25rem;
    color: #94a3b8;
    font-size: 0.8rem;
    white-space: nowrap;
}

.bs-admin-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1.25rem;
}

.bs-admin-modal[hidden] {
    display: none !important;
}

.bs-admin-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
}

.bs-admin-modal__dialog {
    position: relative;
    width: min(1100px, 100%);
    max-height: calc(100vh - 4rem);
    overflow: auto;
    border-radius: 1.35rem;
    box-shadow: 0 2rem 4rem rgba(15, 23, 42, 0.2);
}

.bs-admin-modal__dialog--compact {
    width: min(680px, 100%);
}

.bs-admin-modal__panel {
    height: auto;
}

.bs-admin-modal__dialog::-webkit-scrollbar {
    width: 10px;
}

.bs-admin-modal__dialog::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.7);
    border-radius: 999px;
}

.bs-admin__detail-tile {
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    height: auto;
}

.bs-admin__detail-tile strong {
    color: #212529;
    font-size: 0.96rem;
    word-break: break-word;
}

.bs-admin__assign-email-list {
    display: grid;
    gap: 0.85rem;
}

.bs-admin__assign-email-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    gap: 0.9rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid #edf2f7;
}

.bs-admin__assign-email-meta {
    display: grid;
    gap: 0.18rem;
}

.bs-admin__assign-email-meta span {
    color: #94a3b8;
    font-size: 0.82rem;
}

.bs-admin__empty-state {
    min-height: 360px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 2rem;
    border-radius: 1.2rem;
    background: #f8fafc;
    border: 1px dashed #d2dae5;
}

.bs-admin .alert {
    border-radius: 1rem;
    border-width: 1px;
    box-shadow: 0 0.65rem 1.25rem rgba(15, 23, 42, 0.08);
}

.bs-admin .btn {
    box-shadow: none;
}

.bs-admin__icon-button {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.table-subcopy {
    font-size: 0.78rem;
    color: var(--muted);
}

.mlm-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.mlm-summary-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(15, 122, 120, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 251, 0.96)),
        radial-gradient(circle at top right, rgba(15, 122, 120, 0.08), transparent 45%);
    box-shadow: var(--shadow-soft);
}

.mlm-summary-card span,
.mlm-inline-meta span,
.mlm-user-node__eyebrow,
.mlm-branch__title small {
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.mlm-summary-card strong {
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.mlm-summary-card small,
.mlm-inline-meta small {
    color: var(--muted);
    line-height: 1.55;
}

.mlm-inline-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.mlm-inline-meta > div {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(23, 48, 59, 0.08);
    background: rgba(255, 255, 255, 0.75);
}

.mlm-inline-meta strong {
    color: var(--text);
}

.loan-admin-panel {
    border: 1px solid rgba(37, 99, 235, 0.08);
}

.loan-admin-current-emi {
    display: grid;
    gap: 18px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(37, 99, 235, 0.08);
    background: rgba(255, 255, 255, 0.88);
}

.loan-admin-current-emi__summary {
    display: grid;
    gap: 6px;
}

.loan-admin-current-emi__summary span {
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.loan-admin-current-emi__summary strong {
    font-size: 1.45rem;
    letter-spacing: -0.03em;
}

.loan-admin-current-emi__summary small {
    color: var(--muted);
}

.mlm-tree-shell {
    margin-top: 22px;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(23, 48, 59, 0.08);
    background:
        radial-gradient(circle at top right, rgba(200, 122, 55, 0.08), transparent 35%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 247, 250, 0.96));
}

.mlm-tree {
    display: grid;
    gap: 18px;
}

.mlm-path {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.mlm-path__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mlm-path__chip--root,
.mlm-path__chip--user {
    color: #0b5a58;
    background: rgba(15, 122, 120, 0.12);
    border: 1px solid rgba(15, 122, 120, 0.12);
}

.mlm-path__chip--referral {
    color: #9b5a22;
    background: rgba(200, 122, 55, 0.12);
    border: 1px solid rgba(200, 122, 55, 0.12);
}

.mlm-path__divider {
    color: rgba(23, 48, 59, 0.4);
    font-weight: 700;
}

.mlm-user-node {
    display: grid;
    gap: 16px;
    padding: 20px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(15, 122, 120, 0.11), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 250, 0.96));
    border: 1px solid rgba(15, 122, 120, 0.12);
    box-shadow: var(--shadow-soft);
}

.mlm-user-node.is-root {
    border-color: rgba(15, 122, 120, 0.18);
    box-shadow: 0 18px 44px rgba(15, 122, 120, 0.1);
}

.mlm-user-node__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.mlm-user-node__header h3 {
    margin: 0;
    font-size: 1.15rem;
}

.mlm-user-node__meta,
.mlm-branch__details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 12px;
}

.mlm-user-node__meta > div,
.mlm-branch__details > div {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(23, 48, 59, 0.08);
}

.mlm-user-node__meta strong,
.mlm-branch__details strong {
    color: var(--text);
}

.mlm-branch-list {
    display: grid;
    gap: 14px;
}

.mlm-branch {
    position: relative;
    margin-left: 10px;
    padding-left: 18px;
    border-left: 2px solid rgba(15, 122, 120, 0.15);
}

.mlm-branch summary {
    list-style: none;
    cursor: pointer;
}

.mlm-branch summary::-webkit-details-marker {
    display: none;
}

.mlm-branch__summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(23, 48, 59, 0.08);
    box-shadow: 0 12px 28px rgba(23, 48, 59, 0.06);
}

.mlm-branch__title {
    display: grid;
    gap: 4px;
}

.mlm-branch__title strong {
    color: var(--text);
}

.mlm-branch__code {
    display: inline-flex;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(200, 122, 55, 0.12);
    color: #9b5a22;
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 0.74rem;
}

.mlm-branch__badges,
.mlm-branch__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.mlm-branch__body {
    display: grid;
    gap: 14px;
    padding: 16px 0 0;
}

.mlm-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(23, 48, 59, 0.08);
    color: var(--text);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mlm-status-pill--user {
    background: rgba(15, 122, 120, 0.12);
    color: #0b5a58;
}

.mlm-status-pill--paid {
    background: rgba(36, 117, 93, 0.14);
    color: #1f6a54;
}

.mlm-status-pill--pending {
    background: rgba(230, 167, 72, 0.18);
    color: #8d621f;
}

.mlm-empty-branch {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px dashed rgba(23, 48, 59, 0.15);
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
    line-height: 1.6;
}

.mlm-panel-toggle {
    border: 1px solid rgba(23, 48, 59, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.85);
    padding: 16px 18px;
}

.mlm-panel-toggle[open] {
    box-shadow: var(--shadow-soft);
}

.mlm-panel-toggle__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    list-style: none;
    font-weight: 800;
    color: var(--text);
}

.mlm-panel-toggle__summary::-webkit-details-marker {
    display: none;
}

.mlm-panel-toggle__summary small {
    color: var(--muted);
    font-weight: 700;
}

.payment-qr-preview--large {
    min-height: 380px;
    padding: 20px;
}

@media (max-width: 1199px) {
    .bs-admin {
        grid-template-columns: 1fr;
    }

    .bs-admin__sidebar {
        position: static;
        height: auto;
        overflow: visible;
        padding-right: 0;
    }
}

@media (max-width: 991px) {
    .bs-admin-modal {
        padding: 1rem 0.75rem;
    }

    .bs-admin-modal__dialog {
        width: 100%;
        max-height: calc(100vh - 2rem);
    }

    .bs-admin__topbar-inner {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: wrap;
    }

    .bs-admin__topbar-group,
    .bs-admin__topbar-tools {
        width: 100%;
    }

    .bs-admin__topbar-tools {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .bs-admin__search {
        min-width: 0;
        width: 100%;
        max-width: none;
    }

    .bs-admin__profile {
        flex: 1 1 auto;
        white-space: normal;
    }

    .bs-admin__profile--compact {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

@media (max-width: 767px) {
    .bs-admin__chart-bars {
        gap: 0.5rem;
    }

    .bs-admin__chart-track {
        max-width: 22px;
        height: 120px;
    }

    .bs-admin__nav-link {
        flex-wrap: wrap;
    }

    .mlm-tree-shell {
        padding: 16px;
    }

    .mlm-user-node,
    .mlm-branch__summary {
        padding: 16px;
    }

    .mlm-user-node__header,
    .mlm-branch__summary {
        flex-direction: column;
    }

    .mlm-panel-toggle__summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .mlm-branch {
        margin-left: 0;
        padding-left: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   FINANCE THEME — Professional Light Fintech Dashboard
   ============================================================ */

body.theme-finance {
    background: #f0f4f8 !important;
    background-attachment: fixed !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.theme-finance .shell--admin {
    background: transparent;
}

/* Sidebar */
body.theme-finance .bs-admin__sidebar .card {
    background: #ffffff;
    border: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 6px 16px rgba(0, 0, 0, 0.04);
}

body.theme-finance .bs-admin__brand-icon {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.25);
}

body.theme-finance .bs-admin__nav-link {
    color: #475569;
    border-radius: 10px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

body.theme-finance .bs-admin__nav-link small {
    color: #94a3b8;
}

body.theme-finance .bs-admin__nav-link:hover {
    color: #1e40af;
    background: #eff6ff;
    border-color: #dbeafe;
}

body.theme-finance .bs-admin__nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, #1e40af, #2563eb);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
    border-color: transparent;
}

body.theme-finance .bs-admin__nav-link.active small {
    color: rgba(255, 255, 255, 0.8);
}

body.theme-finance .bs-admin__nav-link.active .badge {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

body.theme-finance .text-body-secondary {
    color: #64748b !important;
}

/* Sidebar summary */
body.theme-finance .bs-admin__sidebar-summary {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border: 1px solid #e2e8f0 !important;
}

body.theme-finance .bs-admin__summary-tile {
    background: #ffffff;
    border-color: #e2e8f0;
}

body.theme-finance .bs-admin__summary-tile span {
    color: #64748b;
}

body.theme-finance .bs-admin__summary-tile strong {
    color: #0f172a;
}

body.theme-finance .bs-admin__sidebar-user {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

/* Main content area */
body.theme-finance .bs-admin__main {
    gap: 20px;
}

/* Topbar */
body.theme-finance .bs-admin__topbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    border: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.theme-finance .bs-admin__page-heading h1 {
    color: #0f172a;
    font-weight: 700;
}

body.theme-finance .bs-admin__topbar-chip {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #475569;
}

body.theme-finance .bs-admin__icon-button {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #475569;
}

body.theme-finance .bs-admin__icon-button:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

body.theme-finance .bs-admin__avatar {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: #ffffff;
}

body.theme-finance .bs-admin__profile strong {
    color: #0f172a;
}

body.theme-finance .bs-admin__profile-copy small {
    color: #64748b;
}

body.theme-finance .profile-menu__action-button {
    background: #eff6ff;
    color: #1e40af;
}

body.theme-finance .profile-menu__action-button:hover {
    background: #dbeafe;
}

body.theme-finance .bs-admin__search .input-group-text {
    background: #f8fafc;
    border-color: #e2e8f0;
}

body.theme-finance .bs-admin__search .form-control {
    background: #f8fafc;
    border-color: #e2e8f0;
}

/* Cards */
body.theme-finance .card {
    background: #ffffff !important;
    border: 1px solid #e8edf2 !important;
    color: #334155;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
}

body.theme-finance .card-header {
    background: #fafbfc !important;
    border-bottom: 1px solid #e8edf2 !important;
    color: #334155;
}

body.theme-finance .card-header h2,
body.theme-finance .card-header .h5 {
    color: #0f172a;
}

/* Tables */
body.theme-finance .bs-admin__table {
    color: #334155;
}

body.theme-finance .bs-admin__table thead th {
    background: #f8fafc;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    padding-block: 0.75rem;
}

body.theme-finance .bs-admin__table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

body.theme-finance .bs-admin__table tbody tr:hover {
    background: #f8fafc;
}

body.theme-finance .bs-admin__table tbody tr.table-active {
    background: #eff6ff;
}

body.theme-finance .bs-admin__table {
    font-size: 0.88rem;
}

body.theme-finance .bs-admin__table thead th {
    font-size: 0.67rem;
    letter-spacing: 0.12em;
}

body.theme-finance .bs-admin__table td {
    color: #334155;
    padding-block: 0.72rem;
}

body.theme-finance .bs-admin__table--compact td {
    padding-block: 0.54rem;
}

body.theme-finance .bs-admin__table td small {
    color: #94a3b8;
    font-size: 0.74rem;
}

/* Mini cards / Metric tiles */
body.theme-finance .bs-admin__mini-card {
    background: #ffffff !important;
    border: 1px solid #e8edf2 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

body.theme-finance .mlm-summary-card,
body.theme-finance .bs-admin__metric-tile {
    background: #ffffff;
    border: 1px solid #e8edf2;
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

body.theme-finance .mlm-summary-card span,
body.theme-finance .bs-admin__metric-tile span {
    color: #64748b;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

body.theme-finance .mlm-summary-card strong,
body.theme-finance .bs-admin__metric-tile strong {
    color: #0f172a;
    font-size: 1.6rem;
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 800;
    display: block;
    margin: 0.3rem 0 0.1rem;
    letter-spacing: -0.02em;
}

body.theme-finance .mlm-summary-card small,
body.theme-finance .bs-admin__metric-tile small {
    color: #94a3b8;
    font-size: 0.72rem;
}

body.theme-finance .bs-admin__side-label {
    color: #64748b;
}

body.theme-finance .bs-admin__side-value {
    color: #0f172a !important;
}

body.theme-finance .bs-admin__mini-card-icon {
    color: #94a3b8;
}

/* Accent bar on metric cards */
body.theme-finance .mlm-summary-card:nth-child(1)::before,
body.theme-finance .bs-admin__metric-tile:nth-child(1)::before { background: #2563eb; }
body.theme-finance .mlm-summary-card:nth-child(2)::before,
body.theme-finance .bs-admin__metric-tile:nth-child(2)::before { background: #059669; }
body.theme-finance .mlm-summary-card:nth-child(3)::before,
body.theme-finance .bs-admin__metric-tile:nth-child(3)::before { background: #d97706; }
body.theme-finance .mlm-summary-card:nth-child(4)::before,
body.theme-finance .bs-admin__metric-tile:nth-child(4)::before { background: #dc2626; }

body.theme-finance .mlm-summary-card::before,
body.theme-finance .bs-admin__metric-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 14px 14px 0 0;
}

/* Metric row */
body.theme-finance .bs-admin__metrics {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

/* Form controls */
body.theme-finance .form-control,
body.theme-finance .form-select {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #1e293b;
    border-radius: 8px;
}

body.theme-finance .form-control:focus,
body.theme-finance .form-select:focus {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    color: #0f172a;
}

body.theme-finance .form-control::placeholder {
    color: #94a3b8;
}

body.theme-finance .form-label,
body.theme-finance .bs-admin__form-label {
    color: #475569;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.theme-finance .form-text {
    color: #94a3b8;
}

/* Detail tiles */
body.theme-finance .bs-admin__detail-tile {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.875rem 1rem;
}

body.theme-finance .bs-admin__detail-tile span {
    color: #64748b;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 600;
}

body.theme-finance .bs-admin__detail-tile strong {
    color: #0f172a;
    display: block;
    margin-top: 0.25rem;
}

body.theme-finance .bs-admin__detail-tile small {
    color: #94a3b8;
    font-size: 0.72rem;
}

/* Buttons */
body.theme-finance .btn-primary {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    border-color: #1e40af;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
    font-weight: 600;
}

body.theme-finance .btn-primary:hover {
    background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
    border-color: #1e3a8a;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

body.theme-finance .btn-outline-primary {
    border-color: #3b82f6;
    color: #2563eb;
    font-weight: 600;
}

body.theme-finance .btn-outline-primary:hover {
    background: #eff6ff;
    color: #1e40af;
    border-color: #2563eb;
}

body.theme-finance .btn-outline-secondary {
    border-color: #cbd5e1;
    color: #475569;
    font-weight: 500;
}

body.theme-finance .btn-outline-secondary:hover {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #94a3b8;
}

body.theme-finance .btn-success {
    background: linear-gradient(135deg, #047857, #059669);
    border-color: #047857;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

body.theme-finance .btn-warning {
    background: linear-gradient(135deg, #b45309, #d97706);
    border-color: #b45309;
    color: #ffffff;
}

body.theme-finance .btn-danger {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    border-color: #b91c1c;
}

/* Badges */
body.theme-finance .badge.bg-light {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
    font-weight: 600;
}

body.theme-finance .badge.bg-success {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0;
}

body.theme-finance .badge.bg-warning {
    background: #fffbeb !important;
    color: #92400e !important;
    border: 1px solid #fde68a;
}

body.theme-finance .badge.bg-danger {
    background: #fef2f2 !important;
    color: #b91c1c !important;
    border: 1px solid #fecaca;
}

body.theme-finance .badge.bg-info {
    background: #eff6ff !important;
    color: #1e40af !important;
    border: 1px solid #bfdbfe;
}

/* Status badges */
body.theme-finance .badge-status-paid {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

body.theme-finance .badge-status-pending {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Empty state */
body.theme-finance .bs-admin__empty-state {
    color: #94a3b8;
}

body.theme-finance .bs-admin__empty-icon i {
    color: #bfdbfe;
}

/* Border helpers */
body.theme-finance .border-top {
    border-top-color: #e2e8f0 !important;
}

/* MLM inline meta */
body.theme-finance .mlm-inline-meta {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    color: #334155;
}

body.theme-finance .mlm-inline-meta span {
    color: #64748b;
}

body.theme-finance .mlm-inline-meta strong {
    color: #0f172a;
}

/* Panel toggle */
body.theme-finance .mlm-panel-toggle {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    padding: 0.85rem 1.1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.theme-finance .mlm-panel-toggle__summary {
    color: #475569;
}

body.theme-finance .mlm-panel-toggle__summary span {
    color: #0f172a;
    font-weight: 600;
}

/* Modal */
body.theme-finance .bs-admin-modal__dialog {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

body.theme-finance .bs-admin-modal__backdrop {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
}

/* Alert */
body.theme-finance .alert-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

body.theme-finance .alert-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

body.theme-finance .alert-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #78350f;
}

body.theme-finance .alert-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

/* Scrollbar */
body.theme-finance ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

body.theme-finance ::-webkit-scrollbar-track {
    background: #f1f5f9;
}

body.theme-finance ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

body.theme-finance ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Payment status text colors */
body.theme-finance .text-success { color: #059669 !important; }
body.theme-finance .text-warning { color: #d97706 !important; }
body.theme-finance .text-danger { color: #dc2626 !important; }
body.theme-finance .text-info { color: #2563eb !important; }

/* Logout button */
body.theme-finance .bs-admin__logout-button {
    border-color: #e2e8f0;
    color: #64748b;
    font-weight: 500;
}

body.theme-finance .bs-admin__logout-button:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

/* ============================================================
   MLM GRAPHICAL TREE — .mlm-g-* components
   ============================================================ */

.mlm-g-node {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: relative;
}

.mlm-g-card {
    display: flex;
    align-items: stretch;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    min-width: 170px;
    max-width: 220px;
    transition: all 0.2s ease;
}

.mlm-g-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.mlm-g-level-bar {
    width: 4px;
    flex-shrink: 0;
    border-radius: 0;
}

.mlm-g-body {
    padding: 0.65rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.mlm-g-code {
    font-size: 0.82rem;
    font-weight: 700;
    font-family: 'Inter', -apple-system, sans-serif;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.mlm-g-name {
    font-size: 0.72rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.mlm-g-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.2rem;
}

.mlm-g-badge {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    letter-spacing: 0.04em;
}

.mlm-g-refs {
    font-size: 0.65rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 2px;
}

.mlm-g-paid {
    font-size: 0.65rem;
    color: #059669;
    display: flex;
    align-items: center;
    gap: 2px;
    font-weight: 600;
}

.mlm-g-children {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 0 0 28px;
    position: relative;
}

.mlm-g-children::before {
    content: '';
    position: absolute;
    top: 0;
    left: 14px;
    width: 2px;
    height: 16px;
    background: #bfdbfe;
    border-radius: 1px;
}

@media (max-width: 640px) {
    .payment-qr-lightbox {
        padding: 14px;
    }

    .payment-qr-lightbox__dialog {
        width: 100%;
        padding: 14px;
        border-radius: 22px;
    }

    .bs-admin__assign-email-row {
        grid-template-columns: 1fr;
    }
}
