/* Profile page styles */
.profile-avatar-wrap { position: relative; display: inline-block; margin-bottom: 12px; }
.profile-avatar-img {
    width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
    border: 4px solid var(--surface); box-shadow: var(--shadow);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}
.avatar-edit-btn {
    position: relative; border: none; background: none; padding: 0; cursor: pointer;
    border-radius: 50%; display: block;
}
.avatar-edit-badge {
    position: absolute; bottom: 2px; right: 2px; width: 28px; height: 28px;
    background: var(--primary); border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 14px; border: 2px solid var(--surface);
}
.profile-name-row {
    display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 4px;
}
.profile-name { font-size: 22px; font-weight: 800; margin: 0; }
.btn-edit-name {
    width: 36px; height: 36px; border-radius: 10px; border: none;
    background: var(--background); color: var(--primary); display: flex;
    align-items: center; justify-content: center; cursor: pointer;
    box-shadow: var(--shadow); transition: transform .15s;
}
.btn-edit-name:active { transform: scale(.95); }
.section-title { padding: 0 16px; font-size: 16px; margin-bottom: 12px; font-weight: 700; }
.profile-actions { padding: 16px; display: flex; flex-direction: column; gap: 8px; }

.profile-edit-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 300;
    display: flex; align-items: flex-end; justify-content: center; padding: 16px;
}
.profile-edit-content {
    background: var(--surface); border-radius: var(--radius) var(--radius) 0 0;
    padding: 24px; width: 100%; max-width: 420px; animation: slideUp .3s ease;
}
.profile-edit-content-wide { max-width: 480px; }
.profile-edit-content h3 { font-size: 18px; margin-bottom: 8px; text-align: center; }
.edit-hint { font-size: 13px; color: var(--text-muted); text-align: center; margin-bottom: 16px; }
.profile-edit-content input {
    width: 100%; padding: 14px 16px; border: 2px solid var(--border);
    border-radius: var(--radius-sm); font-size: 16px; margin-bottom: 16px;
}
.edit-actions { display: flex; gap: 8px; }
.edit-actions .btn { flex: 1; }

.avatar-picker-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
    margin-bottom: 16px; max-height: 280px; overflow-y: auto; padding: 4px;
}
.avatar-picker-item {
    border: 3px solid transparent; border-radius: 14px; padding: 4px;
    background: var(--background); cursor: pointer; transition: all .2s;
}
.avatar-picker-item.selected { border-color: var(--primary); background: #EDE9FE; }
.avatar-picker-img {
    width: 100%; aspect-ratio: 1; border-radius: 10px; object-fit: cover; display: block;
}

.header-avatar-img {
    width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--border);
}

@media (min-width: 768px) {
    .profile-edit-modal { align-items: center; }
    .profile-edit-content { border-radius: var(--radius); }
}
