/* User Panel Improvements */
.user-panel {
    display: flex;
    align-items: center;
    gap: 16px;
    overflow: visible !important;
    position: relative;
    z-index: 100;
}

.user-details {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
    position: relative !important;
    z-index: 10 !important;
    height: auto !important;
    min-height: 40px !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Кнопка выхода */
.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.08));
    border: 1.5px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.btn-logout:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(220, 38, 38, 0.15));
    border-color: rgba(239, 68, 68, 0.5);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.btn-logout:active {
    transform: scale(0.95);
}

.btn-logout svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* Эффект при наведении */
.btn-logout::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn-logout:hover::before {
    width: 200%;
    height: 200%;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-welcome {
    display: flex !important;
    flex-direction: column;
    gap: 2px;
    visibility: visible !important;
    opacity: 1 !important;
}

.welcome-small {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-name-container {
    display: flex !important;
    align-items: center;
    gap: 8px;
    position: relative;
    visibility: visible !important;
    opacity: 1 !important;
}

.user-name-container::before,
.user-name-container::after {
    display: none !important;
    content: none !important;
    background: none !important;
}

.user-name {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #fff !important;
    text-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    box-shadow: none !important;
    position: relative !important;
    z-index: 10 !important;
    background: none !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-bottom: 4px !important;
    white-space: nowrap !important;
    cursor: pointer;
    line-height: 1.2 !important;
    text-align: center !important;
    width: 100% !important;
    padding: 0 !important;
    border: none !important;
    height: auto !important;
    min-height: 16px !important;
    max-height: none !important;
    transform: none !important;
    overflow: visible !important;
}

.user-name::before,
.user-name::after {
    display: none !important;
    content: none !important;
    background: none !important;
}

/* Убираем text-shadow для всех статусов в header и профиле */
.user-name.status-bronze,
.user-name.status-silver,
.user-name.status-gold,
.user-name.status-platinum,
.user-name.status-diamond,
.user-name.status-legend {
    text-shadow: none !important;
    filter: none !important;
}

/* Градиентные эффекты для ников в header БЕЗ теней */
.user-name.status-bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #e8a15e 50%, #cd7f32 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: none !important;
    filter: none !important;
    display: block !important;
    color: transparent !important;
}

.user-name.status-silver {
    background: linear-gradient(135deg, #8b8b8b 0%, #c5c5c5 50%, #8b8b8b 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: none !important;
    filter: none !important;
    display: block !important;
    color: transparent !important;
}

.user-name.status-gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffa500 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: none !important;
    filter: none !important;
    display: block !important;
    color: transparent !important;
}

.user-name.status-platinum {
    background: linear-gradient(90deg, #b8b6b4 0%, #e5e4e2 25%, #ffffff 50%, #e5e4e2 75%, #b8b6b4 100%) !important;
    background-size: 200% auto !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: none !important;
    filter: none !important;
    animation: platinumFlow 3s ease-in-out infinite !important;
    display: block !important;
    color: transparent !important;
}

.user-name.status-diamond {
    background: linear-gradient(90deg, #00bcd4 0%, #4dd0e1 25%, #b9f2ff 50%, #4dd0e1 75%, #00bcd4 100%) !important;
    background-size: 200% auto !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: none !important;
    filter: none !important;
    animation: diamondFlow 2.5s ease-in-out infinite !important;
    display: block !important;
    color: transparent !important;
}

.user-name.status-legend {
    background: linear-gradient(90deg, #ff0080 0%, #ff8c00 25%, #ffd700 50%, #40e0d0 75%, #ff0080 100%) !important;
    background-size: 200% auto !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: none !important;
    filter: none !important;
    animation: legendFlow 3s linear infinite !important;
    display: block !important;
    color: transparent !important;
}

@keyframes platinumFlow {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

@keyframes diamondFlow {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

@keyframes legendFlow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Убираем status mini badge из header - не показываем префикс */
.user-status-mini {
    display: none !important;
}

/* Стилизация префикса статуса в чате */
.status-prefix {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    margin-right: 4px;
    text-shadow: none !important;
    vertical-align: middle;
}

.status-prefix.prefix-bronze {
    background: rgba(205, 127, 50, 0.25);
    color: #e8a15e;
    border: 1px solid rgba(205, 127, 50, 0.4);
}

.status-prefix.prefix-silver {
    background: rgba(139, 139, 139, 0.25);
    color: #c5c5c5;
    border: 1px solid rgba(139, 139, 139, 0.4);
}

.status-prefix.prefix-gold {
    background: rgba(255, 215, 0, 0.25);
    color: #ffed4e;
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.status-prefix.prefix-platinum {
    background: rgba(229, 228, 226, 0.25);
    color: #ffffff;
    border: 1px solid rgba(229, 228, 226, 0.4);
}

.status-prefix.prefix-diamond {
    background: rgba(77, 208, 225, 0.25);
    color: #b9f2ff;
    border: 1px solid rgba(77, 208, 225, 0.4);
}

.status-prefix.prefix-legend {
    background: linear-gradient(90deg, rgba(255, 0, 128, 0.25), rgba(255, 140, 0, 0.25));
    color: #ff8c00;
    border: 1px solid rgba(255, 0, 128, 0.4);
}

.user-balance-mini {
    font-size: 14px;
    font-weight: 700;
    color: #10b981;
    font-family: 'Orbitron', monospace;
}

.user-avatar-sm {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-avatar-sm:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.8);
}

/* Status Badge в профиле - фикс */
.profile-status-badge,
.neon-status-badge {
    white-space: nowrap !important;
    overflow: visible !important;
    flex-shrink: 0 !important;
}

/* Убираем черную тень за никами в профиле и чате */
.profile-username.status-bronze,
.profile-username.status-silver,
.profile-username.status-gold,
.profile-username.status-platinum,
.profile-username.status-diamond,
.profile-username.status-legend,
.neon-username.status-bronze,
.neon-username.status-silver,
.neon-username.status-gold,
.neon-username.status-platinum,
.neon-username.status-diamond,
.neon-username.status-legend,
.neon-username,
.chat-author.status-bronze,
.chat-author.status-silver,
.chat-author.status-gold,
.chat-author.status-platinum,
.chat-author.status-diamond,
.chat-author.status-legend {
    text-shadow: none !important;
    filter: none !important;
}

/* Убираем белый слайдер за никами в профиле и чате */
.profile-username::before,
.profile-username::after,
.neon-username::before,
.neon-username::after,
.chat-author::before,
.chat-author::after {
    display: none !important;
    content: none !important;
    background: none !important;
}

/* Градиентные эффекты для списков */
.player-name.status-bronze,
.boss-details h4.status-bronze,
.pretender-details h4.status-bronze,
.recent-player span.status-bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #e8a15e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none !important;
}

.player-name.status-silver,
.boss-details h4.status-silver,
.pretender-details h4.status-silver,
.recent-player span.status-silver {
    background: linear-gradient(135deg, #8b8b8b 0%, #c5c5c5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none !important;
}

.player-name.status-gold,
.boss-details h4.status-gold,
.pretender-details h4.status-gold,
.recent-player span.status-gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none !important;
}

.player-name.status-platinum,
.boss-details h4.status-platinum,
.pretender-details h4.status-platinum,
.recent-player span.status-platinum {
    background: linear-gradient(135deg, #b8b6b4 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none !important;
}

.player-name.status-diamond,
.boss-details h4.status-diamond,
.pretender-details h4.status-diamond,
.recent-player span.status-diamond {
    background: linear-gradient(135deg, #00bcd4 0%, #b9f2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none !important;
}

.player-name.status-legend,
.boss-details h4.status-legend,
.pretender-details h4.status-legend,
.recent-player span.status-legend {
    background: linear-gradient(90deg, #ff0080 0%, #ff8c00 50%, #40e0d0 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none !important;
    animation: legendFlow 3s linear infinite;
}

.player-name,
.boss-details h4,
.pretender-details h4,
.recent-player span {
    text-shadow: none !important;
    box-shadow: none !important;
}

/* Убираем белый слайдер за никами везде */
.player-name::before,
.player-name::after,
.clickable-username::before,
.clickable-username::after,
.boss-details h4::before,
.boss-details h4::after,
.pretender-details h4::before,
.pretender-details h4::after,
.recent-player span::before,
.recent-player span::after {
    display: none !important;
    content: none !important;
    background: none !important;
}

