/* --- NOTIFICATIONS & ACHIEVEMENTS --- */
#notification-area {
    position: fixed;
    top: 130px;
    /* Below header and news ticker */
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.notification {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 24px;
    border-radius: 16px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    min-width: 340px;
    max-width: 450px;
    position: relative;
    overflow: hidden;
}

.notification::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
}

.notification.success {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.1), rgba(15, 23, 42, 0.9));
    border-left: 0;
    border-top: 1px solid rgba(16, 185, 129, 0.3);
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}

.notification.success::before {
    background: #10b981;
    box-shadow: 0 0 15px #10b981;
}

.notification.error {
    background: linear-gradient(90deg, rgba(244, 63, 94, 0.1), rgba(15, 23, 42, 0.9));
    border-left: 0;
    border-top: 1px solid rgba(244, 63, 94, 0.3);
    border-bottom: 1px solid rgba(244, 63, 94, 0.1);
}

.notification.error::before {
    background: #f43f5e;
    box-shadow: 0 0 15px #f43f5e;
}

.notification.warning {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.1), rgba(15, 23, 42, 0.9));
    border-left: 0;
    border-top: 1px solid rgba(245, 158, 11, 0.3);
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
}

.notification.warning::before {
    background: #f59e0b;
    box-shadow: 0 0 15px #f59e0b;
}

.notification i {
    font-size: 1.25rem;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.achievement-popup {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1e293b, #0f172a);
    padding: 10px;
    border-radius: 16px;
    z-index: 10001;
    animation: achievementPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.achievement-popup .ach-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f59e0b, #b45309);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    border-radius: 12px;
    margin-right: 15px;
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.4);
}

.achievement-popup .ach-content {
    display: flex;
    flex-direction: column;
}

.ach-title {
    font-size: 0.7rem;
    color: #f59e0b;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ach-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 2px 0;
}

.ach-reward {
    font-size: 0.8rem;
    color: var(--text-dim);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes achievementPop {
    from {
        transform: translate(-50%, 100px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* --- TOP BAR --- */
.top-bar {
    height: 80px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    z-index: 500;
}

.stat-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1rem;
    padding: 8px 16px;
    background: var(--glass-highlight);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.stat-item:hover {
    border-color: var(--accent);
    background: rgba(14, 165, 233, 0.1);
    box-shadow: 0 0 15px var(--accent-glow);
}

.stat-item i {
    color: var(--accent);
    font-size: 1.1rem;
}

.stat-item.premium {
    border-color: rgba(251, 191, 36, 0.2);
}

.stat-item.premium i {
    color: var(--premium);
    animation: pulsePremium 2s infinite;
}

@keyframes pulsePremium {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px var(--premium));
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 5px var(--premium));
    }
}

.crown-btn {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--premium-glow);
    position: relative;
    overflow: hidden;
}

.crown-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(45deg) translateY(-100%);
    transition: 0.5s;
}

.crown-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--premium-glow);
}

.crown-btn:hover::after {
    transform: rotate(45deg) translateY(0);
}

/* --- SIDE NAVIGATION --- */
.game-container {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.side-nav {
    width: 90px;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(30px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0;
    gap: 0.5rem;
    z-index: 100;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.7rem;
    font-weight: 600;
    width: 70px;
    height: 70px;
    border-radius: 18px;
    position: relative;
}

.nav-btn i {
    font-size: 1.5rem;
    transition: var(--transition);
    margin-bottom: 2px;
}

.nav-btn span {
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.nav-btn:hover {
    color: #fff;
    background: var(--glass-highlight);
}
