/* Notifications Styles */
.notification-wrapper {
    position: relative;
}

.notification-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 320px;
    background: var(--card-bg, #1a1a2e);
    border: 1px solid var(--border-color, #333);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
    flex-direction: column;
    overflow: hidden;
    animation: fadeIn 0.2s ease-out;
}

.notification-dropdown.active {
    display: flex;
}

.notif-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-color, #333);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-header h3 {
    margin: 0;
    font-size: 1rem;
}

.notif-header button {
    background: none;
    border: none;
    color: var(--accent, #667eea);
    cursor: pointer;
    font-size: 0.8rem;
}

.notif-list {
    max-height: 350px;
    overflow-y: auto;
}

.notif-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-color, #333);
    display: flex;
    gap: 12px;
    transition: background 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.notif-item.unread {
    background: rgba(102, 126, 234, 0.05);
}

.notif-item.unread::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent, #667eea);
    border-radius: 50%;
    margin-top: 5px;
}

.notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-icon.tip {
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
}

.notif-icon.sub {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
}

.notif-icon.message {
    background: rgba(0, 204, 0, 0.15);
    color: #00cc00;
}

.notif-icon.payout {
    background: rgba(255, 159, 64, 0.15);
    color: #ff9f40;
}

.notif-info {
    flex-grow: 1;
}

.notif-title {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.notif-message {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary, #888);
    line-height: 1.4;
}

.notif-time {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted, #555);
    margin-top: 5px;
}

.empty-notif {
    padding: 30px;
    text-align: center;
    color: var(--text-muted, #555);
    font-size: 0.9rem;
}

.notif-footer {
    padding: 10px;
    text-align: center;
    border-top: 1px solid var(--border-color, #333);
}

.notif-footer a {
    color: var(--accent, #667eea);
    text-decoration: none;
    font-size: 0.85rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Badge System */
.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--card-bg, #1a1a2e);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 10;
    pointer-events: none;
}

/* Specific button styles to ensure consistency */
.notification-btn,
.icon-btn {
    position: relative !important;
}

/* TOAST NOTIFICATIONS */
.notif-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1a1a24;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    gap: 12px;
    width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notif-toast.visible {
    transform: translateX(0);
}

.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #667eea;
    color: white;
    flex-shrink: 0;
}

.toast-icon.message {
    background: #00cc00;
}

.toast-icon.tip {
    background: #ff6b6b;
}

.toast-icon.subscription {
    background: #ffd700;
    color: #000;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.3;
}

/* Messaging tab badge specifically for navigation */
.nav-link[data-page="messages"],
.nav-item[data-page="messages"] {
    position: relative;
}