.main-header {
    position: absolute !important; 
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: rgb(0 0 0 / 79%) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    z-index: 9999 !important;
    padding: 8px 0 !important;
    padding-left: 84px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

@media (max-width: 900px) {
    .main-header {
        padding-left: 0 !important;
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    height: 40px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px; 
    text-decoration: none;
    color: #000;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.logo-text {
    font-family: 'Unbounded', sans-serif;
    font-weight: 800;
    font-size: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.search-btn svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s, fill 0.3s;
    fill: #fff !important;
}

.search-btn:hover svg {
    transform: scale(1.1);
    fill: #fff;
}

.notif-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.notif-btn svg {
    width: 20px;
    height: 20px;
    color: #fff;
    stroke-width: 2;
}

.notif-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    background: #ff3b30;
    color: white;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 800;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid #000;
    box-shadow: 0 0 10px rgba(255, 59, 48, 0.4);
    padding: 0 4px;
}

.notif-badge.notif-pulse {
    animation: badgePulse 0.5s ease infinite alternate;
}

@keyframes badgePulse {
    from { transform: scale(1); box-shadow: 0 0 10px rgba(255, 59, 48, 0.4); }
    to { transform: scale(1.3); box-shadow: 0 0 20px rgba(255, 59, 48, 0.8); }
}

.profile-container {
    position: relative;
}

.profile-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #222;
    padding: 0;
}

.profile-avatar.is-login-btn {
    width: auto;
    height: 38px;
    padding: 0 20px;
    border-radius: 12px;
    background: var(--accent-color) !important;
    color: #fff !important; /* Made text white for better readability on blue */
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Removed .login-trigger-btn as it is no longer nested in updateUI */

.profile-avatar svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    color: #fff;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar:hover, .profile-avatar.active {
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.profile-avatar.is-login-btn:hover {
    background: #333 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 260px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.404);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 9999;
    overflow: visible;
}

.profile-top-gap {
     position: absolute;
     top: -20px;
     left: 0;
     width: 100%;
     height: 20px;
     background: transparent;
}

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

.dropdown-user-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dropdown-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #373737;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}

.dropdown-user-avatar img {
    width: 48px !important;
    height: 48px !important;
    object-fit: cover;
    border-radius: 50%;
}

.dropdown-user-info {
    flex: 1;
    min-width: 0;
}

.dropdown-username {
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    display: block;
    margin-bottom: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.avatar-placeholder {
    background: linear-gradient(135deg, #373737 0%, #222 100%) !important;
    color: #ffffff !important;
    font-family: 'Unbounded', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-user-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.user-coins {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #FFD24A;
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    font-size: 13px;
}

.coin-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
}

.coin-icon svg {
    width: 14px;
    height: 14px;
    display: block;
}

.premium-banner {
    margin: 7px;
    padding: 11px 14px;
    background: url('https://i.pinimg.com/originals/30/8b/b1/308bb17aa483c6fadae58940c66cf79b.gif') center/cover no-repeat;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden; 
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.premium-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
    transition: transform 0.3s;
}

.premium-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
    background-size: cover;
}

.premium-icon {
    font-size: 18px;
    flex-shrink: 0;
    position: relative;
    z-index: 2; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFD700; 
    margin-top: 2px;
}

.premium-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.35;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.dropdown-menu {
    padding: 8px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 8px;
    color: #e0e0e0;
    text-decoration: none;
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 500;
    border-radius: 9px;
    transition: background 0.2s, color 0.2s;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.dropdown-item svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    flex-shrink: 0;
}

.dropdown-item.shop {
    color: #60a5fa;
}
.dropdown-item.shop:hover {
    background: rgba(96, 165, 250, 0.15);
    color: #93c5fd;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 8px 14px;
}

.dropdown-item.logout {
    color: #ff5c5c;
}
.dropdown-item.logout:hover {
    background: rgba(255, 92, 92, 0.15);
    color: #ff8080;
}

.w-full { width: 100%; }
.h-full { height: 100%; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.bg-white\/10 { background: rgba(255, 255, 255, 0.1); }
.text-white { color: #ffffff !important; }
.font-bold { font-weight: 700; }

.w-full.h-full.flex.items-center.justify-center.text-white.font-bold {
    font-family: 'Unbounded', sans-serif;
    font-size: 17px;
    letter-spacing: 1.5px;
}

@media (max-width: 600px) {
    .header-content {
        padding: 0 12px !important;
        gap: 8px !important;
        height: 50px !important;
    }
    .header-actions {
        gap: 10px !important;
    }
    .logo-text {
        font-size: 16px !important;
    }
    .notif-btn {
        width: 34px !important;
        height: 34px !important;
    }
    .profile-avatar.is-login-btn {
        padding: 0 12px !important;
        font-size: 11px !important;
        height: 32px !important;
    }
    .profile-avatar svg {
        width: 18px !important;
        height: 18px !important;
    }
}
