/* ==========================================
   ELITSLOTS HEADER
========================================== */

header {
    width: 100%;
    position: relative;
    z-index: 1000;

    background: #0b0d14;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);

    box-sizing: border-box;
}


/* ==========================================
   TOP BAR
========================================== */

.top-bar {
    width: 100%;
    height: 76px;

    display: flex !important;
    align-items: center !important;

    padding: 0 28px !important;

    box-sizing: border-box;

    background: #0b0d14;

    position: relative;
}


/* ==========================================
   LOGO
========================================== */

.logo {
    display: flex !important;
    align-items: center !important;

    margin: 0 !important;

    flex-shrink: 0;
}


.logo a {
    display: block;

    color: #ffffff !important;

    text-decoration: none !important;

    font-size: 30px !important;
    font-weight: 900 !important;

    letter-spacing: -1px;

    line-height: 1;

    white-space: nowrap;
}


.logo a:hover {
    color: #ffffff !important;
}


/* ==========================================
   AUTH / USER AREA
========================================== */

.auth-buttons {
    margin-left: auto !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;

    gap: 12px;

    flex-shrink: 0;
}


/* ==========================================
   USER INFO
========================================== */

.auth-buttons .username,
.auth-buttons .user-name,
.auth-buttons .balance {
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
}


/* ==========================================
   LOGIN
========================================== */

.login-btn {
    height: 42px;

    padding: 0 20px;

    border-radius: 10px;

    border: 1px solid #8b5cf6;

    background: transparent;

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.2s ease;
}


.login-btn:hover {
    background: rgba(139, 92, 246, 0.12);
}


/* ==========================================
   REGISTER
========================================== */

.register-btn {
    height: 42px;

    padding: 0 20px;

    border-radius: 10px;

    border: none;

    background: linear-gradient(
        135deg,
        #7c3aed,
        #9333ea
    );

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.2s ease;
}


.register-btn:hover {
    transform: translateY(-1px);

    box-shadow:
        0 6px 20px rgba(124, 58, 237, 0.30);
}


/* ==========================================
   LOGOUT
========================================== */

.logout-btn {
    height: 42px;

    padding: 0 18px;

    border-radius: 10px;

    border: 1px solid rgba(255, 255, 255, 0.12);

    background: #151821;

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.2s ease;
}


.logout-btn:hover {
    background: #20232e;

    border-color:
        rgba(139, 92, 246, 0.5);
}


/* ==========================================
   SECOND NAVIGATION BAR
========================================== */

.nav-bar {
    width: 100% !important;

    height: 58px !important;
    min-height: 58px !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    gap: 8px !important;

    padding: 0 20px !important;

    margin: 0 !important;

    box-sizing: border-box;

    background: #10121b;

    border-top:
        1px solid rgba(255, 255, 255, 0.035);

    overflow: visible;
}


/* ==========================================
   NAV ITEM
========================================== */

.nav-item {
    position: relative;

    height: 58px !important;

    min-width: 120px !important;

    padding: 0 22px !important;

    margin: 0 !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    gap: 9px !important;

    box-sizing: border-box;

    color: #a7a9b5 !important;

    text-decoration: none !important;

    font-size: 14px !important;
    font-weight: 700 !important;

    white-space: nowrap;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}


.nav-item i {
    display: inline-block;

    color: #777b89;

    font-size: 15px;

    margin: 0;

    transition:
        color 0.2s ease;
}


.nav-item:hover {
    color: #ffffff !important;

    background:
        rgba(139, 92, 246, 0.06);
}


.nav-item:hover i {
    color: #8b5cf6;
}


/* ==========================================
   ACTIVE ITEM
========================================== */

.nav-item.active {
    color: #ffffff !important;
}


.nav-item.active i {
    color: #8b5cf6;
}


.nav-item.active::after {
    content: "";

    position: absolute;

    left: 22px;
    right: 22px;
    bottom: 0;

    height: 2px;

    border-radius: 10px;

    background: #8b5cf6;

    box-shadow:
        0 0 12px rgba(139, 92, 246, 0.75);
}

.account-trigger-avatar,
.account-menu-avatar {
    overflow: hidden;
}


.vip-link {
    color: #c4b5fd;
    font-weight: 800;
}


.vip-link::before {
    content: "★";

    margin-right: 10px;

    color: #8b5cf6;
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 850px) {

    .top-bar {
        height: 68px !important;

        padding: 0 16px !important;
    }


    .logo a {
        font-size: 25px !important;
    }


    .nav-bar {
        justify-content: flex-start !important;

        overflow-x: auto;

        scrollbar-width: none;
    }


    .nav-bar::-webkit-scrollbar {
        display: none;
    }


    .nav-item {
        min-width: 105px !important;

        padding: 0 15px !important;
    }

}


@media (max-width: 600px) {

    .auth-buttons {
        gap: 5px;
    }


    .auth-buttons .login-btn,
    .auth-buttons .register-btn {
        display: none;
    }


    .nav-item {
        min-width: 90px !important;

        font-size: 12px !important;
    }

}/* ==========================================
   FINAL HEADER LAYOUT FIX
========================================== */

header {
    width: 100%;
    display: block !important;
    position: relative !important;
}


/* ==========================================
   TOP ROW
========================================== */

.top-bar {
    width: 100% !important;
    height: 76px !important;

    display: flex !important;
    flex-direction: row !important;

    align-items: center !important;

    justify-content: flex-start !important;

    padding: 0 32px !important;
    margin: 0 !important;

    position: relative !important;
    box-sizing: border-box !important;

    background: #0b0d14 !important;
}


/* LOGO LEFT */

.logo {
    position: relative !important;

    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;

    margin: 0 !important;

    flex: 0 0 auto !important;
}


/* USER AREA RIGHT */

.auth-buttons {
    margin-left: auto !important;

    margin-right: 10px !important;

    display: flex !important;

    align-items: center !important;
    justify-content: flex-end !important;

    gap: 10px !important;

    position: relative !important;

    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;

    flex: 0 0 auto !important;
}


/* ==========================================
   NAVIGATION MUST BE SECOND ROW
========================================== */

.nav-bar {
    width: 100% !important;

    height: 58px !important;
    min-height: 58px !important;

    display: flex !important;

    flex-direction: row !important;

    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;

    padding: 0 20px !important;

    position: relative !important;

    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;

    float: none !important;

    box-sizing: border-box !important;

    background: #10121b !important;
}


/* ==========================================
   NAV ITEMS
========================================== */

.nav-item {
    height: 58px !important;

    min-width: 120px !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 auto !important;

    margin: 0 !important;
    padding: 0 22px !important;

    box-sizing: border-box !important;

    position: relative !important;

    white-space: nowrap !important;
}


/* ==========================================
   DESKTOP USER AREA
========================================== */

@media (min-width: 851px) {

    .top-bar {
        padding-left: 32px !important;
        padding-right: 32px !important;
    }

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 850px) {

    .top-bar {
        height: 68px !important;

        padding: 0 16px !important;
    }

    .nav-bar {
        height: 56px !important;
        min-height: 56px !important;

        justify-content: flex-start !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;
    }

    .nav-item {
        height: 56px !important;

        min-width: 100px !important;
    }

}

/* =========================================================
   ACCOUNT DROPDOWN
========================================================= */

.account-dropdown {
    position: relative;
    z-index: 3000;
}

.account-trigger {
    height: 46px;
    min-width: 150px;
    box-sizing: border-box;
    padding: 0 13px 0 8px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 12px;
    background: #11141d;
    color: #fff;
    cursor: pointer;
    transition: .2s ease;
}

.account-trigger:hover,
.account-dropdown.open .account-trigger {
    border-color: rgba(139,92,246,.55);
    background: #171a25;
    box-shadow: 0 8px 28px rgba(0,0,0,.25);
}

.account-trigger-avatar,
.account-menu-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg,#7c3aed,#3b82f6);
    color: #fff;
    font-weight: 800;
}

.account-trigger-avatar { width: 30px; height: 30px; font-size: 13px; }
.account-trigger-name {
    max-width: 125px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 800;
}
.account-chevron { margin-left: auto; font-size: 11px; color: #9296a5; transition: transform .2s ease; }
.account-dropdown.open .account-chevron { transform: rotate(180deg); color: #a982ff; }

.account-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 270px;
    padding: 9px;
    border: 1px solid rgba(139,92,246,.20);
    border-radius: 15px;
    background: #11141d;
    box-shadow: 0 20px 55px rgba(0,0,0,.55), 0 0 30px rgba(124,58,237,.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-7px) scale(.98);
    transform-origin: top right;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.account-dropdown.open .account-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.account-menu-user {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 9px 12px;
}
.account-menu-avatar { width: 40px; height: 40px; font-size: 15px; }
.account-menu-user strong { display: block; color:#fff; font-size:14px; }
.account-menu-user span { display:block; margin-top:4px; color:#8f94a4; font-size:12px; }
.account-menu-divider { height:1px; margin:5px 2px; background:rgba(255,255,255,.07); }

.account-menu-link,
.account-logout {
    width: 100%;
    min-height: 45px;
    padding: 0 11px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #bfc2cc;
    text-decoration: none;
    font: 600 14px Arial,sans-serif;
    text-align: left;
    cursor: pointer;
    transition: .18s ease;
}
.account-menu-link i,
.account-logout i { width: 18px; text-align:center; color:#858a9b; }
.account-menu-link:hover { color:#fff; background:rgba(139,92,246,.10); }
.account-menu-link:hover i { color:#a982ff; }
.account-menu-link small { margin-left:auto; color:#74798a; font-size:10px; font-weight:700; }

.account-finance-link i {
    color: #a982ff;
}

.account-finance-link:hover i {
    color: #ffffff;
}

.vip-account-link { color:#d5c9ff; }
.vip-account-link i { color:#a982ff; }
.account-logout { color:#ff727b; }
.account-logout:hover { background:rgba(255,80,90,.08); color:#ff8b92; }
.account-logout:hover i { color:#ff727b; }

@media (max-width: 600px) {
    .account-trigger { min-width: 0; width: 46px; padding: 0; justify-content:center; }
    .account-trigger-name, .account-chevron { display:none; }
    .account-menu { right: -5px; width: 260px; }
}



/* Wallet + button next to header balance */
.wallet-plus-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-left: 5px;
    flex: 0 0 26px;
    border: 1px solid rgba(139,92,246,.45);
    border-radius: 7px;
    background: rgba(139,92,246,.10);
    color: #c4b5fd;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    transition: .18s ease;
}

.wallet-plus-trigger:hover,
.wallet-plus-trigger:focus-visible {
    border-color: #8b5cf6;
    background: #7c3aed;
    color: #fff;
    box-shadow: 0 5px 16px rgba(124,58,237,.28);
    outline: none;
    transform: translateY(-1px);
}

.account-header-balance {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    box-sizing: border-box;
    min-width: 82px;
    max-width: 132px;
    padding: 5px 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    background: #0c0f16;
    color: #f2f4fa;
    font-size: 11px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: -.02em;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: default;
    user-select: text;
}

.account-header-balance:hover {
    color: inherit;
}

/* =========================================================
   VIP GOLD HEADER
   Aktywne tylko dla użytkownika z aktywnym VIP.
========================================================= */

.account-trigger.vip-active {
    border-color: rgba(234, 179, 8, .95);
    box-shadow:
        0 0 0 1px rgba(234, 179, 8, .20),
        0 0 18px rgba(234, 179, 8, .22),
        0 8px 28px rgba(0,0,0,.25);
}

.account-trigger.vip-active:hover,
.account-dropdown.open .account-trigger.vip-active {
    border-color: #facc15;
    box-shadow:
        0 0 0 1px rgba(250, 204, 21, .28),
        0 0 24px rgba(250, 204, 21, .30),
        0 8px 28px rgba(0,0,0,.25);
}

.account-trigger-avatar.vip-active {
    border: 2px solid #facc15;
    box-shadow:
        0 0 10px rgba(250, 204, 21, .55);
}

.account-header-balance.vip-active {
    color: #facc15;
    font-weight: 900;
    padding: 5px 8px;
    border: 1px solid rgba(250, 204, 21, .72);
    border-radius: 8px;
    background: rgba(250, 204, 21, .07);
    box-shadow: 0 0 10px rgba(250, 204, 21, .16);
}

.account-dropdown.vip-active .account-chevron {
    color: #facc15;
}

/* =========================================================
   HEADER WALLET LAUNCHER — DEPOSIT / WITHDRAW
========================================================= */
.wallet-balance-trigger {
    cursor: pointer;
    user-select: none;
    outline: none;
}

.wallet-balance-trigger:hover {
    color: #c4b5fd;
}

.wallet-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 420px;
    max-width: min(420px, calc(100vw - 28px));
    padding: 18px;
    box-sizing: border-box;
    border: 1px solid rgba(139,92,246,.24);
    border-radius: 18px;
    background: #11141d;
    box-shadow: 0 24px 70px rgba(0,0,0,.58), 0 0 35px rgba(124,58,237,.10);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(.98);
    transform-origin: top right;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    z-index: 3100;
}

.wallet-panel.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.wallet-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.wallet-panel-header strong {
    display: block;
    margin-top: 3px;
    color: #fff;
    font-size: 19px;
}

.wallet-panel-eyebrow {
    color: #8b5cf6;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
}

.wallet-panel-close {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 9px;
    background: #171a25;
    color: #bfc2cc;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.wallet-panel-close:hover {
    color: #fff;
    border-color: rgba(139,92,246,.45);
}

.wallet-panel-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 14px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: rgba(139,92,246,.07);
    border: 1px solid rgba(139,92,246,.14);
}

.wallet-panel-balance span {
    color: #9296a5;
    font-size: 12px;
}

.wallet-panel-balance strong {
    color: #fff;
    font-size: 17px;
}

.wallet-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 4px;
    margin-bottom: 15px;
    border-radius: 11px;
    background: #0b0e15;
}

.wallet-tab {
    min-height: 40px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #858a9b;
    font: 800 13px Arial,sans-serif;
    cursor: pointer;
}

.wallet-tab i { margin-right: 6px; }

.wallet-tab.active {
    color: #fff;
    background: #7c3aed;
    box-shadow: 0 6px 18px rgba(124,58,237,.22);
}

.wallet-view { display: none; }
.wallet-view.active { display: block; }

.wallet-field-label {
    display: block;
    margin: 0 0 7px;
    color: #bfc2cc;
    font-size: 12px;
    font-weight: 800;
}

.wallet-field {
    width: 100%;
    height: 43px;
    box-sizing: border-box;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 10px;
    outline: none;
    background: #0b0e15;
    color: #fff;
    font: 600 13px Arial,sans-serif;
}

.wallet-field:focus {
    border-color: rgba(139,92,246,.65);
    box-shadow: 0 0 0 3px rgba(139,92,246,.08);
}

.wallet-payment-details {
    min-height: 48px;
    margin: 9px 0 13px;
    padding: 10px 12px;
    box-sizing: border-box;
    border: 1px dashed rgba(255,255,255,.10);
    border-radius: 10px;
    background: #0b0e15;
    color: #9296a5;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 11px;
    line-height: 1.45;
}

.wallet-amount-wrap {
    position: relative;
}

.wallet-amount-wrap .wallet-field {
    padding-right: 52px;
}

.wallet-amount-wrap > span {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: #74798a;
    font-size: 11px;
    font-weight: 800;
}

.wallet-primary,
.wallet-secondary {
    width: 100%;
    min-height: 43px;
    margin-top: 12px;
    border-radius: 10px;
    cursor: pointer;
    font: 800 13px Arial,sans-serif;
    transition: .18s ease;
}

.wallet-primary {
    border: 0;
    background: linear-gradient(135deg,#7c3aed,#9333ea);
    color: #fff;
}

.wallet-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 9px 24px rgba(124,58,237,.25);
}

.wallet-primary:disabled {
    opacity: .55;
    cursor: wait;
}

.wallet-secondary {
    border: 1px solid rgba(139,92,246,.45);
    background: rgba(139,92,246,.08);
    color: #fff;
}

.wallet-secondary:hover {
    background: rgba(139,92,246,.16);
}

.wallet-message {
    min-height: 18px;
    margin-top: 9px;
    color: #aeb2c0;
    font-size: 11px;
    line-height: 1.4;
}

.wallet-history-link {
    display: inline-block;
    margin-top: 8px;
    color: #a982ff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
}

.wallet-history-link:hover { color: #fff; }

.wallet-info-box {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    margin-bottom: 14px;
    border: 1px solid rgba(139,92,246,.14);
    border-radius: 10px;
    background: rgba(139,92,246,.06);
    color: #aeb2c0;
    font-size: 11px;
    line-height: 1.5;
}

.wallet-info-box i { color: #a982ff; margin-top: 2px; }

@media (max-width: 600px) {
    .wallet-panel {
        position: fixed;
        top: 68px;
        right: 10px;
        width: calc(100vw - 20px);
        max-width: none;
    }
}


/* Prevent authentication flash while header resolves the current session. */
.auth-buttons { visibility: hidden; }
.auth-buttons.header-auth-ready { visibility: visible; }
.auth-buttons.header-auth-ready { transition: opacity .12s ease; }
.auth-buttons:not(.header-auth-ready) { opacity: 0; }
.auth-buttons.header-auth-ready { opacity: 1; }

/* Simplified wallet launcher — full finance flow lives on /pages/wallet.html */
.wallet-panel-shortcut{
    display:flex;
    align-items:center;
    gap:12px;
    padding:14px;
    margin-bottom:12px;
    border:1px solid rgba(255,255,255,.07);
    border-radius:12px;
    background:#0f1119;
}
.wallet-panel-shortcut-icon{
    width:38px;
    height:38px;
    flex:0 0 38px;
    display:grid;
    place-items:center;
    border-radius:10px;
    background:rgba(139,92,246,.12);
    color:#b794ff;
}
.wallet-panel-shortcut strong{display:block;color:#fff;font-size:13px}
.wallet-panel-shortcut span{display:block;margin-top:4px;color:#858a9b;font-size:10px;line-height:1.45}
.wallet-panel-open{
    width:100%;
    min-height:43px;
    border:0;
    border-radius:10px;
    background:linear-gradient(135deg,#7c3aed,#9333ea);
    color:#fff;
    font:800 13px Arial,sans-serif;
    cursor:pointer;
    transition:.18s ease;
}
.wallet-panel-open:hover{transform:translateY(-1px);box-shadow:0 9px 24px rgba(124,58,237,.25)}

/* ==========================================
   NOTIFICATIONS
========================================== */
.notification-dropdown {
    position: relative;
    z-index: 1202;
    flex-shrink: 0;
    isolation: isolate;
}

.notification-trigger {
    width: 46px;
    height: 46px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 11px;
    background: #11141d;
    color: #fff;
    cursor: pointer;
    transition: .2s ease;
}

.notification-trigger:hover,
.notification-trigger[aria-expanded="true"] {
    border-color: rgba(139,92,246,.65);
    background: #171a25;
    box-shadow: 0 0 18px rgba(139,92,246,.16);
}

.notification-trigger i { font-size: 17px; }

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #8b5cf6;
    color: #fff;
    border: 2px solid #0b0d14;
    font-size: 10px;
    font-weight: 900;
}

.notification-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(370px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
    padding: 0;
    border: 1px solid rgba(139,92,246,.25);
    border-radius: 15px;
    background: #0f121b;
    box-shadow: 0 20px 55px rgba(0,0,0,.48), 0 0 30px rgba(139,92,246,.10);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(.98);
    transform-origin: top right;
    transition: .18s ease;
    z-index: 1100;
}

.notification-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.notification-menu-header {
    min-height: 66px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.notification-menu-header > div { display:flex; flex-direction:column; gap:3px; }
.notification-menu-header strong { color:#fff; font-size:15px; }
.notification-menu-header span { color:#777d91; font-size:11px; }
.notification-menu-header button {
    border:0;
    background:transparent;
    color:#a78bfa;
    font-size:11px;
    font-weight:800;
    cursor:pointer;
}
.notification-menu-header button:hover { color:#fff; }

.notification-list {
    max-height: 430px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.notification-list::-webkit-scrollbar { display:none; width:0; height:0; }

.notification-item {
    width: 100%;
    box-sizing: border-box;
    min-height: 76px;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    position: relative;
    padding: 13px 16px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.055);
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}
.notification-item:hover { background: rgba(139,92,246,.07); }
.notification-item.unread { background: rgba(139,92,246,.045); }

.notification-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    background: rgba(139,92,246,.12);
    border:1px solid rgba(139,92,246,.20);
    color:#a78bfa;
}
.notification-content { min-width:0; display:flex; flex-direction:column; gap:3px; }
.notification-content strong { color:#fff; font-size:12px; font-weight:800; overflow-wrap:anywhere; }
.notification-content span { color:#9da2b1; font-size:11px; line-height:1.4; white-space:normal; overflow-wrap:anywhere; }
.notification-content small { color:#606678; font-size:9px; }
.notification-dot {
    width:7px;
    height:7px;
    margin-left:auto;
    margin-top:5px;
    flex:0 0 7px;
    border-radius:50%;
    background:#a855f7;
    box-shadow:0 0 10px rgba(168,85,247,.75);
}
.notification-item.read { opacity:.76; }
.notification-empty {
    min-height: 170px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:10px;
    color:#666d80;
    font-size:12px;
}
.notification-empty i { font-size:26px; color:#555b6c; }

@media (max-width: 640px) {
    .notification-menu {
        position: fixed;
        top: 70px;
        right: 12px;
        width: min(370px, calc(100vw - 24px));
        max-height: calc(100dvh - 86px);
        display: flex;
        flex-direction: column;
    }
    .notification-list {
        min-height: 0;
        max-height: min(430px, calc(100dvh - 152px));
    }
}


.account-trigger-avatar img,
.account-menu-avatar img,
.header-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
