/* Profil szerkesztés és avatar választó */

.auth-page-wrap {
    padding: 2.5rem 0 3.5rem;
    background: #eef2f7;
}

.profile-page {
    max-width: 1200px;
    margin: 0 auto;
}

/* —— Profil szerkesztés —— */
.profile-edit-grid {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.profile-edit-sidebar {
    min-width: 0;
}

/* —— Avatar picker —— */
.avatar-picker {
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid rgba(15, 45, 82, 0.08);
    box-shadow: 0 18px 45px rgba(15, 45, 82, 0.06);
}

.avatar-picker__title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f2d52;
    margin: 0 0 0.35rem;
}

.avatar-picker__hint {
    font-size: 0.88rem;
    color: #475569;
    margin: 0 0 0.5rem;
    line-height: 1.55;
}

.avatar-picker--register {
    text-align: center;
}

.avatar-picker__preview-wrap {
    display: flex;
    justify-content: center;
}

.avatar-preview {
    display: block;
    width: 124px;
    height: 124px;
    border-radius: 999px;
    margin: 18px auto 24px;
    background: #f8fafc;
    border: 5px solid #fff;
    box-shadow: 0 14px 34px rgba(15, 45, 82, 0.16);
    object-fit: cover;
    overflow: hidden;
}

.avatar-picker--register .avatar-preview {
    margin: 14px auto 18px;
}

.avatar-picker__style-row {
    margin-bottom: 0.85rem;
}

.avatar-picker__style-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.35rem;
}

.avatar-picker__style-select {
    font-size: 0.95rem;
}

.avatar-picker__refresh-btn {
    margin-bottom: 1.1rem;
    font-weight: 600;
}

.avatar-picker__grid-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    margin: 0 0 0.65rem;
    text-align: left;
}

.avatar-picker--register .avatar-picker__grid-label {
    text-align: center;
}

.avatar-choice-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.avatar-choice-grid--compact {
    gap: 10px;
}

.avatar-choice {
    position: relative;
    border: 2px solid transparent;
    border-radius: 16px;
    background: #f8fafc;
    padding: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.avatar-choice img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.avatar-choice:hover {
    transform: translateY(-2px);
    border-color: rgba(60, 179, 113, 0.45);
}

.avatar-choice.is-selected {
    border-color: #3cb371;
    box-shadow: 0 0 0 4px rgba(60, 179, 113, 0.14);
}

.avatar-choice.is-selected::after {
    content: "✓";
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #3cb371;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(31, 107, 79, 0.35);
}

/* —— Karakterszámláló (bemutatkozás) —— */
.char-counter-field__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 0.35rem;
}

.char-counter {
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}

.char-counter--warn {
    color: #b45309;
}

.char-counter--limit {
    color: #b91c1c;
}

@media (max-width: 991.98px) {
    .profile-edit-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .avatar-choice-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
