.user-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.user-modal-container {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.3s ease;
}

.user-modal-header {
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.user-modal-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #4CAF50;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
}

.user-modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-modal-info h3 {
    color: #fff;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.user-modal-info p {
    color: #888;
    margin: 5px 0;
    font-size: 14px;
}

.user-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.admin-badge {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
}

.moder-badge {
    background: linear-gradient(45deg, #70afe6, #4a90e2);
    color: #fff;
}

.youtuber-badge {
    background: linear-gradient(45deg, #dc7979, #e74c3c);
    color: #fff;
}

.banned-badge {
    background: linear-gradient(45deg, #f44336, #d32f2f);
    color: #fff;
    animation: pulse 2s infinite;
}

.user-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.user-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.user-modal-body {
    padding: 25px;
}

.user-info-section {
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-label {
    color: #888;
    font-size: 14px;
}

.info-value {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.user-actions-section,
.admin-actions-section {
    margin-bottom: 20px;
}

.user-actions-section h4,
.admin-actions-section h4 {
    color: #fff;
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.input-group input,
.input-group select {
    flex: 1;
    min-width: 150px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* Дополнительные стили для select */
.input-group select {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23fff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.input-group input::placeholder {
    color: #888;
}

/* Стили для опций выпадающего списка */
.input-group select option {
    background: #2c3e50;
    color: #fff;
    padding: 10px;
    border: none;
}

.input-group select option:hover {
    background: #34495e;
}

.input-group select option:checked {
    background: #4CAF50;
    color: #fff;
}

.action-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.transfer-btn {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: #fff;
}

.transfer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.admin-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ban-btn {
    background: linear-gradient(45deg, #f44336, #d32f2f);
    color: #fff;
    flex: 1;
}

.ban-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.4);
}

.unban-btn {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: #fff;
    flex: 1;
}

.unban-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* === СТИЛИ ДЛЯ АВАТАРОК В ЧАТЕ === */
.user-avatar {
    position: relative;
    transition: all 0.3s ease;
    border-radius: 50%;
    overflow: hidden;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.6);
    border: 2px solid #4CAF50;
}

.user-hover-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.user-hover-indicator i {
    color: #4CAF50;
    font-size: 16px;
    animation: pulse 2s infinite;
}

.user-avatar:hover .user-hover-indicator {
    opacity: 1;
}

/* Пульсация для иконки настроек */
@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .user-modal-container {
        width: 95%;
        margin: 20px;
    }
    
    .user-modal-header {
        padding: 20px;
    }
    
    .user-modal-body {
        padding: 20px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .admin-buttons {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .user-avatar:hover {
        transform: scale(1.02);
    }
}
