/* ORIGINAL WORKING TOPNAV CSS - MINIMAL & WORKING */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --sidebar-bg: #2c3e50;
    --topbar-bg: #34495e;
    --footer-bg: #1a252f;
    --card-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --hover-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%) !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Topbar Styles */
.admin-topbar {
    background: var(--topbar-bg);
    color: var(--topbar-text);
    padding: 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.topbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    flex-wrap: nowrap;
    gap: 1rem;
}

.topbar-left {
    display: flex;
    align-items: center;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.topbar-left h4 {
    margin: 0;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--topbar-text);
    transition: all 0.3s ease;
}

.topbar-left a:hover h4 {
    opacity: 0.8;
    transform: translateX(2px);
}

/* Topbar Buttons */
.topbar-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--topbar-text);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.topbar-btn:hover {
    background: rgba(255,255,255,0.2);
    color: var(--topbar-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
}

/* Notification badge */
.notification-badge {
    background: #e74c3c;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* User avatar in topbar */
.topbar-user-avatar { object-fit: cover; }

/* System health badge — keep visible above the button */
.topbar-right > .position-relative,
.topbar-right > .position-relative > .btn {
    overflow: visible !important;
}
.topbar-issue-count {
    font-size: .55rem !important;
    min-width: 16px !important;
    height: 16px !important;
    padding: 0 4px !important;
    line-height: 16px !important;
    top: -2px !important;
    right: -4px !important;
    left: auto !important;
    transform: none !important;
}

/* ================================================================
   TOPBAR DROPDOWNS — premium card-style menus
   ================================================================ */
.admin-topbar .dropdown-menu {
    background: var(--admin-dropdown-bg, #fff) !important;
    border: 1px solid rgba(0,0,0,.06) !important;
    box-shadow: 0 12px 36px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.03) !important;
    border-radius: 14px !important;
    padding: 6px !important;
    margin-top: 8px !important;
    min-width: 200px !important;
    z-index: 9999 !important;
    animation: topbarDropIn .18s ease;
}

@keyframes topbarDropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Dropdown header — subtle label */
.admin-topbar .dropdown-header {
    background: transparent !important;
    color: var(--bs-secondary-color, #94a3b8) !important;
    font-size: .68rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .06em !important;
    padding: 10px 12px 6px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border-bottom: 1px solid rgba(0,0,0,.05);
}
.admin-topbar .dropdown-header i {
    opacity: .5;
}

/* Dropdown items — clean rows with icon circles */
.admin-topbar .dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px 12px !important;
    font-size: .85rem !important;
    font-weight: 500 !important;
    color: var(--admin-dropdown-text, #334155) !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    transition: background .15s, color .15s !important;
    margin: 1px 0;
}
.admin-topbar .dropdown-item:hover,
.admin-topbar .dropdown-item:focus {
    background: var(--admin-dropdown-hover-bg, rgba(102,126,234,.08)) !important;
    color: var(--admin-dropdown-hover-text, #4f5ed6) !important;
    transform: none !important;
    text-decoration: none !important;
}

.admin-topbar .dropdown-item i {
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 7px !important;
    font-size: .78rem !important;
    background: #f1f5f9;
    color: #64748b;
    flex-shrink: 0;
    transition: background .15s, color .15s;
}
.admin-topbar .dropdown-item:hover i {
    background: rgba(102,126,234,.12);
    color: #4f5ed6;
}

/* Currency icon theme colors */
.admin-topbar .dropdown-item .fa-dollar-sign { background: rgba(34,197,94,.1) !important; color: #16a34a !important; }
.admin-topbar .dropdown-item .fa-euro-sign   { background: rgba(59,130,246,.1) !important; color: #2563eb !important; }
.admin-topbar .dropdown-item .fa-pound-sign  { background: rgba(245,158,11,.1) !important; color: #d97706 !important; }
.admin-topbar .dropdown-item .fa-yen-sign    { background: rgba(239,68,68,.1) !important; color: #dc2626 !important; }
.admin-topbar .dropdown-item .fa-bitcoin     { background: rgba(99,102,241,.1) !important; color: #6366f1 !important; }

/* Language flag styling */
.admin-topbar .dropdown-item .language-flag {
    width: 22px !important;
    height: 16px !important;
    object-fit: cover !important;
    border-radius: 3px !important;
    border: 1px solid rgba(0,0,0,.08) !important;
    box-shadow: 0 1px 2px rgba(0,0,0,.06) !important;
    flex-shrink: 0;
}

/* Horizontal Navigation Z-Index Fix */
.horizontal-nav { z-index: 1000 !important; }
.admin-topbar .dropdown { position: relative !important; }

/* Notification icons in dropdown */
.admin-topbar .dropdown-item .fa-user-plus  { background: rgba(34,197,94,.1) !important; color: #16a34a !important; }
.admin-topbar .dropdown-item .fa-shield-alt { background: rgba(245,158,11,.1) !important; color: #d97706 !important; }
.admin-topbar .dropdown-item .fa-cog        { background: rgba(6,182,212,.1) !important; color: #0891b2 !important; }

/* Wider notification dropdown */
.admin-topbar .dropdown-menu[style*="width: 350px"] { width: 350px !important; }
.admin-topbar .dropdown-menu[style*="width: 350px"] .dropdown-item {
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 12px !important;
}
.admin-topbar .dropdown-menu[style*="width: 350px"] .dropdown-item div { flex: 1 !important; }
.admin-topbar .dropdown-menu[style*="width: 350px"] .fw-bold {
    font-weight: 600 !important;
    color: var(--bs-body-color, #334155) !important;
    margin-bottom: 2px;
}
.admin-topbar .dropdown-menu[style*="width: 350px"] .text-muted {
    font-size: .78rem !important;
}

/* Settings Panel Styling */
.settings-panel {
    position: fixed !important;
    top: 0 !important;
    right: -400px !important;
    width: 400px !important;
    height: 100vh !important;
    background: white !important;
    box-shadow: -5px 0 20px rgba(0,0,0,0.15) !important;
    z-index: 10001 !important;
    transition: right 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
}

.settings-panel.open {
    right: 0 !important;
}

.settings-panel-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 1.5rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

.settings-panel-body {
    flex: 1 !important;
    padding: 1.5rem !important;
    overflow-y: auto !important;
}

.settings-section {
    margin-bottom: 2rem !important;
}

.settings-section-title {
    color: #495057 !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 2px solid #e9ecef !important;
    font-size: 0.9rem !important;
}

.settings-item {
    padding: 1rem !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    margin-bottom: 0.75rem !important;
    transition: all 0.3s ease !important;
}

.settings-item:hover {
    background: #e9ecef !important;
    transform: translateX(5px) !important;
}

.settings-item .fw-bold {
    color: #495057 !important;
    font-weight: 600 !important;
    margin-bottom: 0.25rem !important;
    font-size: 0.9rem !important;
}

.settings-item .text-muted {
    color: #6c757d !important;
    font-size: 0.8rem !important;
    margin-bottom: 0 !important;
}

.settings-item .badge {
    padding: 0.5rem !important;
    border-radius: 6px !important;
}

.settings-item .badge i {
    font-size: 0.9rem !important;
}

/* Badge color variants */
.settings-item .badge.bg-primary {
    background-color: #667eea !important;
}

.settings-item .badge.bg-success {
    background-color: #28a745 !important;
}

.settings-item .badge.bg-info {
    background-color: #17a2b8 !important;
}

.settings-item .badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

/* Form switches in settings */
.settings-item .form-check-input {
    width: 2rem !important;
    height: 1rem !important;
    margin-top: 0 !important;
}

.settings-item .form-check-input:checked {
    background-color: #667eea !important;
    border-color: #667eea !important;
}

.settings-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.5) !important;
    z-index: 10000 !important;
    display: none !important;
}

.settings-overlay.show {
    display: block !important;
}

/* ---- Topbar: uniform icon buttons ---- */
.topbar-right > .btn,
.topbar-right > .topbar-btn,
.topbar-right > .theme-toggle-btn,
.topbar-right > .mobile-menu-toggle,
.topbar-right > .dropdown > .topbar-btn,
.topbar-right > .position-relative > .btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.85rem;
    flex-shrink: 0;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--topbar-text, #fff);
    transition: background 0.2s, border-color 0.2s;
}
.topbar-right > .btn:hover,
.topbar-right > .topbar-btn:hover,
.topbar-right > .theme-toggle-btn:hover,
.topbar-right > .mobile-menu-toggle:hover,
.topbar-right > .dropdown > .topbar-btn:hover,
.topbar-right > .position-relative > .btn:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.22);
    color: #fff;
    transform: none;
    box-shadow: none;
}

/* User profile button — distinct from icon buttons */
.topbar-right > .btn[data-bs-target="#adminProfilePanel"] {
    width: auto;
    height: auto;
    padding: 4px 10px 4px 4px;
    gap: 8px;
    border-radius: 50rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
}
.topbar-right > .btn[data-bs-target="#adminProfilePanel"]:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.2);
}

/* Dropdown toggle caret hidden on icon-only mode */
.topbar-right > .dropdown > .topbar-btn.dropdown-toggle::after { display: none; }

/* lg+: text labels visible, buttons grow */
@media (min-width: 992px) {
    .topbar-right > .topbar-btn,
    .topbar-right > .dropdown > .topbar-btn {
        width: auto;
        height: 36px;
        padding: 0 12px;
        gap: 6px;
    }
    .topbar-right > .dropdown > .topbar-btn.dropdown-toggle::after { display: inline-block; }
}

/* Topbar Responsive */
@media (max-width: 991px) {
    .topbar-content { padding: 0.6rem 1rem; gap: 0.5rem; }
    .topbar-left h4 { font-size: 1.05rem; }
    .topbar-right { gap: 6px; }
}

@media (max-width: 767px) {
    .topbar-content { padding: 0.5rem 0.75rem; gap: 0.25rem; }
    .topbar-left h4 { font-size: 0.95rem; }
    .topbar-btn span,
    .topbar-right > .btn span:not(.notification-badge) { display: none !important; }
    .settings-panel { width: 100% !important; right: -100% !important; }
    .settings-panel.open { right: 0 !important; }
    .topbar-right > .btn,
    .topbar-right > .topbar-btn,
    .topbar-right > .theme-toggle-btn,
    .topbar-right > .mobile-menu-toggle,
    .topbar-right > .dropdown > .topbar-btn,
    .topbar-right > .position-relative > .btn {
        width: 34px;
        height: 34px;
        font-size: 0.82rem;
    }
}

@media (max-width: 575px) {
    .topbar-content { padding: 0.4rem 0.5rem; }
    .topbar-left h4 { font-size: 0.88rem; }
    .topbar-right { gap: 4px; }
    .topbar-right > .btn,
    .topbar-right > .topbar-btn,
    .topbar-right > .theme-toggle-btn,
    .topbar-right > .mobile-menu-toggle,
    .topbar-right > .dropdown > .topbar-btn,
    .topbar-right > .position-relative > .btn {
        width: 32px;
        height: 32px;
        font-size: 0.78rem;
        border-radius: 7px;
    }
    .topbar-right > .btn[data-bs-target="#adminProfilePanel"] {
        width: auto;
        height: auto;
        padding: 3px 6px 3px 3px;
    }
    .topbar-right > .btn[data-bs-target="#adminProfilePanel"] img.rounded-circle {
        width: 26px;
        height: 26px;
    }
}

/* ================================================================
   NOTIFICATION PANEL
   ================================================================ */
.notif-panel {
    min-width: 360px !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 16px 48px rgba(0,0,0,0.18) !important;
    overflow: hidden !important;
}

.notif-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.notif-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.notif-mark-read {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    background: rgba(255,255,255,0.15);
    border-radius: 50rem;
    padding: 4px 10px;
    white-space: nowrap;
    transition: background 0.2s;
}
.notif-mark-read:hover { background: rgba(255,255,255,0.28); color: #fff; }

.notif-panel-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 6px 0;
}
.notif-panel-list::-webkit-scrollbar { width: 4px; }
.notif-panel-list::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

.notif-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 11px 16px !important;
    text-decoration: none !important;
    color: inherit !important;
    border-left: 3px solid transparent;
    transition: background 0.18s, border-color 0.18s !important;
    transform: none !important;
}
.notif-item:hover { background: rgba(102,126,234,0.06) !important; border-left-color: #667eea; }

.notif-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.notif-item-content { flex: 1; min-width: 0; }

.notif-item-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--bs-body-color, #2d3748);
    line-height: 1.3;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-item-desc {
    font-size: 0.73rem;
    color: var(--bs-secondary-color, #6c757d);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-item-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #667eea;
    flex-shrink: 0;
    margin-top: 5px;
}

.notif-panel-empty {
    padding: 28px 16px;
    text-align: center;
    color: var(--bs-secondary-color, #6c757d);
}
.notif-panel-empty i { font-size: 2rem; opacity: 0.3; margin-bottom: 8px; }

.notif-panel-footer {
    padding: 10px 16px;
    border-top: 1px solid var(--bs-border-color, #e9ecef);
}

.notif-footer-btn {
    display: block;
    text-align: center;
    padding: 8px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff !important;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}
.notif-footer-btn:hover { opacity: 0.88; color: #fff; }

/* ================================================================
   NOTIFICATIONS OFFCANVAS PANEL  (.anp-* = admin notif panel)
   ================================================================ */
.anp-offcanvas {
    width: 360px !important;
    border: none !important;
    box-shadow: -8px 0 40px rgba(0,0,0,0.18) !important;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
}

.anp-cover {
    position: relative;
    background: linear-gradient(145deg, #f093fb 0%, #764ba2 45%, #667eea 100%);
    padding: 44px 24px 28px;
    text-align: center;
    color: #fff;
    overflow: hidden;
}
.anp-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.07'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E") repeat;
}
.anp-cover-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 3px solid rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 12px;
    position: relative;
    z-index: 1;
}
.anp-cover-title {
    font-size: 1.15rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}
.anp-cover-badge {
    display: inline-block;
    margin-top: 8px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 50rem;
    padding: 3px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}
.anp-badge-clear { background: rgba(40,199,111,0.25); border-color: rgba(40,199,111,0.5); color: #b8ffd9; }

.anp-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}
.anp-list::-webkit-scrollbar { width: 4px; }
.anp-list::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

.anp-empty {
    padding: 48px 24px;
    text-align: center;
    color: var(--bs-secondary-color, #6c757d);
}
.anp-empty-icon {
    font-size: 3rem;
    color: #28c76f;
    opacity: 0.4;
    margin-bottom: 14px;
    display: block;
}
.anp-empty-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--bs-body-color, #2d3748);
}
.anp-empty-sub { font-size: 0.8rem; }

.anp-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 20px;
    text-decoration: none !important;
    color: var(--bs-body-color, #2d3748) !important;
    border-left: 3px solid transparent;
    transition: background 0.15s, border-color 0.15s;
}
.anp-item:hover {
    background: rgba(102,126,234,0.06);
    border-left-color: #667eea;
}
.anp-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.anp-item-body { flex: 1; min-width: 0; }
.anp-item-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 3px;
}
.anp-item-desc {
    font-size: 0.75rem;
    color: var(--bs-secondary-color, #9aa0ac);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.anp-item-new {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    background: #667eea;
    color: #fff;
    border-radius: 4px;
    padding: 2px 6px;
    flex-shrink: 0;
    margin-top: 2px;
    align-self: flex-start;
}

.anp-footer {
    padding: 12px 20px 20px;
    border-top: 1px solid var(--bs-border-color, #e9ecef);
}
.anp-footer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 11px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff !important;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: opacity 0.2s, transform 0.2s;
}
.anp-footer-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* ================================================================
   PROFILE OFFCANVAS PANEL  (.aup-* = admin user profile)
   ================================================================ */
.aup-offcanvas {
    width: 320px !important;
    border: none !important;
    box-shadow: -8px 0 40px rgba(0,0,0,0.2) !important;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
}

/* ---- Cover / Hero ---- */
.aup-cover {
    position: relative;
    background: linear-gradient(145deg, #667eea 0%, #764ba2 55%, #f093fb 100%);
    padding: 40px 20px 24px;
    text-align: center;
    color: #fff;
    overflow: hidden;
}
.aup-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.aup-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 1;
}
.aup-close-btn:hover { background: rgba(255,255,255,0.35); }

.aup-avatar-ring {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    margin: 0 auto 14px;
    padding: 3px;
    background: linear-gradient(135deg, rgba(255,255,255,0.7), rgba(255,255,255,0.2));
    position: relative;
    z-index: 1;
}
.aup-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.9);
    display: block;
}

.aup-cover-name {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    position: relative;
    z-index: 1;
}
.aup-cover-role {
    font-size: 0.78rem;
    opacity: 0.85;
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}
.aup-online-pill {
    background: rgba(40,199,111,0.28);
    border: 1px solid rgba(40,199,111,0.5);
    border-radius: 50rem;
    padding: 2px 9px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #b8ffd9;
}
.aup-online-pill .fas { font-size: 0.45rem; vertical-align: middle; color: #28c76f; }

/* ---- Stats Strip ---- */
.aup-stats-strip {
    display: flex;
    align-items: center;
    background: var(--bs-body-bg, #fff);
    border-bottom: 1px solid var(--bs-border-color, #e9ecef);
}
.aup-stat {
    flex: 1;
    text-align: center;
    padding: 14px 8px;
    text-decoration: none;
    color: var(--bs-body-color, #2d3748);
    transition: background 0.15s;
}
.aup-stat:hover { background: rgba(102,126,234,0.05); color: #667eea; }
.aup-stat-val {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
    color: #667eea;
}
.aup-stat-lbl {
    font-size: 0.67rem;
    color: var(--bs-secondary-color, #6c757d);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}
.aup-stat-sep {
    width: 1px;
    height: 32px;
    background: var(--bs-border-color, #e9ecef);
    flex-shrink: 0;
}

/* ---- Menu ---- */
.aup-menu {
    flex: 1;
    padding: 12px 0 0;
    overflow-y: auto;
}
.aup-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bs-secondary-color, #9aa0ac);
    padding: 0 20px 8px;
}

.aup-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 20px;
    text-decoration: none !important;
    color: var(--bs-body-color, #2d3748) !important;
    transition: background 0.15s, gap 0.15s;
    border-left: 3px solid transparent;
}
.aup-item:hover {
    background: rgba(102,126,234,0.06);
    border-left-color: #667eea;
    gap: 17px;
    color: var(--bs-body-color, #2d3748) !important;
}
.aup-item:hover .aup-item-icon { transform: scale(1.08); }
.aup-item:hover .aup-item-arrow { opacity: 1; transform: translateX(3px); color: #667eea; }

.aup-item-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: transform 0.18s;
}
.aup-item-body { flex: 1; min-width: 0; }
.aup-item-label {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
}
.aup-item-sub {
    font-size: 0.73rem;
    color: var(--bs-secondary-color, #9aa0ac);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.aup-item-arrow {
    font-size: 0.7rem;
    opacity: 0.25;
    transition: opacity 0.15s, transform 0.15s;
    flex-shrink: 0;
}

/* ---- Footer / Logout ---- */
.aup-footer {
    padding: 12px 20px 20px;
    border-top: 1px solid var(--bs-border-color, #e9ecef);
    margin-top: auto;
}
.aup-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 11px;
    border-radius: 12px;
    background: rgba(234,84,85,0.07);
    color: #ea5455 !important;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none !important;
    border: 1.5px solid rgba(234,84,85,0.2);
    transition: all 0.2s;
}
.aup-logout-btn:hover {
    background: #ea5455;
    color: #fff !important;
    border-color: #ea5455;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(234,84,85,0.35);
}

.aup-switch-admin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 11px;
    border-radius: 12px;
    background: rgba(0, 207, 232, 0.08);
    color: #00cfe8 !important;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none !important;
    border: 1.5px solid rgba(0, 207, 232, 0.25);
    transition: all 0.2s;
    margin-bottom: 10px;
}
.aup-switch-admin-btn:hover {
    background: #00cfe8;
    color: #fff !important;
    border-color: #00cfe8;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 207, 232, 0.35);
}