.panel-shell {
    min-height: 100vh;
}

.sidebar-section {
    margin: 18px 12px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.55);
}

.panel-nav a,
.panel-nav-button {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.panel-nav-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sidebar-badge {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.sidebar-badge.is-pulse {
    animation: sidebarBadgePulse 1.4s infinite;
}

@keyframes sidebarBadgePulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .5); }
    70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
}

.management-mobile-menu {
    display: none;
}

.management-mobile-menu.is-open {
    display: block;
}

.management-mobile-menu-inner a,
.management-mobile-logout-btn {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-backdrop {
    display: none;
}

.mobile-menu-backdrop.is-open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 39;
    background: rgba(15, 23, 42, .35);
}

.panel-profile-card {
    max-width: 100%;
}

.panel-content {
    overflow-x: auto;
}

@media (max-width: 900px) {
    .panel-shell {
        display: block;
    }

    .panel-sidebar {
        display: none;
    }

    .panel-main {
        width: 100%;
        min-height: 100vh;
    }

    .panel-header {
        display: block;
    }

    .panel-header-profile {
        margin-top: 14px;
    }

    .panel-profile-card {
        width: 100%;
    }

    .panel-heading h1 {
        font-size: 24px;
        line-height: 1.2;
    }

    .panel-heading p {
        font-size: 14px;
    }

    .management-mobile-menu {
        position: fixed;
        top: 64px;
        left: 12px;
        right: 12px;
        z-index: 60;
        max-height: calc(100vh - 84px);
        overflow-y: auto;
        border-radius: 18px;
        box-shadow: 0 18px 50px rgba(15, 23, 42, .22);
    }

    body.mobile-menu-open {
        overflow: hidden;
    }
}

@media (min-width: 901px) {
    .mobile-topbar,
    .management-mobile-menu {
        display: none !important;
    }

    .panel-sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        overflow-y: auto;
    }
}

@media (max-width: 520px) {
    .panel-content {
        padding-left: 12px;
        padding-right: 12px;
    }

    .panel-header {
        padding-left: 12px;
        padding-right: 12px;
    }

    .alerts {
        padding-left: 12px;
        padding-right: 12px;
    }

    .user-meta-list {
        display: none;
    }

    .panel-heading h1 {
        font-size: 21px;
    }

    .panel-profile-info span {
        word-break: break-word;
    }
}

/* =========================================================
   CUSTOMER DESKTOP REDESIGN
========================================================= */

body.is-customer-panel {
    background: #eefbf2 !important;
}

/* MAIN LAYOUT */

body.is-customer-panel .panel-shell {
    background:
        linear-gradient(
            180deg,
            #f5fff7 0%,
            #edf9f0 100%
        ) !important;
}

/* SIDEBAR */

body.is-customer-panel .panel-sidebar {
    width: 280px !important;
    background:
        linear-gradient(
            180deg,
            #0d6832 0%,
            #0f7a3a 100%
        ) !important;

    border-right: 1px solid rgba(255,255,255,.08) !important;

    box-shadow:
        0 0 0 1px rgba(255,255,255,.03),
        0 20px 50px rgba(15,23,42,.08) !important;
}

/* BRAND */

body.is-customer-panel .panel-brand {
    margin: 16px !important;
    border-radius: 22px !important;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.14),
            rgba(255,255,255,.05)
        ) !important;

    border: 1px solid rgba(255,255,255,.10) !important;

    backdrop-filter: blur(10px);
}

/* PROFILE CARD */

body.is-customer-panel .panel-user-card,
body.is-customer-panel .panel-profile-card {
    margin: 16px !important;
    border-radius: 24px !important;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.14),
            rgba(255,255,255,.06)
        ) !important;

    border: 1px solid rgba(255,255,255,.10) !important;

    box-shadow:
        0 10px 35px rgba(0,0,0,.12) !important;
}

/* SIDEBAR MENU */

body.is-customer-panel .panel-nav {
    padding: 6px 12px 24px !important;
}

body.is-customer-panel .panel-nav a,
body.is-customer-panel .panel-nav-button {
    min-height: 50px !important;

    border-radius: 16px !important;

    margin-bottom: 8px !important;

    padding: 0 14px !important;

    color: rgba(255,255,255,.88) !important;

    transition:
        background .18s ease,
        transform .18s ease,
        color .18s ease !important;
}

/* HOVER */

body.is-customer-panel .panel-nav a:hover,
body.is-customer-panel .panel-nav-button:hover {
    background: rgba(255,255,255,.10) !important;

    transform: translateX(2px);

    color: #fff !important;
}

/* ACTIVE */

body.is-customer-panel .panel-nav a.is-active,
body.is-customer-panel .panel-nav-button.is-active {
    background: #ffffff !important;

    color: #087333 !important;

    font-weight: 800 !important;

    box-shadow:
        0 10px 24px rgba(15,23,42,.10) !important;
}

/* SECTION TITLE */

body.is-customer-panel .sidebar-section {
    color: rgba(255,255,255,.58) !important;

    margin-top: 24px !important;

    padding-left: 6px !important;
}

/* CONTENT AREA */

body.is-customer-panel .panel-main {
    background: transparent !important;
}

/* PAGE HEADER */

body.is-customer-panel .panel-header {
    background: transparent !important;

    border-bottom: 0 !important;

    padding-bottom: 12px !important;
}

/* PAGE TITLE */

body.is-customer-panel .panel-heading h1 {
    color: #0f172a !important;

    font-size: 42px !important;

    font-weight: 900 !important;

    letter-spacing: -.03em !important;
}

body.is-customer-panel .panel-heading p {
    color: #64748b !important;

    font-size: 16px !important;
}

/* TOP PROFILE RIGHT */

body.is-customer-panel .panel-header-profile .panel-profile-card {
    background: #ffffff !important;

    border: 1px solid #d9f0e3 !important;

    box-shadow:
        0 16px 40px rgba(15,23,42,.06) !important;
}

/* CONTENT CARD */

body.is-customer-panel .management-card {
    border-radius: 28px !important;

    border: 1px solid #d9f0e3 !important;

    background: #ffffff !important;

    box-shadow:
        0 16px 45px rgba(15,23,42,.05) !important;
}

/* DASHBOARD HERO */

body.is-customer-panel .customer-desktop-hero {
    background:
        linear-gradient(
            135deg,
            #f7fff9 0%,
            #ecfff1 100%
        ) !important;

    border: 1px solid #ccefd8 !important;
}

/* BUTTON */

body.is-customer-panel .lead-action-btn {
    border-radius: 14px !important;

    font-weight: 700 !important;
}

/* SCROLLBAR */

body.is-customer-panel ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

body.is-customer-panel ::-webkit-scrollbar-thumb {
    background: rgba(15,23,42,.18);
    border-radius: 999px;
}

body.is-customer-panel ::-webkit-scrollbar-track {
    background: transparent;
}

/* =========================================================
   CUSTOMER BRAND LOGO MODERN
========================================================= */

body.is-customer-panel .panel-brand {
    position: relative;
    overflow: hidden;
}

/* WRAP LOGO */

body.is-customer-panel .panel-brand-logo,
body.is-customer-panel .brand-logo-wrap {
    position: relative;

    width: 72px;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.24),
            rgba(255,255,255,.10)
        );

    border: 1px solid rgba(255,255,255,.18);

    box-shadow:
        0 12px 30px rgba(0,0,0,.16);

    backdrop-filter: blur(10px);
}

/* EFFECT BELAKANG */

body.is-customer-panel .panel-brand-logo::before,
body.is-customer-panel .brand-logo-wrap::before {
    content: "";

    position: absolute;
    inset: -18px;

    border-radius: 999px;

    background:
        radial-gradient(
            circle,
            rgba(255,255,255,.18),
            transparent 72%
        );

    z-index: 0;
}

/* LOGO */

body.is-customer-panel .panel-brand-logo img,
body.is-customer-panel .brand-logo,
body.is-customer-panel .mobile-brand-logo img {
    position: relative;
    z-index: 1;

    max-width: 54px;
    max-height: 54px;

    object-fit: contain;

    filter:
        drop-shadow(0 4px 10px rgba(0,0,0,.12));
}

/* TITLE */

body.is-customer-panel .panel-brand h2,
body.is-customer-panel .panel-brand strong {
    color: #ffffff !important;

    font-weight: 900 !important;

    letter-spacing: -.02em;
}

/* SUBTITLE */

body.is-customer-panel .panel-brand p,
body.is-customer-panel .panel-brand small {
    color: rgba(255,255,255,.72) !important;
}

/* CUSTOMER DESKTOP BRAND LOGO CIRCLE */

body.is-customer-panel .brand-box {
    align-items: center !important;
    gap: 14px !important;
}

body.is-customer-panel .brand-box .brand-logo {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    padding: 9px !important;
    object-fit: contain !important;

    border-radius: 999px !important;
    background: #ffffff !important;

    border: 3px solid rgba(255,255,255,.75) !important;

    box-shadow:
        0 12px 28px rgba(0,0,0,.18),
        inset 0 1px 0 rgba(255,255,255,.9) !important;
}

body.is-customer-panel .brand-box .brand-title {
    color: #ffffff !important;
    font-weight: 900 !important;
}

body.is-customer-panel .brand-box .brand-subtitle {
    color: rgba(255,255,255,.78) !important;
}