.logo-icon {
    width: 160px;
    filter: none !important;
}

.page-wrapper{
    margin-top: 40px
}


.auth-dark {
    background: #111520;
    color: #d4dae7;
    font-family: "Poppins", "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

/* ── Single-panel centered layout ── */
.auth-dark .auth-single-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
    background: linear-gradient(160deg, #111520 0%, #161b28 50%, #131825 100%);
}

.auth-dark .auth-form-wrapper {
    width: 100%;
    max-width: 460px;
}

/* Override the template's forced auth-cover heights (app.css) */
.auth-dark .auth-cover-left,
.auth-dark .auth-cover-right {
    min-height: auto !important;
    background-color: transparent !important;
}

/* ── Card ── */
.auth-dark .card {
    background: #1a1f2e !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 18px !important;
    color: #d4dae7;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.20),
                0 1px 2px rgba(0, 0, 0, 0.10) !important;
}

/* ── Typography ── */
.auth-dark .text-center.mb-4 h5 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.2px;
    line-height: 1.2;
    color: #edf0f7 !important;
}

.auth-dark .text-muted-light {
    color: #8892a8 !important;
    font-size: 14px;
    font-weight: 400;
}

/* ── Labels ── */
.auth-dark .form-label {
    font-size: 14px;
    font-weight: 500;
    color: #b0b9ce !important;
    margin-bottom: 0.4rem;
}

.auth-dark .form-check-label {
    color: #9aa3b8 !important;
}

.auth-dark h5,
.auth-dark p {
    color: #d4dae7 !important;
}

/* ── Inputs ── */
.auth-dark .form-control,
.auth-dark .form-select,
.auth-dark .input-group-text {
    background-color: #141926 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #d4dae7 !important;
}

.auth-dark .form-control {
    height: 46px;
    font-size: 14px;
    padding: 0.6rem 0.85rem;
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-dark .form-select {
    height: 46px;
    font-size: 14px;
    padding: 0.6rem 2.2rem 0.6rem 0.85rem;
    border-radius: 10px;
}

.auth-dark .input-group-text {
    border-radius: 0 10px 10px 0;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #7a849b !important;
}

.auth-dark .input-group-text i {
    font-size: 18px;
}

/* ── Placeholders ── */
.auth-dark .form-control::placeholder {
    color: #6b7593 !important;
    font-size: 14px;
    opacity: 1 !important;
}

.auth-dark .form-control::-webkit-input-placeholder {
    color: #6b7593 !important;
    opacity: 1;
}

.auth-dark .form-control:-ms-input-placeholder {
    color: #6b7593 !important;
}

.auth-dark .form-control::-ms-input-placeholder {
    color: #6b7593 !important;
}

/* ── Focus states ── */
.auth-dark .form-control:focus,
.auth-dark .form-select:focus {
    border-color: rgba(99, 152, 235, 0.45) !important;
    box-shadow: 0 0 0 3px rgba(99, 152, 235, 0.12) !important;
    outline: none;
}

/* ── Links ── */
.auth-dark a {
    color: #7ba4e0;
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-dark a:hover {
    color: #a1c4f0;
}

.auth-dark .login-separater span {
    color: #6b7593;
}

.auth-dark hr {
    border-color: rgba(255, 255, 255, 0.06);
}

.auth-dark .text-center p,
.auth-dark .text-center p a {
    font-size: 14px;
}

/* ── Primary button ── */
.auth-dark .btn-primary {
    height: 46px;
    font-size: 15px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b6fd4 0%, #2d5ab8 100%);
    border: 0;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.15px;
    box-shadow: 0 4px 14px rgba(59, 111, 212, 0.20);
    transition: all 0.25s ease;
}

.auth-dark .btn-primary:hover,
.auth-dark .btn-primary:focus {
    background: linear-gradient(135deg, #4a7de0 0%, #3568c8 100%);
    border: 0;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 111, 212, 0.28);
}

.auth-dark .btn-primary:active {
    background: #2d5ab8;
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(59, 111, 212, 0.18);
}

/* ── Checkbox / Switch ── */
.auth-dark .form-check-input {
    background-color: #1f2937;
    border-color: rgba(255, 255, 255, 0.12);
}

.auth-dark .form-check-input:checked {
    background-color: #3b6fd4;
    border-color: #3b6fd4;
}

.auth-dark .form-switch .form-check-input {
    width: 3rem;
    height: 1.6rem;
    margin-top: 0.1rem;
    border-radius: 2rem;
    cursor: pointer;
}

.auth-dark .form-switch .form-check-input:focus {
    border-color: rgba(99, 152, 235, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 152, 235, 0.12);
}

.auth-dark .form-switch .form-check-input:not(:checked) {
    background-color: #283040;
}

.auth-dark .form-switch .form-check-input:checked {
    background-color: #3b6fd4;
    border-color: #3b6fd4;
}

.auth-dark .form-switch .form-check-label {
    font-size: 14px;
    line-height: 2.0;
    padding-left: 0.35rem;
    color: #9aa3b8 !important;
}

/* ── Responsive ── */
@media (max-width: 575.98px) {
    .auth-dark .auth-single-panel {
        padding: 1.5rem 0.75rem;
    }

    .auth-dark .text-center.mb-4 h5 {
        font-size: 22px;
    }

    .auth-dark .card {
        border-radius: 14px !important;
    }
}


/* ─── Iframe Panel ────────────────────────────────────────── */

.iframe-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #1a1d21;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.5rem;
    overflow: hidden;
    flex: 1;
    min-height: 0;
    transition: all 0.25s ease;
}

.iframe-panel--fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    border-radius: 0;
    height: 100vh !important;
    border: none;
}

/* Toolbar */

.iframe-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: #212529;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.iframe-toolbar-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #ced4da;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.iframe-toolbar-actions .btn {
    padding: 0.2rem 0.5rem;
    font-size: 1rem;
    line-height: 1;
}

/* Loading overlay */

.iframe-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1a1d21;
    z-index: 2;
}

/* Unavailable overlay */

.iframe-unavailable {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1a1d21;
    z-index: 3;
    text-align: center;
    padding: 2rem;
}

/* Iframe element */

.iframe-embed {
    flex: 1;
    width: 100%;
    border: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Responsive tweak */

@media (max-width: 767.98px) {
    .iframe-panel {
        border-radius: 0.35rem;
    }
}

/* When iframe panel is present, make parent containers flex-stretch so panel fills to footer */

.page-wrapper:has(.iframe-panel) {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 40px - 35px);
    /* 40px = page-wrapper margin-top, 35px = fixed footer */
}

.page-content:has(.iframe-panel) {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}



/* ── Dashboard top-bar profile trigger ── */

.dashboard-user-box {
    height: 60px;
    border-left: 0 !important;
    border-right: 0 !important;
    padding-left: 0.75rem !important;
    padding-right: 0 !important;
}

.dashboard-user-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    color: #cdd4e6 !important;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    transition: background 0.2s ease, color 0.2s ease;
}

.dashboard-user-toggle:hover,
.dashboard-user-toggle:focus {
    background: rgba(255, 255, 255, 0.10) !important;
    color: #ffffff !important;
}

.dashboard-user-toggle i {
    font-size: 1.2rem;
    line-height: 1;
}

/* ── Dashboard user dropdown container ── */

.dashboard-user-dropdown {
    width: 380px;
    min-width: 380px;
    max-width: 380px;
    margin-top: 6px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    box-shadow: none !important;
}

.dashboard-user-dropdown::after {
    display: none !important;
}

.dashboard-user-dropdown-item {
    list-style: none;
}

/* ── Panel card ── */

.dashboard-user-dropdown .panel {
    width: 100%;
    background: linear-gradient(180deg, rgba(16, 16, 16, 0.94) 0%, rgba(13, 13, 13, 0.96) 100%);
    color: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
}

.dashboard-user-dropdown .dud-body {
    padding: 1rem 1rem 0.95rem;
}

.dashboard-user-dropdown .dud-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.25;
    letter-spacing: 0.01em;
}

.dashboard-user-dropdown .dud-email {
    font-size: 0.84rem;
    color: #98a2b3;
    margin: 0.32rem 0 0.75rem;
    word-break: break-all;
    line-height: 1.4;
}

.dashboard-user-dropdown .dud-meta {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    font-size: 0.835rem;
    font-weight: 600;
    color: #c3cad7;
    margin-bottom: 0.22rem;
}

.dashboard-user-dropdown .dud-meta span {
    color: #eef2fa;
    font-weight: 700;
}

/* ── Action buttons ── */

.dashboard-user-dropdown .dud-actions {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.9rem;
}

.dashboard-user-dropdown .dud-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    border-radius: 8px;
    padding: 0.55rem 0.95rem;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.16s ease, box-shadow 0.2s ease;
}

.dashboard-user-dropdown .dud-btn i {
    font-size: 0.86rem;
    flex-shrink: 0;
}

.dashboard-user-dropdown .dud-btn svg {
    flex-shrink: 0;
}

.dashboard-user-dropdown .dud-btn-primary {
    background: linear-gradient(180deg, #e4e85f 0%, #cad645 100%);
    color: #121212;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.dashboard-user-dropdown .dud-btn-primary:hover,
.dashboard-user-dropdown .dud-btn-primary:focus {
    background: linear-gradient(180deg, #eef273 0%, #d4df52 100%);
    color: #121212;
    transform: translateY(-1px);
}

.dashboard-user-dropdown .dud-btn-danger {
    background: linear-gradient(180deg, #4d1723 0%, #43131f 100%);
    color: #fa5d74;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dashboard-user-dropdown .dud-btn-danger:hover,
.dashboard-user-dropdown .dud-btn-danger:focus {
    background: linear-gradient(180deg, #5a1b2a 0%, #511825 100%);
    color: #ff6f85;
    transform: translateY(-1px);
}

.dashboard-user-dropdown .dud-btn:active {
    transform: translateY(0);
}

@media (max-width: 575.98px) {
    .dashboard-user-dropdown {
        width: min(380px, calc(100vw - 24px));
        min-width: min(380px, calc(100vw - 24px));
        max-width: min(380px, calc(100vw - 24px));
    }
}


:root {
    --dashboard-topbar-height: 56px;
    --dashboard-sidebar-width: 270px;
    --dashboard-sidebar-collapsed-width: 88px;
}

.dashboard-layout {
    min-height: 100vh;
    background: linear-gradient(180deg, #060b16 0%, #0b1120 100%);
}

.dashboard-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--dashboard-topbar-height);
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    background: rgba(9, 13, 24, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.28);
}

.dashboard-topbar-left,
.dashboard-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-mobile-toggle,
.dashboard-topbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.62);
    color: #dbe4f0;
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dashboard-mobile-toggle:hover,
.dashboard-topbar-btn:hover {
    color: #fff;
    background: rgba(30, 41, 59, 0.86);
    border-color: rgba(96, 165, 250, 0.3);
}

.dashboard-topbar-btn.is-primary {
    background: rgba(37, 99, 235, 0.16);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.24);
}

.dashboard-user-toggle {
    width: 38px;
    height: 38px;
    justify-content: center;
    padding: 0;
    border-radius: 999px;
}

.dashboard-sidebar {
    position: fixed;
    top: calc(var(--dashboard-topbar-height) + 0px);
    left: 0px;
    bottom: 0px;
    width: var(--dashboard-sidebar-width);
    padding: 1rem;
    /* border-radius: 20px; */
    /* border: 1px solid rgba(148, 163, 184, 0.14); */
    background: linear-gradient(160deg, rgba(10, 15, 29, 0.97), rgba(19, 28, 46, 0.94));
    box-shadow: 0 22px 48px rgba(2, 6, 23, 0.34);
    overflow-y: auto;
    z-index: 1030;
    transition: width 0.22s ease, padding 0.22s ease, transform 0.22s ease;
}

.dashboard-sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem 0.35rem 0.9rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    margin-bottom: 0.9rem;
}

.dashboard-sidebar-header-copy {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.dashboard-sidebar-header-actions {
    display: flex;
    align-items: center;
}

.dashboard-sidebar-collapse-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
}

.dashboard-sidebar-toggle-icon {
    transition: transform 0.2s ease;
}

.dashboard-sidebar-brand .title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    color: #f8fafc;
}

.dashboard-sidebar-brand .subtitle,
.dashboard-sidebar-section-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #94a3b8;
}

.dashboard-sidebar-rail-card {
    margin-bottom: 1rem;
    padding: 0.9rem;
    border-radius: 16px;
    border: 1px solid rgba(96, 165, 250, 0.18);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(14, 116, 144, 0.12));
}

.dashboard-sidebar-rail-card .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #93c5fd;
    margin-bottom: 0.35rem;
}

.dashboard-sidebar-rail-card .title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f8fafc;
}

.dashboard-sidebar-rail-card .meta {
    font-size: 0.8rem;
    color: #cbd5e1;
}

.dashboard-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.dashboard-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0.9rem;
    border-radius: 14px;
    border: 1px solid transparent;
    color: #dbe4f0;
    text-decoration: none;
    transition: all 0.18s ease;
}

.dashboard-sidebar-link i {
    width: 20px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.dashboard-sidebar-link-label {
    white-space: nowrap;
}

.dashboard-sidebar-link:hover {
    transform: translateX(2px);
    color: #fff;
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(59, 130, 246, 0.24);
}

.dashboard-sidebar-link.is-active {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.22), rgba(59, 130, 246, 0.14));
    border-color: rgba(96, 165, 250, 0.3);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.dashboard-sidebar-link.is-disabled {
    opacity: 0.58;
    pointer-events: none;
}

.dashboard-sidebar-badge {
    margin-left: auto;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
    font-size: 0.68rem;
    color: #cbd5e1;
}

.dashboard-layout.sidebar-collapsed .dashboard-sidebar {
    width: var(--dashboard-sidebar-collapsed-width);
    padding: 0.8rem 0.65rem;
}

.dashboard-layout.sidebar-collapsed .dashboard-sidebar .dashboard-sidebar-brand {
    justify-content: center;
}

.dashboard-layout.sidebar-collapsed .dashboard-sidebar .dashboard-sidebar-header-copy > div,
.dashboard-layout.sidebar-collapsed .dashboard-sidebar .dashboard-sidebar-section-title,
.dashboard-layout.sidebar-collapsed .dashboard-sidebar .dashboard-sidebar-rail-card,
.dashboard-layout.sidebar-collapsed .dashboard-sidebar .dashboard-sidebar-link-label,
.dashboard-layout.sidebar-collapsed .dashboard-sidebar .dashboard-sidebar-badge,
.dashboard-layout.sidebar-collapsed .dashboard-sidebar .dashboard-sidebar-header-actions {
    display: none !important;
}

.dashboard-layout.sidebar-collapsed .dashboard-sidebar .dashboard-sidebar-header-copy {
    justify-content: center;
}

.dashboard-layout.sidebar-collapsed .dashboard-sidebar .dashboard-sidebar-link {
    justify-content: center;
    padding: 0.85rem 0.6rem;
}

.dashboard-layout.sidebar-collapsed .dashboard-sidebar .dashboard-sidebar-link:hover {
    transform: none;
}

.dashboard-layout.sidebar-collapsed .dashboard-sidebar-offcanvas {
    max-width: min(86vw, 300px);
}

.dashboard-sidebar-offcanvas {
    background: linear-gradient(160deg, rgba(10, 15, 29, 0.99), rgba(19, 28, 46, 0.97));
    color: #e2e8f0;
    max-width: min(86vw, 300px);
}

.dashboard-sidebar-offcanvas .offcanvas-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.dashboard-sidebar-offcanvas .btn-close {
    filter: invert(1) grayscale(1);
}

.dashboard-layout .page-wrapper {
    margin-top: calc(var(--dashboard-topbar-height) + 0px) !important;
    margin-left: 0 !important;
    margin-bottom: 0 !important;
    transition: margin-left 0.22s ease;
    min-height: calc(100vh - var(--dashboard-topbar-height));
}

.dashboard-layout .page-content {
    padding: 0.8rem 1rem 1.5rem !important;
}

@media (min-width: 992px) {
    .dashboard-layout .page-wrapper {
        margin-left: calc(var(--dashboard-sidebar-width) + 0px) !important;
    }

    .dashboard-layout.sidebar-collapsed .page-wrapper {
        margin-left: calc(var(--dashboard-sidebar-collapsed-width) + 0px) !important;
    }
}

@media (max-width: 991.98px) {
    .dashboard-topbar {
        padding: 0 14px;
    }

    .dashboard-topbar-left,
    .dashboard-topbar-right {
        gap: 8px;
    }

    .dashboard-layout .page-content {
        padding: 0.45rem 0.45rem 1rem !important;
    }
}


.admin-users-typography {
    --dashboard-surface: linear-gradient(145deg, rgba(10, 15, 29, 0.96), rgba(18, 27, 47, 0.94));
    --dashboard-surface-soft: rgba(15, 23, 42, 0.78);
    --dashboard-border: rgba(148, 163, 184, 0.16);
    --dashboard-shadow: 0 18px 45px rgba(2, 6, 23, 0.32);
    --dashboard-text: #e2e8f0;
    --dashboard-text-soft: #94a3b8;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: 0;
    padding: 0.35rem;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 0, transparent 28%),
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.1), transparent 0, transparent 24%);
}

.admin-users-typography .card {
    border: 1px solid var(--dashboard-border) !important;
    border-radius: 18px !important;
    background: var(--dashboard-surface) !important;
    box-shadow: var(--dashboard-shadow);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    backdrop-filter: blur(14px);
}

.admin-users-typography .card:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.28) !important;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.4);
}

.admin-users-typography .card-header,
.admin-users-typography .card-body,
.admin-users-typography .modal-content,
.admin-users-typography .list-group-item {
    color: var(--dashboard-text);
}

.admin-users-typography .card-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    padding: 1rem 1.25rem;
}

.admin-users-typography .card-body {
    font-size: 1.02rem;
    padding: 1.2rem 1.25rem;
}

.admin-users-typography .card-body h5 {
    font-size: 1.22rem;
    font-weight: 600;
    letter-spacing: 0;
    color: #f8fafc;
}

.admin-users-typography strong,
.admin-users-typography .fw-semibold,
.admin-users-typography .modal-title,
.admin-users-typography .fw-bold {
    font-weight: 700;
    color: #f8fafc;
}

.admin-users-typography .text-secondary,
.admin-users-typography .small {
    color: var(--dashboard-text-soft) !important;
}

.admin-users-typography .btn,
.admin-users-typography .form-control,
.admin-users-typography .form-select,
.admin-users-typography .form-label,
.admin-users-typography .modal-title,
.admin-users-typography .badge,
.admin-users-typography .small {
    font-size: 1rem;
}

.admin-users-typography .btn {
    border-radius: 12px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.admin-users-typography .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.25);
}

.admin-users-typography .btn-outline-primary,
.admin-users-typography .btn-outline-secondary,
.admin-users-typography .btn-outline-success,
.admin-users-typography .btn-outline-danger,
.admin-users-typography .btn-outline-info,
.admin-users-typography .btn-outline-light {
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.45);
}

.admin-users-typography .form-control,
.admin-users-typography .form-select {
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.65);
    color: #f8fafc;
    box-shadow: none;
}

.admin-users-typography .form-control:focus,
.admin-users-typography .form-select:focus {
    border-color: rgba(96, 165, 250, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
    background: rgba(15, 23, 42, 0.78);
    color: #f8fafc;
}

.admin-users-typography .form-control::placeholder {
    color: #94a3b8;
}

.admin-users-typography .modal-content {
    background: linear-gradient(145deg, rgba(8, 12, 24, 0.98), rgba(20, 30, 50, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.45);
}

.admin-users-typography .modal-header,
.admin-users-typography .modal-footer,
.admin-users-typography .list-group-item {
    border-color: rgba(148, 163, 184, 0.12);
    background: transparent;
}

.admin-users-typography .modal-body {
    font-size: 1.02rem;
}

.admin-users-typography .modal-body .list-group-item {
    font-size: 1rem;
    line-height: 1.5;
}

.admin-users-typography .modal-body .fw-semibold.text-white {
    font-size: 1.06rem;
    letter-spacing: 0;
}

.admin-users-typography .table-responsive {
    border: 1px solid var(--dashboard-border);
    border-radius: 18px;
    background: var(--dashboard-surface);
    box-shadow: var(--dashboard-shadow);
}

.admin-users-typography .table {
    color: var(--dashboard-text);
    margin-bottom: 0;
}

.admin-users-typography .table thead th {
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.85);
    color: #cbd5e1;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1rem;
}

.admin-users-typography .table tbody td {
    border-color: rgba(148, 163, 184, 0.1);
    padding: 0.95rem 1rem;
    background: transparent;
    vertical-align: middle;
}

.admin-users-typography .table-hover tbody tr:hover > * {
    background: rgba(59, 130, 246, 0.08);
    color: #f8fafc;
}

.admin-users-typography .badge {
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.admin-users-typography > .row.row-cols-1.row-cols-md-2.row-cols-lg-4.g-3.mb-4 .card {
    min-height: 145px;
}

.admin-users-typography > .row.row-cols-1.row-cols-md-2.row-cols-lg-4.g-3.mb-4 .card .fw-bold {
    font-size: 1.9rem;
    line-height: 1;
}

.admin-users-typography > .row.row-cols-1.row-cols-md-2.row-cols-lg-4.g-3.mb-4 .card i {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.admin-users-typography > .row.row-cols-1.row-cols-md-2.row-cols-lg-4.g-3.mb-4 .card i.text-primary {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa !important;
}

.admin-users-typography > .row.row-cols-1.row-cols-md-2.row-cols-lg-4.g-3.mb-4 .card i.text-info {
    background: rgba(56, 189, 248, 0.14);
    color: #38bdf8 !important;
}

.admin-users-typography > .row.row-cols-1.row-cols-md-2.row-cols-lg-4.g-3.mb-4 .card i.text-success {
    background: rgba(52, 211, 153, 0.14);
    color: #34d399 !important;
}

.admin-users-typography > .row.row-cols-1.row-cols-md-2.row-cols-lg-4.g-3.mb-4 .card i.text-warning {
    background: rgba(250, 204, 21, 0.14);
    color: #facc15 !important;
}

.admin-users-typography > .row.row-cols-1.row-cols-md-2.row-cols-lg-4.g-3.mb-4 .card i.text-danger {
    background: rgba(248, 113, 113, 0.14);
    color: #f87171 !important;
}

#userGrowthChart,
#statusDistributionChart {
    min-height: 300px;
}

@media (max-width: 768px) {
    .admin-users-typography {
        font-size: 1rem;
        padding: 0;
    }

    .admin-users-typography .card-body h5 {
        font-size: 1.12rem;
    }

    .admin-users-typography > .row.row-cols-1.row-cols-md-2.row-cols-lg-4.g-3.mb-4 .card .fw-bold {
        font-size: 1.55rem;
    }

    .admin-users-typography .btn-group {
        flex-wrap: wrap;
    }
}



 .profile-shell {
    max-width: 980px;
}

.profile-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: linear-gradient(155deg, #1b2232 0%, #111827 100%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
    color: #e8eefc;
}

.profile-kicker {
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #9fb9f9;
}

.profile-title {
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    line-height: 1.2;
    font-weight: 700;
    color: #f4f7ff;
}

.profile-subtitle {
    color: #b4c1dc;
    margin: 0;
}

.profile-form-group {
    margin-bottom: 1rem;
}

.profile-label {
    color: #d4ddf1;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 0.45rem;
}

.profile-input {
    border: 1px solid #2a3a5f;
    background: #0f172a;
    color: #edf2ff;
    border-radius: 12px;
    min-height: 48px;
}

.profile-input::placeholder {
    color: #7f90b4;
}

.profile-input:focus {
    border-color: #4f88ff;
    box-shadow: 0 0 0 0.2rem rgba(79, 136, 255, 0.22);
    background: #0f172a;
    color: #edf2ff;
}

.profile-input-icon {
    border: 1px solid #2a3a5f;
    border-left: 0;
    background: #0f172a;
    color: #9fb4df;
    border-radius: 0 12px 12px 0;
}

.profile-help {
    color: #93a6cc;
    font-size: 0.85rem;
    margin-top: 0.4rem;
}

.profile-submit {
    border: 0;
    border-radius: 12px;
    min-height: 48px;
    font-weight: 700;
    background: linear-gradient(120deg, #2f7bf6 0%, #1d4fd8 100%);
    color: #ffffff;
}

.profile-submit:hover {
    background: linear-gradient(120deg, #246be0 0%, #1844be 100%);
    color: #ffffff;
}

.profile-pending-banner {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    color: #fbbf24;
    font-size: 0.88rem;
}

.profile-pending-banner .pending-actions a,
.profile-pending-banner .pending-actions button {
    font-size: 0.82rem;
    padding: 0;
    border: 0;
    background: none;
    text-decoration: underline;
    cursor: pointer;
}

.profile-pending-banner .pending-actions .resend-link {
    color: #60a5fa;
}

.profile-pending-banner .pending-actions .cancel-link {
    color: #f87171;
}

.profile-photo-panel {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.75);
    padding: 1rem;
}

.profile-photo-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-photo-preview {
    width: 108px;
    height: 108px;
    border-radius: 24px;
    border: 1px solid rgba(96, 165, 250, 0.28);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(15, 23, 42, 0.92));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.profile-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-fallback {
    font-size: 2rem;
    font-weight: 700;
    color: #dbeafe;
}

.profile-photo-meta {
    color: #9fb4df;
    font-size: 0.86rem;
}




/* ══════════════════════════════════════════════════════════════
   Admin Dashboard V2 — Redesigned UI
   ══════════════════════════════════════════════════════════════ */

.admin-dashboard-v2 {
    padding: 0.25rem;
    color: #e2e8f0;
}

/* ── Admin Panel badge in topbar ── */
.dashboard-topbar-badge-admin {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
    transition: all 0.2s ease;
}

.dashboard-topbar-badge-admin:hover {
    color: #fff;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transform: translateY(-1px);
}

.dashboard-topbar-badge-admin i {
    font-size: 0.9rem;
}

/* ── Notification badge ── */
.dash-notif-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0 3px;
}

/* ── System Status in sidebar ── */
.dashboard-system-status {
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    padding-top: 0.8rem;
}

.dash-status-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.dash-status-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.dash-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    flex-shrink: 0;
}

.dash-status-dot.is-ok {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}

.dash-status-dot.is-warn {
    background: #facc15;
    box-shadow: 0 0 6px rgba(250, 204, 21, 0.4);
}

.dash-status-dot.is-error {
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
}

.dash-status-name {
    font-size: 0.82rem;
    font-weight: 500;
    color: #e2e8f0;
}

.dash-status-label {
    font-size: 0.7rem;
    color: #22c55e;
    font-weight: 400;
}

.dash-status-page-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.7rem;
    font-size: 0.76rem;
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
}

.dash-status-page-link:hover {
    color: #93c5fd;
}

/* Make sidebar flex column for System Status at bottom */
@media (min-width: 992px) {
    .dashboard-sidebar-desktop {
        display: flex !important;
        flex-direction: column;
    }
}

.dashboard-sidebar-desktop > div:first-child {
    flex: 1;
}

/* ── Welcome Bar ── */
.dash-welcome-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dash-welcome-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

.dash-welcome-subtitle {
    font-size: 0.88rem;
    color: #94a3b8;
    margin: 0;
}

.dash-welcome-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.dash-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.16);
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 500;
}

.dash-date-badge i {
    font-size: 1rem;
    color: #94a3b8;
}

/* ── Buttons ── */
.dash-btn-outline-sm {
    padding: 0.4rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.5);
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dash-btn-outline-sm:hover {
    color: #f8fafc;
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(96, 165, 250, 0.3);
}

.dash-btn-danger-sm {
    padding: 0.4rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.dash-btn-danger-sm:hover {
    background: rgba(239, 68, 68, 0.22);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.4);
}

.dash-btn-primary-sm {
    padding: 0.45rem 1.1rem;
    border-radius: 10px;
    border: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.25);
    transition: all 0.2s ease;
}

.dash-btn-primary-sm:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.dash-btn-icon {
    padding: 0.4rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.5);
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.dash-btn-icon:hover,
.dash-btn-icon.is-active {
    color: #f8fafc;
    background: rgba(30, 41, 59, 0.75);
    border-color: rgba(96, 165, 250, 0.3);
}

.dash-btn-icon-sm {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: transparent;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.15s ease;
}

.dash-btn-icon-sm:hover {
    color: #f8fafc;
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(96, 165, 250, 0.3);
}

/* ── Stat Cards ── */
.dash-stat-card {
    display: flex;
    flex-direction: column;
    padding: 1.1rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: linear-gradient(145deg, rgba(10, 15, 29, 0.96), rgba(18, 27, 47, 0.94));
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.25);
    transition: all 0.2s ease;
    height: 100%;
}

.dash-stat-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex: 1;
}

.dash-stat-card:hover {
    border-color: rgba(96, 165, 250, 0.22);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(2, 6, 23, 0.35);
}

.dash-stat-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.dash-stat-label {
    font-size: 0.76rem;
    color: #94a3b8;
    margin: 0 0 0.3rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 0.35rem;
    line-height: 1.15;
}

.dash-stat-trend-row {
    margin-bottom: 0.22rem;
}

.dash-stat-trend {
    font-size: 0.72rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
}

.dash-stat-trend.is-up {
    color: #22c55e;
}

.dash-stat-trend.is-down {
    color: #ef4444;
}

.dash-stat-trend.is-neutral {
    color: #64748b;
}

.dash-stat-trend i {
    font-size: 0.85rem;
}

.dash-stat-period {
    font-size: 0.68rem;
    color: #64748b;
    font-weight: 400;
    width: 100%;
    margin-top: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 0.6rem;
}

.dash-stat-icon i {
    font-size: 1.25rem;
}

.dash-stat-icon.is-blue {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.dash-stat-icon.is-green {
    background: rgba(34, 197, 94, 0.15);
    color: #34d399;
}

.dash-stat-icon.is-coral {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
}

.dash-stat-icon.is-yellow {
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
}

.dash-stat-icon.is-red {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.dash-stat-icon.is-teal {
    background: rgba(20, 184, 166, 0.15);
    color: #2dd4bf;
}

/* ── Cards ── */
.dash-card {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: linear-gradient(145deg, rgba(10, 15, 29, 0.96), rgba(18, 27, 47, 0.94));
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.25);
    overflow: hidden;
}

.dash-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.dash-card-header h6 {
    color: #f8fafc;
    font-size: 0.88rem;
}

.dash-card-body {
    padding: 1rem 1.1rem;
    color: #e2e8f0;
}

.dash-select-sm {
    padding: 0.3rem 1.8rem 0.3rem 0.6rem;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.65);
    color: #cbd5e1;
    font-size: 0.76rem;
    font-weight: 500;
    appearance: auto;
}

.dash-select-sm:focus {
    border-color: rgba(96, 165, 250, 0.45);
    outline: none;
}

.dash-view-all {
    font-size: 0.76rem;
    color: #f87171;
    font-weight: 500;
    text-decoration: none;
}

.dash-view-all:hover {
    color: #fca5a5;
}

/* ── Legend Dots ── */
.dash-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.dash-legend-dot.is-green {
    background: #22c55e;
}

.dash-legend-dot.is-gray {
    background: #475569;
}

/* ── Activity Feed ── */
.dash-activity-list {
    max-height: 340px;
    overflow-y: auto;
}

.dash-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.7rem 1.1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.06);
    transition: background 0.15s ease;
}

.dash-activity-item:last-child {
    border-bottom: none;
}

.dash-activity-item:hover {
    background: rgba(59, 130, 246, 0.04);
}

.dash-activity-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 700;
    color: #fff;
}

.dash-activity-content {
    flex: 1;
    min-width: 0;
}

.dash-activity-content p {
    font-size: 0.8rem;
    color: #e2e8f0;
}

.dash-activity-content small {
    font-size: 0.72rem;
}

.dash-activity-time {
    font-size: 0.7rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Filter Pills ── */
.dash-filter-pill {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.5);
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dash-filter-pill:hover {
    color: #f8fafc;
    border-color: rgba(148, 163, 184, 0.35);
}

.dash-filter-pill.is-active {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.4);
    color: #93c5fd;
}

.dash-filter-pill.is-green.is-active {
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

.dash-filter-pill.is-red.is-active {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

/* ── Search Input ── */
.dash-search-input {
    padding: 0.4rem 0.85rem 0.4rem 2.2rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.55);
    color: #f8fafc;
    font-size: 0.82rem;
    min-width: 260px;
    transition: all 0.2s ease;
}

.dash-search-input::placeholder {
    color: rgba(248, 250, 252, 0.65) !important;
}

.dash-search-input:focus {
    outline: none;
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: rgba(15, 23, 42, 0.75);
}

/* ── User Avatars ── */
.dash-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
}

.dash-user-avatar-sm {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 0.72rem;
}

/* ── Badges ── */
.dash-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dash-badge.is-blue {
    background: rgba(59, 130, 246, 0.18);
    color: #60a5fa;
}

.dash-badge.is-red {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
}

.dash-badge.is-yellow {
    background: rgba(250, 204, 21, 0.18);
    color: #facc15;
}

.dash-badge.is-cyan {
    background: rgba(6, 182, 212, 0.18);
    color: #22d3ee;
}

.dash-badge.is-orange {
    background: rgba(251, 146, 60, 0.18);
    color: #fb923c;
}

.dash-badge.is-gray {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
}

/* ── Plan Chip ── */
.dash-plan-chip {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 600;
}

.dash-plan-chip.is-green {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.dash-plan-chip.is-cyan {
    background: rgba(6, 182, 212, 0.12);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.dash-plan-chip.is-orange {
    background: rgba(251, 146, 60, 0.12);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.2);
}

.dash-plan-chip.is-purple {
    background: rgba(139, 92, 246, 0.12);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.dash-plan-chip.is-gray {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

/* ── Credits ── */
.dash-credit-cell {
    min-width: 120px;
}

.dash-credit-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    display: inline-block;
}

.dash-credit-dot.is-ok {
    background: #22c55e;
}

.dash-credit-dot.is-warn {
    background: #f59e0b;
}

.dash-progress-bar {
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    overflow: hidden;
}

.dash-progress-bar.dash-progress-lg {
    height: 8px;
}

.dash-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    transition: width 0.4s ease;
}

.dash-progress-fill.is-blue {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
}

/* ── Active dot ── */
.dash-active-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #475569;
    display: inline-block;
}

.dash-active-dot.is-online {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

/* ── Table ── */
.dash-table {
    color: #e2e8f0;
}

.dash-table thead th {
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    background: rgba(15, 23, 42, 0.6);
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.dash-table tbody td {
    border-color: rgba(148, 163, 184, 0.06);
    padding: 0.7rem 1rem;
    background: transparent;
    vertical-align: middle;
    font-size: 0.85rem;
}

.dash-table tbody tr:hover td {
    background: rgba(59, 130, 246, 0.04);
}

/* ── Metric Rows (AI Usage) ── */
.dash-metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.06);
    font-size: 0.84rem;
}

.dash-metric-row:last-child {
    border-bottom: none;
}

.dash-metric-row i {
    font-size: 1.1rem;
}

/* ── Pagination ── */
.dash-page-btn {
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.5);
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.dash-page-btn:hover:not(:disabled) {
    color: #f8fafc;
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(96, 165, 250, 0.3);
}

.dash-page-btn.is-active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

.dash-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── Modal ── */
.dash-modal {
    background: linear-gradient(145deg, rgba(8, 12, 24, 0.98), rgba(20, 30, 50, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.5);
    color: #e2e8f0;
}

.dash-modal .modal-header {
    border-color: rgba(148, 163, 184, 0.1);
}

.dash-modal .modal-footer {
    border-color: rgba(148, 163, 184, 0.1);
}

.dash-modal .form-label {
    color: #cbd5e1;
    font-size: 0.84rem;
    font-weight: 500;
}

.dash-input {
    background: rgba(15, 23, 42, 0.65) !important;
    border: 1px solid rgba(148, 163, 184, 0.18) !important;
    color: #f8fafc !important;
    border-radius: 10px !important;
    min-height: 42px;
    font-size: 0.88rem;
}

.dash-input:focus {
    border-color: rgba(96, 165, 250, 0.45) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12) !important;
    background: rgba(15, 23, 42, 0.8) !important;
}

.dash-input::placeholder {
    color: #64748b !important;
}

.dash-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* ── IP Map Modal ── */
.dash-ip-item {
    background: rgba(15, 23, 42, 0.5) !important;
    border-color: rgba(148, 163, 184, 0.1) !important;
    color: #e2e8f0 !important;
}

/* ── Dropdown ── */
.dash-dropdown {
    background: rgba(15, 23, 42, 1) !important;
    border: 1px solid rgba(148, 163, 184, 0.14) !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 32px rgba(2, 6, 23, 0.4) !important;
    padding: 0.35rem;
}

.dash-dropdown.dash-dropdown-wide {
    min-width: 340px;
}

.dash-dropdown .dropdown-item {
    color: #e2e8f0;
    border-radius: 8px;
    font-size: 0.82rem;
    padding: 0.5rem 0.75rem;
}

.dash-dropdown .dropdown-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #f8fafc;
}

/* ── Responsive ── */
@media (max-width: 1199.98px) {
    .dash-search-input {
        min-width: 200px;
    }
}

@media (max-width: 991.98px) {
    .dash-welcome-bar {
        flex-direction: column;
    }

    .dash-welcome-title {
        font-size: 1.25rem;
    }

    .dash-stat-value {
        font-size: 1.4rem;
    }

    .dash-search-input {
        min-width: 180px;
    }
}

@media (max-width: 575.98px) {
    .dash-welcome-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .dash-stat-card {
        padding: 0.85rem 0.75rem;
    }

    .dash-stat-value {
        font-size: 1.25rem;
    }

    .dash-search-input {
        min-width: 100%;
    }
}
