.profile-container {
    max-width: 800px;
    margin: 80px auto 40px;
    padding: 20px;
}

.profile-header {
    text-align: center;
    padding: 40px 20px;
    background: var(--primary-color);
    border-radius: 20px;
    color: white;
    margin-bottom: 30px;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: #667eea;
    margin: 0 auto 20px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.profile-avatar-large #avatar-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.avatar-upload-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-avatar-large:hover .avatar-upload-overlay {
    opacity: 1;
}

.profile-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body.dark-mode .profile-section {
    background: var(--surface);
}

.profile-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-primary);
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: var(--background);
    color: var(--text-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-group {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
}

body.dark-mode .btn-secondary {
    background: var(--surface-hover);
    color: var(--text-primary);
}

.mafia-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
}

.mafia-profile-link:hover {
    text-decoration: underline;
}

.info-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 5px;
}
