.profile-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0 22px;
}

.profile-tab-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(15, 61, 136, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 12px 24px rgba(15, 61, 136, 0.04);
    cursor: pointer;
}

.profile-tab-button:hover,
.profile-tab-button:focus-visible {
    background: #f7fbff;
    color: var(--accent);
    border-color: rgba(15, 61, 136, 0.18);
    box-shadow: 0 14px 28px rgba(15, 61, 136, 0.06);
    transform: translateY(-1px);
}

.profile-tab-button.is-active {
    background: linear-gradient(180deg, #e8f1fc 0%, #dceafd 100%);
    border-color: rgba(15, 61, 136, 0.32);
    color: var(--accent);
    box-shadow: 0 14px 28px rgba(15, 61, 136, 0.1);
    transform: none;
}

.profile-tab-button i {
    line-height: 1;
}

.profile-tab-panel.is-hidden {
    display: none;
}

.profile-actions {
    margin-top: 18px;
}

.profile-avatar-widget {
    display: grid;
    gap: 10px;
}

.profile-avatar-current {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.profile-avatar-current.is-marked-delete {
    opacity: 0.65;
}

.profile-avatar-current.is-marked-delete .profile-avatar-link {
    text-decoration: line-through;
}

.profile-avatar-label {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.profile-avatar-link {
    min-width: 0;
    overflow-wrap: anywhere;
}

.profile-avatar-clear-checkbox {
    display: none;
}

.profile-avatar-delete-button {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    padding: 0;
    border-radius: 50%;
    border: 0;
    background: rgba(141, 54, 57, 0.12);
    color: #8D3639;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.profile-avatar-delete-button:hover,
.profile-avatar-delete-button:focus-visible {
    background: #8D3639;
    color: #ffffff;
    transform: translateY(-1px);
}

.profile-avatar-delete-button.is-active {
    background: rgba(15, 61, 136, 0.12);
    color: var(--accent);
}

.profile-avatar-delete-button.is-active:hover,
.profile-avatar-delete-button.is-active:focus-visible {
    background: var(--accent);
    color: #ffffff;
}

.profile-avatar-delete-button i {
    line-height: 1;
}

.profile-avatar-delete-button .is-hidden {
    display: none;
}

.profile-avatar-upload {
    display: grid;
    gap: 6px;
}

@media (max-width: 720px) {
    .profile-tabs,
    .profile-actions,
    .profile-actions .button-link,
    .profile-actions button {
        width: 100%;
    }

    .profile-tab-button {
        width: 100%;
        justify-content: center;
    }

    .profile-avatar-current {
        align-items: flex-start;
        display: grid;
        gap: 10px;
    }

    .profile-avatar-upload {
        width: 100%;
    }
}
