* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #d8a24d;
    --gold-light: #ffcb73;
    --glass: rgba(255,255,255,.04);
}

body {
    font-family: Inter,sans-serif;
    background: linear-gradient( 135deg, #050505, #101010, #181818 );
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    color: white;
    position: relative;
}

    /* GLOW */

    body::before {
        content: "";
        position: fixed;
        width: 260px;
        height: 260px;
        top: -160px;
        left: -160px;
        border-radius: 50%;
        background: rgba( 216, 162, 77, .04 );
        filter: blur( 120px );
        pointer-events: none;
        z-index: -1;
    }

    body::after {
        content: "";
        position: fixed;
        width: 220px;
        height: 220px;
        right: -120px;
        bottom: -120px;
        border-radius: 50%;
        background: rgba( 255, 203, 115, .04 );
        filter: blur( 120px );
        pointer-events: none;
        z-index: -1;
    }

/* SCROLL */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: rgba( 216, 162, 77, .25 );
    border-radius: 999px;
}

/* SHELL */

.admin-shell {
    display: flex;
    height: 100vh;
    position: relative;
    z-index: 2;
}

/* SIDEBAR */

.sidebar {
    width: 300px;
    padding: 30px;
    background: linear-gradient( 180deg, rgba( 18, 18, 18, .98 ), rgba( 10, 10, 10, .98 ) );
    border-right: 1px solid rgba( 255, 255, 255, .04 );
    display: flex;
    flex-direction: column;
    gap: 40px;
    flex-shrink: 0;
    z-index: 1000;
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-icon {
    width: 82px;
    height: 82px;
    border-radius: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient( 135deg, var(--gold), var(--gold-light) );
    color: black;
}

.brand span {
    opacity: .6;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar a {
    height: 62px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    border-radius: 22px;
    text-decoration: none;
    color: white;
    transition: .25s;
}

    .sidebar a:hover {
        background: rgba( 255, 255, 255, .05 );
        transform: translateX( 4px );
    }

/* OVERLAY */

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba( 0, 0, 0, .72 );
    opacity: 0;
    visibility: hidden;
    transition: .25s;
    z-index: 9998;
}

    .sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }

/* PAGE */

/* PAGE */

.page {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.topbar {
    min-height: 110px;
    padding: 20px 32px 0;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    margin-bottom: 12px;
}

.page-content {
    flex: 1;
    overflow-x: hidden;
    overflow-y: visible;
    padding: 0;
    margin-top: 0;
    width: 100%;
    max-width: 100%;
}

/* RIGHT */

.top-right {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

.notif,
.avatar {
    width: 78px;
    height: 78px;
    border: none;
    border-radius: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    background: linear-gradient( 135deg, var(--gold), var(--gold-light) );
    color: black;
    box-shadow: 0 18px 40px rgba( 216, 162, 77, .18 );
}

/* NOTIF */

.notif-box {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 20;
}

.notif {
    cursor: pointer;
    position: relative;
}

    .notif svg {
        width: 24px;
        height: 24px;
    }

#notifBadge {
    position: absolute;
    top: 8px;
    right: 8px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    display: none;
    justify-content: center;
    align-items: center;
    background: #ff5757;
    font-size: 11px;
    font-weight: 700;
}

    #notifBadge:empty {
        display: none;
    }

.notif-panel {
    position: absolute;
    top: calc( 100% + 14px );
    right: 0;
    width: 340px;
    max-height: 520px;
    overflow-y: auto;
    padding: 20px;
    border-radius: 24px;
    background: linear-gradient( 180deg, rgba( 20, 20, 20, .98 ), rgba( 12, 12, 12, .98 ) );
    border: 1px solid rgba( 255, 255, 255, .06 );
    box-shadow: 0 24px 60px rgba( 0, 0, 0, .45 );
    display: none;
    z-index: 999999;
}

.notif-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
}

.notif-item {
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 18px;
    background: rgba( 255, 255, 255, .04 );
}

.notif-more {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 18px;
    background: linear-gradient( 135deg, var(--gold), var(--gold-light) );
    font-weight: 700;
}

/* MENU */

#menuBtn {
    display: none;
    border: none;
    background: none;
    color: white;
    font-size: 28px;
}

/* MOBILE */

@media(max-width:900px) {

    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: 300px;
        height: 100vh;
        padding-bottom: 120px;
        transform: translateX(-100%);
        transition: transform .25s ease;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        z-index: 9999;
        will-change: transform;
    }

        .sidebar.open {
            transform: translateX(0);
        }

        .sidebar nav {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

    .logout-link {
        margin-top: 20px;
    }

    .admin-shell {
        overflow-x: hidden;
    }

    body {
        overflow-x: hidden;
    }

    #menuBtn {
        display: block;
        width: 52px;
        height: 52px;
        font-size: 24px;
        margin-top: 0;
    }

    .topbar {
        min-height: 58px;
        height: auto;
        padding: 10px 16px;
        margin-bottom: 0;
    }

    .page-content {
        padding: 0;
        margin-top: 0;
    }

    .top-right {
        gap: 10px;
    }

    .brand-icon {
        width: 58px;
        height: 58px;
        font-size: 18px;
        border-radius: 18px;
    }

    .notif,
    .avatar {
        width: 58px;
        height: 58px;
        border-radius: 18px;
    }

    .notif-panel {
        width: 300px;
        top: 72px;
    }
}

/* SMALL */

@media(max-width:420px) {

    .sidebar {
        width: 280px;
    }

    .brand-icon {
        width: 52px;
        height: 52px;
        font-size: 16px;
    }

    .notif,
    .avatar {
        width: 52px;
        height: 52px;
        border-radius: 16px;
    }

    .top-right {
        gap: 8px;
    }

    .notif-panel {
        width: 280px;
    }
}

/* FIX TOPBAR GLOBAL */

.topbar {
    min-height: 78px;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* NOTIF */

.notif-box {
    position: relative;
    flex-shrink: 0;
}

#notifBtn {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    min-height: 54px !important;
    border-radius: 18px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    flex-shrink: 0;
    background: linear-gradient( 135deg, #d8a24d, #ffcb73);
}

    #notifBtn svg {
        width: 20px !important;
        height: 20px !important;
    }

/* BADGE */

#notifBadge {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    background: #ff4d4d;
    color: white;
}

/* AVATAR */

.topbar .avatar {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    min-height: 54px !important;
    border-radius: 18px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-weight: 800;
    font-size: 15px;
    flex-shrink: 0;
    background: linear-gradient( 135deg, #d8a24d, #ffcb73);
    color: black;
}

/* EXPIRED */

.expired-badge {
    min-height: 28px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(239,68,68,.14);
    color: #ef4444;
    font-size: 12px;
    font-weight: 700;
}