:root {
    --primary-color: #ff416c;
    --secondary-color: #ff4b2b;
    --dark-bg: #1f1c2c;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: #fff;
}

.bg-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.text-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Mobile Nav Improvements */
.mobile-nav-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
    margin-top: 2px;
}
.nav-item-mobile.active .mobile-nav-label,
.nav-item-mobile:hover .mobile-nav-label {
    color: #fff;
}
.nav-item-mobile .badge {
    border: 2px solid #212529; /* Match bg-dark */
}
@media (max-width: 400px) {
    .mobile-nav-label { font-size: 0.65rem; }
}

/* ==========================================================
   PREMIUM TOAST SYSTEM
   Glassmorphism + Mobile-First Stackable Engine
   ========================================================== */
.app-toast-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
    pointer-events: none;
    padding: 0 16px;
}

.app-toast {
    pointer-events: auto;
    background: rgba(22, 24, 35, 0.75);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 16px 22px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: toast-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.app-toast.toast-out {
    animation: toast-out 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes toast-in {
    0% { opacity: 0; transform: translateY(-30px) scale(0.92) rotateX(-10deg); filter: blur(10px); }
    100% { opacity: 1; transform: translateY(0) scale(1) rotateX(0deg); filter: blur(0); }
}

@keyframes toast-out {
    0% { opacity: 1; transform: scale(1); filter: blur(0); }
    100% { opacity: 0; transform: scale(0.9) translateY(-15px); filter: blur(5px); }
}

.toast-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    position: relative;
}

.toast-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;
    filter: blur(10px);
    opacity: 0.4;
    z-index: -1;
}

.toast-icon.match   { background: linear-gradient(135deg, #e11d48, #f43f5e); color: #fff; }
.toast-icon.message { background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; }
.toast-icon.notif   { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; }
.toast-icon.error   { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }

.toast-content { 
    flex-grow: 1; 
}
.toast-title { 
    font-weight: 800; 
    font-size: 1rem; 
    margin-bottom: 2px; 
    letter-spacing: -0.3px;
    color: #fff;
}
.toast-msg { 
    color: rgba(255, 255, 255, 0.75); 
    font-size: 0.88rem; 
    line-height: 1.5; 
    font-weight: 500;
}

.toast-timer {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    width: 100%;
    transform-origin: left;
    transform: scaleX(1);
    opacity: 0.5;
    mix-blend-mode: overlay;
}

@media (max-width: 576px) {
    .app-toast-container { top: 16px; padding: 0 12px; }
    .app-toast { padding: 12px 16px; border-radius: 18px; }
    .toast-icon { width: 40px; height: 40px; border-radius: 12px; font-size: 1.1rem; }
}

