 

.profile-avatar--editable {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.profile-avatar--editable img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 11, 24, 0.62);
    color: var(--ws-on-scrim);
    font: 800 11px/1 var(--bilox-font-body, Inter, sans-serif);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease;
}

.profile-avatar--editable:hover .profile-avatar__overlay,
.profile-avatar--editable:focus-visible .profile-avatar__overlay {
    opacity: 1;
}

.profile-avatar--editable:focus-visible {
    outline: 2px solid var(--cdb-primary, var(--ws-primary));
    outline-offset: 2px;
}

.profile-avatar--editable[data-avatar-busy="1"] {
    opacity: 0.7;
    pointer-events: none;
}

.profile-avatar__badge {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(7, 11, 24, 0.72);
}

.profile-avatar__ring {
    position: absolute;
    width: 62%;
    height: 62%;
    border: 2px solid rgba(var(--ws-tint-rgb), 0.28);
    border-top-color: #fff;
    border-radius: 50%;
    animation: profile-avatar-spin 0.9s linear infinite;
}

.profile-avatar__info {
    position: relative;
    color: var(--ws-on-scrim);
    font: 800 15px/1 var(--bilox-font-display, Manrope, sans-serif);
}

.profile-avatar__badge--error {
    background: color-mix(in srgb, var(--cdb-red, var(--ws-error)) 88%, rgba(7, 11, 24, 0.72));
}

.profile-avatar__badge--error .profile-avatar__info {
    color: var(--ws-on-scrim);
}

@keyframes profile-avatar-spin {
    to { transform: rotate(360deg); }
}

.profile-avatar-modal {
    position: fixed;
    inset: 0;
    z-index: 13000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(7, 11, 24, 0.46);
}

.profile-avatar-modal__card {
    position: relative;
    width: min(420px, 100%);
    max-height: min(88vh, 640px);
    overflow: auto;
    padding: 28px 24px 24px;
    border: 1px solid var(--cdb-line, rgba(21, 28, 44, 0.1));
    border-radius: var(--ws-radius-lg, 16px);
    background: var(--bilox-surface-solid, var(--ws-surface));
    color: var(--cdb-text, var(--ws-fg));
    box-shadow: var(--cdb-shadow, 0 26px 70px rgba(33, 38, 58, 0.11));
    text-align: center;
}

.profile-avatar-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: var(--ws-radius-sm, 8px);
    background: transparent;
    color: var(--cdb-muted, var(--ws-fg-muted));
    font: 700 22px/1 var(--bilox-font-body, Inter, sans-serif);
    cursor: pointer;
}

.profile-avatar-modal__close:hover {
    background: var(--bilox-primary-soft, rgba(42, 31, 61, 0.07));
    color: var(--cdb-text, var(--ws-fg));
}

.profile-avatar-modal__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.profile-avatar-modal__body h3 {
    margin: 4px 0 0;
    font: 750 19px/1.25 var(--bilox-font-display, Manrope, sans-serif);
}

.profile-avatar-modal__body p {
    margin: 0;
    max-width: 320px;
    color: var(--cdb-muted, var(--ws-fg-muted));
    font: 500 14px/1.55 var(--bilox-font-body, Inter, sans-serif);
}

.profile-avatar-modal__reason {
    padding: 12px 14px;
    border-radius: var(--ws-radius-md, 12px);
    background: color-mix(in srgb, var(--cdb-red, var(--ws-error)) 8%, transparent);
    color: var(--cdb-text, var(--ws-fg)) !important;
    text-align: left;
    overflow-wrap: anywhere;
}

.profile-avatar-modal__icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 50%;
    background: var(--bilox-primary-soft, rgba(42, 31, 61, 0.1));
    color: var(--cdb-primary, var(--ws-primary));
    font: 800 20px/1 var(--bilox-font-display, Manrope, sans-serif);
}

.profile-avatar-modal__icon--error {
    background: color-mix(in srgb, var(--cdb-red, var(--ws-error)) 12%, transparent);
    color: var(--cdb-red, var(--ws-error));
}

.profile-avatar-modal__preview {
    width: min(240px, 100%);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--ws-radius-lg, 16px);
}

.profile-avatar-modal__action {
    min-height: 44px;
    margin-top: 6px;
    padding: 0 18px;
    border: 0;
    border-radius: var(--ws-radius-md, 12px);
    background: var(--cdb-primary, var(--ws-primary));
    color: var(--ws-primary-fg);
    font: 700 14px/1 var(--bilox-font-body, Inter, sans-serif);
    cursor: pointer;
}

.profile-avatar-modal__action:hover {
    background: var(--cdb-primary-hover, var(--ws-primary-hover));
}

@media (prefers-reduced-motion: reduce) {
    .profile-avatar__ring { animation: none; }
    .profile-avatar__overlay { transition: none; }
}
