* { box-sizing: border-box; margin: 0; padding: 0; }

#psych-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4), 0 -2px 8px rgba(255, 107, 107, 0.1);
    z-index: 999999;
    font-family: 'Vazirmatn', 'Inter', -apple-system, sans-serif;
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes slideUpFade {
    from {
        transform: translateY(100%) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.psych-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
}

.psych-badge {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: badgePulse 2.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 24px rgba(249, 115, 22, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

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

.psych-msg {
    color: #f8fafc;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 6px;
}

.psych-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.psych-timer,
.psych-social {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fbbf24;
    font-size: 14px;
    font-weight: 600;
    background: rgba(251, 191, 36, 0.1);
    padding: 4px 12px;
    border-radius: 8px;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.psych-timer-val {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
}

.psych-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 16px;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: btnGlow 3s ease-in-out infinite;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.psych-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.psych-btn:hover::before {
    left: 100%;
}

.psych-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 32px rgba(239, 68, 68, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.psych-btn:active {
    transform: translateY(0) scale(0.98);
}

@keyframes btnGlow {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(239, 68, 68, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 10px 32px rgba(239, 68, 68, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 0 4px rgba(239, 68, 68, 0.1);
    }
}

.psych-close {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.psych-close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg) scale(1.1);
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.3);
}

.psych-hide {
    animation: slideDownFade 0.5s ease-out forwards;
}

@keyframes slideDownFade {
    to {
        transform: translateY(100%) scale(0.95);
        opacity: 0;
    }
}

@media (max-width: 1024px) {
    .psych-container {
        padding: 18px 20px;
        gap: 20px;
    }
    
    .psych-badge {
        font-size: 12px;
        padding: 6px 14px;
    }
    
    .psych-msg {
        font-size: 16px;
    }
    
    .psych-btn {
        padding: 14px 32px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .psych-container {
        flex-wrap: wrap;
        padding: 16px;
        gap: 16px;
    }
    
    .psych-badge {
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .psych-content {
        order: 2;
        width: 100%;
    }
    
    .psych-msg {
        font-size: 15px;
        text-align: center;
    }
    
    .psych-meta {
        justify-content: center;
        gap: 12px;
    }
    
    .psych-timer,
    .psych-social {
        font-size: 13px;
        padding: 4px 10px;
    }
    
    .psych-btn {
        order: 3;
        width: 100%;
        text-align: center;
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .psych-close {
        position: absolute;
        top: 12px;
        left: 12px;
        width: 36px;
        height: 36px;
        font-size: 20px;
        z-index: 10;
    }
}

@media (max-width: 480px) {
    #psych-bar {
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }
    
    .psych-container {
        padding: 14px;
    }
    
    .psych-msg {
        font-size: 14px;
    }
    
    .psych-timer,
    .psych-social {
        font-size: 12px;
    }
    
    .psych-btn {
        font-size: 14px;
        padding: 13px 20px;
    }
}
