/* =========================================================
   VOXLY USER PROFILE CARD v0.18.16
   ========================================================= */

.voxly-profile-modal {
    position: fixed;
    inset: 0;
    z-index: 15000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voxly-profile-modal.hidden {
    display: none;
}

.voxly-profile-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(5px);
}

.voxly-profile-card {
    --voxly-profile-accent: #6574ff;

    position: relative;
    z-index: 1;
    width: min(430px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    overflow: auto;
    border-radius: 18px;
    background: #171a21;
    color: #f4f6fb;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, .55),
        0 0 0 1px rgba(255, 255, 255, .08);
}

.voxly-profile-card[data-theme="midnight"] {
    background: #0b0d14;
}

.voxly-profile-card[data-theme="graphite"] {
    background: #23252a;
}

.voxly-profile-card[data-theme="light"] {
    background: #f2f4f8;
    color: #17191e;
}

.voxly-profile-banner {
    height: 132px;
    background:
        linear-gradient(
            135deg,
            var(--voxly-profile-accent),
            #222836
        );
    background-position: center;
    background-size: cover;
    position: relative;
}

.voxly-profile-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: white;
    font-size: 23px;
    cursor: pointer;
}

.voxly-profile-avatar-wrap {
    margin: -48px 0 0 24px;
    position: relative;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    padding: 5px;
    background: #171a21;
}

.voxly-profile-avatar {
    width: 94px;
    height: 94px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--voxly-profile-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
}

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

.voxly-profile-body {
    padding: 12px 24px 24px;
}

.voxly-profile-display-name {
    font-size: 25px;
    line-height: 1.15;
    font-weight: 800;
}

.voxly-profile-username {
    margin-top: 3px;
    opacity: .68;
    font-size: 14px;
}

.voxly-profile-about-title {
    margin-top: 22px;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--voxly-profile-accent);
}

.voxly-profile-bio {
    white-space: pre-wrap;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.voxly-profile-bio.empty {
    opacity: .5;
    font-style: italic;
}

.voxly-profile-actions,
.voxly-profile-editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}

.voxly-profile-action {
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 9px;
    padding: 9px 14px;
    background: rgba(255, 255, 255, .07);
    color: inherit;
    cursor: pointer;
    font-weight: 700;
}

.voxly-profile-action.primary {
    background: var(--voxly-profile-accent);
    border-color: var(--voxly-profile-accent);
    color: white;
}

.voxly-profile-action.danger {
    background: rgba(205, 62, 77, .13);
    border-color: rgba(235, 83, 96, .45);
    color: #ff8b96;
}

.voxly-profile-action:disabled {
    opacity: .55;
    cursor: default;
}

.voxly-profile-editor {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.voxly-profile-editor.hidden {
    display: none;
}

.voxly-profile-editor label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 700;
}

.voxly-profile-editor textarea,
.voxly-profile-editor select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 9px;
    background: rgba(0, 0, 0, .24);
    color: inherit;
    padding: 10px;
}

.voxly-profile-editor textarea {
    resize: vertical;
    min-height: 92px;
}

.voxly-profile-edit-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.voxly-profile-editor input[type="color"] {
    width: 100%;
    height: 39px;
    border: 0;
    padding: 0;
    background: transparent;
}

.voxly-profile-limit {
    margin-top: -6px;
    font-size: 11px;
    opacity: .55;
}

.voxly-friend-rail-badge {
    position: absolute;
    top: -4px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border: 2px solid #111318;
    border-radius: 999px;
    background: #ef4d5f;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 16px;
    cursor: pointer;
    z-index: 6;
}

.voxly-friend-request-toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 16000;
    width: min(330px, calc(100vw - 44px));
    border: 1px solid rgba(255, 255, 255, .12);
    border-left: 4px solid #6574ff;
    border-radius: 11px;
    background: #1a1e27;
    color: #fff;
    text-align: left;
    padding: 13px 15px;
    box-shadow: 0 16px 42px rgba(0, 0, 0, .45);
    cursor: pointer;
}

.voxly-friend-request-toast strong,
.voxly-friend-request-toast span {
    display: block;
}

.voxly-friend-request-toast span {
    margin-top: 4px;
    opacity: .75;
    font-size: 13px;
}

@media (max-width: 520px) {

    .voxly-profile-card {
        width: calc(100vw - 20px);
    }

    .voxly-profile-edit-row {
        grid-template-columns: 1fr;
    }
}
