/* OPTIMIZED: Image loading optimizations */
.user-avatar,
.user-avatar-large img,
.mobile-avatar-img,
.mobile-user-avatar-large {
    transform: translateZ(0);
    will-change: transform;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimizeQuality;
    min-width: 40px;
    min-height: 40px;
}

.user-avatar-large img,
.mobile-user-avatar-large {
    min-width: 64px;
    min-height: 64px;
}

.user-avatar-container::before,
.user-avatar-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #F3F4F6;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: -1;
}

/* FIXED: Header Brand Logo - DESKTOP ONLY (Hidden on Mobile) */
.header-brand-logo {
    display: flex !important;
    align-items: center;
    flex-shrink: 0;
    position: absolute;
    left: 32px;
    z-index: 1001;
    opacity: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-brand-logo.hide {
    display: none !important;
    opacity: 0;
}

.header-brand-logo.show {
    display: flex !important;
    opacity: 1;
}

/* CRITICAL: Hide logo on mobile completely */
@media (max-width: 768px) {
    .header-brand-logo {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    .header-brand-logo.show,
    .header-brand-logo.hide {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

.brand-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 8px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-logo-link:hover {
    transform: scale(1.05);
}

.revesery-brand-text {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    letter-spacing: -0.5px;
    line-height: 1;
    display: block;
}

/* Modern Header Styles */
.modern-header {
    position: sticky;
    top: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.3);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 32px;
    gap: 24px;
    position: relative;
}

/* MOBILE BURGER MENUS */
.mobile-left-burger,
.mobile-right-burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1001;
}

.mobile-left-burger {
    order: -1;
}

.mobile-right-burger {
    order: 999;
}

.mobile-left-burger:hover,
.mobile-right-burger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.burger-lines {
    width: 20px;
    height: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.burger-lines span {
    display: block;
    height: 2px;
    width: 100%;
    background: #374151;
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.left-burger span {
    background: #EF4444;
}

.right-burger span {
    background: #6B7280;
}

/* Active states */
.mobile-left-burger.active .burger-lines span:nth-child(1),
.mobile-right-burger.active .burger-lines span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-left-burger.active .burger-lines span:nth-child(2),
.mobile-right-burger.active .burger-lines span:nth-child(2) {
    opacity: 0;
}

.mobile-left-burger.active .burger-lines span:nth-child(3),
.mobile-right-burger.active .burger-lines span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* MOBILE CENTER LOGO */
.mobile-center-logo {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
}

.mobile-brand-link {
    text-decoration: none;
    color: #111827;
}

.mobile-brand-text {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    letter-spacing: -0.5px;
}

/* MOBILE USER AVATAR */
.mobile-user-avatar {
    display: none;
    order: 999;
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
    transition: all 0.2s ease;
}

.mobile-user-avatar:hover {
    transform: scale(1.05);
}

.mobile-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #EF4444;
}

/* MOBILE RIGHT MENU - HIDDEN BY DEFAULT */
.mobile-right-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100vw;
    height: 100vh;
    background: white;
    z-index: 1500;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
}

.mobile-right-menu.active {
    right: 0;
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.mobile-right-menu-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: 0 auto;
    padding: 0 16px;
}

.mobile-menu-header {
    padding: 20px 0;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #F9FAFB 0%, #FFFFFF 100%);
    position: sticky;
    top: 0;
    z-index: 1;
}

.mobile-menu-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #6B7280;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.mobile-menu-close:hover {
    background: rgba(107, 114, 128, 0.1);
    color: #374151;
}

.mobile-menu-body {
    flex: 1;
    padding: 8px 0;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100vh - 120px);
    scrollbar-width: thin;
    scrollbar-color: #EF4444 #F3F4F6;
}

.mobile-menu-body::-webkit-scrollbar {
    width: 6px;
}

.mobile-menu-body::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-radius: 3px;
}

.mobile-menu-body::-webkit-scrollbar-thumb {
    background: #EF4444;
    border-radius: 3px;
}

.mobile-menu-body::-webkit-scrollbar-thumb:hover {
    background: #DC2626;
}

.mobile-menu-spacer {
    height: 60px;
    flex-shrink: 0;
}

.mobile-user-section {
    padding: 16px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #F9FAFB 0%, #FFFFFF 100%);
    border-radius: 12px;
    border: 1px solid #E5E7EB;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-user-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #EF4444;
}

.mobile-user-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.mobile-user-details p {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.mobile-menu-section {
    margin-bottom: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #F3F4F6;
}

.mobile-menu-section:last-child {
    border-bottom: none;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.mobile-menu-item:hover {
    background: #F9FAFB;
    color: #111827;
    transform: translateX(4px);
}

.mobile-menu-item.highlight {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
}

.mobile-menu-item.highlight:hover {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: white;
    transform: translateX(0) scale(1.02);
}

.mobile-menu-item.admin {
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
    color: #DC2626;
    border: 1px solid #FECACA;
}

.mobile-menu-item.admin:hover {
    background: linear-gradient(135deg, #FEE2E2 0%, #FED7D7 100%);
    color: #B91C1C;
}

.mobile-menu-item.logout {
    color: #DC2626;
}

.mobile-menu-item.logout:hover {
    background: #FEF2F2;
    color: #B91C1C;
}

.mobile-menu-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.mobile-logout-form {
    margin: 0;
    padding: 0;
}

.mobile-right-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1400;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.mobile-right-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Desktop Brand Logo */
.header-brand,
.desktop-brand {
    display: none;
}

.brand-link {
    text-decoration: none;
    color: #111827;
}

.brand-text {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Desktop Mobile Menu Button (Original) */
.mobile-menu-btn,
.desktop-mobile-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
    position: relative;
}

.mobile-menu-btn:hover,
.desktop-mobile-btn:hover {
    background: rgba(107, 114, 128, 0.1);
}

.hamburger {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: #6B7280;
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-btn.active .hamburger span:nth-child(1),
.desktop-mobile-btn.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active .hamburger span:nth-child(2),
.desktop-mobile-btn.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger span:nth-child(3),
.desktop-mobile-btn.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.search-container {
    flex: 1;
    max-width: 500px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

/* FIXED: Search container positioning based on logo visibility - DESKTOP ONLY */
@media (min-width: 769px) {
    .header-brand-logo.show ~ .search-container {
        margin-left: 200px;
        margin-right: auto;
    }
    
    .header-brand-logo.hide ~ .search-container {
        margin-left: auto;
        margin-right: auto;
    }
}

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
    background: #F9FAFB;
    border: 2px solid transparent;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    height: 52px;
}

.search-bar:focus-within {
    background: #FFFFFF;
    border-color: #EF4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
    transform: translateY(-1px);
}

.search-icon {
    padding: 0 20px;
    color: #9CA3AF;
    transition: color 0.2s ease;
}

.search-bar:focus-within .search-icon {
    color: #EF4444;
}

.search-input {
    flex: 1;
    padding: 16px 0;
    border: none;
    background: transparent;
    font-size: 15px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #111827;
    outline: none;
}

.search-input::placeholder {
    color: #9CA3AF;
    font-weight: 400;
}

.search-shortcut {
    padding: 4px 8px;
    margin: 0 16px;
    background: rgba(107, 114, 128, 0.1);
    border-radius: 6px;
    font-size: 12px;
    color: #6B7280;
    font-weight: 600;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    border: 1px solid rgba(107, 114, 128, 0.2);
}

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1px solid rgba(229, 231, 235, 0.3);
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    max-height: 400px;
    overflow: hidden;
}

.search-results.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-results-header {
    padding: 16px 20px 8px;
    border-bottom: 1px solid #F3F4F6;
}

.search-results-header h4 {
    font-size: 12px;
    font-weight: 700;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.search-results-content {
    max-height: 320px;
    overflow-y: auto;
    padding: 8px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.explore-btn,
.desktop-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    color: #6B7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    transition: all 0.2s ease;
    height: 52px;
    box-sizing: border-box;
}

.explore-btn:hover,
.desktop-action:hover {
    background: #FFFFFF;
    border-color: #D1D5DB;
    color: #111827;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.explore-btn i,
.desktop-action i {
    font-size: 16px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    height: 52px;
    box-sizing: border-box;
}

.share-btn:hover {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    color: white !important;
}

.share-btn:hover i,
.share-btn:hover span {
    color: white !important;
}

.share-btn i {
    font-size: 16px;
}

/* ENHANCED NOTIFICATION BUTTON AND BADGE SYSTEM */
.notification-btn {
    width: 52px;
    height: 52px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6B7280;
    position: relative;
    box-sizing: border-box;
}

.notification-btn:hover {
    background: #FFFFFF;
    border-color: #D1D5DB;
    color: #111827;
    transform: translateY(-1px);
}

/* ENHANCED BRIGHT RED NOTIFICATION BADGE - MATCHING GAMBAR 2 */
.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: #EA3D3C;
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: none; /* Hidden by default - hanya muncul kalau ada notifikasi */
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(234, 61, 60, 0.4);
    animation: notificationPulse 2s infinite;
    z-index: 1000;
    line-height: 1;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    min-width: 20px;
}

/* Animation untuk badge notifikasi dengan warna #EA3D3C */
@keyframes notificationPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(234, 61, 60, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(234, 61, 60, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(234, 61, 60, 0.4);
    }
}

/* Badge muncul ketika ada notifikasi */
.notification-badge.has-notifications {
    display: flex !important;
}

/* Styling untuk count tinggi dengan warna yang lebih gelap */
.notification-badge.high-count {
    background: #DC143C; /* Crimson untuk count tinggi */
    animation: notificationUrgent 1.5s infinite;
}

@keyframes notificationUrgent {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.15);
    }
    75% {
        transform: scale(1.05);
    }
}

/* Button state ketika ada notifikasi baru */
.notification-btn.has-new-notifications {
    border-color: #EA3D3C;
    background: rgba(234, 61, 60, 0.05);
}

.notification-pulse {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: #EA3D3C;
    border-radius: 50%;
    animation: pulse-notification 2s infinite;
    opacity: 0.3;
}

@keyframes pulse-notification {
    0% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.1; }
    100% { transform: scale(1); opacity: 0.3; }
}

/* COMPLETE NOTIFICATION MODAL SYSTEM - SESUAI GAMBAR 2 */
.notification-modal {
    position: fixed;
    top: 90px;
    right: 20px;
    transform: translateY(-10px) scale(0.95);
    width: 400px;
    max-width: calc(100vw - 40px);
    max-height: 70vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #E5E7EB;
    z-index: 1501;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

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

.notification-modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 70vh;
}

.notification-modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #F3F4F6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.notification-modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.close-modal-btn {
    background: none;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 16px;
}

.close-modal-btn:hover {
    background: rgba(107, 114, 128, 0.1);
    color: #6B7280;
}

.notification-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    scrollbar-width: thin;
    scrollbar-color: #D1D5DB #F9FAFB;
}

.notification-modal-body::-webkit-scrollbar {
    width: 6px;
}

.notification-modal-body::-webkit-scrollbar-track {
    background: #F9FAFB;
}

.notification-modal-body::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 3px;
}

.notification-modal-body::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

.notification-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #F3F4F6;
    text-align: center;
    flex-shrink: 0;
}

/* NOTIFICATION ITEM DESIGN - EXACT MATCH GAMBAR 2 */
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border-bottom: 1px solid #F9FAFB;
}

.notification-item:hover {
    background: #F9FAFB;
}

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

.notification-item.unread {
    background: rgba(239, 68, 68, 0.02);
    border-left: 4px solid #EF4444;
}

.notification-item.unread:hover {
    background: rgba(239, 68, 68, 0.05);
}

.notification-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
    position: relative;
}

.notification-icon.welcome {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    color: #D97706;
}

.notification-icon.feature {
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
    color: #2563EB;
}

.notification-icon.like {
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    color: #EF4444;
}

.notification-icon.comment {
    background: linear-gradient(135deg, #E0F2FE, #BAE6FD);
    color: #0284C7;
}

.notification-icon.follow {
    background: linear-gradient(135deg, #F0FDF4, #DCFCE7);
    color: #16A34A;
}

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

.notification-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
    line-height: 1.4;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.notification-message {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-time {
    font-size: 12px;
    color: #9CA3AF;
    font-weight: 500;
}

.notification-unread-dot {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 8px;
    height: 8px;
    background: #EF4444;
    border-radius: 50%;
    border: 2px solid white;
    animation: notificationPulse 2s infinite;
}

/* VIEW ALL NOTIFICATIONS BUTTON - SESUAI GAMBAR 2 */
.view-all-notifications-btn {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    text-decoration: none;
}

.view-all-notifications-btn:hover {
    background: linear-gradient(135deg, #DC2626, #B91C1C);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    color: white;
    text-decoration: none;
}

.view-all-notifications-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.notification-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 24px;
    color: #6B7280;
    font-size: 14px;
}

.notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 24px;
    color: #9CA3AF;
    text-align: center;
}

.notification-empty i {
    font-size: 48px;
    opacity: 0.5;
}

.notification-empty h4 {
    font-size: 18px;
    font-weight: 600;
    color: #6B7280;
    margin: 0;
}

.notification-empty p {
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #EF4444;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px 8px 8px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #111827;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 52px;
    box-sizing: border-box;
    position: relative;
}

.user-menu-btn:hover {
    background: #FFFFFF;
    border-color: #D1D5DB;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.user-avatar-container {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid white;
    transition: all 0.2s ease;
}

.user-status-indicator {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    background: #22C55E;
    border: 2px solid white;
    border-radius: 50%;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.user-role {
    font-size: 12px;
    color: #6B7280;
    line-height: 1;
}

.user-menu-arrow {
    font-size: 12px;
    color: #9CA3AF;
    transition: transform 0.2s ease;
}

.user-menu-btn.active .user-menu-arrow {
    transform: rotate(180deg);
}

.user-dropdown-enhanced {
    position: fixed;
    top: 90px;
    right: 20px;
    width: 320px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    overflow: hidden;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.user-dropdown-enhanced.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.user-dropdown-header {
    padding: 24px;
    background: #F9FAFB;
    display: flex;
    gap: 16px;
    align-items: center;
}

.user-avatar-large {
    position: relative;
}

.user-avatar-large img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    border: 3px solid white;
}

.user-status-large {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    background: #22C55E;
    border: 3px solid white;
    border-radius: 50%;
}

.user-details {
    flex: 1;
}

.user-name-large {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.user-role-large {
    font-size: 14px;
    color: #6B7280;
    margin: 0 0 12px 0;
    font-weight: 500;
}

.user-xp {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.xp-bar {
    width: 100%;
    height: 6px;
    background: #E5E7EB;
    border-radius: 3px;
    overflow: hidden;
}

.xp-progress {
    height: 100%;
    background: linear-gradient(90deg, #EF4444 0%, #F59E0B 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.xp-text {
    font-size: 11px;
    color: #6B7280;
    font-weight: 600;
}

.user-dropdown-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    max-height: 400px;
}

.dropdown-section {
    padding: 8px 0;
}

.dropdown-section:not(:last-child) {
    border-bottom: 1px solid #F3F4F6;
    margin-bottom: 8px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    color: #6B7280;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    position: relative;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
}

.dropdown-item:hover {
    background: #F9FAFB;
    color: #111827;
    transform: translateX(4px);
}

.item-icon {
    width: 40px;
    height: 40px;
    background: #F3F4F6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

.dropdown-item:hover .item-icon {
    background: #EF4444;
    color: white;
}

.item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.item-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.item-desc {
    font-size: 12px;
    color: #9CA3AF;
    line-height: 1.3;
}

.admin-badge {
    padding: 4px 8px;
    background: #FEF2F2;
    color: #EF4444;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-item:hover .admin-badge {
    background: white;
    color: #EF4444;
}

.logout-item:hover {
    background: #FEF2F2;
    color: #EF4444;
}

.logout-item:hover .item-icon {
    background: #EF4444;
    color: white;
}

.logout-form {
    margin: 0;
    padding: 0;
    width: 100%;
}

.dropdown-divider {
    height: 1px;
    background: #F3F4F6;
    margin: 8px 0;
}

.header-login-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    border: none;
    cursor: pointer;
    height: 52px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-login-btn:hover {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Search Results Styles */
.search-category {
    margin-bottom: 16px;
}

.search-category-title {
    font-size: 11px;
    font-weight: 700;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    margin-bottom: 4px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    color: #6B7280;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
    margin-bottom: 2px;
}

.search-result-item:hover {
    background: #F9FAFB;
    color: #111827;
    transform: translateX(4px);
}

.search-result-icon {
    width: 36px;
    height: 36px;
    background: #F3F4F6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

.search-result-item:hover .search-result-icon {
    background: #EF4444;
    color: white;
}

.search-result-content {
    flex: 1;
}

.search-result-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1.3;
}

.search-result-title mark {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
    padding: 0 2px;
    border-radius: 2px;
}

.search-result-desc {
    font-size: 12px;
    color: #9CA3AF;
    line-height: 1.3;
}

.search-result-desc mark {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
    padding: 0 2px;
    border-radius: 2px;
}

.search-result-arrow {
    opacity: 0;
    transition: all 0.2s ease;
    color: #9CA3AF;
}

.search-result-item:hover .search-result-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #9CA3AF;
}

.no-results i {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.no-results p {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.no-results small {
    font-size: 12px;
    opacity: 0.8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Show mobile burger menus */
    .mobile-left-burger,
    .mobile-right-burger {
        display: flex;
    }
    
    /* Show mobile center logo */
    .mobile-center-logo {
        display: block;
    }
    
    /* Show mobile user avatar if logged in */
    .mobile-user-avatar {
        display: block;
    }
    
    /* Hide desktop elements */
    .desktop-mobile-btn,
    .desktop-brand,
    .header-brand,
    .desktop-action,
    .notification-btn,
    .user-menu-btn {
        display: none !important;
    }
    
    .header-container {
        padding: 0 16px;
        gap: 12px;
        justify-content: space-between;
    }
    
    .search-container {
        display: none;
        order: 999;
        width: 100%;
        margin: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 16px;
        background: white;
        border-bottom: 1px solid #E5E7EB;
        z-index: 999;
    }
    
    .search-container.mobile-active {
        display: block;
    }
    
    .header-actions {
        gap: 8px;
        margin-left: 0;
    }
    
    .user-dropdown-enhanced {
        top: 90px;
        right: 10px;
        left: 10px;
        width: auto;
    }
    
    /* Mobile menu full screen fixes */
    .mobile-right-menu-content {
        padding: 0 20px;
    }
    
    .mobile-menu-header {
        padding: 20px 0;
        margin: 0 -20px;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Mobile responsive notification modal */
    .notification-modal {
        top: 70px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
        max-height: 75vh;
    }
    
    .notification-modal-header {
        padding: 16px 20px 12px;
    }
    
    .notification-modal-header h3 {
        font-size: 16px;
    }
    
    .notification-item {
        padding: 12px 20px;
        gap: 12px;
    }
    
    .notification-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .notification-title {
        font-size: 14px;
    }
    
    .notification-message {
        font-size: 13px;
    }
    
    .notification-unread-dot {
        top: 16px;
        right: 16px;
        width: 6px;
        height: 6px;
    }
    
    .notification-modal-footer {
        padding: 12px 20px;
    }
    
    .view-all-notifications-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    /* Mobile responsive badge */
    .notification-badge {
        top: -4px;
        right: -4px;
        width: 16px;
        height: 16px;
        font-size: 10px;
        border-width: 1px;
        min-width: 16px;
    }
}

/* DESKTOP: Hide ALL mobile menu elements completely */
@media (min-width: 769px) {
    .mobile-left-burger,
    .mobile-right-burger,
    .mobile-center-logo,
    .mobile-user-avatar,
    .mobile-right-menu,
    .mobile-right-menu-overlay {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    /* Ensure mobile menu elements are completely hidden */
    .mobile-right-menu {
        position: fixed !important;
        top: -9999px !important;
        right: -9999px !important;
        z-index: -1 !important;
    }
    
    .mobile-right-menu-overlay {
        position: fixed !important;
        top: -9999px !important;
        left: -9999px !important;
        z-index: -1 !important;
    }
    
    /* IMPORTANT: Hide mobile left burger on desktop */
    .mobile-left-burger {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* MOBILE: Show burger menus but hide menu content by default */
@media (max-width: 768px) {
    .mobile-left-burger,
    .mobile-right-burger,
    .mobile-center-logo,
    .mobile-user-avatar {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.search-results.active {
    animation: slideInDown 0.3s ease;
}

.user-dropdown-enhanced.active {
    animation: fadeInScale 0.3s ease;
}

.mobile-right-menu.active {
    animation: slideInDown 0.3s ease;
}

.notification-modal.active {
    animation: fadeInScale 0.3s ease;
}