/* ==========================================================
   RURKA.ONLINE — NOWY WYGLĄD
   ETAP 1: NAGŁÓWEK

   Ten etap nie zmienia paska pokoi, czatu, panelu osób
   ani pola wpisywania wiadomości.
   ========================================================== */
   
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* Nowa czcionka w oknie rozmowy */
body,
#chat_logs_container,
#chat_logs_container .ch_logs,
#chat_logs_container .my_text,
#chat_logs_container .chat_message .username ,
#chat_logs_container .cdate,
#container_input,
#main_input {
    -webkit-text-stroke: 0.2px rgba(0, 0, 0, 0.15);
    font-family: "Manrope", Arial, sans-serif !important;
}

:root {
    --rurka-header-dark: #4a0b4e;
    --rurka-header-main: #741267;
    --rurka-header-light: #a3228f;
    --rurka-header-border: rgba(255, 255, 255, 0.13);
    --rurka-header-card: rgba(255, 255, 255, 0.08);
    --rurka-header-card-hover: rgba(255, 255, 255, 0.16);
}

.goog-te-gadget-simple
 {
     margin-top:10px;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;

    background-color: #35103f;

    background-image:
        linear-gradient(
            90deg,
            rgba(43, 6, 50, 0.42) 0%,
            rgba(48, 7, 57, 0.60) 35%,
            rgba(48, 7, 57, 0.60) 68%,
            rgba(43, 6, 50, 0.44) 100%
        ),
        url('/czat/default_images/tlo-rurka-modern-v3.png?v=2');

    background-position: center top;
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

@media screen and (max-width: 600px) {
    body {
        background-image:
            linear-gradient(
                rgba(48, 7, 57, 0.50),
                rgba(48, 7, 57, 0.58)
            ),
            url('/czat/default_images/tlo-rurka-modern-v3.png?v=2');

        background-position: center top;
        background-attachment: scroll;
    }
}


/* Logo. */
#chat_head #main_logo {
    filter: drop-shadow(0 7px 14px rgba(33, 2, 35, 0.22));
    transition: filter 180ms ease, transform 180ms ease;
}

#chat_head #main_logo:hover {
    filter: drop-shadow(0 9px 18px rgba(33, 2, 35, 0.30));
    transform: translateY(-1px);
}

/* Profil użytkownika po lewej stronie. */
#chat_head #main_mob_menu {
    padding: 7px 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: background-color 180ms ease, border-color 180ms ease;
}

#chat_head #main_mob_menu:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.22);
}

#chat_head .avatar_menu {
    border: 2px solid rgba(255, 255, 255, 0.88) !important;
    border-radius: 50% !important;
    box-shadow: 0 5px 14px rgba(33, 2, 35, 0.28) !important;
    object-fit: cover;
}

#chat_head #myusernameid,
#chat_head .avnick {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 3px rgba(31, 2, 32, 0.32) !important;
}

#chat_head .avsettings {
    color: #ffffff !important;
    text-shadow: 0 2px 5px rgba(31, 2, 32, 0.34);
}

/* Kafelki ikon w wersji komputerowej. */
#chat_head .header_icons > .head_option {
    border: 1px solid transparent !important;
    border-radius: 14px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: rgba(255, 255, 255, 0.94) !important;
    transition: background-color 180ms ease, border-color 180ms ease,
                box-shadow 180ms ease, transform 180ms ease !important;
}

#chat_head .header_icons > .head_option:hover {
    background: var(--rurka-header-card-hover) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 7px 18px rgba(38, 3, 40, 0.15) !important;
    transform: translateY(-2px);
}

#chat_head .header_icons .bcell_mid,
#chat_head .header_icons .bcell_mid a {
    color: rgba(255, 255, 255, 0.94) !important;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(31, 2, 32, 0.24);
}

#chat_head .header_icons svg,
#chat_head .header_icons img {
    filter: drop-shadow(0 3px 5px rgba(32, 2, 34, 0.18));
}

/* Jednolity zestaw ikon dodany w control/chat.php. */
#chat_head .rurka-nav-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto 6px;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.07));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 7px 16px rgba(35, 3, 37, 0.17);
    transition: background-color 180ms ease, border-color 180ms ease,
                box-shadow 180ms ease, transform 180ms ease;
}

#chat_head .rurka-nav-icon i {
    font-size: 19px !important;
    line-height: 1;
    color: #ffffff !important;
    filter: drop-shadow(0 2px 4px rgba(34, 2, 36, 0.24));
}

#chat_head .head_option:hover .rurka-nav-icon {
    border-color: rgba(255, 255, 255, 0.28);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.11));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 9px 20px rgba(35, 3, 37, 0.22);
    transform: translateY(-2px);
}

/* Stara grafika jest zachowana jako fallback, ale po dodaniu
   nowej ikony nie jest już wyświetlana. */
#chat_head .rurka-nav-icon + svg,
#chat_head .rurka-nav-icon + img {
    display: none !important;
}

#chat_head .header_icons > .head_option:has(.rurka-nav-icon) svg,
#chat_head .header_icons > .head_option:has(.rurka-nav-icon) img,
#chat_head .header_icons_mobile .head_option:has(.rurka-nav-icon) svg,
#chat_head .header_icons_mobile .head_option:has(.rurka-nav-icon) img {
    display: none !important;
}

/* Kamera ma dodatkowy kontener i rozwijane opcje — zerujemy jego stare
   wymiary, żeby wyglądał dokładnie jak pozostałe przyciski. */
#chat_head .header_icons > #nickowy {
    height: 63px !important;
}

#chat_head .header_icons > #nickowy > .disabledenabled {
    height: 63px !important;
}

#chat_head .rurka-camera-trigger {
    width: 100% !important;
    height: 63px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: transparent !important;
    box-shadow: none !important;
}

#chat_head .rurka-camera-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    line-height: 15px;
    color: rgba(255, 255, 255, 0.94) !important;
    font-weight: 600;
}

#chat_head .rurka-camera-label .fa-caret-down,
#chat_head .rurka-camera-label .fa-caret-up {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    font-size: 11px !important;
    line-height: 1 !important;
}

#chat_head #kamery {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    width: min(560px, calc(100vw - 24px)) !important;
    height: auto !important;
    margin: 0 !important;
    padding: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 16px !important;
    background: rgba(57, 8, 61, 0.97) !important;
    box-shadow: 0 18px 42px rgba(25, 2, 28, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(102px, 1fr)) minmax(170px, 1.45fr);
    gap: 5px;
    z-index: 220 !important;
}

#chat_head #kamery .kam {
    position: static !important;
    width: 100% !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 7px 9px !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.94) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    box-sizing: border-box !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-align: left !important;
    white-space: normal !important;
    cursor: pointer;
    transition: background-color 150ms ease, transform 150ms ease !important;
}

#chat_head #kamery .kam:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    transform: translateY(-1px);
}

#chat_head #kamery .kam > i {
    position: static !important;
    flex: 0 0 28px;
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    border-radius: 9px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(237, 103, 203, 0.34), rgba(255, 255, 255, 0.1));
    color: #fff !important;
    font-size: 13px !important;
}

#chat_head #kamery .kam span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#chat_head #kamery .kam small {
    color: rgba(255, 255, 255, 0.58);
    font-size: 10px;
    font-weight: 500;
}

@media screen and (max-width: 720px) {
    #chat_head #kamery {
        width: min(300px, calc(100vw - 20px)) !important;
        grid-template-columns: 1fr !important;
    }
}

/* Liczniki i małe informacje nad nagłówkiem. */
#chat_head .bel2 {
    color: rgba(255, 255, 255, 0.88) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}

/* Menu rozwijane ikon. */
#chat_head .dropdown-menu,
#chat_head .fmenu {
    border: 1px solid rgba(255, 255, 255, 0.13) !important;
    border-radius: 14px !important;
    background: rgba(64, 8, 67, 0.97) !important;
    box-shadow: 0 18px 42px rgba(29, 2, 31, 0.34) !important;
    overflow: hidden;
}

#chat_head .dropdown-menu .head_option,
#chat_head .fmenu_item {
    border-radius: 10px !important;
    transition: background-color 160ms ease !important;
}

#chat_head .dropdown-menu .head_option:hover,
#chat_head .fmenu_item:hover {
    background: rgba(255, 255, 255, 0.12) !important;
}

/* Telefon — wyłącznie wygląd istniejących elementów. */
@media screen and (max-width: 1280px) {
    #chat_head .rurka-nav-icon {
        width: 34px;
        height: 34px;
        margin-bottom: 4px;
        border-radius: 11px;
    }

    #chat_head .rurka-nav-icon i {
        font-size: 16px !important;
    }

    #chat_head .header_icons_mobile > .head_option {
        border: 1px solid transparent !important;
        border-radius: 12px !important;
        background: transparent !important;
        color: #ffffff !important;
        transition: background-color 160ms ease, border-color 160ms ease !important;
    }

    #chat_head .header_icons_mobile > .head_option:active {
        background: rgba(255, 255, 255, 0.15) !important;
        border-color: rgba(255, 255, 255, 0.13) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    #chat_head *,
    #chat_head *::before,
    #chat_head *::after {
        transition: none !important;
    }
}

#chat_head .header_icons > #nickowy > .disabledenabled,
#chat_head .header_icons > #nickowy > .disabledenabled:hover {
    transform: none !important;
}

#chat_head .header_icons > #nickowy,
#chat_head .header_icons > #nickowy:hover {
    transform: none !important;
}

#chat_head .rurka-camera-trigger {
    padding-top: 5px !important;
}

#chat_head .rurka-camera-label {
    margin-top: 0 !important;
}

/* Usuwa stare puste linie pod ikonami pozostałych przycisków */
#chat_head .header_icons > .head_option:has(.rurka-nav-icon) .bcell_mid br {
    display: none !important;
}

/* Kamera otrzymuje taką samą szerokość jak pozostałe przyciski */
#chat_head .header_icons > #nickowy {
    width: 95px !important;
    height: 75px !important;
}

/* Odzyskujemy miejsce na szerszą Kamerę */
#chat_head .header_icons > .bel3 {
    margin-left: 4px !important;
    margin-right: 4px !important;
}

@media screen and (max-width: 1281px) {
    #chat_head .header_icons_mobile {
        right: 4px !important;
        left: auto !important;
        width: auto !important;
        gap: 1px !important;
        padding: 0 !important;
        justify-content: flex-end !important;

        /* Usuwa stare scale(0.7) i przesunięcie w lewo */
        transform: translateY(10px) !important;
        transform-origin: top right !important;
    }

    #chat_head .header_icons_mobile > .head_option {
        flex: 0 0 46px !important;
        width: 46px !important;
        min-width: 46px !important;
        margin: 0 !important;
        padding: 2px 0 !important;
    }

    #chat_head .header_icons_mobile .rurka-nav-icon {
        width: 32px !important;
        height: 32px !important;
        margin: 0 auto 3px !important;
    }

    #chat_head .header_icons_mobile .rurka-camera-label {
        width: 46px !important;
        margin: 15px 0 0 !important;
        padding: 0 !important;
        justify-content: center !important;
        gap: 2px !important;
        font-size: 9px !important;
        line-height: 12px !important;
        white-space: nowrap !important;
    }

    #chat_head .header_icons_mobile .rurka-camera-label i {
        position: static !important;
        margin: 0 !important;
        font-size: 8px !important;
    }

    #chat_head .header_icons_mobile .bcell_mid {
        font-size: 9px !important;
        line-height: 12px !important;
    }
}






/* Odpowiedź na wpis */
.chat_reply_quote {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
width: 100%;
max-width: 430px;
margin: 5px 0 0;
    padding: 6px 29px 6px 9px;
    color: rgba(58, 26, 55, 0.68);
    background: linear-gradient(110deg, rgba(109, 0, 96, 0.075), rgba(213, 68, 188, 0.035));
    border: 1px solid rgba(109, 0, 96, 0.10);
    border-radius: 8px;
    box-sizing: border-box;
    overflow: hidden;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.chat_reply_quote:hover {
    background: rgba(109, 0, 96, 0.105);
    border-color: rgba(109, 0, 96, 0.17);
}

.chat_reply_bar {
    align-self: stretch;
    flex: 0 0 3px;
    background: linear-gradient(180deg, rgba(109, 0, 96, 0.72), rgba(208, 60, 181, 0.40));
    border-radius: 4px;
}

.chat_reply_content {
    display: flex;
    align-items: flex-start !important;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
}

.chat_reply_name {
    flex: 0 0 auto;
    color: rgba(109, 0, 96, 0.83);
    font-size: 11px;
    font-weight: 700;
}

.chat_reply_message {
    min-width: 0;
    color: rgba(50, 34, 48, 0.64);
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Pomniejszone emotikony i obrazki wewnątrz cytatu */
.chat_reply_message .emo_chat,
.chat_reply_message .emocc {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    margin: -2px 1px 0 !important;
    display: inline-block !important;
    object-fit: contain !important;
    vertical-align: middle !important;
}

.chat_reply_media {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex: 0 0 auto !important;
}

.chat_reply_image {
    width: 46px !important;
    height: 34px !important;
    max-width: 46px !important;
    max-height: 34px !important;
    display: block !important;
    object-fit: cover !important;
    background: rgba(109, 0, 96, 0.06) !important;
    border: 1px solid rgba(109, 0, 96, 0.16) !important;
    border-radius: 6px !important;
}

.chat_reply_video {
    position: relative !important;
    width: 54px !important;
    height: 34px !important;
    display: block !important;
    flex: 0 0 54px !important;
    overflow: hidden !important;
    border-radius: 6px !important;
}

.chat_reply_video .chat_reply_youtube {
    width: 54px !important;
    height: 34px !important;
    max-width: 54px !important;
    max-height: 34px !important;
}

.chat_reply_play {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    z-index: 2 !important;
    color: #fff !important;
    font-size: 11px !important;
    line-height: 1 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8) !important;
    transform: translate(-50%, -50%) !important;
}

.chat_reply_icon {
    position: absolute;
    right: 9px;
    color: rgba(109, 0, 96, 0.28);
    font-size: 11px;
}

.reply_highlight .kontener {
    animation: rurkaReplyHighlight 1.8s ease;
}

@keyframes rurkaReplyHighlight {
    0%, 100% {
        box-shadow: 0 3px 12px rgba(55, 11, 59, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.86);
    }
    25%, 65% {
        box-shadow: 0 0 0 2px rgba(183, 36, 160, 0.30), 0 7px 22px rgba(109, 0, 96, 0.17);
    }
}

@media screen and (max-width: 600px) {
    .chat_message:has(.chat_reply_quote) {
        max-width: calc(100vw - 105px) !important;
    }

    .chat_reply_quote {
        width: 100%;
        max-width: 100%;
        margin: 5px 0 0;
    }

    .chat_reply_image {
        width: 38px !important;
        height: 29px !important;
    }

    .chat_reply_video,
    .chat_reply_video .chat_reply_youtube {
        width: 46px !important;
        height: 29px !important;
        max-width: 46px !important;
        max-height: 29px !important;
    }

    .chat_reply_video {
        flex-basis: 46px !important;
    }
}
@media screen and (max-width: 1281px) {

    /*
     * Ważne: usuwamy skalowanie całego nagłówka.
     * Inaczej position: fixed również jest skalowane
     * i nie odnosi się prawidłowo do ekranu.
     */
    #chat_head .header_icons_mobile {
                margin-top: 20px;
        transform: none !important;
    }

    /* =========================================
       WSPÓLNE OKNO MENU
       ========================================= */

    #chat_head .header_icons_mobile .dropdown-menu {
        position: fixed !important;
        top: 113px !important;
        bottom: auto !important;

        margin: 0 !important;
        padding: 6px !important;

        border: 1px solid rgba(255, 255, 255, 0.16) !important;
        border-radius: 14px !important;

        background:
            linear-gradient(
                145deg,
                rgba(78, 19, 82, 0.98),
                rgba(46, 7, 51, 0.98)
            ) !important;

        box-shadow:
            0 12px 28px rgba(20, 0, 23, 0.34),
            inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;

        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;

        overflow: hidden !important;
        box-sizing: border-box !important;
        z-index: 9999 !important;
    }

    /* =========================================
       KAMERA — NA ŚRODKU EKRANU
       ========================================= */

    #chat_head .header_icons_mobile #nickowy .dropdown-menu {
        left: 50% !important;
        right: auto !important;

        width: min(300px, calc(100vw - 20px)) !important;
        transform: translateX(-50%) !important;
    }

    #chat_head .header_icons_mobile #nickowy
    .dropdown-menu[style*="display: block"] {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 5px !important;
    }

    #chat_head .header_icons_mobile #nickowy
    .dropdown-menu > .head_option {
        position: static !important;

        width: 100% !important;
        min-width: 0 !important;
        height: 50px !important;

        margin: 0 !important;
        padding: 6px 8px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;

        border: 1px solid rgba(255, 255, 255, 0.04) !important;
        border-radius: 10px !important;
        background: rgba(255, 255, 255, 0.07) !important;

        color: rgba(255, 255, 255, 0.96) !important;
        font-size: 9px !important;
        line-height: 11px !important;
        text-align: left !important;
        white-space: normal !important;

        box-sizing: border-box !important;
    }

    #chat_head .header_icons_mobile #nickowy
    .dropdown-menu > .head_option > i {
        position: static !important;
        flex: 0 0 29px !important;

        width: 29px !important;
        height: 29px !important;
        margin: 0 !important;

        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        border-radius: 9px !important;
        background: rgba(255, 255, 255, 0.13) !important;

        color: #fff !important;
        font-size: 12px !important;
    }

    /* =========================================
       WIĘCEJ — PRAWA STRONA, UKŁAD KAFELKOWY
       ========================================= */

    #chat_head .header_icons_mobile >
    .dropdown:not(#nickowy) .dropdown-menu {
        left: auto !important;
        right: 7px !important;

        width: min(300px, calc(100vw - 14px)) !important;
        transform: none !important;
    }

    #chat_head .header_icons_mobile >
    .dropdown:not(#nickowy)
    .dropdown-menu[style*="display: block"] {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 5px !important;
    }

    #chat_head .header_icons_mobile >
    .dropdown:not(#nickowy) .dropdown-menu > .head_option {
        position: static !important;

        width: 100% !important;
        min-width: 0 !important;
        height: 50px !important;

        margin: 0 !important;
        padding: 6px 8px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;

        border: 1px solid rgba(255, 255, 255, 0.04) !important;
        border-radius: 10px !important;
        background: rgba(255, 255, 255, 0.07) !important;

        color: rgba(255, 255, 255, 0.96) !important;
        font-size: 9px !important;
        line-height: 11px !important;
        text-align: left !important;
        white-space: normal !important;

        box-sizing: border-box !important;
    }

    #chat_head .header_icons_mobile >
    .dropdown:not(#nickowy) .dropdown-menu .rurka-nav-icon {
        flex: 0 0 29px !important;

        width: 29px !important;
        height: 29px !important;
        margin: 0 !important;

        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        border-radius: 9px !important;
        background: rgba(255, 255, 255, 0.13) !important;
    }

    /* Ostatni kafelek menu Więcej na całą szerokość */
    #chat_head .header_icons_mobile >
    .dropdown:not(#nickowy) .dropdown-menu > .head_option:last-child {
        grid-column: 1 / -1 !important;
    }

    /* Reakcja na dotknięcie */
    #chat_head .header_icons_mobile
    .dropdown-menu > .head_option:active {
        background: rgba(255, 255, 255, 0.17) !important;
        transform: scale(0.98) !important;
    }
}

@media screen and (max-width: 1281px) {

    /* Ukrycie starych ikon i łamań wiersza */
    #chat_head .header_icons_mobile >
    .dropdown:not(#nickowy) .dropdown-menu > .head_option > svg,

    #chat_head .header_icons_mobile >
    .dropdown:not(#nickowy) .dropdown-menu > .head_option > img,

    #chat_head .header_icons_mobile >
    .dropdown:not(#nickowy) .dropdown-menu > .head_option > br,

    #chat_head .header_icons_mobile >
    .dropdown:not(#nickowy) .dropdown-menu > .head_option > a > svg,

    #chat_head .header_icons_mobile >
    .dropdown:not(#nickowy) .dropdown-menu > .head_option > a > img,

    #chat_head .header_icons_mobile >
    .dropdown:not(#nickowy) .dropdown-menu > .head_option > a > br {
        display: none !important;
    }

    /* Wszystkie kafelki — jednakowe wyrównanie */
    #chat_head .header_icons_mobile >
    .dropdown:not(#nickowy) .dropdown-menu > .head_option {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;

        height: 50px !important;
        padding: 7px 10px !important;
        gap: 9px !important;

        font-size: 9px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        text-align: left !important;
    }

    /* Kafelki zawierające link: Wsparcie i aplikacja */
    #chat_head .header_icons_mobile >
    .dropdown:not(#nickowy) .dropdown-menu > .head_option > a {
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;

        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 9px !important;

        color: rgba(255, 255, 255, 0.96) !important;
        font-size: 9px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        text-align: left !important;
        text-decoration: none !important;

        box-sizing: border-box !important;
    }

    /* Jednakowy rozmiar i pozycja ikon */
    #chat_head .header_icons_mobile >
    .dropdown:not(#nickowy) .dropdown-menu .rurka-nav-icon {
        position: static !important;
        flex: 0 0 30px !important;

        width: 30px !important;
        height: 30px !important;
        margin: 0 !important;
        padding: 0 !important;

        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        border-radius: 9px !important;
        box-sizing: border-box !important;
    }

    #chat_head .header_icons_mobile >
    .dropdown:not(#nickowy) .dropdown-menu .rurka-nav-icon > i {
        margin: 0 !important;
        padding: 0 !important;

        font-size: 13px !important;
        line-height: 1 !important;
    }

    /* Powiadomienie nie wpływa na pozycję napisu */
    #chat_head .header_icons_mobile >
    .dropdown:not(#nickowy) .dropdown-menu .head_notify {
        position: absolute !important;
        top: 4px !important;
        margin: 0 !important;
    }
}
























/* Rurka.online — nowoczesny pasek pokoi */



#chat_head .pokojescroll {
    width: 100% !important;
    height: 37px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: contain !important;
    scrollbar-width: none !important;
    box-sizing: border-box !important;
}

#chat_head .pokojescroll::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

#chat_head #pokojescrol {
    width: max-content !important;
    min-width: 100% !important;
    height: 37px !important;
    display: flex !important;
    align-items: flex-end !important;
    gap: 5px !important;
    padding: 0 5px !important;
    box-sizing: border-box !important;
}

/* Otwarte pokoje */
#chat_head #pokojescrol > .room_element3 {
    position: relative !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 80px !important;
    height: 33px !important;
    margin: 0 !important;
    padding: 0 13px !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    border-bottom: 0 !important;
    border-radius: 12px 12px 0 0 !important;
    background: linear-gradient(145deg, rgba(117,23,110,.96), rgba(71,10,76,.96)) !important;
    box-shadow: 0 -3px 12px rgba(21,0,25,.16), inset 0 1px 0 rgba(255,255,255,.10) !important;
    color: rgba(255,255,255,.96) !important;
    opacity: .68 !important;
    filter: saturate(.72) brightness(.82) !important;
    transform: translateY(2px) !important;
    transition: opacity .2s ease, filter .2s ease, transform .2s ease, box-shadow .2s ease !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
}

#chat_head #pokojescrol > .room_element3[style*="display: block"] {
    display: flex !important;
}

#chat_head #pokojescrol > .room_element3 > span[id^="hun"] {
    float: none !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    text-shadow: 0 1px 3px rgba(0,0,0,.28) !important;
}

#chat_head #pokojescrol > .room_element3 span[id^="hun"] > i {
    margin: 0 !important;
    color: rgba(255,255,255,.92) !important;
    font-size: 11px !important;
    line-height: 1 !important;
}

/* Aktualnie wybrany pokój — klasę room-active nadaje JavaScript */
#chat_head #pokojescrol > .room_element3.room-active {
    opacity: 1 !important;
    filter: saturate(1.12) brightness(1.12) !important;
    transform: translateY(0) !important;
}

#chat_head #pokojescrol > .room_element3.room-active span[id^="hun"]::after {
    content: "" !important;
    width: 5px !important;
    height: 5px !important;
    margin-left: 2px !important;
    display: inline-block !important;
    flex: 0 0 5px !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(255,255,255,.13), 0 0 9px rgba(255,255,255,.75) !important;
}

/* Przycisk zamykania pokoju */
#chat_head #pokojescrol > .room_element3 > span[id^="clos"] {
    top: -5px !important;
    left: -4px !important;
    width: 17px !important;
    height: 17px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(255,255,255,.20) !important;
    border-radius: 50% !important;
    background: #42103f !important;
    color: #fff !important;
    font-size: 10px !important;
    line-height: 15px !important;
    text-align: center !important;
    box-shadow: 0 3px 8px rgba(0,0,0,.26) !important;
}



#chat_head #pokojescrol > span:last-child:not(.room_element3) > span {
    position: static !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 9px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    color: rgba(255,255,255,.92) !important;
    text-shadow: none !important;
    box-sizing: border-box !important;
}

#chat_head #pokojescrol > span:last-child:not(.room_element3) i {
    flex: 0 0 auto !important;
    margin: 0 !important;
    color: #ffb9eb !important;
    font-size: 13px !important;
}

#chat_head #pokojescrol > span:last-child:not(.room_element3) span > span {
    position: static !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: rgba(255,255,255,.94) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    text-shadow: none !important;
}

#chat_head #pokojescrol > .room_element3:active,
#chat_head #pokojescrol > span:last-child:not(.room_element3):active {
    filter: brightness(1.15) !important;
}

/* Telefon */
@media screen and (max-width: 600px) {
    #chat_head .pokojes {
        height: 41px !important;
        padding-right: 25px !important;
    }

    #chat_head .pokojescroll,
    #chat_head #pokojescrol {
        height: 36px !important;
    }

    #chat_head #pokojescrol {
        gap: 4px !important;
        padding-left: 2px !important;
        padding-right: 20px !important;
        scroll-snap-type: x proximity !important;
    }

    #chat_head #pokojescrol > .room_element3,
    #chat_head #pokojescrol > span:last-child:not(.room_element3) {
        height: 32px !important;
        scroll-snap-align: start !important;
    }

    #chat_head .pokojes::after {
        content: "›" !important;
        position: absolute !important;
        top: 5px !important;
        right: 0 !important;
        z-index: 20 !important;
        width: 29px !important;
        height: 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-left: 1px solid rgba(255,255,255,.08) !important;
        color: #fff !important;
        font-size: 24px !important;
        font-weight: 300 !important;
        line-height: 1 !important;
        pointer-events: none !important;
    }
}


















/* =========================================================
   ETAP 3 — MENU PROFILU
   DESKTOP + MOBILE
   ========================================================= */

/* Główne okno */
#chat_head #main_mob_menu #mobile_main_menu {
    position: absolute !important;
    top: calc(100% + 9px) !important;
    left: 0 !important;
    right: auto !important;

    width: 270px !important;
    height: auto !important;
    max-height: calc(100vh - 125px) !important;

    margin: 0 !important;
    padding: 7px !important;

    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 16px !important;

    background:
        linear-gradient(
            145deg,
            rgba(68, 10, 72, 0.98),
            rgba(42, 6, 48, 0.98)
        ) !important;

    box-shadow:
        0 20px 45px rgba(24, 1, 28, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;

    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;

    scrollbar-width: thin !important;
    scrollbar-color:
        rgba(255, 255, 255, 0.22)
        transparent !important;

    box-sizing: border-box !important;
    z-index: 9999 !important;
}

/* Mała strzałka nad menu */
#chat_head #main_mob_menu #mobile_main_menu::before {
    content: "" !important;

    position: absolute !important;
    top: -6px !important;
    left: 42px !important;

    width: 12px !important;
    height: 12px !important;

    border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.16) !important;

    background: rgba(68, 10, 72, 0.98) !important;
    transform: rotate(45deg) !important;
}

/* Scrollbar */
#chat_head #mobile_main_menu::-webkit-scrollbar {
    width: 5px !important;
}

#chat_head #mobile_main_menu::-webkit-scrollbar-track {
    background: transparent !important;
}

#chat_head #mobile_main_menu::-webkit-scrollbar-thumb {
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.22) !important;
}

/* =========================================================
   WIERSZE MENU
   ========================================================= */

#chat_head #mobile_main_menu > .fmenu_item {
    position: relative !important;

    width: 100% !important;
    min-height: 46px !important;

    margin: 0 0 4px !important;
    padding: 6px 9px !important;

    display: flex !important;
    align-items: center !important;
    table-layout: auto !important;

    border: 1px solid rgba(255, 255, 255, 0.045) !important;
    border-radius: 11px !important;

    background: rgba(255, 255, 255, 0.065) !important;

    color: rgba(255, 255, 255, 0.95) !important;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease !important;

    box-sizing: border-box !important;
}

/* Ostatni element bez dolnego odstępu */
#chat_head #mobile_main_menu > .fmenu_item:last-child {
    margin-bottom: 0 !important;
}

/* Hover na komputerze */
@media screen and (min-width: 601px) {
    #chat_head #mobile_main_menu > .fmenu_item:hover {
        border-color: rgba(255, 145, 221, 0.24) !important;

        background: linear-gradient(
            90deg,
            rgba(220, 61, 183, 0.19),
            rgba(255, 255, 255, 0.09)
        ) !important;

        transform: translateX(2px) !important;
    }
}

/* Dotknięcie */
#chat_head #mobile_main_menu > .fmenu_item:active {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: scale(0.985) !important;
}

/* =========================================================
   IKONY
   ========================================================= */

#chat_head #mobile_main_menu .fmenu_icon {
    position: static !important;
    flex: 0 0 32px !important;

    width: 32px !important;
    height: 32px !important;

    margin: 0 10px 0 0 !important;
    padding: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 10px !important;

    background: linear-gradient(
        145deg,
        rgba(235, 98, 202, 0.30),
        rgba(255, 255, 255, 0.10)
    ) !important;

    color: #fff !important;
    text-align: center !important;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.11) !important;
    box-sizing: border-box !important;
}

/* Naprawa czarnych ikon */
#chat_head #mobile_main_menu .fmenu_icon i,
#chat_head #mobile_main_menu .fmenu_icon .menuo {
    position: static !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #fff !important;
    font-size: 13px !important;
    line-height: 1 !important;

    text-shadow: none !important;
}

/* =========================================================
   NAPISY
   ========================================================= */

#chat_head #mobile_main_menu .fmenu_text {
    position: static !important;
    flex: 1 1 auto !important;

    width: auto !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;

    color: rgba(255, 255, 255, 0.94) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    text-align: left !important;
    text-overflow: initial !important;
    overflow: visible !important;

    box-sizing: border-box !important;
}

/* Status */
#chat_head #mobile_main_menu .fmenu_text > span {
    margin-right: 7px !important;
    vertical-align: middle !important;
}

#chat_head #mobile_main_menu .fmenu_text > img {
    flex: 0 0 15px !important;

    width: 15px !important;
    height: 15px !important;
    margin: 0 4px 0 0 !important;

    display: inline-block !important;
    vertical-align: middle !important;

    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 50% !important;

    box-sizing: border-box !important;
}

/* =========================================================
   PRZEŁĄCZNIKI GIF I SZEPT
   ========================================================= */

#chat_head #mobile_main_menu .toggler-wrapper {
    position: relative !important;

    flex: 0 0 42px !important;
    width: 42px !important;
    height: 23px !important;

    margin: 0 0 0 auto !important;
    padding: 0 !important;

    display: inline-block !important;
}

#chat_head #mobile_main_menu .toggler-wrapper input {
    position: absolute !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    opacity: 0 !important;
    cursor: pointer !important;
}

#chat_head #mobile_main_menu .toggler-slider {
    position: absolute !important;
    inset: 0 !important;

    border: 1px solid rgba(255, 255, 255, 0.13) !important;
    border-radius: 20px !important;

    background: rgba(255, 255, 255, 0.16) !important;

    transition: 0.2s ease !important;
    box-sizing: border-box !important;
}

#chat_head #mobile_main_menu .toggler-knob {
    position: absolute !important;
    top: 3px !important;
    left: 3px !important;

    width: 15px !important;
    height: 15px !important;

    border-radius: 50% !important;
    background: #fff !important;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
    transition: 0.2s ease !important;
}

#chat_head #mobile_main_menu
.toggler-wrapper input:checked + .toggler-slider {
    border-color: rgba(255, 119, 218, 0.45) !important;

    background: linear-gradient(
        90deg,
        #c72aa5,
        #ea5ac8
    ) !important;
}

#chat_head #mobile_main_menu
.toggler-wrapper input:checked +
.toggler-slider .toggler-knob {
    left: 22px !important;
}

/* =========================================================
   ROZMIAR CZCIONKI 50–150%
   ========================================================= */

#chat_head #mobile_main_menu
.fmenu_item:has(input[name="myRadios"]) {
    min-height: 69px !important;
}

#chat_head #mobile_main_menu
.fmenu_item:has(input[name="myRadios"]) .fmenu_text > div {
    width: 100% !important;

    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px 10px !important;

    font-size: 11px !important;
    line-height: 1 !important;
}

#chat_head #mobile_main_menu
input[name="myRadios"] {
    width: 15px !important;
    height: 15px !important;

    margin: 0 4px 0 0 !important;

    vertical-align: middle !important;
    accent-color: #e253c5 !important;
}

/* =========================================================
   WYLOGUJ — LEKKO WYRÓŻNIONE
   ========================================================= */

#chat_head #mobile_main_menu #open_logout {
    margin-top: 7px !important;

    border-color: rgba(255, 132, 168, 0.16) !important;
    background: rgba(197, 37, 93, 0.13) !important;
}

#chat_head #mobile_main_menu #open_logout:hover {
    border-color: rgba(255, 132, 168, 0.28) !important;
    background: rgba(211, 46, 103, 0.22) !important;
}

/* =========================================================
   TELEFON
   ========================================================= */

@media screen and (max-width: 600px) {

    #chat_head #main_mob_menu #mobile_main_menu {
        position: fixed !important;
        top: 94px !important;
        left: 7px !important;
        right: 7px !important;
        bottom: auto !important;

        width: auto !important;
        max-width: none !important;
        max-height: calc(100dvh - 108px) !important;

        padding: 6px !important;

        border-radius: 15px !important;
        transform: none !important;
    }

    /* Na telefonie nie pokazujemy strzałki nad menu */
    #chat_head #main_mob_menu #mobile_main_menu::before {
        display: none !important;
    }

    #chat_head #mobile_main_menu > .fmenu_item {
        min-height: 43px !important;
        padding: 5px 8px !important;
        margin-bottom: 3px !important;
        border-radius: 10px !important;
    }

    #chat_head #mobile_main_menu .fmenu_icon {
        flex-basis: 30px !important;

        width: 30px !important;
        height: 30px !important;
        margin-right: 9px !important;

        border-radius: 9px !important;
    }

    #chat_head #mobile_main_menu .fmenu_text {
        font-size: 11px !important;
    }

    #chat_head #mobile_main_menu 
    .fmenu_item:has(input[name="myRadios"]) {
        min-height: 62px !important;
    }
}



.arrowback {
    z-index: 11;
    position: relative;
    top: 45%;

    width: 30px;
    height: 60px;
    margin-left: 98%;
    padding: 20px 0;

    display: table;
    float: right !important;
    table-layout: fixed;

    border: 1px solid rgba(255, 255, 255, 0.24);
    border-right: 0;
    border-radius: 13px 0 0 13px;

    background: linear-gradient(
        160deg,
        rgba(155, 31, 139, 0.98),
        rgba(72, 8, 77, 0.99)
    );

    color: #fff;
    font-size: 14px;
    text-align: center;

    box-shadow:
        -5px 8px 22px rgba(33, 2, 38, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    cursor: pointer;
    transform: translateY(-44%);

    box-sizing: border-box;
}



.arrow {
    z-index: 11;
    position: fixed;
    top: 44.5%;

    width: 31.5px;
    height: 60px;
    margin-left: -31px;
    padding: 20px 0;

    display: table;
    float: left;
    table-layout: fixed;

    border: 1px solid rgba(255, 255, 255, 0.24);
    border-right: 0;
    border-radius: 13px 0 0 13px;

    background: linear-gradient(
        160deg,
        rgba(155, 31, 139, 0.98),
        rgba(72, 8, 77, 0.99)
    );

    color: #fff;
    font-size: 14px;
    text-align: center;

    box-shadow:
        -5px 8px 22px rgba(33, 2, 38, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    cursor: pointer;
    transform: translateY(69%);

    box-sizing: border-box;
}

.head_notify {
  left: 27px;
  top: 0px;
}
.head_notifyy {
  left: 27px!important;
}

.kontener {
        border-radius: 13px !important;
        border: 1px solid rgba(92, 20, 96, 0.09) !important;

        box-shadow:
        0 3px 12px rgba(55, 11, 59, 0.055),
        inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
}

/* Pasek tematu pokoju */
#topic_log,
.topic_log {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;

    width: fit-content !important;
    max-width: calc(100% - 32px) !important;
    min-height: 42px !important;
    margin: 10px 16px !important;
    padding: 7px 15px 7px 8px !important;

    box-sizing: border-box !important;
    overflow: hidden !important;

    background:
        linear-gradient(
            110deg,
            rgba(109, 0, 96, 0.97),
            rgba(174, 17, 142, 0.94)
        ) !important;

    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 13px !important;

    color: rgba(255, 255, 255, 0.96) !important;
    font-family: "Manrope", Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;

    box-shadow:
        0 6px 18px rgba(79, 0, 72, 0.19),
        inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

/* Delikatny połysk */
#topic_log::after,
.topic_log::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 12% !important;
    width: 48% !important;
    height: 1px !important;

    display: block !important;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.65),
            transparent
        ) !important;

    pointer-events: none !important;
}

/* Napis „Temat:” */
#topic_log b,
#topic_log strong,
.topic_log b,
.topic_log strong {
    flex: 0 0 auto !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    letter-spacing: -0.2px !important;

    text-shadow:
        0 1px 3px rgba(39, 0, 35, 0.25) !important;
}

/* Przycisk zamknięcia */
#topic_log .close_topic,
#topic_log .close,
.topic_log .close_topic,
.topic_log .close {
    position: relative !important;
    flex: 0 0 28px !important;

    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 9px !important;
    background: rgba(48, 0, 47, 0.28) !important;

    color: #ffffff !important;
    font-size: 14px !important;
    line-height: 1 !important;
    cursor: pointer !important;

    box-sizing: border-box !important;

    transition:
        background 0.18s ease,
        transform 0.18s ease !important;
}

#topic_log .close_topic:hover,
#topic_log .close:hover,
.topic_log .close_topic:hover,
.topic_log .close:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    transform: scale(1.06) !important;
}

/* Emoji oraz grafiki w temacie */
#topic_log img,
.topic_log img {
    max-width: 22px !important;
    max-height: 22px !important;
    vertical-align: middle !important;
}

/* Wersja mobilna */
@media screen and (max-width: 600px) {
    #topic_log,
    .topic_log {
        width: calc(100% - 16px) !important;
        max-width: none !important;
        min-height: 38px !important;

        margin: 7px 8px !important;
        padding: 6px 10px 6px 6px !important;
        gap: 7px !important;

        border-radius: 11px !important;

        font-size: 12px !important;
        line-height: 1.3 !important;
    }

    #topic_log .close_topic,
    #topic_log .close,
    .topic_log .close_topic,
    .topic_log .close {
        flex: 0 0 26px !important;

        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        min-height: 26px !important;

        border-radius: 8px !important;
    }

    #topic_log img,
    .topic_log img {
        max-width: 19px !important;
        max-height: 19px !important;
    }
}




/* ==========================================================
   NOWOCZESNY POPUP REGULAMINU RURKA.ONLINE
   ========================================================== */

/* Przyciemnienie i rozmycie strony */
#popup-bg {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(191, 45, 168, 0.18),
            transparent 46%
        ),
        rgba(20, 3, 24, 0.72) !important;

    backdrop-filter: blur(9px) !important;
    -webkit-backdrop-filter: blur(9px) !important;

    z-index: 999 !important;
}

/* Główne okno */
#popup.popup {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;

    transform: translate(-50%, -50%) !important;

    width: min(860px, calc(100% - 40px)) !important;
    height: auto !important;
    max-width: 860px !important;
    max-height: calc(100dvh - 54px) !important;

    margin: 0 !important;
    padding: 28px !important;

    overflow: hidden !important;
    box-sizing: border-box !important;

    background:
        linear-gradient(
            145deg,
            rgba(91, 13, 83, 0.98),
            rgba(53, 7, 58, 0.99)
        ) !important;

    border: 1px solid rgba(255, 255, 255, 0.19) !important;
    border-radius: 24px !important;

    color: rgba(255, 255, 255, 0.91) !important;
    font-family: "Manrope", Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.55 !important;

    box-shadow:
        0 30px 80px rgba(16, 0, 20, 0.48),
        0 8px 25px rgba(55, 0, 52, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;

    z-index: 1000 !important;

    animation: rurkaRulesOpen 0.28s ease-out both !important;
}

/* Dekoracyjny pasek u góry */
#popup.popup::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 10% !important;

    width: 80% !important;
    height: 3px !important;

    background:
        linear-gradient(
            90deg,
            transparent,
            #f562cf,
            #ffffff,
            #f562cf,
            transparent
        ) !important;

    border-radius: 0 0 10px 10px !important;
    box-shadow: 0 0 18px rgba(245, 98, 207, 0.70) !important;

    pointer-events: none !important;
}

/* Nagłówek */
#popup.popup > center:first-child {
    display: block !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    text-align: left !important;
}

#popup.popup h1 {
    position: relative !important;
    margin: 0 !important;
    padding: 0 0 0 48px !important;

    color: #ffffff !important;
    font-size: clamp(21px, 2.3vw, 28px) !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.7px !important;
    text-align: left !important;

    text-shadow: 0 3px 12px rgba(20, 0, 24, 0.30) !important;
}

/* Ikona dokumentu bez zmiany HTML */
#popup.popup h1::before {
    content: "\f15c" !important;
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;

    transform: translateY(-50%) !important;

    width: 36px !important;
    height: 36px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    background:
        linear-gradient(
            145deg,
            rgba(247, 99, 209, 0.55),
            rgba(255, 255, 255, 0.13)
        ) !important;

    border: 1px solid rgba(255, 255, 255, 0.20) !important;
    border-radius: 11px !important;

    color: #ffffff !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-size: 15px !important;
    font-weight: 900 !important;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 5px 15px rgba(25, 0, 29, 0.20) !important;
}

/* Usunięcie zbędnych odstępów z <br> */
#popup.popup > br {
    display: none !important;
}

/* Wprowadzenie do regulaminu */
#popup.popup > p {
    margin: 0 0 16px !important;
    padding: 13px 15px !important;

    background: rgba(255, 255, 255, 0.065) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 14px !important;

    color: rgba(255, 255, 255, 0.84) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;

    box-sizing: border-box !important;
}

/* Data aktualizacji */
#popup.popup > p > a {
    display: inline-flex !important;
    align-items: center !important;

    margin: 0 0 5px !important;
    padding: 4px 9px !important;

    background: rgba(255, 204, 78, 0.12) !important;
    border: 1px solid rgba(255, 215, 96, 0.19) !important;
    border-radius: 20px !important;

    color: #ffd96e !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
}

/* Napis „Zabronione jest” */
#popup.popup > p > span {
    display: inline-block !important;
    margin-top: 7px !important;

    color: #ff92b9 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.45px !important;
}

/* Lista zasad */
#popup.popup #rules-list {
    height: min(35vh, 310px) !important;
    max-height: 310px !important;

    margin: 0 !important;
    padding: 10px 12px 10px 42px !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;

    background: rgba(22, 1, 27, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.11) !important;
    border-radius: 16px !important;

    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;

    box-shadow:
        inset 0 8px 20px rgba(18, 0, 22, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;

    box-sizing: border-box !important;
    scrollbar-width: thin !important;
    scrollbar-color: #d74db6 rgba(255, 255, 255, 0.07) !important;
}

/* Każdy punkt */
#popup.popup #rules-list li {
    margin: 0 !important;
    padding: 7px 8px 7px 4px !important;

    color: rgba(255, 255, 255, 0.86) !important;

    border-bottom: 1px solid rgba(255, 255, 255, 0.055) !important;
}

#popup.popup #rules-list li:last-child {
    border-bottom: 0 !important;
}

/* Kolor numerów */
#popup.popup #rules-list li::marker {
    color: #f06dce !important;
    font-size: 11px !important;
    font-weight: 800 !important;
}

/* Scrollbar Chrome */
#popup.popup #rules-list::-webkit-scrollbar {
    width: 7px !important;
}

#popup.popup #rules-list::-webkit-scrollbar-track {
    margin: 9px 0 !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border-radius: 10px !important;
}

#popup.popup #rules-list::-webkit-scrollbar-thumb {
    background:
        linear-gradient(
            180deg,
            #ed69cc,
            #a9168e
        ) !important;

    border-radius: 10px !important;
}

/* Kontener przycisków */
#popup.popup > center:last-child {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;

    margin: 18px 0 0 !important;
    padding: 0 !important;

    text-align: right !important;
}

/* Wspólny wygląd przycisków */
#popup.popup .btn {
    min-width: 120px !important;
    min-height: 42px !important;

    margin: 0 !important;
    padding: 10px 18px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    box-sizing: border-box !important;

    border-radius: 12px !important;

    font-family: "Manrope", Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;

    cursor: pointer !important;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease !important;
}

/* Akceptuję */
#popup.popup #accept-btn {
    background:
        linear-gradient(
            135deg,
            #f266d0,
            #b51a98
        ) !important;

    border: 1px solid rgba(255, 255, 255, 0.25) !important;

    color: #ffffff !important;

    box-shadow:
        0 7px 18px rgba(189, 25, 158, 0.31),
        inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
}

#popup.popup #accept-btn:not(:disabled):hover {
    transform: translateY(-2px) !important;

    background:
        linear-gradient(
            135deg,
            #ff7cdd,
            #ca25aa
        ) !important;

    box-shadow:
        0 10px 23px rgba(198, 30, 166, 0.40),
        inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

/* Akceptacja wyłączona do przewinięcia regulaminu */
#popup.popup #accept-btn:disabled {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;

    color: rgba(255, 255, 255, 0.36) !important;

    box-shadow: none !important;

    cursor: not-allowed !important;
    opacity: 1 !important;
    filter: none !important;
}

/* Odrzucam */
#popup.popup a {
    text-decoration: none !important;
}

#popup.popup .reject {
    background: rgba(255, 255, 255, 0.055) !important;
    border: 1px solid rgba(255, 255, 255, 0.13) !important;

    color: rgba(255, 255, 255, 0.77) !important;

    box-shadow: none !important;
}

#popup.popup .reject:hover {
    transform: translateY(-2px) !important;

    background: rgba(255, 91, 135, 0.14) !important;
    border-color: rgba(255, 110, 148, 0.28) !important;

    color: #ffb1c7 !important;
}

/* Animacja otwarcia */
@keyframes rurkaRulesOpen {
    from {
        opacity: 0 !important;
        transform: translate(-50%, -47%) scale(0.97) !important;
    }

    to {
        opacity: 1 !important;
        transform: translate(-50%, -50%) scale(1) !important;
    }
}

/* ==========================================================
   TELEFON
   ========================================================== */

@media screen and (max-width: 600px) {

    #popup.popup {
        width: calc(100% - 20px) !important;
        max-width: none !important;
        max-height: calc(100dvh - 20px) !important;

        padding: 18px 14px 14px !important;

        border-radius: 19px !important;

        font-size: 12px !important;
    }

    #popup.popup > center:first-child {
        margin-bottom: 13px !important;
    }

    #popup.popup h1 {
        padding-left: 40px !important;

        font-size: 18px !important;
        line-height: 1.25 !important;
        letter-spacing: -0.4px !important;
    }

    #popup.popup h1::before {
        width: 32px !important;
        height: 32px !important;

        border-radius: 10px !important;

        font-size: 13px !important;
    }

    #popup.popup > p {
        margin-bottom: 12px !important;
        padding: 10px 11px !important;

        border-radius: 12px !important;

        font-size: 11px !important;
        line-height: 1.42 !important;
    }

    #popup.popup #rules-list {
        height: 43vh !important;
        max-height: 43vh !important;

        padding: 7px 8px 7px 31px !important;

        border-radius: 13px !important;

        font-size: 11px !important;
        line-height: 1.4 !important;
    }

    #popup.popup #rules-list li {
        padding: 6px 4px 6px 2px !important;
    }

    #popup.popup > center:last-child {
        gap: 8px !important;
        margin-top: 13px !important;
    }

    #popup.popup .btn {
        flex: 1 1 50% !important;

        min-width: 0 !important;
        min-height: 40px !important;

        padding: 9px 10px !important;

        border-radius: 11px !important;

        font-size: 12px !important;
    }
}



/* ==========================================================
   NOWOCZESNY PRZEŁĄCZNIK JASNY / CIEMNY MOTYW
   ========================================================== */

/* Wyśrodkowanie całego przełącznika */
.nightDay {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;

    width: 100% !important;
    height: auto !important;
    min-height: 48px !important;

    margin: 8px 0 !important;
    padding: 0 12px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    box-sizing: border-box !important;
}

/* Kontener ikon i przełącznika */
.nightDay .fmenu_text {
    position: relative !important;

    width: auto !important;
    height: 42px !important;

    margin: 0 auto !important;
    padding: 5px 7px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.12),
            rgba(255, 255, 255, 0.055)
        ) !important;

    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 15px !important;

    box-shadow:
        0 8px 20px rgba(24, 0, 27, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.13) !important;

    box-sizing: border-box !important;
}

/* Wspólny wygląd ikon */
.nightDay .menuo {
    position: static !important;

    width: 30px !important;
    height: 30px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 10px !important;

    color: rgba(255, 255, 255, 0.76) !important;
    font-size: 14px !important;
    line-height: 1 !important;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease !important;
}

/* Ikona słońca */
.nightDay .fa-sun-o {
    background: rgba(255, 201, 76, 0.13) !important;
    color: #ffd66d !important;
}

/* Ikona księżyca – kasuje margin-left z HTML */
.nightDay .fa-moon-o {
    margin-left: 0 !important;

    background: rgba(174, 151, 255, 0.12) !important;
    color: #d6cbff !important;
}

/* Obudowa przełącznika */
.nightDay .toggler-wrapper {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;

    flex: 0 0 52px !important;

    width: 52px !important;
    height: 28px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: inline-block !important;

    transform: none !important;
    cursor: pointer !important;

    z-index: 1 !important;
}

/* Ukryty checkbox */
.nightDay .toggler-wrapper input {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    margin: 0 !important;
    padding: 0 !important;

    opacity: 0 !important;
    pointer-events: none !important;
}

/* Tło przełącznika */
.nightDay .toggler-slider {
    position: absolute !important;
    inset: 0 !important;

    width: 52px !important;
    height: 28px !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;
    box-sizing: border-box !important;

    background:
        linear-gradient(
            135deg,
            #d94fc0,
            #a31a91
        ) !important;

    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    border-radius: 50px !important;

    box-shadow:
        inset 0 2px 5px rgba(57, 0, 51, 0.23),
        0 4px 12px rgba(84, 0, 75, 0.21) !important;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease !important;
}

/* Ruchoma kulka */
.nightDay .toggler-knob {
    position: absolute !important;
    top: 3px !important;
    left: 3px !important;

    width: 20px !important;
    height: 20px !important;

    margin: 0 !important;
    padding: 0 !important;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f3e9f5
        ) !important;

    border: 1px solid rgba(255, 255, 255, 0.85) !important;
    border-radius: 50% !important;

    box-shadow:
        0 3px 8px rgba(44, 0, 42, 0.35),
        inset 0 1px 1px rgba(255, 255, 255, 0.95) !important;

    transform: translateX(0) !important;

    transition:
        transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.25s ease !important;
}

/* Stan ciemnego motywu */
.nightDay .toggler-wrapper input:checked + .toggler-slider {
    background:
        linear-gradient(
            135deg,
            #5f477d,
            #2e1a46
        ) !important;

    border-color: rgba(205, 188, 255, 0.30) !important;

    box-shadow:
        inset 0 2px 6px rgba(12, 2, 23, 0.38),
        0 4px 14px rgba(20, 4, 35, 0.28) !important;
}

/* Przesunięcie kulki na prawą stronę */
.nightDay .toggler-wrapper input:checked
+ .toggler-slider .toggler-knob {
    transform: translateX(24px) !important;

    background:
        linear-gradient(
            145deg,
            #f7f3ff,
            #d9ccf4
        ) !important;
}

/* Delikatna reakcja na najechanie */
.nightDay .toggler-wrapper:hover .toggler-slider {
    border-color: rgba(255, 255, 255, 0.38) !important;

    box-shadow:
        inset 0 2px 5px rgba(57, 0, 51, 0.20),
        0 6px 16px rgba(84, 0, 75, 0.30) !important;
}

/* Kliknięcie */
.nightDay .toggler-wrapper:active .toggler-knob {
    width: 23px !important;
}

/* Widoczny fokus klawiatury */
.nightDay .toggler-wrapper input:focus-visible
+ .toggler-slider {
    outline: 2px solid rgba(255, 135, 224, 0.85) !important;
    outline-offset: 3px !important;
}

/* Telefon */
@media screen and (max-width: 600px) {

    .nightDay {
        min-height: 44px !important;
        margin: 6px 0 !important;
        padding: 0 8px !important;
    }

    .nightDay .fmenu_text {
        height: 40px !important;
        padding: 5px 6px !important;
        gap: 7px !important;

        border-radius: 14px !important;
    }

    .nightDay .menuo {
        width: 28px !important;
        height: 28px !important;

        border-radius: 9px !important;

        font-size: 13px !important;
    }

    .nightDay .toggler-wrapper,
    .nightDay .toggler-slider {
        width: 48px !important;
    }

    .nightDay .toggler-wrapper {
        flex-basis: 48px !important;
    }

    .nightDay .toggler-wrapper input:checked
    + .toggler-slider .toggler-knob {
        transform: translateX(20px) !important;
    }
}

/* Poprawka położenia przełącznika */
body .nightDay {
    position: relative !important;
    top: 5px !important;
    bottom: auto !important;
    left: 0 !important;

    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;

    margin: 0 !important;
    padding: 0 12px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: visible !important;
    transform: none !important;
    box-sizing: border-box !important;
}

body .nightDay .fmenu_text {
    position: relative !important;
    top: 0 !important;
    left: auto !important;

    width: auto !important;
    height: 38px !important;

    margin: 0 auto !important;
    padding: 4px 7px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    box-sizing: border-box !important;
}

/* Telefon */
@media screen and (max-width: 600px) {

    body .nightDay {
        top: 0 !important;

        height: 38px !important;
        min-height: 38px !important;

        margin: 0 !important;
        padding: 0 8px !important;
    }

    body .nightDay .fmenu_text {
        height: 36px !important;
        margin: 0 auto !important;
        padding: 3px 6px !important;
    }
}


.username {
    letter-spacing: -0.2px !important;
}

.chat_message {
    letter-spacing: -0.1px !important;
}











#container_show_chat,
#chat_right,
#chat_right_content,
#wrap_right_data,
#show_chat {

    background-image:
        /* Drobne punkty */
        radial-gradient(
            circle,
            rgba(109, 0, 96, 0.075) 1px,
            transparent 1.4px
        ),

        /* Delikatne ukośne linie */
        repeating-linear-gradient(
            135deg,
            transparent 0,
            transparent 38px,
            rgba(109, 0, 96, 0.022) 39px,
            rgba(109, 0, 96, 0.022) 40px
        ),

        /* Fioletowa poświata u góry */
        radial-gradient(
            circle at 10% 12%,
            rgba(210, 96, 194, 0.12) 0,
            rgba(210, 96, 194, 0) 27%
        ),

        /* Poświata po prawej */
        radial-gradient(
            circle at 92% 32%,
            rgba(109, 0, 96, 0.09) 0,
            rgba(109, 0, 96, 0) 25%
        ),

        /* Poświata na dole */
        radial-gradient(
            circle at 45% 100%,
            rgba(230, 158, 220, 0.11) 0,
            rgba(230, 158, 220, 0) 30%
        ),

        /* Główne jasne tło */
        linear-gradient(
            145deg,
            #ffffff 0%,
            #fcf8fd 48%,
            #f5eaf7 100%
        ) ;

    background-size:
        24px 24px,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100% !important;

    background-position:
        0 0,
        center,
ancée        center,
        center,
        center,
        center !important;

    background-repeat:
        repeat,
        repeat,
        no-repeat,
        no-repeat,
        no-repeat,
        no-repeat !important;

    background-attachment: local !important;
}






@media screen and (min-width: 769px) {
       .lista_logs {
        zoom: 0.95 !important;
    }
    
    .header_icons {
	right: -30px;
}


#main_logo {
	margin-left: -30px;
}


.online {
	right: -10px;
}
    
    #global_chat, .pokojes, .chat_head {
        position: relative !important;
        left: auto !important;
        right: auto !important;

        width: 95% !important;
        max-width: none !important;

        margin-left: auto !important;
        margin-right: auto !important;

        box-sizing: border-box !important;
    }
}

.cavatar {
	height: 35px;
	width: 35px;
	}

.chat_avatar {
	width: 35px;
	height: 35px;
	}



.lista_logs:nth-child(even) {
	background-color: #91289900;
	}

.lista_logs {
	height: 50px!important;
	border: 1px solid #9c27b029;
	}




/* ==========================================================
   NOWOCZESNY, KOMPAKTOWY WYBÓR JĘZYKA
   ========================================================== */

#google_translate_element {
    position: relative !important;

    width: fit-content !important;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: inline-flex !important;
    align-items: center !important;

    line-height: 1 !important;
    box-sizing: border-box !important;

    overflow: visible !important;
}

/* Główny przycisk */
#google_translate_element .goog-te-gadget-simple {
    top: -6px;
    position: relative !important;
    width: auto !important;
    /* height: 22px !important; */
    min-height: 2px !important;
    max-height: 18px !important;
    margin: 0 !important;
    padding: 0 9px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.17),
            rgba(255, 255, 255, 0.075)
        ) !important;
    border: 1px solid rgba(255, 255, 255, 0.30) !important;
    border-radius: 20px !important;
    color: rgba(255, 255, 255, 0.94) !important;
    box-shadow:
        0 4px 12px rgba(35, 0, 40, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    line-height: 20px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    cursor: pointer !important;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease !important;
}















/* ==========================================================
   NOWOCZESNE POLE WIADOMOŚCI
   Bez zmiany wysokości całej sekcji
   ========================================================== */

/* Górny pasek dodatków */
#main_input_extra {
    box-sizing: border-box !important;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.98),
            rgba(249, 240, 250, 0.97)
        ) !important;
    border: 1px solid rgba(109, 0, 96, 0.14);
    border-bottom: 0 !important;
    border-radius: 16px 16px 0 0 !important;
    box-shadow:
        0 -5px 20px rgba(74, 7, 70, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
    overflow: hidden !important;
}

/* Ikony dodatków */
#main_input_extra .sub_options {
    width: 29px !important;
    height: 29px !important;

    margin: 2px !important;
    padding: 6px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    float: left !important;

    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 9px !important;

    filter: none !important;

    box-sizing: border-box !important;
    cursor: pointer !important;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease !important;
}

#main_input_extra .sub_options:hover {
    padding: 6px !important;

    background:
        linear-gradient(
            145deg,
            rgba(177, 25, 151, 0.12),
            rgba(109, 0, 96, 0.06)
        ) !important;

    border-color: rgba(109, 0, 96, 0.12) !important;

    transform: translateY(-1px) !important;
}

/* Obrazki ikon */
#main_input_extra .sub_options img {
    width: 17px !important;
    height: 17px !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: contain !important;

filter: invert(20%) sepia(90%) saturate(600%) hue-rotate(290deg) brightness(50%);

    opacity: 0.88 !important;
}

/* Dolny kontener pola */
#container_input {
    box-sizing: border-box !important;

    padding: 4px 6px !important;

    background:
        linear-gradient(
            180deg,
            rgba(252, 247, 253, 0.98),
            rgba(255, 255, 255, 0.99)
        ) !important;

    border: 1px solid rgba(109, 0, 96, 0.16) !important;
    border-top-color: rgba(109, 0, 96, 0.08) !important;
    border-radius: 0 0 16px 16px !important;

    box-shadow:
        0 8px 24px rgba(68, 5, 67, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

/* Formularz – zachowujemy aktualną wysokość */
#main_input {
    width: 100% !important;
    height: 38px !important;

    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;

    box-sizing: border-box !important;
}

/* Układ elementów */
#main_input .input_table {
    width: 100% !important;
    height: 38px !important;

    display: table !important;
    table-layout: fixed !important;

    overflow: visible !important;

    box-sizing: border-box !important;
}

/* Kontener pola tekstowego */
#main_input_box {
    height: 38px !important;

    padding: 0 5px 0 0 !important;

    vertical-align: middle !important;

    box-sizing: border-box !important;
}

/* Pole wpisywania */
#content {
    width: 100% !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 15px !important;
    float: none !important;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(109, 0, 96, 0.20) !important;
    border-radius: 13px !important;
    outline: none !important;
    color: #32102f !important;
    font-family: "Manrope", Arial, sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    line-height: 36px !important;
    letter-spacing: -0.1px !important;
    box-shadow:
        inset 0 2px 5px rgba(65, 5, 61, 0.035),
        0 2px 8px rgba(65, 5, 61, 0.035) !important;
    box-sizing: border-box !important;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease !important;
}

#content::placeholder {
    color: rgba(73, 43, 70, 0.52) !important;

    font-family: "Manrope", Arial, sans-serif !important;
    font-weight: 500 !important;

    opacity: 1 !important;
}

#content:focus {
    background: #ffffff !important;
    border-color: rgba(177, 25, 151, 0.52) !important;

    box-shadow:
        0 0 0 3px rgba(177, 25, 151, 0.09),
        inset 0 1px 3px rgba(65, 5, 61, 0.025) !important;
}

/* Kontener przycisku wysyłania */
#inputt_right {
    width: 59px !important;
    height: 38px !important;

    padding: 0 !important;

    vertical-align: middle !important;

    box-sizing: border-box !important;
}

/* Przycisk wysyłania */
#submit_button {
    width: 59px !important;
    height: 36px !important;

    margin: 0 !important;
    padding: 0 !important;

    float: none !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    background:
        linear-gradient(
            135deg,
            #a91791,
            #700066
        ) !important;

    border: 1px solid rgba(255, 255, 255, 0.19) !important;
    border-radius: 13px !important;

    color: #ffffff !important;
    font-size: 14px !important;

    box-shadow:
        0 5px 14px rgba(109, 0, 96, 0.23),
        inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;

    box-sizing: border-box !important;
    cursor: pointer !important;

    transition:
        transform 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease !important;
}

#submit_button:hover {
    background:
        linear-gradient(
            135deg,
            #c424a8,
            #850077
        ) !important;

    transform: translateY(-1px) !important;

    box-shadow:
        0 7px 17px rgba(109, 0, 96, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

#submit_button:active {
    transform: translateY(0) scale(0.97) !important;
}

/* Ikona samolotu */
#submit_button i {
    margin: 0 !important;
    padding: 0 !important;

    color: #ffffff !important;
    font-size: 14px !important;
    line-height: 1 !important;

    transform: translateX(-1px) rotate(-5deg) !important;
}

/* Przycisk rozwijania dodatkowych funkcji */
#ok_sub_item {
    width: 38px !important;
    height: 38px !important;

    padding: 5px !important;

    box-sizing: border-box !important;
}

#ok_sub_item img {
    width: 20px !important;
    height: 20px !important;
}

/* Telefon */
@media screen and (max-width: 600px) {

    #container_input {
        padding: 4px !important;

        border-radius: 0 !important;
    }

    #main_input,
    #main_input .input_table,
    #main_input_box,
    #inputt_right {
        height: 38px !important;
    }

    #content {
        height: 36px !important;
        padding: 0 12px !important;

        border-radius: 12px !important;

        font-size: 13px !important;
        line-height: 36px !important;
    }

    #inputt_right {
        width: 49px !important;
    }

    #submit_button {
        width: 49px !important;
        height: 36px !important;

        border-radius: 12px !important;
    }
}




/* ==========================================================
   NOWOCZESNE POLE WIADOMOŚCI PRYWATNEJ
   ========================================================== */

/* Górny pasek dodatków */
#priv_input_extra {
    box-sizing: border-box !important;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.98),
            rgba(249, 240, 250, 0.97)
        ) !important;

    border: 1px solid rgba(109, 0, 96, 0.14) !important;
    border-bottom: 0 !important;
    border-radius: 16px 16px 0 0 !important;

    box-shadow:
        0 -5px 20px rgba(74, 7, 70, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;

    overflow: hidden !important;
}

/* Ikony funkcji prywatnych */
#priv_input_extra .psub_options {
    position: relative !important;

    width: 29px !important;
    height: 29px !important;

    margin: 2px !important;
    padding: 6px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    float: left !important;

    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 9px !important;

    box-sizing: border-box !important;

    cursor: pointer !important;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease !important;
}

#priv_input_extra .psub_options:hover {
    padding: 6px !important;

    background:
        linear-gradient(
            145deg,
            rgba(177, 25, 151, 0.12),
            rgba(109, 0, 96, 0.06)
        ) !important;

    border-color: rgba(109, 0, 96, 0.12) !important;

    transform: translateY(-1px) !important;
}

/* Grafiki ikon */
#priv_input_extra .psub_options img {
    width: 17px !important;
    height: 17px !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: contain !important;

    filter:
        invert(18%)
        sepia(68%)
        saturate(2664%)
        hue-rotate(291deg)
        brightness(76%) !important;

    opacity: 0.88 !important;
}

/* Dolna część edytora */
#private_input {
    z-index: 100;
    box-sizing: border-box !important;

    padding: 4px 6px !important;

    background:
        linear-gradient(
            180deg,
            rgba(252, 247, 253, 0.98),
            rgba(255, 255, 255, 0.99)
        ) !important;

    border-top-color: rgba(109, 0, 96, 0.08) !important;
    border-radius: 0 0 16px 16px !important;

    box-shadow:
        0 8px 24px rgba(68, 5, 67, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

/* Formularz wiadomości prywatnej */
#message_form {
    width: 100% !important;
    height: 38px !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;

    box-sizing: border-box !important;
}

/* Układ formularza */
#message_form .input_table {
    width: 100% !important;
    height: 38px !important;

    display: table !important;
    table-layout: fixed !important;

    overflow: visible !important;

    box-sizing: border-box !important;
}

/* Kontener pola tekstowego */
#private_input_box {
    height: 38px !important;

    padding: 0 5px 0 0 !important;

    vertical-align: middle !important;

    box-sizing: border-box !important;
}

/* Pole wpisywania */
#message_content {
    width: 100% !important;
    height: 36px !important;

    margin: 0 !important;
    padding: 0 15px !important;

    float: none !important;

    background: rgba(255, 255, 255, 0.92) !important;

    border: 1px solid rgba(109, 0, 96, 0.20) !important;
    border-radius: 13px !important;
    outline: none !important;

    color: #32102f !important;

    font-family: "Manrope", Arial, sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    line-height: 36px !important;
    letter-spacing: -0.1px !important;

    box-shadow:
        inset 0 2px 5px rgba(65, 5, 61, 0.035),
        0 2px 8px rgba(65, 5, 61, 0.035) !important;

    box-sizing: border-box !important;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease !important;
}

#message_content::placeholder {
    color: rgba(73, 43, 70, 0.52) !important;

    font-family: "Manrope", Arial, sans-serif !important;
    font-weight: 500 !important;

    opacity: 1 !important;
}

#message_content:focus {
    background: #ffffff !important;
    border-color: rgba(177, 25, 151, 0.52) !important;

    box-shadow:
        0 0 0 3px rgba(177, 25, 151, 0.09),
        inset 0 1px 3px rgba(65, 5, 61, 0.025) !important;
}

/* Kontener przycisku wysyłania */
#message_send {
    width: 59px !important;
    height: 38px !important;

    margin: 0 !important;
    padding: 0 !important;

    vertical-align: middle !important;

    box-sizing: border-box !important;
}

/* Przycisk wysłania wiadomości prywatnej */
#private_send {
    width: 59px !important;
    height: 36px !important;

    margin: 0 !important;
    padding: 0 !important;

    float: none !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    background:
        linear-gradient(
            135deg,
            #a91791,
            #700066
        ) !important;

    border: 1px solid rgba(255, 255, 255, 0.19) !important;
    border-radius: 13px !important;

    color: #ffffff !important;
    font-size: 14px !important;

    box-shadow:
        0 5px 14px rgba(109, 0, 96, 0.23),
        inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;

    box-sizing: border-box !important;

    cursor: pointer !important;

    transition:
        transform 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease !important;
}

#private_send:hover {
    background:
        linear-gradient(
            135deg,
            #c424a8,
            #850077
        ) !important;

    transform: translateY(-1px) !important;

    box-shadow:
        0 7px 17px rgba(109, 0, 96, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

#private_send:active {
    transform: translateY(0) scale(0.97) !important;
}

/* Ikona samolotu */
#private_send i {
    margin: 0 !important;
    padding: 0 !important;

    color: #ffffff !important;

    font-size: 14px !important;
    line-height: 1 !important;

    transform: translateX(-1px) rotate(-5deg) !important;
}

/* Przycisk rozwijania dodatkowych opcji */
#ok_priv_item {
    width: 38px !important;
    height: 38px !important;

    margin: 0 !important;
    padding: 5px !important;

    box-sizing: border-box !important;
}

#ok_priv_item img {
    width: 20px !important;
    height: 20px !important;
}

/* Telefon */
@media screen and (max-width: 600px) {

    #private_input {
        padding: 4px !important;

        border-radius: 0 0 14px 14px !important;
    }

    #message_form,
    #message_form .input_table,
    #private_input_box,
    #message_send {
        height: 38px !important;
    }

    #message_content {
        height: 36px !important;
        padding: 0 12px !important;

        border-radius: 12px !important;

        font-size: 13px !important;
        line-height: 36px !important;
    }

    #message_send {
        width: 49px !important;
    }

    #private_send {
        width: 49px !important;
        height: 36px !important;

        border-radius: 12px !important;
    }
}



/* ==========================================================
   POPRAWNY, SKALOWALNY UKŁAD DOLNEJ CZĘŚCI PRIV
   ========================================================== */

@media screen and (min-width: 769px) {

    /* Okno priv jest kontenerem dla elementów */
    #private_box {
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* Nagłówek zawsze na górze */
    #private_box #private_top {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        left: 0 !important;

        width: 100% !important;
        height: 50px !important;
        min-height: 50px !important;

        margin: 0 !important;

        box-sizing: border-box !important;
        z-index: 5 !important;
    }

    /*
     * Wspólny kontener:
     * - historia wiadomości
     * - pasek ikon
     */
    #private_box #private_wrap_content {
        position: absolute !important;
        top: 50px !important;
        right: 0 !important;
        bottom: 46px !important;
        left: 0 !important;

        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding: 0 !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;

        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* Historia skaluje się razem z oknem */
    #private_box #private_content,
    #private_box #private_content.private_contentf {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        flex: 1 1 auto !important;

        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        margin: 0 !important;
        padding: 8px 10px !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;

        box-sizing: border-box !important;
    }

    /* Pasek ikon zawsze nad polem wiadomości */
    #private_box #priv_input_extra {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        flex: 0 0 35px !important;
        width: 100% !important;
        height: 35px !important;
        min-height: 35px !important;
        max-height: 35px !important;
        margin: 0 !important;
        padding: 2px 6px !important;
        display: flex !important;
        align-items: center !important;
        background: linear-gradient(
                180deg,
                rgba(255, 255, 255, 0.98),
                rgba(249, 240, 250, 0.98)
            );
        border: 1px solid rgba(109, 0, 96, 0.14);
        border-bottom: 0 !important;
        border-radius: 14px 14px 0 0 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        z-index: 9 !important;
    }

    /* Ikony nie rozciągają paska */
    #private_box #priv_input_extra .psub_options {
        position: relative !important;

        flex: 0 0 29px !important;

        width: 29px !important;
        height: 29px !important;

        margin: 0 2px !important;
        padding: 6px !important;

        box-sizing: border-box !important;
    }

    #private_box #priv_input_extra .psub_options img {
        width: 17px !important;
        height: 17px !important;

        margin: 0 !important;
        padding: 0 !important;

        object-fit: contain !important;
    }

    /* Pole wiadomości przypięte bezpośrednio pod paskiem ikon */
    #private_box #private_input {
        position: absolute !important;
        top: auto !important;
        right: 0 !important;
        bottom: 6px !important;
        left: 0 !important;
        width: 100% !important;
        height: 46px !important;
        min-height: 46px !important;
        max-height: 46px !important;
        margin: 0 !important;
        padding: 4px 6px !important;
        background: linear-gradient(
                180deg,
                rgba(250, 244, 251, 0.99),
                rgba(255, 255, 255, 1)
            );
        border-top: 1px solid rgba(109, 0, 96, 0.10) !important;
        border-radius: 0 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        z-index: 8 !important;
    }

    #private_box #message_form,
    #private_box #message_form .input_table {
        width: 100% !important;
        height: 38px !important;

        margin: 0 !important;
        padding: 0 !important;

        box-sizing: border-box !important;
    }

    #private_box #private_input_box {
        width: auto !important;
        height: 38px !important;

        padding: 0 5px 0 0 !important;

        box-sizing: border-box !important;
    }

    #private_box #message_content {
        width: 100% !important;
        height: 36px !important;

        margin: 0 !important;
        padding: 0 13px !important;

        box-sizing: border-box !important;
    }

    #private_box #message_send {
        width: 54px !important;
        min-width: 54px !important;
        max-width: 54px !important;
        height: 38px !important;

        margin: 0 !important;
        padding: 0 !important;

        box-sizing: border-box !important;
    }

    #private_box #private_send {
        width: 54px !important;
        height: 36px !important;

        margin: 0 !important;
        padding: 0 !important;

        box-sizing: border-box !important;
    }
}




#private_content.private_contentf {
    height: 95% !important;
}

#private_box {bottom: 50px;}


.top_background, .background_header, .panel_top, .emo_head, .modal_top {
            background: linear-gradient(
            135deg,
            #a91791,
            #700066
        );
            color:#fff;
            }
            
            
 @media screen and (min-width: 769px) {
	@supports (-moz-appearance: none) {
		.okladka-wrapper {
		    height: 108px !important;
			max-width: 187px;
			}
		}
		}
		
		@media screen and (max-width: 768px) {
			@supports (-moz-appearance: none) {
				.okladka-wrapper {
				    height: 108px !important;
					max-width: 176px;
					}
				}
				}           



.vippluss {
    /* position: relative !important; */
    overflow: hidden !important;
    background: #fff8ee!important;
}



.vippluss {
    overflow: visible !important;
}


.vippluss .chat_avatar {
    position: relative !important;
    overflow: visible !important;
    z-index: 2 !important;
}

.vippluss .chat_avatar::after {
    content: "👑" !important;

    position: absolute !important;
    top: -9px !important;
    right: -7px !important;

    display: block !important;
    font-size: 17px !important;
    line-height: 1 !important;

    transform: rotate(24deg) !important;
    transform-origin: center bottom !important;

        filter:
        drop-shadow(0 1px 1px rgba(70, 38, 0, 0.55))
        saturate(1.15) !important;

    pointer-events: none !important;
    z-index: 10 !important;
}

.chat_avatar::before {
    content: "\f142" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-style: normal !important;
    font-weight: 900 !important;
    position: absolute !important;
    right: -12px !important;
    bottom: 9px !important;
    width: 17px !important;
    height: 17px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    color: rgba(109, 0, 96, 0.48) !important;
    font-size: 12px !important;
    line-height: 1 !important;
    pointer-events: none !important;
    z-index: 12 !important;
}






.user_item_data img[id^="status"] {
    width: 15px !important;
    height: 15px !important;
    max-width: none !important;
    border-radius: 0 !important;
    object-fit: contain !important;
    margin-left: -3px;

    filter:
        drop-shadow(0 0 1px #ffffff)
        drop-shadow(0 1px 1px rgba(57, 8, 61, 0.30))
        saturate(1.15) !important;
}

/* Status przy awatarze w nagłówku */
img[id^="statusg"] {
    width: 16px !important;
    height: 16px !important;
    max-width: none !important;
    border-radius: 0 !important;
    object-fit: contain !important;

    filter:
        drop-shadow(0 0 1px #ffffff)
        drop-shadow(0 1px 1px rgba(57, 8, 61, 0.35))
        saturate(1.15) !important;
}

/* Trzy statusy widoczne w menu profilu */
.fmenu_item[onclick*="openStatusList"] .fmenu_text {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.fmenu_item[onclick*="openStatusList"] .fmenu_text span {
    margin-right: 3px !important;
}

.fmenu_item[onclick*="openStatusList"] .fmenu_text img {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    object-fit: contain !important;

    filter:
        drop-shadow(0 0 1px rgba(255, 255, 255, 0.9))
        drop-shadow(0 1px 1px rgba(57, 8, 61, 0.25)) !important;
}

/* Statusy w oknie wyboru */
#small_modal .status_option .icon_status {
    width: 20px !important;
    height: 20px !important;
    max-width: none !important;
    border-radius: 0 !important;
    object-fit: contain !important;

    filter:
        drop-shadow(0 0 1px #ffffff)
        drop-shadow(0 1px 1px rgba(57, 8, 61, 0.25))
        saturate(1.15) !important;
}






/* RURKA.ONLINE â MODAL PROFILU V2
   Bez :has(), zgodny z obecnÄ strukturÄ czatu. */

#large_modal {
    background: rgba(20, 3, 24, .68) !important;
    backdrop-filter: blur(7px) !important;
    -webkit-backdrop-filter: blur(7px) !important;
}

#large_modal_in {
    width: min(580px, calc(100vw - 32px)) !important;
    max-width: 580px;
    max-height: calc(100dvh - 32px) !important;
    overflow: hidden auto !important;
    background: #fff !important;
    border: 1px solid rgba(132, 25, 119, .18) !important;
    border-radius: 22px !important;
    box-shadow: 0 24px 70px rgba(31, 5, 36, .32),
                0 5px 18px rgba(109, 0, 96, .14) !important;
}

#large_modal_content {
    overflow: hidden !important;
    background: linear-gradient(180deg, #fff 0%, #fdf9fd 100%) !important;
    border-radius: 21px !important;
}



#my_profile_top::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    opacity: .38 !important;
    pointer-events: none !important;
    background-image: radial-gradient(circle, rgba(255,255,255,.24) 1px, transparent 1.5px) !important;
    background-size: 22px 22px !important;
}

#my_profile_top .profile_top {
    position: relative !important;
    z-index: 2 !important;
    padding-top: 24px !important;
}

#my_profile_top .btable_auto {
    display: flex !important;
    align-items: center !important;
}

#my_profile_top .profile_avatar {
    position: relative !important;
    width: 112px !important;
    height: 112px !important;
    min-width: 112px !important;
    margin-right: 18px !important;
}

#my_profile_top .avatar_spin {
    width: 112px !important;
    height: 112px !important;
    padding: 4px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    background: #fff !important;
    border: 1px solid rgba(255,255,255,.85) !important;
    border-radius: 50% !important;
    box-shadow: 0 12px 28px rgba(45,0,39,.28),
                0 0 0 4px rgba(255,255,255,.14) !important;
}

#my_profile_top .avatar_profile {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}


#my_profile_top .pdetails {
    padding: 0 !important;
}

#my_profile_top .pro_name {
    color: #fff !important;
    font-size: 27px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    letter-spacing: -.35px !important;
    text-shadow: 0 2px 10px rgba(42,0,37,.28) !important;
}

#my_profile_top .pdetails_text:not(.pro_name),
#my_profile_top .profile_rank,
#my_profile_top .pro_rank {
    color: rgba(255,255,255,.92) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

#my_profile_top .cancel_modal {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 5 !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-size: 18px !important;
    background: rgba(42,0,38,.25) !important;
    border: 1px solid rgba(255,255,255,.20) !important;
    border-radius: 50% !important;
    transition: .18s ease !important;
}

#my_profile_top .cancel_modal:hover {
    background: rgba(42,0,38,.44) !important;
    transform: scale(1.06) rotate(7deg) !important;
}

#large_modal_content > .modal_menu {
    padding: 10px 14px !important;
    background: #faf6fa !important;
    border-bottom: 1px solid rgba(109,0,96,.08) !important;
}

#large_modal_content > .modal_menu ul {
    display: flex !important;
    gap: 5px !important;
    margin: 0 !important;
    padding: 4px !important;
    list-style: none !important;
    background: #eee7ef !important;
    border-radius: 13px !important;
}

#large_modal_content > .modal_menu ul > .modal_menu_item {
    float: none !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 10px 12px !important;
    box-sizing: border-box !important;
    color: #6f6670 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 10px !important;
}

#large_modal_content > .modal_menu ul > .modal_menu_item.modal_selected {
    color: #fff !important;
    background: linear-gradient(135deg, #6d0060, #a3158f) !important;
    box-shadow: 0 5px 13px rgba(109,0,96,.22) !important;
}

#large_modal_content .modal_zone {
    padding: 22px 26px 27px !important;
    background: transparent !important;
}

#large_modal_content .listing_half_element {
    min-height: 50px !important;
    margin: 5px !important;
    padding: 14px 15px !important;
    box-sizing: border-box !important;
    color: #50304d !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    background: #fff !important;
    border: 1px solid rgba(109,0,96,.10) !important;
    border-radius: 13px !important;
    box-shadow: 0 5px 17px rgba(73,10,67,.07) !important;
    transition: .18s ease !important;
}

#large_modal_content .listing_half_element:hover {
    color: #6d0060 !important;
    border-color: rgba(145,20,128,.27) !important;
    box-shadow: 0 9px 21px rgba(73,10,67,.11) !important;
    transform: translateY(-2px) !important;
}

#large_modal_content .listing_icon {
    width: 34px !important;
    height: 34px !important;
    margin: -7px 10px -7px -7px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #8f107d !important;
    background: #f6e9f4 !important;
    border-radius: 10px !important;
}

#large_modal_content .profile_info_box {
    margin: 14px !important;
    padding: 13px 16px !important;
    color: #724267 !important;
    line-height: 1.45 !important;
    background: #fbf2fa !important;
    border: 1px solid rgba(160,28,139,.13) !important;
    border-radius: 13px !important;
}

@media (max-width: 600px) {
    #large_modal_in {
        width: calc(100vw - 18px) !important;
        max-height: calc(100dvh - 18px) !important;
        border-radius: 18px !important;
    }

    #my_profile_top.modal_wrap_top,
    #my_profile_top.profile_background,
    #my_profile_top {
        min-height: 150px !important;
        padding: 20px 18px 18px !important;
    }

    #my_profile_top .profile_avatar,
    #my_profile_top .avatar_spin {
        width: 88px !important;
        height: 88px !important;
        min-width: 88px !important;
    }

    #my_profile_top .profile_avatar {
        margin-right: 14px !important;
    }

    #my_profile_top .profile_tinfo {
        min-height: 88px !important;
    }

    #my_profile_top .pro_name {
        font-size: 22px !important;
    }

    #large_modal_content > .modal_menu {
        padding: 8px !important;
        overflow-x: auto !important;
    }

    #large_modal_content > .modal_menu ul {
        min-width: max-content !important;
    }

    #large_modal_content > .modal_menu ul > .modal_menu_item {
        flex: 0 0 auto !important;
        min-width: 94px !important;
        padding: 9px 12px !important;
        font-size: 13px !important;
    }

    #large_modal_content .modal_zone {
        padding: 15px 12px 18px !important;
    }

    #large_modal_content .listing_half_element {
        width: calc(100% - 10px) !important;
        float: none !important;
    }
}










body #log_menu {
    width: 245px !important;
    height: fit-content !important;
    min-height: 0 !important;
    max-height: none !important;

    padding: 7px !important;
    box-sizing: border-box !important;

    background:
        radial-gradient(
            circle at 90% 5%,
            rgba(231, 85, 208, 0.28),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #751168 0%,
            #590650 55%,
            #3e073c 100%
        ) !important;

    border: 1px solid rgba(255, 177, 241, 0.30) !important;
    border-radius: 14px !important;

    box-shadow:
        0 15px 35px rgba(39, 0, 36, 0.32),
        0 4px 10px rgba(39, 0, 36, 0.20) !important;

    overflow: hidden !important;
}

body #logmenu {
    width: 100% !important;
    height: fit-content !important;
    min-height: 0 !important;
    max-height: none !important;

    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;

    position: relative !important;
    background: transparent !important;
}

body #logmenu .log_menu_item {
    width: 100% !important;
    min-height: 54px !important;
    height: auto !important;

    margin: 0 !important;
    padding: 7px 9px !important;
    box-sizing: border-box !important;

    display: flex !important;
    align-items: center !important;
    gap: 10px !important;

    color: #ffffff !important;
    text-align: left !important;
    white-space: normal !important;

    background: rgba(255, 255, 255, 0.075) !important;
    border: 1px solid rgba(255, 255, 255, 0.075) !important;
    border-radius: 10px !important;

    cursor: pointer !important;

    transition:
        background-color 0.16s ease,
        border-color 0.16s ease,
        transform 0.16s ease !important;
}

body #logmenu .log_menu_item + .log_menu_item {
    border-top: 1px solid rgba(255, 255, 255, 0.075) !important;
}

body #logmenu .log_menu_item:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 190, 244, 0.20) !important;
    transform: translateX(2px) !important;
}

body #logmenu .log_action_icon {
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    color: #ffffff !important;
    font-size: 14px !important;

    background: linear-gradient(
        145deg,
        rgba(255, 116, 226, 0.42),
        rgba(255, 255, 255, 0.13)
    ) !important;

    border: 1px solid rgba(255, 255, 255, 0.13) !important;
    border-radius: 10px !important;
}

body #logmenu .log_action_text strong {
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

body #logmenu .log_action_text small {
    margin-top: 3px !important;
    color: rgba(255, 255, 255, 0.63) !important;
    font-size: 10px !important;
    font-weight: 400 !important;
}

body #logmenu .log_action_multiple .log_action_icon {
    color: #ffe5eb !important;

    background: linear-gradient(
        145deg,
        rgba(255, 82, 124, 0.55),
        rgba(255, 138, 178, 0.22)
    ) !important;
}

body #logmenu .log_action_multiple:hover {
    background: rgba(255, 101, 145, 0.16) !important;
}

body #logmenu .log_action_warning .log_action_icon {
    color: #fff0ad !important;

    background: linear-gradient(
        145deg,
        rgba(235, 178, 48, 0.45),
        rgba(255, 224, 139, 0.16)
    ) !important;
}

body #logmenu .log_action_report .log_action_icon {
    color: #f3ddff !important;

    background: linear-gradient(
        145deg,
        rgba(181, 98, 216, 0.48),
        rgba(225, 182, 244, 0.16)
    ) !important;
}





@media screen and (max-width: 500px) {

    body #log_menu {
        width: 230px !important;
        max-width: calc(100vw - 16px) !important;
    }

    body #logmenu {
        width: 100% !important;
        max-width: 100% !important;
    }

    body #logmenu .log_menu_item {
        width: 100% !important;
        min-width: 0 !important;
    }

    body #logmenu .log_action_text {
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    body #logmenu .log_action_text strong,
    body #logmenu .log_action_text small {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}


.chat_message:has(.chat_reply_quote) {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    vertical-align: top !important;
}

.chat_message_text {
    display: block;
}



.chat_reply_mention {
    color: rgba(109, 0, 96, 0.72);
    font-weight: 700;
}



.linia {
    position: relative !important;
    top: -5px;
}

.chat_quick_actions {
	position: absolute;
	top: 23px;
	left: 0px;
	z-index: 15;
	display: flex;
	align-items: center;
	gap: 8px;
	/* opacity: 0; */
	transform: translateY(-2px);
	transition:
		opacity 0.16s ease,
		transform 0.16s ease;
	}

.ch_logs:hover .chat_quick_actions {
    opacity: 1;
    transform: translateY(0);
}

.chat_quick_button {
    width: 17px;
    height: 17px;
    min-width: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    color: rgb(90 90 90 / 48%);
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    background: rgb(97 97 97 / 6%);
    border: 1px solid rgb(0 0 0 / 8%);
    border-radius: 5px;
    box-shadow: none;
    cursor: pointer;
    transition:
        color 0.15s ease,
        background 0.15s ease,
        border-color 0.15s ease;
}

.chat_quick_button:hover {
    color: rgba(109, 0, 96, 0.88);
    background: rgba(109, 0, 96, 0.12);
    border-color: rgba(109, 0, 96, 0.18);
}

.chat_quick_button i {
    margin: 0 !important;
    font-size: 8px !important;
    line-height: 1 !important;
}

.chat_quick_actions2 {
    display:none;
}


@media screen and (max-width: 769px) {

    /* Ukrywamy wersję desktopową */
    .chat_quick_actions {
        display: none !important;
    }

    /* Pokazujemy wersję mobilną */
    .chat_quick_actions2 {
        position: absolute !important;
        top: 22px !important;
        right: 10px !important;
        left: auto !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 10px !important;
        width: auto !important;
        height: 17px !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
        white-space: nowrap !important;
        pointer-events: auto !important;
        z-index: 15 !important;
    }

    .chat_quick_button2 {
        width: 16px !important;
        height: 16px !important;
        min-width: 16px !important;
        min-height: 16px !important;

        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 16px !important;

        margin: 0 !important;
        padding: 0 !important;

    color: rgb(90 90 90 / 48%);
        font-family: Arial, sans-serif !important;
        font-size: 9px !important;
        font-weight: 700 !important;
        line-height: 1 !important;

    background: rgb(97 97 97 / 6%);
    border: 1px solid rgb(0 0 0 / 8%);
        border-radius: 5px !important;

        box-shadow: none !important;
        box-sizing: border-box !important;

        cursor: pointer !important;
        appearance: none !important;
        -webkit-appearance: none !important;
    }

    .chat_quick_button2 i {
        display: block !important;

        margin: 0 !important;
        padding: 0 !important;

        color: inherit !important;
        font-size: 8px !important;
        line-height: 1 !important;
    }

    .chat_quick_actions2:active {
        opacity: 1 !important;
    }

    .chat_quick_button2:active {
        color: rgba(109, 0, 96, 0.90) !important;
        background: rgba(109, 0, 96, 0.14) !important;
        border-color: rgba(109, 0, 96, 0.20) !important;
    }
}

.ch_logs.system__rankop .chat_quick_actions,
.ch_logs.system__rankop .chat_quick_actions2 {
    display: none !important;
}



#container_show_chat {
    position: relative !important;
}

#chat_scroll_bottom {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    bottom: 14px !important;
    z-index: 50 !important;

    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    color: #fff !important;
    background: linear-gradient(
        145deg,
        #a71991,
        #6d0060
    ) !important;

    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;

    box-shadow: 0 6px 18px rgba(57, 8, 61, 0.3) !important;

    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;

    transform: translate(-50%, 12px) scale(0.85) !important;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease !important;
}

#chat_scroll_bottom.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translate(-50%, 0) scale(1) !important;
}

#chat_scroll_bottom i {
    margin: 0 !important;
    font-size: 21px !important;
    line-height: 1 !important;
}

#chat_scroll_bottom:hover {
    transform: translate(-50%, -2px) scale(1.05) !important;
}

@media screen and (max-width: 600px) {
    #chat_scroll_bottom {
        /* Musi pozostać absolute, nie fixed */
        position: absolute !important;
        left: 50% !important;
        right: auto !important;
        bottom: 10px !important;

        width: 34px !important;
        height: 34px !important;
    }
}


.chat_rank {
  display: inline-block;
  width: auto;
  height: 14px;
  margin: 0 3px 0 0;
}




.profile_reaction_chat_notice {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: fit-content;
	max-width: calc(100% - 24px);
	margin: 8px auto;
	padding: 8px 14px;
	box-sizing: border-box;
	color: #fff;
	background: linear-gradient(
		135deg,
		rgba(109, 0, 96, 0.94),
		rgba(211, 66, 187, 0.94)
	);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 14px;
	box-shadow: 0 5px 16px rgba(109, 0, 96, 0.2);
	font-size: 12px;
	line-height: 1.35;
	list-style: none;
}

.profile_reaction_chat_icon {
	flex: 0 0 auto;
	font-size: 17px;
	line-height: 1;
}

.profile_reaction_chat_text {
	overflow-wrap: anywhere;
}

.profile_reaction_notice_love {
	background: linear-gradient(135deg, #a90070, #e34293);
}

.profile_reaction_notice_like {
	background: linear-gradient(135deg, #6d0060, #b83eaa);
}

.profile_reaction_notice_hate {
	background: linear-gradient(135deg, #8c2534, #d9505f);
}

@media screen and (max-width: 600px) {
	.profile_reaction_chat_notice {
		max-width: calc(100% - 16px);
		margin: 6px auto;
		padding: 7px 11px;
		font-size: 11px;
	}
}


.chat_reply_media {
    align-items: flex-start !important;
    align-self: flex-start !important;
}

.chat_reply_image,
.chat_reply_video {
    align-self: flex-start !important;
    vertical-align: top !important;
}




#chat_skeleton {
    width: 100%;
    padding: 7px 12px 20px;
    box-sizing: border-box;
    pointer-events: none;
}

.chat_skeleton_item {
    width: 100%;
    min-height: 55px;
    margin-bottom: 7px;
    padding: 7px 9px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(109, 0, 96, 0.07);
    border-radius: 14px;
}

.chat_skeleton_time,
.chat_skeleton_avatar,
.chat_skeleton_line,
.chat_skeleton_action {
    position: relative;
    display: block;
    overflow: hidden;
    background: #e7e1e7;
}

.chat_skeleton_time {
    width: 38px;
    height: 7px;
    flex: 0 0 38px;
    border-radius: 10px;
}

.chat_skeleton_avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
}

.chat_skeleton_content {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 7px;
}

.chat_skeleton_line {
    height: 8px;
    border-radius: 10px;
}

.chat_skeleton_line.name {
    width: 90px;
}

.chat_skeleton_action {
    width: 27px;
    height: 25px;
    flex: 0 0 27px;
    border-radius: 7px;
}

.skeleton_1 .message {
    width: 45%;
}

.skeleton_2 .message {
    width: 72%;
}

.skeleton_3 .message {
    width: 90%;
}

.skeleton_4 .message {
    width: 58%;
}

.chat_skeleton_time::after,
.chat_skeleton_avatar::after,
.chat_skeleton_line::after,
.chat_skeleton_action::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent
    );
    animation: chatSkeletonLoading 1.15s infinite;
}

@keyframes chatSkeletonLoading {
    to {
        transform: translateX(100%);
    }
}

@media screen and (max-width: 600px) {
    #chat_skeleton {
        padding: 5px 6px 15px;
    }

    .chat_skeleton_item {
        min-height: 49px;
        margin-bottom: 5px;
        padding: 5px 6px;
        gap: 6px;
        border-radius: 11px;
    }

    .chat_skeleton_time {
        width: 31px;
        flex-basis: 31px;
    }

    .chat_skeleton_avatar {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .chat_skeleton_action {
        width: 24px;
        height: 23px;
        flex-basis: 24px;
    }
}



















#user_list_skeleton {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    pointer-events: none;
}

.user_skeleton_item {
    min-height: 54px;
    margin-bottom: 6px;
    padding: 7px 9px;
    display: flex;
    align-items: center;
    gap: 9px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(109, 0, 96, 0.07);
    border-radius: 13px;
}

.user_skeleton_avatar,
.user_skeleton_name,
.user_skeleton_info,
.user_skeleton_status {
    position: relative;
    display: block;
    overflow: hidden;
    background: #e7e1e7;
}

.user_skeleton_avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
}

.user_skeleton_content {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 7px;
}

.user_skeleton_name {
    width: 54%;
    height: 9px;
    border-radius: 10px;
}

.user_skeleton_info {
    width: 75%;
    height: 7px;
    border-radius: 10px;
}

.user_skeleton_status {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
}

.user_skeleton_avatar::after,
.user_skeleton_name::after,
.user_skeleton_info::after,
.user_skeleton_status::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.82),
        transparent
    );
    animation: userSkeletonLoading 1.15s infinite;
}

@keyframes userSkeletonLoading {
    to {
        transform: translateX(100%);
    }
}













