/* TLGAWY Chat 10.1 V13.6 — exact profile controls + quick tabs + effect overlay
   Focus: toolbar buttons work, More/Saraha use the same neutral palette as profile tabs,
   and animated profile effects stay visually above the whole profile without blocking input. */

.v130_reference_profile.v136_profile_fixed {
    position: relative !important;
    isolation: isolate !important;
    overflow: hidden !important;
}

/* Effect is a visual overlay over the entire profile. It never occupies layout space. */
.v130_reference_profile.v136_profile_fixed > .v136_profile_effect_layer {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    border-radius: inherit !important;
    z-index: 90 !important;
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}
.v130_reference_profile.v136_profile_fixed > .v136_profile_effect_layer > .v110_profile_effect_overlay,
.v130_reference_profile.v136_profile_fixed > .v136_profile_effect_layer img {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    pointer-events: none !important;
}

/* Keep the actual profile below the effect; the toolbar stays usable above it. */
.v130_reference_profile.v136_profile_fixed .modal_wrap_top,
.v130_reference_profile.v136_profile_fixed .profile_bottom_container,
.v130_reference_profile.v136_profile_fixed .profile_info_box {
    position: relative !important;
    z-index: 2 !important;
}

/* The requested order is X, menu, images from the left. */
.v130_reference_profile.v136_profile_fixed .v131_profile_toolbar {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    right: auto !important;
    z-index: 150 !important;
    display: flex !important;
    flex-direction: row !important;
    direction: ltr !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    min-width: 120px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: auto !important;
}
.v130_reference_profile.v136_profile_fixed .v131_profile_toolbar .v136_toolbar_btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    position: relative !important;
    z-index: 151 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 20px !important;
    line-height: 40px !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
}
.v130_reference_profile.v136_profile_fixed .v131_profile_toolbar .v136_toolbar_btn i {
    color: inherit !important;
    pointer-events: none !important;
}
.v130_reference_profile.v136_profile_fixed .v131_toolbar_close { order: 1 !important; }
.v130_reference_profile.v136_profile_fixed .v131_toolbar_menu { order: 2 !important; }
.v130_reference_profile.v136_profile_fixed .v131_toolbar_gallery { order: 3 !important; }

/* Decorative layers cannot steal clicks. */
.v130_reference_profile.v136_profile_fixed .v130_cover_overlay::before,
.v130_reference_profile.v136_profile_fixed .v130_cover_overlay::after,
.v130_reference_profile.v136_profile_fixed .modal_wrap_top::before,
.v130_reference_profile.v136_profile_fixed .modal_wrap_top::after {
    pointer-events: none !important;
}

/* Quick tools use the same neutral white/grey language as the main profile tabs. */
.v130_reference_profile.v136_profile_fixed .v132_profile_quick_tools {
    position: relative !important;
    z-index: 6 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 9px 10px !important;
    background: #fff !important;
    border-top: 1px solid rgba(0,0,0,.06) !important;
    border-bottom: 1px solid rgba(0,0,0,.06) !important;
    pointer-events: auto !important;
}
.v130_reference_profile.v136_profile_fixed .v132_profile_tool,
.v130_reference_profile.v136_profile_fixed .v136_profile_tool {
    appearance: none !important;
    -webkit-appearance: none !important;
    position: relative !important;
    z-index: 7 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    min-width: 82px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 7px 12px !important;
    border: 1px solid #e2e2e2 !important;
    border-radius: 8px !important;
    background: #f2f2f2 !important;
    color: #333 !important;
    box-shadow: none !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
}
.v130_reference_profile.v136_profile_fixed .v132_profile_tool i,
.v130_reference_profile.v136_profile_fixed .v132_profile_tool span,
.v130_reference_profile.v136_profile_fixed .v136_profile_tool i,
.v130_reference_profile.v136_profile_fixed .v136_profile_tool span {
    color: inherit !important;
    pointer-events: none !important;
}
.v130_reference_profile.v136_profile_fixed .v132_profile_tool:hover,
.v130_reference_profile.v136_profile_fixed .v132_profile_tool:focus,
.v130_reference_profile.v136_profile_fixed .v132_profile_tool.v136_tool_selected,
.v130_reference_profile.v136_profile_fixed .v136_profile_tool:hover,
.v130_reference_profile.v136_profile_fixed .v136_profile_tool:focus,
.v130_reference_profile.v136_profile_fixed .v136_profile_tool.v136_tool_selected {
    background: #e5e5e5 !important;
    border-color: #d7d7d7 !important;
    color: #222 !important;
}

.v130_reference_profile.v136_profile_fixed #mprofilemenu > .modal_zone.v136_tab_active {
    display: block !important;
}
.v130_reference_profile.v136_profile_fixed #mprofilemenu > .modal_zone.hide_zone:not(.v136_tab_active) {
    display: none !important;
}
.v130_reference_profile.v136_profile_fixed .modal_menu_item {
    cursor: pointer !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
}

@media screen and (max-width: 640px) {
    .v130_reference_profile.v136_profile_fixed .v131_profile_toolbar {
        top: 6px !important;
        left: 6px !important;
        min-width: 108px !important;
        height: 38px !important;
    }
    .v130_reference_profile.v136_profile_fixed .v131_profile_toolbar .v136_toolbar_btn {
        flex-basis: 36px !important;
        width: 36px !important;
        min-width: 36px !important;
        height: 36px !important;
        line-height: 36px !important;
        font-size: 18px !important;
    }
    .v130_reference_profile.v136_profile_fixed .v132_profile_quick_tools {
        gap: 6px !important;
        padding: 8px 7px !important;
    }
    .v130_reference_profile.v136_profile_fixed .v132_profile_tool,
    .v130_reference_profile.v136_profile_fixed .v136_profile_tool {
        min-width: 72px !important;
        min-height: 32px !important;
        padding: 6px 9px !important;
        font-size: 11px !important;
    }
}
