/*
 * ==========================================================
 * GAYZZEE WHO ONLINE + PROFILE POPUP V2
 * ==========================================================
 */

.gz-who-online-trigger {
    appearance: none;
    border: 1px solid rgba(255,255,255,.12);
    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.09),
            rgba(255,255,255,.035)
        );
    color: #fff;
    min-height: 42px;
    padding: 7px 13px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.06),
        0 7px 24px rgba(0,0,0,.18);
    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease;
}

.gz-who-online-trigger:hover {
    transform: translateY(-1px);
    border-color: rgba(72,255,156,.35);
    background:
        linear-gradient(
            135deg,
            rgba(45,198,119,.18),
            rgba(255,255,255,.045)
        );
}

.gz-who-online-trigger.is-floating {
    position: fixed;
    z-index: 2147482000;
    top: 78px;
    right: 18px;
    background: rgba(23,14,29,.97);
    box-shadow: 0 15px 45px rgba(0,0,0,.48);
}

.gz-who-online-trigger-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #35df88;
    box-shadow:
        0 0 0 3px rgba(53,223,136,.12),
        0 0 12px rgba(53,223,136,.5);
}

.gz-who-online-trigger-count {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(53,223,136,.13);
    color: #77f4ac;
    font-size: 11px;
    font-weight: 900;
}


/* ==========================================================
   ONLINE LIJST
   ========================================================== */

.gz-who-online-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding:
        max(76px, env(safe-area-inset-top))
        18px
        18px;
    background: rgba(2,2,7,.48);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity .2s ease,
        visibility .2s ease;
}

.gz-who-online-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.gz-who-online-panel {
    width: min(430px, calc(100vw - 36px));
    max-height: calc(100vh - 94px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 22px;
    background:
        linear-gradient(
            155deg,
            rgba(29,18,37,.99),
            rgba(10,8,15,.99) 62%
        );
    box-shadow: 0 28px 90px rgba(0,0,0,.62);
    transform: translateY(-8px) scale(.985);
    transition: transform .2s ease;
}

.gz-who-online-overlay.is-open .gz-who-online-panel {
    transform: translateY(0) scale(1);
}

.gz-who-online-header {
    min-height: 76px;
    padding: 16px 16px 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.gz-who-online-heading {
    min-width: 0;
}

.gz-who-online-kicker {
    display: block;
    color: #8f7f98;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .13em;
}

.gz-who-online-title {
    margin: 3px 0 0;
    color: #fff;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 900;
}

.gz-who-online-summary {
    margin-top: 4px;
    color: #a998b1;
    font-size: 11px;
    font-weight: 600;
}

.gz-who-online-close,
.gz-profile-close {
    appearance: none;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 13px;
    background: rgba(255,255,255,.045);
    color: #fff;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    flex: 0 0 auto;
}

.gz-who-online-close:hover,
.gz-profile-close:hover {
    background: rgba(255,255,255,.1);
}

.gz-who-online-body {
    min-height: 180px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px;
}

.gz-who-online-body::-webkit-scrollbar,
.gz-profile-content::-webkit-scrollbar {
    width: 8px;
}

.gz-who-online-body::-webkit-scrollbar-thumb,
.gz-profile-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.13);
    border-radius: 999px;
}


/* ==========================================================
   ONLINE MEMBER — NU AANKLIKBAAR
   ========================================================== */

.gz-online-member {
    appearance: none;
    width: 100%;
    min-height: 70px;
    padding: 9px 10px;
    display: grid;
    grid-template-columns: 48px minmax(0,1fr) auto;
    align-items: center;
    gap: 11px;
    border: 1px solid transparent;
    border-radius: 15px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        background .16s ease,
        border-color .16s ease,
        transform .16s ease;
}

.gz-online-member + .gz-online-member {
    margin-top: 2px;
}

.gz-online-member:hover {
    background: rgba(255,255,255,.055);
    border-color: rgba(208,76,255,.13);
    transform: translateX(-2px);
}

.gz-online-member:focus-visible {
    outline: 2px solid rgba(211,83,255,.72);
    outline-offset: 1px;
}

.gz-online-member-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            135deg,
            #54213c,
            #221229
        );
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    border: 1px solid rgba(255,255,255,.09);
}

.gz-online-member-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.gz-online-member-status-dot {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 13px;
    height: 13px;
    border: 3px solid #120d16;
    border-radius: 50%;
    background: #34df86;
    z-index: 2;
}

.gz-online-member-status-dot.is-away {
    background: #f2ac3d;
}

.gz-online-member-copy {
    min-width: 0;
}

.gz-online-member-name-row {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.gz-online-member-name {
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gz-online-member-age {
    color: #8e7d97;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.gz-online-member-meta {
    margin-top: 5px;
    overflow: hidden;
    color: #9d8fa5;
    font-size: 10px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gz-online-member-location {
    margin-top: 2px;
    overflow: hidden;
    color: #756b7d;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gz-online-member-side {
    min-width: 63px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.gz-online-status-badge {
    min-height: 22px;
    padding: 4px 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    background: rgba(53,223,136,.1);
    color: #64ed9f;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.gz-online-status-badge.is-away {
    background: rgba(242,172,61,.11);
    color: #ffc66e;
}

.gz-online-distance {
    color: #746a7a;
    font-size: 9px;
    font-weight: 700;
}

.gz-online-member-arrow {
    color: #705c78;
    font-size: 14px;
}


/* ==========================================================
   EMPTY / LOADING
   ========================================================== */

.gz-who-online-empty,
.gz-who-online-loading {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8c7d94;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.gz-who-online-empty {
    padding: 30px 20px;
    flex-direction: column;
}

.gz-who-online-empty-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.05);
    font-size: 23px;
}

.gz-who-online-empty strong {
    margin-top: 13px;
    color: #fff;
    font-size: 13px;
}

.gz-who-online-empty span {
    margin-top: 5px;
    color: #827487;
    font-size: 10px;
    line-height: 1.5;
}

.gz-who-online-footer {
    min-height: 48px;
    padding: 10px 15px;
    border-top: 1px solid rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #6f6475;
    font-size: 9px;
}

.gz-who-online-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gz-who-online-live i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34df86;
    box-shadow: 0 0 10px rgba(52,223,134,.55);
}


/* ==========================================================
   PROFILE OVERLAY
   ========================================================== */

.gz-profile-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(2,1,6,.73);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity .2s ease,
        visibility .2s ease;
}

.gz-profile-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.gz-profile-dialog {
    width: min(650px, calc(100vw - 32px));
    max-height: min(850px, calc(100vh - 38px));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 25px;
    background:
        linear-gradient(
            150deg,
            #241429 0%,
            #120b16 52%,
            #09070c 100%
        );
    box-shadow: 0 35px 110px rgba(0,0,0,.7);
    transform: scale(.975) translateY(8px);
    transition: transform .2s ease;
}

.gz-profile-overlay.is-open .gz-profile-dialog {
    transform: scale(1) translateY(0);
}

.gz-profile-cover {
    position: relative;
    min-height: 155px;
    background:
        radial-gradient(
            circle at 70% 20%,
            rgba(220,66,255,.24),
            transparent 37%
        ),
        linear-gradient(
            135deg,
            #35152b,
            #15101d 58%,
            #0d0a11
        );
    background-size: cover;
    background-position: center;
    flex: 0 0 auto;
}

.gz-profile-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,.05),
            rgba(5,3,8,.68)
        );
}

.gz-profile-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    background: rgba(5,3,8,.68);
}

.gz-profile-avatar-wrap {
    position: absolute;
    z-index: 3;
    left: 24px;
    bottom: -43px;
    width: 92px;
    height: 92px;
    border-radius: 24px;
    padding: 3px;
    background:
        linear-gradient(
            135deg,
            #e048ff,
            #6133ff,
            #20d78a
        );
    box-shadow: 0 13px 35px rgba(0,0,0,.5);
}

.gz-profile-avatar {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1b1220;
    color: #fff;
    font-size: 30px;
    font-weight: 900;
}

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

.gz-profile-content {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding:
        55px
        24px
        25px;
}

.gz-profile-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.gz-profile-name {
    margin: 0;
    color: #fff;
    font-size: 25px;
    line-height: 1.15;
    font-weight: 900;
}

.gz-profile-meta {
    margin-top: 6px;
    color: #ad9db5;
    font-size: 12px;
    line-height: 1.5;
}

.gz-profile-current-area {
    margin-top: 7px;
    color: #806f89;
    font-size: 10px;
}

.gz-profile-state {
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(52,223,134,.11);
    color: #72efa8;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.gz-profile-state.is-away {
    background: rgba(242,172,61,.12);
    color: #ffc66e;
}

.gz-profile-section {
    margin-top: 22px;
}

.gz-profile-section-title {
    margin-bottom: 8px;
    color: #7f7087;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.gz-profile-card {
    padding: 15px 16px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 16px;
    background: rgba(255,255,255,.035);
    color: #d6cbdc;
    font-size: 12px;
    line-height: 1.65;
}

.gz-profile-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.gz-profile-chip {
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(202,71,255,.09);
    border: 1px solid rgba(202,71,255,.13);
    color: #d8b4e8;
    font-size: 10px;
    font-weight: 700;
}

.gz-profile-photos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 8px;
}

.gz-profile-photo {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 13px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
}

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

.gz-profile-actions {
    margin-top: 23px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.gz-profile-action {
    appearance: none;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 13px;
    background: rgba(255,255,255,.055);
    color: #fff;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gz-profile-action:hover {
    background: rgba(255,255,255,.095);
}

.gz-profile-action.is-primary {
    border-color: rgba(208,72,255,.3);
    background:
        linear-gradient(
            135deg,
            rgba(194,47,255,.25),
            rgba(110,51,255,.17)
        );
}

.gz-profile-action.is-gb {
    border-color: rgba(64,168,255,.24);
    color: #a9d8ff;
}


/* ==========================================================
   QUICK DM
   ========================================================== */

.gz-profile-message-box {
    margin-top: 13px;
    padding: 13px;
    border: 1px solid rgba(208,72,255,.13);
    border-radius: 15px;
    background: rgba(0,0,0,.18);
}

.gz-profile-message-box[hidden] {
    display: none;
}

.gz-profile-message-box textarea {
    width: 100%;
    min-height: 92px;
    resize: vertical;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 12px;
    outline: none;
    padding: 11px 12px;
    background: rgba(4,3,7,.66);
    color: #fff;
    font: inherit;
    font-size: 12px;
    line-height: 1.5;
}

.gz-profile-message-box textarea:focus {
    border-color: rgba(207,72,255,.42);
}

.gz-profile-message-footer {
    margin-top: 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.gz-profile-message-status {
    color: #8e8195;
    font-size: 9px;
}

.gz-profile-send {
    appearance: none;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid rgba(49,222,134,.2);
    border-radius: 11px;
    background: rgba(49,222,134,.12);
    color: #78efad;
    font: inherit;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
}

.gz-profile-send:disabled {
    opacity: .45;
    cursor: default;
}


/* ==========================================================
   PROFILE LOADING
   ========================================================== */

.gz-profile-loading {
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #a491ac;
    font-size: 11px;
}

.gz-profile-loader {
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
    border: 3px solid rgba(255,255,255,.09);
    border-top-color: #d34cff;
    border-radius: 50%;
    animation: gzProfileSpin .7s linear infinite;
}

@keyframes gzProfileSpin {
    to {
        transform: rotate(360deg);
    }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 900px) {

    .gz-who-online-trigger,
    .gz-who-online-trigger.is-floating {
        position: fixed;
        top: auto;
        right: 12px;
        bottom:
            calc(
                78px +
                env(safe-area-inset-bottom)
            );
        z-index: 2147482000;
        min-height: 43px;
        padding: 8px 11px;
        border-radius: 14px;
        background: rgba(24,15,30,.96);
        box-shadow: 0 13px 35px rgba(0,0,0,.42);
    }

    .gz-who-online-overlay {
        align-items: flex-end;
        padding: 0;
        background: rgba(0,0,0,.56);
    }

    .gz-who-online-panel {
        width: 100%;
        max-height: min(82vh,760px);
        border-radius: 22px 22px 0 0;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
        transform: translateY(24px);
    }

    .gz-who-online-overlay.is-open .gz-who-online-panel {
        transform: translateY(0);
    }

    .gz-profile-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .gz-profile-dialog {
        width: 100%;
        max-height: 91vh;
        border-radius: 24px 24px 0 0;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
        transform: translateY(30px);
    }

    .gz-profile-overlay.is-open .gz-profile-dialog {
        transform: translateY(0);
    }

    .gz-profile-cover {
        min-height: 135px;
    }

    .gz-profile-content {
        padding:
            54px
            17px
            calc(
                22px +
                env(safe-area-inset-bottom)
            );
    }

    .gz-profile-photos {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
}

@media (max-width: 460px) {

    .gz-who-online-trigger-label {
        display: none;
    }

    .gz-online-member {
        grid-template-columns: 45px minmax(0,1fr) auto;
        gap: 9px;
    }

    .gz-online-member-avatar {
        width: 45px;
        height: 45px;
    }

    .gz-profile-name {
        font-size: 22px;
    }

    .gz-profile-avatar-wrap {
        width: 82px;
        height: 82px;
        border-radius: 22px;
    }

    .gz-profile-avatar {
        border-radius: 19px;
    }

    .gz-profile-heading-row {
        gap: 9px;
    }

    .gz-profile-photos {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }

    .gz-profile-action {
        flex: 1 1 auto;
    }
}
