:root {
    --ink-950: #1f2430;
    --ink-900: #394150;
    --ink-700: #5b6371;
    --muted-500: #7b7a70;
    --line-200: #ddd4b5;
    --surface-0: #f7f1df;
    --surface-1: #ffffff;
    --surface-2: #efe6ca;
    --accent: #efbe46;
    --accent-strong: #ff7d1a;
    --accent-soft: #f6ead0;
    --accent-border: #e5d49a;
    --danger: #c1292e;
}

.brand-logo {
    display: inline-block;
    object-fit: contain;
    vertical-align: middle;
}

.auth-logo {
    width: 80px;
    height: 80px;
    margin-right: 1rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.sidebar-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    min-height: 100%;
    background: #f8f4e8;
    color: var(--ink-950);
}

.hero-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(closest-side at 95% 8%, rgba(239, 190, 70, 0.1), transparent 72%),
        radial-gradient(closest-side at 10% 82%, rgba(255, 125, 26, 0.08), transparent 68%);
}

.alert {
    margin: 1rem auto;
    width: min(1100px, 94vw);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: #ffeaea;
    color: var(--danger);
    border: 1px solid #ffd1d4;
}

.success-message {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: #eafffa;
    color: #0b8a73;
    border: 1px solid #d1fdf4;
}

.auth-wrap,
.dashboard-wrap {
    position: relative;
    z-index: 1;
    width: min(1280px, 96vw);
    margin: 0 auto;
}

.auth-wrap {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    min-height: 100vh;
    gap: 2rem;
    align-items: stretch;
}

.workspace-shell {
    position: relative;
    z-index: 1;
    width: min(1440px, 100vw);
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 0;
    align-items: start;
}

.ta-shell {
    grid-template-columns: 248px minmax(0, 1fr);
}

.ta-shell-collapsed {
    grid-template-columns: 78px minmax(0, 1fr);
}

.ta-shell-collapsed .sidebar-profile,
.ta-shell-collapsed .tenant-admin-title,
.ta-shell-collapsed .tenant-admin-sub,
.ta-shell-collapsed .sidebar-logout {
    display: none;
}

.ta-shell-collapsed .tenant-admin-link {
    grid-template-columns: 1fr;
    justify-items: center;
    width: 46px;
    margin: 0 auto;
    padding: 0.7rem 0;
}

.ta-shell-collapsed .tenant-admin-caret {
    display: none;
}

.ta-shell-collapsed .tenant-admin-sidebar {
    padding: 0.75rem 0.55rem;
    overflow: hidden;
}

.ta-shell-collapsed .tenant-admin-sidebar .sidebar-brand {
    justify-content: center;
}

.ta-shell-collapsed .tenant-admin-sidebar .tenant-admin-nav {
    justify-items: center;
    align-content: start;
}

.ta-shell-collapsed .tenant-admin-sidebar .tenant-admin-link.active {
    box-shadow: none;
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.92);
    color: #1b58ff;
}

.ta-shell-collapsed .tenant-admin-sidebar .tenant-admin-link {
    overflow: hidden;
    border-radius: 16px;
}

.ta-shell-collapsed .tenant-admin-sidebar .tenant-admin-icon {
    display: grid;
    place-items: center;
}

.ta-shell-collapsed .tenant-admin-sidebar .tenant-admin-icon svg {
    width: 20px;
    height: 20px;
}

.workspace-sidebar {
    position: sticky;
    top: 0;
    display: grid;
    gap: 1.2rem;
    min-height: 100vh;
    align-content: start;
    padding: 1.2rem 1rem;
    background: #f5f0df;
    color: var(--ink-950);
    border-right: 1px solid var(--line-200);
}

.tenant-admin-sidebar {
    background: #2f74ff;
    border-right: none;
    padding: 0.9rem 0.8rem;
    gap: 0.75rem;
    border-radius: 22px;
    margin: 0.85rem 0 0.85rem 0.85rem;
    min-height: calc(100vh - 1.7rem);
    box-shadow: 0 18px 40px rgba(13, 57, 155, 0.18);
}

.tenant-admin-sidebar .sidebar-profile {
    display: none;
}

.tenant-admin-sidebar .sidebar-brand {
    padding: 0.2rem 0.35rem 0.75rem;
}

.tenant-admin-sidebar .sidebar-kicker {
    color: rgba(255, 255, 255, 0.72);
}

.tenant-admin-sidebar .sidebar-email {
    color: #ffffff;
}

.tenant-admin-sidebar .sidebar-copy {
    color: rgba(255, 255, 255, 0.72);
}

.tenant-admin-sidebar .sidebar-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.tenant-admin-sidebar .tenant-admin-nav {
    margin-top: 0.35rem;
    gap: 0.18rem;
}

.tenant-admin-sidebar .tenant-admin-link {
    color: rgba(255, 255, 255, 0.92);
    padding: 0.62rem 0.8rem;
    border-radius: 18px;
}

.tenant-admin-sidebar .tenant-admin-link:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.12);
}

.tenant-admin-sidebar .tenant-admin-link.active {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(255, 255, 255, 0.96);
    color: #1b58ff;
    box-shadow: 0 14px 28px rgba(13, 57, 155, 0.22);
}

.tenant-admin-sidebar .tenant-admin-caret svg {
    opacity: 0.85;
}

.tenant-admin-sidebar .tenant-admin-sub {
    color: rgba(255, 255, 255, 0.82);
    padding: 0.5rem 0.8rem 0.5rem 2.15rem;
    border-radius: 16px;
    font-size: 0.84rem;
    font-weight: 750;
}

.tenant-admin-sidebar .tenant-admin-sub:hover {
    background: rgba(255, 255, 255, 0.12);
}

.tenant-admin-sidebar .tenant-admin-sub.active {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.22);
}

.tenant-admin-sidebar .sidebar-logout {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.workspace-main {
    display: grid;
    gap: 1rem;
    padding: 0 1.6rem 2rem;
}

.tenant-admin-main {
    padding-top: 0.6rem;
    background: linear-gradient(180deg, rgba(36, 107, 255, 0.06) 0%, transparent 28%);
}

.ta-create-user {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1.2rem;
    align-items: stretch;
}

.ta-onboard-card {
    border-radius: 22px;
    padding: 1.4rem 1.2rem;
    color: #ffffff;
    background: linear-gradient(180deg, #2a7aff 0%, #1b63ea 100%);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.25);
    display: grid;
    gap: 0.85rem;
    justify-items: center;
    text-align: center;
    min-height: 520px;
}

.ta-onboard-icon {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 6.2rem;
}

.ta-onboard-icon svg {
    width: 42px;
    height: 42px;
    color: rgba(255, 255, 255, 0.95);
}

.ta-onboard-card h3 {
    margin: 0;
    font-size: 1.2rem;
}

.ta-onboard-card p {
    margin: 0;
    max-width: 180px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.35;
}

.ta-onboard-divider {
    width: 75%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin-top: 0.8rem;
}

.ta-onboard-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    opacity: 0.85;
    margin-top: 0.2rem;
}

.ta-onboard-level {
    margin: 0;
    font-weight: 750;
}

.ta-create-form h3 {
    margin: 0.1rem 0 0.6rem;
}

.ta-form-section {
    margin-top: 1.2rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
}

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

.ta-field label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    color: rgba(15, 23, 42, 0.7);
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.ta-field input,
.ta-field select,
.ta-field textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    padding: 0.8rem 0.85rem;
    outline: none;
    background: #ffffff;
}

.ta-field textarea {
    resize: vertical;
    min-height: 88px;
}

.ta-field-wide {
    grid-column: 1 / -1;
}

.ta-primary {
    width: 100%;
    margin-top: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.95rem 1.1rem;
    border-radius: 16px;
    border: 1px solid rgba(37, 99, 235, 0.24);
    background: #2a7aff;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ta-primary svg {
    width: 18px;
    height: 18px;
}

.ta-primary:hover {
    filter: brightness(0.98);
}

.ta-primary:active {
    transform: translateY(1px);
}

.ta-panel {
    padding: 1.4rem 1.6rem;
    border-radius: 18px;
}

.ta-panel-title {
    margin: 0 0 1.05rem;
    font-size: 1.1rem;
}

.ta-users {
    display: grid;
    gap: 1rem;
}

.ta-transactions {
    display: grid;
    gap: 1rem;
}

.ta-tx-panel {
    padding: 1.2rem 1.35rem;
    border-radius: 18px;
}

.ta-tx-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px 160px 160px 110px 90px;
    gap: 0.7rem;
    align-items: center;
    margin: 0.8rem 0 1.05rem;
}

.ta-tx-filters input,
.ta-tx-filters select {
    width: 100%;
}

.ta-tx-table {
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
}

.ta-tx-head,
.ta-tx-row {
    display: grid;
    grid-template-columns: 130px 140px 1.4fr 110px 120px 160px 110px;
    gap: 0.9rem;
    padding: 0.85rem 1.1rem;
    align-items: center;
}

.ta-tx-head {
    background: rgba(15, 23, 42, 0.02);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    font-weight: 800;
    color: rgba(15, 23, 42, 0.72);
}

.ta-tx-row {
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

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

.ta-tx-empty {
    padding: 1.4rem 1.1rem;
    color: rgba(15, 23, 42, 0.55);
}

.ta-tx-id {
    font-weight: 800;
}

.ta-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.8rem;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: rgba(15, 23, 42, 0.04);
    color: rgba(15, 23, 42, 0.8);
}

.ta-pill.successful {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: #047857;
}

.ta-pill.failed {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #b91c1c;
}

.ta-pill.pending {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.24);
    color: #92400e;
}

.ta-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    display: grid;
    place-items: center;
    padding: 1.2rem;
    z-index: 80;
}

.ta-modal-card {
    width: min(680px, 96vw);
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.18);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.3);
    overflow: hidden;
}

.ta-modal-head {
    padding: 0.9rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(15, 23, 42, 0.02);
}

.ta-modal-close {
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: #ffffff;
    border-radius: 10px;
    padding: 0.35rem 0.55rem;
    cursor: pointer;
}

.ta-modal-body {
    padding: 1.1rem;
    display: grid;
    gap: 0.7rem;
}

.ta-kv {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 1rem;
    align-items: baseline;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed rgba(15, 23, 42, 0.12);
}

.ta-kv span {
    color: rgba(15, 23, 42, 0.6);
    font-weight: 700;
    font-size: 0.9rem;
}

.ta-kv strong {
    font-weight: 800;
}

@media (max-width: 980px) {
    .ta-tx-filters {
        grid-template-columns: 1fr;
    }

    .ta-tx-head,
    .ta-tx-row {
        grid-template-columns: 1fr;
    }

    .ta-kv {
        grid-template-columns: 1fr;
    }
}

.ta-batch-panel {
    padding: 1.2rem 1.35rem;
    border-radius: 18px;
}

.ta-batch-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 0.8rem;
    align-items: center;
    margin: 0.75rem 0 1rem;
}

.ta-batch-table {
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
}

.ta-batch-head,
.ta-batch-row {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1fr 180px;
    gap: 0.9rem;
    padding: 0.85rem 1.1rem;
    align-items: center;
}

.ta-batch-head {
    background: rgba(15, 23, 42, 0.02);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    font-weight: 800;
    color: rgba(15, 23, 42, 0.72);
}

.ta-batch-row {
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

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

.ta-batch-empty {
    padding: 1.4rem 1.1rem;
    color: rgba(15, 23, 42, 0.55);
}

.ta-batch-details-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.ta-batch-detail-head,
.ta-batch-detail-row {
    display: grid;
    grid-template-columns: 160px 110px 110px 1.6fr 180px 110px;
    gap: 0.9rem;
    padding: 0.85rem 1.1rem;
    align-items: center;
}

.ta-batch-detail-head {
    background: rgba(15, 23, 42, 0.02);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    font-weight: 800;
    color: rgba(15, 23, 42, 0.72);
}

.ta-batch-detail-row {
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.ta-batch-detail-row:last-child {
    border-bottom: 0;
}

@media (max-width: 980px) {
    .ta-batch-search {
        grid-template-columns: 1fr;
    }

    .ta-batch-head,
    .ta-batch-row,
    .ta-batch-detail-head,
    .ta-batch-detail-row {
        grid-template-columns: 1fr;
    }

    .ta-batch-details-head {
        flex-direction: column;
    }
}

.ta-payments {
    display: grid;
    gap: 1rem;
}

.ta-payments-portal {
    padding: 1.2rem 1.35rem;
    border-radius: 18px;
}

.ta-payments-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ta-payments-title {
    margin: 0;
    color: #1b63ea;
}

.ta-payments-filter {
    display: grid;
    grid-template-columns: 220px 110px;
    gap: 0.7rem;
    align-items: center;
}

.ta-payments-section {
    margin-top: 1rem;
}

.ta-payments-section-title {
    font-weight: 850;
    margin: 0.35rem 0 0.5rem;
}

.ta-payments-section-title.pending {
    color: #b45309;
}

.ta-payments-section-title.approved {
    color: #047857;
}

.ta-payments-section-title.rejected {
    color: #b91c1c;
}

.ta-payments-box {
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 14px;
    background: #ffffff;
    padding: 0.95rem;
}

.ta-payments-empty {
    min-height: 76px;
    display: grid;
    place-items: center;
    color: rgba(15, 23, 42, 0.55);
}

.ta-payments-list {
    display: grid;
    gap: 0.6rem;
}

.ta-payments-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px 220px;
    gap: 0.9rem;
    align-items: center;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.01);
}

.ta-payments-next {
    display: block;
    margin: 1.4rem auto 0.2rem;
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    background: #1b63ea;
    border-color: rgba(27, 99, 234, 0.25);
    color: #ffffff;
}

.ta-payments-next:disabled {
    opacity: 0.7;
}

@media (max-width: 980px) {
    .ta-payments-head {
        flex-direction: column;
    }

    .ta-payments-filter {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .ta-payments-row {
        grid-template-columns: 1fr;
    }
}

.ta-transfers {
    display: grid;
    gap: 1rem;
}

.ta-transfers-portal {
    padding: 1.2rem 1.35rem;
    border-radius: 18px;
}

.ta-transfers-guide {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.95rem 1rem;
    margin-bottom: 1.1rem;
}

.ta-transfers-guide-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 850;
    color: #1b63ea;
    margin-bottom: 0.75rem;
}

.ta-transfers-guide-dot {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(27, 99, 234, 0.1);
    color: #1b63ea;
    font-weight: 900;
    font-size: 0.75rem;
}

.ta-transfers-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.ta-transfers-guide-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    padding: 0.85rem 0.95rem;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.ta-transfers-guide-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(15, 23, 42, 0.22);
}

.ta-transfers-guide-card.approve::before {
    background: #1b63ea;
}

.ta-transfers-guide-card.reject::before {
    background: #dc2626;
}

.ta-transfers-guide-card.cancel::before {
    background: #0f172a;
}

.ta-transfers-filter {
    display: grid;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.ta-transfers-filter-input {
    width: 100%;
}

.ta-transfers-filter-btn {
    justify-self: start;
    background: #1b63ea;
    border-color: rgba(27, 99, 234, 0.25);
    color: #ffffff;
    border-radius: 10px;
    padding: 0.55rem 1rem;
}

.ta-transfers-section {
    margin-top: 1.1rem;
}

.ta-transfers-section-title {
    font-weight: 900;
    margin: 0.35rem 0 0.5rem;
}

.ta-transfers-section-title.pending {
    color: #b45309;
}

.ta-transfers-section-title.successful {
    color: #047857;
}

.ta-transfers-section-title.rejected {
    color: #dc2626;
}

.ta-transfers-box {
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 14px;
    background: #ffffff;
    padding: 0.95rem;
}

.ta-transfers-empty {
    min-height: 76px;
    display: grid;
    place-items: center;
    color: rgba(15, 23, 42, 0.55);
}

.ta-transfers-list {
    display: grid;
    gap: 0.6rem;
}

.ta-transfers-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px 260px;
    gap: 0.9rem;
    align-items: center;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.01);
}

.ta-transfers-row-amount {
    justify-self: end;
}

.ta-transfers-row-actions {
    display: flex;
    gap: 0.45rem;
    justify-self: end;
    flex-wrap: wrap;
}

.ta-transfers-row-actions .chip {
    padding: 0.45rem 0.65rem;
    border-radius: 10px;
}

.ta-transfers-row-actions .chip.danger {
    background: rgba(220, 38, 38, 0.12);
    border-color: rgba(220, 38, 38, 0.25);
    color: #991b1b;
}

.ta-transfers-row-actions .chip.ghost {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.16);
    color: rgba(15, 23, 42, 0.85);
}

.ta-transfers-next {
    display: block;
    margin: 1.4rem auto 0.2rem;
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    background: #1b63ea;
    border-color: rgba(27, 99, 234, 0.25);
    color: #ffffff;
}

.ta-transfers-next:disabled {
    opacity: 0.7;
}

@media (max-width: 980px) {
    .ta-transfers-guide-grid {
        grid-template-columns: 1fr;
    }

    .ta-transfers-row {
        grid-template-columns: 1fr;
    }

    .ta-transfers-row-amount {
        justify-self: start;
    }

    .ta-transfers-row-actions {
        justify-self: start;
    }
}

.ta-funduser {
    display: grid;
    place-items: start center;
    padding: 0.25rem 0 0.75rem;
}

.ta-funduser-card {
    width: min(420px, 100%);
    padding: 1.25rem 1.25rem 1.3rem;
    border-radius: 18px;
}

.ta-funduser-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.1rem;
}

.ta-funduser-icon {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: #1b63ea;
    opacity: 0.9;
}

.ta-funduser-title {
    font-weight: 900;
    font-size: 1.05rem;
    color: rgba(15, 23, 42, 0.9);
}

.ta-funduser-field {
    margin-top: 0.9rem;
}

.ta-funduser-label {
    font-weight: 900;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.65);
    margin-bottom: 0.35rem;
}

.ta-funduser-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 0.6rem;
    align-items: center;
}

.ta-funduser-lookup {
    background: #1b63ea;
    border-color: rgba(27, 99, 234, 0.25);
    color: #ffffff;
    border-radius: 10px;
    padding: 0.55rem 0.85rem;
}

.ta-funduser-preview {
    margin-top: 0.55rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.01);
}

.ta-funduser-preview-muted {
    color: rgba(15, 23, 42, 0.55);
}

.ta-funduser-preview-name {
    font-weight: 850;
}

.ta-funduser-type-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.ta-funduser-type {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    background: #ffffff;
    padding: 0.65rem 0.65rem;
    display: grid;
    gap: 0.45rem;
    justify-items: center;
    color: rgba(15, 23, 42, 0.82);
    font-weight: 800;
}

.ta-funduser-type.active {
    outline: 2px solid rgba(27, 99, 234, 0.35);
    border-color: rgba(27, 99, 234, 0.25);
}

.ta-funduser-type-dot {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-weight: 900;
}

.ta-funduser-type-dot.credit {
    background: rgba(34, 197, 94, 0.12);
    color: #166534;
}

.ta-funduser-type-dot.debit {
    background: rgba(220, 38, 38, 0.12);
    color: #991b1b;
}

.ta-funduser-type-dot.refund {
    background: rgba(27, 99, 234, 0.12);
    color: #1b63ea;
}

.ta-funduser-note {
    margin-top: 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(204, 179, 90, 0.35);
    background: rgba(247, 243, 232, 0.85);
    padding: 0.75rem 0.8rem;
    color: rgba(15, 23, 42, 0.8);
    font-size: 0.92rem;
}

.ta-funduser-confirm {
    margin-top: 1rem;
    width: 100%;
    border-radius: 12px;
}

@media (max-width: 980px) {
    .ta-funduser-input-row {
        grid-template-columns: 1fr;
    }
}

.ta-users-tools {
    padding: 1.2rem 1.35rem;
    border-radius: 18px;
}

.ta-users-tools-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.ta-users-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 0.8rem;
    align-items: center;
}

.ta-users-search input {
    width: 100%;
}

.ta-users-block {
    padding: 0;
    overflow: hidden;
    border-radius: 18px;
}

.ta-users-block-title {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.ta-users-table {
    background: #ffffff;
}

.ta-users-head,
.ta-users-row {
    display: grid;
    grid-template-columns: 60px 1.35fr 1fr 0.9fr 1fr 1fr 210px;
    gap: 0.9rem;
    padding: 0.85rem 1.2rem;
    align-items: center;
}

.ta-users-head {
    font-weight: 800;
    color: rgba(15, 23, 42, 0.75);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(15, 23, 42, 0.02);
}

.ta-users-row {
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

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

.ta-users-empty {
    padding: 1.4rem 1.2rem;
    color: rgba(15, 23, 42, 0.55);
}

.ta-users-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.ta-icon-btn {
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #ffffff;
    color: rgba(15, 23, 42, 0.78);
    border-radius: 10px;
    padding: 0.45rem 0.6rem;
    font-size: 0.85rem;
    line-height: 1;
}

.ta-icon-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ta-icon-btn.warn {
    border-color: rgba(239, 68, 68, 0.26);
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.08);
}

.ta-icon-btn.ok {
    border-color: rgba(16, 185, 129, 0.24);
    color: #047857;
    background: rgba(16, 185, 129, 0.08);
}

.ta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 750;
    font-size: 0.8rem;
}

.ta-badge.ok {
    color: #047857;
}

.ta-badge.off {
    color: #b45309;
}

@media (max-width: 980px) {
    .ta-users-head,
    .ta-users-row {
        grid-template-columns: 1fr;
    }

    .ta-users-actions {
        justify-content: flex-start;
    }

    .ta-users-search {
        grid-template-columns: 1fr;
    }
}

.ta-simple-table {
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
}

.ta-simple-head {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 0.7fr 0.6fr;
    gap: 1rem;
    padding: 1rem 1.15rem;
    font-weight: 800;
    color: rgba(15, 23, 42, 0.78);
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.ta-simple-empty {
    padding: 2.6rem 1.15rem;
    display: grid;
    place-items: center;
    color: rgba(15, 23, 42, 0.55);
    font-weight: 650;
}

.ta-simple-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 0.7fr 0.6fr;
    gap: 1rem;
    padding: 0.95rem 1.15rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    align-items: center;
}

.ta-row-actions {
    display: inline-flex;
    gap: 0.45rem;
    justify-content: flex-end;
}

.chip.danger {
    border-color: rgba(239, 68, 68, 0.26);
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.08);
}

.chip.danger:hover {
    background: rgba(239, 68, 68, 0.12);
}

@media (max-width: 860px) {
    .ta-simple-head {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .ta-simple-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .ta-row-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 860px) {
    .ta-create-user {
        grid-template-columns: 1fr;
    }

    .ta-onboard-card {
        min-height: 0;
        justify-items: start;
        text-align: left;
    }

    .ta-onboard-icon {
        margin-top: 0;
    }

    .ta-form-grid {
        grid-template-columns: 1fr;
    }
}

.ta-accordion {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.ta-accordion details {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
}

.ta-accordion summary {
    list-style: none;
    cursor: pointer;
    padding: 0.9rem 1rem;
    font-weight: 650;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ta-accordion summary::-webkit-details-marker {
    display: none;
}

.ta-accordion summary::after {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(15, 23, 42, 0.55);
    border-bottom: 2px solid rgba(15, 23, 42, 0.55);
    transform: rotate(-45deg);
    transition: transform 140ms ease;
    opacity: 0.8;
    flex: 0 0 auto;
}

.ta-accordion details[open] summary::after {
    transform: rotate(45deg);
}

.ta-accordion details > p {
    margin: 0;
    padding: 0 1rem 1rem;
}

.ta-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.7rem 0.2rem 0.2rem;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.ta-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(36, 107, 255, 0.12);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    padding: 0.45rem 0.55rem;
    border-radius: 18px;
}

.ta-topbar-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(36, 107, 255, 0.12);
    background: rgba(255, 255, 255, 0.75);
    color: #0b3a88;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.ta-menu-toggle {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    border-radius: 16px;
}

.ta-shell-collapsed .ta-menu-toggle {
    /* Slightly tighter so it visually matches the collapsed sidebar width */
    width: 40px;
    height: 40px;
}

.ta-topbar-icon:disabled {
    opacity: 0.65;
    cursor: default;
}

.ta-topbar-icon svg {
    width: 18px;
    height: 18px;
}

.ta-topbar-user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.35rem 0.65rem;
    border-radius: 16px;
    border: 1px solid rgba(36, 107, 255, 0.12);
    background: rgba(255, 255, 255, 0.75);
}

.ta-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 900;
    color: #0b3a88;
    background: rgba(36, 107, 255, 0.12);
}

.ta-user-meta {
    display: grid;
    gap: 0.1rem;
}

.ta-user-meta strong {
    font-size: 0.92rem;
}

.ta-user-meta span {
    font-size: 0.8rem;
    color: rgba(31, 36, 48, 0.6);
}

.ta-page-head {
    padding: 0.65rem 0.15rem 0.75rem;
}

.ta-breadcrumb {
    margin: 0;
    color: rgba(31, 36, 48, 0.55);
    font-size: 0.86rem;
}

.ta-breadcrumb span {
    display: inline-block;
    margin: 0 0.45rem;
    opacity: 0.7;
}

.ta-page-title {
    margin: 0.35rem 0 0;
    font-size: 1.45rem;
    font-weight: 950;
    letter-spacing: 0.02em;
}

.sidebar-copy {
    margin: 0;
    color: var(--muted-500);
    line-height: 1.5;
    font-size: 0.92rem;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    padding: 1.25rem 1rem;
}

.sidebar-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-weight: 800;
    font-size: 1rem;
    color: #8f6f1d;
    background: #f6f3e6;
    border: 1px solid var(--line-200);
}

.sidebar-kicker {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a93aa;
    font-weight: 800;
}

.sidebar-profile {
    display: grid;
    gap: 0.35rem;
}

.sidebar-email {
    margin: 0 0 0.3rem;
    color: var(--ink-950);
    font-weight: 800;
    word-break: break-word;
    font-size: 1rem;
}

.section-nav {
    display: grid;
    gap: 0.65rem;
    margin-top: 1.3rem;
}

.tenant-admin-nav {
    display: grid;
    gap: 0.35rem;
    margin-top: 1.3rem;
}

.tenant-admin-link {
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    display: grid;
    grid-template-columns: 28px 1fr 18px;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    cursor: pointer;
    color: var(--ink-900);
    text-align: left;
    font: inherit;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.tenant-admin-link:hover {
    border-color: rgba(36, 107, 255, 0.22);
    background: rgba(232, 240, 255, 0.4);
}

.tenant-admin-link.active {
    background: #e8f0ff;
    color: #0b3a88;
    border-color: rgba(36, 107, 255, 0.22);
}

.tenant-admin-icon svg {
    width: 18px;
    height: 18px;
}

.tenant-admin-title {
    font-weight: 800;
    font-size: 0.95rem;
}

.tenant-admin-caret svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.tenant-admin-sub {
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    padding: 0.55rem 0.9rem 0.55rem 2.3rem;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    color: #6f7892;
    font-weight: 750;
    font: inherit;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.tenant-admin-sub:hover {
    background: rgba(232, 240, 255, 0.35);
}

.tenant-admin-sub.active {
    background: #f3f7ff;
    color: #0b3a88;
    border-color: rgba(36, 107, 255, 0.18);
}

.section-link {
    width: 100%;
    text-align: left;
    border: 1px solid transparent;
    background: transparent;
    color: var(--ink-900);
    border-radius: 14px;
    padding: 0.85rem 0.9rem;
    font: inherit;
    cursor: pointer;
    display: grid;
    gap: 0.22rem;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.section-link:hover {
    border-color: var(--accent-border);
    background: rgba(255, 255, 255, 0.62);
}

.section-link.active {
    background: #fffdf6;
    border-color: var(--accent-border);
    color: var(--ink-950);
}

.section-link-title {
    font-weight: 700;
    color: var(--ink-950);
}

.section-link-copy {
    font-size: 0.83rem;
    color: #6f7892;
}

.sidebar-logout {
    justify-self: stretch;
    align-self: end;
    margin-top: auto;
    background: #fffdf6;
    color: #6a6250;
    border-color: var(--line-200);
    text-align: center;
}

.brand-block {
    padding: 2.4rem;
    background: #ebe1bf;
    color: var(--ink-950);
}

.brand-block h1 {
    font-size: clamp(1.5rem, 3vw, 2.6rem);
    margin: 0.7rem 0 0.8rem;
}

.brand-block p {
    max-width: 35ch;
    line-height: 1.55;
}

.auth-brand {
    display: grid;
    align-content: space-between;
    border-right: 1px solid var(--line-200);
}

.auth-brand-head {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.auth-brand-head strong {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.auth-brand-copy {
    display: grid;
    align-content: center;
    gap: 0.3rem;
}

.auth-mark {
    background: #f8f4e8;
}

.auth-footnote {
    align-self: end;
    color: #8b8573;
    font-size: 0.88rem;
}

.auth-stage {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 2rem 0;
}

.panel {
    background: var(--surface-1);
    border: 1px solid var(--line-200);
    border-radius: 18px;
    padding: 1.2rem;
    box-shadow: 0 8px 24px rgba(121, 104, 49, 0.06);
}

.auth-panel {
    display: grid;
    gap: 0.6rem;
    align-content: start;
    padding: 1.6rem;
}

.auth-card {
    width: min(420px, 100%);
    background: #efe6c8;
}

label {
    color: var(--ink-700);
    font-size: 0.9rem;
    font-weight: 700;
}

input {
    width: 100%;
    border: 1px solid #d4ccb1;
    border-radius: 10px;
    padding: 0.7rem 0.8rem;
    font: inherit;
    background: #fbfaf7;
}

select {
    width: 100%;
    border: 1px solid #d4ccb1;
    border-radius: 10px;
    padding: 0.7rem 0.8rem;
    font: inherit;
    background: #fbfaf7;
}

input:focus {
    outline: 2px solid rgba(239, 190, 70, 0.18);
    border-color: #c9ae56;
}

.cta,
.chip {
    border: 0;
    border-radius: 12px;
    font: inherit;
    cursor: pointer;
}

.cta {
    margin-top: 0.8rem;
    padding: 0.8rem 1rem;
    background: linear-gradient(90deg, #efbe46, #efbe46);
    color: #3e3310;
    font-weight: 700;
    box-shadow: none;
}

.mode-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.chip {
    padding: 0.55rem 0.85rem;
    background: #f7f3e8;
    color: var(--ink-700);
    border: 1px solid var(--line-200);
}

.chip.active {
    background: #fffdf6;
    border-color: #ccb35a;
    color: var(--ink-950);
}

.action-chip {
    justify-self: start;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.eyebrow {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--muted-500);
}

h2,
h3,
h4 {
    margin: 0.35rem 0;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.ta-dashboard {
    display: grid;
    gap: 1rem;
}

.ta-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 1rem;
    padding: 1.1rem;
    border-radius: 18px;
    background: linear-gradient(90deg, #2f74ff 0%, #246bff 60%, #1f5ce6 100%);
    color: #ffffff;
    box-shadow: 0 12px 32px rgba(36, 107, 255, 0.18);
}

.tenant-admin-main .panel {
    border-color: rgba(36, 107, 255, 0.12);
    box-shadow: 0 10px 26px rgba(23, 54, 113, 0.06);
}

.tenant-admin-main .ta-card.panel {
    border-radius: 16px;
}

.tenant-admin-main .ta-hero {
    border-radius: 20px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 18px 44px rgba(36, 107, 255, 0.2);
}

.ta-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ta-kicker {
    margin: 0;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.72rem;
    opacity: 0.85;
}

.ta-amount {
    margin: 0.35rem 0 0;
    font-size: 1.65rem;
    font-weight: 900;
}

.ta-balance-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.7rem;
    flex-wrap: wrap;
}

.tenant-admin-main .ta-balance-actions .chip {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
}

.tenant-admin-main .ta-balance-actions .chip:hover {
    background: rgba(255, 255, 255, 0.22);
}

.ta-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    align-content: center;
}

.ta-mini {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 0.75rem 0.85rem;
    display: grid;
    gap: 0.25rem;
}

.tenant-admin-main .ta-mini {
    border-radius: 16px;
    padding: 0.85rem 0.95rem;
}

.ta-mini span {
    font-size: 0.82rem;
    opacity: 0.85;
}

.ta-mini strong {
    font-size: 1.1rem;
}

.ta-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.ta-card {
    display: grid;
    gap: 0.75rem;
}

.ta-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ta-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(36, 107, 255, 0.18);
    background: rgba(36, 107, 255, 0.08);
    font-weight: 800;
    font-size: 0.78rem;
    color: #0b3a88;
}

.tenant-admin-main .ta-pill {
    background: rgba(36, 107, 255, 0.1);
    border-color: rgba(36, 107, 255, 0.2);
}

.ta-quick-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.ta-primary {
    background: #e8f0ff;
    border-color: rgba(36, 107, 255, 0.22);
    color: #0b3a88;
}

.ta-search-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.6rem;
    align-items: center;
}

.tenant-admin-main .ta-search-row input {
    border-radius: 14px;
    padding: 0.75rem 0.9rem;
    border-color: rgba(36, 107, 255, 0.14);
    background: #ffffff;
}

.tenant-admin-main .ta-search-row .chip {
    border-radius: 14px;
    padding: 0.7rem 0.9rem;
}

.ta-table {
    border: 1px solid var(--line-200);
    border-radius: 14px;
    overflow: hidden;
    background: #fffdf6;
}

.tenant-admin-main .ta-table {
    background: #ffffff;
    border-color: rgba(36, 107, 255, 0.12);
    border-radius: 16px;
}

.ta-table-head,
.ta-table-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    align-items: center;
}

.ta-table-head {
    background: rgba(36, 107, 255, 0.06);
    font-weight: 900;
    color: var(--ink-950);
    font-size: 0.86rem;
}

.ta-table-row {
    border-top: 1px solid rgba(221, 212, 181, 0.6);
    color: var(--ink-900);
    font-size: 0.9rem;
}

.tenant-admin-main .ta-table-row {
    border-top-color: rgba(36, 107, 255, 0.08);
}

.tenant-admin-main .ta-table-row:nth-child(even) {
    background: rgba(36, 107, 255, 0.03);
}

.ta-status {
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
}

.ta-status.successful {
    color: #1c7a3a;
}

.ta-status.pending {
    color: #b27400;
}

.ta-status.failed {
    color: #b91c1c;
}

.kpi p {
    font-size: 1.7rem;
    font-weight: 800;
    margin: 0.5rem 0 0;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.helper-card {
    border: 1px solid var(--line-200);
    border-radius: 14px;
    padding: 0.9rem;
    background: #fffdf6;
    display: grid;
    gap: 0.35rem;
}

.helper-card strong {
    color: var(--ink-950);
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

ul {
    margin: 0.6rem 0 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.45rem;
}

.storefront-header {
    margin-bottom: 1rem;
}

.storefront-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #ff7d1a, #e36a14);
    color: #fff;
}

.storefront-balance {
    min-width: 180px;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    display: grid;
    gap: 0.2rem;
}

.storefront-balance span {
    font-size: 0.8rem;
    opacity: 0.9;
}

.storefront-balance strong {
    font-size: 1.4rem;
}

.storefront-grid {
    align-items: start;
}

.service-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.8rem;
    margin-top: 0.85rem;
}

.service-chip {
    border: 1px solid #d9dfe9;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f6f7fa);
    padding: 0.95rem 0.85rem;
    display: grid;
    gap: 0.55rem;
    justify-items: center;
    text-align: center;
    cursor: pointer;
    transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.service-chip:hover {
    transform: translateY(-1px);
    border-color: var(--accent-border);
    box-shadow: 0 10px 22px rgba(255, 145, 56, 0.12);
}

.service-chip.active {
    border-color: var(--accent-border);
    background: linear-gradient(180deg, #fff8f1, #ffe8d2);
}

.service-badge {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: #f3f4f6;
    font-weight: 800;
    color: var(--ink-950);
}

.service-name {
    font-weight: 700;
    color: var(--ink-950);
}

.purchase-form-card {
    background: #fcfbf7;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.8rem;
    margin-top: 0.7rem;
}

.product-card {
    border: 1px solid #e0d8bf;
    border-radius: 18px;
    padding: 1rem;
    background: linear-gradient(180deg, #ffffff, #faf7ef);
    display: grid;
    gap: 0.55rem;
}

.product-select-card {
    text-align: left;
    cursor: pointer;
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.product-select-card:hover {
    transform: translateY(-1px);
    border-color: var(--accent-border);
    box-shadow: 0 10px 22px rgba(255, 145, 56, 0.12);
}

.product-select-card.active {
    border-color: var(--accent-border);
    background: linear-gradient(180deg, #fff8f1, #ffe8d2);
}

.buy-btn {
    margin-top: 0.5rem;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 15, 31, 0.45);
    z-index: 25;
}

.purchase-modal {
    position: fixed;
    z-index: 30;
    width: min(520px, 92vw);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    gap: 0.6rem;
}

.form-stack {
    display: grid;
    gap: 0.6rem;
    align-content: start;
}

.toggle-row {
    display: flex;
    gap: 0.65rem;
    align-items: center;
}

.toggle-row input {
    width: auto;
}

.toggle-row label {
    margin: 0;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.data-card {
    display: grid;
    gap: 0.25rem;
    padding: 0.9rem;
    border: 1px solid #e0d8bf;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #faf7ef);
    align-content: start;
}

.workspace-topbar {
    min-height: 68px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line-200);
}

.topbar-search {
    flex: 1;
    max-width: 420px;
}

.topbar-search input {
    border-radius: 12px;
    background: transparent;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.topbar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--line-200);
    border-radius: 12px;
    background: #fffdf6;
    font-weight: 700;
    color: var(--ink-900);
}

.topbar-user {
    display: grid;
    gap: 0.1rem;
    min-height: 40px;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--line-200);
    border-radius: 12px;
    background: #fffdf6;
}

.topbar-user strong {
    font-size: 0.92rem;
}

.topbar-user span {
    color: var(--muted-500);
    font-size: 0.78rem;
}

.page-intro {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    background: #f3ecd5;
}

.page-intro h2 {
    font-size: 2rem;
}

.page-intro-context {
    min-width: 220px;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line-200);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.62);
    display: grid;
    gap: 0.25rem;
}

.page-intro-context span {
    color: var(--muted-500);
    font-size: 0.84rem;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.storefront-app-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    place-items: start center;
    padding: 1rem 0 6rem;
}

.storefront-mobile {
    width: min(420px, 94vw);
    display: grid;
    gap: 1rem;
}

.storefront-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.storefront-mobile-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.storefront-mobile-user strong,
.storefront-account-head strong {
    display: block;
}

.storefront-mobile-user span,
.storefront-account-head span,
.storefront-history-item span {
    color: var(--muted-500);
    font-size: 0.84rem;
}

.storefront-avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-200);
    background: #fffdf6;
    font-weight: 800;
}

.storefront-avatar.large {
    width: 58px;
    height: 58px;
    font-size: 1.1rem;
}

.storefront-support,
.storefront-fund,
.storefront-back {
    border: 0;
    border-radius: 999px;
    padding: 0.7rem 1rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.storefront-support {
    background: #fffdf6;
    border: 1px solid var(--line-200);
}

.storefront-wallet-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #5f15d8, #3d08af);
    color: #fff;
}

.storefront-wallet-hero span {
    display: block;
    font-size: 0.84rem;
    opacity: 0.9;
}

.storefront-wallet-hero strong {
    display: block;
    font-size: 2rem;
    margin-top: 0.2rem;
}

.storefront-fund {
    background: #fff;
    color: #2c2353;
}

.storefront-mini-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.mini-action {
    border: 0;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    background: #fffdf6;
    border: 1px solid var(--line-200);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    justify-content: center;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.mini-action-icon {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #f3ecd5;
}

.storefront-services-panel,
.storefront-account-card {
    background: #fff;
}

.storefront-service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.storefront-service-item {
    border: 0;
    background: transparent;
    display: grid;
    justify-items: center;
    gap: 0.4rem;
    text-align: center;
    font: inherit;
    cursor: pointer;
}

.storefront-service-item strong {
    font-size: 0.86rem;
}

.storefront-service-item span:last-child {
    font-size: 0.72rem;
    color: var(--muted-500);
}

.storefront-service-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: #f4f2ec;
    border: 1px solid var(--line-200);
    color: #4e3e8a;
}

.storefront-service-icon svg,
.storefront-nav-icon svg {
    width: 24px;
    height: 24px;
}

.storefront-promo-card,
.storefront-update-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.storefront-fund-card input {
    margin-top: 0.25rem;
}

.storefront-fund-result {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #efe7cd;
    display: grid;
    gap: 0.5rem;
}

.storefront-paylink {
    display: inline-flex;
    justify-content: center;
    text-decoration: none;
}

.storefront-sim {
    justify-self: start;
}

.storefront-update-card {
    display: grid;
}

.storefront-detail-header {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.storefront-back {
    background: #f4f2ec;
    color: var(--ink-950);
}

.storefront-product-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.mobile-purchase-form {
    display: grid;
    gap: 0.7rem;
}

.storefront-history-list {
    display: grid;
    gap: 0.75rem;
}

.storefront-history-item {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid #efe7cd;
}

.storefront-history-item:last-child {
    border-bottom: 0;
}

.history-meta {
    text-align: right;
    display: grid;
    gap: 0.15rem;
}

.storefront-account-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.storefront-account-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.storefront-stat {
    padding: 0.9rem;
    border-radius: 14px;
    background: #faf7ef;
    border: 1px solid #e7dec0;
    display: grid;
    gap: 0.2rem;
}

.storefront-account-actions {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.storefront-account-actions .sidebar-logout {
    margin-top: 0;
}

.storefront-bottom-nav {
    position: sticky;
    bottom: 0.8rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
    padding: 0.6rem;
    border: 1px solid var(--line-200);
    border-radius: 18px;
    background: rgba(255, 253, 246, 0.94);
    backdrop-filter: blur(8px);
}

.storefront-nav-item {
    border: 0;
    background: transparent;
    border-radius: 14px;
    padding: 0.65rem 0.4rem;
    display: grid;
    justify-items: center;
    gap: 0.2rem;
    font: inherit;
    cursor: pointer;
    color: var(--muted-500);
}

.storefront-nav-item.active {
    background: #f3ecd5;
    color: var(--ink-950);
}

.storefront-nav-icon {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid var(--line-200);
    color: currentColor;
}

.loading {
    margin-top: 3rem;
    text-align: center;
}

@media (max-width: 900px) {
    .auth-wrap,
    .split-grid,
    .kpi-grid,
    .workspace-shell {
        grid-template-columns: 1fr;
    }

    .workspace-sidebar {
        position: static;
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line-200);
    }

    .section-link:hover {
        transform: none;
    }

    .auth-wrap,
    .auth-stage {
        min-height: auto;
    }

    .auth-brand {
        border-right: 0;
        border-bottom: 1px solid var(--line-200);
        min-height: 320px;
    }

    .workspace-main {
        padding: 0 1rem 1.5rem;
    }

    .workspace-topbar,
    .page-intro {
        flex-direction: column;
        align-items: stretch;
    }

    .storefront-service-grid,
    .storefront-product-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .storefront-topbar {
        flex-direction: column;
        align-items: stretch;
    }
}
