
.avatar-upload {
    position: relative;
    max-width: 100%;
}

.avatar-upload .avatar-edit {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    display: flex;
    gap: 6px;
}

.avatar-upload .avatar-edit input[type="file"],
.avatar-upload .avatar-edit input[type="hidden"] {
    display: none;
}

.avatar-upload .avatar-edit label.imageUpload,
.avatar-upload .avatar-edit label.imageRemove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--color-card);
    border: 1px solid transparent;
    box-shadow: 0 2px 4px rgba(var(--color-black-rgb), 0.12);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.avatar-upload .avatar-edit label.imageUpload:hover {
    background-color: var(--color-surface-soft);
    border-color: var(--color-border-strong);
}

.avatar-upload .avatar-edit label.imageRemove {
    color: var(--color-danger);
}

.avatar-upload .avatar-edit label.imageRemove:hover {
    background-color: var(--color-danger-soft);
    border-color: var(--color-danger-strong);
}

.avatar-upload .avatar-preview {
    height: 100px;
    position: relative;
    border-radius: 2%;
    border: 1px dashed var(--color-border-strong);
    overflow: hidden;
}

.avatar-upload .avatar-preview > div {
    height: 100%;
    border-radius: 2%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.admin-user-role-badge {
    --admin-user-role-color: var(--color-primary);
    --admin-user-role-rgb: var(--color-primary-rgb);
    display: inline-flex;
    align-items: center;
    gap: 0.26rem;
    min-height: 1.1rem;
    margin-left: 0.25rem;
    padding: 0.18rem 0.42rem;
    border: 1px solid rgba(var(--admin-user-role-rgb), 0.2);
    border-radius: 999px;
    background: rgba(var(--admin-user-role-rgb), 0.1);
    color: var(--admin-user-role-color);
    font-size: 0.62rem;
    font-weight: var(--font-extrabold);
    line-height: 1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    vertical-align: middle;
    box-shadow: inset 0 1px 0 rgba(var(--color-white-rgb), 0.7);
}

.admin-user-role-badge::before {
    width: 0.3rem;
    height: 0.3rem;
    border-radius: 50%;
    background: var(--admin-user-role-color);
    box-shadow: 0 0 0 0.18rem rgba(var(--admin-user-role-rgb), 0.1);
    content: "";
}

.admin-user-role-badge--user {
    --admin-user-role-color: var(--role-user-primary);
    --admin-user-role-rgb: var(--role-user-primary-rgb);
}

.admin-user-role-badge--merchant {
    --admin-user-role-color: var(--role-merchant-primary);
    --admin-user-role-rgb: var(--role-merchant-primary-rgb);
}

.admin-user-role-badge--agent {
    --admin-user-role-color: var(--role-agent-primary);
    --admin-user-role-rgb: var(--role-agent-primary-rgb);
}

[data-coreui-theme="dark"] .admin-user-role-badge {
    border-color: rgba(var(--admin-user-role-rgb), 0.32);
    background: rgba(var(--admin-user-role-rgb), 0.16);
    box-shadow: none;
}

.form-control:focus, .form-select:focus {
    border: 1px solid rgba(var(--color-primary-rgb), 0.42);
    box-shadow: 0 0 0 1px rgba(var(--color-primary-rgb), 0.14);
}

.admin-auth-page {
    display: flex;
    align-items: center;
    padding: 1.25rem 0;
    background: var(--color-surface-soft);
}

.admin-auth-container {
    max-width: 1040px;
}

.admin-auth-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.80fr) minmax(22rem, 0.9fr);
    min-height: 18rem;
    overflow: hidden;
    border: 1px solid rgba(var(--color-secondary-rgb), 0.18);
    border-radius: 0.75rem;
    background: rgba(var(--color-white-rgb), 0.95);
}

.admin-auth-showcase {
    position: relative;
    min-height: 100%;
    padding: 1rem;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.admin-auth-showcase__content {
    position: relative;
    z-index: 1;
    max-width: 31rem;
    margin-bottom: 1rem;
    color: var(--color-text-inverse);
}

.admin-auth-showcase__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.72rem;
    border: 1px solid rgba(var(--color-white-rgb), 0.16);
    border-radius: 999px;
    background: rgba(var(--color-white-rgb), 0.12);
    font-size: var(--font-size-rem-072);
    font-weight: var(--font-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-auth-showcase__logo {
    display: block;
    max-width: 9rem;
    max-height: 2.4rem;
    margin-top: 1rem;
    object-fit: contain;
}

.admin-auth-showcase__title {
    margin-top: 1.2rem;
    margin-bottom: 0.75rem;
    font-size: clamp(1.7rem, 2.5vw, 2.35rem);
    font-weight: var(--font-extrabold);
    line-height: 1.1;
}

.admin-auth-showcase__text {
    margin-bottom: 0;
    color: rgba(var(--color-white-rgb), 0.86);
    font-size: var(--font-size-rem-092);
    line-height: 1.65;
}

.admin-auth-showcase__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.admin-auth-showcase__stat {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.6rem;
    border: 1px solid rgba(var(--color-white-rgb), 0.14);
    border-radius: 0.5rem;
    background: rgba(var(--color-text-rgb), 0.15);
}

.admin-auth-showcase__stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 0.3rem;
    background: rgba(var(--color-white-rgb), 0.15);
    color: var(--color-white);
    font-size: var(--font-size-rem-08);
}

.admin-auth-showcase__stat-content {
    display: flex;
    flex-direction: column;
}

.admin-auth-showcase__stat-value {
    font-size: var(--font-size-rem-078);
    font-weight: var(--font-bold);
}

.admin-auth-showcase__stat-label {
    color: rgba(var(--color-white-rgb), 0.82);
    font-size: var(--font-size-rem-068);
}

.admin-auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    background: var(--color-card);
}

.admin-auth-panel__inner {
    width: 100%;
    max-width: 26rem;
    padding: 0.75rem 1rem 0.875rem;
}

.admin-auth-brand {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.75rem;
    text-decoration: none;
}

.admin-auth-brand__logo {
    max-width: 8.5rem;
    max-height: 2.3rem;
    object-fit: contain;
}

.admin-auth-copy {
    margin-bottom: 0.75rem;
}

.admin-auth-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.55rem;
    color: var(--color-primary);
    font-size: var(--font-size-rem-074);
    font-weight: var(--font-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-auth-title {
    margin-bottom: 0.55rem;
    color: var(--color-text);
    font-size: clamp(1.45rem, 1.9vw, 1.95rem);
    font-weight: var(--font-extrabold);
    line-height: 1.12;
}

.admin-auth-subtitle {
    margin-bottom: 0;
    color: var(--color-text-muted);
    font-size: var(--font-size-rem-09);
    line-height: 1.6;
}

.admin-auth-form {
    display: flex;
    flex-direction: column;
}

.admin-auth-label {
    margin-bottom: 0.45rem !important;
    color: var(--color-text-soft);
    font-size: var(--font-size-rem-08);
    font-weight: var(--font-bold);
}

.admin-auth-input-group {
    display: flex;
    align-items: center;
    min-height: 2.5rem !important;
    height: 2.5rem !important;
    border: 1px solid rgba(var(--color-rgb-203-213-225), 0.95);
    border-radius: 0.5rem;
    background: var(--color-white);
    box-sizing: border-box;
    overflow: hidden;
}

.admin-auth-input-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    align-self: stretch;
    border: 0;
    border-right: 1px solid rgba(var(--color-rgb-226-232-240), 0.9);
    border-radius: 0.5rem 0 0 0.5rem;
    background: var(--color-surface-alt);
    color: var(--color-text-muted);
    box-sizing: border-box;
}

.admin-auth-input-icon i {
    display: block;
    line-height: 1;
    transform: translateY(-1px);
}

.admin-auth-input {
    min-height: 2.5rem !important;
    height: 2.5rem !important;
    border: 0 !important;
    border-radius: 0 0.5rem 0.5rem 0;
    background: transparent !important;
    color: var(--color-text);
    font-size: var(--font-size-rem-086);
    line-height: 2.05rem;
    padding: 0 0.75rem;
    transform: translateY(-2px);
    box-shadow: none !important;
    box-sizing: border-box;
}

.admin-auth-input:focus,
.admin-auth-input:focus-visible,
.admin-auth-input:active {
    min-height: 2.5rem !important;
    height: 2.5rem !important;
    border: 0 !important;
    border-radius: 0 0.5rem 0.5rem 0;
    box-shadow: none !important;
    outline: none !important;
    background: transparent !important;
    line-height: 2.05rem !important;
    padding: 0 0.75rem !important;
    transform: translateY(-2px);
}

.admin-auth-input::placeholder {
    color: var(--color-text-faint);
}

.admin-auth-input--code {
    letter-spacing: 0.28em;
    font-weight: var(--font-bold);
}

.admin-auth-error {
    margin-top: 0.45rem;
    color: var(--color-danger-strong);
    font-size: var(--font-size-rem-078);
    font-weight: var(--font-semibold);
}

.admin-auth-check {
    border-color: rgba(var(--color-text-faint-rgb), 0.85) !important;
}

.admin-auth-check:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary) !important;
}

.admin-auth-check-label {
    color: var(--color-text-subtle);
    font-size: var(--font-size-rem-086);
}

.admin-auth-link {
    color: var(--color-primary);
    font-size: var(--font-size-rem-084);
    font-weight: var(--font-semibold);
    text-decoration: none;
}

.admin-auth-link:hover,
.admin-auth-link:focus {
    color: var(--color-primary);
}

.admin-auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 2.5rem;
    border: 0 !important;
    border-radius: 0.5rem !important;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary) 100%) !important;
    box-shadow: none;
    font-size: var(--font-size-rem-086);
    font-weight: var(--font-bold);
}

.admin-auth-submit:hover,
.admin-auth-submit:focus {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary) 100%) !important;
    box-shadow: none;
    transform: none;
}

.admin-auth-helper {
    display: flex;
    justify-content: flex-start;
}

.admin-auth-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-align: center;
    color: var(--color-text-muted);
    font-size: var(--font-size-rem-074);
    line-height: 1.55;
}

.admin-auth-meta__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    color: var(--color-accent);
    font-size: var(--font-size-rem-085);
}

.admin-auth-recaptcha {
    overflow: hidden;
    border-radius: 0.5rem;
}

@media (max-width: 1199.98px) {
    .admin-auth-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-auth-panel__inner {
        max-width: 30rem;
    }
}

@media (max-width: 767.98px) {
    .admin-auth-page {
        padding: 0.85rem 0;
    }

    .admin-auth-shell {
        min-height: auto;
        border-radius: 1rem;
    }

    .admin-auth-panel__inner {
        padding: 1.2rem 1rem 1.35rem;
    }

    .admin-auth-title {
        font-size: var(--font-size-rem-138);
    }

    .admin-auth-input-group,
    .admin-auth-input,
    .admin-auth-submit {
        min-height: 2.85rem;
    }

    .admin-auth-meta {
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        margin-top: 0.85rem !important;
        padding: 0.8rem 1rem;
        border: 1px solid rgba(var(--color-rgb-203-213-225), 0.85);
        border-radius: 0.85rem;
        background: linear-gradient(180deg, var(--color-white), var(--color-surface-alt));
        color: var(--color-text-muted);
        box-shadow: 0 8px 18px rgba(var(--color-text-rgb), 0.035);
    }

    .admin-auth-meta__icon {
        flex: 0 0 auto;
        width: 1.1rem;
        height: 1.1rem;
        margin-top: 0.15rem;
        border-radius: 999px;
        background: transparent;
    }

    .admin-auth-meta span:last-child {
        flex: 0 1 16rem;
        max-width: 16rem;
        text-align: center;
    }
}

.sidebar.sidebar-dark {
    background: linear-gradient(180deg, var(--color-palette-1f2430) 0%, var(--color-palette-202634) 52%, var(--color-palette-1c2230) 100%);
    border-right-color: rgba(var(--color-white-rgb), 0.08) !important;
    box-shadow: inset -1px 0 0 rgba(var(--color-white-rgb), 0.03);
}

.sidebar.sidebar-dark .sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4.25rem;
    padding: 0.5rem 1rem;
    background: rgba(var(--color-white-rgb), 0.02);
    border-bottom: 1px solid rgba(var(--color-white-rgb), 0.08) !important;
}

.sidebar.sidebar-dark .sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 2.85rem;
    width: 100%;
}

.sidebar.sidebar-dark .sidebar-brand-full {
    margin-right: auto;
}

.sidebar.sidebar-dark .sidebar-brand-narrow {
    margin-left: auto;
    margin-right: auto;
}

.sidebar.sidebar-dark .sidebar-nav {
    --cui-sidebar-nav-link-icon-width: 1.375rem;
    --cui-sidebar-nav-link-icon-height: 1.375rem;
    --cui-sidebar-nav-link-icon-font-size: 1.375rem;
    padding: 0.875rem 0.625rem 1rem;
}

.sidebar.sidebar-dark .sidebar-footer {
    border-top-color: rgba(var(--color-white-rgb), 0.08) !important;
    background: rgba(var(--color-white-rgb), 0.015);
}

.sidebar .nav-link.active {
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.24), rgba(var(--color-rgb-99-102-241), 0.14));
    border: 1px solid rgba(var(--color-rgb-129-140-248), 0.22);
    box-shadow: 0 10px 24px rgba(var(--color-text-rgb), 0.18), 0 0 0 1px rgba(var(--color-rgb-99-102-241), 0.04), 0 0 18px rgba(var(--color-rgb-99-102-241), 0.12), inset 0 1px 0 rgba(var(--color-white-rgb), 0.04);
    font-weight: var(--font-medium);
    color: var(--color-white);
    position: relative;
}

.sidebar .nav-link.active::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 9px;
    bottom: 9px;
    width: 3px;
    background-color: var(--color-primary);
    border-radius: 0 999px 999px 0;
    box-shadow: 0 0 14px rgba(var(--color-rgb-99-102-241), 0.45);
}

.sidebar .nav-group.show > .nav-link {
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.16), rgba(var(--color-rgb-99-102-241), 0.08));
    border: 1px solid rgba(var(--color-rgb-129-140-248), 0.14);
    color: var(--color-surface-alt);
    font-weight: var(--font-medium);
}

.sidebar .nav-group-items {
    transition: all 0.2s ease-in-out !important;
}

.sidebar .nav-group.show > .nav-group-items {
    margin: 0.3rem 0 0.45rem 0.4rem;
    padding: 0.45rem;
    border-left: 1px solid rgba(var(--color-text-faint-rgb), 0.14);
    border-radius: 0.95rem;
    background: linear-gradient(180deg, rgba(var(--color-white-rgb), 0.03), rgba(var(--color-white-rgb), 0.015));
}


.card-header {
    border-bottom: var(--cui-border-width) solid var(--cui-border-color);
}

thead {
    background-color: var(--cui-card-header-bg) !important;
}

.coevs-switch {
    width: 2.65rem !important;
    height: 1.35rem !important;
    margin-top: 0;
    border-color: var(--color-border-strong);
    background-color: var(--color-surface-soft);
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.coevs-switch:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.16rem var(--color-primary-soft) !important;
}

.coevs-switch:checked {
    border-color: var(--color-primary);
    background-color: var(--color-primary);
}

.admin-switch-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 3.25rem;
    padding: 0.68rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    background: linear-gradient(180deg, var(--color-card), var(--color-surface-alt));
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.admin-switch-card:hover {
    border-color: var(--cui-primary-border-subtle);
    box-shadow: var(--shadow-sm);
}

.admin-switch-card__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.admin-switch-card__track {
    position: relative;
    flex: 0 0 auto;
    width: 2.65rem;
    height: 1.35rem;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-xl);
    background: var(--color-surface-soft);
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.admin-switch-card__track::after {
    position: absolute;
    top: 0.16rem;
    left: 0.18rem;
    width: 0.9rem;
    height: 0.9rem;
    border-radius: var(--radius-xl);
    background: var(--color-text-faint);
    box-shadow: var(--shadow-sm);
    content: "";
    transition: left 0.18s ease, background-color 0.18s ease;
}

.admin-switch-card__input:checked + .admin-switch-card__track {
    border-color: var(--color-primary);
    background: var(--color-primary-soft);
}

.admin-switch-card__input:checked + .admin-switch-card__track::after {
    left: 1.42rem;
    background: var(--color-primary);
}

.admin-switch-card__input:focus + .admin-switch-card__track {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.16rem var(--color-primary-soft);
}

.admin-switch-card__copy {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.admin-switch-card__copy strong {
    color: var(--color-text);
    font-size: var(--font-sm);
    font-weight: var(--font-bold);
    line-height: 1.2;
}

.admin-switch-card__copy small {
    color: var(--color-text-muted);
    font-size: var(--font-xs);
    font-weight: var(--font-medium);
    line-height: 1.35;
}

.admin-switch-card__meta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 4.1rem;
    margin-left: auto;
    color: var(--color-text-muted);
    font-size: var(--font-xs);
    font-weight: var(--font-bold);
    line-height: 1;
    text-align: right;
    white-space: nowrap;
}

.admin-switch-card__state--enabled {
    display: none;
    color: var(--color-success-strong);
}

.admin-switch-card__state--disabled {
    display: inline;
    color: var(--color-text-muted);
}

.admin-switch-card__input:checked ~ .admin-switch-card__meta .admin-switch-card__state--enabled {
    display: inline;
}

.admin-switch-card__input:checked ~ .admin-switch-card__meta .admin-switch-card__state--disabled {
    display: none;
}

.settings-site-overview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.3rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(var(--color-primary-rgb), 0.18);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.1) 0%, rgba(var(--color-success-rgb), 0.06) 48%, var(--color-card) 100%),
        var(--color-card);
    box-shadow: 0 1rem 2.5rem -2rem rgba(var(--color-primary-rgb), 0.42);
    overflow: hidden;
}

.settings-site-overview::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(var(--color-primary-rgb), 0.12), transparent 34%),
        linear-gradient(180deg, rgba(var(--color-white-rgb), 0.82), rgba(var(--color-white-rgb), 0.4));
}

.settings-site-overview > * {
    position: relative;
    z-index: 1;
}

.settings-site-overview__main {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.settings-site-overview__icon,
.settings-site-sidebar__header-icon,
.settings-site-card__title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--color-primary);
    background: var(--color-primary-soft);
}

.settings-site-overview__icon {
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(var(--color-primary-rgb), 0.14);
    border-radius: var(--radius-lg);
    box-shadow: inset 0 1px 0 rgba(var(--color-white-rgb), 0.72), 0 0.75rem 1.5rem -1.1rem rgba(var(--color-primary-rgb), 0.42);
}

.settings-site-overview__eyebrow,
.settings-site-card__eyebrow {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--color-primary-deep);
    font-size: var(--font-xs);
    font-weight: var(--font-bold);
    letter-spacing: 0;
    text-transform: uppercase;
    opacity: 0.82;
}

.settings-site-overview h4 {
    margin-bottom: 0.2rem;
    color: var(--color-text);
    font-size: var(--font-xl);
    font-weight: var(--font-bold);
}

.settings-site-overview p {
    max-width: 42rem;
    margin-bottom: 0;
    color: var(--color-text);
    font-size: var(--font-sm);
    font-weight: var(--font-medium);
    line-height: 1.45;
}

.settings-site-overview__stats {
    display: flex;
    align-items: stretch;
    gap: 0.7rem;
    flex: 0 0 auto;
}

.settings-site-overview__stats span {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 7rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(var(--color-primary-rgb), 0.1);
    border-radius: var(--radius-lg);
    color: var(--color-text-subtle);
    background: rgba(var(--color-white-rgb), 0.88);
    font-size: var(--font-xs);
    font-weight: var(--font-semibold);
    box-shadow: inset 0 1px 0 rgba(var(--color-white-rgb), 0.86), 0 0.75rem 1.75rem -1.4rem rgba(var(--color-primary-rgb), 0.36);
}

.settings-site-overview__stats strong {
    color: var(--color-text);
    font-size: var(--font-lg);
    font-weight: var(--font-bold);
}

.settings-site-shell {
    --settings-site-panel-height: max(31rem, calc(100vh - 20rem));
    --settings-site-scrollbar-size: 0.24rem;
    --settings-site-scrollbar-thumb: rgba(var(--color-primary-rgb), 0.26);
    --settings-site-scrollbar-thumb-active: rgba(var(--color-primary-rgb), 0.4);

    display: flex;
    gap: 1rem;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.settings-site-sidebar {
    position: sticky;
    top: 1rem;
    display: flex;
    flex-direction: column;
    flex: 0 0 clamp(18rem, 28%, 21rem);
    width: clamp(18rem, 28%, 21rem);
    max-width: clamp(18rem, 28%, 21rem);
    min-width: 0;
    height: var(--settings-site-panel-height);
    min-height: 31rem;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    overflow: hidden;
    border: 1px solid var(--color-border-soft);
    background: var(--color-surface-alt);
    box-shadow: var(--shadow-sm);
    scrollbar-gutter: auto;
}

.settings-site-sidebar__header {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 0.7rem;
    margin-bottom: 0 !important;
    padding: 0.2rem 0 0.8rem;
    color: var(--color-text);
    border-bottom: 0;
}

.settings-site-sidebar__header::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: var(--color-border-soft);
    content: "";
}

.settings-site-sidebar__header-icon {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: var(--radius-md);
}

.settings-site-sidebar__header strong,
.settings-site-sidebar__header small {
    display: block;
}

.settings-site-sidebar__header strong {
    color: var(--color-text);
    font-size: var(--font-sm);
    font-weight: var(--font-bold);
}

.settings-site-sidebar__header small {
    color: var(--color-text-muted);
    font-size: var(--font-xs);
}

.settings-site-sidebar__nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    padding-top: 0.5rem;
    padding-right: 0.45rem;
    padding-left: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    scrollbar-color: var(--settings-site-scrollbar-thumb) transparent;
    scrollbar-width: thin;
}

.settings-site-sidebar__nav::-webkit-scrollbar {
    width: var(--settings-site-scrollbar-size);
}

.settings-site-sidebar__nav::-webkit-scrollbar-track {
    background: transparent;
}

.settings-site-sidebar__nav::-webkit-scrollbar-thumb {
    border-radius: var(--radius-xl);
    background: var(--settings-site-scrollbar-thumb);
}

.settings-site-sidebar__nav:hover,
.settings-site-sidebar__nav:focus-within {
    scrollbar-color: var(--settings-site-scrollbar-thumb-active) transparent;
}

.settings-site-sidebar__nav:hover::-webkit-scrollbar-thumb,
.settings-site-sidebar__nav:focus-within::-webkit-scrollbar-thumb {
    background: var(--settings-site-scrollbar-thumb-active);
}

.settings-site-menu {
    appearance: none;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    justify-content: flex-start;
    gap: 0.7rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 3.6rem;
    padding: 0.7rem 0.75rem;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    text-align: left;
    color: var(--color-text-soft);
    background: transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.settings-site-menu:hover,
.settings-site-menu:focus {
    color: var(--color-primary);
    border-color: var(--cui-primary-border-subtle);
    background: var(--color-card);
    box-shadow: var(--shadow-sm);
}

.settings-site-menu.active {
    color: var(--color-text-inverse);
    border-color: var(--color-primary);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    box-shadow: var(--shadow-lg);
}

.settings-site-menu__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: var(--radius-md);
    color: var(--color-primary);
    background: var(--color-primary-soft);
}

.settings-site-menu.active .settings-site-menu__icon {
    color: var(--color-primary);
    background: var(--color-card);
}

.settings-site-menu__text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.settings-site-menu__title {
    overflow: hidden;
    color: inherit;
    font-size: var(--font-sm);
    font-weight: var(--font-semibold);
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-site-menu__description {
    overflow: hidden;
    color: var(--color-text-muted);
    font-size: var(--font-size-rem-075);
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-site-menu.active .settings-site-menu__description {
    color: var(--color-primary-subtle);
}

.settings-site-content {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    padding-left: 1rem;
}

.settings-site-card {
    display: flex;
    flex-direction: column;
    height: var(--settings-site-panel-height);
    min-height: 31rem;
    overflow: hidden;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-xl);
    background: var(--color-card);
    box-shadow: var(--shadow-sm);
}

.settings-site-card__header {
    position: relative;
    gap: 1rem;
    min-height: 4.15rem;
    padding-top: 0.8rem !important;
    padding-bottom: 0.8rem !important;
    border-bottom: 0;
    background:
        linear-gradient(180deg, var(--color-card), var(--color-surface-alt)),
        var(--color-card);
}

.settings-site-card__header::after {
    position: absolute;
    right: 1rem;
    bottom: 0;
    left: 1rem;
    height: 1px;
    background: var(--color-border-soft);
    content: "";
}

.settings-site-card__title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
}

.settings-site-card__title-icon {
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid var(--cui-primary-border-subtle);
    border-radius: var(--radius-lg);
}

.settings-site-card__title h5 {
    color: var(--color-text);
    font-size: var(--font-lg);
    font-weight: var(--font-bold);
}

.settings-site-card__description {
    margin-top: 0.1rem;
    color: var(--color-text-muted);
    font-size: var(--font-xs);
    line-height: 1.2;
}

.settings-site-card__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.settings-site-chip {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--cui-primary-border-subtle);
    border-radius: var(--radius-md);
    color: var(--color-primary-deep);
    background: var(--color-primary-soft);
    font-size: var(--font-xs);
    font-weight: var(--font-semibold);
}

.settings-site-header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.45rem;
    padding-right: 1rem;
    padding-left: 1rem;
    border-radius: var(--radius-md);
    font-size: var(--font-sm);
    font-weight: var(--font-semibold);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.settings-site-header-action svg {
    flex: 0 0 auto;
}

.settings-site-test-btn {
    min-width: 8.6rem;
}

.settings-site-test-btn.is-loading {
    cursor: wait;
    opacity: 0.9;
}

.settings-site-test-btn .fa-spinner {
    font-size: var(--font-sm);
}

.settings-site-alert,
.settings-site-info {
    margin-bottom: 1rem;
}

.settings-site-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-height: 9rem;
    overflow-y: auto;
    padding: 0.9rem 1rem;
    color: var(--color-info-deep);
    background: var(--color-info-soft);
}

.settings-site-info__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-md);
    color: var(--color-info-deep);
    background: var(--color-card);
}

.settings-site-info__icon svg {
    display: block;
    margin: 0;
}

.settings-site-info__icon .me-2 {
    margin-right: 0 !important;
}

.settings-site-info__title {
    margin-bottom: 0.15rem;
    color: var(--color-info-deep);
    font-size: var(--font-sm);
    font-weight: var(--font-bold);
}

.settings-site-info__description {
    color: var(--color-info-deep);
    font-size: var(--font-sm);
    line-height: 1.55;
}

.settings-site-card .card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: var(--color-surface-alt);
}

.settings-site-scrollarea {
    flex: 1 1 auto;
    min-height: 0;
    padding: 1rem;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    scrollbar-color: var(--settings-site-scrollbar-thumb) transparent;
    scrollbar-width: thin;
}

.settings-site-scrollarea::-webkit-scrollbar {
    width: var(--settings-site-scrollbar-size);
}

.settings-site-scrollarea::-webkit-scrollbar-track {
    background: transparent;
}

.settings-site-scrollarea::-webkit-scrollbar-thumb {
    border-radius: var(--radius-xl);
    background: var(--settings-site-scrollbar-thumb);
}

.settings-site-scrollarea:hover,
.settings-site-scrollarea:focus-within {
    scrollbar-color: var(--settings-site-scrollbar-thumb-active) transparent;
}

.settings-site-scrollarea:hover::-webkit-scrollbar-thumb,
.settings-site-scrollarea:focus-within::-webkit-scrollbar-thumb {
    background: var(--settings-site-scrollbar-thumb-active);
}

.settings-site-form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.settings-group-stack {
    display: grid;
    gap: 1rem;
}

.settings-field-group {
    padding: 1rem;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-lg);
    background: var(--color-card);
    box-shadow: var(--shadow-sm);
}

.settings-field-group--plain {
    padding-bottom: 0.25rem;
}

.settings-field-group__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.95rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--color-border-soft);
}

.settings-field-group__header h6 {
    margin-bottom: 0.2rem;
    color: var(--color-text);
    font-size: var(--font-base);
    font-weight: var(--font-bold);
}

.settings-field-group__header p {
    margin-bottom: 0;
    color: var(--color-text-muted);
    font-size: var(--font-sm);
}

.settings-field-group__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.85rem;
    height: 1.85rem;
    padding: 0 0.45rem;
    border-radius: var(--radius-md);
    color: var(--color-primary);
    background: var(--color-primary-soft);
    font-size: var(--font-xs);
    font-weight: var(--font-bold);
}

.settings-site-card .form-label {
    color: var(--color-text-soft);
    font-size: var(--font-sm);
    font-weight: var(--font-semibold);
}

.settings-site-card .form-control,
.settings-site-card .form-select {
    min-height: 2.75rem;
    border-color: var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    background-color: var(--color-card);
    box-shadow: none;
}

.settings-site-card textarea.form-control {
    min-height: 8rem;
}

.settings-site-card .input-group-text {
    border-color: var(--color-border);
    color: var(--color-text-muted);
    background: var(--color-surface-alt);
    font-size: var(--font-sm);
    font-weight: var(--font-semibold);
}

.settings-site-copy-field {
    position: relative;
}

.settings-site-copy-field__input {
    padding-right: 3rem;
}

.settings-site-copy-field__button {
    display: inline-flex;
    position: absolute;
    top: 50%;
    right: 0.75rem;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 0;
    border-radius: var(--radius-md);
    color: var(--color-primary);
    background: transparent;
    line-height: 1;
    transform: translateY(-50%);
    transition: color 0.2s ease, transform 0.2s ease;
}

.settings-site-copy-field__button:hover,
.settings-site-copy-field__button:focus {
    color: var(--color-primary-deep);
    background: transparent;
    transform: translateY(-50%) scale(1.05);
}

.settings-site-copy-field__button:focus-visible {
    outline: 0.14rem solid var(--color-primary-soft);
    outline-offset: 0.1rem;
}

.settings-site-copy-field__button i {
    font-size: var(--font-sm);
    pointer-events: none;
}

.settings-site-color-field {
    flex-wrap: nowrap;
}

.settings-site-color-field__swatch-wrap {
    min-width: 3.25rem;
    padding: 0.35rem;
    justify-content: center;
    background: var(--color-card);
}

.settings-site-color-field__picker {
    width: 2.1rem;
    min-width: 2.1rem;
    height: 2.1rem;
    min-height: 2.1rem !important;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
}

.settings-site-color-field__picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

.settings-site-color-field__picker::-webkit-color-swatch {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.settings-site-color-field__picker::-moz-color-swatch {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.settings-site-card .settings-site-color-field__hex {
    font-family: var(--font-mono);
    font-weight: var(--font-semibold);
    letter-spacing: 0;
    text-transform: uppercase;
}

.settings-site-toggle-input {
    flex-wrap: nowrap;
}

.settings-site-toggle-input__toggle {
    min-width: 7rem;
    padding: 0.45rem 0.65rem;
    justify-content: center;
}

.settings-site-card .input-group .settings-site-toggle-input__check {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: auto;
    padding: 0;
}

.settings-site-card .form-switch {
    padding-left: 0;
}

.settings-site-card .form-switch .form-check-input {
    margin-top: 0;
    margin-left: 0;
}

.settings-site-card .coevs-switch {
    width: 2.45rem !important;
    height: 1.25rem !important;
    border-color: var(--color-border-strong);
    background-color: var(--color-surface-soft);
    cursor: pointer;
}

.settings-site-card .coevs-switch:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.16rem var(--color-primary-soft) !important;
}

.settings-site-toggle-input__check .form-check-input {
    flex: 0 0 auto;
}

.settings-site-toggle-input__check .form-check-label {
    font-size: var(--font-sm);
    font-weight: var(--font-semibold);
    line-height: 1;
    white-space: nowrap;
}

.settings-site-toggle-input__state--enabled {
    display: none;
    color: var(--color-success-strong);
}

.settings-site-toggle-input__state--disabled {
    display: inline;
    color: var(--color-text-muted);
}

.settings-site-toggle-input__check .form-check-input:checked ~ .form-check-label .settings-site-toggle-input__state--enabled {
    display: inline;
}

.settings-site-toggle-input__check .form-check-input:checked ~ .form-check-label .settings-site-toggle-input__state--disabled {
    display: none;
}

.settings-site-toggle-input__unit {
    min-width: 4.5rem;
    justify-content: center;
}

.settings-site-card .form-check {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.45rem 0;
}

.settings-site-switch-control {
    width: 100%;
}

.settings-site-switch-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    background: var(--color-card);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.settings-site-switch-card:hover {
    border-color: var(--cui-primary-border-subtle);
    background: var(--color-surface-alt);
    box-shadow: var(--shadow-sm);
}

.settings-site-switch-card__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.settings-site-switch-card__track {
    position: relative;
    flex: 0 0 auto;
    width: 2.65rem;
    height: 1.35rem;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-xl);
    background: var(--color-surface-soft);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.settings-site-switch-card__track::after {
    position: absolute;
    top: 0.16rem;
    left: 0.18rem;
    width: 0.9rem;
    height: 0.9rem;
    border-radius: var(--radius-xl);
    background: var(--color-text-faint);
    box-shadow: var(--shadow-sm);
    content: "";
    transition: left 0.2s ease, background-color 0.2s ease;
}

.settings-site-switch-card__input:checked + .settings-site-switch-card__track {
    border-color: var(--color-primary);
    background: var(--color-primary-soft);
}

.settings-site-switch-card__input:checked + .settings-site-switch-card__track::after {
    left: 1.42rem;
    background: var(--color-primary);
}

.settings-site-switch-card__input:focus + .settings-site-switch-card__track {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.16rem var(--color-primary-soft);
}

.settings-site-switch-card__meta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    margin-left: auto;
    color: var(--color-text-muted);
    font-size: var(--font-sm);
    font-weight: var(--font-semibold);
    line-height: 1;
    text-align: right;
}

.settings-site-switch-card__state--enabled {
    display: none;
    color: var(--color-success-strong);
}

.settings-site-switch-card__state--disabled {
    display: inline;
    color: var(--color-text-muted);
}

.settings-site-switch-card__input:checked ~ .settings-site-switch-card__meta .settings-site-switch-card__state--enabled {
    display: inline;
}

.settings-site-switch-card__input:checked ~ .settings-site-switch-card__meta .settings-site-switch-card__state--disabled {
    display: none;
}

.settings-site-card .coevs-switch:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.settings-maintenance-modal .modal-dialog {
    max-width: 35rem;
}

.settings-maintenance-modal .modal-content {
    overflow: hidden;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-xl);
    background: var(--color-card);
    box-shadow: var(--shadow-lg);
}

.settings-maintenance-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(var(--color-warning-rgb), 0.2);
    background:
        linear-gradient(135deg, rgba(var(--color-warning-rgb), 0.16), rgba(var(--color-primary-rgb), 0.06)),
        var(--color-card);
}

.settings-maintenance-modal__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.settings-maintenance-modal__icon,
.settings-maintenance-modal__notice-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: var(--radius-lg);
}

.settings-maintenance-modal__icon {
    width: 2.55rem;
    height: 2.55rem;
    color: var(--color-warning-deep);
    background: var(--color-warning-soft);
}

.settings-maintenance-modal__eyebrow {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--color-text-muted);
    font-size: var(--font-xs);
    font-weight: var(--font-semibold);
    letter-spacing: 0;
    text-transform: uppercase;
}

.settings-maintenance-modal__title h5 {
    margin-bottom: 0;
    color: var(--color-text);
    font-size: var(--font-lg);
    font-weight: var(--font-bold);
}

.settings-maintenance-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    background: var(--color-card);
    line-height: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.settings-maintenance-modal__close:hover {
    color: var(--color-danger-deep);
    border-color: var(--color-danger-soft);
    background: var(--color-danger-soft);
}

.settings-maintenance-modal__body {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    background: var(--color-surface-alt);
}

.settings-maintenance-modal__notice {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem;
    border: 1px solid rgba(var(--color-warning-rgb), 0.2);
    border-radius: var(--radius-lg);
    color: var(--color-warning-deep);
    background: var(--color-warning-soft);
}

.settings-maintenance-modal__notice-icon {
    width: 2.15rem;
    height: 2.15rem;
    color: var(--color-warning-deep);
    background: var(--color-card);
}

.settings-maintenance-modal__notice p {
    margin-bottom: 0;
    color: var(--color-warning-deep);
    font-size: var(--font-sm);
    line-height: 1.55;
}

.settings-maintenance-modal__secret {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.8rem 0.85rem;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-lg);
    background: var(--color-card);
}

.settings-maintenance-modal__secret-label {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--color-text-muted);
    font-size: var(--font-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
}

.settings-maintenance-modal__secret strong {
    display: block;
    max-width: 18rem;
    overflow-wrap: anywhere;
    color: var(--color-text);
    font-family: var(--font-mono);
    font-size: var(--font-base);
    font-weight: var(--font-bold);
}

.settings-maintenance-modal__copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.25rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--color-primary-soft);
    border-radius: var(--radius-md);
    color: var(--color-primary-deep);
    background: var(--color-primary-soft);
    font-size: var(--font-sm);
    font-weight: var(--font-semibold);
    white-space: nowrap;
}

.settings-maintenance-modal__copy:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-card);
}

.settings-maintenance-modal__hint {
    margin-bottom: 0;
    color: var(--color-text-muted);
    font-size: var(--font-sm);
}

.settings-maintenance-modal__footer {
    gap: 0.65rem;
    padding: 0.9rem 1rem 1rem;
    border-top: 1px solid var(--color-border-soft);
    background: var(--color-card);
}

.settings-maintenance-modal__footer .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

@media (max-width: 575.98px) {
    .settings-maintenance-modal__secret,
    .settings-maintenance-modal__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .settings-maintenance-modal__copy,
    .settings-maintenance-modal__footer .btn {
        width: 100%;
    }
}

.settings-site-card .avatar-upload {
    padding: 0.5rem;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-lg);
    background: var(--color-surface-alt);
}

.settings-site-card .avatar-upload .avatar-edit {
    top: 0.55rem;
    right: 0.55rem;
}

.settings-site-card .avatar-upload .avatar-edit label.imageUpload,
.settings-site-card .avatar-upload .avatar-edit label.imageRemove {
    width: 1.8rem;
    height: 1.8rem;
}

.settings-site-card .avatar-upload .avatar-preview {
    height: 5.75rem;
    border-color: var(--color-border-strong);
    border-radius: var(--radius-md);
    background: var(--color-card);
}

.settings-site-card .avatar-upload .avatar-preview > div {
    border-radius: var(--radius-md);
}

@media (max-width: 991.98px) {
    .settings-site-shell {
        flex-direction: column !important;
        overflow: visible;
    }

    .settings-site-card {
        height: auto;
        max-height: none;
    }

    .settings-site-scrollarea {
        overflow: visible;
    }

    .settings-site-overview {
        align-items: flex-start;
        flex-direction: column;
    }

    .settings-site-overview__stats {
        width: 100%;
        flex-wrap: wrap;
    }

    .settings-site-overview__stats span {
        flex: 1 1 9rem;
    }

    .settings-site-sidebar {
        position: static;
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
        min-width: 0;
        height: auto;
        min-height: 0;
    }

    .settings-site-sidebar__nav {
        max-height: 24rem;
    }

    .settings-site-content {
        padding-left: 0;
    }
}

@media (max-width: 767.98px) {
    .settings-site-card__header,
    .settings-site-card__actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .settings-site-card__actions,
    .settings-site-card__actions .btn {
        width: 100%;
    }

    .settings-site-toggle-input {
        flex-direction: column;
        flex-wrap: wrap;
    }

    .settings-site-toggle-input__toggle,
    .settings-site-toggle-input__unit,
    .settings-site-toggle-input .form-control {
        width: 100%;
        border-radius: var(--radius-md);
    }
}

.settings-plugin-overview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid var(--cui-primary-border-subtle);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, var(--color-primary-subtle), var(--color-surface-alt)),
        var(--color-card);
    box-shadow: var(--shadow-sm);
}

.settings-plugin-overview__main {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.settings-plugin-overview__icon,
.settings-plugin-modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--color-primary);
    background: var(--color-primary-soft);
}

.settings-plugin-overview__icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-lg);
}

.settings-plugin-overview__eyebrow,
.settings-plugin-card__eyebrow,
.settings-plugin-modal__eyebrow {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--color-text-muted);
    font-size: var(--font-xs);
    font-weight: var(--font-bold);
    letter-spacing: 0;
    text-transform: uppercase;
}

.settings-plugin-overview h4 {
    margin-bottom: 0.2rem;
    color: var(--color-text);
    font-size: var(--font-xl);
    font-weight: var(--font-bold);
}

.settings-plugin-overview p {
    max-width: 42rem;
    margin-bottom: 0;
    color: var(--color-text-subtle);
    font-size: var(--font-sm);
}

.settings-plugin-overview__stats {
    display: flex;
    align-items: stretch;
    gap: 0.7rem;
    flex: 0 0 auto;
}

.settings-plugin-overview__stats span {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 6.6rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-lg);
    color: var(--color-text-muted);
    background: var(--color-card);
    font-size: var(--font-xs);
    font-weight: var(--font-medium);
}

.settings-plugin-overview__stats strong {
    color: var(--color-text);
    font-size: var(--font-lg);
    font-weight: var(--font-bold);
}

.settings-plugin-card {
    overflow: hidden;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-xl);
    background: var(--color-card);
    box-shadow: var(--shadow-sm);
}

.settings-plugin-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--color-border-soft);
    background: var(--color-surface-alt);
}

.settings-plugin-card__header h5 {
    margin-bottom: 0;
    color: var(--color-text);
    font-size: var(--font-lg);
    font-weight: var(--font-bold);
}

.settings-plugin-card__count {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--cui-primary-border-subtle);
    border-radius: var(--radius-md);
    color: var(--color-primary-deep);
    background: var(--color-primary-soft);
    font-size: var(--font-xs);
    font-weight: var(--font-semibold);
    white-space: nowrap;
}

.settings-plugin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 0.9rem;
    padding: 0;
}

.settings-plugin-category-shell {
    padding: 1rem 1rem 0;
    background: var(--color-surface-alt);
}

.settings-plugin-category-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
    gap: 0.7rem;
    padding: 0.35rem;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-lg);
    background: var(--color-card);
}

.settings-plugin-category-tab {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
    min-height: 3.65rem;
    padding: 0.65rem 0.75rem !important;
    border: 1px solid transparent !important;
    border-radius: var(--radius-md) !important;
    color: var(--color-text-muted) !important;
    text-align: left;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.settings-plugin-category-tab:hover,
.settings-plugin-category-tab:focus {
    border-color: var(--color-border-soft) !important;
    background: var(--color-surface-alt) !important;
    color: var(--color-text) !important;
}

.settings-plugin-category-tab.active {
    border-color: var(--cui-primary-border-subtle) !important;
    color: var(--color-primary-deep) !important;
    background: var(--color-primary-soft) !important;
    box-shadow: inset 0 0 0 1px rgba(var(--color-primary-rgb), 0.08);
}

.settings-plugin-category-tab__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: var(--radius-md);
    color: var(--color-primary);
    background: var(--color-primary-soft);
}

.settings-plugin-category-tab.active .settings-plugin-category-tab__icon {
    color: var(--color-white);
    background: var(--color-primary);
}

.settings-plugin-category-tab__copy {
    display: grid;
    min-width: 0;
}

.settings-plugin-category-tab__copy span {
    overflow: hidden;
    font-size: var(--font-sm);
    font-weight: var(--font-bold);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-plugin-category-tab__copy small {
    overflow: hidden;
    color: var(--color-text-muted);
    font-size: var(--font-xs);
    font-weight: var(--font-medium);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-plugin-category-tab.active .settings-plugin-category-tab__copy small {
    color: var(--color-primary-deep);
}

.settings-plugin-category-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.65rem;
    height: 1.65rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    color: var(--color-text-muted);
    background: var(--color-surface-alt);
    font-size: var(--font-xs);
    font-weight: var(--font-bold);
}

.settings-plugin-category-tab.active .settings-plugin-category-tab__count {
    color: var(--color-primary-deep);
    background: var(--color-card);
}

.settings-plugin-groups {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-surface-alt);
}

.settings-plugin-group {
    overflow: hidden;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-lg);
    background: var(--color-card);
    box-shadow: var(--shadow-sm);
}

.settings-plugin-group__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border-bottom: 1px solid var(--color-border-soft);
    background: var(--color-card);
}

.settings-plugin-group__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.settings-plugin-group__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.45rem;
    height: 2.45rem;
    flex: 0 0 auto;
    border-radius: var(--radius-md);
    color: var(--color-primary);
    background: var(--color-primary-soft);
}

.settings-plugin-group__title h6 {
    margin-bottom: 0.18rem;
    color: var(--color-text);
    font-size: var(--font-md);
    font-weight: var(--font-bold);
}

.settings-plugin-group__title p {
    margin-bottom: 0;
    color: var(--color-text-muted);
    font-size: var(--font-sm);
    line-height: 1.4;
}

.settings-plugin-group__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.settings-plugin-group__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.28rem 0.58rem;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    background: var(--color-surface-alt);
    font-size: var(--font-xs);
    font-weight: var(--font-semibold);
    white-space: nowrap;
}

.settings-plugin-group .settings-plugin-grid {
    padding: 1rem;
    background: var(--color-surface-alt);
}

.settings-plugin-item {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 12.25rem;
    overflow: hidden;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-lg);
    background: var(--color-card);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.settings-plugin-item:hover {
    border-color: var(--cui-primary-border-subtle);
    box-shadow: var(--shadow-md);
    background: var(--color-surface-alt);
}

.settings-plugin-item__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 0.9rem 0.55rem;
}

.settings-plugin-item__body {
    flex: 1 1 auto;
    padding: 0 0.9rem 0.85rem;
}

.settings-plugin-item__body h6 {
    overflow: hidden;
    margin-bottom: 0.35rem;
    color: var(--color-text);
    font-size: var(--font-md);
    font-weight: var(--font-bold);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-plugin-item__body p {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 0;
    color: var(--color-text-muted);
    font-size: var(--font-sm);
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.settings-plugin-item__footer {
    display: flex;
    justify-content: flex-end;
    padding: 0.75rem 0.9rem;
    border-top: 1px solid var(--color-border-soft);
    background: var(--color-card);
}

.settings-plugin-table {
    margin-bottom: 0;
    table-layout: fixed;
}

.settings-plugin-table__logo {
    width: 6rem;
}

.settings-plugin-table__name {
    width: auto;
}

.settings-plugin-table__status {
    width: 10rem;
}

.settings-plugin-table__action {
    width: 10rem;
}

.settings-plugin-table thead th {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--color-border-soft);
    color: var(--color-text-muted);
    background: var(--color-card);
    font-size: var(--font-xs);
    font-weight: var(--font-bold);
    letter-spacing: 0;
    text-transform: uppercase;
}

.settings-plugin-table th,
.settings-plugin-table td {
    padding: 1rem;
    vertical-align: middle;
}

.settings-plugin-table tbody tr {
    transition: background-color 0.2s ease;
}

.settings-plugin-table tbody tr:hover {
    background: var(--color-surface-alt);
}

.settings-plugin-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-lg);
    background: var(--color-surface-alt);
    box-shadow: var(--shadow-sm);
}

.settings-plugin-logo::after {
    position: absolute;
    right: 0.35rem;
    bottom: 0.35rem;
    width: 0.55rem;
    height: 0.55rem;
    border: 2px solid var(--color-card);
    border-radius: var(--radius-xl);
    background: var(--color-danger);
    content: "";
}

.settings-plugin-logo.is-active::after {
    background: var(--color-success);
}

.settings-plugin-logo img {
    max-width: 1.95rem;
    max-height: 1.95rem;
    object-fit: contain;
}

.settings-plugin-table__plugin-name {
    overflow: hidden;
    color: var(--color-text);
    font-size: var(--font-base);
    font-weight: var(--font-bold);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-plugin-table__description {
    display: -webkit-box;
    overflow: hidden;
    max-width: 100%;
    margin-top: 0.2rem;
    color: var(--color-text-muted);
    font-size: var(--font-sm);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
}

.settings-plugin-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 1.85rem;
    padding: 0.3rem 0.58rem;
    border-radius: var(--radius-md);
    color: var(--color-danger-deep);
    background: var(--color-danger-soft);
    font-size: var(--font-xs);
    font-weight: var(--font-bold);
    text-transform: uppercase;
}

.settings-plugin-status.is-active {
    color: var(--color-success-deep);
    background: var(--color-success-soft);
}

.settings-plugin-status__dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: var(--radius-xl);
    background: currentColor;
}

.settings-plugin-table__action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 7rem;
    min-height: 2.25rem;
    border-radius: var(--radius-md);
    font-size: var(--font-sm);
    font-weight: var(--font-semibold);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.settings-plugin-item .settings-plugin-table__action-btn {
    width: 100%;
    background: var(--color-primary-soft);
    border-color: var(--cui-primary-border-subtle);
    color: var(--color-primary-deep);
    box-shadow: none;
}

.settings-plugin-item .settings-plugin-table__action-btn:hover {
    color: var(--color-text-inverse);
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.settings-plugin-empty {
    display: grid;
    place-items: center;
    padding: 2.5rem 1rem;
    color: var(--color-text-muted);
    text-align: center;
}

.settings-plugin-empty h6 {
    margin: 0.75rem 0 0.25rem;
    color: var(--color-text);
    font-weight: var(--font-bold);
}

.settings-plugin-empty p {
    margin-bottom: 0;
    font-size: var(--font-sm);
}

.settings-plugin-modal .modal-dialog {
    max-width: 41rem;
}

.settings-plugin-modal .modal-content {
    overflow: hidden;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-xl);
    background: var(--color-card);
    box-shadow: var(--shadow-lg);
}

.settings-plugin-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--color-border-soft);
    background:
        linear-gradient(180deg, var(--color-card), var(--color-surface-alt)),
        var(--color-card);
}

.settings-plugin-modal__title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.settings-plugin-modal__eyebrow {
    display: block;
    margin-bottom: 0.1rem;
    line-height: 1.2;
    color: var(--color-text-muted);
    font-size: var(--font-xs);
    font-weight: var(--font-semibold);
    letter-spacing: 0;
    text-transform: uppercase;
}

.settings-plugin-modal__title > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.settings-plugin-modal__title h5 {
    margin-bottom: 0;
    color: var(--color-text);
    font-size: var(--font-md);
    font-weight: var(--font-bold);
}

.settings-plugin-modal__icon {
    display: inline-grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid var(--cui-primary-border-subtle);
    border-radius: var(--radius-lg);
    flex: 0 0 auto;
    color: var(--color-primary);
}

.settings-plugin-modal__icon-glyph,
.settings-plugin-modal__icon-glyph svg,
.settings-plugin-modal__icon-glyph .icon-fallback {
    display: block;
    width: 1.18rem;
    height: 1.18rem;
}

.settings-plugin-modal__icon svg {
    flex: 0 0 auto;
}

.settings-plugin-modal__close-glyph,
.settings-plugin-modal__close-glyph svg,
.settings-plugin-modal__close-glyph .icon-fallback {
    display: block;
    width: 1.05rem;
    height: 1.05rem;
}

.settings-plugin-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    background: var(--color-card);
    line-height: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.settings-plugin-modal__close:hover {
    color: var(--color-danger-deep);
    border-color: var(--color-danger-soft);
    background: var(--color-danger-soft);
}

.settings-plugin-modal__close svg,
.settings-plugin-modal__close .icon-fallback {
    display: block;
}

.settings-plugin-modal__body {
    padding: 0.8rem 0.9rem 0.9rem;
    background: var(--color-surface-alt);
}

.settings-plugin-manage-form {
    display: grid;
    gap: 0.75rem;
}

.settings-plugin-manage-form__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-lg);
    background: var(--color-card);
}

.settings-plugin-manage-form__identity {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.settings-plugin-manage-form__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.65rem;
    height: 2.65rem;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-lg);
    background: var(--color-surface-alt);
}

.settings-plugin-manage-form__logo img {
    max-width: 1.75rem;
    max-height: 1.75rem;
    object-fit: contain;
}

.settings-plugin-manage-form__identity h6 {
    overflow: hidden;
    margin-bottom: 0.1rem;
    color: var(--color-text);
    font-weight: var(--font-bold);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-plugin-manage-form__identity p {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 0;
    color: var(--color-text-muted);
    font-size: var(--font-xs);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.settings-plugin-form-section {
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-lg);
    background: var(--color-card);
}

.settings-plugin-form-section__header {
    margin-bottom: 0.75rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--color-border-soft);
}

.settings-plugin-form-section__header span {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--color-text-muted);
    font-size: var(--font-xs);
    font-weight: var(--font-bold);
    letter-spacing: 0;
    text-transform: uppercase;
}

.settings-plugin-form-section__header h6 {
    margin-bottom: 0;
    color: var(--color-text);
    font-size: var(--font-sm);
    font-weight: var(--font-bold);
}

.settings-plugin-form-section .form-label {
    color: var(--color-text-soft);
    font-size: var(--font-sm);
    font-weight: var(--font-semibold);
}

.settings-plugin-form-section .form-control,
.settings-plugin-form-section .form-select {
    min-height: 2.55rem;
    border-color: var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    background-color: var(--color-card);
    font-size: var(--font-base);
}

.settings-plugin-switch-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 3rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-card);
}

.settings-plugin-switch-card__copy {
    flex: 1 1 auto;
    min-width: 0;
}

.settings-plugin-switch-card .form-check-label {
    display: block;
    margin-bottom: 0.1rem;
    color: var(--color-text-soft);
    font-size: var(--font-sm);
    font-weight: var(--font-semibold);
}

.settings-plugin-switch-card small {
    display: block;
    color: var(--color-text-muted);
    font-size: var(--font-xs);
    line-height: 1.25;
}

.settings-plugin-switch-card .settings-plugin-status-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.6rem;
    width: 2.6rem;
    min-width: 2.6rem;
    max-width: 2.6rem;
    min-height: 1.45rem !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    overflow: visible;
    position: relative;
}

.settings-plugin-switch-card .settings-plugin-status-switch .form-check-input {
    display: block !important;
    flex: 0 0 2.6rem;
    width: 2.6rem !important;
    min-width: 2.6rem;
    height: 1.45rem !important;
    min-height: 1.45rem;
    margin: 0 !important;
    border: 0 !important;
    float: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    background-color: var(--color-palette-cbd5e1) !important;
    box-shadow: none !important;
    cursor: pointer;
}

.settings-plugin-switch-card .settings-plugin-status-switch .form-check-input:focus {
    border-color: transparent !important;
    box-shadow: 0 0 0 0.18rem rgba(var(--color-primary-rgb), 0.14);
}

.settings-plugin-switch-card .settings-plugin-status-switch .form-check-input:checked {
    background-color: var(--color-primary) !important;
}

.settings-plugin-test-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
    padding: 0.8rem 0.85rem;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-lg);
    background: var(--color-card);
}

.settings-plugin-test-card__content {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.settings-plugin-test-card__icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--color-info-soft);
    border-radius: var(--radius-md);
    color: var(--color-info-deep);
    background: var(--color-info-soft);
}

.settings-plugin-test-card__content > div > span {
    display: block;
    margin-bottom: 0.1rem;
    color: var(--color-text-muted);
    font-size: var(--font-xs);
    font-weight: var(--font-bold);
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.settings-plugin-test-card__content h6 {
    margin-bottom: 0.1rem;
    color: var(--color-text);
    font-size: var(--font-sm);
    font-weight: var(--font-bold);
}

.settings-plugin-test-card__content p {
    margin-bottom: 0;
    color: var(--color-text-muted);
    font-size: var(--font-xs);
    line-height: 1.35;
}

.settings-plugin-test-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.45rem;
    padding-right: 0.85rem;
    padding-left: 0.85rem;
    border-radius: var(--radius-md);
    font-size: var(--font-sm);
    font-weight: var(--font-semibold);
    line-height: 1;
    white-space: nowrap;
}

.settings-plugin-test-card__button-icon,
.settings-plugin-test-card__button-icon i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
    line-height: 1;
}

.settings-plugin-test-card__result {
    grid-column: 1 / -1;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-md);
    color: var(--color-text-soft);
    background: var(--color-surface-alt);
    font-size: var(--font-sm);
    line-height: 1.4;
}

.settings-plugin-test-card__result.is-info {
    color: var(--color-info-deep);
    border-color: var(--color-info-soft);
    background: var(--color-info-soft);
}

.settings-plugin-test-card__result.is-success {
    color: var(--color-success-deep);
    border-color: var(--color-success-soft);
    background: var(--color-success-soft);
}

.settings-plugin-test-card__result.is-warning {
    color: var(--color-warning-deep);
    border-color: var(--color-warning-soft);
    background: var(--color-warning-soft);
}

.settings-plugin-test-card__result.is-error {
    color: var(--color-danger-deep);
    border-color: var(--color-danger-soft);
    background: var(--color-danger-soft);
}

.settings-plugin-manage-form__actions {
    max-width: 22rem;
}

.settings-plugin-manage-form__footer {
    display: flex;
    justify-content: flex-end;
    padding: 0.7rem 0 0;
    border-top: 1px solid var(--color-border-soft);
}

.settings-plugin-manage-form__submit {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    line-height: 1;
    min-height: 2.35rem;
    padding-right: 0.95rem;
    padding-left: 0.95rem;
    border-radius: var(--radius-md);
    font-size: var(--font-sm);
    font-weight: var(--font-semibold);
}

.settings-plugin-manage-form__submit svg,
.settings-plugin-manage-form__submit .icon-fallback {
    display: block;
    flex: 0 0 auto;
}

.settings-plugin-manage-form__submit-glyph,
.settings-plugin-manage-form__submit-glyph svg,
.settings-plugin-manage-form__submit-glyph .icon-fallback {
    display: block;
    width: 1.05rem;
    height: 1.05rem;
}

@media (max-width: 767.98px) {
    .settings-plugin-overview {
        align-items: flex-start;
        flex-direction: column;
    }

    .settings-plugin-overview__stats {
        width: 100%;
        flex-wrap: wrap;
    }

    .settings-plugin-overview__stats span {
        flex: 1 1 7rem;
    }

    .settings-plugin-card__header,
    .settings-plugin-manage-form__summary,
    .settings-plugin-test-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .settings-plugin-test-card {
        display: flex;
    }

    .settings-plugin-test-card__button,
    .settings-plugin-manage-form__actions {
        width: 100%;
    }

    .settings-plugin-grid {
        grid-template-columns: 1fr;
        padding: 0.75rem;
    }

    .settings-plugin-groups {
        padding: 0.75rem;
    }

    .settings-plugin-category-shell {
        padding: 0.75rem 0.75rem 0;
    }

    .settings-plugin-category-nav {
        grid-template-columns: 1fr;
    }

    .settings-plugin-group__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .settings-plugin-group__meta {
        justify-content: flex-start;
    }

    .settings-plugin-table__logo {
        width: 5rem;
    }

    .settings-plugin-table__status,
    .settings-plugin-table__action {
        width: 8.5rem;
    }
}

.border {
    border: 1px solid var(--color-palette-e4f2ff) !important;
}

.form-label {
    margin-bottom: 0.2rem !important;
}

.input-group .input-group-select {
    display: inline-block;
    width: auto;
    flex-grow: 0;
    white-space: nowrap;
}

.max-h-400 {
    max-height: 400px;
}

@media (max-width: 576px) {
    .modal-fullscreen-sm-down .modal-content {
        height: 100vh;
    }

    .modal-fullscreen-sm-down .modal-body {
        overflow-y: auto;
        max-height: calc(100vh - 150px);
    }
}

#reportrange, .report-range {
    min-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: var(--cui-border-radius) !important;
}

.uniform-height {
    height: 2.75rem;
}

.card {
    border: 0 !important;
}

/* Avatar Gradient Backgrounds for A-Z (Balanced Soft & Vibrant Colors) */
.avatar-bg-a {
    background: linear-gradient(135deg, var(--color-palette-669bff), var(--color-palette-4f73e3));
}

.avatar-bg-b {
    background: linear-gradient(135deg, var(--color-palette-ff7855), var(--color-palette-d14a3a));
}

.avatar-bg-c {
    background: linear-gradient(135deg, var(--color-palette-66da85), var(--color-palette-469a56));
}

.avatar-bg-d {
    background: linear-gradient(135deg, var(--color-palette-ffb266), var(--color-palette-d1804d));
}

.avatar-bg-e {
    background: linear-gradient(135deg, var(--color-palette-c792e5), var(--color-palette-9f66c7));
}

.avatar-bg-f {
    background: linear-gradient(135deg, var(--color-palette-ffde66), var(--color-palette-d6b04d));
}

.avatar-bg-g {
    background: linear-gradient(135deg, var(--color-palette-66e47d), var(--color-palette-469a4a));
}

.avatar-bg-h {
    background: linear-gradient(135deg, var(--color-palette-7f86e6), var(--color-palette-575fa0));
}

.avatar-bg-i {
    background: linear-gradient(135deg, var(--color-palette-ff6685), var(--color-palette-bf405f));
}

.avatar-bg-j {
    background: linear-gradient(135deg, var(--color-palette-8f88e0), var(--color-palette-6366b2));
}

.avatar-bg-k {
    background: linear-gradient(135deg, var(--color-palette-ffd455), var(--color-palette-c29a3d));
}

.avatar-bg-l {
    background: linear-gradient(135deg, var(--color-palette-75e08a), var(--color-palette-499e57));
}

.avatar-bg-m {
    background: linear-gradient(135deg, var(--color-palette-ff6666), var(--color-palette-c04040));
}

.avatar-bg-n {
    background: linear-gradient(135deg, var(--color-palette-669bff), var(--color-palette-4f73e3));
}

.avatar-bg-o {
    background: linear-gradient(135deg, var(--color-palette-ffb266), var(--color-palette-d1804d));
}

.avatar-bg-p {
    background: linear-gradient(135deg, var(--color-palette-c792e5), var(--color-palette-9f66c7));
}

.avatar-bg-q {
    background: linear-gradient(135deg, var(--color-palette-ffde66), var(--color-palette-d6b04d));
}

.avatar-bg-r {
    background: linear-gradient(135deg, var(--color-palette-66e47d), var(--color-palette-469a4a));
}

.avatar-bg-s {
    background: linear-gradient(135deg, var(--color-palette-7f86e6), var(--color-palette-575fa0));
}

.avatar-bg-t {
    background: linear-gradient(135deg, var(--color-palette-ff6685), var(--color-palette-bf405f));
}

.avatar-bg-u {
    background: linear-gradient(135deg, var(--color-palette-8f88e0), var(--color-palette-6366b2));
}

.avatar-bg-v {
    background: linear-gradient(135deg, var(--color-palette-ffd455), var(--color-palette-c29a3d));
}

.avatar-bg-w {
    background: linear-gradient(135deg, var(--color-palette-75e08a), var(--color-palette-499e57));
}

.avatar-bg-x {
    background: linear-gradient(135deg, var(--color-palette-ff6666), var(--color-palette-c04040));
}

.avatar-bg-y {
    background: linear-gradient(135deg, var(--color-palette-ffb266), var(--color-palette-d1804d));
}

.avatar-bg-z {
    background: linear-gradient(135deg, var(--color-palette-669bff), var(--color-palette-4f73e3));
}

/*---------------------------------------
   ## Custom Referral Tree Styles
  ---------------------------------------*/

.ref-tree {
    margin: 0;
    padding: 0;
}

.ref-tree-ul {
    list-style: none;
    margin: 0;
    padding-left: 0;
    display: none;
}

.ref-tree-item {
    position: relative;
    padding: 8px 0 0 20px;
}

.ref-tree-item.ref-tree-root::before,
.ref-tree-item.ref-tree-root::after {
    content: none !important;
}

.ref-tree-item:not(.ref-tree-root)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10px;
    width: 1px;
    height: 100%;
    background: var(--color-palette-ccc);
}

.ref-tree-item:not(.ref-tree-root)::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 10px;
    height: 1px;
    background: var(--color-palette-ccc);
}

.ref-tree-item:last-child:not(.ref-tree-root)::before {
    height: 10px;
}

.ref-tree-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    background: var(--color-white);
    color: var(--color-palette-333);
    border: 1px solid rgba(var(--color-rgb-192-230-255), 0.8);
    border-radius: 5px;
    padding: 8px 12px;
    font-size: var(--font-base);
    transition: background 0.3s, transform 0.3s;
    gap: 10px;
}

.ref-tree-link:hover {
    background: var(--color-palette-f0f0f0);
}

.ref-tree-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ref-tree-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid var(--color-palette-ddd);
}

.ref-tree-details {
    font-size: var(--font-sm);
}

.ref-tree-details strong {
    font-weight: var(--font-semibold);
    display: block;
}

.ref-tree-details span {
    color: var(--color-palette-777);
    font-size: var(--font-xs);
}

.ref-tree-icon {
    transition: transform 0.3s ease;
}

.ref-tree-link.expanded .ref-tree-icon {
    transform: rotate(90deg);
}

/* Page Manage */
.card-header-custom {
    border-bottom: 1px solid var(--color-palette-dee2e6);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

#componentList {
    max-height: 550px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

#componentList::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

#componentList .item,
#pageComponent .item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--color-palette-eaeaea);
    border-radius: 0.5rem;
    background-color: var(--color-white);
    cursor: grab;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease;
    flex-wrap: wrap;
}

#componentList .item:hover,
#pageComponent .item:hover {
    background-color: var(--color-palette-f8f9fa);
}

#pageComponent {
    min-height: 10px;
    background-color: var(--color-palette-fcfcfc);
    border: 2px dashed var(--color-palette-c7c7c7);
    border-radius: 6px;
    padding: 1rem;
    transition: background-color 0.3s ease-in-out;
}

.drop-text {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-palette-adb5bd);
    font-size: var(--font-size-rem-1);
    font-weight: var(--font-medium);
    height: 100%;
    text-align: center;
    padding: 0.5rem;
}

.details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    min-width: 0;
}

.component-admin-thumb {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0.38rem;
    overflow: hidden;
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.28);
    border-radius: 0.9rem;
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-surface-alt) 100%);
    box-shadow: 0 12px 24px rgba(var(--color-text-rgb), 0.08);
    flex-shrink: 0;
}

.component-admin-thumb__img,
.component-admin-thumb__fallback {
    width: 100%;
    height: 100%;
}

.component-admin-thumb__img {
    display: block;
    object-fit: contain;
}

.component-admin-thumb__fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
}

.component-admin-thumb__fallback svg {
    width: 100%;
    height: 100%;
}

.component-admin-thumb--compact {
    width: 30px;
    height: 30px;
    padding: 0.25rem;
    border-radius: 0.65rem;
}

.component-admin-thumb--lg {
    width: 4rem;
    height: 4rem;
    padding: 0.5rem;
    border-radius: 1.15rem;
}

.details img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.component-manage a,
.manage-drag {
    color: var(--color-palette-6c757d);
    transition: color 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
}

.component-manage a:hover,
.manage-drag:hover {
    color: var(--color-palette-0d6efd);
    text-decoration: underline;
}

.component-empty-text {
    padding: 1rem;
    text-align: center;
    font-size: var(--font-size-rem-095);
    color: var(--color-palette-adb5bd);
    display: none;
}

/* Responsive Tweaks */
@media (max-width: 576px) {
    .card-header-custom {
        flex-direction: column;
        align-items: flex-start;
    }

    .details span {
        font-size: var(--font-size-rem-09);
        word-break: break-word;
    }

    .component-manage a,
    .manage-drag {
        font-size: var(--font-size-rem-09);
    }

    #componentList .item,
    #pageComponent .item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
}

/* Drag and Drop Styles */
.drag-handle {
    cursor: grab;
    animation: bounceY 1.5s infinite ease-in-out;
    color: var(--color-palette-999);
    transition: transform 0.2s ease;
}

.drag-handle:active {
    cursor: grabbing;
    color: var(--color-palette-333);
    transform: scale(1.1);
}

@keyframes bounceY {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

.card-body.border:hover {
    background-color: var(--color-palette-f8f9fa);
}

/* Custom sidenav Scrollbar Styles */

.scrollable-nav {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0 !important;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.scrollable-nav::-webkit-scrollbar {
    width: 1px;
}

.scrollable-nav::-webkit-scrollbar-thumb {
    background-color: transparent;
    transition: background-color 0.2s ease-in-out;
    border-radius: 10px;
}

.scrollable-nav:hover::-webkit-scrollbar-thumb,
.scrollable-nav:focus-within::-webkit-scrollbar-thumb,
.scrollable-nav.show-scrollbar::-webkit-scrollbar-thumb {
    background-color: var(--color-palette-4c82ff80);
}

.scrollable-nav:hover,
.scrollable-nav:focus-within,
.scrollable-nav.show-scrollbar {
    scrollbar-color: var(--color-palette-4c82ff80) transparent;
}

.scrollable-nav::-webkit-scrollbar-track {
    background: transparent;
}

@supports (scrollbar-gutter: stable) {
    #v-pills-tab {
        scrollbar-gutter: stable both-edges;
    }
}


@-moz-document url-prefix() {
    #v-pills-tab {
        padding-right: 9px !important;
        box-sizing: content-box;
    }
}

.nav-link:hover {
    background-color: var(--color-palette-e8f0ff);
    color: var(--color-palette-1d6ce0);
}

.header .nav-link:hover {
    background-color: transparent;
}

.border tbody tr:last-child {
    border-bottom: 1px transparent !important;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: var(--font-size-rem-125);
}

.stat-card {
    min-height: 60px;
    background-color: var(--color-white);
    transition: all 0.2s ease-in-out;
    border-radius: 0.5rem;
    cursor: pointer;
}

.stat-card:hover {
    background-color: var(--color-palette-f9fafb);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--color-black-rgb), 0.05);
}

.stat-bar .progress-bar {
    border-radius: 50px;
    height: 4px;
    transition: width 0.4s ease-in-out;
}

.stat-filter.active {
    border: 2px solid var(--color-palette-0d6efd);
    background-color: var(--color-palette-eaf3ff);
}

@media (max-width: 767.98px) {
    .stat-card {
        padding: 0.75rem 1rem;
    }
}

/* ==== Default Currency Balance Card ==== */
.wallet-summary-card {
    border-radius: .5rem;
    transition: 0.25s ease-in-out;
    background: linear-gradient(135deg, var(--color-white), var(--color-palette-f3f4f6));
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(var(--color-black-rgb), 0.05);
    overflow: hidden;
}

.wallet-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--color-black-rgb), 0.08);
}

/* ==== Currency Icon ==== */
.currency-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(var(--color-white-rgb), 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: var(--font-xl);
    color: var(--color-palette-1a1a1a);
    box-shadow: 0 2px 8px rgba(var(--color-black-rgb), 0.05);
    backdrop-filter: blur(4px);
    overflow: hidden;
    flex-shrink: 0;
}

.currency-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* ==== Wallet Amount ==== */
.wallet-amount {
    font-size: var(--font-size-rem-125);
    font-weight: var(--font-bold);
    color: var(--color-palette-212529);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* ==== Text Adjustments ==== */
.wallet-summary-card h6 {
    font-size: var(--font-size-rem-1);
    font-weight: var(--font-semibold);
    margin-bottom: 0.25rem;
}

.wallet-summary-card small {
    font-size: var(--font-size-rem-0875);
    color: var(--color-palette-6c757d);
}

/* ==== Responsive: Mobile-first optimization ==== */
@media (max-width: 575.98px) {
    .wallet-summary-card {
        padding: 0.75rem 0.875rem;
        border-radius: 0.75rem;
    }

    .currency-icon {
        width: 40px;
        height: 40px;
        font-size: var(--font-lg);
    }

    .wallet-amount {
        font-size: var(--font-size-rem-1);
    }

    .wallet-summary-card h6 {
        font-size: var(--font-base);
    }

    .wallet-summary-card small {
        font-size: var(--font-xs);
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .wallet-summary-card {
        padding: 0.875rem 1rem;
    }

    .currency-icon {
        width: 42px;
        height: 42px;
        font-size: var(--font-size-px-17);
    }

    .wallet-amount {
        font-size: var(--font-size-rem-11);
    }
}

.user-stat-card {
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    box-shadow: 0 1px 4px rgba(var(--color-black-rgb), 0.035);
    padding: 0.75rem 1rem;
    min-height: 68px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.user-stat-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(var(--color-black-rgb), 0.05);
}

.user-stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: var(--font-size-rem-1);
}

.scrollable-feature-list {
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent; /* Default hidden */
    transition: scrollbar-color 0.3s ease;
}

.scrollable-feature-list:hover {
    scrollbar-color: var(--color-palette-4c82ff80) transparent;
}

.scrollable-feature-list::-webkit-scrollbar {
    width: 6px;
}

.scrollable-feature-list::-webkit-scrollbar-track {
    background: transparent;
}

.scrollable-feature-list::-webkit-scrollbar-thumb {
    background-color: transparent;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.scrollable-feature-list:hover::-webkit-scrollbar-thumb {
    background-color: var(--color-palette-4c82ff80);
}

.ticket-container {
    font-size: var(--font-size-rem-095);
}

.ticket-container .card-header,
.ticket-container .card-footer {
    background-color: var(--color-palette-f9fafb);
    border-radius: 0.75rem 0.75rem 0 0;
}

.ticket-container .card-footer {
    border-radius: 0 0 0.75rem 0.75rem;
    background-color: var(--color-palette-f8f9fc);
    border-top: 1px solid var(--color-palette-e1e5eb);
}

.ticket-container .badge {
    padding: 0.4rem 0.6rem;
    font-size: var(--font-size-rem-075);
    border-radius: 0.5rem;
}

.ticket-container .card-title {
    font-size: var(--font-size-rem-1);
    font-weight: var(--font-semibold);
}

.ticket-container .message-bubble {
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(var(--color-black-rgb), 0.05);
    padding: 1rem;
    transition: none;
}


.ticket-container .message-meta {
    font-size: var(--font-size-rem-08);
}

.ticket-container .attachment-link {
    font-size: var(--font-size-rem-085);
}

.ticket-container .chat-body {
    max-height: 400px;
    overflow-y: auto;
    background-color: var(--color-palette-f5f7fa);
    border-radius: 0.75rem;
}

.ticket-container textarea.form-control {
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(var(--color-black-rgb), 0.05);
    padding: 1rem;
    font-size: var(--font-size-rem-095);
}

.ticket-container .file-preview {
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(var(--color-black-rgb), 0.05);
    background-color: var(--color-white);
    font-size: var(--font-size-rem-085);
}

.ticket-container .file-preview span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
    display: inline-block;
}

.ticket-container .btn-custom {
    border-radius: 0.6rem;
    font-weight: var(--font-medium);
    font-size: var(--font-size-rem-095);
    padding: 0.5rem 1rem;
}

.ticket-container .top-control-select {
    border-radius: 0.5rem;
}

.ticket-container .btn-wrap {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    justify-content: space-between;
}

.ticket-container .btn-wrap > div {
    flex: 1 1 auto;
}

@media (max-width: 575.98px) {
    .ticket-container .btn-wrap {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.25rem;
    }

    .ticket-container .btn-wrap > div {
        flex: 1 1 50%;
    }

    .ticket-container .btn-custom {
        font-size: var(--font-size-rem-0875);
        padding: 0.45rem 0.75rem;
    }
}

.variable-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.variable-tag {
    display: inline-block;
    white-space: nowrap;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: var(--font-size-rem-0875);
    font-weight: var(--font-semibold);
    background-color: var(--color-palette-fde8e8);
    color: var(--color-danger-deep);
}

.alert-info .title {
    font-weight: var(--font-semibold);
    margin-bottom: 6px;
}

.alert-info .description {
    line-height: 1.6;
}

.CodeMirror {
    border-radius: var(--cui-border-radius) !important;
}

/* =============================================================
   Cardholder Modal Content
   Keeps long customer-provided values readable without breaking the layout.
   ============================================================= */
.cardholder-modal-value,
.cardholder-modal-note,
.cardholder-modal-address,
.cardholder-modal-business,
.cardholder-modal-kyc {
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    white-space: pre-line;
    max-width: 100%;
    text-align: left !important;
}

.cardholder-modal-label,
.cardholder-modal-section-title,
.cardholder-modal-header,
.cardholder-modal-badge,
.cardholder-modal-section {
    text-align: left !important;
}

.card-header .row [class^="col"] {
    text-align: left !important;
}

.cardholder-modal-section-title {
    font-size: var(--font-size-em-11);
    font-weight: var(--font-semibold);
    color: var(--color-palette-2a3c60);
    letter-spacing: 0.02em;
    margin-bottom: 0.7rem;
}

.cardholder-modal-label {
    font-size: var(--font-size-em-097);
    font-weight: var(--font-semibold);
    color: var(--color-palette-5c6b8a);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 2px;
}

.cardholder-modal-badge {
    font-size: var(--font-size-em-095);
    margin-right: 0.3em;
}

.cardholder-modal-section {
    background: var(--color-palette-f8fafd);
    border-radius: 8px;
    padding: 1.1rem 1.3rem 1rem 1.3rem;
    margin-bottom: 1.2rem;
}

@media (max-width: 768px) {
    .cardholder-modal-section {
        padding: 0.7rem 0.4rem;
    }
}

/* =============================================================
   Landing Page Builder Helpers
   Shared drag-and-drop utilities for page component management.
   ============================================================= */
#drop-area {
    border: 2px dashed var(--color-palette-cccccc) !important;
    cursor: pointer;
}

#drop-area:hover {
    background-color: var(--color-palette-f8f9fa);
}

.form-text pre {
    margin: 0;
    font-size: var(--font-size-rem-0875);
    background-color: var(--color-palette-f8f9fa);
    border-radius: 4px;
    padding: 10px;
}

.alert-info {
    background-color: var(--color-palette-e9f7fe);
    border-color: var(--color-palette-b8e2f2);
    color: var(--color-palette-31708f);
}

.user-charge-border {
    border-color: var(--color-palette-0d6efd) !important;
    border-width: 2px !important;
}

.merchant-charge-border {
    border-color: var(--color-palette-198754) !important;
    border-width: 2px !important;
}

/* Convert to Merchant Modal Styles */
.convert-modal-avatar {
    object-fit: cover;
}

.convert-modal-avatar-placeholder {
    width: 50px;
    height: 50px;
}

.convert-modal-user-icon {
    font-size: var(--font-size-rem-075);
}

.convert-modal-benefit-icon {
    font-size: var(--font-size-rem-0875);
}

/* =============================================================
   Admin Menu Search
   Keep the trigger, inner controls, and results in one place so hover/focus
   refinements do not get split across later overrides.
   ============================================================= */
.admin-menu-search-form {
    min-width: 260px;
    max-width: 340px;
    z-index: 1052;
    background: var(--color-palette-fcfcfd);
    border-radius: 0.6rem;
    border: 1.5px solid var(--color-palette-e3e8f0);
    padding: 0.10rem 0.18rem;
    transition: box-shadow 0.18s, border-color 0.18s;
    display: flex;
    align-items: center;
}

.admin-menu-search-form:focus-within,
.admin-menu-search-form:hover {
    border-color: var(--color-palette-b1bad6);
    box-shadow: 0 4px 12px rgba(var(--color-rgb-60-72-88), 0.12);
    background: var(--color-palette-f6f8ff);
}

.admin-search-group {
    background: transparent;
    border-radius: 0.45rem;
    width: 100%;
    display: flex;
    align-items: center;
    border: none;
    box-shadow: none;
    padding: 0;
}

.admin-search-addon {
    min-width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    border-radius: 0.45rem !important;
    padding: 0 0.2rem 0 0.4rem;
}

.admin-search-input,
.admin-search-input:focus,
.admin-search-input:active,
.admin-search-input:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    border-radius: 0.45rem !important;
}

.admin-search-input {
    font-weight: var(--font-medium);
    color: var(--color-palette-2d3a5c);
    font-size: var(--font-size-rem-1);
    padding: 0.6rem 0.7rem 0.6rem 0.1rem;
    min-width: 0;
    width: 100%;
    transition: background 0.18s, color 0.18s;
}

.admin-search-clear {
    color: var(--color-palette-bdbdbd);
    font-size: var(--font-size-rem-115);
    background: none;
    border: none;
    border-radius: 0.45rem !important;
    outline: none;
    z-index: 1060 !important;
    transition: color 0.2s;
    margin-right: 0.2rem;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    right: 0.2rem;
    pointer-events: auto !important;
}

.admin-search-clear:hover {
    color: var(--color-palette-ff5555);
}

.admin-menu-search-form input:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    .admin-menu-search-form {
        min-width: 170px;
        max-width: 100%;
        padding: 0.07rem 0.08rem;
        border-radius: 0.45rem;
    }

    .admin-search-input {
        font-size: var(--font-size-rem-099);
        padding: 0.45rem 0.5rem 0.45rem 0.05rem;
        border-radius: 0.32rem !important;
    }

    .admin-search-group,
    .admin-search-addon,
    .admin-search-clear {
        border-radius: 0.32rem !important;
    }
}

.admin-menu-search-results {
    z-index: 1055;
    position: absolute;
    border-radius: 0.6rem;
    box-shadow: 0 4px 12px rgba(var(--color-rgb-60-72-88), 0.08);
    border: 1px solid var(--color-palette-e3e8f0);
    background: var(--color-white);
    margin-top: 0.2rem;
    min-width: 100%;
    max-height: 370px;
    overflow-y: auto;
    padding-bottom: 0.1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--color-palette-c8d0e7) var(--color-palette-f6f8ff);
    transition: box-shadow 0.18s;
}

.admin-menu-search-results::-webkit-scrollbar {
    width: 6px;
    background: var(--color-palette-f6f8ff);
}

.admin-menu-search-results::-webkit-scrollbar-thumb {
    background: var(--color-palette-c8d0e7);
    border-radius: 6px;
}

.admin-menu-search-results::-webkit-scrollbar-thumb:hover {
    background: var(--color-palette-b1bad6);
}

.menu-search-item {
    border-radius: 0.45rem;
}

@media (max-width: 768px) {
    .admin-menu-search-results {
        border-radius: 0.45rem;
        max-height: 220px;
        font-size: var(--font-size-rem-099);
    }
}

/* =============================================================
   Admin Control Panel
   Primary shell styles for the configurable feature control surface.
   ============================================================= */
.control-panel-shell {
    display: grid;
    gap: 1.25rem;
}

.control-panel-header {
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-palette-1e3a8a) 52%, var(--color-primary) 100%);
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.18);
    border-radius: 20px;
    padding: 1.5rem;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
    box-shadow: 0 22px 45px -28px rgba(var(--color-text-rgb), 0.85);
}

.control-panel-header::before,
.control-panel-header::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.control-panel-header::before {
    width: 280px;
    height: 280px;
    top: -140px;
    right: -110px;
    background: radial-gradient(circle, rgba(var(--color-white-rgb), 0.16) 0%, rgba(var(--color-white-rgb), 0) 72%);
}

.control-panel-header::after {
    width: 220px;
    height: 220px;
    bottom: -130px;
    left: -90px;
    background: radial-gradient(circle, rgba(var(--color-rgb-59-130-246), 0.24) 0%, rgba(var(--color-rgb-59-130-246), 0) 74%);
}

.control-panel-header-top,
.control-panel-toolbar {
    position: relative;
    z-index: 1;
}

.control-panel-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-content {
    min-width: 0;
}

.header-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.65rem;
    margin-bottom: 0.55rem;
    border-radius: 999px;
    background: rgba(var(--color-white-rgb), 0.12);
    border: 1px solid rgba(var(--color-white-rgb), 0.14);
    font-size: var(--font-size-rem-072);
    font-weight: var(--font-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.header-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(var(--color-white-rgb), 0.2), rgba(var(--color-white-rgb), 0.08));
    border: 1px solid rgba(var(--color-white-rgb), 0.16);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(var(--color-white-rgb), 0.14);
}

.header-icon .icon {
    width: 24px;
    height: 24px;
    color: var(--color-white);
}

.header-title {
    font-size: var(--font-size-rem-185);
    font-weight: var(--font-bold);
    letter-spacing: -0.04em;
    line-height: 1.1;
}

/*
 * Beat the global `h1 { color: var(--color-text) }` from _variables.css that
 * was repainting the Control Panel hero title BLACK on a dark blue gradient
 * (parent `color: var(--color-white)` cannot win against a direct h1 rule).
 * Scoped to `.control-panel-header` so the override only applies on the dark
 * hero surface.
 */
.control-panel-header .header-title,
.control-panel-header h1.header-title {
    color: var(--color-white);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}

.header-subtitle {
    margin-top: 0.35rem;
    max-width: 620px;
    color: rgba(var(--color-white-rgb), 0.78);
    font-size: var(--font-size-rem-094);
    font-weight: var(--font-normal);
    line-height: 1.5;
}

.header-overview {
    display: flex;
    align-items: stretch;
    gap: 0.8rem;
}

.header-stat-card {
    min-width: 120px;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(var(--color-white-rgb), 0.1);
    border: 1px solid rgba(var(--color-white-rgb), 0.12);
    backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(var(--color-white-rgb), 0.08);
}

.header-stat-card--primary {
    background: linear-gradient(135deg, rgba(var(--color-white-rgb), 0.16), rgba(var(--color-rgb-147-197-253), 0.16));
}

.stat-number {
    display: block;
    font-size: var(--font-size-rem-16);
    font-weight: var(--font-bold);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat-label {
    display: block;
    color: rgba(var(--color-white-rgb), 0.82);
    font-size: var(--font-size-rem-072);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ===== Live Search Styles ===== */
.control-panel-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(var(--color-white-rgb), 0.1);
}

.control-panel-search {
    flex: 1;
    max-width: 460px;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 0.75rem 1rem;
    background: rgba(var(--color-white-rgb), 0.09);
    border: 1px solid rgba(var(--color-white-rgb), 0.14);
    border-radius: 14px;
    backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(var(--color-white-rgb), 0.08);
    transition: all 0.25s ease;
}

.search-wrapper:focus-within {
    background: rgba(var(--color-white-rgb), 0.13);
    border-color: rgba(var(--color-white-rgb), 0.3);
    box-shadow: 0 0 0 4px rgba(var(--color-rgb-191-219-254), 0.12);
}

.search-icon {
    margin-right: 0.75rem;
    opacity: 0.9;
}

.search-icon .icon,
.search-clear .icon {
    width: 17px;
    height: 17px;
    color: var(--color-white);
}

.search-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-white);
    font-size: var(--font-size-rem-095);
    font-weight: var(--font-medium);
}

.search-input::placeholder {
    color: rgba(var(--color-white-rgb), 0.62);
}

.search-clear {
    margin-left: 0.65rem;
    padding: 0.3rem;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.search-clear:hover {
    opacity: 1;
    background: rgba(var(--color-white-rgb), 0.12);
}

.control-panel-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
}

.control-panel-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    background: rgba(var(--color-white-rgb), 0.08);
    border: 1px solid rgba(var(--color-white-rgb), 0.1);
    color: rgba(var(--color-white-rgb), 0.84);
    font-size: var(--font-size-rem-08);
    font-weight: var(--font-semibold);
    white-space: nowrap;
}

.meta-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-palette-86efac);
    box-shadow: 0 0 0 4px rgba(var(--color-rgb-134-239-172), 0.16);
}

/* ===== Grid Layout ===== */
.control-panel-grid {
    display: grid;
    gap: 1rem;
}

.section-block {
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-palette-fbfdff) 100%);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    overflow: hidden;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(180deg, var(--color-surface-alt) 0%, var(--color-surface-alt) 100%);
    border-bottom: 1px solid var(--color-border);
}

.section-heading-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
}

.section-icon-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.section-indicator {
    width: 4px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary) 100%);
    flex-shrink: 0;
}

.section-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(var(--color-white-rgb), 0.18);
}

.section-icon .icon {
    width: 18px;
    height: 18px;
    color: var(--color-white);
}

.section-title {
    margin: 0;
    color: var(--color-text);
    font-size: var(--font-size-rem-098);
    font-weight: var(--font-bold);
    line-height: 1.2;
}

.section-subtitle {
    margin-top: 0.22rem;
    color: var(--color-text-muted);
    font-size: var(--font-size-rem-078);
    line-height: 1.4;
}

.section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 32px;
    padding: 0 0.8rem;
    background: var(--color-palette-e0e7ff);
    color: var(--color-primary-deep);
    border-radius: 999px;
    font-size: var(--font-size-rem-076);
    font-weight: var(--font-bold);
    line-height: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 0.9rem;
    padding: 0.9rem;
}

/* ===== Feature Cards ===== */
.feature-card {
    position: relative;
    display: block;
    height: 100%;
    padding: 0.82rem 0.9rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 15px;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 6px 18px -18px rgba(var(--color-text-rgb), 0.22);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(var(--color-primary-rgb), 0), rgba(var(--color-primary-rgb), 0.95), rgba(var(--color-rgb-124-58-237), 0.9));
    opacity: 0;
    transition: opacity 0.22s ease;
}

.feature-card:hover,
.feature-card:focus {
    transform: translateY(-2px);
    border-color: var(--color-palette-bfdbfe);
    background: var(--color-palette-fefeff);
    text-decoration: none;
    box-shadow: 0 10px 24px -20px rgba(var(--color-primary-rgb), 0.22);
}

.feature-card:hover::before,
.feature-card:focus::before {
    opacity: 1;
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: 0.62rem;
    height: 100%;
}

.feature-header {
    margin: 0;
}

.feature-main {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}

.feature-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(var(--color-white-rgb), 0.18);
}

.feature-icon .icon {
    width: 20px;
    height: 20px;
    color: var(--color-white);
}

.feature-body {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.feature-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.28rem;
}

.feature-title {
    margin: 0;
    color: var(--color-text);
    font-size: var(--font-size-rem-095);
    font-weight: var(--font-bold);
    line-height: 1.25;
}

.feature-parent {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    background: var(--color-palette-eef2ff);
    color: var(--color-primary);
    border-radius: 999px;
    font-size: var(--font-size-rem-066);
    font-weight: var(--font-bold);
    line-height: 1.2;
    white-space: nowrap;
}

.feature-description {
    margin: 0;
    color: var(--color-text-muted);
    font-size: var(--font-size-rem-079);
    line-height: 1.42;
}

.feature-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.55rem;
    border-top: 1px solid var(--color-border-soft);
}

.access-hint {
    color: var(--color-text-muted);
    font-size: var(--font-size-rem-072);
    font-weight: var(--font-bold);
    letter-spacing: 0.02em;
}

.access-arrow {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: var(--color-surface-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.22s ease;
}

.access-arrow .icon {
    width: 13px;
    height: 13px;
    color: var(--color-text-subtle);
    transition: all 0.22s ease;
}

.feature-card:hover .access-arrow,
.feature-card:focus .access-arrow {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
}

.feature-card:hover .access-arrow .icon,
.feature-card:focus .access-arrow .icon {
    color: var(--color-white);
    transform: translateX(2px);
}

/* ===== Color Variants ===== */
.feature-icon.bg-primary,
.section-icon.bg-primary {
    background: linear-gradient(135deg, var(--color-palette-3b82f6), var(--color-primary-hover));
}

.feature-icon.bg-success,
.section-icon.bg-success {
    background: linear-gradient(135deg, var(--color-success), var(--color-success-strong));
}

.feature-icon.bg-info,
.section-icon.bg-info {
    background: linear-gradient(135deg, var(--color-palette-06b6d4), var(--color-palette-0891b2));
}

.feature-icon.bg-warning,
.section-icon.bg-warning {
    background: linear-gradient(135deg, var(--color-warning), var(--color-warning-strong));
}

.feature-icon.bg-danger,
.section-icon.bg-danger {
    background: linear-gradient(135deg, var(--color-danger), var(--color-danger-strong));
}

.feature-icon.bg-secondary,
.section-icon.bg-secondary {
    background: linear-gradient(135deg, var(--color-text-muted), var(--color-palette-4b5563));
}

/* ===== No Search Results ===== */
.no-search-results {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-palette-fbfdff) 100%);
    border-radius: 18px;
    border: 1px solid var(--color-border);
    box-shadow: 0 16px 35px -30px rgba(var(--color-text-rgb), 0.55);
}

.no-results-content {
    max-width: 300px;
    margin: 0 auto;
}

.no-results-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-surface-soft), var(--color-border));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.no-results-icon .icon {
    width: 30px;
    height: 30px;
    color: var(--color-text-faint);
}

.no-results-title {
    font-size: var(--font-size-rem-1125);
    font-weight: var(--font-semibold);
    color: var(--color-text-soft);
    margin-bottom: 0.5rem;
}

.no-results-description {
    font-size: var(--font-size-rem-0875);
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-palette-fbfdff) 100%);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    box-shadow: 0 16px 35px -30px rgba(var(--color-text-rgb), 0.55);
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-surface-soft), var(--color-border));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.empty-icon .icon {
    width: 40px;
    height: 40px;
    color: var(--color-text-faint);
}

.empty-title {
    font-size: var(--font-size-rem-125);
    font-weight: var(--font-semibold);
    color: var(--color-text-soft);
    margin-bottom: 0.5rem;
}

.empty-description {
    font-size: var(--font-size-rem-1);
    color: var(--color-text-muted);
    margin: 0;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .control-panel-shell {
        gap: 1rem;
    }

    .control-panel-header {
        padding: 1.2rem;
    }

    .control-panel-header-top,
    .control-panel-toolbar,
    .control-panel-header .d-flex {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .header-content .d-flex {
        flex-direction: column;
        text-align: center;
        gap: 0.85rem;
    }

    .header-overview {
        width: 100%;
        justify-content: center;
    }

    .header-stat-card {
        flex: 1;
        min-width: 0;
    }

    .control-panel-search {
        max-width: 100%;
    }

    .control-panel-meta {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .section-header {
        padding: 0.95rem 1rem;
        align-items: flex-start;
    }

    .section-heading-group,
    .feature-title-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .header-title {
        font-size: var(--font-size-rem-145);
    }

    .header-subtitle {
        font-size: var(--font-size-rem-0875);
    }

    .control-panel-header::before,
    .control-panel-header::after {
        display: none;
    }

    .header-overview {
        flex-direction: column;
    }

    .search-wrapper {
        min-height: 46px;
        padding: 0.7rem 0.9rem;
    }

    .feature-main {
        gap: 0.75rem;
    }

    .feature-icon {
        width: 42px;
        height: 42px;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-block {
    animation: fadeInUp 0.6s ease forwards;
}

.section-block:nth-child(2) {
    animation-delay: 0.1s;
}

.section-block:nth-child(3) {
    animation-delay: 0.2s;
}

.section-block:nth-child(4) {
    animation-delay: 0.3s;
}

.section-block:nth-child(5) {
    animation-delay: 0.4s;
}

/* =============================================================
   Application Information Page — Premium Edition
   ============================================================= */

.app-info-page {
    --ai-bg-1: var(--color-bg);
    --ai-bg-2: var(--color-surface-soft);
    --ai-ink: var(--color-text);
    --ai-ink-soft: var(--color-text-subtle);
    --ai-ink-muted: var(--color-text-muted);
    --ai-line: rgba(var(--color-secondary-rgb), 0.22);
    --ai-line-soft: rgba(var(--color-secondary-rgb), 0.14);
    --ai-surface: var(--color-card);
    --ai-surface-alt: rgba(var(--color-white-rgb), 0.78);
    --ai-shadow-sm: var(--shadow-sm);
    --ai-shadow-md: var(--shadow-md);
    --ai-shadow-lg: var(--shadow-lg);
    --ai-radius-lg: 1.25rem;
    --ai-radius-md: 1rem;
    --ai-radius-sm: 0.78rem;
}

.enterprise-container {
    min-height: 100vh;
    padding: 1.5rem 0 2.25rem;
}

.enterprise-header {
    position: relative;
    padding: 1.5rem 1.5rem 1.25rem;
    margin-bottom: 1.25rem;
    overflow: hidden;
    border: 1px solid var(--ai-line);
    border-radius: var(--ai-radius-lg);
    background: linear-gradient(135deg, rgba(var(--color-white-rgb), 0.96), rgba(var(--color-rgb-248-250-252), 0.92)),
    radial-gradient(480px 220px at 100% 0%, rgba(var(--color-primary-rgb), 0.14), transparent 66%);
    box-shadow: var(--ai-shadow-sm), var(--ai-shadow-md);
}

.enterprise-header::before {
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary), var(--color-palette-0891b2), var(--color-success), var(--color-warning));
    content: '';
}

.enterprise-header::after {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(var(--color-text-rgb), 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--color-text-rgb), 0.035) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(80% 70% at 50% 0%, var(--color-black) 30%, transparent 80%);
    pointer-events: none;
    content: '';
}

.enterprise-header__aurora {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.enterprise-header__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
}

.enterprise-header__orb--one {
    top: -60px;
    left: -40px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.45), transparent 70%);
}

.enterprise-header__orb--two {
    top: -30px;
    right: 5%;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(var(--color-success-rgb), 0.4), transparent 70%);
}

.enterprise-header__orb--three {
    bottom: -80px;
    left: 35%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(var(--color-rgb-124-58-237), 0.32), transparent 70%);
}

.enterprise-header__main {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
    z-index: 1;
}

.enterprise-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.enterprise-brand__mark {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    padding: 0.7rem;
    border: 1px solid var(--ai-line);
    border-radius: 1.15rem;
    background: linear-gradient(140deg, var(--color-white) 0%, var(--color-surface-alt) 100%);
    box-shadow: 0 5px 14px rgba(var(--color-text-rgb), 0.035), inset 0 1px 0 rgba(var(--color-white-rgb), 0.9);
    flex-shrink: 0;
}

.enterprise-brand__mark::after {
    position: absolute;
    inset: -2px;
    border-radius: 1.25rem;
    padding: 2px;
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.55), rgba(var(--color-success-rgb), 0.55));
    -webkit-mask: linear-gradient(var(--color-black) 0 0) content-box, linear-gradient(var(--color-black) 0 0);
    mask: linear-gradient(var(--color-black) 0 0) content-box, linear-gradient(var(--color-black) 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.55;
    pointer-events: none;
    content: '';
}

.enterprise-brand__content {
    min-width: 0;
}

.enterprise-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
    padding: 0.22rem 0.6rem;
    border: 1px solid rgba(var(--color-primary-rgb), 0.22);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.08), rgba(var(--color-success-rgb), 0.06));
    color: var(--color-primary);
    font-size: var(--font-size-rem-068);
    font-weight: var(--font-extrabold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.enterprise-eyebrow i {
    font-size: var(--font-size-rem-07);
}

.enterprise-brand h1 {
    margin: 0;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-text-soft) 50%, var(--color-text-soft) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--ai-ink);
    font-size: var(--font-size-rem-178);
    font-weight: var(--font-extrabold);
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.enterprise-brand p {
    max-width: 720px;
    margin: 0.45rem 0 0;
    color: var(--ai-ink-muted);
    font-size: var(--font-size-rem-092);
    line-height: 1.6;
}

.enterprise-header__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}

.enterprise-system-state {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.4rem;
    padding: 0.55rem 0.95rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: var(--font-size-rem-078);
    font-weight: var(--font-extrabold);
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(var(--color-text-rgb), 0.03);
    backdrop-filter: blur(8px);
}

.enterprise-system-state__pulse {
    position: relative;
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: currentColor;
}

.enterprise-system-state__pulse::after {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.45;
    content: '';
}

.enterprise-system-state--success {
    color: var(--color-success-deep);
    background: linear-gradient(135deg, var(--color-palette-ecfdf5), var(--color-white));
    border-color: var(--color-success-soft);
}

.enterprise-system-state--warning {
    color: var(--color-warning-deep);
    background: linear-gradient(135deg, var(--color-palette-fffbeb), var(--color-white));
    border-color: var(--color-palette-fcd34d);
}

.enterprise-clock {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--ai-line);
    border-radius: 999px;
    background: rgba(var(--color-white-rgb), 0.68);
    color: var(--ai-ink-muted);
    font-size: var(--font-size-rem-072);
    font-weight: var(--font-bold);
    backdrop-filter: blur(6px);
}

.enterprise-clock i {
    color: var(--color-primary);
}

.enterprise-stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    z-index: 1;
}

.enterprise-stat-card {
    --stat-color: var(--color-primary);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    padding: 0.95rem 1rem;
    border: 1px solid var(--ai-line-soft);
    border-radius: var(--ai-radius-md);
    background: linear-gradient(135deg, rgba(var(--color-white-rgb), 0.92), rgba(var(--color-white-rgb), 0.7)),
    radial-gradient(180px 100px at 100% 0%, color-mix(in srgb, var(--stat-color) 12%, transparent), transparent 70%);
    box-shadow: inset 0 1px 0 rgba(var(--color-white-rgb), 0.95), 0 2px 8px rgba(var(--color-text-rgb), 0.025);
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    backdrop-filter: blur(6px);
}

.enterprise-stat-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--stat-color), color-mix(in srgb, var(--stat-color) 40%, transparent));
    content: '';
}

.enterprise-stat-card:hover {
    border-color: color-mix(in srgb, var(--stat-color) 30%, var(--ai-line));
    box-shadow: 0 4px 12px rgba(var(--color-text-rgb), 0.035);
}

.enterprise-stat-card--success {
    --stat-color: var(--color-success-deep);
}

.enterprise-stat-card--warning {
    --stat-color: var(--color-warning-deep);
}

.enterprise-stat-card--info {
    --stat-color: var(--color-palette-0e7490);
}

.enterprise-stat-card--primary {
    --stat-color: var(--color-primary);
}

.enterprise-stat-card--danger {
    --stat-color: var(--color-danger-deep);
}

.enterprise-stat-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 0.85rem;
    color: var(--stat-color);
    background: linear-gradient(135deg,
    color-mix(in srgb, var(--stat-color) 14%, var(--color-white)),
    color-mix(in srgb, var(--stat-color) 6%, var(--color-white)));
    border: 1px solid color-mix(in srgb, var(--stat-color) 18%, transparent);
    flex-shrink: 0;
    font-size: var(--font-size-rem-105);
    box-shadow: inset 0 1px 0 rgba(var(--color-white-rgb), 0.9);
}

.enterprise-stat-card__body {
    flex: 1;
    min-width: 0;
}

.enterprise-stat-card span {
    display: block;
    color: var(--ai-ink-muted);
    font-size: var(--font-size-rem-066);
    font-weight: var(--font-extrabold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.enterprise-stat-card strong {
    display: block;
    overflow: hidden;
    margin-top: 0.15rem;
    color: var(--ai-ink);
    font-size: var(--font-size-rem-105);
    font-weight: var(--font-extrabold);
    letter-spacing: -0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.enterprise-stat-card small {
    display: block;
    margin-top: 0.1rem;
    color: var(--ai-ink-muted);
    font-size: var(--font-size-rem-07);
    font-weight: var(--font-semibold);
    text-transform: none;
    letter-spacing: 0;
}

.enterprise-stat-card__chip {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--stat-color) 14%, var(--color-white));
    border: 1px solid color-mix(in srgb, var(--stat-color) 22%, transparent);
}

.enterprise-stat-card__dot {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: var(--stat-color);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--stat-color) 12%, transparent);
}

.stat-logo,
.card-logo {
    width: 100%;
    height: 100%;
    border-radius: 0.75rem;
    object-fit: contain;
}

.enterprise-actions {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.1rem;
    padding: 0.85rem 1rem;
    border: 1px dashed var(--ai-line);
    border-radius: var(--ai-radius-md);
    background: linear-gradient(135deg, rgba(var(--color-white-rgb), 0.72), rgba(var(--color-rgb-248-250-252), 0.55));
    z-index: 1;
    backdrop-filter: blur(6px);
}

.enterprise-actions__label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--ai-ink-soft);
    font-size: var(--font-size-rem-074);
    font-weight: var(--font-extrabold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.enterprise-actions__label i {
    color: var(--color-primary);
}

.enterprise-actions__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    flex: 1;
}

.enterprise-action-btn {
    --action-color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    border: 1px solid color-mix(in srgb, var(--action-color) 22%, var(--ai-line));
    border-radius: 999px;
    background: linear-gradient(135deg,
    color-mix(in srgb, var(--action-color) 8%, var(--color-white)),
    var(--color-white));
    color: var(--action-color);
    font-size: var(--font-size-rem-078);
    font-weight: var(--font-bold);
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.enterprise-action-btn i {
    font-size: var(--font-size-rem-078);
}

.enterprise-action-btn__arrow {
    opacity: 0;
    transition: opacity 0.18s ease;
}

.enterprise-action-btn:hover {
    border-color: var(--action-color);
    background: linear-gradient(135deg, var(--action-color), color-mix(in srgb, var(--action-color) 78%, var(--color-black)));
    color: var(--color-white);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--action-color) 14%, transparent);
}

.enterprise-action-btn:hover .enterprise-action-btn__arrow {
    opacity: 1;
}

.enterprise-action-btn--primary {
    --action-color: var(--color-primary);
}

.enterprise-action-btn--success {
    --action-color: var(--color-success-deep);
}

.enterprise-action-btn--warning {
    --action-color: var(--color-warning-deep);
}

.enterprise-action-btn--info {
    --action-color: var(--color-palette-0e7490);
}

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

.enterprise-card {
    --card-color: var(--color-primary);
    --card-secondary: var(--color-palette-0891b2);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--ai-line);
    border-radius: var(--ai-radius-md);
    background: var(--ai-surface);
    box-shadow: var(--ai-shadow-sm), 0 4px 14px rgba(var(--color-text-rgb), 0.025);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.enterprise-card::before {
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--card-color), var(--card-secondary));
    content: '';
}

.enterprise-card::after {
    position: absolute;
    top: 0;
    right: 0;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--card-color) 12%, transparent), transparent 70%);
    transform: translate(50%, -50%);
    pointer-events: none;
    content: '';
}

.enterprise-card:hover {
    border-color: color-mix(in srgb, var(--card-color) 36%, var(--ai-line));
    box-shadow: 0 6px 18px rgba(var(--color-text-rgb), 0.04);
}

.enterprise-card-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 1.1rem 1.1rem 0.95rem;
    border-bottom: 1px solid var(--color-border-soft);
    background: radial-gradient(280px 120px at 100% 0%, color-mix(in srgb, var(--card-color) 12%, transparent), transparent 66%),
    linear-gradient(180deg, var(--color-white), var(--color-palette-fafbff));
    z-index: 1;
}

.card-header-content {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.card-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    height: 2.7rem;
    border: 1px solid color-mix(in srgb, var(--card-color) 20%, var(--color-white));
    border-radius: 0.9rem;
    color: var(--card-color);
    background: linear-gradient(135deg,
    color-mix(in srgb, var(--card-color) 14%, var(--color-white)),
    color-mix(in srgb, var(--card-color) 4%, var(--color-white)));
    box-shadow: inset 0 1px 0 rgba(var(--color-white-rgb), 0.92), 0 3px 9px color-mix(in srgb, var(--card-color) 9%, transparent);
    flex-shrink: 0;
    font-size: var(--font-size-rem-105);
}

.card-header-text {
    min-width: 0;
}

.enterprise-card-header h2 {
    margin: 0;
    color: var(--ai-ink);
    font-size: var(--font-size-rem-1);
    font-weight: var(--font-extrabold);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.enterprise-card-header p {
    margin: 0.18rem 0 0;
    color: var(--ai-ink-muted);
    font-size: var(--font-size-rem-076);
    line-height: 1.4;
}

.enterprise-card-count {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    min-width: 1.65rem;
    height: 1.75rem;
    padding: 0 0.6rem;
    border: 1px solid color-mix(in srgb, var(--card-color) 18%, transparent);
    border-radius: 999px;
    color: var(--card-color);
    background: color-mix(in srgb, var(--card-color) 9%, var(--color-white));
    font-size: var(--font-size-rem-074);
    font-weight: var(--font-extrabold);
    flex-shrink: 0;
}

.enterprise-card-count i {
    font-size: var(--font-size-rem-066);
    opacity: 0.8;
}

.enterprise-card-body {
    display: grid;
    gap: 0.5rem;
    padding: 1rem 1.1rem 1.1rem;
}

.enterprise-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.62rem 0.7rem;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--ai-radius-sm);
    background: linear-gradient(180deg, var(--color-white), var(--color-surface-alt));
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.enterprise-item:hover {
    border-color: color-mix(in srgb, var(--card-color) 22%, var(--color-border-soft));
    background: linear-gradient(180deg, var(--color-white), color-mix(in srgb, var(--card-color) 5%, var(--color-white)));
    box-shadow: 0 3px 10px rgba(var(--color-text-rgb), 0.025);
}

.item-label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    color: var(--color-text-soft);
    font-size: var(--font-size-rem-078);
    font-weight: var(--font-bold);
}

.item-label i {
    width: 1.05rem;
    color: var(--card-color);
    text-align: center;
    flex-shrink: 0;
    opacity: 0.85;
}

.item-label span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-value {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 52%;
    min-width: 5.2rem;
    overflow: hidden;
    padding: 0.38rem 0.7rem;
    border: 1px solid var(--color-border-strong);
    border-radius: 999px;
    background: var(--color-surface-alt);
    color: var(--color-text-soft);
    font-size: var(--font-size-rem-074);
    font-weight: var(--font-extrabold);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-value__dot {
    display: inline-block;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
    flex-shrink: 0;
}

.status-success {
    color: var(--color-success-deep);
    background: linear-gradient(135deg, var(--color-palette-ecfdf5), var(--color-white));
    border-color: var(--color-success-soft);
}

.status-danger {
    color: var(--color-danger-deep);
    background: linear-gradient(135deg, var(--color-palette-fef2f2), var(--color-white));
    border-color: var(--color-palette-fecaca);
}

.status-warning {
    color: var(--color-warning-deep);
    background: linear-gradient(135deg, var(--color-palette-fffbeb), var(--color-white));
    border-color: var(--color-palette-fcd34d);
}

.status-info {
    color: var(--color-primary);
    background: linear-gradient(135deg, var(--color-palette-eef3ff), var(--color-white));
    border-color: var(--color-palette-c7d2fe);
}

.demo-alert {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.95rem;
    padding: 1rem 1.1rem;
    margin-bottom: 1.1rem;
    overflow: hidden;
    border: 1px solid var(--color-palette-fcd34d);
    border-radius: var(--ai-radius-md);
    background: linear-gradient(135deg, var(--color-palette-fffbeb), var(--color-palette-fff7ed), var(--color-white));
    box-shadow: 0 3px 10px rgba(var(--color-rgb-180-83-9), 0.045);
}

.demo-alert::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--color-warning), var(--color-warning));
    content: '';
}

.demo-alert__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 0.95rem;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-warning), var(--color-warning));
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(var(--color-warning-rgb), 0.16);
}

.demo-alert__body {
    flex: 1;
    min-width: 0;
}

.demo-alert h6 {
    margin: 0;
    color: var(--ai-ink);
    font-weight: var(--font-extrabold);
    font-size: var(--font-size-rem-095);
}

.demo-alert p {
    margin: 0.2rem 0 0;
    color: var(--ai-ink-muted);
    font-size: var(--font-size-rem-084);
    line-height: 1.5;
}

.demo-alert__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    background: var(--color-white);
    border: 1px solid var(--color-palette-fcd34d);
    color: var(--color-warning-deep);
    font-size: var(--font-size-rem-07);
    font-weight: var(--font-extrabold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.enterprise-footer {
    margin-top: 1.25rem;
    padding: 1rem;
    border: 1px solid var(--ai-line);
    border-radius: var(--ai-radius-md);
    background: linear-gradient(135deg, rgba(var(--color-white-rgb), 0.85), rgba(var(--color-rgb-248-250-252), 0.7));
    box-shadow: var(--ai-shadow-sm);
    backdrop-filter: blur(6px);
}

.enterprise-footer__content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    color: var(--ai-ink-muted);
    font-size: var(--font-size-rem-082);
    font-weight: var(--font-bold);
}

.enterprise-footer__content i {
    color: var(--color-success-deep);
}

.enterprise-footer__content strong {
    color: var(--ai-ink);
}

.enterprise-footer__dot {
    width: 0.32rem;
    height: 0.32rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-palette-cbd5e1), var(--color-text-faint));
}

.scheme-primary {
    --card-color: var(--color-primary);
    --card-secondary: var(--color-primary);
}

.scheme-success {
    --card-color: var(--color-success-deep);
    --card-secondary: var(--color-success);
}

.scheme-info {
    --card-color: var(--color-palette-0e7490);
    --card-secondary: var(--color-palette-06b6d4);
}

.scheme-warning {
    --card-color: var(--color-warning-deep);
    --card-secondary: var(--color-warning);
}

.scheme-dark {
    --card-color: var(--color-text-soft);
    --card-secondary: var(--color-text-subtle);
}

.scheme-secondary {
    --card-color: var(--color-text-subtle);
    --card-secondary: var(--color-text-faint);
}

@media (max-width: 1199.98px) {
    .enterprise-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 767.98px) {
    .enterprise-container {
        padding: 0.85rem 0 1.5rem;
    }

    .enterprise-header {
        padding: 1.1rem;
    }

    .enterprise-header,
    .enterprise-card,
    .enterprise-footer,
    .demo-alert,
    .enterprise-actions {
        border-radius: 0.95rem;
    }

    .enterprise-header__main,
    .enterprise-brand,
    .demo-alert {
        align-items: flex-start;
    }

    .enterprise-header__main {
        flex-direction: column;
    }

    .enterprise-header__aside {
        align-items: stretch;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.45rem;
        width: 100%;
    }

    .enterprise-brand__mark {
        width: 3.7rem;
        height: 3.7rem;
        border-radius: 0.95rem;
    }

    .enterprise-brand h1 {
        font-size: var(--font-size-rem-14);
    }

    .enterprise-system-state {
        flex: 1;
        justify-content: center;
    }

    .enterprise-clock {
        flex: 1;
        justify-content: center;
    }

    .enterprise-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .enterprise-actions__list {
        width: 100%;
    }

    .enterprise-action-btn {
        flex: 1;
        justify-content: center;
        min-width: calc(50% - 0.3rem);
    }

    .enterprise-grid,
    .enterprise-stats {
        grid-template-columns: 1fr;
    }

    .enterprise-item {
        align-items: stretch;
        flex-direction: column;
    }

    .item-value {
        max-width: none;
        width: 100%;
        justify-content: flex-start;
    }

    .demo-alert {
        flex-wrap: wrap;
    }

    .demo-alert__badge {
        order: 3;
    }
}

/*===== P2P Admin: Promotion Plan Builder =====*/
.pkg-builder-shell {
    background: radial-gradient(1200px 280px at 20% -10%, rgba(var(--color-rgb-98-99-214), 0.18), transparent 60%), linear-gradient(180deg, var(--color-palette-f2efff) 0%, var(--color-palette-f7f5ff) 100%);
    border: 1px solid var(--color-palette-e7e1ff);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: 0 10px 28px rgba(var(--color-rgb-70-61-137), 0.09);
}

.pkg-builder-head {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: var(--color-palette-2e2f63);
    font-weight: var(--font-bold);
    margin-bottom: 1rem;
}

.pkg-builder-head__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-palette-4c64f3), var(--color-palette-6d77e9));
}

.pkg-builder-card {
    border-radius: 12px;
    border: 1px solid var(--color-palette-e9e4ff) !important;
    background: rgba(var(--color-white-rgb), 0.85);
    overflow: hidden;
}

.pkg-builder-card .card-body {
    padding: .85rem;
}

.pkg-builder-section-head {
    margin: -.85rem -.85rem .9rem;
    padding: .55rem .85rem;
    border-bottom: 1px solid var(--color-palette-e6e0ff);
    background: linear-gradient(90deg, var(--color-palette-f0ecff) 0%, var(--color-palette-f6f3ff) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pkg-builder-title {
    margin: 0;
    font-size: var(--font-size-rem-093);
    color: var(--color-palette-2c376c);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.pkg-builder-title i {
    color: var(--color-palette-5668c8);
}

.pkg-builder-priority-note {
    font-size: var(--font-size-rem-0825);
    color: var(--color-palette-7c87b9);
}

.pkg-feature-note {
    font-size: var(--font-size-rem-084);
    color: var(--color-palette-7f82a5);
}

.pkg-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
}

.pkg-feature-pane {
    border: 1px solid var(--color-palette-ece6ff);
    border-radius: 10px;
    padding: .65rem;
    background: var(--color-palette-fcfbff);
}

.pkg-feature-pane__title {
    font-size: var(--font-size-rem-086);
    font-weight: var(--font-semibold);
    color: var(--color-palette-4b4d7a);
    margin-bottom: .45rem;
}

.pkg-builder-submit {
    border: 0;
    background: linear-gradient(135deg, var(--color-palette-2f7d67), var(--color-palette-3d9a7f));
    color: var(--color-white);
    border-radius: 8px;
    padding: .48rem 1.15rem;
    font-weight: var(--font-semibold);
}

@media (max-width: 576px) {
    .pkg-feature-grid {
        grid-template-columns: 1fr;
    }
}

/*Admin Sidebar Indicator Styles*/

.sidebar .nav-link,
.sidebar .nav-group-toggle {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    min-height: 2.875rem;
    padding-inline: 0.82rem;
    border: 1px solid transparent;
    border-radius: 0.6rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-group-toggle:hover {
    color: var(--color-white);
    border-color: rgba(var(--color-white-rgb), 0.06);
    background: rgba(var(--color-white-rgb), 0.04);
    box-shadow: 0 8px 20px rgba(var(--color-text-rgb), 0.08);
    transform: translateX(2px);
}

.sidebar .nav-link .nav-icon {
    flex-shrink: 0;
    color: var(--color-palette-cbd5e1);
    opacity: 1;
}

.sidebar .nav-link .nav-icon svg,
.sidebar .nav-link .nav-icon svg path,
.sidebar-quick-link svg,
.sidebar-quick-link svg path {
    fill-rule: evenodd;
    clip-rule: evenodd;
}

.sidebar .nav-link:hover .nav-icon,
.sidebar .nav-link.active .nav-icon,
.sidebar .nav-group.show > .nav-link .nav-icon {
    color: var(--color-surface-soft);
}

.sidebar .nav-title {
    padding: 0.15rem 0.95rem;
    font-size: var(--font-size-rem-073);
    font-weight: var(--font-semibold);
    letter-spacing: 0.06em;
    color: rgba(var(--color-text-faint-rgb), 0.64);
}

.sidebar .nav-title:first-of-type {
    margin-top: 0.35rem;
}

.sidebar .sidebar-link-text {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--font-size-rem-092);
    font-weight: var(--font-semibold);
    line-height: 1.35;
    letter-spacing: 0;
    color: rgba(var(--color-rgb-226-232-240), 0.86);
}

.sidebar .sidebar-submenu-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.sidebar .sidebar-link-text--submenu {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--font-size-rem-085);
    font-weight: var(--font-medium);
    color: rgba(var(--color-rgb-226-232-240), 0.78);
}

.sidebar .nav-link:hover .sidebar-link-text,
.sidebar .nav-link.active .sidebar-link-text,
.sidebar .nav-group.show > .nav-link .sidebar-link-text {
    color: rgba(var(--color-rgb-226-232-240), 0.96);
}

.sidebar .nav-group-items .nav-link {
    min-height: 2.55rem;
    border-radius: 0.55rem;
    transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar .nav-group-items .nav-link:hover {
    border-color: rgba(var(--color-rgb-129-140-248), 0.14);
    background: rgba(var(--color-rgb-99-102-241), 0.1);
}

.sidebar .nav-group-items .nav-link.active {
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.28), rgba(var(--color-rgb-99-102-241), 0.16));
    box-shadow: 0 8px 18px rgba(var(--color-text-rgb), 0.14), 0 0 16px rgba(var(--color-rgb-99-102-241), 0.1);
}

.sidebar .nav-group-items .nav-link.active::before {
    left: -0.45rem;
    width: 2px;
}

.sidebar .nav-group-items .nav-link:hover .sidebar-indicator--submenu,
.sidebar .nav-group-items .nav-link.active .sidebar-indicator--submenu {
    transform: translateY(-1px);
}

.sidebar .sidebar-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.18rem;
    border-radius: 999px;
    font-weight: var(--font-bold);
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
    position: relative;
    overflow: visible;
    transform: translateZ(0);
}

.sidebar .sidebar-indicator--menu {
    flex: 0 0 auto;
    min-width: 1.55rem;
    height: 1.05rem;
    justify-content: center;
    padding: 0.1rem 0.32rem;
    border: 1px solid rgba(var(--color-white-rgb), 0.1);
    box-shadow: inset 0 1px 0 rgba(var(--color-white-rgb), 0.04);
    font-size: 0.625rem;
    background: rgba(var(--color-white-rgb), 0.06);
    animation: none;
}

.sidebar .nav-group-toggle .sidebar-indicator--menu {
    margin-right: 0.08rem;
}

.sidebar .sidebar-indicator--submenu {
    min-width: 1.5rem;
    height: 1rem;
    padding: 0.08rem 0.3rem;
    justify-content: center;
    border: 1px solid rgba(var(--color-white-rgb), 0.08);
    font-size: 0.62rem;
    background: linear-gradient(180deg, rgba(var(--color-rgb-122-40-72), 0.95), rgba(var(--color-rgb-97-30-57), 0.94));
    box-shadow: inset 0 1px 0 rgba(var(--color-white-rgb), 0.12), 0 6px 14px rgba(var(--color-text-rgb), 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.sidebar .sidebar-indicator__dot {
    width: 0.33rem;
    height: 0.33rem;
    border-radius: 999px;
    position: relative;
    animation: sidebarIndicatorPulse 1.8s ease-in-out infinite;
}

.sidebar .sidebar-indicator__dot::after {
    content: '';
    position: absolute;
    inset: -0.12rem;
    border-radius: inherit;
    border: 1px solid currentColor;
    opacity: 0;
    animation: sidebarIndicatorRipple 1.8s ease-out infinite;
}

.sidebar .sidebar-indicator--submenu .sidebar-indicator__dot {
    width: 0.34rem;
    height: 0.34rem;
    box-shadow: 0 0 0 0.12rem rgba(var(--color-rgb-255-99-132), 0.16);
}

.sidebar .sidebar-indicator__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0.65rem;
}

.sidebar .sidebar-indicator--submenu .sidebar-indicator__count {
    min-width: auto;
    font-weight: var(--font-bold);
    letter-spacing: 0;
}

.sidebar .nav-link.active .sidebar-indicator,
.sidebar .nav-group.show > .nav-link .sidebar-indicator {
    border-color: rgba(var(--color-white-rgb), 0.16);
    background: rgba(var(--color-white-rgb), 0.12);
}

@media (min-width: 992px) {
    .sidebar-narrow.sidebar.sidebar-dark,
    .sidebar-narrow-unfoldable:not(:hover).sidebar.sidebar-dark {
        box-shadow: inset -1px 0 0 rgba(var(--color-white-rgb), 0.04), 8px 0 24px rgba(var(--color-text-rgb), 0.14);
    }

    .sidebar-narrow.sidebar.sidebar-dark .sidebar-header,
    .sidebar-narrow-unfoldable:not(:hover).sidebar.sidebar-dark .sidebar-header {
        padding: 0.9rem 0;
    }

    .sidebar-narrow.sidebar.sidebar-dark .sidebar-brand,
    .sidebar-narrow-unfoldable:not(:hover).sidebar.sidebar-dark .sidebar-brand {
        justify-content: center;
    }

    .sidebar-narrow.sidebar.sidebar-dark .sidebar-nav,
    .sidebar-narrow-unfoldable:not(:hover).sidebar.sidebar-dark .sidebar-nav {
        padding: 0.85rem 0.45rem 1rem;
    }

    .sidebar-narrow .nav-link,
    .sidebar-narrow .nav-group-toggle,
    .sidebar-narrow-unfoldable:not(:hover) .nav-link,
    .sidebar-narrow-unfoldable:not(:hover) .nav-group-toggle {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 48px;
        height: 48px;
        min-height: auto;
        padding: 0;
        margin: 0 auto 4px;
        border-radius: 10px;
        overflow: hidden;
        position: relative;
    }

    .sidebar-narrow .nav-link:hover,
    .sidebar-narrow .nav-group-toggle:hover,
    .sidebar-narrow-unfoldable:not(:hover) .nav-link:hover,
    .sidebar-narrow-unfoldable:not(:hover) .nav-group-toggle:hover {
        transform: none;
    }

    .sidebar-narrow .nav-link.active,
    .sidebar-narrow .nav-group.show > .nav-link,
    .sidebar-narrow-unfoldable:not(:hover) .nav-link.active,
    .sidebar-narrow-unfoldable:not(:hover) .nav-group.show > .nav-link {
        background: rgba(var(--color-rgb-99-102-241), 0.25);
        border: 1px solid rgba(var(--color-rgb-129-140-248), 0.35);
        color: var(--color-white);
    }

    .sidebar-narrow .nav-link.active::before,
    .sidebar-narrow .nav-group.show > .nav-link::before,
    .sidebar-narrow-unfoldable:not(:hover) .nav-link.active::before,
    .sidebar-narrow-unfoldable:not(:hover) .nav-group.show > .nav-link::before {
        content: '';
        position: absolute;
        left: 50%;
        bottom: 4px;
        width: 20px;
        height: 3px;
        transform: translateX(-50%);
        border-radius: 3px;
        background: var(--color-palette-818cf8);
    }

    .sidebar-narrow .nav-link .nav-icon,
    .sidebar-narrow .nav-group-toggle .nav-icon,
    .sidebar-narrow-unfoldable:not(:hover) .nav-link .nav-icon,
    .sidebar-narrow-unfoldable:not(:hover) .nav-group-toggle .nav-icon {
        flex: 0 0 24px !important;
        width: 24px !important;
        height: 24px !important;
        justify-content: center;
        align-items: center;
        margin: 0 !important;
        font-size: var(--font-size-rem-11);
        color: rgba(var(--color-rgb-226-232-240), 0.8);
        display: flex !important;
    }

    .sidebar-narrow .nav-link.active .nav-icon,
    .sidebar-narrow .nav-group.show > .nav-link .nav-icon,
    .sidebar-narrow-unfoldable:not(:hover) .nav-link.active .nav-icon,
    .sidebar-narrow-unfoldable:not(:hover) .nav-group.show > .nav-link .nav-icon {
        color: var(--color-white);
    }

    .sidebar-narrow .sidebar-link-text,
    .sidebar-narrow .sidebar-submenu-content,
    .sidebar-narrow .sidebar-link-text--submenu,
    .sidebar-narrow .nav-link > span:not(.nav-icon):not(.sidebar-indicator),
    .sidebar-narrow .nav-group-toggle > span:not(.nav-icon):not(.sidebar-indicator),
    .sidebar-narrow-unfoldable:not(:hover) .sidebar-link-text,
    .sidebar-narrow-unfoldable:not(:hover) .sidebar-submenu-content,
    .sidebar-narrow-unfoldable:not(:hover) .sidebar-link-text--submenu,
    .sidebar-narrow-unfoldable:not(:hover) .nav-link > span:not(.nav-icon):not(.sidebar-indicator),
    .sidebar-narrow-unfoldable:not(:hover) .nav-group-toggle > span:not(.nav-icon):not(.sidebar-indicator) {
        display: none !important;
        width: 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        visibility: hidden !important;
        flex: 0 0 0 !important;
    }

    .sidebar-narrow .nav-group-items,
    .sidebar-narrow-unfoldable:not(:hover) .nav-group-items {
        display: none !important;
    }

    .sidebar-narrow .nav-group-toggle::after,
    .sidebar-narrow-unfoldable:not(:hover) .nav-group-toggle::after {
        display: none;
    }

    .sidebar-narrow .sidebar-indicator,
    .sidebar-narrow-unfoldable:not(:hover) .sidebar-indicator {
        display: none;
    }

    .sidebar-narrow .sidebar-footer,
    .sidebar-narrow-unfoldable:not(:hover) .sidebar-footer {
        justify-content: center;
        padding-inline: 0.35rem;
    }

    /* Fix: When sidebar-narrow-unfoldable is hovered (expanded), reset the narrow constraints */
    .sidebar-narrow-unfoldable:hover .nav-link,
    .sidebar-narrow-unfoldable:hover .nav-group-toggle {
        justify-content: flex-start;
        width: auto;
        padding-inline: 0.95rem;
        border-radius: 0.9rem;
        overflow: visible;
    }

    .sidebar-narrow-unfoldable:hover .nav-link .nav-icon,
    .sidebar-narrow-unfoldable:hover .nav-group-toggle .nav-icon {
        flex: 0 0 auto;
        width: auto;
        margin-right: 0;
        font-size: var(--font-size-rem-1);
    }

    .sidebar-narrow-unfoldable:hover .sidebar-link-text,
    .sidebar-narrow-unfoldable:hover .sidebar-submenu-content,
    .sidebar-narrow-unfoldable:hover .sidebar-link-text--submenu {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
        opacity: 1 !important;
        visibility: visible !important;
        flex: 1 1 auto !important;
        display: inline-flex !important;
    }

    .sidebar-narrow-unfoldable:hover .nav-group-toggle::after {
        display: block;
    }

    .sidebar-narrow-unfoldable:hover .sidebar-indicator {
        display: inline-flex;
    }

    /* Reset active indicator position for expanded mode */
    .sidebar-narrow-unfoldable:hover .nav-link.active::before,
    .sidebar-narrow-unfoldable:hover .nav-group.show > .nav-link::before {
        left: -1px;
        top: 9px;
        bottom: 9px;
        width: 3px;
        height: auto;
        transform: none;
        border-radius: 0 999px 999px 0;
    }

    /* Reset active styles for expanded mode */
    .sidebar-narrow-unfoldable:hover .nav-link.active,
    .sidebar-narrow-unfoldable:hover .nav-group.show > .nav-link {
        background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.24), rgba(var(--color-rgb-99-102-241), 0.14));
        border: 1px solid rgba(var(--color-rgb-129-140-248), 0.22);
        box-shadow: 0 10px 24px rgba(var(--color-text-rgb), 0.18), 0 0 0 1px rgba(var(--color-rgb-99-102-241), 0.04), 0 0 18px rgba(var(--color-rgb-99-102-241), 0.12), inset 0 1px 0 rgba(var(--color-white-rgb), 0.04);
    }

    .sidebar .sidebar-indicator--pending {
        color: var(--color-palette-fff1f2);
        border-color: rgba(var(--color-rgb-244-63-94), 0.26);
        background: linear-gradient(135deg, rgba(var(--color-rgb-244-63-94), 0.2), rgba(var(--color-danger-rgb), 0.12));
    }

    .sidebar .sidebar-indicator--submenu.sidebar-indicator--pending {
        color: var(--color-palette-ffe4ea);
        border-color: rgba(var(--color-rgb-253-116-146), 0.38);
        background: linear-gradient(180deg, rgba(var(--color-rgb-118-44-74), 0.96), rgba(var(--color-rgb-91-31-57), 0.96));
    }

    .sidebar .sidebar-indicator--pending .sidebar-indicator__dot {
        background: var(--color-palette-fb7185);
        box-shadow: 0 0 0 0 rgba(var(--color-rgb-251-113-133), 0.55);
        color: rgba(var(--color-rgb-251-113-133), 0.7);
    }

    .sidebar .sidebar-indicator--submenu.sidebar-indicator--pending .sidebar-indicator__dot {
        background: var(--color-palette-ff6b88);
        color: rgba(var(--color-rgb-255-107-136), 0.72);
        box-shadow: 0 0 0 0.18rem rgba(var(--color-rgb-255-107-136), 0.18);
    }

    .sidebar .sidebar-indicator--review {
        color: var(--color-palette-fff7ed);
        border-color: rgba(var(--color-rgb-249-115-22), 0.28);
        background: linear-gradient(135deg, rgba(var(--color-rgb-249-115-22), 0.2), rgba(var(--color-rgb-251-146-60), 0.12));
    }

    .sidebar .sidebar-indicator--submenu.sidebar-indicator--review {
        color: var(--color-palette-fff2df);
        border-color: rgba(var(--color-rgb-251-146-60), 0.34);
        background: linear-gradient(180deg, rgba(var(--color-rgb-131-74-35), 0.96), rgba(var(--color-rgb-108-58-24), 0.95));
    }

    .sidebar .sidebar-indicator--review .sidebar-indicator__dot {
        background: var(--color-palette-fb923c);
        box-shadow: 0 0 0 0 rgba(var(--color-rgb-251-146-60), 0.55);
        color: rgba(var(--color-rgb-251-146-60), 0.72);
    }

    .sidebar .sidebar-indicator--submenu.sidebar-indicator--review .sidebar-indicator__dot {
        box-shadow: 0 0 0 0.18rem rgba(var(--color-rgb-251-146-60), 0.16);
    }

    .sidebar .sidebar-indicator--info {
        color: var(--color-palette-eff6ff);
        border-color: rgba(var(--color-rgb-59-130-246), 0.28);
        background: linear-gradient(135deg, rgba(var(--color-rgb-59-130-246), 0.2), rgba(var(--color-info-rgb), 0.12));
    }

    .sidebar .sidebar-indicator--submenu.sidebar-indicator--info {
        color: var(--color-palette-e8f1ff);
        border-color: rgba(var(--color-info-rgb), 0.34);
        background: linear-gradient(180deg, rgba(var(--color-rgb-41-76-130), 0.96), rgba(var(--color-rgb-31-61-109), 0.95));
    }

    .sidebar .sidebar-indicator--info .sidebar-indicator__dot {
        background: var(--color-info);
        box-shadow: 0 0 0 0 rgba(var(--color-info-rgb), 0.55);
        color: rgba(var(--color-info-rgb), 0.72);
    }

    .sidebar .sidebar-indicator--submenu.sidebar-indicator--info .sidebar-indicator__dot {
        box-shadow: 0 0 0 0.18rem rgba(var(--color-info-rgb), 0.16);
    }

    @keyframes sidebarIndicatorFloat {
        0% {
            transform: translateY(0);
            box-shadow: inset 0 1px 0 rgba(var(--color-white-rgb), 0.04);
        }

        50% {
            transform: translateY(-1px);
            box-shadow: inset 0 1px 0 rgba(var(--color-white-rgb), 0.06), 0 6px 14px rgba(var(--color-text-rgb), 0.16);
        }

        100% {
            transform: translateY(0);
            box-shadow: inset 0 1px 0 rgba(var(--color-white-rgb), 0.04);
        }
    }

    @keyframes sidebarIndicatorRipple {
        0% {
            transform: scale(0.8);
            opacity: 0.55;
        }

        70% {
            transform: scale(1.9);
            opacity: 0;
        }

        100% {
            transform: scale(2.1);
            opacity: 0;
        }
    }

    @keyframes sidebarIndicatorPulse {
        0% {
            transform: scale(1);
        }

        70% {
            transform: scale(1.08);
        }

        100% {
            transform: scale(1);
        }
    }

}

.header.header-sticky {
    top: 0;
    z-index: 1030;
    min-height: 4.25rem;
    margin-bottom: 1rem !important;
    border-bottom: 1px solid rgba(var(--color-rgb-226-232-240), 0.95);
    background: var(--color-white);
    box-shadow: 0 6px 18px rgba(var(--color-text-rgb), 0.04);
}

.admin-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    min-height: 4.25rem;
    margin: 0;
    padding: 0.5rem 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.admin-header-start,
.admin-header-end {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.admin-header-start {
    flex: 1 1 0%;
    min-width: 0;
    width: 100%;
}

.admin-header-end {
    flex: 0 0 auto;
    flex-shrink: 0;
    margin-inline-start: auto;
    justify-content: flex-end;
}

.admin-header-search-wrap {
    flex: 0 1 23rem;
    min-width: 0;
    max-width: 23rem;
    width: 100%;
    position: relative;
}

.admin-header-search-wrap .admin-menu-search-form {
    display: flex !important;
    align-items: center;
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    margin: 0 !important;
}

.admin-header-search-wrap .admin-menu-search-results {
    top: calc(100% + 0.55rem);
    left: 0;
    z-index: 1060;
    width: 100%;
    min-width: 0;
    border-radius: 0.9rem;
    box-shadow: 0 18px 36px rgba(var(--color-text-rgb), 0.12);
}

.admin-header-search-wrap .admin-search-group {
    align-items: center;
    min-height: 2.65rem;
    border: 1px solid rgba(var(--color-rgb-203-213-225), 0.9);
    border-radius: 0.85rem;
    background: var(--color-surface-alt);
    box-shadow: none;
}

.admin-header-search-wrap .admin-search-addon,
.admin-header-search-wrap .admin-search-input {
    background: transparent !important;
}

.admin-header-search-wrap .admin-search-addon {
    padding-inline: 0.85rem 0.55rem;
}

.admin-header-search-wrap .admin-search-input {
    color: var(--color-text);
    font-size: var(--font-size-rem-09);
    padding-block: 0.625rem;
}

.admin-header-search-wrap .admin-search-input::placeholder {
    color: var(--color-text-faint);
}

.admin-header-search-wrap .admin-search-clear {
    color: var(--color-text-muted);
}

.admin-header-actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    list-style: none;
}

.admin-header-actions .nav-item {
    display: flex;
    align-items: center;
}

.admin-header-actions .nav-link,
.admin-header-actions .btn.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border: 1px solid rgba(var(--color-rgb-203-213-225), 0.9);
    border-radius: 0.8rem;
    background: var(--color-white);
    color: var(--color-text-subtle);
    box-shadow: 0 4px 14px rgba(var(--color-text-rgb), 0.04);
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.admin-header-actions--primary {
    margin-inline-start: auto;
}

.admin-header-actions .nav-link:hover,
.admin-header-actions .nav-link:focus,
.admin-header-actions .btn.nav-link:hover,
.admin-header-actions .btn.nav-link:focus {
    color: var(--color-text-soft);
    background: var(--color-surface-alt);
    box-shadow: 0 10px 22px rgba(var(--color-text-rgb), 0.08);
    transform: translateY(-1px);
}

.admin-header-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 0.85rem;
    color: var(--color-text-subtle);
    border: 1px solid rgba(var(--color-rgb-203-213-225), 0.95);
    background: var(--color-white);
    box-shadow: 0 4px 14px rgba(var(--color-text-rgb), 0.05);
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.admin-header-sidebar-toggle .icon {
    width: 1.35rem;
    height: 1.35rem;
}

.admin-header-sidebar-toggle:hover,
.admin-header-sidebar-toggle:focus {
    color: var(--color-text-soft);
    background: var(--color-surface-alt);
    box-shadow: 0 10px 22px rgba(var(--color-text-rgb), 0.08);
    transform: translateY(-1px);
}

.admin-header-sidebar-toggle.is-active {
    color: var(--color-primary-hover);
    background: var(--color-palette-eef2ff);
    border-color: rgba(var(--color-rgb-129-140-248), 0.4);
    box-shadow: 0 10px 22px rgba(var(--color-primary-rgb), 0.12);
}

.sidebar-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.sidebar-toggle-icon--collapse .icon,
.sidebar-toggle-icon--expand .icon {
    width: 1.35rem;
    height: 1.35rem;
}

.admin-header-profile {
    flex: 0 0 auto;
    flex-shrink: 0;
}

.admin-header-profile-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 2.65rem;
    padding: 0.25rem 0.55rem 0.25rem 0.3rem;
    border: 1px solid rgba(var(--color-rgb-203-213-225), 0.95);
    border-radius: 0.95rem;
    background: var(--color-white);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(var(--color-text-rgb), 0.05);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.admin-header-profile-trigger:hover,
.admin-header-profile-trigger:focus {
    background: var(--color-surface-alt);
    box-shadow: 0 10px 22px rgba(var(--color-text-rgb), 0.08);
    transform: translateY(-1px);
}

.admin-header-profile-avatar {
    width: 2.35rem;
    height: 2.35rem;
    border: 2px solid rgba(var(--color-white-rgb), 0.95);
    box-shadow: 0 5px 14px rgba(var(--color-text-rgb), 0.1);
}

.admin-header-profile-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}

.admin-header-profile-name {
    max-width: 8.5rem;
    overflow: hidden;
    color: var(--color-text);
    font-size: var(--font-size-rem-082);
    font-weight: var(--font-semibold);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-header-profile-role {
    color: var(--color-text-muted);
    font-size: var(--font-size-rem-068);
    font-weight: var(--font-medium);
    letter-spacing: 0.02em;
}

.admin-header-dropdown {
    margin-top: 0.6rem;
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.18);
    border-radius: 0.9rem;
    box-shadow: 0 24px 44px rgba(var(--color-text-rgb), 0.16);
    overflow: hidden;
}

.admin-header-profile-dropdown {
    min-width: 14rem;
}

.sidebar-shortcut-panel,
.sidebar-footer-quick-links {
    --sidebar-quick-brand-rgb: var(--color-primary-rgb);
    --sidebar-quick-shell-rgb: var(--color-rgb-31-61-109);
    position: relative;
    z-index: 1050;
    padding: 0.34rem 0.56rem 0.42rem;
    border-top: 1px solid rgba(var(--color-white-rgb), 0.07);
    background: linear-gradient(180deg, rgba(var(--color-white-rgb), 0.032), rgba(var(--color-rgb-2-6-23), 0.18));
}

.sidebar-footer-quick-links::before {
    position: absolute;
    inset: 0.28rem 0.42rem 0.36rem;
    border: 1px solid rgba(var(--color-primary-rgb), 0.15);
    border-radius: 0.74rem;
    background:
        radial-gradient(circle at 50% 0%, rgba(var(--color-primary-rgb), 0.11), transparent 58%),
        linear-gradient(180deg, rgba(var(--color-white-rgb), 0.055), rgba(var(--color-rgb-99-102-241), 0.035)),
        rgba(var(--color-rgb-2-6-23), 0.2);
    box-shadow: inset 0 1px 0 rgba(var(--color-white-rgb), 0.065), 0 8px 18px rgba(var(--color-rgb-2-6-23), 0.12);
    pointer-events: none;
    content: "";
}

.sidebar-footer-quick-links::after {
    position: absolute;
    inset: 0.28rem 0.68rem auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--color-white-rgb), 0.09), transparent);
    pointer-events: none;
    content: "";
}

.sidebar-quick-links {
    position: relative;
    z-index: 1051;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.28rem;
    width: 100%;
    padding: 0.22rem 0.2rem;
}

.sidebar-quick-link {
    --sidebar-quick-accent: var(--color-primary);
    --sidebar-quick-accent-rgb: var(--color-primary-rgb);
    position: relative;
    z-index: 1052;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 2.06rem;
    min-height: 2.06rem;
    padding: 0.18rem;
    border: 1px solid rgba(var(--color-white-rgb), 0.075);
    border-radius: 0.54rem;
    color: rgba(var(--color-white-rgb), 0.76);
    background:
        linear-gradient(180deg, rgba(var(--color-white-rgb), 0.05), rgba(var(--color-white-rgb), 0.018)),
        rgba(var(--color-white-rgb), 0.015);
    box-shadow: inset 0 1px 0 rgba(var(--color-white-rgb), 0.045);
    isolation: isolate;
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.sidebar-quick-link[data-accent="info"] {
    --sidebar-quick-accent: var(--color-info);
    --sidebar-quick-accent-rgb: var(--color-info-rgb);
}

.sidebar-quick-link[data-accent="success"] {
    --sidebar-quick-accent: var(--color-success);
    --sidebar-quick-accent-rgb: var(--color-success-rgb);
}

.sidebar-quick-link[data-accent="warning"] {
    --sidebar-quick-accent: var(--color-warning);
    --sidebar-quick-accent-rgb: var(--color-warning-rgb);
}

.sidebar-quick-link[data-accent="violet"] {
    --sidebar-quick-accent: var(--color-primary);
    --sidebar-quick-accent-rgb: var(--color-primary-rgb);
}

.sidebar-quick-link > *,
.sidebar-quick-link__surface,
.sidebar-quick-link .icon,
.sidebar-quick-link svg {
    pointer-events: none;
}

.sidebar-quick-link__surface {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.28rem;
    height: 1.28rem;
    margin-bottom: 0;
    border-radius: 0.38rem;
    color: rgba(var(--color-white-rgb), 0.84);
    background: rgba(var(--color-white-rgb), 0.018);
    transition: background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.sidebar-quick-link::before {
    position: absolute;
    inset: 0.05rem;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 0%, rgba(var(--sidebar-quick-accent-rgb), 0.3), transparent 62%);
    opacity: 0;
    transition: opacity 0.18s ease;
    pointer-events: none;
    content: "";
}

.sidebar-quick-link::after {
    position: absolute;
    inset: auto 1.05rem 0.18rem;
    height: 2px;
    border-radius: 999px;
    background: transparent;
    content: "";
    transition: background-color 0.18s ease, box-shadow 0.18s ease, inset 0.18s ease;
    pointer-events: none;
}

.sidebar-quick-link:hover,
.sidebar-quick-link:focus {
    color: var(--color-white);
    border-color: rgba(var(--sidebar-quick-accent-rgb), 0.38);
    background: rgba(var(--sidebar-quick-accent-rgb), 0.115);
    box-shadow: inset 0 1px 0 rgba(var(--color-white-rgb), 0.09), 0 7px 14px rgba(var(--sidebar-quick-accent-rgb), 0.16);
    transform: translateY(-1px);
}

.sidebar-quick-link:hover .sidebar-quick-link__surface,
.sidebar-quick-link:focus .sidebar-quick-link__surface {
    background: rgba(var(--sidebar-quick-accent-rgb), 0.14);
    box-shadow: 0 0 14px rgba(var(--sidebar-quick-accent-rgb), 0.18);
    transform: scale(1.04);
}

.sidebar-quick-link:hover::before,
.sidebar-quick-link:focus::before {
    opacity: 1;
}

.sidebar-quick-link:hover::after,
.sidebar-quick-link:focus::after,
.sidebar-quick-link.active::after {
    inset-inline: 1rem;
    background: var(--sidebar-quick-accent);
    box-shadow: 0 0 8px rgba(var(--sidebar-quick-accent-rgb), 0.38);
}

.sidebar-quick-link.active {
    color: var(--color-white);
    border-color: rgba(var(--sidebar-quick-accent-rgb), 0.48);
    background: linear-gradient(180deg, rgba(var(--sidebar-quick-accent-rgb), 0.24), rgba(var(--sidebar-quick-accent-rgb), 0.095));
    box-shadow: inset 0 1px 0 rgba(var(--color-white-rgb), 0.11), 0 8px 16px rgba(var(--sidebar-quick-accent-rgb), 0.18);
}

.sidebar-quick-link.active .sidebar-quick-link__surface {
    background: rgba(var(--sidebar-quick-accent-rgb), 0.18);
}

.sidebar-quick-link__icon {
    display: block;
    flex: 0 0 auto;
    width: auto;
    height: auto;
    margin: 0 !important;
}


@media (max-width: 991.98px) {
    .sidebar.sidebar-dark .sidebar-header {
        min-height: 3.75rem;
        padding: 0.45rem 0.85rem;
    }

    .admin-header-bar {
        gap: 0.6rem;
        min-height: 3.75rem;
        padding: 0.45rem 0;
        flex-wrap: wrap;
    }

    .header.header-sticky {
        min-height: 3.75rem;
    }

    .admin-header-start,
    .admin-header-end {
        gap: 0.45rem;
    }

    .admin-header-start,
    .admin-header-end {
        width: 100%;
    }

    .admin-header-start {
        order: 1;
    }

    .admin-header-end {
        order: 2;
        justify-content: space-between;
    }

    .admin-header-search-wrap {
        flex: 1 1 100%;
        max-width: none;
    }

    .admin-header-actions .nav-link,
    .admin-header-actions .btn.nav-link,
    .admin-header-sidebar-toggle {
        width: 2.35rem;
        height: 2.35rem;
    }

    .admin-header-profile-trigger {
        padding: 0.25rem;
        border-radius: 0.8rem;
    }

    .admin-header-profile-avatar {
        width: 2.15rem;
        height: 2.15rem;
    }
}

@media (min-width: 992px) {
    .sidebar-narrow-unfoldable:not(:hover) .sidebar-footer-quick-links,
    .sidebar-narrow .sidebar-footer-quick-links {
        padding-inline: 0.32rem;
    }

    .sidebar-narrow-unfoldable:not(:hover) .sidebar-footer-quick-links::before,
    .sidebar-narrow .sidebar-footer-quick-links::before {
        inset: 0.36rem 0.3rem 0.42rem;
        border-radius: 0.6rem;
    }

    .sidebar-narrow-unfoldable:not(:hover) .sidebar-quick-links,
    .sidebar-narrow .sidebar-quick-links {
        grid-template-columns: 1fr;
        gap: 0.28rem;
        padding: 0.22rem 0.12rem;
    }

    .sidebar-narrow-unfoldable:not(:hover) .sidebar-quick-link,
    .sidebar-narrow .sidebar-quick-link {
        min-height: 2.06rem;
        padding: 0.2rem;
        border-radius: 0.54rem;
    }

    .sidebar-narrow-unfoldable:not(:hover) .sidebar-quick-link__surface,
    .sidebar-narrow .sidebar-quick-link__surface {
        margin-bottom: 0;
    }

}

/* =============================================================
   Premium Admin Dashboard
   ============================================================= */
.admin-dashboard {
    --dashboard-surface: var(--color-card);
    --dashboard-border: rgba(var(--color-text-rgb), 0.08);
    --dashboard-muted: var(--color-text-muted);
    --dashboard-text: var(--color-text);
    /* Shared shadow scale keeps every dashboard section softer and consistent. */
    --dashboard-shadow: var(--shadow-md);
    position: relative;
}

.admin-dashboard,
.admin-dashboard *,
.admin-dashboard *::before,
.admin-dashboard *::after {
    animation: none !important;
    transition: none !important;
}

.admin-dashboard .dashboard-hero {
    position: relative;
    overflow: hidden;
    padding: 2rem;
    border: 1px solid rgba(var(--color-white-rgb), 0.18);
    border-radius: 1.75rem;
    background: radial-gradient(circle at top left, rgba(var(--color-info-rgb), 0.22), transparent 32%),
    radial-gradient(circle at bottom right, rgba(var(--color-info-rgb), 0.18), transparent 30%),
    linear-gradient(135deg, var(--color-text) 0%, var(--color-palette-172554) 44%, var(--color-primary-hover) 100%);
    box-shadow: 0 16px 36px rgba(var(--color-text-rgb), 0.16);
}

.admin-dashboard .dashboard-hero::before,
.admin-dashboard .dashboard-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.admin-dashboard .dashboard-hero::before {
    top: -72px;
    right: -48px;
    width: 240px;
    height: 240px;
    background: rgba(var(--color-white-rgb), 0.08);
}

.admin-dashboard .dashboard-hero::after {
    bottom: -120px;
    left: -48px;
    width: 280px;
    height: 280px;
    background: rgba(var(--color-rgb-56-189-248), 0.12);
}

.admin-dashboard .dashboard-hero__content,
.admin-dashboard .dashboard-hero__metrics {
    position: relative;
    z-index: 1;
}

.admin-dashboard .dashboard-hero__eyebrow,
.admin-dashboard .dashboard-section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: var(--font-size-rem-074);
    font-weight: var(--font-bold);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.admin-dashboard .dashboard-hero__eyebrow {
    color: rgba(var(--color-white-rgb), 0.72);
}

.admin-dashboard .dashboard-hero__title {
    margin: 0.85rem 0 0;
    color: var(--color-surface-alt);
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    font-weight: var(--font-extrabold);
    line-height: 1.08;
    letter-spacing: -0.04em;
    max-width: 12ch;
}

.admin-dashboard .dashboard-hero__description {
    margin: 1rem 0 0;
    max-width: 58ch;
    color: rgba(var(--color-rgb-226-232-240), 0.9);
    font-size: var(--font-size-rem-1);
    line-height: 1.7;
}

.admin-dashboard .dashboard-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.admin-dashboard .dashboard-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(var(--color-white-rgb), 0.12);
    border-radius: 999px;
    background: rgba(var(--color-white-rgb), 0.08);
    backdrop-filter: blur(16px);
    color: var(--color-border);
    font-size: var(--font-size-rem-084);
    font-weight: var(--font-semibold);
}

.admin-dashboard .dashboard-chip__dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: var(--color-success);
    box-shadow: 0 0 0 0.25rem rgba(var(--color-success-rgb), 0.18);
}

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

.admin-dashboard .dashboard-hero__metric-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.15rem 1.2rem;
    min-height: 100%;
    border: 1px solid rgba(var(--color-white-rgb), 0.14);
    border-radius: 1.35rem;
    background: linear-gradient(180deg, rgba(var(--color-white-rgb), 0.16), rgba(var(--color-white-rgb), 0.08));
    backdrop-filter: blur(18px);
}

.admin-dashboard .dashboard-hero__metric-value {
    color: var(--color-white);
    font-size: var(--font-size-rem-19);
    font-weight: var(--font-extrabold);
    letter-spacing: -0.04em;
    line-height: 1;
}

.admin-dashboard .dashboard-hero__metric-label {
    color: rgba(var(--color-rgb-226-232-240), 0.92);
    font-size: var(--font-size-rem-088);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.admin-dashboard .dashboard-hero__metric-note {
    color: rgba(var(--color-rgb-226-232-240), 0.72);
    font-size: var(--font-size-rem-082);
    line-height: 1.5;
}

.admin-dashboard .dashboard-section__header,
.admin-dashboard .dashboard-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.6rem 1.6rem 0;
}

.admin-dashboard .dashboard-section__header {
    padding-inline: 0;
    padding-top: 0;
    padding-bottom: 1.4rem;
}

.admin-dashboard .dashboard-panel .dashboard-section__header {
    padding: 1.6rem 1.6rem 1.4rem;
}

.admin-dashboard .dashboard-section__header--tight {
    padding-bottom: 1rem;
}

.admin-dashboard .dashboard-section__eyebrow {
    color: var(--color-primary);
}

.admin-dashboard .dashboard-section__title,
.admin-dashboard .dashboard-panel__title {
    color: var(--dashboard-text);
    font-size: var(--font-size-rem-145);
    font-weight: var(--font-extrabold);
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.admin-dashboard .dashboard-section__subtitle,
.admin-dashboard .dashboard-panel__subtitle {
    color: var(--dashboard-muted);
    font-size: var(--font-size-rem-094);
    line-height: 1.65;
    max-width: 60ch;
}

.admin-dashboard .dashboard-section__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-dashboard .dashboard-badge,
.admin-dashboard .dashboard-link-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.82rem 1rem;
    border: 1px solid rgba(var(--color-primary-rgb), 0.12);
    border-radius: 999px;
    background: linear-gradient(180deg, var(--color-white), var(--color-surface-alt));
    color: var(--color-primary-hover);
    font-size: var(--font-size-rem-084);
    font-weight: var(--font-bold);
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(var(--color-primary-rgb), 0.05);
}

.admin-dashboard .dashboard-link-pill:hover {
    color: var(--color-palette-1e40af);
    border-color: rgba(var(--color-primary-rgb), 0.2);
}

.admin-dashboard .dashboard-panel,
.admin-dashboard .dashboard-feed-card,
.admin-dashboard .dashboard-kpi-card {
    border: 1px solid var(--dashboard-border);
    border-radius: 1rem;
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-palette-fbfdff) 100%);
    box-shadow: var(--dashboard-shadow);
    overflow: hidden;
}

.admin-dashboard .dashboard-panel--feature {
    background: radial-gradient(circle at top right, rgba(var(--color-info-rgb), 0.12), transparent 22%),
    linear-gradient(180deg, var(--color-white) 0%, var(--color-palette-fbfdff) 100%);
}

.admin-dashboard .dashboard-panel--compact {
    min-height: 100%;
}

.admin-dashboard .dashboard-panel__header--spacious {
    padding-bottom: 0.35rem;
}

.admin-dashboard .dashboard-panel__footer {
    padding: 1.25rem 1.5rem 1.5rem;
    background: linear-gradient(180deg, rgba(var(--color-rgb-248-250-252), 0.8), var(--color-white));
    border-top: 1px solid rgba(var(--color-text-rgb), 0.06);
}

.admin-dashboard .dashboard-chart-shell {
    padding: 0.5rem 1.5rem 1.5rem;
}

.admin-dashboard .dashboard-chart-shell--compact {
    padding-top: 0.25rem;
}

.admin-dashboard .dashboard-chart {
    min-height: 340px;
}

.admin-dashboard .dashboard-chart-shell--compact .dashboard-chart {
    min-height: 300px;
}

.admin-dashboard .report-range {
    min-width: 250px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(var(--color-text-rgb), 0.08);
    border-radius: 1rem !important;
    background: linear-gradient(180deg, var(--color-white), var(--color-surface-alt));
    box-shadow: inset 0 1px 0 rgba(var(--color-white-rgb), 0.8);
    font-weight: var(--font-semibold);
    color: var(--color-text);
}

.admin-dashboard .dashboard-kpi-card .card-body {
    display: flex;
    padding: 1.35rem;
}

.admin-dashboard .dashboard-kpi-card__summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.admin-dashboard .dashboard-kpi-card__content {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-dashboard .dashboard-kpi-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    color: var(--color-text-muted);
    background: rgba(var(--color-text-faint-rgb), 0.12);
    flex-shrink: 0;
    text-decoration: none;
}

.admin-dashboard .dashboard-kpi-card__icon {
    width: 3.35rem;
    height: 3.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.05rem;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    box-shadow: 0 10px 22px rgba(var(--color-primary-rgb), 0.16);
}

.admin-dashboard .dashboard-kpi-card__icon.active-svg,
.admin-dashboard .dashboard-kpi-card__icon.success-svg,
.admin-dashboard .dashboard-kpi-card__icon.rewards,
.admin-dashboard .dashboard-kpi-card__icon.deposit {
    background: linear-gradient(135deg, var(--color-success), var(--color-success-strong));
    box-shadow: 0 10px 22px rgba(var(--color-success-rgb), 0.14);
}

.admin-dashboard .dashboard-kpi-card__icon.danger-svg,
.admin-dashboard .dashboard-kpi-card__icon.withdraw,
.admin-dashboard .dashboard-kpi-card__icon.request-money {
    background: linear-gradient(135deg, var(--color-palette-fb7185), var(--color-danger));
    box-shadow: 0 10px 22px rgba(var(--color-rgb-225-29-72), 0.14);
}

.admin-dashboard .dashboard-kpi-card__icon.warning-svg {
    background: linear-gradient(135deg, var(--color-warning), var(--color-warning-strong));
    box-shadow: 0 10px 22px rgba(var(--color-warning-rgb), 0.14);
}

.admin-dashboard .dashboard-kpi-card__icon.info-svg,
.admin-dashboard .dashboard-kpi-card__icon.exchange-money,
.admin-dashboard .dashboard-kpi-card__icon.receive-money,
.admin-dashboard .dashboard-kpi-card__icon.payment {
    background: linear-gradient(135deg, var(--color-info), var(--color-primary));
    box-shadow: 0 10px 22px rgba(var(--color-primary-rgb), 0.14);
}

.admin-dashboard .dashboard-kpi-card__icon.merchant,
.admin-dashboard .dashboard-kpi-card__icon.voucher,
.admin-dashboard .dashboard-kpi-card__icon.send-money {
    background: linear-gradient(135deg, var(--color-palette-a78bfa), var(--color-primary));
    box-shadow: 0 10px 22px rgba(var(--color-rgb-124-58-237), 0.13);
}

.admin-dashboard .dashboard-kpi-card__title {
    display: block;
    color: var(--color-text-muted);
    font-size: var(--font-size-rem-08);
    font-weight: var(--font-medium);
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.admin-dashboard .dashboard-kpi-card__count {
    color: var(--color-text-soft);
    font-size: var(--font-size-rem-16);
    font-weight: var(--font-semibold);
    line-height: 1.2;
    letter-spacing: 0;
}

.admin-dashboard .dashboard-kpi-card__meta {
    margin-top: 0.45rem;
    color: var(--dashboard-muted);
    font-size: var(--font-size-rem-088);
}

.admin-dashboard .chart-stat-card {
    width: 100%;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(var(--color-text-rgb), 0.08);
    border-radius: 1.2rem;
    background: linear-gradient(180deg, var(--color-white), var(--color-surface-alt));
    text-align: left;
    box-shadow: none;
}

.admin-dashboard .chart-stat-card__content,
.admin-dashboard .chart-stat-card__left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
}

.admin-dashboard .chart-stat-card__left {
    justify-content: flex-start;
}

.admin-dashboard .chart-stat-card__icon {
    width: 2.65rem;
    height: 2.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.95rem;
    background: rgba(var(--color-primary-rgb), 0.1);
    font-size: var(--font-size-rem-1);
}

.admin-dashboard .chart-stat-card__label,
.admin-dashboard .chart-stat-card__hint {
    display: block;
}

.admin-dashboard .chart-stat-card__label {
    color: var(--color-text);
    font-size: var(--font-size-rem-094);
    font-weight: var(--font-bold);
}

.admin-dashboard .chart-stat-card__hint {
    margin-top: 0.18rem;
    color: var(--color-text-muted);
    font-size: var(--font-size-rem-077);
}

.admin-dashboard .chart-stat-card__value {
    color: var(--color-text);
    font-size: var(--font-size-rem-115);
    font-weight: var(--font-extrabold);
    letter-spacing: -0.03em;
}

.admin-dashboard .stat-filter.active {
    border-color: rgba(var(--color-primary-rgb), 0.3);
    background: linear-gradient(180deg, var(--color-palette-eff6ff), var(--color-white));
    box-shadow: 0 10px 20px rgba(var(--color-primary-rgb), 0.08);
}

.admin-dashboard .wallet-summary-shell__meta {
    color: var(--dashboard-muted);
    font-size: var(--font-size-rem-084);
    font-weight: var(--font-semibold);
    white-space: nowrap;
}

.admin-dashboard .wallet-summary-card {
    --wallet-accent: var(--color-palette-1f4fd1);
    --wallet-accent-rgb: 31, 79, 209;
    position: relative;
    background: var(--color-white);
    border: 1px solid rgba(var(--color-text-rgb), 0.08);
    border-radius: 0.95rem;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(var(--color-text-rgb), 0.024);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.admin-dashboard .wallet-summary-card:hover {
    border-color: rgba(var(--wallet-accent-rgb), 0.14);
    box-shadow: 0 6px 16px rgba(var(--color-text-rgb), 0.03);
}

.admin-dashboard .wallet-summary-card .card-body {
    position: relative;
    display: grid;
    gap: 0.46rem;
    padding: 0.72rem 0.78rem;
    isolation: isolate;
}

.admin-dashboard .wallet-summary-card__ambient {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(128% 100% at -10% -18%, rgba(var(--wallet-accent-rgb), 0.12) 0%, transparent 40%),
    radial-gradient(72% 76% at 100% 0%, rgba(var(--wallet-accent-rgb), 0.075) 0%, transparent 48%),
    radial-gradient(62% 66% at 86% 100%, rgba(var(--wallet-accent-rgb), 0.045) 0%, transparent 52%);
    opacity: 0.92;
}

.admin-dashboard .wallet-summary-card__top-row,
.admin-dashboard .wallet-summary-card__balance-row {
    position: relative;
    z-index: 1;
}

.admin-dashboard .wallet-summary-card__top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.58rem;
}

.admin-dashboard .wallet-summary-card__currency-group,
.admin-dashboard .wallet-summary-card__overview,
.admin-dashboard .wallet-summary-card__meta-group,
.admin-dashboard .wallet-summary-card__balance-row,
.admin-dashboard .wallet-summary-card__balance-stack,
.admin-dashboard .wallet-summary-card__amount,
.admin-dashboard .wallet-summary-card__status-badge {
    display: flex;
}

.admin-dashboard .wallet-summary-card__currency-group {
    min-width: 0;
    align-items: center;
    gap: 0.58rem;
    flex: 1 1 auto;
}

.admin-dashboard .wallet-summary-card__icon-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 2.86rem;
    height: 2.86rem;
    flex-shrink: 0;
    border-radius: 0.84rem;
    background: rgba(var(--wallet-accent-rgb), 0.055);
    border: 1px solid rgba(var(--wallet-accent-rgb), 0.08);
}

.admin-dashboard .wallet-summary-card__icon-shell {
    position: absolute;
    inset: 0.18rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.68rem;
    border: 1px solid rgba(var(--color-white-rgb), 0.72);
    background: var(--color-white);
    color: var(--wallet-accent);
    box-shadow: 0 1px 4px rgba(var(--color-text-rgb), 0.018);
}

.admin-dashboard .wallet-summary-card__currency-icon {
    width: 1.52rem;
    height: 1.52rem;
    object-fit: cover;
    border-radius: 999px;
}

.admin-dashboard .wallet-summary-card__icon-fallback {
    color: var(--wallet-accent);
    font-size: var(--font-size-rem-092);
    font-weight: var(--font-extrabold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-dashboard .wallet-summary-card__overview {
    min-width: 0;
    flex-direction: column;
    gap: 0.12rem;
}

.admin-dashboard .wallet-summary-card__meta-group {
    align-items: center;
    justify-content: flex-end;
    gap: 0.3rem;
    flex-shrink: 0;
}

.admin-dashboard .wallet-summary-card__account-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.08rem;
    padding: 0.08rem 0.34rem;
    border-radius: 999px;
    background: var(--color-surface-alt);
    border: 1px solid rgba(var(--color-text-rgb), 0.05);
    color: var(--color-text-muted);
    font-size: var(--font-size-rem-047);
    font-weight: var(--font-bold);
    letter-spacing: 0.09em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.admin-dashboard .wallet-summary-card__title {
    margin: 0;
    color: var(--color-text);
    font-size: var(--font-size-rem-086);
    font-weight: var(--font-bold);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.admin-dashboard .wallet-summary-card__balance-row {
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.52rem;
    padding-top: 0.28rem;
}

.admin-dashboard .wallet-summary-card__balance-stack {
    min-width: 0;
    flex-direction: column;
    gap: 0.16rem;
}

.admin-dashboard .wallet-summary-card__balance-caption {
    color: var(--color-palette-66748b);
    font-size: var(--font-size-rem-048);
    font-weight: var(--font-bold);
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.admin-dashboard .wallet-summary-card__amount {
    align-items: flex-start;
    gap: 0.04rem;
    color: var(--color-text);
    font-weight: var(--font-extrabold);
    line-height: 1;
    letter-spacing: -0.06em;
}

.admin-dashboard .wallet-summary-card__amount-symbol {
    margin-top: 0.11rem;
    font-size: var(--font-size-rem-078);
    letter-spacing: -0.03em;
}

.admin-dashboard .wallet-summary-card__amount-main {
    font-size: var(--font-size-rem-144);
    font-weight: var(--font-extrabold);
}

.admin-dashboard .wallet-summary-card__amount-fraction {
    margin-top: 0.2rem;
    font-size: var(--font-size-rem-06);
    letter-spacing: -0.03em;
    opacity: 0.45;
}

.admin-dashboard .wallet-summary-card__status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    min-height: 1.08rem;
    padding: 0.08rem 0.34rem;
    border: 1px solid rgba(var(--wallet-accent-rgb), 0.1);
    border-radius: 999px;
    background: rgba(var(--wallet-accent-rgb), 0.05);
    color: var(--color-palette-4f5f78);
    box-shadow: none;
    font-size: var(--font-size-rem-046);
    font-weight: var(--font-bold);
    letter-spacing: 0.09em;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-dashboard .wallet-summary-card__status-badge--currency {
    gap: 0.38rem;
    min-height: 1.5rem;
    padding: 0.18rem 0.6rem;
    border-color: rgba(var(--color-rgb-22-163-74), 0.16);
    background: linear-gradient(135deg, rgba(var(--color-success-rgb), 0.12), rgba(var(--color-rgb-22-163-74), 0.06));
    color: var(--color-palette-166534);
    box-shadow: inset 0 1px 0 rgba(var(--color-white-rgb), 0.65);
    font-size: var(--font-size-rem-056);
    letter-spacing: 0.08em;
}

.admin-dashboard .wallet-summary-card__status-badge--currency.is-disabled {
    border-color: rgba(var(--color-danger-rgb), 0.18);
    background: linear-gradient(135deg, rgba(var(--color-rgb-248-113-113), 0.14), rgba(var(--color-danger-rgb), 0.06));
    color: var(--color-danger-deep);
}

/* Premium UI additions */
.admin-dashboard .dashboard-section__subtitle {
    color: var(--color-text-muted);
    font-size: var(--font-size-rem-078);
    line-height: 1.45;
}

.admin-dashboard .wallet-summary-shell__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--color-text-subtle);
    font-size: var(--font-size-rem-074);
    font-weight: var(--font-semibold);
}

.admin-dashboard .wallet-summary-shell__meta-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.admin-dashboard .wallet-summary-shell__meta-sep {
    color: var(--color-palette-cbd5e1);
}

.admin-dashboard .wallet-summary-card {
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.12) !important;
}

.admin-dashboard .wallet-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--color-text-rgb), 0.055);
    border-color: rgba(var(--wallet-accent-rgb), 0.22) !important;
}

.admin-dashboard .wallet-summary-card--default {
    border-color: rgba(var(--wallet-accent-rgb), 0.35) !important;
    box-shadow: 0 6px 16px rgba(var(--wallet-accent-rgb), 0.06);
}

.admin-dashboard .wallet-summary-card--default::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(120% 80% at 100% 0%, rgba(var(--wallet-accent-rgb), 0.10), transparent 55%);
}

.admin-dashboard .wallet-summary-card__title-row {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.admin-dashboard .wallet-summary-card__subtitle {
    display: block;
    margin-top: 0.1rem;
    color: var(--color-text-muted);
    font-size: var(--font-size-rem-068);
    font-weight: var(--font-medium);
    letter-spacing: 0.01em;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 14rem;
}

.admin-dashboard .wallet-summary-card__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.26rem;
    padding: 0.08rem 0.42rem;
    border-radius: 999px;
    font-size: var(--font-size-rem-056);
    font-weight: var(--font-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}

.admin-dashboard .wallet-summary-card__pill i {
    font-size: var(--font-size-rem-052);
}

.admin-dashboard .wallet-summary-card__pill--default {
    color: var(--color-palette-a16207);
    background: linear-gradient(135deg, rgba(var(--color-rgb-250-204-21), 0.22), rgba(var(--color-warning-rgb), 0.12));
    border: 1px solid rgba(var(--color-warning-rgb), 0.22);
    box-shadow: inset 0 1px 0 rgba(var(--color-white-rgb), 0.6);
}

.admin-dashboard .wallet-summary-card__pill--base {
    color: var(--color-primary-hover);
    background: linear-gradient(135deg, rgba(var(--color-rgb-59-130-246), 0.16), rgba(var(--color-primary-rgb), 0.08));
    border: 1px solid rgba(var(--color-primary-rgb), 0.22);
}

.admin-dashboard .wallet-summary-card__account-badge {
    display: inline-flex;
    align-items: center;
}

.admin-dashboard .wallet-summary-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px dashed rgba(var(--color-text-faint-rgb), 0.28);
    flex-wrap: wrap;
}

.admin-dashboard .wallet-summary-card__rate {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    color: var(--color-text-subtle);
    font-size: var(--font-size-rem-072);
    font-weight: var(--font-semibold);
}

.admin-dashboard .wallet-summary-card__rate-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.4rem;
    background: rgba(var(--wallet-accent-rgb), 0.10);
    color: var(--wallet-accent);
    font-size: var(--font-size-rem-058);
    flex-shrink: 0;
}

.admin-dashboard .wallet-summary-card__rate-text {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    color: var(--color-text);
    font-weight: var(--font-semibold);
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-dashboard .wallet-summary-card__rate-text strong {
    font-weight: var(--font-bold);
}

.admin-dashboard .wallet-summary-card__rate-sep {
    color: var(--color-text-faint);
    font-weight: var(--font-semibold);
}

.admin-dashboard .wallet-summary-card__rate--base .wallet-summary-card__rate-text {
    color: var(--color-text-subtle);
    font-weight: var(--font-semibold);
}

.admin-dashboard .wallet-summary-card__live {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.08rem 0.42rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(var(--color-success-rgb), 0.14), rgba(var(--color-rgb-22-163-74), 0.08));
    border: 1px solid rgba(var(--color-rgb-22-163-74), 0.22);
    color: var(--color-palette-166534);
    font-size: var(--font-size-rem-056);
    font-weight: var(--font-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
}

.admin-dashboard .wallet-summary-card__live-dot {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: var(--color-accent);
    box-shadow: 0 0 0 0.18rem rgba(var(--color-success-rgb), 0.2);
    animation: walletSummaryLivePulse 1.8s ease-in-out infinite;
}

@keyframes walletSummaryLivePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(var(--color-success-rgb), 0.55);
    }
    50% {
        box-shadow: 0 0 0 0.3rem rgba(var(--color-success-rgb), 0);
    }
}

.admin-dashboard .wallet-summary-card__type-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.08rem 0.42rem;
    border-radius: 0.4rem;
    background: rgba(var(--color-text-faint-rgb), 0.12);
    color: var(--color-text-subtle);
    font-size: var(--font-size-rem-056);
    font-weight: var(--font-bold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
}

.admin-dashboard .wallet-summary-card__status-dot {
    width: 0.32rem;
    height: 0.32rem;
    border-radius: 999px;
    background: var(--wallet-accent);
    opacity: 0.88;
    flex-shrink: 0;
}

.admin-dashboard .wallet-summary-card__status-badge--currency .wallet-summary-card__status-dot {
    width: 0.46rem;
    height: 0.46rem;
    background: linear-gradient(135deg, var(--color-accent), var(--color-palette-15803d));
    box-shadow: 0 0 0 0.16rem rgba(var(--color-success-rgb), 0.14);
    opacity: 1;
}

.admin-dashboard .wallet-summary-card__status-badge--currency.is-disabled .wallet-summary-card__status-dot {
    background: linear-gradient(135deg, var(--color-danger), var(--color-danger-deep));
    box-shadow: 0 0 0 0.16rem rgba(var(--color-danger-rgb), 0.14);
}

/* ====== Compact Premium Overrides (keep at the end so they win) ====== */
.admin-dashboard .wallet-summary-card {
    border-radius: 0.85rem !important;
    box-shadow: 0 1px 2px rgba(var(--color-text-rgb), 0.035), 0 3px 10px rgba(var(--color-text-rgb), 0.035) !important;
    background: linear-gradient(180deg, rgba(var(--wallet-accent-rgb), 0.05) 0%, rgba(var(--wallet-accent-rgb), 0) 55%),
    var(--color-white) !important;
}

/* Soften ambient so the inner icon doesn't look like a second card */
.admin-dashboard .wallet-summary-card__ambient {
    display: none;
}

/* Flatten the nested icon (remove the "card inside card" look) */
.admin-dashboard .wallet-summary-card__icon-frame {
    background: linear-gradient(135deg, rgba(var(--wallet-accent-rgb), 0.14), rgba(var(--wallet-accent-rgb), 0.06)) !important;
    border: 1px solid rgba(var(--wallet-accent-rgb), 0.16) !important;
    box-shadow: inset 0 1px 0 rgba(var(--color-white-rgb), 0.7);
}

.admin-dashboard .wallet-summary-card__icon-shell {
    position: static !important;
    inset: auto !important;
    width: 100%;
    height: 100%;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: inherit !important;
}

.admin-dashboard .wallet-summary-card .card-body {
    gap: 0.12rem;
    padding: 0.4rem 0.55rem;
}

.admin-dashboard .wallet-summary-card__top-row {
    gap: 0.35rem;
    align-items: center;
}

.admin-dashboard .wallet-summary-card__currency-group {
    gap: 0.35rem;
}

.admin-dashboard .wallet-summary-card__icon-frame {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 0.5rem;
}

.admin-dashboard .wallet-summary-card__icon-shell {
    inset: 0.14rem;
    border-radius: 0.55rem;
}

.admin-dashboard .wallet-summary-card__currency-icon {
    width: 1rem;
    height: 1rem;
}

.admin-dashboard .wallet-summary-card__icon-fallback {
    font-size: var(--font-size-rem-06);
}

.admin-dashboard .wallet-summary-card__title {
    font-size: var(--font-size-rem-078);
    letter-spacing: -0.01em;
}

.admin-dashboard .wallet-summary-card__title-row {
    gap: 0.24rem;
}

.admin-dashboard .wallet-summary-card__subtitle {
    margin-top: 0;
    font-size: var(--font-size-rem-06);
    color: var(--color-text-faint);
    line-height: 1.1;
}

.admin-dashboard .wallet-summary-card__meta-group {
    gap: 0.2rem;
}

.admin-dashboard .wallet-summary-card__account-badge,
.admin-dashboard .wallet-summary-card__status-badge--currency,
.admin-dashboard .wallet-summary-card__pill,
.admin-dashboard .wallet-summary-card__live,
.admin-dashboard .wallet-summary-card__type-chip {
    min-height: 1.1rem;
    padding: 0.04rem 0.36rem;
    font-size: var(--font-size-rem-05);
    letter-spacing: 0.07em;
}

.admin-dashboard .wallet-summary-card__pill i {
    font-size: var(--font-size-rem-044);
}

.admin-dashboard .wallet-summary-card__balance-row {
    padding-top: 0;
}

.admin-dashboard .wallet-summary-card__balance-stack {
    gap: 0;
}

.admin-dashboard .wallet-summary-card__balance-caption {
    font-size: var(--font-size-rem-04);
    letter-spacing: 0.14em;
}

.admin-dashboard .wallet-summary-card__amount-main {
    font-size: var(--font-size-rem-1);
    line-height: 1.1;
}

.admin-dashboard .wallet-summary-card__amount-symbol {
    margin-top: 0.04rem;
    font-size: var(--font-size-rem-058);
}

.admin-dashboard .wallet-summary-card__amount-fraction {
    margin-top: 0.08rem;
    font-size: var(--font-size-rem-048);
}

.admin-dashboard .wallet-summary-card__footer {
    margin-top: 0.18rem;
    padding-top: 0.22rem;
    gap: 0.3rem;
    border-top-style: solid;
    border-top-color: rgba(var(--color-text-faint-rgb), 0.14);
}

.admin-dashboard .wallet-summary-card__rate {
    gap: 0.28rem;
    font-size: var(--font-size-rem-062);
}

.admin-dashboard .wallet-summary-card__rate-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 0.28rem;
    background: rgba(var(--wallet-accent-rgb), 0.1);
    color: var(--wallet-accent);
    font-size: var(--font-size-rem-048);
    flex-shrink: 0;
}

.admin-dashboard .wallet-summary-card__rate-text {
    font-size: var(--font-size-rem-064);
}

.admin-dashboard .wallet-summary-card__live-dot {
    width: 0.32rem;
    height: 0.32rem;
}

/* Header meta tightening */
.admin-dashboard .dashboard-section__subtitle {
    font-size: var(--font-size-rem-074);
}

.admin-dashboard .wallet-summary-shell__meta {
    gap: 0.4rem;
    font-size: var(--font-size-rem-07);
}

@media (max-width: 575.98px) {
    .admin-dashboard .wallet-summary-card .card-body {
        padding: 0.55rem 0.6rem;
    }

    .admin-dashboard .wallet-summary-card__amount-main {
        font-size: var(--font-size-rem-11);
    }

    .admin-dashboard .wallet-summary-card__footer {
        margin-top: 0.3rem;
        padding-top: 0.32rem;
    }
}

.admin-dashboard .wallet-summary-card__status-text {
    color: inherit;
    line-height: 1;
}

@media (max-width: 575.98px) {
    .admin-dashboard .wallet-summary-card__top-row,
    .admin-dashboard .wallet-summary-card__balance-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-dashboard .wallet-summary-card__meta-group {
        justify-content: flex-start;
    }

    .admin-dashboard .wallet-summary-card__icon-frame {
        width: 2.7rem;
        height: 2.7rem;
    }

    .admin-dashboard .wallet-summary-card__currency-icon {
        width: 1.4rem;
        height: 1.4rem;
    }

    .admin-dashboard .wallet-summary-card__amount-main {
        font-size: var(--font-size-rem-132);
    }
}

.admin-dashboard .dashboard-feed-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.2rem 1.5rem 1.5rem;
}

.admin-dashboard .dashboard-feed-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(var(--color-text-rgb), 0.08);
    border-radius: 1.2rem;
    background: linear-gradient(180deg, var(--color-white), var(--color-surface-alt));
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-dashboard .dashboard-feed-item:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--color-primary-rgb), 0.18);
    box-shadow: 0 10px 24px rgba(var(--color-text-rgb), 0.055);
}

.admin-dashboard .dashboard-feed-item__primary,
.admin-dashboard .dashboard-feed-item__metric,
.admin-dashboard .dashboard-feed-item__status,
.admin-dashboard .dashboard-feed-item__action {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.admin-dashboard .dashboard-feed-item__primary {
    min-width: 0;
    flex: 1 1 auto;
}

.admin-dashboard .dashboard-feed-item__metric,
.admin-dashboard .dashboard-feed-item__status {
    flex-direction: column;
    align-items: flex-end;
}

.admin-dashboard .dashboard-feed-item__content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-dashboard .dashboard-feed-item__title {
    color: var(--color-text);
    font-size: var(--font-size-rem-095);
    font-weight: var(--font-bold);
    line-height: 1.35;
    text-decoration: none;
}

.admin-dashboard .dashboard-feed-item__meta {
    color: var(--color-text-muted);
    font-size: var(--font-size-rem-08);
    line-height: 1.5;
}

.admin-dashboard .dashboard-feed-item__value {
    color: var(--color-text);
    font-size: var(--font-size-rem-098);
    font-weight: var(--font-extrabold);
    line-height: 1.3;
}

.admin-dashboard .dashboard-avatar-wrap {
    position: relative;
}

.admin-dashboard .dashboard-avatar {
    width: 2.95rem;
    height: 2.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    color: var(--color-white);
    font-weight: var(--font-extrabold);
    text-transform: uppercase;
    flex-shrink: 0;
}

.admin-dashboard .dashboard-avatar--image {
    object-fit: cover;
}

.admin-dashboard .dashboard-avatar__status {
    position: absolute;
    right: -0.1rem;
    bottom: -0.1rem;
    width: 0.82rem;
    height: 0.82rem;
    border: 2px solid var(--color-white);
    border-radius: 999px;
}

.admin-dashboard .dashboard-action-btn {
    width: 2.8rem;
    height: 2.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(var(--color-primary-rgb), 0.12);
    border-radius: 1rem;
    background: linear-gradient(180deg, var(--color-primary), var(--color-primary-hover));
    color: var(--color-white);
    box-shadow: 0 10px 22px rgba(var(--color-primary-rgb), 0.14);
}

.admin-dashboard .dashboard-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
}

.admin-dashboard .dashboard-empty-state__title {
    color: var(--color-text);
    font-size: var(--font-size-rem-11);
    font-weight: var(--font-extrabold);
}

.admin-dashboard .dashboard-empty-state__text {
    max-width: 34ch;
    margin: 0.5rem 0 0;
    color: var(--color-text-muted);
    font-size: var(--font-size-rem-09);
    line-height: 1.7;
}

@media (max-width: 1199.98px) {
    .admin-dashboard .dashboard-hero__metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .admin-dashboard .dashboard-hero {
        padding: 1.5rem;
    }

    .admin-dashboard .dashboard-hero__title {
        max-width: none;
    }

    .admin-dashboard .dashboard-section__header,
    .admin-dashboard .dashboard-panel__header {
        flex-direction: column;
    }

    .admin-dashboard .report-range {
        min-width: 100%;
    }

    .admin-dashboard .dashboard-feed-item {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .admin-dashboard .dashboard-feed-item__metric,
    .admin-dashboard .dashboard-feed-item__status {
        align-items: flex-start;
    }
}

@media (max-width: 767.98px) {
    .admin-dashboard .dashboard-hero__metrics {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .admin-dashboard .dashboard-hero {
        border-radius: 1.35rem;
    }

    .admin-dashboard .dashboard-panel__header,
    .admin-dashboard .dashboard-feed-list,
    .admin-dashboard .dashboard-chart-shell,
    .admin-dashboard .dashboard-panel__footer {
        padding-inline: 1rem;
    }

    .admin-dashboard .dashboard-chart {
        min-height: 300px;
    }
}

/* =============================================================
   Admin Dashboard Compact Refinements
   ============================================================= */
.admin-dashboard {
    --dashboard-shadow: 0 8px 18px rgba(var(--color-text-rgb), 0.045);
}

.admin-dashboard .dashboard-hero {
    padding: 1.3rem 1.4rem;
    border-radius: 1.25rem;
    background: radial-gradient(circle at top left, rgba(var(--color-info-rgb), 0.16), transparent 28%),
    linear-gradient(135deg, var(--color-palette-13213f) 0%, var(--color-palette-173572) 58%, var(--color-primary) 100%);
    box-shadow: 0 12px 28px rgba(var(--color-text-rgb), 0.1);
}

.admin-dashboard .dashboard-hero::before {
    top: -84px;
    right: -64px;
    width: 200px;
    height: 200px;
    background: rgba(var(--color-white-rgb), 0.06);
}

.admin-dashboard .dashboard-hero::after {
    bottom: -140px;
    width: 220px;
    height: 220px;
    background: rgba(var(--color-rgb-56-189-248), 0.08);
}

.admin-dashboard .dashboard-hero__title {
    margin-top: 0.45rem;
    max-width: 10ch;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.02;
}

.admin-dashboard .dashboard-hero__description {
    margin-top: 0.65rem;
    max-width: 48ch;
    font-size: var(--font-size-rem-086);
    line-height: 1.55;
}

.admin-dashboard .dashboard-hero__chips {
    gap: 0.55rem;
    margin-top: 0.95rem;
}

.admin-dashboard .dashboard-chip {
    padding: 0.42rem 0.75rem;
    font-size: var(--font-size-rem-075);
}

.admin-dashboard .dashboard-hero__metrics {
    gap: 0.65rem;
}

.admin-dashboard .dashboard-hero__metric-card {
    gap: 0.25rem;
    padding: 0.85rem 0.9rem;
    border-radius: 1rem;
}

.admin-dashboard .dashboard-hero__metric-value {
    font-size: var(--font-size-rem-13);
}

.admin-dashboard .dashboard-hero__metric-label {
    font-size: var(--font-size-rem-072);
    letter-spacing: 0.08em;
}

.admin-dashboard .dashboard-section__header,
.admin-dashboard .dashboard-panel__header {
    padding: 1rem 1rem 0;
}

.admin-dashboard .dashboard-section__header {
    padding-inline: 0;
    padding-bottom: 0.9rem;
}

.admin-dashboard .dashboard-panel .dashboard-section__header {
    padding: 1rem 1rem 0.9rem;
}

.admin-dashboard .dashboard-section__header--tight {
    padding-bottom: 0.8rem;
}

.admin-dashboard .dashboard-section__title,
.admin-dashboard .dashboard-panel__title {
    font-size: var(--font-size-rem-112);
}

.admin-dashboard .dashboard-section__subtitle,
.admin-dashboard .dashboard-panel__subtitle {
    font-size: var(--font-size-rem-082);
    line-height: 1.5;
}

.admin-dashboard .dashboard-badge,
.admin-dashboard .dashboard-link-pill {
    padding: 0.55rem 0.8rem;
    font-size: var(--font-size-rem-076);
    box-shadow: 0 5px 14px rgba(var(--color-primary-rgb), 0.045);
}

.admin-dashboard .dashboard-panel__footer {
    padding: 0.8rem 1rem 1rem;
}

.admin-dashboard .dashboard-chart-shell {
    padding: 0.15rem 1rem 1rem;
}

.admin-dashboard .dashboard-chart-shell--compact {
    padding-top: 0.1rem;
}

.admin-dashboard .dashboard-chart {
    min-height: 300px;
}

.admin-dashboard .dashboard-chart-shell--compact .dashboard-chart {
    min-height: 260px;
}

.admin-dashboard .report-range {
    padding: 0.6rem 0.85rem;
    border-radius: 0.85rem !important;
    font-size: var(--font-size-rem-082);
}

.admin-dashboard .chart-stat-card {
    padding: 0.7rem 0.8rem;
    border-radius: 0.95rem;
}

.admin-dashboard .chart-stat-card__icon {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.75rem;
    font-size: var(--font-size-rem-088);
}

.admin-dashboard .chart-stat-card__label {
    font-size: var(--font-size-rem-082);
}

.admin-dashboard .chart-stat-card__hint {
    font-size: var(--font-size-rem-068);
}

.admin-dashboard .chart-stat-card__value {
    font-size: var(--font-size-rem-092);
}


.admin-dashboard .wallet-summary-card {
    border-radius: 1rem;
    box-shadow: 0 3px 10px rgba(var(--color-text-rgb), 0.03);
}

.admin-dashboard .wallet-summary-card .card-body {
    gap: 0.62rem;
}

.admin-dashboard .wallet-summary-card__top-row {
    gap: 0.75rem;
}

.admin-dashboard .wallet-summary-shell__meta {
    font-size: var(--font-size-rem-076);
}

.admin-dashboard .wallet-summary-card__account-badge {
    min-height: 1.22rem;
    padding: 0.12rem 0.44rem;
    font-size: var(--font-size-rem-054);
}

.admin-dashboard .wallet-summary-card__title {
    font-size: var(--font-size-rem-092);
}

.admin-dashboard .wallet-summary-card__balance-caption {
    font-size: var(--font-size-rem-056);
}

.admin-dashboard .wallet-summary-card__amount-symbol {
    font-size: var(--font-size-rem-094);
}

.admin-dashboard .wallet-summary-card__amount-main {
    font-size: var(--font-size-rem-136);
}

.admin-dashboard .wallet-summary-card__amount-fraction {
    font-size: var(--font-size-rem-074);
}

.admin-dashboard .wallet-summary-card__status-badge {
    min-height: 1.3rem;
    padding: 0.14rem 0.46rem;
    font-size: var(--font-size-rem-05);
}

.admin-dashboard .wallet-summary-card__status-badge--currency {
    min-height: 1.55rem;
    padding: 0.18rem 0.62rem;
    font-size: var(--font-size-rem-058);
}

.admin-dashboard .wallet-summary-card__icon-frame {
    width: 3.25rem;
    height: 3.25rem;
}

.admin-dashboard .wallet-summary-card__icon-shell {
    inset: 0.24rem;
}

.admin-dashboard .wallet-summary-card__currency-icon {
    width: 1.7rem;
    height: 1.7rem;
}


@media (max-width: 991.98px) {
    .admin-dashboard .dashboard-hero {
        padding: 1.1rem;
    }
}

@media (max-width: 767.98px) {
    .admin-dashboard .dashboard-hero {
        border-radius: 1rem;
    }

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


/* ============================================================
   KPI Stats Section — Premium Refactor
   ============================================================ */
.admin-dashboard .dashboard-kpi-board {
    --kpi-card-bg: rgba(var(--color-white-rgb), 0.84);
    --kpi-card-bg-soft: rgba(var(--color-rgb-248-250-252), 0.76);
}

.admin-dashboard .dashboard-kpi-board__cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.78rem;
    min-width: 0;
}

.admin-dashboard .dashboard-kpi-card {
    --kpi-accent: var(--color-primary);
    --kpi-accent-soft: rgba(var(--color-primary-rgb), 0.12);
    --kpi-accent-rgb: 37, 99, 235;
    position: relative;
    overflow: hidden;
    min-height: 5.15rem;
    border-radius: 0.82rem !important;
    background: radial-gradient(88% 74% at 100% 0%, rgba(var(--kpi-accent-rgb), 0.042), transparent 58%),
    linear-gradient(180deg, var(--kpi-card-bg) 0%, var(--kpi-card-bg-soft) 100%) !important;
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.13) !important;
    box-shadow: 0 1px 2px rgba(var(--color-text-rgb), 0.02), 0 5px 14px rgba(var(--color-text-rgb), 0.025) !important;
    transition: none !important;
}

.admin-dashboard .dashboard-kpi-card__accent {
    display: none !important;
}

.admin-dashboard .dashboard-kpi-card--linked {
    cursor: pointer;
}

.admin-dashboard .dashboard-kpi-card--linked:hover {
    transform: none !important;
    border-color: rgba(var(--kpi-accent-rgb), 0.16) !important;
    box-shadow: 0 1px 2px rgba(var(--color-text-rgb), 0.022), 0 6px 16px rgba(var(--kpi-accent-rgb), 0.042) !important;
}

.admin-dashboard .dashboard-kpi-card .card-body {
    display: flex;
    padding: 0.92rem 1rem !important;
}

.admin-dashboard .dashboard-kpi-card__summary {
    display: flex;
    align-items: center;
    gap: 0.78rem;
    width: 100%;
    min-width: 0;
}

.admin-dashboard .dashboard-kpi-card__icon {
    width: 2.8rem !important;
    height: 2.8rem !important;
    border-radius: 0.88rem !important;
    background: rgba(var(--kpi-accent-rgb), 0.082) !important;
    color: var(--kpi-accent) !important;
    font-size: var(--font-size-rem-095) !important;
    box-shadow: inset 0 1px 0 rgba(var(--color-white-rgb), 0.82), 0 4px 10px rgba(var(--kpi-accent-rgb), 0.035) !important;
    flex-shrink: 0;
    position: relative;
    border: 1px solid rgba(var(--kpi-accent-rgb), 0.09);
}

.admin-dashboard .dashboard-kpi-card__icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(var(--color-white-rgb), 0.38), rgba(var(--color-white-rgb), 0));
    pointer-events: none;
}

.admin-dashboard .dashboard-kpi-card__svg {
    display: block;
    position: relative;
    z-index: 1;
    stroke-width: 1.55 !important;
}

.admin-dashboard .dashboard-kpi-card__svg * {
    stroke-width: 1.55 !important;
}

.admin-dashboard .dashboard-kpi-card__content {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    flex: 1;
    min-width: 0;
}

.admin-dashboard .dashboard-kpi-card__title {
    order: 1;
    color: var(--color-text-muted);
    font-size: var(--font-size-rem-068) !important;
    font-weight: var(--font-medium) !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-dashboard .dashboard-kpi-card__count {
    order: 2;
    color: var(--color-text-soft);
    font-size: var(--font-size-rem-145) !important;
    font-weight: var(--font-semibold) !important;
    line-height: 1.08 !important;
    letter-spacing: 0;
}

.admin-dashboard .dashboard-kpi-card__action {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 0.58rem;
    background: rgba(var(--kpi-accent-rgb), 0.085);
    color: var(--kpi-accent);
    flex-shrink: 0;
    transition: none !important;
}

.admin-dashboard .dashboard-kpi-card__action:hover,
.admin-dashboard .dashboard-kpi-card--linked:hover .dashboard-kpi-card__action {
    background: var(--kpi-accent);
    color: var(--color-white);
    transform: none !important;
}

/* Color accent variants (match existing icon gradient groups) */
.admin-dashboard .dashboard-kpi-card--total,
.admin-dashboard .dashboard-kpi-card--merchant,
.admin-dashboard .dashboard-kpi-card--payment {
    --kpi-accent: var(--color-primary);
    --kpi-accent-rgb: 37, 99, 235;
}

.admin-dashboard .dashboard-kpi-card--active-svg,
.admin-dashboard .dashboard-kpi-card--success-svg,
.admin-dashboard .dashboard-kpi-card--deposit,
.admin-dashboard .dashboard-kpi-card--rewards {
    --kpi-accent: var(--color-success);
    --kpi-accent-rgb: 16, 185, 129;
}

.admin-dashboard .dashboard-kpi-card--danger-svg,
.admin-dashboard .dashboard-kpi-card--withdraw,
.admin-dashboard .dashboard-kpi-card--request-money {
    --kpi-accent: var(--color-danger);
    --kpi-accent-rgb: 225, 29, 72;
}

.admin-dashboard .dashboard-kpi-card--warning-svg {
    --kpi-accent: var(--color-warning);
    --kpi-accent-rgb: var(--color-warning-rgb);
}

.admin-dashboard .dashboard-kpi-card--info-svg,
.admin-dashboard .dashboard-kpi-card--exchange-money,
.admin-dashboard .dashboard-kpi-card--receive-money {
    --kpi-accent: var(--color-primary);
    --kpi-accent-rgb: 56, 189, 248;
}

/* Focus ring for keyboard users */
.admin-dashboard .dashboard-kpi-card__action:focus-visible {
    outline: 2px solid var(--kpi-accent);
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 575.98px) {
    .admin-dashboard .dashboard-kpi-board__cards {
        grid-template-columns: 1fr;
    }

    .admin-dashboard .dashboard-kpi-card .card-body {
        padding: 0.82rem 0.9rem !important;
    }

    .admin-dashboard .dashboard-kpi-card__icon {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }

    .admin-dashboard .dashboard-kpi-card__count {
        font-size: var(--font-size-rem-13) !important;
    }

    .admin-dashboard .dashboard-kpi-card__title {
        font-size: var(--font-size-rem-066) !important;
    }
}

@media (min-width: 576px) and (max-width: 1199.98px) {
    .admin-dashboard .dashboard-kpi-board__cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ============================================================
   Feed Cards (Recent Users / Recent Transactions) — Premium
   ============================================================ */
.admin-dashboard .dashboard-feed-card--premium {
    border-radius: 1rem !important;
    background: radial-gradient(140% 70% at 0% 0%, rgba(var(--color-primary-rgb), 0.04), transparent 60%),
    var(--color-white) !important;
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.16) !important;
    box-shadow: 0 1px 2px rgba(var(--color-text-rgb), 0.03), 0 8px 18px rgba(var(--color-text-rgb), 0.04) !important;
    overflow: hidden;
}

.admin-dashboard .dashboard-feed-card--premium .dashboard-panel__header {
    padding: 1.1rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(var(--color-text-faint-rgb), 0.12);
    margin-bottom: 0;
}

.admin-dashboard .dashboard-feed-card--premium .dashboard-panel__title {
    font-size: var(--font-size-rem-102);
    font-weight: var(--font-bold);
    color: var(--color-text);
    letter-spacing: -0.015em;
}

.admin-dashboard .dashboard-feed-list--divided {
    padding: 0.35rem 0.65rem 0.85rem !important;
    gap: 0 !important;
}

.admin-dashboard .dashboard-feed-item--flush {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0.75rem !important;
    padding: 0.78rem 0.85rem !important;
    transition: none !important;
    position: relative;
    gap: 1rem !important;
}

.admin-dashboard .dashboard-feed-item--flush:hover,
.admin-dashboard .dashboard-feed-item--flush:focus,
.admin-dashboard .dashboard-feed-item--flush:active {
    background: rgba(var(--color-primary-rgb), 0.045) !important;
    border-color: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.admin-dashboard .dashboard-feed-item--flush + .dashboard-feed-item--flush::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0.95rem;
    right: 0.95rem;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(var(--color-text-faint-rgb), 0.22) 18%, rgba(var(--color-text-faint-rgb), 0.22) 82%, transparent 100%);
}

.admin-dashboard .dashboard-feed-item--flush:hover::before,
.admin-dashboard .dashboard-feed-item--flush:hover + .dashboard-feed-item--flush::before {
    opacity: 0;
}

.admin-dashboard .dashboard-feed-item--flush .dashboard-feed-item__primary {
    gap: 0.85rem;
}

.admin-dashboard .dashboard-feed-item--flush .dashboard-avatar {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 0.75rem;
    font-size: var(--font-size-rem-078);
    font-weight: var(--font-bold);
    letter-spacing: 0.02em;
    box-shadow: 0 3px 8px rgba(var(--color-text-rgb), 0.07), inset 0 1px 0 rgba(var(--color-white-rgb), 0.18);
    position: relative;
}

.admin-dashboard .dashboard-feed-item--flush .dashboard-avatar::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(var(--color-white-rgb), 0.18), rgba(var(--color-white-rgb), 0));
    pointer-events: none;
}

.admin-dashboard .dashboard-feed-item--flush .dashboard-feed-item__title {
    color: var(--color-text);
    font-size: var(--font-size-rem-09);
    font-weight: var(--font-bold);
    line-height: 1.25;
    letter-spacing: -0.012em;
}

.admin-dashboard .dashboard-feed-item__sub {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.2rem;
    flex-wrap: wrap;
}

.admin-dashboard .dashboard-feed-item__trx {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.48rem;
    border-radius: 0.38rem;
    background: var(--color-surface-soft);
    color: var(--color-text-subtle);
    font-family: var(--font-mono);
    font-size: var(--font-size-rem-066);
    font-weight: var(--font-semibold);
    letter-spacing: 0.04em;
    line-height: 1.3;
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.18);
}

.admin-dashboard .dashboard-feed-item__dot {
    width: 3px;
    height: 3px;
    border-radius: 999px;
    background: var(--color-palette-cbd5e1);
    display: inline-block;
}

.admin-dashboard .dashboard-feed-item--flush .dashboard-feed-item__meta {
    color: var(--color-text-faint);
    font-size: var(--font-size-rem-072);
    font-weight: var(--font-medium);
    line-height: 1.35;
    display: inline-flex;
    align-items: center;
}

.admin-dashboard .dashboard-feed-item__meta-icon {
    font-size: var(--font-size-rem-066);
    margin-right: 0.32rem;
    color: var(--color-palette-cbd5e1);
}

.admin-dashboard .dashboard-feed-item--flush .dashboard-feed-item__value {
    font-size: var(--font-size-rem-092);
    font-weight: var(--font-bold);
    letter-spacing: -0.015em;
    color: var(--color-text);
    line-height: 1.2;
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
    font-variant-numeric: tabular-nums;
}

.admin-dashboard .dashboard-feed-item__value-unit {
    font-size: var(--font-size-rem-068);
    font-weight: var(--font-semibold);
    color: var(--color-text-faint);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-dashboard .dashboard-feed-item--flush .dashboard-feed-item__value--soft,
.admin-dashboard .dashboard-feed-item--flush span.dashboard-feed-item__value.dashboard-feed-item__value--soft {
    color: var(--color-text-muted) !important;
    font-weight: var(--font-medium) !important;
    font-size: var(--font-size-rem-08) !important;
    max-width: 15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block !important;
    letter-spacing: 0 !important;
}

/* Refined status pill */
.admin-dashboard .dashboard-status-pill {
    --pill-bg: rgba(var(--color-text-faint-rgb), 0.15);
    --pill-fg: var(--color-text-subtle);
    --pill-dot: var(--color-text-faint);
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    background: var(--pill-bg);
    color: var(--pill-fg);
    font-size: var(--font-size-rem-062);
    font-weight: var(--font-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid rgba(var(--color-white-rgb), 0.6);
    box-shadow: inset 0 0 0 1px rgba(var(--pill-dot-rgb, 148, 163, 184), 0.15);
}

.admin-dashboard .dashboard-status-pill__dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    background: var(--pill-dot);
    box-shadow: 0 0 0 2px rgba(var(--color-white-rgb), 0.65), 0 0 6px rgba(var(--pill-dot-rgb, 148, 163, 184), 0.55);
}

.admin-dashboard .dashboard-status-pill--success {
    --pill-bg: rgba(var(--color-success-rgb), 0.12);
    --pill-fg: var(--color-success-deep);
    --pill-dot: var(--color-success);
    --pill-dot-rgb: 16, 185, 129;
}

.admin-dashboard .dashboard-status-pill--danger {
    --pill-bg: rgba(var(--color-rgb-225-29-72), 0.1);
    --pill-fg: var(--color-danger-deep);
    --pill-dot: var(--color-danger);
    --pill-dot-rgb: 225, 29, 72;
}

.admin-dashboard .dashboard-status-pill--warning {
    --pill-bg: rgba(var(--color-warning-rgb), 0.12);
    --pill-fg: var(--color-warning-deep);
    --pill-dot: var(--color-warning);
    --pill-dot-rgb: 245, 158, 11;
}

.admin-dashboard .dashboard-status-pill--info,
.admin-dashboard .dashboard-status-pill--primary {
    --pill-bg: rgba(var(--color-primary-rgb), 0.1);
    --pill-fg: var(--color-primary-hover);
    --pill-dot: var(--color-primary);
    --pill-dot-rgb: 37, 99, 235;
}

.admin-dashboard .dashboard-status-pill--secondary,
.admin-dashboard .dashboard-status-pill--dark {
    --pill-bg: rgba(var(--color-rgb-71-85-105), 0.12);
    --pill-fg: var(--color-text-soft);
    --pill-dot: var(--color-text-muted);
    --pill-dot-rgb: 100, 116, 139;
}

/* Action button refinement (flat, shadow-free, center-aligned) */
.admin-dashboard .dashboard-feed-item--flush .dashboard-action-btn {
    width: 2.45rem !important;
    height: 2.45rem !important;
    border-radius: 0.72rem !important;
    background: var(--color-surface-soft) !important;
    color: var(--color-text-subtle) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.22) !important;
    box-shadow: none !important;
    transition: none !important;
    padding: 0 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

.admin-dashboard .dashboard-feed-item--flush .dashboard-action-btn:hover,
.admin-dashboard .dashboard-feed-item--flush .dashboard-action-btn:focus,
.admin-dashboard .dashboard-feed-item--flush .dashboard-action-btn:active {
    background: var(--color-primary) !important;
    color: var(--color-white) !important;
    border-color: var(--color-primary) !important;
    box-shadow: none !important;
}

.admin-dashboard .dashboard-feed-item--flush .dashboard-action-btn svg,
.admin-dashboard .dashboard-feed-item--flush .dashboard-action-btn i {
    display: block;
    width: 1.08rem;
    height: 1.08rem;
    margin: auto;
    flex-shrink: 0;
}

/* Avatar online/offline status refinement for flush rows */
.admin-dashboard .dashboard-feed-item--flush .dashboard-avatar__status {
    width: 0.66rem;
    height: 0.66rem;
    right: -0.15rem;
    bottom: -0.15rem;
    border-width: 2px;
}

/* ---------- Stable 3-column grid ---------- */
.admin-dashboard .dashboard-feed-item--flush {
    display: flex !important;
    align-items: center !important;
    gap: 0.9rem !important;
}

.admin-dashboard .dashboard-feed-item--flush .dashboard-feed-item__primary {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.admin-dashboard .dashboard-feed-item--flush .dashboard-feed-item__content {
    min-width: 0;
    flex: 1 1 auto;
}

.admin-dashboard .dashboard-feed-item--flush .dashboard-feed-item__metric,
.admin-dashboard .dashboard-feed-item--flush .dashboard-feed-item__status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    text-align: right;
    flex-shrink: 0;
    gap: 0.3rem;
    font-variant-numeric: tabular-nums;
}

/* Fixed column widths — identical rhythm across every row */
.admin-dashboard .dashboard-feed-item--flush .dashboard-feed-item__metric {
    width: 7.5rem;
}

.admin-dashboard .dashboard-feed-item--flush .dashboard-feed-item__status {
    width: 9rem;
}

.admin-dashboard .dashboard-feed-item--users .dashboard-feed-item__status {
    width: 7.5rem;
}

.admin-dashboard .dashboard-feed-item--flush .dashboard-feed-item__action {
    flex-shrink: 0;
    width: 2.45rem;
    height: 2.45rem;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    padding: 0 !important;
}

/* ---------- Email line (users) ---------- */
.admin-dashboard .dashboard-feed-item__meta--email {
    display: block !important;
    color: var(--color-text-muted) !important;
    font-size: var(--font-size-rem-076) !important;
    font-weight: var(--font-medium) !important;
    letter-spacing: 0 !important;
    line-height: 1.35;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 0.15rem;
}

/* ---------- TRX-ID chip inside status column ---------- */
.admin-dashboard .dashboard-feed-item__status .dashboard-feed-item__trx {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Name title: consistent truncation ---------- */
.admin-dashboard .dashboard-feed-item--flush .dashboard-feed-item__title {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Mobile stability ---------- */
@media (max-width: 767.98px) {
    .admin-dashboard .dashboard-feed-item--flush .dashboard-feed-item__metric {
        width: 6.25rem;
    }

    .admin-dashboard .dashboard-feed-item--flush .dashboard-feed-item__status,
    .admin-dashboard .dashboard-feed-item--users .dashboard-feed-item__status {
        width: 7rem;
    }
}

@media (max-width: 575.98px) {
    .admin-dashboard .dashboard-feed-item--flush {
        padding: 0.65rem 0.55rem !important;
    }

    .admin-dashboard .dashboard-feed-item__value--soft {
        max-width: 100%;
    }
}


/* ============================================================
   Dashboard Queue (Priority Queue) — single source of truth
   ============================================================ */
.admin-dashboard .dashboard-queue {
    margin-bottom: 1.25rem;
}

.admin-dashboard .dashboard-queue__panel {
    padding: 1rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.18);
    background: radial-gradient(120% 70% at 0% 0%, rgba(var(--color-primary-rgb), 0.065), transparent 55%),
    radial-gradient(90% 120% at 100% 100%, rgba(var(--color-info-rgb), 0.045), transparent 58%),
    linear-gradient(180deg, var(--color-white) 0%, var(--color-surface-alt) 100%);
    box-shadow: 0 1px 2px rgba(var(--color-text-rgb), 0.03), 0 8px 20px rgba(var(--color-text-rgb), 0.04);
}


.admin-dashboard .dashboard-queue__layout {
    display: grid;
    grid-template-columns: minmax(228px, 268px) minmax(0, 1fr);
    gap: 0.85rem;
    align-items: stretch;
}

.admin-dashboard .dashboard-queue__aside {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    height: 100%;
    padding: 0.85rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.14);
    background: radial-gradient(120% 110% at 0% 0%, rgba(var(--color-primary-rgb), 0.08), transparent 48%),
    linear-gradient(180deg, rgba(var(--color-white-rgb), 0.96), rgba(var(--color-rgb-241-245-249), 0.82));
    box-shadow: inset 0 1px 0 rgba(var(--color-white-rgb), 0.98),
    0 6px 16px rgba(var(--color-text-rgb), 0.03);
    overflow: hidden;
}

.admin-dashboard .dashboard-queue__intro {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-dashboard .dashboard-queue__intro::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    margin-top: 0.4rem;
    background: linear-gradient(90deg, rgba(var(--color-primary-rgb), 0.22), rgba(var(--color-text-faint-rgb), 0.08), rgba(var(--color-text-faint-rgb), 0));
}

.admin-dashboard .dashboard-queue__eyebrow {
    display: inline-block;
    color: var(--color-primary);
    font-size: var(--font-size-rem-06);
    font-weight: var(--font-extrabold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.admin-dashboard .dashboard-queue__heading {
    margin: 0;
    font-size: var(--font-size-rem-108);
    font-weight: var(--font-extrabold);
    letter-spacing: -0.035em;
    line-height: 1.05;
    color: var(--color-text);
}

.admin-dashboard .dashboard-queue__lead {
    margin: 0;
    color: var(--color-text-muted);
    font-size: var(--font-size-rem-07);
    line-height: 1.38;
    max-width: 28ch;
}

.admin-dashboard .dashboard-queue__stats {
    display: grid;
    gap: 0.45rem;
    margin-top: auto;
}

.admin-dashboard .dashboard-queue__stat {
    --stat-accent: var(--color-primary);
    --stat-accent-rgb: 37, 99, 235;
    position: relative;
    padding: 0.62rem 0.78rem;
    border-radius: 0.72rem;
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.14);
    background: radial-gradient(120% 90% at 100% 0%, rgba(var(--stat-accent-rgb), 0.08), transparent 58%),
    linear-gradient(180deg, var(--color-white), var(--color-surface-alt));
    box-shadow: inset 0 1px 0 rgba(var(--color-white-rgb), 0.92),
    0 1px 2px rgba(var(--color-text-rgb), 0.025);
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.admin-dashboard .dashboard-queue__stat::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(var(--stat-accent-rgb), 0.14);
    background: linear-gradient(180deg, rgba(var(--color-white-rgb), 0.05), rgba(var(--color-white-rgb), 0));
    pointer-events: none;
    opacity: 1;
}

.admin-dashboard .dashboard-queue__stat::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0.8rem;
    right: 0.8rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(var(--stat-accent-rgb), 0), rgba(var(--stat-accent-rgb), 0.65), rgba(var(--stat-accent-rgb), 0));
    opacity: 0.8;
    pointer-events: none;
}

.admin-dashboard .dashboard-queue__stat--primary {
    --stat-accent: var(--color-primary);
    --stat-accent-rgb: 37, 99, 235;
}

.admin-dashboard .dashboard-queue__stat--success {
    --stat-accent: var(--color-success);
    --stat-accent-rgb: 16, 185, 129;
}

.admin-dashboard .dashboard-queue__stat-label {
    display: block;
    color: var(--color-text-muted);
    font-size: var(--font-size-rem-056);
    font-weight: var(--font-bold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-dashboard .dashboard-queue__stat-value {
    display: block;
    margin-top: 0.16rem;
    color: var(--color-text);
    font-size: var(--font-size-rem-13);
    font-weight: var(--font-extrabold);
    letter-spacing: -0.03em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.admin-dashboard .dashboard-queue__stat-meta {
    display: block;
    margin-top: 0.2rem;
    color: var(--color-text-faint);
    font-size: var(--font-size-rem-062);
    font-weight: var(--font-medium);
    line-height: 1.35;
}

/* --- Queue grid (right side) --- */
.admin-dashboard .dashboard-queue__body {
    min-width: 0;
    display: flex;
}

.admin-dashboard .dashboard-queue__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    align-items: stretch;
    width: 100%;
    height: 100%;
}

/* --- Queue item --- */
.admin-dashboard .dashboard-queue__item {
    --item-accent: var(--color-text-faint);
    --item-accent-rgb: 148, 163, 184;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.62rem;
    height: 100%;
    padding: 0.78rem;
    min-height: 138px;
    border-radius: 0.9rem;
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.18);
    background: var(--color-white);
    box-shadow: 0 1px 2px rgba(var(--color-text-rgb), 0.025);
    color: var(--color-text);
    text-decoration: none;
    overflow: hidden;
    transition: none;
}

.admin-dashboard .dashboard-queue__item:hover,
.admin-dashboard .dashboard-queue__item:focus-visible {
    border-color: rgba(var(--item-accent-rgb), 0.32);
    box-shadow: 0 1px 2px rgba(var(--color-text-rgb), 0.025);
    color: var(--color-text);
    text-decoration: none;
    outline: none;
}

.admin-dashboard .dashboard-queue__item.is-active {
    background: radial-gradient(120% 80% at 100% 0%, rgba(var(--item-accent-rgb), 0.07), transparent 60%),
    var(--color-white);
    border-color: rgba(var(--item-accent-rgb), 0.28);
}

/* Accent variants (keyed to controller 'color' class) */
.admin-dashboard .dashboard-queue__item.req-deposit {
    --item-accent: var(--color-palette-2491ff);
    --item-accent-rgb: 36, 145, 255;
}

.admin-dashboard .dashboard-queue__item.req-withdraw {
    --item-accent: var(--color-palette-ff6b4a);
    --item-accent-rgb: 255, 107, 74;
}

.admin-dashboard .dashboard-queue__item.req-kyc {
    --item-accent: var(--color-primary);
    --item-accent-rgb: 104, 117, 245;
}

.admin-dashboard .dashboard-queue__item.req-merchant {
    --item-accent: var(--color-accent);
    --item-accent-rgb: 34, 197, 94;
}

.admin-dashboard .dashboard-queue__item.req-cardholder {
    --item-accent: var(--color-primary);
    --item-accent-rgb: 139, 92, 246;
}

.admin-dashboard .dashboard-queue__item.req-vc {
    --item-accent: var(--color-warning);
    --item-accent-rgb: 249, 115, 22;
}

/* --- Item top row: pill + count --- */
.admin-dashboard .dashboard-queue__item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.admin-dashboard .dashboard-queue__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.24rem 0.5rem;
    border-radius: 999px;
    background: rgba(var(--color-text-faint-rgb), 0.14);
    border: 1px solid rgba(var(--color-white-rgb), 0.7);
    color: var(--color-text-subtle);
    font-size: var(--font-size-rem-058);
    font-weight: var(--font-bold);
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-dashboard .dashboard-queue__pill i {
    font-size: var(--font-size-rem-052);
}

.admin-dashboard .dashboard-queue__pill--live {
    background: rgba(var(--item-accent-rgb), 0.12);
    color: var(--item-accent);
}

.admin-dashboard .dashboard-queue__pill--live i {
    filter: drop-shadow(0 0 4px rgba(var(--item-accent-rgb), 0.55));
}

.admin-dashboard .dashboard-queue__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.42rem;
    border-radius: 999px;
    background: var(--color-surface-alt);
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.22);
    color: var(--color-text-soft);
    font-size: var(--font-size-rem-072);
    font-weight: var(--font-extrabold);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    transition: none;
}

.admin-dashboard .dashboard-queue__item.is-active .dashboard-queue__count {
    background: var(--item-accent);
    border-color: transparent;
    color: var(--color-white);
    box-shadow: 0 2px 6px rgba(var(--item-accent-rgb), 0.2);
}

/* --- Item body: icon + text --- */
.admin-dashboard .dashboard-queue__item-body {
    display: flex;
    align-items: flex-start;
    gap: 0.62rem;
    min-width: 0;
}

.admin-dashboard .dashboard-queue__icon {
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.68rem;
    color: var(--color-white);
    background: linear-gradient(135deg, rgba(var(--item-accent-rgb), 0.95), rgba(var(--item-accent-rgb), 0.75));
    box-shadow: inset 0 1px 0 rgba(var(--color-white-rgb), 0.22), 0 4px 10px rgba(var(--item-accent-rgb), 0.2);
    font-size: var(--font-size-rem-096);
    transition: none;
}

.admin-dashboard .dashboard-queue__icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(var(--color-white-rgb), 0.2), rgba(var(--color-white-rgb), 0));
    pointer-events: none;
}

.admin-dashboard .dashboard-queue__item:hover .dashboard-queue__icon {
    transform: none;
}

.admin-dashboard .dashboard-queue__text {
    min-width: 0;
    flex: 1 1 auto;
}

.admin-dashboard .dashboard-queue__title {
    margin: 0;
    color: var(--color-text);
    font-size: var(--font-size-rem-082);
    font-weight: var(--font-bold);
    letter-spacing: -0.015em;
    line-height: 1.16;
}

.admin-dashboard .dashboard-queue__description {
    margin: 0.18rem 0 0;
    color: var(--color-text-faint);
    font-size: var(--font-size-rem-064);
    font-weight: var(--font-medium);
    line-height: 1.32;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Item footer: hint + cta --- */
.admin-dashboard .dashboard-queue__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 0.42rem;
    border-top: 1px solid rgba(var(--color-text-faint-rgb), 0.16);
}

.admin-dashboard .dashboard-queue__hint {
    min-width: 0;
    flex: 1 1 auto;
    color: var(--color-text-faint);
    font-size: var(--font-size-rem-056);
    font-weight: var(--font-bold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-dashboard .dashboard-queue__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
    padding: 0.26rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--item-accent-rgb), 0.22);
    background: rgba(var(--item-accent-rgb), 0.08);
    color: var(--item-accent);
    font-size: var(--font-size-rem-062);
    font-weight: var(--font-bold);
    line-height: 1;
    transition: none;
}

.admin-dashboard .dashboard-queue__cta i {
    font-size: var(--font-size-rem-055);
    transition: none;
}

.admin-dashboard .dashboard-queue__item:hover .dashboard-queue__cta {
    background: var(--item-accent);
    border-color: var(--item-accent);
    color: var(--color-white);
}

.admin-dashboard .dashboard-queue__item:hover .dashboard-queue__cta i {
    transform: none;
}

/* --- Responsive --- */
@media (max-width: 1399.98px) {
    .admin-dashboard .dashboard-queue__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1199.98px) {
    .admin-dashboard .dashboard-queue__layout {
        grid-template-columns: 1fr;
    }

    .admin-dashboard .dashboard-queue__lead {
        max-width: 46ch;
    }

    .admin-dashboard .dashboard-queue__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 0;
    }

    .admin-dashboard .dashboard-queue__body,
    .admin-dashboard .dashboard-queue__grid {
        height: auto;
    }
}

@media (max-width: 767.98px) {
    .admin-dashboard .dashboard-queue__panel {
        padding: 0.85rem;
    }

    .admin-dashboard .dashboard-queue__aside {
        padding: 0.9rem;
    }

    .admin-dashboard .dashboard-queue__heading {
        font-size: var(--font-size-rem-112);
    }

    .admin-dashboard .dashboard-queue__stats,
    .admin-dashboard .dashboard-queue__grid {
        grid-template-columns: 1fr;
    }

    .admin-dashboard .dashboard-queue__item {
        min-height: 0;
    }
}

/* =============================================================
   Premium Pro Admin Header
   Default brand token references: --pro-header-brand: #4f46e5; --pro-header-brand-2: #2563eb.
   ============================================================= */
.admin-header.admin-header--pro {
    --pro-header-surface: rgba(var(--color-white-rgb), 0.86);
    --pro-header-border: rgba(var(--color-rgb-226-232-240), 0.9);
    --pro-header-text: var(--color-text);
    --pro-header-muted: var(--color-text-muted);
    --pro-header-soft: var(--color-surface-soft);
    --pro-header-soft-2: var(--color-surface-alt);
    --pro-header-brand: var(--color-primary);
    --pro-header-brand-2: var(--color-primary-hover);
    --pro-header-brand-rgb: var(--color-primary-rgb);
    --pro-header-success: var(--color-success);
    --pro-header-danger: var(--color-danger);
    --pro-header-control-height: 2.55rem;
    --pro-header-control-radius: 0.78rem;
    --pro-header-control-shadow: 0 4px 12px rgba(var(--color-text-rgb), 0.035);
    --pro-header-control-shadow-hover: 0 7px 18px rgba(var(--color-text-rgb), 0.055);
    --pro-header-control-focus-ring: 0 0 0 3px rgba(var(--pro-header-brand-rgb), 0.1);
    --pro-header-shadow-sm: var(--pro-header-control-shadow);
    --pro-header-shadow-md: var(--shadow-sm);
    --pro-header-shadow-lg: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1030;
    min-height: 4.4rem;
    margin-bottom: 1rem !important;
    border-bottom: 1px solid var(--pro-header-border);
    background: var(--pro-header-surface);
    backdrop-filter: saturate(160%) blur(18px);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    box-shadow: none;
}

.admin-header--pro .admin-header-bar {
    min-height: 4.4rem;
    gap: 1.1rem;
    padding: 0.55rem 0;
}

/* ----------- Sidebar toggle ----------- */
.admin-header--pro .admin-header-sidebar-toggle {
    width: var(--pro-header-control-height);
    height: var(--pro-header-control-height);
    border-radius: var(--pro-header-control-radius);
    border: 1px solid var(--pro-header-border);
    background: var(--color-white);
    color: var(--pro-header-muted);
    box-shadow: var(--pro-header-shadow-sm);
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, transform 0.2s ease;
}

.admin-header--pro .admin-header-sidebar-toggle:hover,
.admin-header--pro .admin-header-sidebar-toggle:focus {
    color: var(--pro-header-brand);
    background: rgba(var(--pro-header-brand-rgb), 0.08);
    border-color: rgba(var(--pro-header-brand-rgb), 0.3);
    box-shadow: var(--pro-header-control-shadow-hover);
    transform: none;
}

.admin-header--pro .admin-header-sidebar-toggle.is-active {
    color: var(--color-white);
    background: linear-gradient(135deg, var(--pro-header-brand) 0%, var(--pro-header-brand-2) 100%);
    border-color: transparent;
    box-shadow: none;
}

/* ----------- Search wrap ----------- */
.admin-header--pro .admin-header-search-wrap {
    position: relative;
    flex: 0 1 26rem;
    max-width: 26rem;
}

.admin-header--pro .admin-header-search-wrap .admin-search-group {
    min-height: var(--pro-header-control-height);
    height: var(--pro-header-control-height);
    border-radius: var(--pro-header-control-radius);
    border: 1px solid var(--pro-header-border);
    background: var(--pro-header-soft-2);
    box-shadow: var(--pro-header-shadow-sm);
    overflow: hidden;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-header--pro .admin-header-search-wrap .admin-search-group:focus-within {
    border-color: rgba(var(--pro-header-brand-rgb), 0.55);
    background: var(--color-white);
    box-shadow: var(--pro-header-control-shadow), var(--pro-header-control-focus-ring);
}

.admin-header--pro .admin-header-search-wrap .admin-search-addon {
    padding-inline: 1rem 0.55rem;
    color: var(--pro-header-muted);
}

.admin-header--pro .admin-header-search-wrap .admin-search-input {
    color: var(--pro-header-text);
    font-size: var(--font-size-rem-09);
    min-height: calc(var(--pro-header-control-height) - 2px);
    padding-block: 0;
    padding-inline-end: 4.5rem;
}

.admin-header--pro .admin-header-search-wrap .admin-search-input::placeholder {
    color: var(--color-text-faint);
}

.admin-header-search-shortcut {
    position: absolute;
    top: 50%;
    right: 0.65rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.18rem;
    pointer-events: none;
    z-index: 2;
    color: var(--color-text-muted);
}

.admin-header-search-shortcut__plus {
    font-size: var(--font-size-rem-07);
    color: var(--color-text-faint);
    line-height: 1;
}

.admin-header-search-shortcut kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    padding: 0.12rem 0.38rem;
    font-family: var(--font-primary);
    font-size: var(--font-size-rem-066);
    font-weight: var(--font-semibold);
    color: var(--color-text-subtle);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-bottom-width: 2px;
    border-radius: 0.4rem;
    box-shadow: 0 1px 0 rgba(var(--color-text-rgb), 0.04);
    line-height: 1;
}

/* Hide shortcut when search clear button is visible to avoid overlap. */
.admin-header--pro .admin-header-search-wrap .admin-search-clear:not(.d-none) ~ .admin-header-search-shortcut,
.admin-header--pro .admin-header-search-wrap:has(.admin-search-clear:not(.d-none)) .admin-header-search-shortcut {
    opacity: 0;
}

/* ----------- Header end / actions ----------- */
.admin-header--pro .admin-header-end {
    gap: 0.55rem;
}

.admin-header--pro .admin-header-actions {
    gap: 0.4rem;
}

.admin-header--pro .admin-header-actions--primary {
    margin-inline-end: 0;
}

.admin-header--pro .admin-header-actions--secondary {
    margin-inline-end: 0 !important;
}

.admin-header--pro .admin-header-actions .nav-link,
.admin-header--pro .admin-header-actions .btn.nav-link {
    width: var(--pro-header-control-height);
    height: var(--pro-header-control-height);
    border-radius: var(--pro-header-control-radius);
    border: 1px solid var(--pro-header-border);
    background: var(--color-white);
    color: var(--pro-header-muted);
    box-shadow: var(--pro-header-shadow-sm);
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, transform 0.2s ease;
    position: relative;
}

.admin-header--pro .admin-header-actions .nav-link:hover,
.admin-header--pro .admin-header-actions .nav-link:focus,
.admin-header--pro .admin-header-actions .btn.nav-link:hover,
.admin-header--pro .admin-header-actions .btn.nav-link:focus {
    color: var(--pro-header-brand);
    background: rgba(var(--pro-header-brand-rgb), 0.08);
    border-color: rgba(var(--pro-header-brand-rgb), 0.32);
    box-shadow: var(--pro-header-control-shadow-hover);
    transform: none;
}

.admin-header--pro .admin-header-actions .nav-link[aria-expanded="true"],
.admin-header--pro .admin-header-actions .btn.nav-link[aria-expanded="true"] {
    color: var(--color-white);
    background: linear-gradient(135deg, var(--pro-header-brand) 0%, var(--pro-header-brand-2) 100%);
    border-color: transparent;
    box-shadow: none;
}

/* ----------- Vertical divider between action groups ----------- */
.admin-header-divider {
    display: inline-block;
    width: 1px;
    height: 1.8rem;
    margin-inline: 0.25rem;
    background: linear-gradient(180deg,
    rgba(var(--color-text-rgb), 0) 0%,
    rgba(var(--color-text-rgb), 0.12) 50%,
    rgba(var(--color-text-rgb), 0) 100%);
    flex: 0 0 auto;
}

/* ----------- Profile trigger ----------- */
.admin-header--pro .admin-header-profile-trigger {
    gap: 0.7rem;
    min-height: 2.7rem;
    padding: 0.25rem 0.7rem 0.25rem 0.3rem;
    border: 1px solid var(--pro-header-border);
    border-radius: 999px;
    background: var(--color-white);
    box-shadow: var(--pro-header-shadow-sm);
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease,
    transform 0.2s ease;
}

.admin-header--pro .admin-header-profile-trigger:hover,
.admin-header--pro .admin-header-profile-trigger:focus {
    border-color: rgba(var(--pro-header-brand-rgb), 0.35);
    background: var(--pro-header-soft-2);
    box-shadow: none;
    transform: none;
}

.admin-header--pro .admin-header-profile-trigger[aria-expanded="true"] {
    border-color: rgba(var(--pro-header-brand-rgb), 0.55);
    background: rgba(var(--pro-header-brand-rgb), 0.05);
    box-shadow: none;
}

.admin-header-profile-avatar-wrap {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
}

.admin-header--pro .admin-header-profile-avatar {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-white);
    box-shadow: 0 0 0 1px rgba(var(--pro-header-brand-rgb), 0.14);
}

.admin-header--pro .admin-header-profile-avatar .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.admin-header-profile-status {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: var(--pro-header-success, var(--color-success));
    border: 2px solid var(--color-white);
    box-shadow: 0 0 0 0 rgba(var(--color-success-rgb), 0.55);
    animation: proHeaderStatusPulse 2.6s ease-out infinite;
}

@keyframes proHeaderStatusPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--color-success-rgb), 0.55);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(var(--color-success-rgb), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--color-success-rgb), 0);
    }
}

.admin-header--pro .admin-header-profile-name {
    color: var(--pro-header-text);
    font-size: var(--font-size-rem-084);
    font-weight: var(--font-semibold);
    letter-spacing: -0.005em;
    max-width: 9.5rem;
}

.admin-header--pro .admin-header-profile-role {
    color: var(--pro-header-muted);
    font-size: var(--font-size-rem-068);
    font-weight: var(--font-medium);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.admin-header-profile-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-faint);
    transition: transform 0.25s ease, color 0.2s ease;
}

.admin-header--pro .admin-header-profile-trigger[aria-expanded="true"] .admin-header-profile-chevron {
    transform: rotate(180deg);
    color: var(--pro-header-brand);
}

/* ----------- Profile dropdown ----------- */
.admin-header--pro .admin-header-profile-dropdown {
    min-width: 17rem;
    padding-bottom: 0.55rem;
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.18);
    border-radius: 1rem;
    box-shadow: var(--pro-header-shadow-md);
    overflow: hidden;
}

.admin-header-profile-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.05rem;
    color: var(--color-white);
    background: radial-gradient(circle at top right, rgba(var(--color-white-rgb), 0.18), transparent 55%),
    linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary) 100%);
    overflow: hidden;
}

.admin-header-profile-card::before {
    content: "";
    position: absolute;
    inset: -40% -20% auto auto;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(var(--color-white-rgb), 0.08);
    pointer-events: none;
}

.admin-header-profile-card__avatar {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(var(--color-white-rgb), 0.85);
    box-shadow: 0 1px 4px rgba(var(--color-text-rgb), 0.12);
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
}

.admin-header-profile-card__avatar .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.admin-header-profile-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.admin-header-profile-card__name {
    color: var(--color-white);
    font-size: var(--font-size-rem-092);
    font-weight: var(--font-bold);
    line-height: 1.2;
    letter-spacing: -0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 12.5rem;
}

.admin-header-profile-card__email {
    color: rgba(var(--color-white-rgb), 0.82);
    font-size: var(--font-size-rem-074);
    font-weight: var(--font-medium);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 12.5rem;
}

.admin-header-profile-card__role {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    align-self: flex-start;
    margin-top: 0.3rem;
    padding: 0.22rem 0.55rem;
    color: var(--color-white);
    background: rgba(var(--color-white-rgb), 0.18);
    border: 1px solid rgba(var(--color-white-rgb), 0.28);
    border-radius: 999px;
    font-size: var(--font-size-rem-068);
    font-weight: var(--font-semibold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.admin-header-profile-role-dot {
    display: inline-block;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--color-success);
    box-shadow: 0 0 0 2px rgba(var(--color-success-rgb), 0.35);
}

/* Profile dropdown items */
.admin-header--pro .admin-header-profile-dropdown .dropdown-divider {
    margin: 0.35rem 0.6rem;
    border-color: rgba(var(--color-text-rgb), 0.06);
}

.admin-header-profile-action {
    display: flex !important;
    align-items: center;
    gap: 0.7rem;
    margin: 0.18rem 0.5rem;
    padding: 0.55rem 0.7rem;
    border-radius: 0.65rem;
    color: var(--color-text-soft);
    font-size: var(--font-size-rem-086);
    font-weight: var(--font-medium);
    transition: background-color 0.18s ease, color 0.18s ease;
}

.admin-header-profile-action:hover,
.admin-header-profile-action:focus {
    color: var(--pro-header-brand);
    background: rgba(var(--pro-header-brand-rgb), 0.08);
}

.admin-header-profile-action__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    color: var(--color-text-subtle);
    background: var(--color-surface-soft);
    border-radius: 0.55rem;
    transition: background-color 0.18s ease, color 0.18s ease;
    flex: 0 0 auto;
}

.admin-header-profile-action__icon .icon {
    width: 1rem;
    height: 1rem;
}

.admin-header-profile-action:hover .admin-header-profile-action__icon,
.admin-header-profile-action:focus .admin-header-profile-action__icon {
    color: var(--color-white);
    background: linear-gradient(135deg, var(--pro-header-brand) 0%, var(--pro-header-brand-2) 100%);
}

.admin-header-profile-action--danger {
    width: calc(100% - 1rem);
    text-align: start;
    border: 0;
    background: transparent;
    color: var(--color-danger-deep);
}

.admin-header-profile-action--danger:hover,
.admin-header-profile-action--danger:focus {
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-danger) 0%, var(--color-danger-strong) 100%);
}

.admin-header-profile-action--danger:hover .admin-header-profile-action__icon,
.admin-header-profile-action--danger:focus .admin-header-profile-action__icon {
    color: var(--color-danger-deep);
    background: rgba(var(--color-white-rgb), 0.92);
}

/* ----------- Language dropdown (scoped; do not style profile .dropdown-item) ----------- */
.admin-header--pro .admin-header-dropdown.admin-header-dropdown--lang {
    --cui-dropdown-min-width: 0;
    --cui-dropdown-padding-x: 0;
    --cui-dropdown-padding-y: 0;
    --cui-dropdown-item-padding-x: 0;
    width: max-content;
    max-width: min(18rem, calc(100vw - 1.25rem));
    min-width: 0;
    padding: 0.4rem;
    margin-top: 0.45rem;
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.2);
    border-radius: 0.75rem;
    background: var(--color-white);
    box-shadow: 0 8px 22px rgba(var(--color-text-rgb), 0.07);
}

.admin-header--pro .admin-header-dropdown--lang .dropdown-item.admin-header-lang-item {
    gap: 0.6rem;
    justify-content: flex-start;
    width: 100%;
    min-height: 2.25rem;
    margin: 0;
    padding: 0.4rem 0.45rem;
    white-space: normal;
    border-radius: 0.5rem;
    font-size: var(--font-size-rem-0875);
    font-weight: var(--font-medium);
    line-height: 1.25;
    color: var(--color-text-soft);
    transition: background-color 0.16s ease, color 0.16s ease;
}

.admin-header-lang-flag {
    display: block;
    flex: 0 0 auto;
    width: 1.375rem;
    height: 1rem;
    object-fit: cover;
    border-radius: 0.1875rem;
    box-shadow: 0 0 0 1px rgba(var(--color-text-rgb), 0.08);
}

.admin-header-lang-label {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-header--pro .admin-header-dropdown--lang .dropdown-item.admin-header-lang-item.active,
.admin-header--pro .admin-header-dropdown--lang .dropdown-item.admin-header-lang-item:active {
    color: var(--color-white);
    background: linear-gradient(135deg, var(--pro-header-brand) 0%, var(--pro-header-brand-2) 100%);
}

.admin-header--pro .admin-header-dropdown--lang .dropdown-item.admin-header-lang-item.active .admin-header-lang-flag,
.admin-header--pro .admin-header-dropdown--lang .dropdown-item.admin-header-lang-item:active .admin-header-lang-flag {
    box-shadow: 0 0 0 1px rgba(var(--color-white-rgb), 0.45);
}

.admin-header--pro .admin-header-dropdown--lang .dropdown-item.admin-header-lang-item:hover:not(.active),
.admin-header--pro .admin-header-dropdown--lang .dropdown-item.admin-header-lang-item:focus-visible:not(.active) {
    background: rgba(var(--pro-header-brand-rgb), 0.08);
    color: var(--pro-header-brand);
}

/* ----------- Responsive tuning ----------- */
@media (max-width: 1199.98px) {
    .admin-header-search-shortcut {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .admin-header.admin-header--pro {
        --pro-header-control-height: 2.5rem;
        --pro-header-control-radius: 0.78rem;
        --pro-header-control-shadow: 0 4px 12px rgba(var(--color-text-rgb), 0.032);
        --pro-header-control-shadow-hover: 0 6px 16px rgba(var(--color-text-rgb), 0.052);
        min-height: 3.85rem;
    }

    .admin-header--pro .admin-header-bar {
        min-height: 3.85rem;
        gap: 0.55rem;
    }

    .admin-header--pro .admin-header-start {
        gap: 0.55rem;
    }

    .admin-header--pro .admin-header-search-wrap {
        flex: 1 1 auto;
        max-width: none;
    }

    .admin-header--pro .admin-header-sidebar-toggle,
    .admin-header--pro .admin-header-actions .nav-link,
    .admin-header--pro .admin-header-actions .btn.nav-link {
        width: var(--pro-header-control-height);
        height: var(--pro-header-control-height);
        border-radius: var(--pro-header-control-radius);
    }

    .admin-header--pro .admin-header-search-wrap .admin-search-group {
        min-height: var(--pro-header-control-height);
        height: var(--pro-header-control-height);
        border-radius: var(--pro-header-control-radius);
    }

    .admin-header--pro .admin-header-search-wrap .admin-search-addon {
        padding-inline: 0.8rem 0.45rem;
    }

    .admin-header--pro .admin-header-search-wrap .admin-search-input {
        font-size: var(--font-size-rem-088);
        padding-inline-end: 2.5rem;
    }

    .admin-header--pro .admin-header-sidebar-toggle .icon {
        width: 1.22rem;
        height: 1.22rem;
    }

    .admin-header-sidebar-toggle .sidebar-toggle-icon--collapse,
    .admin-header-sidebar-toggle .sidebar-toggle-icon--expand {
        display: none;
    }

    .admin-header-sidebar-toggle .sidebar-toggle-icon--menu {
        display: inline-flex;
    }

    .admin-header--pro .admin-header-profile-trigger {
        padding: 0.2rem;
        border-radius: 999px;
    }

    .admin-header--pro .admin-header-profile-avatar {
        width: 2rem;
        height: 2rem;
    }

    .admin-header-divider {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .admin-header--pro .admin-header-actions .nav-link,
    .admin-header--pro .admin-header-actions .btn.nav-link,
    .admin-header--pro .admin-header-sidebar-toggle,
    .admin-header--pro .admin-header-profile-trigger,
    .admin-header-profile-chevron {
        transition: none;
    }

    .admin-header-profile-status {
        animation: none;
    }
}

/* =============================================================
   Premium Pro Notifications
   - Self-contained counter (no pulse/glow) that stays readable on the bell
   - Refined dropdown header, items, avatars, footer, empty state
   ============================================================= */
.admin-header--pro .admin-header-actions .admin-notification-trigger {
    overflow: visible;
}

.admin-notification-trigger__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 0;
}

.admin-notification-trigger.has-unread .admin-notification-trigger__icon {
    transform-origin: 50% 0%;
    animation: proHeaderBellWiggle 4s ease-in-out infinite;
}

@keyframes proHeaderBellWiggle {
    0%, 88%, 100% {
        transform: rotate(0);
    }

    91% {
        transform: rotate(-12deg);
    }

    94% {
        transform: rotate(10deg);
    }

    97% {
        transform: rotate(-6deg);
    }
}

/* Counter badge — compact pill, no glow; stays readable on the bell. */
.admin-notification-counter {
    position: absolute;
    top: 1px;
    right: 1px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.125rem;
    height: 1.125rem;
    padding: 0 0.28rem;
    color: var(--color-white);
    background: var(--color-danger-strong);
    border: 2px solid var(--color-white);
    border-radius: 999px;
    font-family: inherit;
    font-size: var(--font-size-rem-0625);
    font-weight: var(--font-bold);
    line-height: 1;
    letter-spacing: 0;
    box-shadow: none;
    pointer-events: none;
    z-index: 2;
}

/* When trigger button is in the open/active gradient state, swap halo border to match. */
.admin-header--pro .admin-header-actions .admin-notification-trigger[aria-expanded="true"] .admin-notification-counter {
    border-color: var(--color-primary);
}

/* ----------- Dropdown shell ----------- */
.notification-dropdown.notification-dropdown--pro {
    --notif-2: 0.25rem;
    --notif-3: 0.5rem;
    --notif-4: 0.65rem;
    --notif-5: 0.85rem;
    --notif-shell-radius: 1rem;
    --notif-item-radius: 0.75rem;
    --notif-track-bg: linear-gradient(180deg, var(--color-surface-alt) 0%, var(--color-surface-soft) 100%);
    width: 22.25rem;
    max-width: min(22.25rem, calc(100vw - 1.25rem));
    min-width: 20.25rem;
    margin-top: 0.5rem;
    padding: 0;
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.22);
    border-radius: var(--notif-shell-radius);
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-surface-alt) 100%);
    box-shadow: 0 20px 48px rgba(var(--color-text-rgb), 0.12), 0 8px 18px rgba(var(--color-text-rgb), 0.06);
    overflow: hidden;
    font-size: var(--font-size-rem-0875);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
}

/* ----------- Dropdown header ----------- */
.notification-dropdown--pro .notification-dropdown__head {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--notif-3);
    padding: 0.65rem 0.75rem;
    background:
        radial-gradient(circle at 12% 18%, rgba(var(--color-primary-rgb), 0.13), transparent 28%),
        linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.08) 0%, rgba(var(--color-white-rgb), 0.96) 68%);
    border-bottom: 1px solid rgba(var(--color-text-rgb), 0.06);
}

.notification-dropdown--pro .notification-dropdown__head-icon {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.7rem;
    color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.1);
    border: 1px solid rgba(var(--color-primary-rgb), 0.16);
    box-shadow: inset 0 1px 0 rgba(var(--color-white-rgb), 0.72);
}

.notification-dropdown--pro .notification-dropdown__head-icon .icon {
    width: 0.95rem;
    height: 0.95rem;
}

.notification-dropdown--pro .notification-dropdown__head-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.notification-dropdown--pro .notification-dropdown__eyebrow {
    color: var(--color-primary);
    font-size: var(--font-size-rem-058);
    font-weight: var(--font-extrabold);
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.notification-dropdown--pro .notification-dropdown__title {
    color: var(--color-text);
    font-size: var(--font-size-rem-08125);
    font-weight: var(--font-bold);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.notification-dropdown--pro .notification-dropdown__subtitle {
    color: var(--color-text-muted);
    font-size: var(--font-size-rem-0625);
    font-weight: var(--font-medium);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 13.25rem;
}

.notification-dropdown--pro .notification-dropdown__count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary) 100%);
    border-radius: 999px;
    font-size: var(--font-size-rem-072);
    font-weight: var(--font-bold);
    line-height: 1;
    box-shadow: none;
    flex: 0 0 auto;
}

.notification-dropdown--pro .notification-dropdown__status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-height: 1.4rem;
    padding: 0.18rem 0.4rem;
    border-radius: 999px;
    color: var(--color-text-subtle);
    background: var(--color-white);
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.24);
    font-size: var(--font-size-rem-0625);
    font-weight: var(--font-semibold);
    white-space: nowrap;
}

.notification-dropdown--pro .notification-dropdown__status.is-live {
    color: var(--color-primary);
    border-color: rgba(var(--color-primary-rgb), 0.18);
}

.notification-dropdown--pro .notification-dropdown__status-dot {
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: var(--color-danger);
    box-shadow: 0 0 0 0.2rem rgba(var(--color-danger-rgb), 0.1);
}

/* ----------- Empty state ----------- */
.notification-dropdown--pro .notification-dropdown__empty {
    margin: 0.6rem;
    min-height: 8.5rem;
    padding: 1.1rem 0.9rem;
    border: 1px solid rgba(var(--color-primary-rgb), 0.1);
    border-radius: 0.85rem;
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-surface-alt) 100%);
    box-shadow: none;
}

.notification-dropdown--pro .notification-dropdown__empty .admin-not-found__visual {
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0.45rem;
}

.notification-dropdown--pro .notification-dropdown__empty .admin-not-found__icon {
    color: var(--color-primary);
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.12) 0%, rgba(var(--color-primary-rgb), 0.08) 100%);
}

.notification-dropdown--pro .notification-dropdown__empty .admin-not-found__title {
    font-size: var(--font-size-rem-08125);
    line-height: 1.2;
}

.notification-dropdown--pro .notification-dropdown__empty .admin-not-found__message {
    max-width: 14rem;
    font-size: var(--font-size-rem-072);
    line-height: 1.35;
}

/* ----------- List ----------- */
.notification-dropdown--pro .notification-dropdown__list {
    max-height: min(19.5rem, calc(100vh - 10rem));
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.5rem;
    background: var(--notif-track-bg);
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--color-primary-rgb), 0.28) transparent;
}

.notification-dropdown--pro .notification-dropdown__list::-webkit-scrollbar {
    width: 0.3rem;
}

.notification-dropdown--pro .notification-dropdown__list::-webkit-scrollbar-thumb {
    background: rgba(var(--color-primary-rgb), 0.28);
    border-radius: 999px;
}

.notification-dropdown--pro .notification-dropdown__list::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--color-primary-rgb), 0.55);
}

/* ----------- Item: compact admin-standard rows on a muted track (--notif-* tokens on shell) ----------- */
.notification-dropdown-item.notification-dropdown-item--pro {
    position: relative;
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    grid-template-rows: auto;
    column-gap: var(--notif-3);
    align-items: start;
    margin: 0 0 0.4rem;
    padding: 0.55rem 0.6rem;
    border-radius: var(--notif-item-radius);
    color: var(--color-text-soft);
    background: var(--color-white);
    border: 1px solid rgba(var(--color-text-rgb), 0.08);
    box-shadow: 0 1px 2px rgba(var(--color-text-rgb), 0.025);
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    white-space: normal;
    text-decoration: none;
}

.notification-dropdown-item.notification-dropdown-item--pro:last-child {
    margin-bottom: 0;
}

.notification-dropdown-item.notification-dropdown-item--pro:hover,
.notification-dropdown-item.notification-dropdown-item--pro:focus {
    background: var(--color-white);
    border-color: rgba(var(--color-primary-rgb), 0.28);
    box-shadow: 0 10px 22px rgba(var(--color-text-rgb), 0.06);
    transform: translateY(-1px);
    color: var(--color-text-soft);
}

.notification-dropdown-item--primary {
    --notif-tone: var(--color-primary);
    --notif-ring: rgba(var(--color-primary-rgb), 0.35);
}

.notification-dropdown-item--success {
    --notif-tone: var(--color-success);
    --notif-ring: rgba(var(--color-success-rgb), 0.38);
}

.notification-dropdown-item--danger {
    --notif-tone: var(--color-danger);
    --notif-ring: rgba(var(--color-danger-rgb), 0.38);
}

.notification-dropdown-item--info {
    --notif-tone: var(--color-info);
    --notif-ring: rgba(var(--color-info-rgb), 0.38);
}

/* ----------- Item avatar ----------- */
.notification-dropdown-item--pro .notification-dropdown-item__avatar {
    position: relative;
    grid-column: 1;
    grid-row: 1 / -1;
    width: 2rem;
    height: 2rem;
}

.notification-dropdown-item--pro .notification-avatar-img {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: var(--font-bold);
    font-size: var(--font-size-rem-072);
    line-height: 1;
    letter-spacing: 0;
    box-shadow: 0 0 0 2px var(--notif-ring, rgba(var(--color-primary-rgb), 0.35));
}

.notification-avatar-img--fallback.notification-avatar-img--primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary) 100%);
}

.notification-avatar-img--fallback.notification-avatar-img--success {
    background: linear-gradient(135deg, var(--color-success) 0%, var(--color-success-strong) 100%);
}

.notification-avatar-img--fallback.notification-avatar-img--danger {
    background: linear-gradient(135deg, var(--color-danger) 0%, var(--color-danger-strong) 100%);
}

.notification-avatar-img--fallback.notification-avatar-img--info {
    background: linear-gradient(135deg, var(--color-info) 0%, var(--color-info-strong) 100%);
}

.notification-dropdown-item__dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 50%;
    background: var(--notif-tone, var(--color-primary));
    border: 2px solid var(--color-white);
    box-shadow: none;
}

/* ----------- Text column ----------- */
.notification-dropdown-item--pro .notification-dropdown-item__main {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.notification-dropdown-item__title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    width: 100%;
    min-width: 0;
}

.notification-dropdown-item__time-badge {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    margin-left: auto;
    max-width: 6rem;
    padding: 0;
    border-radius: 999px;
    font-size: var(--font-size-rem-0625);
    font-weight: var(--font-semibold);
    line-height: 1.15;
    color: var(--color-text-subtle);
    background: transparent;
    border: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-dropdown-item--pro .notification-dropdown-item__title {
    min-width: 0;
    color: var(--color-text);
    font-size: var(--font-size-rem-078);
    font-weight: var(--font-semibold);
    line-height: 1.18;
    letter-spacing: -0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    max-width: 100%;
}

.notification-dropdown-item--pro .notification-dropdown-item__message {
    color: var(--color-text-subtle);
    font-size: var(--font-size-rem-06875);
    font-weight: var(--font-normal);
    line-height: 1.28;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    white-space: normal;
}

.notification-dropdown-item--pro .notification-dropdown-item__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    margin-top: 0;
    padding-top: 0.3rem;
    border-top: 1px solid rgba(var(--color-text-rgb), 0.05);
    color: var(--color-text-muted);
    font-size: var(--font-size-rem-0625);
    font-weight: var(--font-medium);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.notification-dropdown-item--pro .notification-dropdown-item__sender {
    color: var(--color-text-subtle);
    font-weight: var(--font-semibold);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.notification-dropdown-item--pro .notification-dropdown-item__sender::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: var(--notif-2);
    margin-bottom: 1px;
    border-radius: 50%;
    background: var(--notif-tone, var(--color-primary));
    vertical-align: middle;
}

.notification-dropdown-item--pro .notification-dropdown-item__type {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    max-width: 5.75rem;
    min-height: 1rem;
    padding: 0.12rem 0.38rem;
    border-radius: 999px;
    color: var(--notif-tone, var(--color-primary));
    background: rgba(var(--color-primary-rgb), 0.08);
    border: 1px solid var(--notif-ring, rgba(var(--color-primary-rgb), 0.2));
    font-size: var(--font-size-rem-058);
    font-weight: var(--font-bold);
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ----------- Footer ----------- */
.notification-dropdown--pro .notification-dropdown__footer {
    display: flex;
    gap: var(--notif-3);
    padding: 0.5rem 0.6rem 0.6rem;
    background: linear-gradient(180deg, var(--color-surface-alt) 0%, var(--color-surface-soft) 100%);
    border-top: 1px solid rgba(var(--color-text-rgb), 0.07);
}

.notification-dropdown__action {
    flex: 1 1 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: var(--notif-2);
    min-height: 1.85rem;
    padding: 0.35rem 0.55rem;
    border-radius: 0.5rem;
    font-size: var(--font-size-rem-06875);
    font-weight: var(--font-semibold);
    line-height: 1.15;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease, transform 0.18s ease;
    text-decoration: none;
    white-space: nowrap;
}

.notification-dropdown__action-icon,
.notification-dropdown__action .icon {
    flex-shrink: 0;
    display: block;
    width: 1rem;
    height: 1rem;
    color: inherit;
    opacity: 0.95;
}

.notification-dropdown__action--ghost {
    color: var(--color-text-soft);
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-surface-alt) 100%);
    border-color: rgba(var(--color-primary-rgb), 0.18);
    box-shadow: 0 1px 2px rgba(var(--color-text-rgb), 0.05);
}

.notification-dropdown__action--ghost:hover,
.notification-dropdown__action--ghost:focus {
    color: var(--color-success-deep);
    background: linear-gradient(180deg, var(--color-palette-ecfdf5) 0%, var(--color-palette-d1fae5) 100%);
    border-color: var(--color-palette-6ee7b7);
    box-shadow: 0 6px 14px rgba(var(--color-success-rgb), 0.18);
    transform: translateY(-1px);
}

.notification-dropdown__action--primary {
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary) 100%);
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(var(--color-primary-rgb), 0.28);
}

.notification-dropdown__action--primary .notification-dropdown__action-icon,
.notification-dropdown__action--primary .icon {
    color: var(--color-white);
    opacity: 1;
}

.notification-dropdown__action--primary:hover,
.notification-dropdown__action--primary:focus {
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-primary-hover) 0%, var(--color-primary-hover) 100%);
    box-shadow: 0 12px 22px rgba(var(--color-primary-rgb), 0.36);
    transform: translateY(-1px);
}

/* ----------- Responsive ----------- */
@media (max-width: 575.98px) {
    .notification-dropdown.notification-dropdown--pro {
        position: fixed !important;
        top: 4.25rem !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: calc(100vw - 1.25rem) !important;
        max-width: none !important;
        min-width: 0 !important;
    }

    .notification-dropdown--pro .notification-dropdown__list {
        max-height: 60vh;
    }

    .notification-dropdown--pro .notification-dropdown__subtitle {
        max-width: 11rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .admin-notification-trigger.has-unread .admin-notification-trigger__icon {
        animation: none;
    }

    .notification-dropdown-item.notification-dropdown-item--pro:hover,
    .notification-dropdown-item.notification-dropdown-item--pro:focus {
        transform: none;
    }
}

/* Dashboard cards: soft border with very light shadow. */
.admin-dashboard {
    --dashboard-card-border: rgba(var(--color-text-rgb), 0.08);
    --dashboard-card-shadow: 0 1px 2px rgba(var(--color-text-rgb), 0.016), 0 4px 10px rgba(var(--color-text-rgb), 0.02);
    --dashboard-card-shadow-hover: 0 1px 2px rgba(var(--color-text-rgb), 0.02), 0 5px 12px rgba(var(--color-text-rgb), 0.028);
}

.admin-dashboard .dashboard-panel,
.admin-dashboard .dashboard-feed-card,
.admin-dashboard .dashboard-feed-card--premium,
.admin-dashboard .dashboard-kpi-card,
.admin-dashboard .wallet-summary-card,
.admin-dashboard .dashboard-queue__panel,
.admin-dashboard .dashboard-queue__aside,
.admin-dashboard .dashboard-queue__stat,
.admin-dashboard .dashboard-queue__item,
.admin-dashboard .chart-stat-card,
.admin-dashboard .dashboard-empty-state {
    border: 1px solid var(--dashboard-card-border) !important;
    box-shadow: var(--dashboard-card-shadow) !important;
}

.admin-dashboard .dashboard-panel:hover,
.admin-dashboard .dashboard-feed-card:hover,
.admin-dashboard .dashboard-feed-card--premium:hover,
.admin-dashboard .dashboard-kpi-card:hover,
.admin-dashboard .wallet-summary-card:hover,
.admin-dashboard .dashboard-queue__item:hover,
.admin-dashboard .dashboard-queue__item:focus-visible,
.admin-dashboard .chart-stat-card:hover {
    box-shadow: var(--dashboard-card-shadow-hover) !important;
    transform: none !important;
}

/* ============================================================
   Admin · Virtual Card Providers listing
   See resources/views/backend/virtual_card/provider.blade.php
   ============================================================ */
.vcp-table {
    --vcp-line: var(--color-border);
    --vcp-muted: var(--color-text-muted);
    --vcp-ink: var(--color-text);
}

.vcp-table .table {
    border-collapse: separate;
    border-spacing: 0;
}

.vcp-table .table > :not(caption) > * > * {
    vertical-align: middle;
}

.vcp-table thead th {
    text-transform: uppercase;
    letter-spacing: .6px;
    font-size: var(--font-size-px-11);
    font-weight: var(--font-bold);
    color: var(--vcp-muted);
    background: var(--color-surface-alt);
    border-bottom: 1px solid var(--vcp-line);
}

.vcp-table tbody tr {
    transition: background .15s;
}

.vcp-table tbody tr:hover {
    background: var(--color-surface-alt);
}

.vcp-provider {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
}

.vcp-provider__logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--color-white);
    border: 1px solid var(--vcp-line);
    display: grid;
    place-items: center;
    padding: 4px;
    flex-shrink: 0;
}

.vcp-provider__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.vcp-provider__meta {
    min-width: 0;
}

.vcp-provider__name {
    font-weight: var(--font-bold);
    color: var(--vcp-ink);
}

.vcp-provider__code {
    font-family: var(--font-mono);
    font-size: var(--font-size-px-11);
    color: var(--vcp-muted);
}

.vcp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.vcp-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--color-surface-soft);
    color: var(--color-text-subtle);
    font-size: var(--font-size-px-105);
    font-weight: var(--font-semibold);
    letter-spacing: .2px;
}

.vcp-chip--green {
    background: var(--color-palette-e7f8f1);
    color: var(--color-success-deep);
}

.vcp-chip--blue {
    background: var(--color-palette-eef3fe);
    color: var(--color-primary);
}

.vcp-chip--violet {
    background: var(--color-palette-f2eeff);
    color: var(--color-palette-5b3fd9);
}

.vcp-chip--red {
    background: var(--color-palette-fdecec);
    color: var(--color-danger-deep);
}

.vcp-chip--muted {
    background: var(--color-surface-soft);
    color: var(--color-text-faint);
}

.vcp-fee {
    font-weight: var(--font-bold);
    color: var(--vcp-ink);
}

.vcp-fee small {
    display: block;
    font-weight: var(--font-medium);
    font-size: var(--font-size-px-11);
    color: var(--vcp-muted);
}

.vcp-actions {
    display: inline-flex;
    gap: 6px;
}

.vcp-actions .btn {
    padding: 6px 10px;
    font-size: var(--font-xs);
}

.vcp-actions .btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-grid;
    place-items: center;
}

.vcp-gateway--missing {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--color-danger-deep);
    font-size: var(--font-size-px-11);
    font-weight: var(--font-semibold);
}

/* Premium provider grid overrides. */
.vcp-hero,
.vcp-board {
    --vcp-line: var(--color-border-soft);
    --vcp-muted: var(--color-text-muted);
    --vcp-soft: var(--color-surface-alt);
    --vcp-ink: var(--color-text);
    --vcp-blue: var(--color-primary);
    --vcp-green: var(--color-success-deep);
}

.vcp-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 18px;
    overflow: hidden;
    padding: 24px;
    border: 1px solid rgba(var(--color-primary-rgb), 0.14);
    border-radius: 18px;
    color: var(--color-white);
    background: linear-gradient(135deg, rgba(var(--color-text-rgb), 0.96), rgba(var(--color-rgb-34-52-83), 0.94));
    box-shadow: 0 16px 45px rgba(var(--color-text-rgb), 0.12);
}

.vcp-hero::after {
    position: absolute;
    top: -90px;
    right: -70px;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(var(--color-white-rgb), 0.18);
    border-radius: 999px;
    background: rgba(var(--color-success-rgb), 0.2);
    content: "";
}

.vcp-hero__content,
.vcp-hero__stats,
.vcp-hero__action {
    position: relative;
    z-index: 1;
}

.vcp-hero__content {
    min-width: 0;
}

.vcp-eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--color-success);
    font-size: var(--font-size-px-11);
    font-weight: var(--font-extrabold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vcp-hero h3 {
    margin: 0;
    font-size: var(--font-size-px-26);
    font-weight: var(--font-extrabold);
    letter-spacing: 0;
}

.vcp-hero p {
    max-width: 720px;
    margin: 8px 0 0;
    color: rgba(var(--color-white-rgb), 0.76);
    font-size: var(--font-base);
}

.vcp-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(86px, 1fr));
    gap: 8px;
}

.vcp-stat {
    min-width: 86px;
    padding: 12px 14px;
    border: 1px solid rgba(var(--color-white-rgb), 0.14);
    border-radius: 12px;
    background: rgba(var(--color-white-rgb), 0.08);
}

.vcp-stat span {
    display: block;
    color: rgba(var(--color-white-rgb), 0.68);
    font-size: var(--font-size-px-11);
    font-weight: var(--font-bold);
    text-transform: uppercase;
}

.vcp-stat strong {
    display: block;
    margin-top: 4px;
    color: var(--color-white);
    font-size: var(--font-3xl);
    line-height: 1;
}

.vcp-hero__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    white-space: nowrap;
    font-weight: var(--font-bold);
}

.vcp-board {
    padding: 0;
}

.vcp-board__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.vcp-board__head h5 {
    margin: 0;
    color: var(--vcp-ink);
    font-size: var(--font-xl);
    font-weight: var(--font-extrabold);
}

.vcp-board__head p {
    margin: 4px 0 0;
    color: var(--vcp-muted);
    font-size: var(--font-sm);
}

.vcp-count {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--color-palette-eef3ff);
    color: var(--vcp-blue);
    font-size: var(--font-xs);
    font-weight: var(--font-extrabold);
    white-space: nowrap;
}

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

.vcp-card {
    display: flex;
    min-width: 0;
    min-height: 100%;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--vcp-line);
    border-radius: 16px;
    background: var(--color-white);
    box-shadow: 0 1px 2px rgba(var(--color-text-rgb), 0.02), 0 10px 26px rgba(var(--color-text-rgb), 0.04);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.vcp-card:hover {
    border-color: rgba(var(--color-primary-rgb), 0.24);
    box-shadow: 0 12px 32px rgba(var(--color-text-rgb), 0.08);
    transform: translateY(-1px);
}

.vcp-card__top,
.vcp-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.vcp-card .vcp-provider {
    min-width: 0;
}

.vcp-card .vcp-provider__logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
}

.vcp-card .vcp-provider__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vcp-status {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: var(--font-size-px-11);
    font-weight: var(--font-extrabold);
}

.vcp-status span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
}

.vcp-status--active {
    background: var(--color-palette-e8f8f1);
    color: var(--vcp-green);
}

.vcp-status--active span {
    background: var(--vcp-green);
}

.vcp-status--inactive {
    background: var(--color-palette-fdecec);
    color: var(--color-danger-deep);
}

.vcp-status--inactive span {
    background: var(--color-danger-deep);
}

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

.vcp-card__summary > div {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--vcp-line);
    border-radius: 12px;
    background: var(--vcp-soft);
}

.vcp-card__summary span,
.vcp-card__summary small,
.vcp-section__label {
    display: block;
    color: var(--vcp-muted);
    font-size: var(--font-size-px-11);
    font-weight: var(--font-bold);
    text-transform: uppercase;
}

.vcp-card__summary strong {
    display: block;
    overflow: hidden;
    margin-top: 4px;
    color: var(--vcp-ink);
    font-size: var(--font-xl);
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vcp-card__summary small {
    margin-top: 3px;
    text-transform: none;
}

.vcp-section {
    display: grid;
    gap: 8px;
}

.vcp-card .vcp-chips {
    gap: 6px;
}

.vcp-chips--capabilities {
    max-height: 64px;
    overflow: auto;
}

.vcp-card .vcp-chip {
    min-height: 25px;
    padding: 4px 9px;
}

.vcp-card__footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--vcp-line);
}

.vcp-card__footer .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 7px 12px;
    font-size: var(--font-xs);
    font-weight: var(--font-bold);
    white-space: nowrap;
}

.vcp-icon-btn {
    min-width: 106px;
}

.vcp-empty {
    grid-column: 1 / -1;
    padding: 48px 24px;
    border: 1px dashed var(--vcp-line);
    border-radius: 16px;
    color: var(--vcp-muted);
    text-align: center;
    background: var(--vcp-soft);
}

.vcp-empty i {
    margin-bottom: 12px;
    font-size: var(--font-size-px-36);
}

.vcp-empty h5 {
    margin: 0;
    color: var(--vcp-ink);
    font-weight: var(--font-extrabold);
}

.vcp-empty p {
    margin: 6px 0 0;
}

@media (max-width: 1199.98px) {
    .vcp-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .vcp-hero__stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .vcp-hero__action {
        justify-self: start;
    }

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

@media (max-width: 767.98px) {
    .vcp-hero {
        padding: 18px;
        border-radius: 14px;
    }

    .vcp-hero h3 {
        font-size: var(--font-size-px-22);
    }

    .vcp-hero__stats,
    .vcp-grid,
    .vcp-card__summary {
        grid-template-columns: 1fr;
    }

    .vcp-board__head,
    .vcp-card__top,
    .vcp-card__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .vcp-count,
    .vcp-card__footer .btn,
    .vcp-icon-btn {
        width: 100%;
    }
}

/* ============================================================
   Admin - Payment Gateway Credential Modal
   ============================================================ */
.pgm-modal .modal-dialog {
    max-width: 760px;
}

.pgm-modal__content {
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: var(--color-surface-alt);
    box-shadow: 0 24px 70px rgba(var(--color-text-rgb), 0.24);
}

.pgm-modal__header {
    align-items: flex-start;
    border: 0;
    padding: 20px 22px;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-palette-223454) 100%);
}

.pgm-modal__title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.pgm-modal__icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    place-items: center;
    border: 1px solid rgba(var(--color-white-rgb), 0.16);
    border-radius: 12px;
    background: rgba(var(--color-white-rgb), 0.1);
}

.pgm-modal__title h2 {
    margin: 0;
    color: var(--color-white);
    font-size: var(--font-xl);
    font-weight: var(--font-extrabold);
    letter-spacing: 0;
}

.pgm-modal__title p {
    margin: 4px 0 0;
    color: rgba(var(--color-white-rgb), 0.7);
    font-size: var(--font-sm);
}

.pgm-modal__close {
    margin-top: 3px;
    opacity: 0.86;
}

.pgm-modal__body {
    max-height: min(76vh, 760px);
    overflow: auto;
    padding: 18px;
}

.pgm-form {
    display: grid;
    gap: 14px;
}

.pgm-provider,
.pgm-panel {
    border: 1px solid var(--color-border-soft);
    border-radius: 16px;
    background: var(--color-white);
    box-shadow: 0 1px 2px rgba(var(--color-text-rgb), 0.02), 0 10px 28px rgba(var(--color-text-rgb), 0.04);
}

.pgm-provider {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
}

.pgm-provider__logo {
    display: grid;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    place-items: center;
    padding: 7px;
    border: 1px solid var(--color-border-soft);
    border-radius: 15px;
    background: var(--color-surface-alt);
}

.pgm-provider__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pgm-provider__meta {
    min-width: 0;
}

.pgm-provider__meta span,
.pgm-provider__meta small,
.pgm-panel__head p,
.pgm-help,
.pgm-switch-row__label small {
    color: var(--color-text-muted);
    font-size: var(--font-xs);
    font-weight: var(--font-semibold);
}

.pgm-provider__meta span {
    display: block;
    text-transform: uppercase;
}

.pgm-provider__meta strong {
    display: block;
    overflow: hidden;
    color: var(--color-text);
    font-size: var(--font-xl);
    font-weight: var(--font-extrabold);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pgm-provider__meta small {
    display: block;
    font-family: var(--font-mono);
}

.pgm-provider__badge {
    margin-left: auto;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: var(--font-size-px-11);
    font-weight: var(--font-extrabold);
    white-space: nowrap;
}

.pgm-provider__badge--active {
    background: var(--color-palette-e8f8f1);
    color: var(--color-success-deep);
}

.pgm-provider__badge--inactive {
    background: var(--color-palette-fdecec);
    color: var(--color-danger-deep);
}

.pgm-panel {
    padding: 16px;
}

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

.pgm-panel__head h3 {
    margin: 0;
    color: var(--color-text);
    font-size: var(--font-md);
    font-weight: var(--font-extrabold);
}

.pgm-panel__head p {
    margin: 4px 0 0;
    line-height: 1.45;
}

.pgm-panel__pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--color-palette-eef3ff);
    color: var(--color-primary);
    font-size: var(--font-size-px-11);
    font-weight: var(--font-extrabold);
    white-space: nowrap;
}

.pgm-panel__pill--success {
    background: var(--color-palette-e8f8f1);
    color: var(--color-success-deep);
}

.pgm-panel--webhook {
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-surface-alt) 100%);
}

.pgm-fields {
    display: grid;
    gap: 12px;
}

.pgm-field .form-label {
    margin-bottom: 7px;
    color: var(--color-text-soft);
    font-size: var(--font-xs);
    font-weight: var(--font-extrabold);
}

.pgm-input {
    min-height: 42px;
    border-color: var(--color-border-strong);
    border-radius: 10px !important;
    color: var(--color-text);
    font-weight: var(--font-semibold);
}

.pgm-input:focus {
    border-color: rgba(var(--color-primary-rgb), 0.58) !important;
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1) !important;
}

.pgm-secret-field {
    position: relative;
}

.pgm-secret-field__icon {
    position: absolute;
    top: 50%;
    left: 12px;
    z-index: 4;
    color: var(--color-text-faint);
    transform: translateY(-50%);
}

.pgm-secret-field .pgm-input {
    padding-left: 38px;
}

.pgm-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 58px;
    padding: 12px 14px;
    border: 1px solid var(--color-border-soft);
    border-radius: 13px;
    background: var(--color-surface-alt);
}

.pgm-switch-row--status {
    background: var(--color-white);
}

.pgm-switch-row__label {
    min-width: 0;
    cursor: pointer;
}

.pgm-switch-row__label span {
    display: block;
    color: var(--color-text);
    font-weight: var(--font-extrabold);
}

.pgm-switch-row__label small {
    display: block;
    margin-top: 2px;
}

.pgm-switch {
    width: 48px !important;
    height: 25px !important;
    flex-shrink: 0;
    margin: 0 !important;
    cursor: pointer;
}

.pgm-copy-group .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    border-radius: 0 10px 10px 0 !important;
}

.pgm-help {
    display: block;
    margin-top: 8px;
}

.pgm-form__footer {
    position: sticky;
    bottom: -18px;
    display: flex;
    justify-content: flex-end;
    margin: 0 -18px -18px;
    padding: 14px 18px;
    border-top: 1px solid var(--color-border-soft);
    background: rgba(var(--color-rgb-248-250-252), 0.92);
    backdrop-filter: blur(10px);
}

.pgm-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 18px;
    border-radius: 10px;
    font-weight: var(--font-extrabold);
}

@media (max-width: 575.98px) {
    .pgm-modal .modal-dialog {
        margin: 0.5rem;
    }

    .pgm-modal__header,
    .pgm-modal__body {
        padding: 16px;
    }

    .pgm-provider,
    .pgm-panel__head,
    .pgm-switch-row {
        align-items: stretch;
        flex-direction: column;
    }

    .pgm-provider__badge {
        margin-left: 0;
        text-align: center;
    }

    .pgm-switch {
        align-self: flex-start;
    }

    .pgm-form__footer {
        bottom: -16px;
        margin: 0 -16px -16px;
        padding: 12px 16px;
    }

    .pgm-submit {
        width: 100%;
    }
}

/* ============================================================
   Admin - Virtual Card Module Shared Pages
   ============================================================ */
.vc-admin-shell {
    background: var(--color-white);
    box-shadow: 0 1px 2px rgba(var(--color-text-rgb), 0.02), 0 10px 28px rgba(var(--color-text-rgb), 0.04);
}

.vc-admin-nav {
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--color-border-soft);
    border-radius: 14px;
    background: var(--color-surface-alt);
}

.vc-admin-nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 10px;
    color: var(--color-primary);
    font-weight: var(--font-medium);
    transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.vc-admin-nav .nav-link:hover {
    background: var(--color-palette-eef3ff);
    color: var(--color-primary-deep);
}

.vc-admin-nav .nav-link.active {
    color: var(--color-white);
    font-weight: var(--font-semibold);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-deep) 100%);
    box-shadow: 0 10px 22px rgba(var(--color-primary-rgb), 0.22);
}

.vc-admin-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 16px;
    overflow: hidden;
    padding: 22px 24px;
    border: 1px solid rgba(var(--color-primary-rgb), 0.14);
    border-radius: 18px;
    color: var(--color-white);
    background: linear-gradient(135deg, rgba(var(--color-text-rgb), 0.96), rgba(var(--color-rgb-34-52-83), 0.94));
    box-shadow: 0 16px 45px rgba(var(--color-text-rgb), 0.12);
}

.vc-admin-hero__eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--color-success);
    font-size: var(--font-size-px-11);
    font-weight: var(--font-extrabold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vc-admin-hero h3 {
    margin: 0;
    color: var(--color-white);
    font-size: var(--font-size-px-25);
    font-weight: var(--font-extrabold);
    letter-spacing: 0;
}

.vc-admin-hero p {
    max-width: 720px;
    margin: 8px 0 0;
    color: rgba(var(--color-white-rgb), 0.76);
    font-size: var(--font-base);
}

.vc-admin-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vc-admin-hero__stats > div {
    min-width: 96px;
    padding: 12px 14px;
    border: 1px solid rgba(var(--color-white-rgb), 0.14);
    border-radius: 12px;
    background: rgba(var(--color-white-rgb), 0.08);
}

.vc-admin-hero__stats span {
    display: block;
    color: rgba(var(--color-white-rgb), 0.68);
    font-size: var(--font-size-px-11);
    font-weight: var(--font-bold);
    text-transform: uppercase;
}

.vc-admin-hero__stats strong {
    display: block;
    margin-top: 4px;
    color: var(--color-white);
    font-size: var(--font-3xl);
    line-height: 1;
}

.vc-admin-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    white-space: nowrap;
    font-weight: var(--font-extrabold);
}

.vc-admin-board {
    padding: 0;
}

.vc-admin-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid var(--color-border-soft);
    border-radius: 14px;
    background: var(--color-surface-alt);
}

.vc-admin-toolbar form,
form.vc-admin-toolbar {
    width: 100%;
    justify-content: flex-end;
}

.vc-admin-toolbar .form-control,
.vc-admin-toolbar .form-select {
    min-height: 40px;
    border-color: var(--color-border-strong);
    border-radius: 10px;
    font-weight: var(--font-semibold);
}

.vc-admin-toolbar .btn {
    border-radius: 10px;
}

.vc-admin-table {
    overflow: hidden;
    border: 1px solid var(--color-border-soft);
    border-radius: 16px;
    background: var(--color-white);
}

.vc-admin-table .table {
    margin-bottom: 0;
}

.vc-admin-table thead th {
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border-soft);
    background: var(--color-surface-alt);
    color: var(--color-text-muted);
    font-size: var(--font-size-px-11);
    font-weight: var(--font-extrabold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.vc-admin-table tbody td {
    padding: 15px 16px;
    border-color: var(--color-border-soft);
    color: var(--color-text-soft);
}

.vc-admin-table tbody tr {
    transition: background-color 0.16s ease;
}

.vc-admin-table tbody tr:hover {
    background: var(--color-surface-alt);
}

.vc-admin-user {
    display: flex;
    min-width: 220px;
    align-items: center;
    gap: 11px;
}

.vc-admin-user img {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 999px;
    box-shadow: 0 0 0 3px var(--color-surface-soft);
    object-fit: cover;
}

.vc-admin-user a,
.vc-admin-user .fw-semibold {
    display: block;
    color: var(--color-text);
    font-weight: var(--font-extrabold);
    text-decoration: none;
}

.vc-admin-user span:not(.badge) {
    display: block;
    color: var(--color-text-muted);
    font-size: var(--font-xs);
    font-weight: var(--font-semibold);
}

.vc-admin-chip {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 9px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-surface-soft);
    color: var(--color-text-subtle);
    font-size: var(--font-size-px-11);
    font-weight: var(--font-extrabold);
}

.vc-admin-chip--success {
    border-color: var(--color-palette-cdeee0);
    background: var(--color-palette-e8f8f1);
    color: var(--color-success-deep);
}

.vc-admin-action,
.vc-admin-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 7px 12px;
    border-radius: 10px;
    font-size: var(--font-xs);
    font-weight: var(--font-extrabold);
    white-space: nowrap;
}

.vc-admin-empty {
    display: grid;
    place-items: center;
    min-height: 180px;
    padding: 32px 20px;
    color: var(--color-text-muted);
    text-align: center;
}

.vc-admin-empty i {
    margin-bottom: 12px;
    color: var(--color-text-faint);
    font-size: var(--font-size-px-36);
}

.vc-admin-empty h5 {
    margin: 0;
    color: var(--color-text-soft);
    font-weight: var(--font-extrabold);
}

@media (max-width: 1199.98px) {
    .vc-admin-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .vc-admin-hero__btn {
        justify-self: start;
    }
}

@media (max-width: 767.98px) {
    .vc-admin-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .vc-admin-nav .nav-item {
        flex: 0 0 auto;
    }

    .vc-admin-hero {
        padding: 18px;
        border-radius: 14px;
    }

    .vc-admin-hero h3 {
        font-size: var(--font-size-px-22);
    }

    .vc-admin-hero__stats,
    .vc-admin-hero__btn {
        width: 100%;
    }

    .vc-admin-hero__stats > div {
        flex: 1 1 100%;
    }

    .vc-admin-toolbar {
        justify-content: stretch;
    }

    .vc-admin-toolbar form,
    form.vc-admin-toolbar {
        justify-content: stretch;
    }

    .vc-admin-toolbar .col-md-3,
    .vc-admin-toolbar .col-md-4,
    .vc-admin-toolbar .col-md-6,
    .vc-admin-toolbar .col-xl-auto {
        width: 100%;
    }
}

/* ============================================================
   Admin - Payment Gateways Directory
   ============================================================ */
.pgw-page {
    display: grid;
    gap: 18px;
}

.pgw-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 18px;
    overflow: hidden;
    padding: 24px;
    border: 1px solid rgba(var(--color-primary-rgb), 0.14);
    border-radius: 18px;
    color: var(--color-white);
    background: linear-gradient(135deg, rgba(var(--color-text-rgb), 0.97), rgba(var(--color-rgb-34-52-83), 0.94));
    box-shadow: 0 16px 45px rgba(var(--color-text-rgb), 0.12);
}

.pgw-hero__content {
    min-width: 0;
}

.pgw-eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--color-success);
    font-size: var(--font-size-px-11);
    font-weight: var(--font-extrabold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pgw-hero h1 {
    margin: 0;
    color: var(--color-white);
    font-size: var(--font-size-px-28);
    font-weight: var(--font-extrabold);
    letter-spacing: 0;
}

.pgw-hero p {
    max-width: 760px;
    margin: 8px 0 0;
    color: rgba(var(--color-white-rgb), 0.76);
    font-size: var(--font-base);
}

.pgw-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(92px, 1fr));
    gap: 8px;
}

.pgw-hero__stats > div {
    min-width: 92px;
    padding: 12px 14px;
    border: 1px solid rgba(var(--color-white-rgb), 0.14);
    border-radius: 12px;
    background: rgba(var(--color-white-rgb), 0.08);
}

.pgw-hero__stats span {
    display: block;
    color: rgba(var(--color-white-rgb), 0.68);
    font-size: var(--font-size-px-11);
    font-weight: var(--font-bold);
    text-transform: uppercase;
}

.pgw-hero__stats strong {
    display: block;
    margin-top: 4px;
    color: var(--color-white);
    font-size: var(--font-3xl);
    line-height: 1;
}

.pgw-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.pgw-hero__actions .btn,
.pgw-manage-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    border-radius: 10px;
    font-weight: var(--font-bold);
    white-space: nowrap;
}

.pgw-board {
    padding: 18px;
    border: 1px solid var(--color-border-soft);
    border-radius: 18px;
    background: var(--color-white);
    box-shadow: 0 1px 2px rgba(var(--color-text-rgb), 0.02), 0 10px 28px rgba(var(--color-text-rgb), 0.04);
}

.pgw-board__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.pgw-board__head h2 {
    margin: 0;
    color: var(--color-text);
    font-size: var(--font-xl);
    font-weight: var(--font-extrabold);
}

.pgw-board__head p {
    margin: 4px 0 0;
    color: var(--color-text-muted);
    font-size: var(--font-sm);
}

.pgw-board__head > span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--color-palette-eef3ff);
    color: var(--color-primary);
    font-size: var(--font-xs);
    font-weight: var(--font-extrabold);
    white-space: nowrap;
}

.pgw-table {
    overflow: hidden;
    border: 1px solid var(--color-border-soft);
    border-radius: 16px;
    background: var(--color-white);
}

.pgw-table thead th {
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border-soft);
    background: var(--color-surface-alt);
    color: var(--color-text-muted);
    font-size: var(--font-size-px-11);
    font-weight: var(--font-extrabold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.pgw-table tbody td {
    padding: 16px;
    border-color: var(--color-border-soft);
    color: var(--color-text-soft);
}

.pgw-table tbody tr {
    transition: background-color 0.16s ease;
}

.pgw-table tbody tr:hover {
    background: var(--color-surface-alt);
}

.pgw-gateway {
    display: flex;
    min-width: 230px;
    align-items: center;
    gap: 12px;
}

.pgw-gateway__logo {
    display: grid;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    place-items: center;
    padding: 6px;
    border: 1px solid var(--color-border-soft);
    border-radius: 14px;
    background: var(--color-surface-alt);
}

.pgw-gateway__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pgw-gateway strong {
    display: block;
    color: var(--color-text);
    font-weight: var(--font-extrabold);
}

.pgw-gateway span {
    display: block;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    font-size: var(--font-size-px-11);
    font-weight: var(--font-semibold);
}

.pgw-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pgw-chip {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 9px;
    border: 1px solid var(--color-palette-dce5f4);
    border-radius: 999px;
    background: var(--color-palette-eef3ff);
    color: var(--color-primary);
    font-size: var(--font-size-px-11);
    font-weight: var(--font-extrabold);
}

.pgw-chip--more {
    background: var(--color-surface-soft);
    color: var(--color-text-subtle);
}

.pgw-chip--muted {
    background: var(--color-surface-alt);
    color: var(--color-text-faint);
}

.pgw-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: var(--font-size-px-11);
    font-weight: var(--font-extrabold);
    white-space: nowrap;
}

.pgw-status span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
}

.pgw-status--success {
    background: var(--color-palette-e8f8f1);
    color: var(--color-success-deep);
}

.pgw-status--success span {
    background: var(--color-success-deep);
}

.pgw-status--danger {
    background: var(--color-palette-fdecec);
    color: var(--color-danger-deep);
}

.pgw-status--danger span {
    background: var(--color-danger-deep);
}

.pgw-empty {
    display: grid;
    place-items: center;
    min-height: 200px;
    padding: 36px 20px;
    color: var(--color-text-muted);
    text-align: center;
}

.pgw-empty i {
    margin-bottom: 12px;
    color: var(--color-text-faint);
    font-size: var(--font-size-px-40);
}

.pgw-empty h3 {
    margin: 0;
    color: var(--color-text-soft);
    font-size: var(--font-xl);
    font-weight: var(--font-extrabold);
}

.pgw-empty p {
    margin: 6px 0 0;
}

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

.pgw-card {
    display: flex;
    min-width: 0;
    min-height: 100%;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--color-border-soft);
    border-radius: 16px;
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-surface-alt) 100%);
    box-shadow: 0 1px 2px rgba(var(--color-text-rgb), 0.02), 0 10px 26px rgba(var(--color-text-rgb), 0.04);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.pgw-card:hover {
    border-color: rgba(var(--color-primary-rgb), 0.24);
    box-shadow: 0 14px 34px rgba(var(--color-text-rgb), 0.08);
    transform: translateY(-1px);
}

.pgw-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.pgw-card .pgw-gateway {
    min-width: 0;
}

.pgw-card .pgw-gateway__logo {
    width: 42px;
    height: 42px;
    border-radius: 13px;
}

.pgw-card .pgw-gateway strong {
    overflow: hidden;
    max-width: 150px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pgw-status--compact {
    flex-shrink: 0;
    min-height: 26px;
    padding: 4px 9px;
}

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

.pgw-card__meta > div {
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--color-border-soft);
    border-radius: 12px;
    background: var(--color-surface-alt);
}

.pgw-card__meta span,
.pgw-card__label {
    display: block;
    color: var(--color-text-muted);
    font-size: var(--font-size-px-105);
    font-weight: var(--font-extrabold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pgw-card__meta strong {
    display: block;
    overflow: hidden;
    margin-top: 3px;
    color: var(--color-text);
    font-size: var(--font-base);
    font-weight: var(--font-extrabold);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pgw-card__section {
    display: grid;
    gap: 8px;
}

.pgw-card .pgw-chips {
    max-height: 58px;
    overflow: auto;
}

.pgw-card .pgw-manage-btn {
    width: 100%;
    margin-top: auto;
}

.pgw-grid > .pgw-empty,
.pgw-grid > .admin-not-found {
    grid-column: 1 / -1;
    border: 1px dashed var(--color-border-strong);
    border-radius: 16px;
    background: var(--color-surface-alt);
}

@media (max-width: 1199.98px) {
    .pgw-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .pgw-hero__actions {
        justify-content: flex-start;
    }

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

@media (max-width: 991.98px) {
    .pgw-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .pgw-hero,
    .pgw-board {
        padding: 18px;
        border-radius: 14px;
    }

    .pgw-hero h1 {
        font-size: var(--font-size-px-23);
    }

    .pgw-hero__stats {
        grid-template-columns: 1fr;
    }

    .pgw-hero__actions,
    .pgw-hero__actions .btn,
    .pgw-board__head {
        width: 100%;
    }

    .pgw-board__head {
        align-items: stretch;
        flex-direction: column;
    }

    .pgw-grid,
    .pgw-card__meta {
        grid-template-columns: 1fr;
    }

    .pgw-card .pgw-gateway strong {
        max-width: none;
    }
}

/* Shared admin empty / not-found state */
.admin-not-found {
    position: relative;
    overflow: hidden;
    display: grid;
    justify-items: center;
    gap: 12px;
    margin: 0;
    padding: 46px 18px;
    text-align: center;
    border: 1px dashed rgba(79, 70, 229, 0.22);
    border-radius: 18px;
    background:
        radial-gradient(circle at 18% 0%, rgba(79, 70, 229, 0.10), transparent 30%),
        linear-gradient(180deg, var(--color-surface, #ffffff) 0%, var(--color-surface-alt, #f8fafc) 100%);
}

.admin-not-found::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(79, 70, 229, 0.08);
    border-radius: 14px;
    pointer-events: none;
}

.admin-not-found__visual,
.admin-not-found__content,
.admin-not-found__action {
    position: relative;
    z-index: 1;
}

.admin-not-found__visual {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
}

.admin-not-found__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(79, 70, 229, 0.10);
}

.admin-not-found__icon {
    position: relative;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: var(--color-primary, #4f46e5);
    background: var(--color-surface, #ffffff);
    box-shadow: 0 16px 34px rgba(79, 70, 229, 0.16);
    font-size: 24px;
}

.admin-not-found__title {
    margin: 0 0 4px;
    color: var(--color-heading, #111827);
    font-size: var(--font-size-rem-1, 1rem);
    font-weight: var(--font-weight-bold, 700);
}

.admin-not-found__message {
    max-width: 430px;
    margin: 0;
    color: var(--color-text-subtle, #64748b);
    font-size: var(--font-size-rem-085, 0.85rem);
    line-height: 1.6;
}

.admin-not-found__action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 4px;
    border-radius: 10px;
    font-weight: var(--font-weight-semibold, 600);
}

@media (max-width: 575.98px) {
    .admin-not-found {
        padding: 34px 14px;
        border-radius: 14px;
    }

    .admin-not-found::before {
        inset: 8px;
        border-radius: 10px;
    }
}

/* ============================================================
   Admin Dashboard — Highlight Desaturation Pass
   Light-touch override: only reduces saturation/intensity of the
   loudest highlighted elements. Keeps existing layout, structure,
   and design language intact. Scope: .admin-dashboard only.
   ============================================================ */
.admin-dashboard {
    --hl-tint-primary: rgba(79, 70, 229, 0.09);
    --hl-tint-success: rgba(16, 185, 129, 0.10);
    --hl-tint-danger:  rgba(225, 29, 72, 0.09);
    --hl-tint-info:    rgba(14, 165, 233, 0.09);
    --hl-tint-warning: rgba(245, 158, 11, 0.10);
    --hl-tint-violet:  rgba(124, 58, 237, 0.09);
    --hl-tint-orange:  rgba(249, 115, 22, 0.10);
    --hl-on-primary:  #4f46e5;
    --hl-on-success:  #047857;
    --hl-on-danger:   #b91c1c;
    --hl-on-info:     #0369a1;
    --hl-on-warning:  #b45309;
    --hl-on-violet:   #5b21b6;
    --hl-on-orange:   #c2410c;
    --hl-shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* ----- KPI stat card icons: gradient → soft tint ----- */
.admin-dashboard .dashboard-kpi-card__icon {
    background: var(--hl-tint-primary) !important;
    color: var(--hl-on-primary) !important;
    border: 1px solid rgba(79, 70, 229, 0.10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 4px 10px rgba(15, 23, 42, 0.025) !important;
}

.admin-dashboard .dashboard-kpi-card__icon::before {
    display: none !important;
}

.admin-dashboard .dashboard-kpi-card__icon.active-svg,
.admin-dashboard .dashboard-kpi-card__icon.success-svg,
.admin-dashboard .dashboard-kpi-card__icon.rewards,
.admin-dashboard .dashboard-kpi-card__icon.deposit {
    background: var(--hl-tint-success) !important;
    border-color: rgba(4, 120, 87, 0.12);
    color: var(--hl-on-success) !important;
}

.admin-dashboard .dashboard-kpi-card__icon.danger-svg,
.admin-dashboard .dashboard-kpi-card__icon.withdraw,
.admin-dashboard .dashboard-kpi-card__icon.request-money {
    background: var(--hl-tint-danger) !important;
    border-color: rgba(185, 28, 28, 0.12);
    color: var(--hl-on-danger) !important;
}

.admin-dashboard .dashboard-kpi-card__icon.warning-svg {
    background: var(--hl-tint-warning) !important;
    border-color: rgba(180, 83, 9, 0.12);
    color: var(--hl-on-warning) !important;
}

.admin-dashboard .dashboard-kpi-card__icon.info-svg,
.admin-dashboard .dashboard-kpi-card__icon.exchange-money,
.admin-dashboard .dashboard-kpi-card__icon.receive-money,
.admin-dashboard .dashboard-kpi-card__icon.payment {
    background: var(--hl-tint-info) !important;
    border-color: rgba(3, 105, 161, 0.12);
    color: var(--hl-on-info) !important;
}

.admin-dashboard .dashboard-kpi-card__icon.merchant,
.admin-dashboard .dashboard-kpi-card__icon.voucher,
.admin-dashboard .dashboard-kpi-card__icon.send-money {
    background: var(--hl-tint-violet) !important;
    border-color: rgba(91, 33, 182, 0.12);
    color: var(--hl-on-violet) !important;
}

/* ----- Priority Queue: tone down only the loud parts ----- */
.admin-dashboard .dashboard-queue__icon {
    color: var(--hl-on-primary) !important;
    background: var(--hl-tint-primary) !important;
    box-shadow: none !important;
}

.admin-dashboard .dashboard-queue__item.req-deposit .dashboard-queue__icon {
    background: var(--hl-tint-info) !important;
    color: var(--hl-on-info) !important;
}

.admin-dashboard .dashboard-queue__item.req-withdraw .dashboard-queue__icon {
    background: var(--hl-tint-orange) !important;
    color: var(--hl-on-orange) !important;
}

.admin-dashboard .dashboard-queue__item.req-kyc .dashboard-queue__icon,
.admin-dashboard .dashboard-queue__item.req-cardholder .dashboard-queue__icon {
    background: var(--hl-tint-violet) !important;
    color: var(--hl-on-violet) !important;
}

.admin-dashboard .dashboard-queue__item.req-merchant .dashboard-queue__icon {
    background: var(--hl-tint-success) !important;
    color: var(--hl-on-success) !important;
}

.admin-dashboard .dashboard-queue__item.req-vc .dashboard-queue__icon {
    background: var(--hl-tint-warning) !important;
    color: var(--hl-on-warning) !important;
}

.admin-dashboard .dashboard-queue__icon::after {
    display: none !important;
}

.admin-dashboard .dashboard-queue__pill--live {
    background: rgba(245, 158, 11, 0.10) !important;
    color: var(--hl-on-warning) !important;
    border: 1px solid rgba(245, 158, 11, 0.20) !important;
}

.admin-dashboard .dashboard-queue__pill--live i {
    filter: none !important;
}

.admin-dashboard .dashboard-queue__item.is-active .dashboard-queue__count {
    background: var(--hl-tint-primary) !important;
    color: var(--hl-on-primary) !important;
    border: 1px solid rgba(79, 70, 229, 0.18) !important;
    box-shadow: none !important;
}

.admin-dashboard .dashboard-queue__cta {
    background: rgba(15, 23, 42, 0.04) !important;
    border-color: rgba(15, 23, 42, 0.06) !important;
    color: #475569 !important;
}

.admin-dashboard .dashboard-queue__item:hover .dashboard-queue__cta {
    background: var(--hl-tint-primary) !important;
    border-color: rgba(79, 70, 229, 0.18) !important;
    color: var(--hl-on-primary) !important;
}

/* ----- Wallet summary card highlights ----- */
.admin-dashboard .wallet-summary-card__icon-frame,
.admin-dashboard .wallet-summary-card__icon-shell {
    box-shadow: none !important;
}

.admin-dashboard .wallet-summary-card__pill--default,
.admin-dashboard .wallet-summary-card__pill--base {
    background: var(--hl-tint-primary) !important;
    color: var(--hl-on-primary) !important;
    border: 1px solid rgba(79, 70, 229, 0.16) !important;
    box-shadow: none !important;
}

.admin-dashboard .wallet-summary-card__status-badge.is-enabled {
    background: var(--hl-tint-success) !important;
    color: var(--hl-on-success) !important;
    border: 1px solid rgba(16, 185, 129, 0.20) !important;
    box-shadow: none !important;
}

.admin-dashboard .wallet-summary-card__status-badge.is-disabled {
    background: rgba(15, 23, 42, 0.04) !important;
    color: #64748b !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    box-shadow: none !important;
}

.admin-dashboard .wallet-summary-card__live {
    color: var(--hl-on-success) !important;
}

/* ----- Status pills (Recent Users / Transactions) ----- */
.admin-dashboard .dashboard-status-pill--success {
    background: var(--hl-tint-success) !important;
    color: var(--hl-on-success) !important;
    border: 1px solid rgba(16, 185, 129, 0.18) !important;
    box-shadow: none !important;
}

.admin-dashboard .dashboard-status-pill--danger {
    background: var(--hl-tint-danger) !important;
    color: var(--hl-on-danger) !important;
    border: 1px solid rgba(225, 29, 72, 0.18) !important;
    box-shadow: none !important;
}

.admin-dashboard .dashboard-status-pill--info {
    background: var(--hl-tint-info) !important;
    color: var(--hl-on-info) !important;
    border: 1px solid rgba(14, 165, 233, 0.18) !important;
    box-shadow: none !important;
}

.admin-dashboard .dashboard-status-pill--warning {
    background: var(--hl-tint-warning) !important;
    color: var(--hl-on-warning) !important;
    border: 1px solid rgba(245, 158, 11, 0.20) !important;
    box-shadow: none !important;
}

.admin-dashboard .dashboard-status-pill__dot {
    background: currentColor !important;
    opacity: 0.85;
}

/* ----- Avatar status dot: tone down ring ----- */
.admin-dashboard .dashboard-avatar__status {
    box-shadow: 0 0 0 2px #fff !important;
    opacity: 0.9;
}

/* ----- Action / link pills ----- */
.admin-dashboard .dashboard-action-btn,
.admin-dashboard .dashboard-link-pill {
    box-shadow: none !important;
}

.admin-dashboard .dashboard-action-btn:hover,
.admin-dashboard .dashboard-link-pill:hover {
    background: var(--hl-tint-primary) !important;
    color: var(--hl-on-primary) !important;
    border-color: rgba(79, 70, 229, 0.18) !important;
}

/* ----- Chart panel decorations ----- */
.admin-dashboard .chart-stat-card__icon {
    background: var(--hl-tint-primary) !important;
    color: var(--hl-on-primary) !important;
    box-shadow: none !important;
}

.admin-dashboard .report-range {
    box-shadow: none !important;
}

/* ----- Lower dashboard typography softening ----- */
.admin-dashboard .dashboard-section__eyebrow {
    font-weight: var(--font-medium) !important;
    letter-spacing: 0.13em;
}

.admin-dashboard .dashboard-feed-card--premium .dashboard-panel__title,
.admin-dashboard .dashboard-panel--compact .dashboard-panel__title,
.admin-dashboard .dashboard-section__title {
    color: var(--color-text-soft) !important;
    font-weight: var(--font-semibold) !important;
    letter-spacing: 0;
}

.admin-dashboard .dashboard-link-pill,
.admin-dashboard .report-range {
    color: var(--color-text-soft) !important;
    font-weight: var(--font-medium) !important;
}

.admin-dashboard .dashboard-feed-item--flush .dashboard-avatar,
.admin-dashboard .wallet-summary-card__icon-fallback {
    font-weight: var(--font-semibold) !important;
}

.admin-dashboard .dashboard-feed-item--flush .dashboard-feed-item__title {
    color: var(--color-text-soft) !important;
    font-weight: var(--font-semibold) !important;
    letter-spacing: 0;
}

.admin-dashboard .dashboard-feed-item--flush .dashboard-feed-item__value {
    color: var(--color-text-soft);
    font-weight: var(--font-semibold) !important;
    letter-spacing: 0;
}

.admin-dashboard .dashboard-feed-item__value-unit,
.admin-dashboard .dashboard-feed-item__trx,
.admin-dashboard .dashboard-status-pill {
    font-weight: var(--font-medium) !important;
}

.admin-dashboard .dashboard-status-pill,
.admin-dashboard .dashboard-feed-item__trx {
    letter-spacing: 0.055em;
}

.admin-dashboard .wallet-summary-shell__meta,
.admin-dashboard .wallet-summary-card__subtitle,
.admin-dashboard .wallet-summary-card__rate,
.admin-dashboard .wallet-summary-card__rate-text,
.admin-dashboard .wallet-summary-card__rate--base .wallet-summary-card__rate-text {
    color: var(--color-text-muted) !important;
    font-weight: var(--font-medium) !important;
}

.admin-dashboard .wallet-summary-card__title,
.admin-dashboard .wallet-summary-card__amount,
.admin-dashboard .wallet-summary-card__amount-main {
    color: var(--color-text-soft) !important;
    font-weight: var(--font-semibold) !important;
    letter-spacing: 0;
}

.admin-dashboard .wallet-summary-card__amount-symbol,
.admin-dashboard .wallet-summary-card__amount-fraction {
    color: var(--color-text-muted);
    font-weight: var(--font-medium) !important;
    letter-spacing: 0;
}

.admin-dashboard .wallet-summary-card__balance-caption,
.admin-dashboard .wallet-summary-card__account-badge,
.admin-dashboard .wallet-summary-card__status-badge,
.admin-dashboard .wallet-summary-card__pill,
.admin-dashboard .wallet-summary-card__live,
.admin-dashboard .wallet-summary-card__type-chip {
    font-weight: var(--font-medium) !important;
    letter-spacing: 0.065em;
}

.admin-dashboard .chart-stat-card__label,
.admin-dashboard .chart-stat-card__value {
    color: var(--color-text-soft) !important;
    font-weight: var(--font-semibold) !important;
    letter-spacing: 0;
}

/* ----- Professional module color groups ----- */
.admin-dashboard .dashboard-panel--treasury,
.admin-dashboard .dashboard-panel--revenue,
.admin-dashboard .dashboard-panel--growth,
.admin-dashboard .dashboard-feed-card--transactions,
.admin-dashboard .dashboard-feed-card--accounts {
    --module-accent: var(--color-primary);
    --module-accent-rgb: var(--color-primary-rgb);
    border-color: rgba(var(--module-accent-rgb), 0.13) !important;
    background: radial-gradient(90% 72% at 0% 0%, rgba(var(--module-accent-rgb), 0.055), transparent 58%),
    linear-gradient(180deg, rgba(var(--color-white-rgb), 0.98), rgba(var(--color-rgb-248-250-252), 0.82)) !important;
}

.admin-dashboard .dashboard-panel--treasury {
    --module-accent: #2563eb;
    --module-accent-rgb: 37, 99, 235;
}

.admin-dashboard .dashboard-panel--revenue {
    --module-accent: #2563eb;
    --module-accent-rgb: 37, 99, 235;
}

.admin-dashboard .dashboard-panel--growth {
    --module-accent: #10b981;
    --module-accent-rgb: 16, 185, 129;
}

.admin-dashboard .dashboard-feed-card--transactions {
    --module-accent: var(--color-primary);
    --module-accent-rgb: var(--color-primary-rgb);
}

.admin-dashboard .dashboard-feed-card--accounts {
    --module-accent: #0f766e;
    --module-accent-rgb: 15, 118, 110;
}

/* ----- Compact activity feed panels ----- */
.admin-dashboard .dashboard-activity-panel {
    border-radius: 0.9rem !important;
}

.admin-dashboard .dashboard-activity-panel__header {
    align-items: center;
    padding: 0.82rem 0.95rem 0.72rem !important;
    gap: 0.75rem;
}

.admin-dashboard .dashboard-activity-panel__heading {
    min-width: 0;
}

.admin-dashboard .dashboard-activity-panel .dashboard-section__eyebrow {
    font-size: var(--font-size-rem-064);
    letter-spacing: 0.12em;
}

.admin-dashboard .dashboard-activity-panel .dashboard-panel__title {
    margin-top: 0.1rem;
    font-size: var(--font-size-rem-098);
    line-height: 1.16;
}

.admin-dashboard .dashboard-activity-panel__link {
    gap: 0.42rem;
    min-height: 2.2rem;
    padding: 0.44rem 0.66rem !important;
    border-radius: 999px !important;
    font-size: var(--font-size-rem-072) !important;
}

.admin-dashboard .dashboard-activity-panel__link i {
    font-size: var(--font-size-rem-07);
}

.admin-dashboard .dashboard-activity-panel__list {
    padding: 0.2rem 0.46rem 0.52rem !important;
}

.admin-dashboard .dashboard-activity-panel .dashboard-feed-item--flush {
    gap: 0.62rem !important;
    min-height: 3.55rem;
    padding: 0.5rem 0.58rem !important;
    border-radius: 0.62rem !important;
}

.admin-dashboard .dashboard-activity-panel .dashboard-feed-item--flush + .dashboard-feed-item--flush::before {
    left: 0.68rem;
    right: 0.68rem;
    background: rgba(var(--color-text-faint-rgb), 0.17);
}

.admin-dashboard .dashboard-activity-panel .dashboard-feed-item--flush:hover {
    background: rgba(var(--module-accent-rgb), 0.04) !important;
}

.admin-dashboard .dashboard-activity-panel .dashboard-feed-item--flush .dashboard-feed-item__primary {
    gap: 0.62rem;
}

.admin-dashboard .dashboard-activity-panel .dashboard-avatar {
    width: 2.25rem !important;
    height: 2.25rem !important;
    border-radius: 0.66rem !important;
    font-size: var(--font-size-rem-07) !important;
    box-shadow: 0 2px 6px rgba(var(--color-text-rgb), 0.055), inset 0 1px 0 rgba(var(--color-white-rgb), 0.18) !important;
}

.admin-dashboard .dashboard-activity-panel .dashboard-avatar__status {
    width: 0.56rem !important;
    height: 0.56rem !important;
    right: -0.1rem !important;
    bottom: -0.1rem !important;
}

.admin-dashboard .dashboard-activity-panel .dashboard-feed-item__title {
    font-size: var(--font-size-rem-082) !important;
    line-height: 1.16 !important;
}

.admin-dashboard .dashboard-activity-panel .dashboard-feed-item__sub {
    gap: 0.36rem;
    margin-top: 0.12rem;
}

.admin-dashboard .dashboard-activity-panel .dashboard-feed-item__dot {
    width: 2px;
    height: 2px;
}

.admin-dashboard .dashboard-activity-panel .dashboard-feed-item__meta,
.admin-dashboard .dashboard-activity-panel .dashboard-feed-item__meta--email {
    font-size: var(--font-size-rem-066) !important;
    line-height: 1.24;
}

.admin-dashboard .dashboard-activity-panel .dashboard-feed-item__metric,
.admin-dashboard .dashboard-activity-panel .dashboard-feed-item__status {
    gap: 0.2rem;
}

.admin-dashboard .dashboard-activity-panel .dashboard-feed-item__metric {
    width: 6.35rem;
}

.admin-dashboard .dashboard-activity-panel .dashboard-feed-item__status {
    width: 7.45rem;
}

.admin-dashboard .dashboard-activity-panel .dashboard-feed-item--users .dashboard-feed-item__status {
    width: 6.7rem;
}

.admin-dashboard .dashboard-activity-panel .dashboard-feed-item__value {
    font-size: var(--font-size-rem-084) !important;
    gap: 0.24rem;
}

.admin-dashboard .dashboard-activity-panel .dashboard-feed-item__value-unit {
    font-size: var(--font-size-rem-06);
}

.admin-dashboard .dashboard-activity-panel .dashboard-status-pill {
    gap: 0.3rem;
    padding: 0.16rem 0.46rem;
    font-size: var(--font-size-rem-056);
    letter-spacing: 0.055em;
}

.admin-dashboard .dashboard-activity-panel .dashboard-status-pill__dot {
    width: 0.32rem;
    height: 0.32rem;
}

.admin-dashboard .dashboard-activity-panel .dashboard-feed-item__trx {
    max-width: 7.1rem;
    padding: 0.1rem 0.4rem;
    border-radius: 0.32rem;
    font-size: var(--font-size-rem-06);
    letter-spacing: 0.035em;
}

.admin-dashboard .dashboard-activity-panel .dashboard-feed-item__action,
.admin-dashboard .dashboard-activity-panel .dashboard-action-btn {
    width: 2.12rem !important;
    height: 2.12rem !important;
}

.admin-dashboard .dashboard-activity-panel .dashboard-action-btn {
    border-radius: 0.62rem !important;
}

.admin-dashboard .dashboard-activity-panel .dashboard-action-btn svg,
.admin-dashboard .dashboard-activity-panel .dashboard-action-btn i {
    width: 0.96rem;
    height: 0.96rem;
}

@media (max-width: 767.98px) {
    .admin-dashboard .dashboard-activity-panel .dashboard-feed-item__metric {
        width: 5.8rem;
    }

    .admin-dashboard .dashboard-activity-panel .dashboard-feed-item__status,
    .admin-dashboard .dashboard-activity-panel .dashboard-feed-item--users .dashboard-feed-item__status {
        width: 6.3rem;
    }
}

/* ----- Analytics panels: revenue and growth ----- */
.admin-dashboard .dashboard-analytics-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 1rem !important;
}

.admin-dashboard .dashboard-analytics-panel::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 0.18rem;
    background: linear-gradient(90deg, rgba(var(--module-accent-rgb), 0.78), rgba(var(--module-accent-rgb), 0.08));
    z-index: 2;
}

.admin-dashboard .dashboard-analytics-panel__header {
    align-items: center;
    padding: 0.72rem 0.92rem 0.62rem !important;
    gap: 0.68rem;
}

.admin-dashboard .dashboard-analytics-panel__heading {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 0.56rem;
}

.admin-dashboard .dashboard-analytics-panel__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.62rem;
    color: var(--module-accent);
    background: rgba(var(--module-accent-rgb), 0.08);
    border: 1px solid rgba(var(--module-accent-rgb), 0.14);
    box-shadow: inset 0 1px 0 rgba(var(--color-white-rgb), 0.82);
    flex-shrink: 0;
}

.admin-dashboard .dashboard-analytics-panel__title-group {
    min-width: 0;
}

.admin-dashboard .dashboard-analytics-panel .dashboard-section__eyebrow {
    font-size: var(--font-size-rem-06);
    letter-spacing: 0.11em;
}

.admin-dashboard .dashboard-analytics-panel .dashboard-panel__title {
    margin-top: 0.08rem;
    font-size: var(--font-size-rem-098);
    line-height: 1.15;
}

.admin-dashboard .dashboard-analytics-panel__toolbar {
    flex-shrink: 0;
}

.admin-dashboard .dashboard-analytics-panel__range {
    min-width: 14rem;
    height: 2.28rem;
    padding: 0.42rem 0.62rem !important;
    border-radius: 0.68rem !important;
    font-size: var(--font-size-rem-076) !important;
    box-shadow: inset 0 1px 0 rgba(var(--color-white-rgb), 0.82) !important;
}

.admin-dashboard .dashboard-analytics-panel__range svg,
.admin-dashboard .dashboard-analytics-panel__range i {
    color: var(--module-accent) !important;
}

.admin-dashboard .dashboard-analytics-panel__chart-shell {
    position: relative;
    padding: 0.28rem 0.86rem 0.58rem !important;
    background: linear-gradient(180deg, rgba(var(--module-accent-rgb), 0.025), transparent 48%);
}

.admin-dashboard .dashboard-analytics-panel__chart-shell .dashboard-chart {
    min-height: 218px;
}

@media (max-width: 575.98px) {
    .admin-dashboard .dashboard-analytics-panel__header {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-dashboard .dashboard-analytics-panel__toolbar,
    .admin-dashboard .dashboard-analytics-panel__toolbar .input-group,
    .admin-dashboard .dashboard-analytics-panel__range {
        width: 100%;
        min-width: 0;
    }
}

.admin-dashboard .dashboard-panel--treasury .dashboard-section__eyebrow,
.admin-dashboard .dashboard-panel--revenue .dashboard-section__eyebrow,
.admin-dashboard .dashboard-panel--growth .dashboard-section__eyebrow,
.admin-dashboard .dashboard-feed-card--transactions .dashboard-section__eyebrow,
.admin-dashboard .dashboard-feed-card--accounts .dashboard-section__eyebrow {
    color: var(--module-accent) !important;
}

.admin-dashboard .dashboard-panel--treasury .dashboard-section__header,
.admin-dashboard .dashboard-panel--revenue .dashboard-panel__header,
.admin-dashboard .dashboard-panel--growth .dashboard-panel__header,
.admin-dashboard .dashboard-feed-card--transactions .dashboard-panel__header,
.admin-dashboard .dashboard-feed-card--accounts .dashboard-panel__header {
    background: linear-gradient(90deg, rgba(var(--module-accent-rgb), 0.045), transparent 62%);
    border-bottom: 1px solid rgba(var(--module-accent-rgb), 0.11) !important;
}

.admin-dashboard .dashboard-feed-card--transactions .dashboard-link-pill,
.admin-dashboard .dashboard-feed-card--accounts .dashboard-link-pill,
.admin-dashboard .dashboard-panel--revenue .report-range,
.admin-dashboard .dashboard-panel--growth .report-range {
    border-color: rgba(var(--module-accent-rgb), 0.16) !important;
    background: rgba(var(--module-accent-rgb), 0.045) !important;
    color: var(--module-accent) !important;
}

.admin-dashboard .dashboard-panel--revenue .report-range .fa-calendar-days,
.admin-dashboard .dashboard-panel--growth .report-range .fa-calendar-days {
    color: var(--module-accent) !important;
}

.admin-dashboard .dashboard-panel--treasury .wallet-summary-card {
    --wallet-accent: var(--module-accent);
    --wallet-accent-rgb: var(--module-accent-rgb);
    border-color: rgba(var(--module-accent-rgb), 0.17) !important;
    background: radial-gradient(100% 75% at 0% 0%, rgba(var(--module-accent-rgb), 0.08), transparent 58%),
    linear-gradient(180deg, rgba(var(--color-white-rgb), 0.98), rgba(var(--color-rgb-248-250-252), 0.9)) !important;
}

.admin-dashboard .dashboard-panel--treasury .wallet-summary-card__icon-frame {
    background: rgba(var(--module-accent-rgb), 0.1) !important;
    border-color: rgba(var(--module-accent-rgb), 0.16) !important;
}

.admin-dashboard .dashboard-panel--treasury .wallet-summary-card__balance-caption,
.admin-dashboard .dashboard-panel--treasury .wallet-summary-card__rate-icon {
    color: var(--module-accent) !important;
}

.admin-dashboard .dashboard-panel--treasury .wallet-summary-card__footer {
    border-top-color: rgba(var(--module-accent-rgb), 0.12) !important;
}

/* ----- Many-currency treasury grid ----- */
.admin-dashboard .wallet-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(21rem, 100%), 1fr));
    gap: 0.72rem;
    padding: 0.85rem 1rem 1rem;
}

.admin-dashboard .wallet-summary-grid--scrollable {
    max-height: 31rem;
    overflow-y: auto;
    padding-right: 0.78rem;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
}

.admin-dashboard .wallet-summary-grid__item {
    min-width: 0;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card {
    height: 100%;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card .card-body {
    min-height: 10.4rem;
    gap: 0.54rem;
    padding: 0.78rem 0.84rem;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__top-row {
    align-items: flex-start;
    gap: 0.58rem;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__currency-group {
    min-width: 14rem;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__meta-group {
    flex-wrap: wrap;
    row-gap: 0.26rem;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__title,
.admin-dashboard .wallet-summary-grid .wallet-summary-card__subtitle {
    max-width: 100%;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__balance-row {
    padding-top: 0.1rem;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__amount {
    max-width: 100%;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__amount-main {
    font-size: var(--font-size-rem-128);
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__footer {
    margin-top: auto;
    gap: 0.45rem;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__rate {
    flex: 1 1 15rem;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__rate-text {
    white-space: normal;
    line-height: 1.28;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__type-chip {
    margin-left: auto;
}

/* ----- Global shadow softening on dashboard cards ----- */
.admin-dashboard .dashboard-kpi-card,
.admin-dashboard .dashboard-panel,
.admin-dashboard .dashboard-feed-card,
.admin-dashboard .dashboard-feed-card--premium,
.admin-dashboard .dashboard-panel--feature,
.admin-dashboard .wallet-summary-card,
.admin-dashboard .dashboard-queue__panel,
.admin-dashboard .dashboard-queue__item {
    box-shadow: var(--hl-shadow-soft) !important;
}

/* ============================================================
   Priority Queue - reference layout match
   ============================================================ */
.admin-dashboard .dashboard-queue {
    margin-bottom: 0.7rem;
}

.admin-dashboard .dashboard-queue__panel {
    padding: 0.55rem !important;
    border-radius: 0.85rem !important;
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.16) !important;
    background: linear-gradient(180deg, rgba(var(--color-white-rgb), 0.98), rgba(var(--color-rgb-248-250-252), 0.82)) !important;
    box-shadow: 0 1px 2px rgba(var(--color-text-rgb), 0.025), 0 10px 26px rgba(var(--color-text-rgb), 0.035) !important;
}

.admin-dashboard .dashboard-queue__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    align-items: stretch;
}

.admin-dashboard .dashboard-queue__aside {
    padding: 1.55rem 1.45rem !important;
    border-radius: 1rem !important;
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.17) !important;
    background: rgba(var(--color-white-rgb), 0.94) !important;
    box-shadow: 0 1px 2px rgba(var(--color-text-rgb), 0.025), 0 10px 24px rgba(var(--color-text-rgb), 0.04) !important;
}

.admin-dashboard .dashboard-queue__intro {
    gap: 0.42rem;
}

.admin-dashboard .dashboard-queue__intro::after {
    margin-top: 0.85rem;
    background: rgba(var(--color-text-faint-rgb), 0.18);
}

.admin-dashboard .dashboard-queue__eyebrow {
    font-size: var(--font-size-rem-072);
    letter-spacing: 0.14em;
}

.admin-dashboard .dashboard-queue__heading {
    font-size: var(--font-size-rem-145);
    letter-spacing: 0;
    line-height: 1.05;
}

.admin-dashboard .dashboard-queue__lead {
    color: var(--color-text-muted);
    font-size: var(--font-size-rem-088);
    line-height: 1.42;
    max-width: 31ch;
}

.admin-dashboard .dashboard-queue__stats {
    gap: 0.75rem;
    margin-top: 0.65rem;
}

.admin-dashboard .dashboard-queue__stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 6rem;
    padding: 0.95rem 1rem !important;
    border-radius: 0.85rem !important;
    background: radial-gradient(100% 90% at 100% 0%, rgba(var(--stat-accent-rgb), 0.06), transparent 60%),
    rgba(var(--color-white-rgb), 0.88) !important;
    border-color: rgba(var(--stat-accent-rgb), 0.18) !important;
    box-shadow: inset 0 1px 0 rgba(var(--color-white-rgb), 0.92), 0 4px 14px rgba(var(--color-text-rgb), 0.028) !important;
}

.admin-dashboard .dashboard-queue__stat::after {
    display: none;
}

.admin-dashboard .dashboard-queue__stat-copy {
    min-width: 0;
}

.admin-dashboard .dashboard-queue__stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.45rem;
    height: 3.45rem;
    border-radius: 0.78rem;
    background: rgba(var(--stat-accent-rgb), 0.09);
    color: var(--stat-accent);
    font-size: var(--font-size-rem-14);
    flex-shrink: 0;
}

.admin-dashboard .dashboard-queue__stat-label {
    font-size: var(--font-size-rem-068);
    letter-spacing: 0.11em;
}

.admin-dashboard .dashboard-queue__stat-value {
    margin-top: 0.25rem;
    font-size: var(--font-size-rem-18);
    letter-spacing: 0;
    line-height: 0.95;
}

.admin-dashboard .dashboard-queue__stat-meta {
    margin-top: 0.35rem;
    font-size: var(--font-size-rem-078);
}

.admin-dashboard .dashboard-queue__main {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.admin-dashboard .dashboard-queue__notice {
    display: grid;
    grid-template-columns: 2.35rem minmax(240px, 1fr) minmax(285px, 0.9fr) max-content;
    align-items: center;
    gap: 0.6rem;
    min-height: 4.85rem;
    padding: 0.56rem 0.72rem;
    border-radius: 0.76rem;
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.14);
    background: rgba(var(--color-white-rgb), 0.94);
    box-shadow: 0 1px 2px rgba(var(--color-text-rgb), 0.02), 0 8px 22px rgba(var(--color-text-rgb), 0.03);
    overflow: hidden;
}

.admin-dashboard .dashboard-queue__notice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    background: rgba(var(--color-primary-rgb), 0.07);
    border: 1px solid rgba(var(--color-primary-rgb), 0.14);
    color: var(--color-primary);
    flex-shrink: 0;
}

.admin-dashboard .dashboard-queue__notice-copy h3 {
    margin: 0;
    color: var(--color-text-soft);
    font-size: var(--font-size-rem-086);
    font-weight: var(--font-bold);
    letter-spacing: 0;
    line-height: 1.18;
}

.admin-dashboard .dashboard-queue__notice-copy {
    min-width: 0;
}

.admin-dashboard .dashboard-queue__notice-eyebrow {
    display: inline-block;
    margin-bottom: 0.18rem;
    color: var(--color-primary);
    font-size: var(--font-size-rem-056);
    font-weight: var(--font-bold);
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}

.admin-dashboard .dashboard-queue__notice-copy p {
    margin: 0.18rem 0 0;
    color: var(--color-text-muted);
    font-size: var(--font-size-rem-068);
    font-weight: 400;
    line-height: 1.35;
}

.admin-dashboard .dashboard-queue__notice-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    min-width: 0;
}

.admin-dashboard .dashboard-queue__notice-card {
    --notice-accent: var(--color-primary);
    --notice-accent-rgb: var(--color-primary-rgb);
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "icon value" "icon label";
    align-items: center;
    column-gap: 0.42rem;
    min-width: 0;
    min-height: 3.05rem;
    padding: 0.42rem 0.5rem;
    border-radius: 0.58rem;
    border: 1px solid rgba(var(--notice-accent-rgb), 0.12);
    background: rgba(var(--notice-accent-rgb), 0.045);
}

.admin-dashboard .dashboard-queue__notice-card i {
    grid-area: icon;
    color: var(--notice-accent);
    font-size: var(--font-size-rem-1);
}

.admin-dashboard .dashboard-queue__notice-card strong {
    grid-area: value;
    color: var(--color-text);
    font-size: var(--font-size-rem-088);
    font-weight: var(--font-bold);
    line-height: 1;
}

.admin-dashboard .dashboard-queue__notice-card span {
    grid-area: label;
    color: var(--color-text-muted);
    font-size: var(--font-size-rem-056);
    font-weight: var(--font-medium);
    line-height: 1.1;
}

.admin-dashboard .dashboard-queue__notice-card--primary {
    --notice-accent: var(--color-primary);
    --notice-accent-rgb: var(--color-primary-rgb);
}

.admin-dashboard .dashboard-queue__notice-card--warning {
    --notice-accent: var(--hl-on-orange);
    --notice-accent-rgb: 249, 115, 22;
}

.admin-dashboard .dashboard-queue__notice-card--violet {
    --notice-accent: var(--hl-on-violet);
    --notice-accent-rgb: 124, 58, 237;
}

.admin-dashboard .dashboard-queue__updated {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.38rem;
    color: var(--color-text-muted);
    font-size: var(--font-size-rem-06);
    font-weight: var(--font-medium);
    white-space: nowrap;
}

.admin-dashboard .dashboard-queue__updated span {
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 50%;
    background: var(--color-success);
    box-shadow: 0 0 0 3px rgba(var(--color-success-rgb), 0.09);
}

.admin-dashboard .dashboard-queue__body,
.admin-dashboard .dashboard-queue__grid {
    height: auto;
}

.admin-dashboard .dashboard-queue__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 0.46rem;
}

.admin-dashboard .dashboard-queue__item {
    gap: 0.46rem;
    min-height: 7.8rem;
    padding: 0.62rem 0.72rem !important;
    border-radius: 0.74rem !important;
    background: rgba(var(--color-white-rgb), 0.94) !important;
    border-color: rgba(var(--item-accent-rgb), 0.13) !important;
    box-shadow: 0 1px 2px rgba(var(--color-text-rgb), 0.025), 0 7px 18px rgba(var(--color-text-rgb), 0.028) !important;
}

.admin-dashboard .dashboard-queue__item.is-active {
    background: radial-gradient(120% 75% at 100% 0%, rgba(var(--item-accent-rgb), 0.052), transparent 63%),
    rgba(var(--color-white-rgb), 0.96) !important;
    border-color: rgba(var(--item-accent-rgb), 0.18) !important;
}

.admin-dashboard .dashboard-queue__item-top {
    gap: 0.45rem;
}

.admin-dashboard .dashboard-queue__pill {
    padding: 0.2rem 0.42rem;
    border-radius: 999px;
    background: rgba(var(--item-accent-rgb), 0.07) !important;
    border: 1px solid rgba(var(--item-accent-rgb), 0.18) !important;
    color: var(--item-accent) !important;
    font-size: var(--font-size-rem-052);
    font-weight: var(--font-semibold);
    letter-spacing: 0.06em;
}

.admin-dashboard .dashboard-queue__pill i {
    font-size: var(--font-size-rem-056);
}

.admin-dashboard .dashboard-queue__count,
.admin-dashboard .dashboard-queue__item.is-active .dashboard-queue__count {
    min-width: 1.55rem;
    height: 1.55rem;
    padding: 0 0.38rem;
    background: rgba(var(--item-accent-rgb), 0.08) !important;
    border: 1px solid rgba(var(--item-accent-rgb), 0.18) !important;
    color: var(--item-accent) !important;
    font-size: var(--font-size-rem-072);
    font-weight: var(--font-bold);
    box-shadow: inset 0 1px 0 rgba(var(--color-white-rgb), 0.9) !important;
}

.admin-dashboard .dashboard-queue__item-body {
    align-items: center;
    gap: 0.58rem;
}

.admin-dashboard .dashboard-queue__icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.58rem;
    background: rgba(var(--item-accent-rgb), 0.085) !important;
    color: var(--item-accent) !important;
    box-shadow: none !important;
    font-size: var(--font-size-rem-095);
}

.admin-dashboard .dashboard-queue__title {
    color: var(--color-text-soft);
    font-size: var(--font-size-rem-088);
    font-weight: var(--font-bold);
    letter-spacing: 0;
    line-height: 1.1;
}

.admin-dashboard .dashboard-queue__description {
    margin-top: 0.16rem;
    color: var(--color-text-muted);
    font-size: var(--font-size-rem-066);
    line-height: 1.28;
}

.admin-dashboard .dashboard-queue__footer {
    padding-top: 0.34rem;
    border-top-color: rgba(var(--color-text-faint-rgb), 0.14);
}

.admin-dashboard .dashboard-queue__hint {
    color: var(--color-text-muted);
    font-size: var(--font-size-rem-052);
    font-weight: var(--font-semibold);
    letter-spacing: 0.045em;
}

.admin-dashboard .dashboard-queue__cta,
.admin-dashboard .dashboard-queue__item:hover .dashboard-queue__cta {
    min-width: 4.35rem;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.28rem 0.46rem;
    border-radius: 0.4rem;
    background: rgba(var(--color-white-rgb), 0.78) !important;
    border: 1px solid rgba(var(--item-accent-rgb), 0.22) !important;
    color: var(--item-accent) !important;
    box-shadow: inset 0 1px 0 rgba(var(--color-white-rgb), 0.92), 0 2px 8px rgba(var(--item-accent-rgb), 0.035);
    font-size: var(--font-size-rem-06);
    font-weight: var(--font-semibold);
}

@media (max-width: 1199.98px) {
    .admin-dashboard .dashboard-queue__layout {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .admin-dashboard .dashboard-queue__notice {
        grid-template-columns: auto minmax(220px, 1fr) minmax(0, 1.2fr);
    }

    .admin-dashboard .dashboard-queue__updated {
        grid-column: 2 / -1;
        justify-self: end;
    }
}

@media (max-width: 1199.98px) {
    .admin-dashboard .dashboard-queue__notice {
        grid-template-columns: auto 1fr;
    }

    .admin-dashboard .dashboard-queue__notice-metrics {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-dashboard .dashboard-queue__updated {
        grid-column: 1 / -1;
    }

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

@media (max-width: 1199.98px) {
    .admin-dashboard .dashboard-queue__layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 767.98px) {
    .admin-dashboard .dashboard-queue__panel,
    .admin-dashboard .dashboard-queue__aside,
    .admin-dashboard .dashboard-queue__notice,
    .admin-dashboard .dashboard-queue__item {
        border-radius: 0.9rem !important;
    }

    .admin-dashboard .dashboard-queue__aside {
        padding: 1.1rem !important;
    }

    .admin-dashboard .dashboard-queue__heading {
        font-size: var(--font-size-rem-135);
    }

    .admin-dashboard .dashboard-queue__lead {
        font-size: var(--font-size-rem-082);
    }

    .admin-dashboard .dashboard-queue__stats,
    .admin-dashboard .dashboard-queue__grid,
    .admin-dashboard .dashboard-queue__notice-metrics {
        grid-template-columns: 1fr;
    }

    .admin-dashboard .dashboard-queue__notice {
        padding: 1rem;
    }

    .admin-dashboard .dashboard-queue__notice-icon {
        width: 3.1rem;
        height: 3.1rem;
    }

    .admin-dashboard .dashboard-queue__item {
        min-height: 0;
    }
}

/* ============================================================
   Premium polish v3 — minimal, flat, professional
   (no heavy shadows, no loud gradients, refined borders)
   ============================================================ */

/* ---------- Treasury header meta chips ---------- */
.admin-dashboard .wallet-summary-shell__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    font-size: var(--font-size-rem-078);
    color: var(--color-text);
    font-weight: var(--font-medium);
}

.admin-dashboard .wallet-summary-shell__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: var(--color-surface-soft, rgba(var(--color-rgb-241-245-249), 0.6));
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.16);
    color: var(--color-text);
    line-height: 1;
    white-space: nowrap;
    box-shadow: none;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.admin-dashboard .wallet-summary-shell__meta-item:hover {
    border-color: rgba(var(--module-accent-rgb), 0.32);
    color: var(--module-accent);
}

.admin-dashboard .wallet-summary-shell__meta-item i {
    color: var(--module-accent, var(--color-primary));
    font-size: 0.86em;
    margin-right: 0 !important;
}

.admin-dashboard .wallet-summary-shell__meta-sep {
    display: none;
}

/* ---------- Treasury card — flatter premium look ---------- */
.admin-dashboard .wallet-summary-card {
    border-radius: 0.85rem !important;
    background: var(--color-white) !important;
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.14) !important;
    box-shadow: none !important;
    transition: border-color 0.18s ease;
}

.admin-dashboard .wallet-summary-card:hover {
    transform: none;
    border-color: rgba(var(--color-text-faint-rgb), 0.14) !important;
    box-shadow: none !important;
}

.admin-dashboard .wallet-summary-card__amount-main {
    letter-spacing: -0.015em;
}

.admin-dashboard .wallet-summary-card__amount-fraction {
    color: rgba(var(--color-text-rgb), 0.42);
    font-weight: var(--font-semibold);
}

.admin-dashboard .wallet-summary-card__icon-frame {
    background: rgba(var(--module-accent-rgb), 0.08) !important;
    border: 1px solid rgba(var(--module-accent-rgb), 0.16) !important;
    box-shadow: none !important;
}

.admin-dashboard .wallet-summary-card__pill--default,
.admin-dashboard .wallet-summary-card__pill--base {
    background: rgba(var(--module-accent-rgb), 0.08);
    border: 1px solid rgba(var(--module-accent-rgb), 0.2);
    color: var(--module-accent);
    box-shadow: none;
}

/* Override the panel-wide treasury gradient to a flat surface */
.admin-dashboard .dashboard-panel--treasury .wallet-summary-card {
    background: var(--color-white) !important;
}

.admin-dashboard .dashboard-panel--treasury .dashboard-section__header,
.admin-dashboard .dashboard-panel--revenue .dashboard-panel__header,
.admin-dashboard .dashboard-panel--growth .dashboard-panel__header,
.admin-dashboard .dashboard-feed-card--transactions .dashboard-panel__header,
.admin-dashboard .dashboard-feed-card--accounts .dashboard-panel__header {
    background: transparent !important;
    border-bottom: 1px solid rgba(var(--color-text-faint-rgb), 0.12) !important;
}

.admin-dashboard .dashboard-panel--treasury .dashboard-section__header {
    padding: 0.72rem 0.95rem 0.58rem !important;
}

/* ---------- Analytics chart cards — flat, refined ---------- */
.admin-dashboard .dashboard-panel--treasury,
.admin-dashboard .dashboard-panel--revenue,
.admin-dashboard .dashboard-panel--growth,
.admin-dashboard .dashboard-feed-card--transactions,
.admin-dashboard .dashboard-feed-card--accounts {
    background: var(--color-white) !important;
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.14) !important;
    box-shadow: none !important;
}

.admin-dashboard .dashboard-analytics-panel {
    background: var(--color-white) !important;
    box-shadow: none !important;
    transition: none;
}

.admin-dashboard .dashboard-analytics-panel:hover {
    border-color: rgba(var(--color-text-faint-rgb), 0.14) !important;
    box-shadow: none !important;
    transform: none;
}

.admin-dashboard .dashboard-analytics-panel__chart-shell {
    background: transparent !important;
}

.admin-dashboard .dashboard-analytics-panel__icon {
    background: rgba(var(--module-accent-rgb), 0.08) !important;
    border: 1px solid rgba(var(--module-accent-rgb), 0.16) !important;
    box-shadow: none !important;
}

.admin-dashboard .dashboard-analytics-panel__range {
    box-shadow: none !important;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.admin-dashboard .dashboard-analytics-panel__range:hover {
    border-color: rgba(var(--module-accent-rgb), 0.32) !important;
    background: rgba(var(--module-accent-rgb), 0.05) !important;
    box-shadow: none !important;
}

/* ---------- Activity panels (Transactions + Users) — flat ---------- */
.admin-dashboard .dashboard-activity-panel {
    background: var(--color-white) !important;
    box-shadow: none !important;
    transition: none;
}

.admin-dashboard .dashboard-activity-panel:hover {
    border-color: rgba(var(--color-text-faint-rgb), 0.14) !important;
    box-shadow: none !important;
    transform: none;
}

.admin-dashboard .dashboard-activity-panel__link {
    border-radius: 0.6rem !important;
    padding: 0.34rem 0.72rem !important;
    font-weight: var(--font-semibold);
    box-shadow: none !important;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.admin-dashboard .dashboard-activity-panel__link:hover {
    transform: none;
    box-shadow: none !important;
    background: rgba(var(--module-accent-rgb), 0.1) !important;
    border-color: rgba(var(--module-accent-rgb), 0.28) !important;
}

.admin-dashboard .dashboard-activity-panel .dashboard-avatar {
    box-shadow: none;
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.12);
}

.admin-dashboard .dashboard-activity-panel .dashboard-feed-item--flush {
    border-radius: 0.6rem;
    transition: background 0.18s ease;
}

.admin-dashboard .dashboard-activity-panel .dashboard-feed-item--flush:hover {
    background: rgba(var(--module-accent-rgb), 0.035);
}

.admin-dashboard .dashboard-activity-panel .dashboard-status-pill {
    box-shadow: none;
}

.admin-dashboard .dashboard-activity-panel .dashboard-action-btn {
    box-shadow: none !important;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.admin-dashboard .dashboard-activity-panel .dashboard-action-btn:hover {
    transform: none;
    box-shadow: none !important;
    background: rgba(var(--module-accent-rgb), 0.08) !important;
    border-color: rgba(var(--module-accent-rgb), 0.24) !important;
    color: var(--module-accent);
}

/* ---------- Tone down panel accent top bar ---------- */
.admin-dashboard .dashboard-analytics-panel::before {
    height: 0.12rem;
    background: rgba(var(--module-accent-rgb), 0.55);
    opacity: 0.85;
}

/* ---------- Kill full-card hover effects (no shadow lift, no border shift) ---------- */
.admin-dashboard .dashboard-panel:hover,
.admin-dashboard .dashboard-feed-card:hover,
.admin-dashboard .dashboard-feed-card--premium:hover,
.admin-dashboard .dashboard-kpi-card:hover,
.admin-dashboard .wallet-summary-card:hover,
.admin-dashboard .dashboard-analytics-panel:hover,
.admin-dashboard .dashboard-activity-panel:hover,
.admin-dashboard .dashboard-panel--treasury:hover,
.admin-dashboard .dashboard-panel--revenue:hover,
.admin-dashboard .dashboard-panel--growth:hover,
.admin-dashboard .dashboard-feed-card--transactions:hover,
.admin-dashboard .dashboard-feed-card--accounts:hover,
.admin-dashboard .chart-stat-card:hover {
    transform: none !important;
    box-shadow: var(--dashboard-card-shadow, none) !important;
    border-color: var(--dashboard-card-border, rgba(var(--color-text-faint-rgb), 0.14)) !important;
}

/* ============================================================
   Premium polish — Admin Notifications dropdown
   Flatten gradients, soften shadows, tone down colors
   ============================================================ */

/* Shell — flat surface, subtle border, soft shadow */
.notification-dropdown.notification-dropdown--pro {
    background: var(--color-white) !important;
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.18) !important;
    box-shadow: 0 10px 28px rgba(var(--color-text-rgb), 0.08), 0 2px 6px rgba(var(--color-text-rgb), 0.04) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    --notif-track-bg: var(--color-white);
}

/* Header — flat tint instead of multi-stop gradient */
.notification-dropdown--pro .notification-dropdown__head {
    background: var(--color-surface-soft, rgba(var(--color-rgb-248-250-252), 0.85)) !important;
    border-bottom: 1px solid rgba(var(--color-text-faint-rgb), 0.12) !important;
}

.notification-dropdown--pro .notification-dropdown__head-icon {
    background: rgba(var(--color-primary-rgb), 0.08) !important;
    border: 1px solid rgba(var(--color-primary-rgb), 0.14) !important;
    box-shadow: none !important;
}

.notification-dropdown--pro .notification-dropdown__eyebrow {
    color: var(--color-text-muted);
    font-weight: var(--font-bold);
    letter-spacing: 0.1em;
}

.notification-dropdown--pro .notification-dropdown__title {
    color: var(--color-text);
    font-weight: var(--font-semibold);
}

/* Count badge — flat, no gradient */
.notification-dropdown--pro .notification-dropdown__count-badge {
    background: var(--color-primary) !important;
    box-shadow: none !important;
    font-weight: var(--font-semibold);
}

/* Status pill — quieter */
.notification-dropdown--pro .notification-dropdown__status {
    background: var(--color-white);
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.18);
}

.notification-dropdown--pro .notification-dropdown__status-dot {
    box-shadow: none !important;
}

/* List — flat track */
.notification-dropdown--pro .notification-dropdown__list {
    background: var(--color-white) !important;
    padding: 0.45rem 0.55rem;
}

/* Item — flat card, lighter border, no lift on hover */
.notification-dropdown-item.notification-dropdown-item--pro {
    background: var(--color-white);
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.14);
    box-shadow: none;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.notification-dropdown-item.notification-dropdown-item--pro:hover,
.notification-dropdown-item.notification-dropdown-item--pro:focus {
    background: rgba(var(--color-primary-rgb), 0.035) !important;
    border-color: rgba(var(--color-primary-rgb), 0.22) !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Avatar — flat tone, soft ring */
.notification-dropdown-item--pro .notification-avatar-img {
    box-shadow: none !important;
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.12);
}

.notification-avatar-img--fallback.notification-avatar-img--primary {
    background: var(--color-primary) !important;
}

.notification-avatar-img--fallback.notification-avatar-img--success {
    background: var(--color-success) !important;
}

.notification-avatar-img--fallback.notification-avatar-img--danger {
    background: var(--color-danger) !important;
}

.notification-avatar-img--fallback.notification-avatar-img--info {
    background: var(--color-info) !important;
}

.notification-dropdown-item__dot {
    box-shadow: none !important;
}

/* Type pill — quieter */
.notification-dropdown-item--pro .notification-dropdown-item__type {
    background: rgba(var(--color-text-faint-rgb), 0.08);
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.18);
    color: var(--color-text-soft);
    font-weight: var(--font-semibold);
}

.notification-dropdown-item--primary .notification-dropdown-item__type {
    background: rgba(var(--color-primary-rgb), 0.08);
    border-color: rgba(var(--color-primary-rgb), 0.2);
    color: var(--color-primary);
}

.notification-dropdown-item--success .notification-dropdown-item__type {
    background: rgba(var(--color-success-rgb), 0.08);
    border-color: rgba(var(--color-success-rgb), 0.2);
    color: var(--color-success-deep, var(--color-success));
}

.notification-dropdown-item--danger .notification-dropdown-item__type {
    background: rgba(var(--color-danger-rgb), 0.08);
    border-color: rgba(var(--color-danger-rgb), 0.2);
    color: var(--color-danger);
}

.notification-dropdown-item--info .notification-dropdown-item__type {
    background: rgba(var(--color-info-rgb), 0.08);
    border-color: rgba(var(--color-info-rgb), 0.2);
    color: var(--color-info);
}

/* Footer — flat, no gradient */
.notification-dropdown--pro .notification-dropdown__footer {
    background: var(--color-surface-soft, rgba(var(--color-rgb-248-250-252), 0.85)) !important;
    border-top: 1px solid rgba(var(--color-text-faint-rgb), 0.12) !important;
}

/* Ghost button (Mark all as read) — flat */
.notification-dropdown__action--ghost {
    background: var(--color-white) !important;
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.2) !important;
    color: var(--color-text-soft) !important;
    box-shadow: none !important;
}

.notification-dropdown__action--ghost:hover,
.notification-dropdown__action--ghost:focus {
    background: rgba(var(--color-text-faint-rgb), 0.06) !important;
    border-color: rgba(var(--color-text-faint-rgb), 0.3) !important;
    color: var(--color-text) !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Primary button (View all) — flat solid */
.notification-dropdown__action--primary {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    box-shadow: none !important;
}

.notification-dropdown__action--primary:hover,
.notification-dropdown__action--primary:focus {
    background: var(--color-primary-hover, var(--color-primary)) !important;
    border-color: var(--color-primary-hover, var(--color-primary)) !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Bell counter on the trigger — flat */
.admin-notification-counter {
    background: var(--color-danger) !important;
    box-shadow: none !important;
}

/* Disable the bell wiggle animation */
.admin-notification-trigger.has-unread .admin-notification-trigger__icon {
    animation: none !important;
}

/* ============================================================
   Responsive — tablet/mobile premium polish
   ============================================================ */
@media (max-width: 991.98px) {
    .admin-dashboard .dashboard-panel--treasury .dashboard-section__header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.55rem;
        padding: 0.85rem 0.95rem 0.75rem !important;
    }

    .admin-dashboard .dashboard-panel--treasury .dashboard-section__meta {
        width: 100%;
    }

    .admin-dashboard .dashboard-analytics-panel__range {
        min-width: 12rem;
    }
}

@media (max-width: 767.98px) {
    .admin-dashboard .dashboard-analytics-panel__icon {
        width: 1.78rem;
        height: 1.78rem;
        font-size: var(--font-size-rem-082);
    }

    .admin-dashboard .dashboard-analytics-panel .dashboard-panel__title {
        font-size: var(--font-size-rem-088);
    }

    .admin-dashboard .dashboard-analytics-panel__chart-shell .dashboard-chart {
        min-height: 200px;
    }

    .admin-dashboard .wallet-summary-card .card-body {
        min-height: 0 !important;
        padding: 0.7rem 0.78rem !important;
    }

    .admin-dashboard .wallet-summary-card__amount-main {
        font-size: var(--font-size-rem-118) !important;
    }

    .admin-dashboard .dashboard-activity-panel .dashboard-feed-item--flush {
        flex-wrap: wrap !important;
        row-gap: 0.55rem;
        padding: 0.68rem 0.62rem !important;
    }

    .admin-dashboard .dashboard-activity-panel .dashboard-feed-item__primary {
        flex: 1 1 100% !important;
        min-width: 0;
    }

    .admin-dashboard .dashboard-activity-panel .dashboard-feed-item__metric,
    .admin-dashboard .dashboard-activity-panel .dashboard-feed-item__status {
        width: auto !important;
        flex: 1 1 auto !important;
    }

    .admin-dashboard .dashboard-activity-panel .dashboard-feed-item__metric {
        align-items: flex-start !important;
        text-align: left !important;
    }

    .admin-dashboard .dashboard-activity-panel .dashboard-feed-item__status {
        align-items: flex-end !important;
        text-align: right !important;
    }

    .admin-dashboard .dashboard-activity-panel .dashboard-feed-item--users .dashboard-feed-item__status {
        flex: 0 0 auto !important;
    }

    .admin-dashboard .dashboard-activity-panel .dashboard-feed-item__action {
        flex: 0 0 auto !important;
    }
}

@media (max-width: 575.98px) {
    .admin-dashboard .dashboard-panel--treasury .dashboard-section__header {
        padding: 0.75rem 0.82rem 0.65rem !important;
    }

    .admin-dashboard .wallet-summary-grid {
        padding: 0.62rem 0.7rem 0.82rem !important;
        gap: 0.55rem;
    }

    .admin-dashboard .wallet-summary-card__top-row {
        flex-wrap: wrap;
        row-gap: 0.5rem;
    }

    .admin-dashboard .wallet-summary-card__meta-group {
        flex: 1 1 100%;
        justify-content: flex-start !important;
        gap: 0.42rem;
    }

    .admin-dashboard .wallet-summary-card__amount {
        flex-wrap: wrap;
        row-gap: 0.18rem;
    }

    .admin-dashboard .dashboard-analytics-panel__header {
        padding: 0.62rem 0.78rem 0.55rem !important;
    }

    .admin-dashboard .dashboard-analytics-panel__chart-shell {
        padding: 0.2rem 0.55rem 0.45rem !important;
    }

    .admin-dashboard .dashboard-analytics-panel__chart-shell .dashboard-chart {
        min-height: 180px;
    }

    .admin-dashboard .dashboard-activity-panel__header {
        flex-wrap: wrap;
        gap: 0.55rem;
        padding: 0.68rem 0.78rem !important;
    }

    .admin-dashboard .dashboard-activity-panel__link {
        padding: 0.3rem 0.62rem !important;
        font-size: var(--font-size-rem-072) !important;
    }

    .admin-dashboard .dashboard-activity-panel .dashboard-feed-item__trx {
        font-size: var(--font-size-rem-068);
        padding: 0.18rem 0.45rem;
    }

    .admin-dashboard .wallet-summary-shell__meta {
        gap: 0.35rem;
    }

    .admin-dashboard .wallet-summary-shell__meta-item {
        padding: 0.28rem 0.58rem;
        font-size: var(--font-size-rem-07);
    }
}

/* ============================================================
   Notification Center — premium full-page inbox
   BEM: .notification-center, .notification-card
   ============================================================ */
.notification-center {
    --nc-radius-lg: 0.85rem;
    --nc-radius-md: 0.6rem;
    --nc-radius-pill: 999px;
    --nc-border: rgba(var(--color-text-faint-rgb), 0.16);
    --nc-border-strong: rgba(var(--color-text-faint-rgb), 0.24);
    --nc-surface: var(--color-white);
    --nc-surface-soft: var(--color-surface-soft, rgba(var(--color-rgb-248-250-252), 0.78));
    --nc-shadow: 0 1px 2px rgba(var(--color-text-rgb), 0.022), 0 6px 18px rgba(var(--color-text-rgb), 0.035);
    --nc-accent: var(--color-primary);
    --nc-accent-rgb: var(--color-primary-rgb);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.85rem 0 1rem;
}

/* Compact mode (defaults) */
.notification-center--compact { --nc-radius-lg: 0.78rem; }

/* ---------- Header ---------- */
.notification-center__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.78rem 1rem;
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius-lg);
    background: var(--nc-surface);
    box-shadow: var(--nc-shadow);
}

.notification-center__heading {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.notification-center__eyebrow {
    color: var(--color-text-muted);
    font-size: var(--font-size-rem-062);
    font-weight: var(--font-bold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1;
}

.notification-center__title {
    margin: 0;
    color: var(--color-text);
    font-size: var(--font-size-rem-115, 1.15rem);
    font-weight: var(--font-semibold);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.notification-center__subtitle {
    margin: 0;
    color: var(--color-text-muted);
    font-size: var(--font-size-rem-076);
    font-weight: var(--font-medium);
    line-height: 1.35;
}

.notification-center__subtitle-divider {
    margin: 0 0.35rem;
    color: var(--color-text-faint);
}

.notification-center__subtitle-accent {
    color: var(--nc-accent);
    font-weight: var(--font-semibold);
}

.notification-center__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.notification-center__action {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    min-height: 2rem;
    padding: 0.36rem 0.85rem;
    border-radius: var(--nc-radius-md);
    font-size: var(--font-size-rem-076);
    font-weight: var(--font-semibold);
    line-height: 1;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    white-space: nowrap;
}

.notification-center__action i {
    font-size: 0.95em;
}

.notification-center__action--primary {
    color: var(--color-white);
    background: var(--nc-accent);
    border-color: var(--nc-accent);
}

.notification-center__action--primary:hover,
.notification-center__action--primary:focus {
    color: var(--color-white);
    background: var(--color-primary-hover, var(--nc-accent));
    border-color: var(--color-primary-hover, var(--nc-accent));
}

.notification-center__action--quiet {
    color: var(--color-text-muted);
    background: var(--nc-surface-soft);
    border-color: var(--nc-border);
    cursor: default;
}

.notification-center__action--quiet i {
    color: var(--color-success, var(--nc-accent));
}

/* ---------- Filter tabs ---------- */
.notification-center__filter {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    padding: 0.32rem;
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius-md);
    background: var(--nc-surface);
    box-shadow: var(--nc-shadow);
    width: max-content;
    max-width: 100%;
}

.notification-center__filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
    padding: 0.32rem 0.78rem;
    border-radius: calc(var(--nc-radius-md) - 0.18rem);
    color: var(--color-text-muted);
    font-size: var(--font-size-rem-076);
    font-weight: var(--font-semibold);
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.notification-center__filter-tab:hover {
    color: var(--color-text);
    background: rgba(var(--color-text-faint-rgb), 0.06);
}

.notification-center__filter-tab.is-active {
    color: var(--color-white);
    background: var(--nc-accent);
}

.notification-center__filter-tab.is-active .notification-center__filter-count {
    background: rgba(var(--color-white-rgb), 0.22);
    color: var(--color-white);
}

.notification-center__filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0 0.35rem;
    border-radius: var(--nc-radius-pill);
    background: rgba(var(--color-text-faint-rgb), 0.1);
    color: var(--color-text-soft);
    font-size: var(--font-size-rem-062);
    font-weight: var(--font-bold);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

/* ---------- List ---------- */
.notification-center__list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.notification-center__empty {
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius-lg);
    background: var(--nc-surface);
    box-shadow: var(--nc-shadow);
    margin: 0;
}

/* ---------- Card ---------- */
.notification-card {
    position: relative;
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius-lg);
    background: var(--nc-surface);
    box-shadow: var(--nc-shadow);
    overflow: hidden;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.notification-card:hover {
    border-color: rgba(var(--nc-accent-rgb), 0.28);
}

.notification-card__link {
    display: grid;
    grid-template-columns: 0.2rem 2.25rem minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 0.72rem;
    padding: 0.62rem 0.9rem 0.62rem 0;
    color: inherit;
    text-decoration: none;
}

.notification-card__link:hover,
.notification-card__link:focus {
    color: inherit;
    text-decoration: none;
}

.notification-card__indicator {
    width: 0.2rem;
    border-radius: var(--nc-radius-pill);
    background: transparent;
    align-self: stretch;
}

.notification-card--unread .notification-card__indicator {
    background: var(--nc-accent);
}

.notification-card--unread {
    background: linear-gradient(90deg, rgba(var(--nc-accent-rgb), 0.025), transparent 60%);
    border-color: rgba(var(--nc-accent-rgb), 0.2);
}

/* ---------- Tone modifiers (accent color per category) ---------- */
.notification-card--primary { --nc-accent: var(--color-primary); --nc-accent-rgb: var(--color-primary-rgb); }
.notification-card--success { --nc-accent: var(--color-success); --nc-accent-rgb: var(--color-success-rgb); }
.notification-card--danger  { --nc-accent: var(--color-danger);  --nc-accent-rgb: var(--color-danger-rgb); }
.notification-card--info    { --nc-accent: var(--color-info);    --nc-accent-rgb: var(--color-info-rgb); }
.notification-card--warning { --nc-accent: var(--color-warning); --nc-accent-rgb: var(--color-warning-rgb); }
.notification-card--secondary,
.notification-card--dark    { --nc-accent: var(--color-text-soft); --nc-accent-rgb: var(--color-text-rgb); }

/* ---------- Avatar ---------- */
.notification-card__avatar {
    position: relative;
    width: 2.25rem;
    height: 2.25rem;
    align-self: center;
}

.notification-card__avatar-img,
.notification-card__avatar-fallback {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: var(--font-bold);
    font-size: var(--font-size-rem-08);
    line-height: 1;
    letter-spacing: 0;
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.12);
}

.notification-card__avatar-fallback--primary { background: var(--color-primary); }
.notification-card__avatar-fallback--success { background: var(--color-success); }
.notification-card__avatar-fallback--danger  { background: var(--color-danger); }
.notification-card__avatar-fallback--info    { background: var(--color-info); }
.notification-card__avatar-fallback--warning { background: var(--color-warning); }
.notification-card__avatar-fallback--secondary,
.notification-card__avatar-fallback--dark    { background: var(--color-text-soft); }

.notification-card__avatar-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 50%;
    background: var(--nc-accent);
    border: 2px solid var(--nc-surface);
}

/* ---------- Body ---------- */
.notification-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    min-width: 0;
    align-self: center;
}

.notification-card__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex-wrap: wrap;
}

.notification-card__title {
    margin: 0;
    color: var(--color-text);
    font-size: var(--font-size-rem-088);
    font-weight: var(--font-semibold);
    letter-spacing: -0.005em;
    line-height: 1.3;
    word-break: break-word;
}

.notification-card__pill {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.5rem;
    border-radius: var(--nc-radius-pill);
    border: 1px solid rgba(var(--nc-accent-rgb), 0.2);
    background: rgba(var(--nc-accent-rgb), 0.08);
    color: var(--nc-accent);
    font-size: var(--font-size-rem-062);
    font-weight: var(--font-bold);
    line-height: 1.1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.notification-card__message {
    margin: 0;
    color: var(--color-text-soft);
    font-size: var(--font-size-rem-078);
    line-height: 1.4;
    font-weight: var(--font-normal);
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-card__meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    color: var(--color-text-muted);
    font-size: var(--font-size-rem-068);
    font-weight: var(--font-medium);
    margin-top: 0.1rem;
}

.notification-card__sender {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.notification-card__sender-dot {
    width: 0.32rem;
    height: 0.32rem;
    border-radius: 50%;
    background: var(--nc-accent);
}

.notification-card__time {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
}

.notification-card__time-icon {
    font-size: 0.85em;
    opacity: 0.85;
}

/* ---------- Trail (right column: badge + absolute timestamp) ---------- */
.notification-card__trail {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.32rem;
    min-width: 0;
    align-self: center;
}

.notification-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.14rem 0.45rem;
    border-radius: var(--nc-radius-pill);
    background: rgba(var(--nc-accent-rgb), 0.1);
    color: var(--nc-accent);
    font-size: var(--font-size-rem-062);
    font-weight: var(--font-bold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
}

.notification-card__badge-dot {
    width: 0.32rem;
    height: 0.32rem;
    border-radius: 50%;
    background: var(--nc-accent);
}

.notification-card__timestamp {
    color: var(--color-text-muted);
    font-size: var(--font-size-rem-068);
    font-weight: var(--font-medium);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* ---------- Footer + pagination ---------- */
.notification-center__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.62rem 0.95rem;
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius-lg);
    background: var(--nc-surface);
    box-shadow: var(--nc-shadow);
}

.notification-center__pagination-info {
    color: var(--color-text-muted);
    font-size: var(--font-size-rem-072);
    font-weight: var(--font-medium);
    font-variant-numeric: tabular-nums;
}

.notification-center__pagination .pagination {
    --bs-pagination-padding-x: 0.55rem;
    --bs-pagination-padding-y: 0.28rem;
    --bs-pagination-font-size: var(--font-size-rem-072);
    --bs-pagination-color: var(--color-text-soft);
    --bs-pagination-bg: var(--color-white);
    --bs-pagination-border-color: rgba(var(--color-text-faint-rgb), 0.18);
    --bs-pagination-border-radius: 0.5rem;
    --bs-pagination-hover-color: var(--nc-accent);
    --bs-pagination-hover-bg: rgba(var(--nc-accent-rgb), 0.06);
    --bs-pagination-hover-border-color: rgba(var(--nc-accent-rgb), 0.28);
    --bs-pagination-active-color: var(--color-white);
    --bs-pagination-active-bg: var(--nc-accent);
    --bs-pagination-active-border-color: var(--nc-accent);
    --bs-pagination-disabled-color: var(--color-text-muted);
    --bs-pagination-disabled-bg: var(--color-surface-soft, rgba(var(--color-rgb-248-250-252), 0.6));
    --bs-pagination-disabled-border-color: rgba(var(--color-text-faint-rgb), 0.12);
    margin: 0;
    gap: 0.22rem;
    flex-wrap: wrap;
}

.notification-center__pagination .page-item .page-link {
    min-width: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-semibold);
    box-shadow: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.notification-center__pagination .page-item.active .page-link {
    box-shadow: 0 4px 10px rgba(var(--nc-accent-rgb), 0.18);
}

.notification-center__pagination svg {
    width: 0.85rem;
    height: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
    .notification-center {
        padding: 0.75rem 0 1rem;
        gap: 0.75rem;
    }

    .notification-center__header {
        flex-direction: column;
        align-items: stretch;
        padding: 0.85rem 0.95rem;
    }

    .notification-center__actions {
        width: 100%;
    }

    .notification-center__action {
        flex: 1 1 auto;
        justify-content: center;
    }

    .notification-card__link {
        grid-template-columns: 0.18rem 2.1rem minmax(0, 1fr);
        grid-template-rows: auto auto;
        gap: 0.6rem;
        padding: 0.6rem 0.78rem 0.6rem 0;
    }

    .notification-card__avatar,
    .notification-card__avatar-img,
    .notification-card__avatar-fallback {
        width: 2.1rem;
        height: 2.1rem;
    }

    .notification-card__trail {
        grid-column: 2 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 0.55rem;
        padding-top: 0.2rem;
        border-top: 1px dashed var(--nc-border);
        margin-top: 0.1rem;
    }

    .notification-card__title {
        font-size: var(--font-size-rem-088);
    }

    .notification-card__message {
        font-size: var(--font-size-rem-078);
    }

    .notification-center__footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .notification-center__pagination {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .notification-card__head {
        gap: 0.35rem;
    }

    .notification-card__pill {
        font-size: var(--font-size-rem-062);
        padding: 0.12rem 0.45rem;
    }

    .notification-card__badge {
        font-size: var(--font-size-rem-062);
    }

    .notification-card__timestamp {
        font-size: var(--font-size-rem-068);
    }
}

/* ============================================================
   Wallet Card Finish — premium "feels like a wallet" treatment
   for the admin Active Wallet Balances grid
   ============================================================ */
.admin-dashboard .wallet-card-finish {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(85% 60% at 100% 0%, rgba(var(--module-accent-rgb), 0.06), transparent 55%),
        var(--color-white) !important;
}

.admin-dashboard .wallet-card-finish::before {
    content: none;
}

.admin-dashboard .wallet-card-finish__chip {
    position: absolute;
    top: 0.75rem;
    right: 0.85rem;
    width: 1.95rem;
    height: 1.45rem;
    border-radius: 0.32rem;
    background: linear-gradient(135deg, rgba(var(--module-accent-rgb), 0.18), rgba(var(--module-accent-rgb), 0.06));
    border: 1px solid rgba(var(--module-accent-rgb), 0.22);
    box-shadow: inset 0 1px 0 rgba(var(--color-white-rgb), 0.6);
    opacity: 0.85;
    z-index: 1;
    pointer-events: none;
}

.admin-dashboard .wallet-card-finish__chip::before,
.admin-dashboard .wallet-card-finish__chip::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 1px;
    background: rgba(var(--module-accent-rgb), 0.28);
}

.admin-dashboard .wallet-card-finish__chip::before {
    top: 32%;
}

.admin-dashboard .wallet-card-finish__chip::after {
    top: 60%;
}

.admin-dashboard .wallet-card-finish__sheen {
    position: absolute;
    right: -25%;
    bottom: -40%;
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(var(--module-accent-rgb), 0.07), transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.admin-dashboard .wallet-card-finish .card-body > *:not(.wallet-card-finish__chip):not(.wallet-card-finish__sheen) {
    position: relative;
    z-index: 2;
}

/* Refine the per-currency icon to match the wallet look */
.admin-dashboard .wallet-card-finish .wallet-summary-card__icon-frame {
    background: rgba(var(--module-accent-rgb), 0.1) !important;
    border: 1px solid rgba(var(--module-accent-rgb), 0.18) !important;
    border-radius: 0.75rem !important;
}

.admin-dashboard .wallet-card-finish .wallet-summary-card__amount {
    align-items: baseline;
}

.admin-dashboard .wallet-card-finish .wallet-summary-card__amount-main {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.admin-dashboard .wallet-card-finish .wallet-summary-card__balance-caption {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--module-accent);
    font-weight: var(--font-bold);
    font-size: var(--font-size-rem-062);
}

.admin-dashboard .wallet-card-finish .wallet-summary-card__rate {
    color: var(--color-text-muted);
}

.admin-dashboard .wallet-card-finish .wallet-summary-card__rate-icon {
    color: var(--module-accent);
}

.admin-dashboard .wallet-card-finish .wallet-summary-card__type-chip {
    background: rgba(var(--module-accent-rgb), 0.08) !important;
    border: 1px solid rgba(var(--module-accent-rgb), 0.18) !important;
    color: var(--module-accent) !important;
    font-variant-numeric: tabular-nums;
}

.admin-dashboard .wallet-card-finish--default {
    background:
        radial-gradient(85% 60% at 100% 0%, rgba(var(--module-accent-rgb), 0.1), transparent 55%),
        linear-gradient(180deg, rgba(var(--module-accent-rgb), 0.04), var(--color-white)) !important;
    border-color: rgba(var(--module-accent-rgb), 0.28) !important;
}

.admin-dashboard .wallet-card-finish--default::before {
    content: none;
}

.admin-dashboard .wallet-card-finish--default .wallet-card-finish__chip {
    opacity: 1;
}

/* Per-currency accent — color-vary the cards using deterministic hash of code */
.admin-dashboard .wallet-summary-grid__item:nth-child(6n+1) .wallet-card-finish { --module-accent: #2563eb; --module-accent-rgb: 37, 99, 235; }
.admin-dashboard .wallet-summary-grid__item:nth-child(6n+2) .wallet-card-finish { --module-accent: #10b981; --module-accent-rgb: 16, 185, 129; }
.admin-dashboard .wallet-summary-grid__item:nth-child(6n+3) .wallet-card-finish { --module-accent: #f59e0b; --module-accent-rgb: 245, 158, 11; }
.admin-dashboard .wallet-summary-grid__item:nth-child(6n+4) .wallet-card-finish { --module-accent: #8b5cf6; --module-accent-rgb: 139, 92, 246; }
.admin-dashboard .wallet-summary-grid__item:nth-child(6n+5) .wallet-card-finish { --module-accent: #0f766e; --module-accent-rgb: 15, 118, 110; }
.admin-dashboard .wallet-summary-grid__item:nth-child(6n+6) .wallet-card-finish { --module-accent: #db2777; --module-accent-rgb: 219, 39, 119; }

/* Default currency always uses the brand color */
.admin-dashboard .wallet-summary-grid__item .wallet-card-finish--default {
    --module-accent: var(--color-primary);
    --module-accent-rgb: var(--color-primary-rgb);
}

/* Grid: tighter on dashboard, scrollable cap stays */
.admin-dashboard .wallet-summary-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr));
}

@media (max-width: 575.98px) {
    .admin-dashboard .wallet-card-finish__chip {
        top: 0.6rem;
        right: 0.65rem;
        width: 1.7rem;
        height: 1.25rem;
    }

    .admin-dashboard .wallet-card-finish__sheen {
        display: none;
    }
}

/* ============================================================
   Wallet grid v2 — 3-up horizontal scroll, compact cards
   ============================================================ */
.admin-dashboard .wallet-summary-grid {
    --wallet-card-min: clamp(15rem, 32%, 21rem);
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0.6rem !important;
    padding: 0.65rem 0.85rem 0.85rem !important;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--color-text-faint-rgb), 0.28) transparent;
    scrollbar-gutter: stable;
}

.admin-dashboard .wallet-summary-grid::-webkit-scrollbar {
    height: 0.42rem;
}

.admin-dashboard .wallet-summary-grid::-webkit-scrollbar-track {
    background: transparent;
}

.admin-dashboard .wallet-summary-grid::-webkit-scrollbar-thumb {
    background: rgba(var(--color-text-faint-rgb), 0.28);
    border-radius: 999px;
}

.admin-dashboard .wallet-summary-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--color-text-faint-rgb), 0.5);
}

.admin-dashboard .wallet-summary-grid--scrollable {
    max-height: none;
    overflow-y: hidden;
}

.admin-dashboard .wallet-summary-grid__item {
    flex: 0 0 calc((100% - (2 * 0.6rem)) / 3);
    min-width: 16rem;
    max-width: 22rem;
    scroll-snap-align: start;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card .card-body {
    min-height: 0 !important;
    gap: 0.42rem !important;
    padding: 0.7rem 0.78rem !important;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__top-row {
    gap: 0.5rem !important;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__currency-group {
    min-width: 0 !important;
    gap: 0.55rem;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__icon-frame {
    width: 2.25rem;
    height: 2.25rem;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__icon-frame .wallet-summary-card__icon-shell,
.admin-dashboard .wallet-summary-grid .wallet-summary-card__icon-frame .wallet-summary-card__currency-icon {
    width: 1.55rem;
    height: 1.55rem;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__title {
    font-size: var(--font-size-rem-095);
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__subtitle {
    font-size: var(--font-size-rem-068);
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__balance-row {
    padding-top: 0 !important;
    margin-top: 0.1rem;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__balance-caption {
    margin-bottom: 0.05rem !important;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__amount-main {
    font-size: var(--font-size-rem-118);
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__amount-symbol {
    font-size: var(--font-size-rem-088);
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__amount-fraction {
    font-size: var(--font-size-rem-072);
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__footer {
    margin-top: 0.18rem;
    gap: 0.4rem;
    flex-wrap: wrap;
    padding-top: 0.45rem !important;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__rate {
    flex: 1 1 100%;
    gap: 0.35rem;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__rate-text {
    font-size: var(--font-size-rem-068);
    line-height: 1.2;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__type-chip {
    margin-left: 0;
    font-size: var(--font-size-rem-062);
    padding: 0.16rem 0.5rem;
}

/* ---- Status badge fix ---- */
.admin-dashboard .wallet-summary-card__status-badge--currency {
    min-height: 1.25rem !important;
    padding: 0.16rem 0.5rem !important;
    border-radius: 999px !important;
    border-style: solid !important;
    background: rgba(var(--color-success-rgb), 0.1) !important;
    border: 1px solid rgba(var(--color-success-rgb), 0.24) !important;
    color: var(--color-success-deep, var(--color-success)) !important;
    font-size: var(--font-size-rem-058) !important;
    letter-spacing: 0.08em !important;
    box-shadow: none !important;
    gap: 0.32rem;
}

.admin-dashboard .wallet-summary-card__status-badge--currency.is-disabled {
    background: rgba(var(--color-danger-rgb), 0.08) !important;
    border-color: rgba(var(--color-danger-rgb), 0.22) !important;
    color: var(--color-danger) !important;
}

.admin-dashboard .wallet-summary-card__status-dot {
    width: 0.36rem;
    height: 0.36rem;
    background: currentColor;
    border-radius: 50%;
}

.admin-dashboard .wallet-summary-card__account-badge {
    padding: 0.18rem 0.5rem;
    font-size: var(--font-size-rem-068);
    border-radius: 999px;
    background: rgba(var(--color-text-faint-rgb), 0.08);
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.16);
    color: var(--color-text-soft);
}

/* ---- Wallet finish: keep chip + sheen visually quiet in compact mode ---- */
.admin-dashboard .wallet-card-finish__chip {
    top: 0.62rem;
    right: 0.65rem;
    width: 1.6rem;
    height: 1.15rem;
}

.admin-dashboard .wallet-card-finish__sheen {
    width: 9rem;
    height: 9rem;
    right: -22%;
    bottom: -35%;
}

@media (max-width: 991.98px) {
    .admin-dashboard .wallet-summary-grid__item {
        flex: 0 0 calc((100% - 0.6rem) / 2);
        min-width: 15rem;
    }
}

@media (max-width: 575.98px) {
    .admin-dashboard .wallet-summary-grid {
        padding: 0.55rem 0.65rem 0.7rem !important;
        gap: 0.5rem !important;
    }

    .admin-dashboard .wallet-summary-grid__item {
        flex: 0 0 85%;
        min-width: 0;
        max-width: 92%;
    }
}

/* ============================================================
   Wallet rail v4 — header-mounted arrow controls,
   hidden scrollbar, click-and-drag scrolling
   ============================================================ */

/* Hide scrollbar but keep scrolling functional */
[data-wallet-rail] [data-wallet-rail-track] {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    scroll-behavior: smooth;
    cursor: grab;
    user-select: none;
}

[data-wallet-rail] [data-wallet-rail-track].is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

[data-wallet-rail] [data-wallet-rail-track]::-webkit-scrollbar {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
}

/* Disable text selection on cards while dragging */
[data-wallet-rail] [data-wallet-rail-track].is-dragging * {
    pointer-events: none;
}

/* Arrow buttons mounted inside the section header (no overlap with cards) */
.admin-dashboard .wallet-summary-shell__rail-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    margin-left: 0.45rem;
}

.admin-dashboard .wallet-summary-shell__rail-btn {
    width: 1.85rem;
    height: 1.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    background: var(--color-white);
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.22);
    color: var(--color-text-soft);
    font-size: 0.72rem;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(var(--color-text-rgb), 0.04);
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.admin-dashboard .wallet-summary-shell__rail-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.admin-dashboard .wallet-summary-shell__rail-btn[disabled] {
    opacity: 0.4;
    pointer-events: none;
}

/* Hide the rail-control cluster when there's nothing to scroll */
[data-wallet-rail]:not(.is-scrollable) .wallet-summary-shell__rail-controls {
    display: none;
}

/* ---- Shorter, tighter cards ---- */
.admin-dashboard .wallet-summary-grid {
    padding: 0.7rem 1rem 0.85rem !important;
    gap: 0.7rem !important;
    scroll-padding-left: 1rem;
    scroll-padding-right: 1rem;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-grid__item {
    scroll-snap-align: start;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card .card-body {
    padding: 0.6rem 0.7rem !important;
    gap: 0.34rem !important;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__top-row {
    gap: 0.42rem !important;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__icon-frame {
    width: 2rem;
    height: 2rem;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__icon-frame .wallet-summary-card__icon-shell,
.admin-dashboard .wallet-summary-grid .wallet-summary-card__icon-frame .wallet-summary-card__currency-icon {
    width: 1.35rem;
    height: 1.35rem;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__title {
    font-size: var(--font-size-rem-088);
    line-height: 1.15;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__subtitle {
    font-size: var(--font-size-rem-062);
    line-height: 1.2;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__balance-row {
    margin-top: 0 !important;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__balance-caption {
    font-size: 0.56rem !important;
    margin-bottom: 0 !important;
    letter-spacing: 0.1em;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__amount-main {
    font-size: var(--font-size-rem-112);
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__amount-symbol {
    font-size: var(--font-size-rem-082);
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__amount-fraction {
    font-size: var(--font-size-rem-068);
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__footer {
    padding-top: 0.35rem !important;
    margin-top: 0.1rem;
    gap: 0.3rem;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__rate-text {
    font-size: var(--font-size-rem-062);
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__type-chip {
    font-size: 0.56rem;
    padding: 0.12rem 0.45rem;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__account-badge {
    padding: 0.14rem 0.42rem;
    font-size: var(--font-size-rem-062);
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__status-badge--currency {
    min-height: 1.1rem !important;
    padding: 0.12rem 0.42rem !important;
    font-size: 0.54rem !important;
    letter-spacing: 0.06em !important;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__status-dot {
    width: 0.3rem;
    height: 0.3rem;
}

/* Tone down the decorative chip + sheen further on compact cards */
.admin-dashboard .wallet-summary-grid .wallet-card-finish__chip {
    top: 0.55rem;
    right: 0.55rem;
    width: 1.35rem;
    height: 1rem;
    opacity: 0.55;
}

.admin-dashboard .wallet-summary-grid .wallet-card-finish__sheen {
    display: none;
}

/* ============================================================
   Wallet card v5 — rearranged premium layout
   - Cleaner hierarchy: identity row · balance hero · meta footer
   - Soft accent surface (no left strip, no ornament chip)
   - Refined divider before the conversion line
   ============================================================ */

/* Remove the decorative chip ornament — cards now lean on typography + soft surface */
.admin-dashboard .wallet-summary-grid .wallet-card-finish__chip {
    display: none;
}

/* Card surface: very soft accent tint, single border, no shadow */
.admin-dashboard .wallet-summary-grid .wallet-card-finish {
    background:
        radial-gradient(110% 70% at 100% 0%, rgba(var(--module-accent-rgb), 0.05), transparent 60%),
        var(--color-white) !important;
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.14) !important;
    box-shadow: none !important;
    border-radius: 0.85rem !important;
    transition: border-color 0.18s ease;
}

.admin-dashboard .wallet-summary-grid .wallet-card-finish:hover {
    border-color: rgba(var(--module-accent-rgb), 0.28) !important;
    box-shadow: none !important;
    transform: none !important;
}

.admin-dashboard .wallet-summary-grid .wallet-card-finish--default {
    background:
        radial-gradient(110% 70% at 100% 0%, rgba(var(--module-accent-rgb), 0.08), transparent 60%),
        var(--color-white) !important;
    border-color: rgba(var(--module-accent-rgb), 0.22) !important;
}

/* Identity row: icon · code/name · spacer · status + count */
.admin-dashboard .wallet-summary-grid .wallet-summary-card__top-row {
    align-items: center !important;
    padding-bottom: 0.42rem;
    border-bottom: 1px solid rgba(var(--color-text-faint-rgb), 0.08);
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__currency-group {
    gap: 0.55rem;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__icon-frame {
    border-radius: 0.62rem !important;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__overview {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    min-width: 0;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__title {
    color: var(--color-text);
    letter-spacing: -0.005em;
    font-weight: var(--font-semibold);
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__pill {
    background: rgba(var(--module-accent-rgb), 0.08) !important;
    border: 1px solid rgba(var(--module-accent-rgb), 0.22) !important;
    color: var(--module-accent) !important;
    font-size: 0.54rem !important;
    padding: 0.1rem 0.4rem !important;
    letter-spacing: 0.06em;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__subtitle {
    color: var(--color-text-muted);
    font-weight: var(--font-medium);
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__meta-group {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    flex-wrap: nowrap !important;
}

/* Balance hero: caption smaller, amount more dominant */
.admin-dashboard .wallet-summary-grid .wallet-summary-card__balance-row {
    padding-top: 0.45rem !important;
    margin-top: 0 !important;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__balance-stack {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__balance-caption {
    color: var(--module-accent);
    font-weight: var(--font-bold);
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__amount {
    align-items: baseline;
    line-height: 1.05;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__amount-symbol {
    color: var(--color-text);
    font-weight: var(--font-bold);
    margin-right: 0.04rem;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__amount-main {
    color: var(--color-text);
    font-weight: var(--font-extrabold, 800);
    letter-spacing: -0.02em;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__amount-fraction {
    color: rgba(var(--color-text-rgb), 0.38);
    font-weight: var(--font-semibold);
}

/* Footer: clean line divider, conversion + rate chip on one row */
.admin-dashboard .wallet-summary-grid .wallet-summary-card__footer {
    padding-top: 0.5rem !important;
    margin-top: 0.45rem;
    border-top: 1px dashed rgba(var(--color-text-faint-rgb), 0.18);
    align-items: center;
    justify-content: space-between;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__rate {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    min-width: 0;
    flex: 1 1 auto;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__rate-icon {
    color: var(--module-accent);
    font-size: 0.78em;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__rate-text {
    color: var(--color-text-muted);
    font-weight: var(--font-medium);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.admin-dashboard .wallet-summary-grid .wallet-summary-card__type-chip {
    flex: 0 0 auto;
    background: rgba(var(--module-accent-rgb), 0.07) !important;
    border: 1px solid rgba(var(--module-accent-rgb), 0.18) !important;
    color: var(--module-accent) !important;
    border-radius: 999px !important;
    font-weight: var(--font-semibold);
}

/* ============================================================
   Payment Gateways — premium soft polish
   Flatten the dark hero, lighten typography, refine cards
   ============================================================ */

/* Hero — light premium surface instead of dark gradient */
.pgw-hero {
    color: var(--color-text) !important;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(var(--color-primary-rgb), 0.06), transparent 55%),
        linear-gradient(180deg, var(--color-white), var(--color-surface-soft, rgba(var(--color-rgb-248-250-252), 0.7))) !important;
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.14) !important;
    box-shadow: 0 1px 2px rgba(var(--color-text-rgb), 0.02), 0 8px 22px rgba(var(--color-text-rgb), 0.04) !important;
    padding: 18px 22px !important;
    border-radius: 14px !important;
}

.pgw-eyebrow {
    color: var(--color-primary) !important;
    font-weight: var(--font-bold) !important;
    letter-spacing: 0.1em;
    margin-bottom: 4px !important;
}

.pgw-hero h1 {
    color: var(--color-text) !important;
    font-size: var(--font-size-px-22, 1.4rem) !important;
    font-weight: var(--font-semibold) !important;
    letter-spacing: -0.01em !important;
}

.pgw-hero p {
    color: var(--color-text-muted) !important;
    font-size: var(--font-size-rem-082) !important;
    line-height: 1.45 !important;
    margin-top: 4px !important;
}

/* Hero stat tiles — flat soft boxes */
.pgw-hero__stats {
    gap: 0.5rem !important;
}

.pgw-hero__stats > div {
    padding: 0.55rem 0.78rem !important;
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.14) !important;
    border-radius: 0.7rem !important;
    background: var(--color-white) !important;
    box-shadow: none !important;
}

.pgw-hero__stats span {
    color: var(--color-text-muted) !important;
    font-size: 0.62rem !important;
    font-weight: var(--font-semibold) !important;
    letter-spacing: 0.1em;
}

.pgw-hero__stats strong {
    color: var(--color-text) !important;
    font-size: 1.18rem !important;
    font-weight: var(--font-semibold) !important;
    margin-top: 2px !important;
}

/* Hero actions — refined buttons */
.pgw-hero__actions .btn,
.pgw-manage-btn {
    min-height: 2.15rem !important;
    padding: 0.4rem 0.95rem !important;
    border-radius: 0.6rem !important;
    font-weight: var(--font-semibold) !important;
    font-size: var(--font-size-rem-08) !important;
    box-shadow: none !important;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.pgw-hero__actions .btn-light {
    background: var(--color-white) !important;
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.2) !important;
    color: var(--color-text-soft) !important;
}

.pgw-hero__actions .btn-light:hover {
    background: var(--color-surface-soft, rgba(var(--color-rgb-248-250-252), 0.85)) !important;
    border-color: rgba(var(--color-text-faint-rgb), 0.3) !important;
    color: var(--color-text) !important;
}

.pgw-hero__actions .btn-success {
    background: var(--color-success) !important;
    border-color: var(--color-success) !important;
}

.pgw-hero__actions .btn-success:hover {
    background: var(--color-success-deep, var(--color-success)) !important;
    border-color: var(--color-success-deep, var(--color-success)) !important;
}

/* Board */
.pgw-board {
    padding: 0.95rem 1.05rem 1.05rem !important;
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.14) !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 2px rgba(var(--color-text-rgb), 0.02), 0 8px 22px rgba(var(--color-text-rgb), 0.035) !important;
}

.pgw-board__head h2 {
    font-size: 1.05rem !important;
    font-weight: var(--font-semibold) !important;
    letter-spacing: -0.005em;
}

.pgw-board__head p {
    font-size: var(--font-size-rem-078) !important;
    color: var(--color-text-muted) !important;
}

.pgw-board__head > span {
    min-height: 1.65rem !important;
    padding: 0.22rem 0.7rem !important;
    background: rgba(var(--color-primary-rgb), 0.08) !important;
    color: var(--color-primary) !important;
    font-size: var(--font-size-rem-072) !important;
    font-weight: var(--font-semibold) !important;
    border: 1px solid rgba(var(--color-primary-rgb), 0.16);
}

/* Card grid — slightly tighter rhythm */
.pgw-grid {
    gap: 0.7rem !important;
}

/* Card — flat white, soft border, no hover lift */
.pgw-card {
    background: var(--color-white) !important;
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.14) !important;
    border-radius: 0.85rem !important;
    box-shadow: none !important;
    padding: 0.85rem 0.9rem !important;
    gap: 0.78rem !important;
    transition: border-color 0.18s ease !important;
}

.pgw-card:hover {
    border-color: rgba(var(--color-primary-rgb), 0.24) !important;
    box-shadow: none !important;
    transform: none !important;
}

.pgw-card .pgw-gateway__logo {
    width: 2.35rem !important;
    height: 2.35rem !important;
    border-radius: 0.7rem !important;
    border-color: rgba(var(--color-text-faint-rgb), 0.14) !important;
}

.pgw-card .pgw-gateway strong {
    font-size: var(--font-size-rem-095) !important;
    font-weight: var(--font-semibold) !important;
    color: var(--color-text) !important;
}

.pgw-card .pgw-gateway span {
    font-size: var(--font-size-rem-062) !important;
    font-weight: var(--font-semibold) !important;
    color: var(--color-text-muted) !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Status — quieter pills */
.pgw-status {
    font-size: var(--font-size-rem-062) !important;
    font-weight: var(--font-semibold) !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid transparent;
    box-shadow: none;
}

.pgw-status--success {
    background: rgba(var(--color-success-rgb), 0.08) !important;
    border-color: rgba(var(--color-success-rgb), 0.2) !important;
    color: var(--color-success-deep, var(--color-success)) !important;
}

.pgw-status--danger {
    background: rgba(var(--color-danger-rgb), 0.08) !important;
    border-color: rgba(var(--color-danger-rgb), 0.2) !important;
    color: var(--color-danger) !important;
}

.pgw-status span {
    width: 0.32rem !important;
    height: 0.32rem !important;
    background: currentColor !important;
}

/* Meta — softer tiles */
.pgw-card__meta {
    gap: 0.45rem !important;
}

.pgw-card__meta > div {
    padding: 0.55rem 0.7rem !important;
    background: var(--color-surface-soft, rgba(var(--color-rgb-248-250-252), 0.6)) !important;
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.12) !important;
    border-radius: 0.62rem !important;
}

.pgw-card__meta span,
.pgw-card__label {
    color: var(--color-text-muted) !important;
    font-size: 0.6rem !important;
    font-weight: var(--font-semibold) !important;
    letter-spacing: 0.08em;
}

.pgw-card__meta strong {
    margin-top: 2px !important;
    font-size: var(--font-size-rem-088) !important;
    font-weight: var(--font-semibold) !important;
    color: var(--color-text) !important;
}

/* Supported currency chips — soft, no extrabold */
.pgw-chip {
    min-height: 1.4rem !important;
    padding: 0.16rem 0.55rem !important;
    background: rgba(var(--color-primary-rgb), 0.06) !important;
    border: 1px solid rgba(var(--color-primary-rgb), 0.16) !important;
    color: var(--color-primary) !important;
    font-size: var(--font-size-rem-062) !important;
    font-weight: var(--font-semibold) !important;
    letter-spacing: 0.04em;
}

.pgw-chip--more {
    background: rgba(var(--color-text-faint-rgb), 0.08) !important;
    border-color: rgba(var(--color-text-faint-rgb), 0.18) !important;
    color: var(--color-text-soft) !important;
}

.pgw-chip--muted {
    background: rgba(var(--color-text-faint-rgb), 0.08) !important;
    color: var(--color-text-muted) !important;
}

.pgw-card .pgw-chips {
    gap: 0.32rem !important;
}

/* Manage Credentials button — refined primary */
.pgw-card .pgw-manage-btn {
    min-height: 2.1rem !important;
    border-radius: 0.55rem !important;
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: var(--color-white) !important;
    font-weight: var(--font-semibold) !important;
    font-size: var(--font-size-rem-08) !important;
    box-shadow: none !important;
    transition: background 0.18s ease, border-color 0.18s ease !important;
}

.pgw-card .pgw-manage-btn:hover {
    background: var(--color-primary-hover, var(--color-primary)) !important;
    border-color: var(--color-primary-hover, var(--color-primary)) !important;
    color: var(--color-white) !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Section labels (SUPPORTED CURRENCIES) — quieter */
.pgw-card__label {
    color: var(--color-text-muted) !important;
    font-size: 0.6rem !important;
}

@media (max-width: 1199.98px) {
    .pgw-hero h1 { font-size: 1.25rem !important; }
}

/* ============================================================
   Payment Gateways v3 — hero refresh + tone-aware meta tiles
   ============================================================ */

/* Hero — premium soft surface with framed structure */
.pgw-hero {
    position: relative;
    overflow: hidden;
    padding: 1.05rem 1.35rem !important;
    border-radius: 1rem !important;
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.12) !important;
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(var(--color-primary-rgb), 0.07), transparent 55%),
        radial-gradient(80% 60% at 0% 100%, rgba(var(--color-success-rgb), 0.05), transparent 60%),
        var(--color-white) !important;
    box-shadow: 0 1px 2px rgba(var(--color-text-rgb), 0.02), 0 12px 28px rgba(var(--color-text-rgb), 0.04) !important;
}

.pgw-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1.35rem;
    right: 1.35rem;
    height: 2px;
    background: linear-gradient(90deg, rgba(var(--color-primary-rgb), 0.55), rgba(var(--color-primary-rgb), 0));
    border-radius: 999px;
}

.pgw-hero__content {
    padding-right: 0.5rem;
}

.pgw-eyebrow {
    font-size: 0.6rem !important;
    letter-spacing: 0.16em !important;
    margin-bottom: 0.32rem !important;
}

.pgw-hero h1 {
    font-size: 1.32rem !important;
    line-height: 1.18 !important;
    margin-top: 0 !important;
}

.pgw-hero p {
    font-size: var(--font-size-rem-08) !important;
    line-height: 1.5 !important;
    max-width: 46rem;
    color: var(--color-text-muted) !important;
}

/* Hero stat tiles — refined card-look with subtle accent label dot */
.pgw-hero__stats {
    gap: 0.6rem !important;
}

.pgw-hero__stats > div {
    position: relative;
    padding: 0.6rem 0.85rem 0.55rem !important;
    border-radius: 0.72rem !important;
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.14) !important;
    background: linear-gradient(180deg, var(--color-white), rgba(var(--color-rgb-248-250-252), 0.6)) !important;
    min-width: 6rem;
}

.pgw-hero__stats > div::before {
    content: "";
    position: absolute;
    top: 0.55rem;
    left: 0.85rem;
    width: 0.32rem;
    height: 0.32rem;
    border-radius: 50%;
    background: var(--color-primary);
    opacity: 0.55;
}

.pgw-hero__stats > div:nth-child(2)::before { background: var(--color-warning, #f59e0b); }
.pgw-hero__stats > div:nth-child(3)::before { background: var(--color-success); }

.pgw-hero__stats span {
    padding-left: 0.6rem;
    color: var(--color-text-muted) !important;
    font-size: 0.6rem !important;
    font-weight: var(--font-bold) !important;
    letter-spacing: 0.14em;
}

.pgw-hero__stats strong {
    margin-top: 0.18rem !important;
    color: var(--color-text) !important;
    font-size: 1.32rem !important;
    font-weight: var(--font-bold) !important;
    line-height: 1;
    letter-spacing: -0.01em;
}

/* Hero actions */
.pgw-hero__actions {
    gap: 0.55rem !important;
}

.pgw-hero__actions .btn {
    min-height: 2.25rem !important;
    padding: 0.45rem 1rem !important;
    border-radius: 0.7rem !important;
}

/* Meta tile — icon + copy layout with tone colors */
.pgw-card__meta {
    gap: 0.5rem !important;
}

.pgw-card__meta > .pgw-card__meta-tile {
    display: grid;
    grid-template-columns: 1.65rem minmax(0, 1fr);
    align-items: center;
    gap: 0.45rem;
    padding: 0.48rem 0.55rem !important;
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.12) !important;
    border-radius: 0.62rem !important;
    background: var(--color-surface-soft, rgba(var(--color-rgb-248-250-252), 0.6)) !important;
    min-width: 0;
}

.pgw-card__meta-icon {
    width: 1.65rem;
    height: 1.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: rgba(var(--color-text-faint-rgb), 0.1);
    color: var(--color-text-muted);
    font-size: 0.82rem;
}

.pgw-card__meta-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.pgw-card__meta-copy span {
    margin: 0 !important;
    color: var(--color-text-muted) !important;
    font-size: 0.56rem !important;
    font-weight: var(--font-bold) !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
}

.pgw-card__meta-copy strong {
    margin: 0 !important;
    font-size: var(--font-size-rem-082) !important;
    font-weight: var(--font-semibold) !important;
    letter-spacing: -0.005em;
    line-height: 1.15;
    color: var(--color-text);
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    word-break: normal;
}

/* Available — soft green */
.pgw-card__meta-tile--available {
    background: rgba(var(--color-success-rgb), 0.06) !important;
    border-color: rgba(var(--color-success-rgb), 0.2) !important;
}

.pgw-card__meta-tile--available .pgw-card__meta-icon {
    background: rgba(var(--color-success-rgb), 0.14);
    color: var(--color-success-deep, var(--color-success));
}

.pgw-card__meta-tile--available .pgw-card__meta-copy strong {
    color: var(--color-success-deep, var(--color-success));
}

/* Unavailable — soft rose */
.pgw-card__meta-tile--unavailable {
    background: rgba(var(--color-danger-rgb), 0.05) !important;
    border-color: rgba(var(--color-danger-rgb), 0.2) !important;
}

.pgw-card__meta-tile--unavailable .pgw-card__meta-icon {
    background: rgba(var(--color-danger-rgb), 0.12);
    color: var(--color-danger);
}

.pgw-card__meta-tile--unavailable .pgw-card__meta-copy strong {
    color: var(--color-danger);
}

/* Neutral (Currencies) — soft indigo so it visually balances the green/rose */
.pgw-card__meta-tile--neutral {
    background: rgba(var(--color-primary-rgb), 0.04) !important;
    border-color: rgba(var(--color-primary-rgb), 0.16) !important;
}

.pgw-card__meta-tile--neutral .pgw-card__meta-icon {
    background: rgba(var(--color-primary-rgb), 0.1);
    color: var(--color-primary);
}

.pgw-card__meta-tile--neutral .pgw-card__meta-copy strong {
    color: var(--color-primary);
}

/* ============================================================
   Gateway Credentials modal — Credential Health Check polish
   ============================================================ */

/* Stronger separation between modal panels */
.pgm-form {
    gap: 1rem !important;
}

.pgm-panel {
    background: var(--color-white);
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.14) !important;
    border-radius: 0.85rem !important;
    box-shadow: 0 1px 2px rgba(var(--color-text-rgb), 0.022), 0 6px 16px rgba(var(--color-text-rgb), 0.035);
}

/* Connection check panel — distinct accent surface */
.pgm-connection-check {
    position: relative;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(var(--color-primary-rgb), 0.05), transparent 55%),
        var(--color-white) !important;
    border-color: rgba(var(--color-primary-rgb), 0.18) !important;
}

.pgm-connection-check .pgm-panel__head {
    align-items: center;
    margin-bottom: 0.95rem;
}

.pgm-connection-check .pgm-panel__head h3 {
    font-size: 0.98rem !important;
    font-weight: var(--font-semibold) !important;
    letter-spacing: -0.005em;
}

.pgm-connection-check .pgm-panel__head p {
    margin-top: 0.2rem !important;
    color: var(--color-text-muted);
    font-size: var(--font-size-rem-078) !important;
    line-height: 1.4;
}

.pgm-connection-check .pgm-panel__pill {
    background: rgba(var(--color-primary-rgb), 0.08) !important;
    color: var(--color-primary) !important;
    border: 1px solid rgba(var(--color-primary-rgb), 0.18);
    font-size: 0.6rem !important;
    font-weight: var(--font-semibold) !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem !important;
    min-height: 1.55rem;
    gap: 0.35rem;
}

.pgm-connection-check .pgm-panel__pill--warning {
    background: rgba(var(--color-warning-rgb, 245, 158, 11), 0.1) !important;
    color: var(--color-warning, #b45309) !important;
    border-color: rgba(var(--color-warning-rgb, 245, 158, 11), 0.24);
}

.pgm-connection-check .pgm-panel__pill--success {
    background: rgba(var(--color-success-rgb), 0.1) !important;
    color: var(--color-success-deep, var(--color-success)) !important;
    border-color: rgba(var(--color-success-rgb), 0.24);
}

/* Control row */
.pgm-check-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem;
}

/* Segmented mode toggle (Current / Live / Sandbox) */
.pgm-mode-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.32rem;
    padding: 0.32rem;
    border-radius: 0.7rem;
    background: var(--color-surface-soft, rgba(var(--color-rgb-248-250-252), 0.7));
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.14);
    width: 100%;
}

.pgm-mode-group .btn-check {
    position: absolute !important;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.pgm-mode-option {
    flex: 1 1 0;
    min-width: 6rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.06rem;
    padding: 0.45rem 0.7rem;
    border-radius: calc(0.7rem - 0.18rem);
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    line-height: 1.15;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    margin: 0;
}

.pgm-mode-option span {
    font-size: var(--font-size-rem-082);
    font-weight: var(--font-semibold);
    color: inherit;
}

.pgm-mode-option small {
    font-size: 0.6rem;
    font-weight: var(--font-medium);
    color: var(--color-text-faint);
    letter-spacing: 0.02em;
}

.pgm-mode-option:hover {
    color: var(--color-text);
    background: rgba(var(--color-text-faint-rgb), 0.06);
}

.btn-check:checked + .pgm-mode-option {
    background: var(--color-white);
    color: var(--color-primary);
    box-shadow: 0 1px 2px rgba(var(--color-text-rgb), 0.04), 0 4px 12px rgba(var(--color-primary-rgb), 0.1);
}

.btn-check:checked + .pgm-mode-option small {
    color: var(--color-text-muted);
}

/* Validate button — refined outline-primary with icon */
.pgm-test-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.65rem;
    padding: 0.5rem 0.9rem !important;
    border-radius: 0.62rem !important;
    background: var(--color-white) !important;
    border: 1px solid rgba(var(--color-primary-rgb), 0.28) !important;
    color: var(--color-primary) !important;
    font-weight: var(--font-semibold);
    box-shadow: 0 1px 2px rgba(var(--color-primary-rgb), 0.06);
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.pgm-test-btn:hover,
.pgm-test-btn:focus {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: var(--color-white) !important;
    box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.22);
}

.pgm-test-btn:hover .pgm-test-btn__icon,
.pgm-test-btn:focus .pgm-test-btn__icon {
    background: rgba(var(--color-white-rgb), 0.2);
    color: var(--color-white);
}

.pgm-test-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    background: rgba(var(--color-primary-rgb), 0.1);
    color: var(--color-primary);
    font-size: 0.78rem;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.pgm-test-btn__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
    text-align: left;
}

.pgm-test-btn__content strong {
    font-size: var(--font-size-rem-082);
    font-weight: var(--font-semibold);
    color: inherit;
}

.pgm-test-btn__content small {
    margin-top: 1px;
    font-size: 0.58rem;
    color: var(--color-text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pgm-test-btn:hover .pgm-test-btn__content small,
.pgm-test-btn:focus .pgm-test-btn__content small {
    color: rgba(var(--color-white-rgb), 0.8);
}

/* Test result message panel */
.pgm-test-result {
    margin-top: 0.85rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0.62rem;
    border: 1px solid transparent;
    font-size: var(--font-size-rem-082);
    font-weight: var(--font-medium);
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.pgm-test-result.is-success {
    background: rgba(var(--color-success-rgb), 0.08);
    border-color: rgba(var(--color-success-rgb), 0.22);
    color: var(--color-success-deep, var(--color-success));
}

.pgm-test-result.is-error,
.pgm-test-result.is-danger {
    background: rgba(var(--color-danger-rgb), 0.07);
    border-color: rgba(var(--color-danger-rgb), 0.22);
    color: var(--color-danger);
}

.pgm-test-result.is-info {
    background: rgba(var(--color-info-rgb), 0.08);
    border-color: rgba(var(--color-info-rgb), 0.22);
    color: var(--color-info);
}

/* When result has no explicit state class (default success-ish look from screenshot) */
.pgm-test-result:not(.is-success):not(.is-error):not(.is-danger):not(.is-info):not(.d-none) {
    background: rgba(var(--color-success-rgb), 0.07);
    border-color: rgba(var(--color-success-rgb), 0.2);
    color: var(--color-success-deep, var(--color-success));
}

@media (max-width: 575.98px) {
    .pgm-check-control {
        grid-template-columns: 1fr;
    }

    .pgm-test-btn {
        width: 100%;
        justify-content: center;
    }

    .pgm-mode-option {
        min-width: 0;
    }
}

/* ============================================================
   Gateway Credentials modal — soft primary header + copy field
   ============================================================ */

/* Modal shell — soft surface */
.pgm-modal__content {
    background: var(--color-surface-soft, rgba(var(--color-rgb-248-250-252), 0.95)) !important;
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.14) !important;
    box-shadow: 0 24px 60px rgba(var(--color-text-rgb), 0.14) !important;
    border-radius: 1rem !important;
}

/* Header — soft primary tint, dark text */
.pgm-modal__header {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.85rem;
    color: var(--color-text) !important;
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(var(--color-primary-rgb), 0.12), transparent 55%),
        rgba(var(--color-primary-rgb), 0.05) !important;
    border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.14) !important;
    padding: 0.95rem 1.15rem !important;
}

.pgm-modal__header .pgm-modal__title {
    flex: 1 1 auto;
    min-width: 0;
}

.pgm-modal__icon {
    background: rgba(var(--color-primary-rgb), 0.12) !important;
    border: 1px solid rgba(var(--color-primary-rgb), 0.22) !important;
    color: var(--color-primary);
    width: 2.4rem !important;
    height: 2.4rem !important;
    border-radius: 0.7rem !important;
    box-shadow: inset 0 1px 0 rgba(var(--color-white-rgb), 0.7);
}

.pgm-modal__icon svg,
.pgm-modal__icon i {
    color: var(--color-primary) !important;
}

.pgm-modal__title h2 {
    color: var(--color-text) !important;
    font-size: 1.05rem !important;
    font-weight: var(--font-semibold) !important;
    letter-spacing: -0.005em;
}

.pgm-modal__title p {
    color: var(--color-text-muted) !important;
    font-size: var(--font-size-rem-078) !important;
    margin-top: 0.18rem !important;
    line-height: 1.4;
}

/* Close button — small soft-red with FA icon */
.pgm-modal__close {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-left: auto !important;
    width: 1.65rem !important;
    height: 1.65rem !important;
    border-radius: 50% !important;
    background: rgba(var(--color-danger-rgb), 0.1) !important;
    background-image: none !important;
    border: 1px solid rgba(var(--color-danger-rgb), 0.26) !important;
    color: var(--color-danger) !important;
    opacity: 1 !important;
    margin-top: 0;
    padding: 0 !important;
    cursor: pointer;
    font-size: 0.72rem;
    line-height: 1;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
    filter: none !important;
}

.pgm-modal__close i {
    color: inherit;
    font-size: inherit;
    line-height: 1;
}

.pgm-modal__close:hover,
.pgm-modal__close:focus {
    background: var(--color-danger) !important;
    border-color: var(--color-danger) !important;
    color: var(--color-white) !important;
    transform: scale(1.05);
}

/* ============================================================
   Payment Gateways hero — premium action buttons (tone-aware)
   ============================================================ */

.pgw-hero__actions {
    gap: 0.6rem !important;
}

.pgw-action {
    display: inline-grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.95rem 0.55rem 0.6rem;
    border-radius: 0.75rem;
    text-decoration: none;
    min-height: 2.65rem;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.pgw-action__icon {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.55rem;
    font-size: 0.82rem;
}

.pgw-action__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.04rem;
    line-height: 1.1;
    text-align: left;
}

.pgw-action__copy strong {
    font-size: var(--font-size-rem-082);
    font-weight: var(--font-semibold);
    letter-spacing: -0.005em;
    color: inherit;
}

.pgw-action__copy small {
    font-size: 0.58rem;
    font-weight: var(--font-bold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.78;
}

/* Deposit — soft green tone (money in) */
.pgw-action--deposit {
    background: rgba(var(--color-success-rgb), 0.08);
    border: 1px solid rgba(var(--color-success-rgb), 0.22);
    color: var(--color-success-deep, var(--color-success));
}

.pgw-action--deposit .pgw-action__icon {
    background: rgba(var(--color-success-rgb), 0.14);
    color: var(--color-success-deep, var(--color-success));
}

.pgw-action--deposit:hover,
.pgw-action--deposit:focus {
    background: var(--color-success-deep, var(--color-success));
    border-color: var(--color-success-deep, var(--color-success));
    color: var(--color-white);
}

.pgw-action--deposit:hover .pgw-action__icon,
.pgw-action--deposit:focus .pgw-action__icon {
    background: rgba(var(--color-white-rgb), 0.2);
    color: var(--color-white);
}

/* Withdraw — soft amber tone (money out) */
.pgw-action--withdraw {
    background: rgba(var(--color-warning-rgb, 245, 158, 11), 0.1);
    border: 1px solid rgba(var(--color-warning-rgb, 245, 158, 11), 0.26);
    color: var(--color-warning-deep, #b45309);
}

.pgw-action--withdraw .pgw-action__icon {
    background: rgba(var(--color-warning-rgb, 245, 158, 11), 0.18);
    color: var(--color-warning-deep, #b45309);
}

.pgw-action--withdraw:hover,
.pgw-action--withdraw:focus {
    background: var(--color-warning, #f59e0b);
    border-color: var(--color-warning, #f59e0b);
    color: var(--color-white);
}

.pgw-action--withdraw:hover .pgw-action__icon,
.pgw-action--withdraw:focus .pgw-action__icon {
    background: rgba(var(--color-white-rgb), 0.22);
    color: var(--color-white);
}

/* Hero accent line removed for a cleaner look */
.pgw-hero::before {
    display: none !important;
}


/* Webhook URL field + copy button — clean attached pair */
.pgm-copy-group {
    border: 1px solid rgba(var(--color-text-faint-rgb), 0.2);
    border-radius: 0.62rem;
    background: var(--color-white);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(var(--color-text-rgb), 0.025);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.pgm-copy-group:focus-within {
    border-color: rgba(var(--color-primary-rgb), 0.5);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1);
}

.pgm-copy-group .pgm-input,
.pgm-copy-group .form-control {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    min-height: 2.6rem !important;
    padding: 0.5rem 0.9rem !important;
    color: var(--color-text) !important;
    font-weight: var(--font-medium);
    font-family: var(--font-mono, monospace);
    font-size: var(--font-size-rem-082);
}

.pgm-copy-group .pgm-input:focus,
.pgm-copy-group .form-control:focus {
    box-shadow: none !important;
    border: 0 !important;
}

.pgm-copy-group .btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem !important;
    width: 2.6rem;
    border-radius: 0 !important;
    border: 0 !important;
    border-left: 1px solid rgba(var(--color-text-faint-rgb), 0.18) !important;
    background: rgba(var(--color-primary-rgb), 0.06) !important;
    color: var(--color-primary) !important;
    box-shadow: none !important;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.pgm-copy-group .btn:hover,
.pgm-copy-group .btn:focus {
    background: var(--color-primary) !important;
    color: var(--color-white) !important;
}

.pgm-copy-group .btn i {
    font-size: 0.95rem;
}

/* Set this webhook helper text — refined */
.pgm-help {
    margin-top: 0.45rem;
    font-size: var(--font-size-rem-072);
    color: var(--color-text-muted);
}



/* --------------------------------------------------------------------------
 * v2 polish - Control Panel header
 *
 * The title contrast fix sits next to its sibling `.header-title` rule
 * (see `.control-panel-header h1.header-title`) so anyone debugging the
 * black-on-dark bug finds the fix inline. This block trims the rest of
 * the hero so the compact polish matches Page Manager / Page Component
 * Library / Edit Page heroes - the hero is for orientation, not display.
 * -------------------------------------------------------------------------- */

.control-panel-header {
    padding: 1.1rem 1.25rem;
    border-radius: 18px;
}

@media (min-width: 1200px) {
    .control-panel-header {
        padding: 1.2rem 1.4rem;
    }
}

.control-panel-header::before {
    width: 220px;
    height: 220px;
    top: -120px;
    right: -90px;
}

.control-panel-header::after {
    width: 180px;
    height: 180px;
    bottom: -100px;
    left: -70px;
}

.control-panel-header .header-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
}

.control-panel-header .header-icon .icon {
    width: 20px;
    height: 20px;
}

.control-panel-header .header-kicker {
    padding: 0.22rem 0.55rem;
    margin-bottom: 0.4rem;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
}

.control-panel-header .header-title {
    font-size: clamp(1.3rem, 1.7vw, 1.55rem);
    letter-spacing: -0.022em;
    line-height: 1.12;
}

.control-panel-header .header-subtitle {
    margin-top: 0.28rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(var(--color-white-rgb), 0.74);
}

.control-panel-header .header-stat-card {
    min-width: 96px;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
}

.control-panel-header .stat-number {
    font-size: 1.3rem;
    margin-bottom: 0.22rem;
}

.control-panel-header .stat-label {
    font-size: 0.64rem;
    letter-spacing: 0.1em;
}

.control-panel-header .control-panel-toolbar {
    margin-top: 0.9rem;
    padding-top: 0.7rem;
}

.control-panel-header .search-wrapper {
    min-height: 42px;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
}

.control-panel-header .search-input {
    font-size: 0.86rem;
}

.control-panel-header .control-panel-meta-item {
    padding: 0.38rem 0.65rem;
    font-size: 0.72rem;
}

/* ==========================================================================
 * Page Builder (Create + Edit) — hero polish & section-head Save action
 *
 * Consolidated here because custom.css is loaded globally on every admin
 * page; the body.backend-admin-layout prefix gives us higher specificity
 * than the same selectors in page-create-admin.css / page-edit-admin.css
 * so these refinements win the cascade even though custom.css loads first.
 *
 * Two concerns addressed:
 *   1. Hero title was rendering BLACK on the dark teal gradient because the
 *      global `h1-h6 { color: var(--color-text) }` rule beats the inherited
 *      light color on .pc-hero / .pe-hero. Scope-override the h1/h2 title
 *      selectors to #ffffff with a soft text-shadow for WCAG contrast.
 *   2. Hero was tall (15rem) and roomy — trim min-height, padding, typography,
 *      button heights, panel padding, pill sizing so the block compacts ~25%
 *      without losing hierarchy.
 *
 * Also defines the section-head Save action used in both create and edit
 * page builder forms.
 * ========================================================================== */

body.backend-admin-layout .page-create-admin .pc-hero,
body.backend-admin-layout .page-edit-admin .pe-hero {
    min-height: 11rem;
}

body.backend-admin-layout .page-create-admin .pc-hero .card-body,
body.backend-admin-layout .page-edit-admin .pe-hero .card-body {
    padding: 1rem 1.2rem;
}

@media (min-width: 1200px) {
    body.backend-admin-layout .page-create-admin .pc-hero .card-body,
    body.backend-admin-layout .page-edit-admin .pe-hero .card-body {
        padding: 1.15rem 1.5rem;
    }
}

body.backend-admin-layout .page-create-admin .pc-hero__main,
body.backend-admin-layout .page-edit-admin .pe-hero__main {
    gap: 0.5rem;
}

body.backend-admin-layout .page-create-admin .pc-hero__content,
body.backend-admin-layout .page-edit-admin .pe-hero__content {
    gap: 0.5rem;
    padding-block: 0;
}

body.backend-admin-layout .page-create-admin .pc-hero__copy,
body.backend-admin-layout .page-edit-admin .pe-hero__copy {
    gap: 0.3rem;
}

body.backend-admin-layout .page-create-admin .pc-hero__metrics,
body.backend-admin-layout .page-edit-admin .pe-hero__metrics {
    margin-top: 0.6rem;
}

/* Light hero title on dark gradient — explicit, beats the global h1 rule */
body.backend-admin-layout .page-create-admin .pc-hero h1.pc-hero__title,
body.backend-admin-layout .page-edit-admin .pe-hero h1.pe-hero__title {
    max-width: 22ch;
    color: #ffffff;
    font-size: clamp(1.3rem, 1.7vw, 1.65rem);
    line-height: 1.12;
    letter-spacing: -0.018em;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}

body.backend-admin-layout .page-create-admin .pc-hero__subtitle,
body.backend-admin-layout .page-edit-admin .pe-hero__subtitle {
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(248, 250, 252, 0.74);
}

/* Right-hand status panel — same contrast fix on the big value */
body.backend-admin-layout .page-create-admin .pc-hero-panel h2.pc-hero-panel__value,
body.backend-admin-layout .page-edit-admin .pe-hero-panel h2.pe-hero-panel__value {
    color: #ffffff;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}

body.backend-admin-layout .page-create-admin .pc-hero-panel,
body.backend-admin-layout .page-edit-admin .pe-hero-panel {
    padding: 0.65rem 0.8rem;
}

body.backend-admin-layout .page-create-admin .pc-hero-panel__head,
body.backend-admin-layout .page-edit-admin .pe-hero-panel__head {
    margin-bottom: 0.4rem;
}

body.backend-admin-layout .page-create-admin .pc-hero-panel__label,
body.backend-admin-layout .page-edit-admin .pe-hero-panel__label {
    font-size: 0.66rem;
    letter-spacing: 0.12em;
}

body.backend-admin-layout .page-create-admin .pc-hero-panel__text,
body.backend-admin-layout .page-edit-admin .pe-hero-panel__text {
    font-size: 0.72rem;
    line-height: 1.4;
}

body.backend-admin-layout .page-create-admin .pc-hero-panel__badge,
body.backend-admin-layout .page-edit-admin .pe-hero-panel__badge {
    padding: 0.26rem 0.5rem;
    font-size: 0.68rem;
}

/* Trimmed pills + nav buttons to keep the smaller hero balanced */
body.backend-admin-layout .page-create-admin .pc-hero-pill,
body.backend-admin-layout .page-edit-admin .pe-hero-pill {
    padding: 0.3rem 0.66rem;
    gap: 0.4rem;
}

body.backend-admin-layout .page-create-admin .pc-hero-pill strong,
body.backend-admin-layout .page-edit-admin .pe-hero-pill strong {
    color: #ffffff;
    font-size: 0.88rem;
}

body.backend-admin-layout .page-create-admin .pc-hero-pill span:last-child,
body.backend-admin-layout .page-edit-admin .pe-hero-pill span:last-child {
    font-size: 0.68rem;
}

body.backend-admin-layout .page-create-admin .pc-btn,
body.backend-admin-layout .page-edit-admin .pe-btn {
    height: 1.95rem;
    padding: 0 0.75rem;
    font-size: 0.82rem;
}

body.backend-admin-layout .page-create-admin .pc-btn--back,
body.backend-admin-layout .page-edit-admin .pe-btn--back {
    width: 1.95rem;
}

/* Section-head action cluster — toggles + Save button live in the
 * "Page Setup / Page Elements" header strip so the primary action stays
 * accessible without scrolling the whole form. Visual rules below in the
 * "Page Setup section header — premium polish" block. */
body.backend-admin-layout .page-create-admin .pc-section-head__actions {
    display: flex;
    justify-content: flex-end;
}

/* ==========================================================================
 * Page Setup section header — premium polish
 *
 * Refines the "Page Setup / Page Elements" header strip inside the builder
 * form. Goal: a single, organized cluster where the eyebrow/title/copy on
 * the left and the toggles + primary CTA on the right share one baseline,
 * matching heights and consistent radii. No internal text wraps.
 * ========================================================================== */

/* Layout: ALWAYS stack — title block on its own row (full width), action
 * cluster on a second row, right-aligned. The form lives in a narrow
 * col-xl-7 column, so side-by-side cramps the description into 5 narrow
 * lines. Stacking lets the description breathe on one or two clean lines
 * and gives the actions their own clearly-separated band. */
body.backend-admin-layout .page-create-admin .pc-section-head,
body.backend-admin-layout .page-edit-admin .pc-section-head {
    flex-direction: column;
    align-items: stretch;
    gap: 0.9rem;
    padding-bottom: 0.95rem;
    border-bottom: 1px solid rgba(var(--color-text-rgb), 0.06);
    margin-bottom: 0.15rem;
}

body.backend-admin-layout .page-create-admin .pc-section-head > div:first-child,
body.backend-admin-layout .page-edit-admin .pc-section-head > div:first-child {
    flex: 0 1 auto;
    min-width: 0;
}

/* Eyebrow: accent dot + tag-style typography */
body.backend-admin-layout .page-create-admin .pc-section-head__eyebrow,
body.backend-admin-layout .page-edit-admin .pc-section-head__eyebrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0.85rem;
    margin-bottom: 0.4rem;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
}

body.backend-admin-layout .page-create-admin .pc-section-head__eyebrow::before,
body.backend-admin-layout .page-edit-admin .pc-section-head__eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.14);
    transform: translateY(-50%);
}

/* Title: clear anchor for the section */
body.backend-admin-layout .page-create-admin .pc-section-head__title,
body.backend-admin-layout .page-edit-admin .pc-section-head__title {
    font-size: 1.1rem;
    line-height: 1.2;
    letter-spacing: -0.012em;
}

/* Supporting copy: comfortable reading width on the full-width row */
body.backend-admin-layout .page-create-admin .pc-section-head__text,
body.backend-admin-layout .page-edit-admin .pc-section-head__text {
    max-width: 68ch;
    margin-top: 0.3rem;
    font-size: 0.78rem;
    line-height: 1.5;
}

/* Action cluster: own row, right-aligned, equal-height items */
body.backend-admin-layout .page-create-admin .pc-section-head__actions {
    width: 100%;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    body.backend-admin-layout .page-create-admin .pc-section-head__actions {
        flex-wrap: nowrap;
    }

    body.backend-admin-layout .page-create-admin .pc-toggle-stack {
        flex-wrap: nowrap;
    }
}

body.backend-admin-layout .page-create-admin .pc-toggle-stack {
    gap: 0.45rem;
}

/* Toggle cards — equal height, single-line labels, refined surface */
body.backend-admin-layout .page-create-admin .pc-toggle-card {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    height: 2.4rem;
    padding: 0 0.9rem;
    border: 1px solid rgba(var(--color-text-rgb), 0.08);
    border-radius: 0.62rem;
    background: var(--color-card);
    box-shadow: 0 1px 2px rgba(var(--color-text-rgb), 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body.backend-admin-layout .page-create-admin .pc-toggle-card:hover,
body.backend-admin-layout .page-create-admin .pc-toggle-card:focus-within {
    border-color: rgba(var(--color-primary-rgb), 0.3);
    box-shadow: 0 6px 14px rgba(var(--color-primary-rgb), 0.1);
    transform: translateY(-1px);
}

body.backend-admin-layout .page-create-admin .pc-toggle-card .form-check {
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    margin: 0;
    min-height: 0;
}

body.backend-admin-layout .page-create-admin .pc-toggle-card .form-check-label {
    margin: 0;
    color: var(--color-text);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

body.backend-admin-layout .page-create-admin .pc-toggle-card .form-check-input {
    margin: 0;
    flex-shrink: 0;
}

/* Primary CTA — equal height with toggle cards, gradient lift */
body.backend-admin-layout .page-create-admin .pc-section-head__save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.4rem;
    padding: 0 1.2rem;
    gap: 0.45rem;
    border: 0;
    border-radius: 0.62rem;
    background:
        linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: var(--color-white);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    box-shadow:
        0 6px 14px rgba(var(--color-primary-rgb), 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.16s ease, box-shadow 0.18s ease;
}

body.backend-admin-layout .page-create-admin .pc-section-head__save:hover,
body.backend-admin-layout .page-create-admin .pc-section-head__save:focus {
    transform: translateY(-1px);
    color: var(--color-white);
    box-shadow:
        0 12px 22px rgba(var(--color-primary-rgb), 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

body.backend-admin-layout .page-create-admin .pc-section-head__save:active {
    transform: translateY(0);
    box-shadow:
        0 6px 12px rgba(var(--color-primary-rgb), 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

body.backend-admin-layout .page-create-admin .pc-section-head__save svg,
body.backend-admin-layout .page-create-admin .pc-section-head__save .icon {
    width: 15px;
    height: 15px;
    opacity: 0.95;
}

/* Tablet / mobile: stack everything to full-width with equal min-height */
@media (max-width: 991.98px) {
    body.backend-admin-layout .page-create-admin .pc-section-head,
    body.backend-admin-layout .page-edit-admin .pc-section-head {
        align-items: stretch;
    }

    body.backend-admin-layout .page-create-admin .pc-section-head__actions {
        width: 100%;
    }

    body.backend-admin-layout .page-create-admin .pc-toggle-stack {
        flex-wrap: wrap;
        width: 100%;
    }

    body.backend-admin-layout .page-create-admin .pc-toggle-card {
        flex: 1 1 auto;
        justify-content: space-between;
    }
}

@media (max-width: 575.98px) {
    body.backend-admin-layout .page-create-admin .pc-toggle-card {
        flex: 1 1 100%;
    }

    body.backend-admin-layout .page-create-admin .pc-section-head__save {
        width: 100%;
    }
}