/* vir-chat theme (custom module): fonts, side menu, lists, chat, profile cards, chat backgrounds */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url(fonts/manrope-cyrillic.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url(fonts/manrope-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Unbounded';
    font-style: normal;
    font-weight: 500 800;
    font-display: swap;
    src: url(fonts/unbounded-cyrillic.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Unbounded';
    font-style: normal;
    font-weight: 500 800;
    font-display: swap;
    src: url(fonts/unbounded-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --vc-pink: #E91E63;
    --vc-purple: #9C27B0;
    --vc-rose: #F06292;
    --vc-grad: linear-gradient(135deg, #FF3D7F 0%, #E91E63 40%, #9C27B0 100%);
    --vc-grad-soft: linear-gradient(135deg, rgba(233, 30, 99, .10), rgba(156, 39, 176, .10));
    --vc-ink: #2A1636;
    --vc-muted: #8C7B98;
    --vc-panel: #FFFFFF;
    --vc-soft: #FAF5FC;
    --vc-line: rgba(156, 39, 176, .10);
    --vc-shadow: 0 6px 24px rgba(74, 20, 90, .08);
    --vc-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
}

body.dark_mode {
    --vc-ink: #F3E9F7;
    --vc-muted: #A894B3;
    --vc-panel: #1C1222;
    --vc-soft: #23172A;
    --vc-line: rgba(240, 98, 146, .14);
    --vc-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}

body,
body .main,
body .main input,
body .main textarea,
body .main button,
body .main select,
body .modal,
body .tooltip {
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif !important;
    letter-spacing: -0.005em;
}

/* ---------- Side navigation ---------- */
body .main .side_navigation {
    background: var(--vc-panel);
    border-right: 1px solid var(--vc-line);
}

/* wider column (240 instead of 210) so counters fit next to the icon chips */
body .main .show_navigation > .side_navigation {
    min-width: 240px;
    max-width: 240px;
}

body .main .side_navigation > .bottom .child_menu {
    margin-left: 240px;
}

@media only screen and (min-width: 1200.02px) {
    body .main .chat_page_container.show_navigation {
        padding-left: 240px;
    }

    body .main .side_navigation {
        margin-left: -240px;
    }
}

body .main .side_navigation .menu_items > li > .menu_item {
    display: flex;
    align-items: center;
}

body .main .side_navigation .menu_items > li > .menu_item > .title {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

body .main .side_navigation .menu_items > li > .menu_item > .unread {
    flex: 0 0 auto;
    margin-left: 6px;
    position: static;
}

body .main .side_navigation > .top {
    padding: 14px 14px 10px;
}

body .main .side_navigation > .center > .menu_items {
    padding: 4px 8px 10px;
}

body .main .side_navigation .menu_items > li {
    margin-bottom: 4px;
}

body .main .side_navigation .menu_items > li > .menu_item {
    border-radius: 14px !important;
    padding: 10px 12px !important;
    font-size: 14px;
    font-weight: 600 !important;
    color: var(--vc-ink) !important;
    background: transparent !important;
    box-shadow: none !important;
    transition: background .15s, transform .15s;
}

body .main .side_navigation .menu_items > li > .menu_item:hover {
    background: var(--vc-grad-soft) !important;
    transform: translateX(2px);
}

body .main .side_navigation .menu_items > li > .menu_item > .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 11px;
    background: var(--vc-grad-soft);
    color: var(--vc-pink) !important;
    margin-right: 10px;
}

body .main .side_navigation .menu_items > li > .menu_item > .icon svg,
body .main .side_navigation .menu_items > li > .menu_item > .icon i,
body .main .side_navigation .menu_items > li > .menu_item > .icon img {
    color: var(--vc-pink) !important;
    fill: currentColor;
    width: 18px;
    height: 18px;
    font-size: 18px;
}

/* First item (video chat) stays the highlighted call to action */
body .main .side_navigation .menu_items > li:first-child > .menu_item {
    background: var(--vc-grad) !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(233, 30, 99, .35) !important;
}

body .main .side_navigation .menu_items > li:first-child > .menu_item > .icon {
    background: rgba(255, 255, 255, .2);
}

body .main .side_navigation .menu_items > li:first-child > .menu_item > .icon svg,
body .main .side_navigation .menu_items > li:first-child > .menu_item > .icon i,
body .main .side_navigation .menu_items > li:first-child > .menu_item > .title {
    color: #fff !important;
}

/* Video chat button: animated gradient, shine sweep, glow pulse, beating heart, LIVE badge */
body .main .side_navigation .menu_items > li:first-child > .menu_item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(110deg, #FF3D7F, #E91E63, #9C27B0, #FF3D7F) !important;
    background-size: 300% 100% !important;
    animation: vc-vid-flow 6s linear infinite, vc-vid-glow 2.2s ease-in-out infinite;
    transition: transform .18s ease, filter .18s ease;
}

body .main .side_navigation .menu_items > li:first-child > .menu_item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
    transform: skewX(-20deg);
    animation: vc-vid-shine 3.2s ease-in-out infinite;
    pointer-events: none;
}

/* The icon slot becomes a "● LIVE" badge: blinking green dot, then the word */
body .main .side_navigation .menu_items > li:first-child > .menu_item > .icon {
    position: relative;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    height: 24px;
    padding: 0 9px 0 8px;
    gap: 6px;
    border-radius: 12px;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

body .main .side_navigation .menu_items > li:first-child > .menu_item > .icon > * {
    display: none !important;
}

body .main .side_navigation .menu_items > li:first-child > .menu_item > .icon::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: vc-vid-live 1s ease-in-out infinite;
}

body .main .side_navigation .menu_items > li:first-child > .menu_item > .icon::after {
    content: "LIVE";
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .6px;
    line-height: 1;
    color: #E91E63;
}

body .main .side_navigation .menu_items > li:first-child > .menu_item > .title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

body .main .side_navigation .menu_items > li:first-child > .menu_item > .icon i {
    display: inline-block;
    animation: vc-vid-heart 1.4s ease-in-out infinite;
}

body .main .side_navigation .menu_items > li:first-child > .menu_item:hover {
    transform: translateY(-1px) scale(1.02);
    filter: brightness(1.08) saturate(1.1);
    background: linear-gradient(110deg, #FF3D7F, #E91E63, #9C27B0, #FF3D7F) !important;
    background-size: 300% 100% !important;
}

body .main .side_navigation .menu_items > li:first-child > .menu_item:active {
    transform: scale(.98);
}

@keyframes vc-vid-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

@keyframes vc-vid-glow {
    0%, 100% { box-shadow: 0 6px 18px rgba(233, 30, 99, .35), 0 0 0 0 rgba(255, 61, 127, .45); }
    50% { box-shadow: 0 8px 24px rgba(233, 30, 99, .55), 0 0 0 6px rgba(255, 61, 127, 0); }
}

@keyframes vc-vid-shine {
    0%, 55% { left: -60%; }
    100% { left: 130%; }
}

@keyframes vc-vid-heart {
    0%, 40%, 100% { transform: scale(1); }
    15% { transform: scale(1.25); }
    28% { transform: scale(1.1); }
}

@keyframes vc-vid-live {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, .7); }
    50% { opacity: .25; box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}

@media (prefers-reduced-motion: reduce) {
    body .main .side_navigation .menu_items > li:first-child > .menu_item,
    body .main .side_navigation .menu_items > li:first-child > .menu_item::before,
    body .main .side_navigation .menu_items > li:first-child > .menu_item > .icon::before,
    body .main .side_navigation .menu_items > li:first-child > .menu_item > .icon i {
        animation: none;
    }
}

body .main .side_navigation .menu_items > li > .menu_item > .unread {
    background: var(--vc-grad);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
}

body .main .side_navigation .menu_items .child_menu {
    border-left: 2px solid var(--vc-line);
    margin-left: 28px;
    padding-left: 8px;
}

body .main .side_navigation .menu_items .child_menu > ul > li {
    border-radius: 10px;
    padding: 8px 10px !important;
    font-size: 13px;
    font-weight: 500;
    color: var(--vc-ink) !important;
}

body .main .side_navigation .menu_items .child_menu > ul > li:hover {
    background: var(--vc-grad-soft);
    color: var(--vc-pink) !important;
}

/* coins entry: gold chip instead of the pink one */
body .main .side_navigation .menu_items > li.vc_open_hub > .menu_item > .icon {
    background: linear-gradient(135deg, rgba(255, 201, 51, .25), rgba(242, 154, 0, .18));
}

/* ---------- Left column: search + groups list ---------- */
body .main .aside {
    background: var(--vc-panel);
    border-right: 1px solid var(--vc-line);
}

body .main .aside > .site_records > .search {
    width: auto !important;
    box-sizing: border-box;
    margin: 10px 10px 6px;
    border-radius: 14px;
    background: var(--vc-soft);
    border: 1px solid var(--vc-line);
    overflow: hidden;
}

body .main .aside > .site_records > .search input {
    background: transparent;
    font-size: 14px;
}

body .main .aside > .site_records > .current_record > .title {
    font-family: var(--vc-display) !important;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .01em;
}

body .main .aside .records .list > li > div {
    border-radius: 14px;
    margin: 2px 8px;
    padding: 8px 8px !important;
    transition: background .12s;
}

body .main .aside .records .list > li > div:hover,
body .main .aside .records .list > li.selected > div,
body .main .aside .records .list > li.active > div {
    background: var(--vc-grad-soft);
}

body .main .aside .records .list > li > div > .left img {
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgba(74, 20, 90, .12);
}

body .main .aside .records .list > li > div > .center > .title,
body .main .aside .records .list > li > div > .center > .title > .text {
    word-break: normal !important;
    overflow-wrap: break-word;
}

body .main .aside .records .list > li > div > .center > .title {
    font-weight: 700;
    color: var(--vc-ink);
    font-size: 14px;
}

body .main .aside .records .list > li > div > .center > .subtitle {
    color: var(--vc-muted);
    font-size: 12px;
}

body .main .aside .records .list > li > div > .center > .title > .unread > span {
    background: var(--vc-grad) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    border: 0 !important;
    border-radius: 10px !important;
    font-weight: 700;
    font-size: 11px;
    padding: 2px 7px !important;
    box-shadow: 0 2px 6px rgba(233, 30, 99, .3);
}

/* ---------- Chat window ---------- */
body .main .chatbox > .header {
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--vc-line);
    box-shadow: 0 2px 14px rgba(74, 20, 90, .06);
}

body.dark_mode .main .chatbox > .header {
    background: rgba(28, 18, 34, .82);
}

body .main .chatbox > .header > .heading > .title {
    font-family: var(--vc-display) !important;
    font-weight: 600;
    font-size: 15px;
    color: var(--vc-ink);
}

body .main .chatbox > .header > .image img {
    border-radius: 12px !important;
}

body .main .chatbox > .contents {
    background: transparent;
}

body .main .chatbox > .contents > .chat_messages > ul > li > div > .left .image img {
    border-radius: 12px !important;
    box-shadow: 0 2px 6px rgba(74, 20, 90, .15);
}

body .main .chatbox > .contents > .chat_messages > ul > li > div > .right > .content > div {
    background: rgba(255, 255, 255, .94);
    border-radius: 4px 16px 16px 16px;
    padding: 7px 12px !important;
    box-shadow: 0 2px 10px rgba(74, 20, 90, .08);
    color: #3b2a45;
}

body .main .chatbox > .contents > .chat_messages > ul > li.own_message > div > .right > .content > div {
    background: linear-gradient(135deg, #FFE3EE, #F3E1FA);
    border-radius: 16px 4px 16px 16px;
    color: #3b2a45 !important;
}

body .main .chatbox > .contents > .chat_messages > ul > li.own_message > div > .right > .content > div > .message_content,
body .main .chatbox > .contents > .chat_messages > ul > li.own_message > div > .right > .content > div > .message_content a {
    color: #3b2a45 !important;
}

body .main .chatbox > .contents > .chat_messages > ul > li.own_message > div > .right > .content > div > .message_content a {
    color: #C2185B !important;
}

body.dark_mode .main .chatbox > .contents > .chat_messages > ul > li > div > .right > .content > div {
    background: rgba(40, 26, 48, .94);
    color: #EEE3F3;
}

body.dark_mode .main .chatbox > .contents > .chat_messages > ul > li.own_message > div > .right > .content > div {
    background: linear-gradient(135deg, #5A1E45, #3F1D57);
    color: #F6EAF5 !important;
}

body.dark_mode .main .chatbox > .contents > .chat_messages > ul > li.own_message > div > .right > .content > div > .message_content {
    color: #F6EAF5 !important;
}

body .main .chatbox > .contents > .chat_messages > ul > li > div > .right .message_content {
    font-size: 14.5px;
    line-height: 1.45;
    color: inherit;
}

body .main .chatbox > .contents > .chat_messages > ul > li > div > .right > .header > .send_by {
    font-weight: 700;
    font-size: 14px;
}

body .main .chatbox > .contents > span.date > span,
body .main .chatbox > .contents > .chat_messages > ul > li > .date > span {
    background: rgba(255, 255, 255, .85);
    border-radius: 20px;
    padding: 3px 12px;
    font-weight: 600;
    font-size: 12px;
    color: #6B4A7A !important;
    box-shadow: 0 2px 8px rgba(74, 20, 90, .08);
}

body.dark_mode .main .chatbox > .contents > span.date > span,
body.dark_mode .main .chatbox > .contents > .chat_messages > ul > li > .date > span {
    background: rgba(40, 26, 48, .9);
    color: #E9D8F0 !important;
}

body .main .chatbox > .footer {
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--vc-line);
}

body.dark_mode .main .chatbox > .footer {
    background: rgba(28, 18, 34, .85);
}

body .main .chatbox > .footer .message_editor {
    border-radius: 18px;
}

body .main .chatbox > .footer .send_message_button > span {
    background: var(--vc-grad) !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 14px rgba(233, 30, 99, .35);
}

/* ---------- Chat backgrounds: one per group, vector tiles stay sharp ---------- */
body .main .chatbox {
    --vc-tile: url(bg/default.svg);
    --vc-from: #FFF4F8;
    --vc-to: #F4ECFF;
    background-color: var(--vc-from) !important;
    background-image: var(--vc-tile), linear-gradient(160deg, var(--vc-from) 0%, var(--vc-to) 100%) !important;
    background-size: 320px 320px, 100% 100% !important;
    background-repeat: repeat, no-repeat !important;
    background-position: 0 0, 0 0 !important;
}

/* Grupo's stretched per-group pictures are replaced by these */
body .main .chatbox > .background_image {
    display: none !important;
}

body .main .chatbox[group_id="1"] { --vc-tile: url(bg/g1.svg); --vc-from: #FFF0F6; --vc-to: #F3E5FF; }
body .main .chatbox[group_id="4"] { --vc-tile: url(bg/g4.svg); --vc-from: #FFF1F5; --vc-to: #EEE6FF; }
body .main .chatbox[group_id="23"] { --vc-tile: url(bg/g23.svg); --vc-from: #FFF6F9; --vc-to: #FBEFFF; }
body .main .chatbox[group_id="25"] { --vc-tile: url(bg/g25.svg); --vc-from: #F6F1FF; --vc-to: #FFF0F7; }
body .main .chatbox[group_id="33"] { --vc-tile: url(bg/g33.svg); --vc-from: #F1F2FF; --vc-to: #F6EEFF; }
body .main .chatbox[group_id="34"] { --vc-tile: url(bg/g34.svg); --vc-from: #2B0F2F; --vc-to: #4A0F2C; }
body .main .chatbox[group_id="36"] { --vc-tile: url(bg/g36.svg); --vc-from: #FFF0F4; --vc-to: #F3EBFF; }
body .main .chatbox[group_id="37"] { --vc-tile: url(bg/g37.svg); --vc-from: #FFFAE8; --vc-to: #FFEFF6; }
body .main .chatbox[group_id="39"] { --vc-tile: url(bg/g39.svg); --vc-from: #F2EFFF; --vc-to: #FFEEF3; }
body .main .chatbox[group_id="41"] { --vc-tile: url(bg/g41.svg); --vc-from: #EFF1FF; --vc-to: #FBEAFF; }
body .main .chatbox[group_id="44"] { --vc-tile: url(bg/g44.svg); --vc-from: #1E0B2C; --vc-to: #3D0A3B; }
body .main .chatbox[group_id="45"] { --vc-tile: url(bg/g45.svg); --vc-from: #EEF3FF; --vc-to: #F7EEFF; }
body .main .chatbox[group_id="46"] { --vc-tile: url(bg/g46.svg); --vc-from: #FBF6EE; --vc-to: #F8EEF8; }
body .main .chatbox[group_id="48"] { --vc-tile: url(bg/g48.svg); --vc-from: #FFF2F2; --vc-to: #EEF8F0; }
body .main .chatbox[group_id="49"] { --vc-tile: url(bg/g49.svg); --vc-from: #E9F9FC; --vc-to: #FFF8E1; }
body .main .chatbox[group_id="50"] { --vc-tile: url(bg/g50.svg); --vc-from: #E8F6FB; --vc-to: #EEF9EF; }
body .main .chatbox[group_id="51"] { --vc-tile: url(bg/g51.svg); --vc-from: #FFF0F3; --vc-to: #EFEDFF; }
body .main .chatbox[group_id="52"] { --vc-tile: url(bg/g52.svg); --vc-from: #FFF1F1; --vc-to: #FBF3E6; }
body .main .chatbox[group_id="53"] { --vc-tile: url(bg/g53.svg); --vc-from: #EDF3FB; --vc-to: #F1EEFB; }
body .main .chatbox[group_id="54"] { --vc-tile: url(bg/g54.svg); --vc-from: #FFF8E6; --vc-to: #F6ECFF; }
body .main .chatbox[group_id="55"] { --vc-tile: url(bg/g55.svg); --vc-from: #FFF0F6; --vc-to: #F7EEFF; }

/* Гостиная keeps its watercolor, rebuilt sharp: tall picture for the usual column, wide one when the chat is wide (theme.js) */
body .main .chatbox[group_id="18"] {
    background-image: url(bg/lounge_m.jpg) !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

body .main .chatbox[group_id="18"].vc_wide {
    background-image: url(bg/lounge.jpg) !important;
}

/* dark groups: date chips and header readable on dark */
body .main .chatbox[group_id="34"] > .contents > span.date > span,
body .main .chatbox[group_id="44"] > .contents > span.date > span,
body .main .chatbox[group_id="34"] > .contents > .chat_messages > ul > li > .date > span,
body .main .chatbox[group_id="44"] > .contents > .chat_messages > ul > li > .date > span {
    background: rgba(255, 255, 255, .14);
    color: #fff !important;
}

body .main .chatbox[group_id="34"] > .contents > .chat_messages > ul > li > div > .right > .header > .send_by,
body .main .chatbox[group_id="44"] > .contents > .chat_messages > ul > li > div > .right > .header > .send_by {
    background-color: rgba(255, 255, 255, .9);
    border-radius: 8px;
    padding: 0 7px;
}

body .main .chatbox[group_id="34"] > .contents > .chat_messages > ul > li > div > .right > .header .timestamp,
body .main .chatbox[group_id="44"] > .contents > .chat_messages > ul > li > div > .right > .header .timestamp,
body .main .chatbox[group_id="34"] > .contents > .chat_messages > ul > li > div > .right > .header .iconic_arrow-down,
body .main .chatbox[group_id="44"] > .contents > .chat_messages > ul > li > div > .right > .header .iconic_arrow-down {
    color: rgba(255, 255, 255, .75);
}

body.dark_mode .main .chatbox:not([group_id="34"]):not([group_id="44"]):not([group_id="18"]) {
    --vc-from: #150C1A;
    --vc-to: #1D0E22;
}

body.dark_mode .main .chatbox[group_id="18"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(20, 10, 26, .72);
    pointer-events: none;
}

/* ---------- Info panel / profile card ---------- */
body .main .info_panel {
    background: var(--vc-panel);
    border-left: 1px solid var(--vc-line);
}

body .main .info_panel > .coverpic {
    position: relative;
    height: 150px;
    margin: 10px 10px 0;
    width: auto;
    border-radius: 20px;
    overflow: hidden;
    background: var(--vc-grad);
}

body .main .info_panel > .coverpic::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(42, 22, 54, 0) 40%, rgba(42, 22, 54, .45) 100%);
    pointer-events: none;
}

body .main .info_panel > .coverpic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body .main .info_panel > .info_box {
    margin-top: -52px;
    position: relative;
    z-index: 2;
    text-align: center;
}

body .main .info_panel > .info_box > .img {
    display: inline-block;
    padding: 4px;
    border-radius: 50%;
    background: var(--vc-grad);
    box-shadow: 0 8px 24px rgba(233, 30, 99, .35);
}

body .main .info_panel > .info_box > .img img {
    width: 96px !important;
    height: 96px !important;
    border: 3px solid var(--vc-panel);
    box-shadow: none !important;
}

body .main .info_panel > .info_box > .heading {
    display: block;
    margin-top: 10px;
    font-family: var(--vc-display) !important;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.25;
    color: var(--vc-ink);
}

body .main .info_panel > .info_box > .subheading {
    display: block;
    margin-top: 4px;
    color: var(--vc-muted);
    font-size: 13px;
}

body .main .info_panel > .controls > div > span.button > span {
    background: var(--vc-grad) !important;
    color: #fff !important;
    border-radius: 14px !important;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(233, 30, 99, .3);
    border: 0 !important;
}

body .main .info_panel > .statistics > div > div {
    background: var(--vc-soft);
    border-radius: 14px;
    margin: 0 3px;
    padding: 8px 4px;
}

body .main .info_panel > .statistics > div > div > .value {
    font-family: var(--vc-display) !important;
    font-weight: 700;
    color: var(--vc-pink);
}

body .main .info_panel > .content .field {
    background: var(--vc-soft);
    border: 1px solid var(--vc-line);
    border-radius: 16px;
    padding: 10px 12px !important;
    margin: 0 10px 8px !important;
}

body .main .info_panel > .content .field > .title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--vc-muted) !important;
}

body .main .info_panel > .content .field > .value {
    color: var(--vc-ink) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

body .main .info_panel > .content .field .icons ul li img {
    border-radius: 12px;
    transition: transform .12s;
}

body .main .info_panel > .content .field .icons ul li:hover img {
    transform: translateY(-2px) scale(1.05);
}

body .main .info_panel > .content .field .icons.rounded ul li img {
    border-radius: 50%;
}

/* vir-chat: the yellow "view all" circle in the group members row (fns/load/group.php) is a purple
   "who is online" button with a blinking green lamp; the view_all.png stays as a fallback image */
body .main .info_panel > .content .field .icons ul > li.vc_online_btn {
    width: auto;
    min-width: 0;
    height: 42px;
    padding: 0 14px 0 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #A855F7 0%, #7C3AED 100%);
    box-shadow: 0 4px 12px rgba(124, 58, 237, .35);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    cursor: pointer;
    transition: transform .12s, box-shadow .12s;
}
body .main .info_panel > .content .field .icons ul > li.vc_online_btn > img {
    display: none;
}
body .main .info_panel > .content .field .icons ul > li.vc_online_btn::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3DDC84;
    animation: vc_online_blink 1.4s infinite;
}
body .main .info_panel > .content .field .icons ul > li.vc_online_btn::after {
    content: "Кто онлайн";
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .01em;
    white-space: nowrap;
}
body .main .info_panel > .content .field .icons ul > li.vc_online_btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, .45);
}
@keyframes vc_online_blink {
    0% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(61, 220, 132, .75);
    }
    55% {
        opacity: .35;
        box-shadow: 0 0 0 6px rgba(61, 220, 132, 0);
    }
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(61, 220, 132, 0);
    }
}

body .main .info_panel > .content .field .field_buttons ul li {
    background: var(--vc-grad-soft);
    color: var(--vc-pink);
    border-radius: 12px;
    font-weight: 700;
    border: 0;
}

/* gifts shelf: show gifts larger, like stickers */
body .main .info_panel > .content .field .icons.vc_gifts_shelf ul li img {
    width: 46px;
    height: 46px;
    filter: drop-shadow(0 3px 6px rgba(74, 20, 90, .2));
}

/* ---------- Dropdown menus: message options (arrow next to the nick) and attach menu (left of the input) ---------- */
body .main .chatbox .chat_messages .right > .header .dropdown_list,
body .main .chatbox > .footer .msg_attach_options > .dropdown_list {
    background: var(--vc-panel) !important;
    border: 1px solid var(--vc-line) !important;
    border-radius: 16px !important;
    box-shadow: 0 14px 36px rgba(74, 20, 90, .18), 0 2px 6px rgba(74, 20, 90, .08) !important;
    padding: 6px !important;
    width: auto !important;
    min-width: 210px;
    overflow: hidden;
}

/* message menu opens to the right of the arrow so it is never cut by the column edge */
body .main .chatbox .chat_messages .right > .header .dropdown_list {
    left: 0 !important;
    right: auto !important;
    max-width: 280px;
    z-index: 20 !important;
}

body .main .chatbox .chat_messages .right > .header .dropdown_list > ul,
body .main .chatbox > .footer .msg_attach_options > .dropdown_list > ul {
    margin: 0 !important;
    padding: 0 !important;
}

body .main .chatbox .chat_messages .right > .header .dropdown_list > ul > li,
body .main .chatbox > .footer .msg_attach_options > .dropdown_list > ul > li {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0 !important;
    border-radius: 10px;
    padding: 9px 12px !important;
    margin: 0 !important;
    text-align: left !important;
    font-size: 14px !important;
    font-weight: 600;
    color: var(--vc-ink) !important;
    background: transparent !important;
    white-space: nowrap;
    cursor: pointer;
    transition: background .12s, color .12s;
}

body .main .chatbox .chat_messages .right > .header .dropdown_list > ul > li:hover,
body .main .chatbox > .footer .msg_attach_options > .dropdown_list > ul > li:hover {
    background: var(--vc-grad-soft) !important;
    color: var(--vc-pink) !important;
}

/* destructive items */
body .main .chatbox .chat_messages .right > .header .dropdown_list > ul > li[data-remove],
body .main .chatbox .chat_messages .right > .header .dropdown_list > ul > li[form="complaint"] {
    color: #D93A48 !important;
}

body .main .chatbox .chat_messages .right > .header .dropdown_list > ul > li[data-remove]:hover,
body .main .chatbox .chat_messages .right > .header .dropdown_list > ul > li[form="complaint"]:hover {
    background: rgba(229, 72, 77, .09) !important;
    color: #C62835 !important;
}

body .main .chatbox .chat_messages .right > .header .dropdown_list > ul > li[data-remove] {
    margin-top: 4px !important;
    position: relative;
}

body .main .chatbox .chat_messages .right > .header .dropdown_list > ul > li[data-remove]::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 8px;
    right: 8px;
    border-top: 1px solid var(--vc-line);
}

/* attach menu icons in soft chips, like the side menu */
body .main .chatbox > .footer .msg_attach_options > .dropdown_list > ul > li > .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    margin: 0 !important;
    border-radius: 10px;
    background: var(--vc-grad-soft);
    color: var(--vc-pink) !important;
}

body .main .chatbox > .footer .msg_attach_options > .dropdown_list > ul > li > .icon svg {
    width: 18px;
    height: 18px;
    color: var(--vc-pink);
}

body .main .chatbox > .footer .msg_attach_options > .dropdown_list > ul > li:hover > .icon {
    background: var(--vc-grad);
}

body .main .chatbox > .footer .msg_attach_options > .dropdown_list > ul > li:hover > .icon svg {
    color: #fff;
}

/* iOS-style group icons (assets/vc/groups/*.svg) carry their own squircle shape */
body .main img[src*="assets/vc/groups/"] {
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    filter: drop-shadow(0 2px 4px rgba(74, 20, 90, .18));
}

body .main .info_panel > .info_box > .img:has(img[src*="assets/vc/groups/"]) {
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

body .main .info_panel > .info_box > .img img[src*="assets/vc/groups/"] {
    width: 104px !important;
    height: 104px !important;
    border: 0 !important;
    border-radius: 0 !important;
    filter: drop-shadow(0 8px 18px rgba(74, 20, 90, .3));
}

/* group list: the icon itself, bigger, no clipping box around it */
body .main .aside .records .list > li > div > .left:has(img[src*="assets/vc/groups/"]) {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px;
    margin-right: 12px;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

/* compact group list rows, bold group titles, clean subtitle */
body .main .aside > .site_records:has(> .current_record[load="groups"]) .records > .list > li {
    padding: 0 6px !important;
    border: 0 !important;
}

body .main .aside > .site_records:has(> .current_record[load="groups"]) .records > .list > li > div {
    margin: 1px 0 !important;
    padding: 5px 8px !important;
}

body .main .aside > .site_records:has(> .current_record[load="groups"]) .records > .list > li > div > .center > .title,
body .main .aside > .site_records:has(> .current_record[load="groups"]) .records > .list > li > div > .center > .title > .text {
    font-weight: 700 !important;
    font-size: 14.5px;
    line-height: 1.25;
}

body .main .aside > .site_records:has(> .current_record[load="groups"]) .records > .list > li > div > .center > .subtitle {
    font-weight: 400;
    font-size: 12.5px;
    line-height: 1.3;
    margin-top: 2px;
}

body .main .aside .records .list > li > div > .left img[src*="assets/vc/groups/"] {
    width: 58px !important;
    height: 58px !important;
    object-fit: contain;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible;
    filter: drop-shadow(0 3px 5px rgba(74, 20, 90, .16));
}

body .main .chatbox > .header > .image:has(img[src*="assets/vc/groups/"]) {
    flex: 0 0 44px;
    width: 44px !important;
    min-width: 44px;
    height: 44px;
    margin-right: 10px;
}

body .main .chatbox > .header > .image img[src*="assets/vc/groups/"] {
    border-radius: 0 !important;
    width: 44px !important;
    height: 44px !important;
    object-fit: contain;
}

/* no search field above the groups list */
body .main .aside > .site_records:has(> .current_record[load="groups"]) > .search {
    display: none !important;
}

/* ---------- "Купить VIP статус" page (custom page vip, content in fns/vc/pages/vip.html) ---------- */
.vc-vip {
    max-width: 860px;
    color: var(--vc-ink);
    font-size: 15px;
    line-height: 1.55;
}

.vc-vip-hero {
    padding: 28px 26px;
    border-radius: 24px;
    background: linear-gradient(135deg, #2E1656 0%, #6A1B9A 55%, #E91E63 100%);
    color: #fff;
    margin-bottom: 8px;
    box-shadow: 0 16px 40px rgba(106, 27, 154, .28);
}

.vc-vip-hero h1 {
    font-family: var(--vc-display) !important;
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 10px;
    color: #fff;
}

.vc-vip-hero h1 span {
    background: linear-gradient(90deg, #FFE08A, #FFB347);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.vc-vip-hero p {
    margin: 0 0 18px;
    opacity: .9;
    max-width: 560px;
}

.vc-vip h2 {
    font-family: var(--vc-display) !important;
    font-size: 19px;
    font-weight: 700;
    margin: 26px 0 12px;
    color: var(--vc-ink);
}

.vc-vip-btn {
    display: inline-block;
    padding: 13px 24px;
    border-radius: 14px;
    background: linear-gradient(135deg, #FFD36B, #F29A00);
    color: #2A1636 !important;
    font-weight: 800;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(242, 154, 0, .35);
}

.vc-vip-cta {
    margin-top: 22px;
}

.vc-vip-rub {
    margin-top: 2px;
    font-size: 13px;
    font-weight: 700;
    color: #7a5a8c;
}

.vc-vip-rub-note {
    margin: 10px 2px 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: #7a6a86;
}

.vc-vip-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.vc-vip .vc-vip-btn.vc-vip-btn-coins {
    background: #fff;
    color: #E91E63 !important;
    box-shadow: 0 10px 24px rgba(233, 30, 99, .25);
    cursor: pointer;
    animation: vc-coins-bounce 2.4s ease-in-out infinite;
}

.vc-vip-cta .vc-vip-btn.vc-vip-btn-coins {
    border: 2px solid #E91E63;
}

.vc-vip .vc-vip-btn {
    transition: transform .15s ease, filter .15s ease;
}

.vc-vip .vc-vip-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

@keyframes vc-coins-bounce {
    0%, 70%, 100% { transform: translateY(0); }
    80% { transform: translateY(-4px); }
    90% { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .vc-vip .vc-vip-btn.vc-vip-btn-coins { animation: none; }
}

.vc-vip-cta .vc-vip-btn {
    background: var(--vc-grad);
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(233, 30, 99, .32);
}

.vc-vip-perks,
.vc-vip-earn {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.vc-vip-perks li,
.vc-vip-earn li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--vc-soft);
    border: 1px solid var(--vc-line);
    font-weight: 600;
}

.vc-vip-perks li b,
.vc-vip-earn li b {
    flex: 0 0 auto;
    min-width: 34px;
    height: 34px;
    padding: 0 6px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 2px 6px rgba(74, 20, 90, .1);
    font-size: 16px;
}

.vc-vip-earn li b {
    color: #E59A00;
    font-weight: 800;
    font-size: 14px;
}

.vc-vip-plans {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.vc-vip-plan {
    position: relative;
    padding: 18px 14px 16px;
    border-radius: 20px;
    background: #fff;
    border: 1.5px solid var(--vc-line);
    box-shadow: 0 6px 18px rgba(74, 20, 90, .06);
}

.vc-vip-hot {
    border-color: #E91E63;
    box-shadow: 0 12px 28px rgba(233, 30, 99, .18);
}

.vc-vip-super {
    background: linear-gradient(160deg, #2C2C2E, #0B0616);
    border-color: transparent;
    color: #fff;
}

.vc-vip-badge {
    position: absolute;
    top: -11px;
    left: 14px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--vc-grad);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.vc-vip-plan-name {
    font-weight: 800;
    font-size: 14px;
}

.vc-vip-price {
    font-family: var(--vc-display);
    font-weight: 800;
    font-size: 24px;
    margin: 8px 0 4px;
    color: #E59A00;
}

.vc-vip-super .vc-vip-price {
    color: #FFD36B;
}

.vc-vip-note {
    font-size: 12.5px;
    color: var(--vc-muted);
    line-height: 1.4;
}

.vc-vip-super .vc-vip-note {
    color: rgba(255, 255, 255, .7);
}

.vc-vip-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: vc-step;
}

.vc-vip-steps li {
    position: relative;
    padding: 10px 0 10px 46px;
    counter-increment: vc-step;
}

.vc-vip-steps li::before {
    content: counter(vc-step);
    position: absolute;
    left: 0;
    top: 6px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--vc-grad);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 760px) {
    .vc-vip-plans {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .vc-vip-perks,
    .vc-vip-earn {
        grid-template-columns: 1fr;
    }
}

/* gender icon before the name in user lists (class set in fns/load/site_users.php) */
.site_record_item.vc_gender_m .center > .title > .text::before,
.site_record_item.vc_gender_f .center > .title > .text::before,
.site_record_item.vc_gender_t .center > .title > .text::before {
    content: ""; display: inline-block; width: 15px; height: 15px; margin-right: 5px; vertical-align: -2px;
    background: no-repeat center / contain;
}
.site_record_item.vc_gender_m .center > .title > .text::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%232F80ED'/%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6.8' cy='9.2' r='3'/%3E%3Cpath d='M9 7l3-3M9.3 4H12v2.7'/%3E%3C/g%3E%3C/svg%3E");
}
.site_record_item.vc_gender_f .center > .title > .text::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23EC4899'/%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='8' cy='6.4' r='3'/%3E%3Cpath d='M8 9.4v4.2M6.2 11.8h3.6'/%3E%3C/g%3E%3C/svg%3E");
}
.site_record_item.vc_gender_t .center > .title > .text::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cdefs%3E%3ClinearGradient id='r' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23E40303'/%3E%3Cstop offset='.2' stop-color='%23FF8C00'/%3E%3Cstop offset='.4' stop-color='%23FFD500'/%3E%3Cstop offset='.6' stop-color='%23008026'/%3E%3Cstop offset='.8' stop-color='%23004DFF'/%3E%3Cstop offset='1' stop-color='%23750787'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='8' cy='8' r='8' fill='url(%23r)'/%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7.4' cy='7.8' r='2.5'/%3E%3Cpath d='M9.3 5.9L12 3.2M9.8 3.2H12v2.2M7.4 10.3v3.1M6 12h2.8'/%3E%3C/g%3E%3C/svg%3E");
}

/* message reactions: Noto Emoji (Google, CC BY 4.0) in assets/vc/reactions; VIP and staff get the
   animated ones from reactions_anim.css (layouts/vc/head.php). Two rows of six in the picker. */
body .main .chatbox > .contents > .chat_messages .message_reactions .reaction {
    background-size: 100%; background-repeat: no-repeat; background-position: center;
}
body .main .chatbox > .contents > .chat_messages .message_reactions > .reactions > ul > li > .reaction { width: 20px; height: 20px; }
body .main .chatbox > .contents > .chat_messages .message_reactions > .selection { margin-top: -74px; }
body .main .chatbox > .contents > .chat_messages .message_reactions > .selection > ul {
    display: grid; grid-template-columns: repeat(6, 25px); gap: 6px 8px; padding: 8px 10px; border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}
body .main .chatbox > .contents > .chat_messages .message_reactions > .selection > ul > li { margin: 0; }
body .main .chatbox > .contents > .chat_messages .message_reactions > .selection > ul > li > .reaction.reacted {
    filter: none; background-color: rgba(233, 30, 99, .15); border-radius: 50%; box-shadow: 0 0 0 3px rgba(233, 30, 99, .15);
}
body .main .chatbox > .contents > .chat_messages .message_reactions .reaction.reaction-like { background-image: url("reactions/like.svg"); }
body .main .chatbox > .contents > .chat_messages .message_reactions .reaction.reaction-love { background-image: url("reactions/love.svg"); }
body .main .chatbox > .contents > .chat_messages .message_reactions .reaction.reaction-fire { background-image: url("reactions/fire.svg"); }
body .main .chatbox > .contents > .chat_messages .message_reactions .reaction.reaction-haha { background-image: url("reactions/haha.svg"); }
body .main .chatbox > .contents > .chat_messages .message_reactions .reaction.reaction-hearteyes { background-image: url("reactions/hearteyes.svg"); }
body .main .chatbox > .contents > .chat_messages .message_reactions .reaction.reaction-kiss { background-image: url("reactions/kiss.svg"); }
body .main .chatbox > .contents > .chat_messages .message_reactions .reaction.reaction-clap { background-image: url("reactions/clap.svg"); }
body .main .chatbox > .contents > .chat_messages .message_reactions .reaction.reaction-party { background-image: url("reactions/party.svg"); }
body .main .chatbox > .contents > .chat_messages .message_reactions .reaction.reaction-wow { background-image: url("reactions/wow.svg"); }
body .main .chatbox > .contents > .chat_messages .message_reactions .reaction.reaction-sad { background-image: url("reactions/sad.svg"); }
body .main .chatbox > .contents > .chat_messages .message_reactions .reaction.reaction-angry { background-image: url("reactions/angry.svg"); }
body .main .chatbox > .contents > .chat_messages .message_reactions .reaction.reaction-devil { background-image: url("reactions/devil.svg"); }

/* a reaction with the mini avatars of who sent it (vc_reaction_item in messages.js) */
body .main .chatbox > .contents > .chat_messages .message_reactions > .reactions > ul > li.vc_reaction {
    display: inline-flex; align-items: center; gap: 4px; margin: 3px 5px 0 0; padding: 2px 7px 2px 5px;
    border-radius: 999px; background: rgba(233, 30, 99, .09); cursor: pointer; transition: background .15s;
}
body .main .chatbox > .contents > .chat_messages .message_reactions > .reactions > ul > li.vc_reaction:hover { background: rgba(233, 30, 99, .18); }
body .main .chatbox > .contents > .chat_messages .message_reactions > .reactions > ul > li.vc_reaction > .total_reactions { margin-left: 0; }
.vc_reactors { display: inline-flex; }
.vc_reactors img { width: 18px; height: 18px; margin-left: -6px; border: 1.5px solid #fff; border-radius: 50%; object-fit: cover; background: #fff; }
.vc_reactors img:first-child { margin-left: 0; }
body.dark_mode .vc_reactors img { border-color: #2a2333; background: #2a2333; }

/* reaction picker at the tap point (vc_toggle_reaction_picker in messages.js); fixed, so a message without reactions keeps its height */
body .main .chatbox > .contents > .chat_messages .message_reactions.vc_picker_open { z-index: 50; }
body .main .chatbox > .contents > .chat_messages .message_reactions.reaction_d-none { height: 0; margin: 0; padding: 0; }
body .main .chatbox > .contents > .chat_messages .message_reactions > .selection > ul { animation: vc_picker_pop .16s ease-out; transform-origin: 50% 100%; }
@keyframes vc_picker_pop { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }

/* a reaction sent by VIP or staff is animated for everyone (vc_reaction_item in messages.js) */
body .main .chatbox > .contents > .chat_messages .message_reactions > .reactions .reaction.vc_animated.reaction-like { background-image: url("reactions/like.webp"); }
body .main .chatbox > .contents > .chat_messages .message_reactions > .reactions .reaction.vc_animated.reaction-love { background-image: url("reactions/love.webp"); }
body .main .chatbox > .contents > .chat_messages .message_reactions > .reactions .reaction.vc_animated.reaction-fire { background-image: url("reactions/fire.webp"); }
body .main .chatbox > .contents > .chat_messages .message_reactions > .reactions .reaction.vc_animated.reaction-haha { background-image: url("reactions/haha.webp"); }
body .main .chatbox > .contents > .chat_messages .message_reactions > .reactions .reaction.vc_animated.reaction-hearteyes { background-image: url("reactions/hearteyes.webp"); }
body .main .chatbox > .contents > .chat_messages .message_reactions > .reactions .reaction.vc_animated.reaction-kiss { background-image: url("reactions/kiss.webp"); }
body .main .chatbox > .contents > .chat_messages .message_reactions > .reactions .reaction.vc_animated.reaction-clap { background-image: url("reactions/clap.webp"); }
body .main .chatbox > .contents > .chat_messages .message_reactions > .reactions .reaction.vc_animated.reaction-party { background-image: url("reactions/party.webp"); }
body .main .chatbox > .contents > .chat_messages .message_reactions > .reactions .reaction.vc_animated.reaction-wow { background-image: url("reactions/wow.webp"); }
body .main .chatbox > .contents > .chat_messages .message_reactions > .reactions .reaction.vc_animated.reaction-sad { background-image: url("reactions/sad.webp"); }
body .main .chatbox > .contents > .chat_messages .message_reactions > .reactions .reaction.vc_animated.reaction-angry { background-image: url("reactions/angry.webp"); }
body .main .chatbox > .contents > .chat_messages .message_reactions > .reactions .reaction.vc_animated.reaction-devil { background-image: url("reactions/devil.webp"); }

/* the admin list of badges: the note on what a badge is for may take several lines */
body .main .aside > .site_records > .records > .list > li.vc_badge_note > div > .center > .subtitle {
    white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3; height: auto; max-height: none;
}

/* sticker picker: the grid gives every item 20% of the width, meant for GIFs; on a wide screen that blows stickers up and crops them */
body .main .chatbox > .footer > .grid_list > div > .results > div > ul:has(> li.send_sticker) { align-content: flex-start; gap: 4px; }
body .main .chatbox > .footer > .grid_list > div > .results > div > ul > li.send_sticker {
    flex: 0 0 72px; max-width: 72px; height: 72px; border-radius: 12px; transition: background .15s, transform .15s;
}
body .main .chatbox > .footer > .grid_list > div > .results > div > ul > li.send_sticker:hover { background: rgba(233, 30, 99, .1); transform: scale(1.08); }
body .main .chatbox > .footer > .grid_list > div > .results > div > ul > li.send_sticker > span { padding: 5px; }
body .main .chatbox > .footer > .grid_list > div > .results > div > ul > li.send_sticker > span > img { object-fit: contain; border-radius: 0; }

/* a sticker in a message stays 150 px: the rule for single pictures allows 350 and the files are 300 px, for sharpness on dense screens */
body .main .chatbox > .contents > .chat_messages > ul > li.sticker > div > .right > .files > div > ul > li > .file.image,
body .main .chatbox > .contents > .chat_messages > ul > li.sticker > div > .right > .files > div > ul > li > .file.image.single_image { width: 150px !important; height: 150px !important; max-width: 150px; max-height: 150px; }
body .main .chatbox > .contents > .chat_messages > ul > li.sticker > div > .right > .files > div > ul > li > .file.image > img,
body .main .chatbox > .contents > .chat_messages > ul > li.sticker > div > .right > .files > div > ul > li > .file.image.single_image > img { width: 150px; height: 150px; max-width: 150px; max-height: 150px; object-fit: contain; }

/* close button of the sticker, GIF and emoji panel */
body .main .chatbox > .footer > .grid_list { position: relative; }
body .main .chatbox > .footer > .grid_list.hidden > .vc_grid_close { display: none; }
body .main .chatbox > .footer > .grid_list > .vc_grid_close {
    position: absolute; top: 8px; right: 14px; z-index: 5; display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; padding: 0; border: 1px solid var(--vc-line); border-radius: 50%;
    background: #fff; color: var(--vc-ink); font-size: 22px; line-height: 1; cursor: pointer;
    box-shadow: 0 3px 10px rgba(74, 20, 90, .14); transition: background .15s, color .15s;
}
body .main .chatbox > .footer > .grid_list > .vc_grid_close:hover { background: #E91E63; color: #fff; }
body.dark_mode .main .chatbox > .footer > .grid_list > .vc_grid_close { background: #2a2333; color: #E9D8F0; }
body .main .chatbox > .footer > .grid_list > div > .search > div > input { padding-right: 52px; }

/* a shadow-banned message, marked for administrators only (fns/load/private_chat_messages.php, group_messages.php) */
body .main .chatbox > .contents > .chat_messages > ul > li.vc_shadow_message > div > .right {
    padding: 6px 8px; border-radius: 16px; background: rgba(142, 36, 170, .12) !important; box-shadow: inset 0 0 0 2px #8E24AA !important;
}
body .main .chatbox > .contents > .chat_messages > ul > li.vc_shadow_message > div > .right::after {
    content: "🚫 Теневой бан: видит только автор"; display: block; margin-top: 4px; color: #7B1FA2; font-size: 12px; font-weight: 700; line-height: 1.3;
}
body.dark_mode .main .chatbox > .contents > .chat_messages > ul > li.vc_shadow_message > div > .right::after { color: #E1BEE7; }

/* ---------- VIP and Super VIP nicknames (class vc_vip_nick set in fns/load/group_messages.php, private_chat_messages.php, site_users.php) ---------- */
body .main .chatbox > .contents > .chat_messages > ul > li.vc_vip_nick > div > .right > .header > .send_by {
    display: inline-block;
    max-width: min(100%, calc(100vw - 90px));
    max-height: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 1.2rem !important;
    text-shadow: none;
    letter-spacing: normal;
    line-height: 1.3;
}

body .main .aside .records .list > .site_record_item.vc_vip_nick > div > .center {
    min-width: 0;
}

body .main .aside .records .list > .site_record_item.vc_vip_nick > div > .center > .title {
    max-width: 100%;
    overflow: visible;
}

body .main .aside .records .list > .site_record_item.vc_vip_nick > div > .center > .title > .text {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 1.15rem;
    line-height: 1.25;
}

/* the rules in custom_css.css by name colour stay in the bundle; these are stronger and replace them */
/* where text clipping is missing the name stays in its solid role colour */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    body .main .chatbox > .contents > .chat_messages > ul > li.vc_vip_nick > div > .right > .header > .send_by,
    body .main .aside .records .list > .site_record_item.vc_vip_nick > div > .center > .title > .text {
        background-image: linear-gradient(90deg, #6D28D9, #DB2777, #6D28D9);
        background-size: 200% auto;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        /* the glow is a filter: text-shadow would blur over the clipped gradient */
        animation: vc_vip_shimmer 6s linear infinite, vc_vip_glow 8s ease-in-out infinite;
    }

    body.dark_mode .main .chatbox > .contents > .chat_messages > ul > li.vc_vip_nick > div > .right > .header > .send_by,
    body.dark_mode .main .aside .records .list > .site_record_item.vc_vip_nick > div > .center > .title > .text {
        background-image: linear-gradient(90deg, #D8CCFF, #FFC2E2, #D8CCFF);
        /* no glow on dark: a filter over the clipped gradient leaves phones with a blur instead of letters */
        animation: vc_vip_shimmer 6s linear infinite;
    }
}

/* the glow fades out completely, then comes back */
@keyframes vc_vip_glow {
    0%, 100% {
        filter: drop-shadow(0 0 0 rgba(219, 39, 119, 0)) drop-shadow(0 0 0 rgba(124, 58, 237, 0));
    }
    50% {
        filter: drop-shadow(0 0 3px rgba(219, 39, 119, .55)) drop-shadow(0 0 7px rgba(124, 58, 237, .45));
    }
}

@keyframes vc_vip_shimmer {
    to {
        background-position: 200% center;
    }
}

@media (prefers-reduced-motion: reduce) {
    body .main .chatbox > .contents > .chat_messages > ul > li.vc_vip_nick > div > .right > .header > .send_by,
    body .main .aside .records .list > .site_record_item.vc_vip_nick > div > .center > .title > .text {
        animation: none;
    }
}

/* emoji in a nickname keep their own colours (split off by nick_emoji.js) */
.vip_nick_emoji {
    -webkit-text-fill-color: initial;
    background: none;
    animation: none;
}

/* the VIP role badge is a little bigger than the other badges on the profile */
body .main .info_panel > .content .field .icons ul:has(> li > img[src*="/site_roles/7-gr-"]) {
    align-items: center;
}

body .main .info_panel > .content .field .icons ul li:has(> img[src*="/site_roles/7-gr-"]) {
    width: 54px;
    height: 54px;
}

/* VIP stub in stickers picker for guests / regular users */
body .main .chatbox > .footer > .grid_list > div > .results > div > ul > li.vc_vip_stub {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 14px !important;
    margin: 0 !important;
    cursor: default;
}

body .main .chatbox > .footer > .grid_list .vc_vip_stub_box {
    text-align: center;
    max-width: 300px;
}

body .main .chatbox > .footer > .grid_list .vc_vip_stub_title {
    font-weight: 700;
    font-size: 15px;
    color: var(--vc-ink);
    margin-bottom: 6px;
}

body .main .chatbox > .footer > .grid_list .vc_vip_stub_sub {
    font-size: 13px;
    line-height: 1.4;
    color: var(--vc-muted);
    margin-bottom: 14px;
}

body .main .chatbox > .footer > .grid_list .vc_vip_stub_btn {
    display: inline-block;
    border: 0;
    border-radius: 10px;
    padding: 9px 20px;
    background: var(--vc-grad);
    color: #fff;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(233, 30, 99, .28);
}

/* badges on the profile: light grey card and a soft shadow so the pins look raised */
body .main .info_panel > .content .field:has(.icons img[src*="/badges/"]) {
    background: #efefed;
    border-color: #e2e2df;
}

body .main .info_panel > .content .field .icons ul li img[src*="/badges/"] {
    border-radius: 0;
    filter: drop-shadow(2px 4px 4px rgba(0, 0, 0, .28)) drop-shadow(0 1px 1px rgba(0, 0, 0, .18));
}

body .main .info_panel > .content .field .icons ul li img[src*="/badges/"] {
    position: relative;
    transition: transform .2s ease;
}

/* a badge grows a lot on hover so it can be looked at */
body .main .info_panel > .content .field:has(.icons img[src*="/badges/"]),
body .main .info_panel > .content .field:has(.icons img[src*="/badges/"]) .icons,
body .main .info_panel > .content .field:has(.icons img[src*="/badges/"]) .icons ul {
    overflow: visible;
}

/* badges a bit bigger than the stock 42px */
body .main .info_panel > .content .field .icons ul li:has(> img[src*="/badges/"]) {
    width: 50px;
    height: 50px;
}

body .main .info_panel > .content .field .icons ul li:hover {
    position: relative;
    z-index: 20;
}

body .main .info_panel > .content .field .icons ul li:hover img[src*="/badges/"] {
    transform: scale(2.2);
    z-index: 20;
    filter: drop-shadow(3px 7px 7px rgba(0, 0, 0, .3)) drop-shadow(0 1px 1px rgba(0, 0, 0, .18));
}

/* role, country flag and group role: one row of small icons under the nick, no card */
body .main .info_panel > .info_box > .subheading .vc_sub_text {
    display: block;
}

body .main .info_panel > .info_box > .subheading .vc_role_icons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

body .main .info_panel > .info_box > .subheading .vc_role_icons img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, .25));
}

body .main .info_panel > .info_box > .subheading .vc_role_icons .vc_gender {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    background: #8a8a8a;
    box-shadow: 1px 2px 3px rgba(0, 0, 0, .25);
}

body .main .info_panel > .info_box > .subheading .vc_role_icons .vc_gender_male {
    background: #3d8bfd;
}

body .main .info_panel > .info_box > .subheading .vc_role_icons .vc_gender_female {
    background: #e8508f;
}

body .main .info_panel > .info_box > .subheading .vc_role_icons .vc_gender_trans {
    background: #9b59d0;
}

body .main .info_panel > .info_box > .subheading .vc_role_icons .vc_age {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

/* VIP and Super VIP: the animated role badge is big so they stand out */
body .main .info_panel > .info_box > .subheading .vc_role_icons img[src*="/site_roles/7-gr-"],
body .main .info_panel > .info_box > .subheading .vc_role_icons img[src*="/site_roles/8-gr-"] {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 0 6px rgba(255, 196, 0, .55)) drop-shadow(1px 2px 3px rgba(0, 0, 0, .3));
}

/* generation under the gender and age row */
body .main .info_panel > .info_box > .subheading .vc_generation {
    display: block;
    margin-top: 10px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .02em;
    opacity: .75;
}

/* referral link under the balance */
body .main .info_panel .vc_ref { display: block; width: 100%; white-space: normal; text-align: left; }
body .main .info_panel .vc_ref_row { display: flex; gap: 6px; margin-top: 4px; }
body .main .info_panel .vc_ref_link { flex: 1; min-width: 0; font-size: 13px; padding: 6px 8px; border: 1px solid rgba(127, 127, 127, .35); border-radius: 8px; background: rgba(127, 127, 127, .08); color: inherit; }
body .main .info_panel .vc_ref_copy { flex: none; border: 0; border-radius: 8px; padding: 6px 10px; font-size: 13px; font-weight: 600; background: #e91e63; color: #fff; }
body .main .info_panel .vc_ref_info { margin-top: 8px; font-size: 13px; }
body .main .info_panel .vc_ref_info summary { cursor: pointer; font-weight: 600; }
body .main .info_panel .vc_ref_info ul { margin: 6px 0 0; padding-left: 18px; white-space: normal; }
body .main .info_panel .vc_ref_info li { margin-bottom: 4px; }
body .main .info_panel .vc_ref_stats { margin-top: 8px; font-size: 13px; opacity: .8; }

/* admin: visits by referral links */
body .main .info_panel .vc_ref_admin_grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 4px; }
body .main .info_panel .vc_ref_admin_grid > div { text-align: center; padding: 6px 2px; border-radius: 8px; background: rgba(127, 127, 127, .1); }
body .main .info_panel .vc_ref_admin_grid b { display: block; font-size: 18px; line-height: 1.2; }
body .main .info_panel .vc_ref_admin_grid span { font-size: 11px; opacity: .75; }
body .main .info_panel .vc_ref_admin ol { margin: 6px 0 0; padding-left: 20px; }
body .main .info_panel .vc_ref_admin .get_info { cursor: pointer; text-decoration: underline; }
body .main .info_panel .vc_ref_note { margin-top: 6px; font-size: 11px; opacity: .6; }

/* partner programme window from the side menu */
.vc_ref_modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .55); }
.vc_ref_modal .vc_ref_card { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 22px 20px 18px; border-radius: 16px; background: #fff; color: #222; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); font-size: 14px; line-height: 1.45; text-align: left; }
.vc_ref_modal .vc_ref_close { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 26px; line-height: 1; color: inherit; opacity: .6; }
.vc_ref_modal .vc_ref_title { font-size: 20px; font-weight: 800; margin-bottom: 4px; padding-right: 24px; }
.vc_ref_modal .vc_ref_lead { opacity: .8; margin-bottom: 10px; }
.vc_ref_modal .vc_ref_label { font-weight: 700; margin: 12px 0 4px; }
.vc_ref_modal .vc_ref_row { display: flex; gap: 6px; }
.vc_ref_modal .vc_ref_link { flex: 1; min-width: 0; font-size: 13px; padding: 7px 9px; border: 1px solid rgba(127, 127, 127, .35); border-radius: 8px; background: rgba(127, 127, 127, .08); color: inherit; }
.vc_ref_modal .vc_ref_copy { flex: none; border: 0; border-radius: 8px; padding: 7px 12px; font-size: 13px; font-weight: 600; background: #e91e63; color: #fff; }
.vc_ref_modal ul { margin: 0; padding-left: 18px; }
.vc_ref_modal li { margin-bottom: 5px; }
.vc_ref_modal .vc_ref_guest { margin-top: 6px; font-size: 13px; color: #c2185b; }
.vc_ref_modal .vc_ref_stats { margin-top: 12px; font-size: 13px; opacity: .8; }
body.dark_mode .vc_ref_modal .vc_ref_card, [data-bs-theme="dark"] .vc_ref_modal .vc_ref_card { background: #2a1630; color: #eee; }
.vc_ref_menu_icon { display: inline-flex; line-height: 1; }
body .main .side_navigation .vc_ref_menu_icon svg { overflow: visible; width: 30px !important; height: 30px !important; max-width: none !important; max-height: none !important; }
/* green paper money: the bills fan out and flutter */
.vc_ref_menu_icon .vc_bill { transform-box: fill-box; transform-origin: 50% 100%; }
.vc_ref_menu_icon .vc_bill_back { animation: vc_bill_back 2.8s ease-in-out infinite; }
.vc_ref_menu_icon .vc_bill_mid { animation: vc_bill_mid 2.8s ease-in-out infinite; }
.vc_ref_menu_icon .vc_bill_front { animation: vc_bill_front 2.8s ease-in-out infinite; }
@keyframes vc_bill_back { 0%, 100% { transform: rotate(-10deg) translateY(1px); } 50% { transform: rotate(-26deg) translate(-2px, -1px); } }
@keyframes vc_bill_mid { 0%, 100% { transform: rotate(6deg); } 50% { transform: rotate(18deg) translate(1px, -1px); } }
@keyframes vc_bill_front { 0%, 100% { transform: translateY(2px) skewX(0deg); } 30% { transform: translateY(0) skewX(-4deg); } 60% { transform: translateY(-2px) skewX(4deg); } }
@media (prefers-reduced-motion: reduce) { .vc_ref_menu_icon .vc_bill { animation: none; } }

/* user block at the bottom of the side menu: buttons instead of the hidden pop-up menu */
body .main .side_navigation > .bottom.side_navigation_footer {
    height: auto;
    padding-bottom: 10px;
}
body .main .side_navigation > .bottom.side_navigation_footer > .child_menu,
body .main .side_navigation > .bottom.side_navigation_footer > .user_info > .right {
    display: none !important;
}
body .main .side_navigation > .bottom.side_navigation_footer > .user_info {
    cursor: default;
}
body .main .vc_user_actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
}
body .main .vc_user_actions .vc_ua_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: transform .15s ease, filter .15s ease, background .15s ease;
}
body .main .vc_user_actions .vc_ua_btn:hover { transform: translateY(-1px); }
body .main .vc_user_actions .vc_ua_btn.processing { opacity: .6; pointer-events: none; }
body .main .vc_user_actions .vc_ua_main {
    flex: 1 1 0;
    min-width: 0;
    height: 34px;
    padding: 0 8px;
    border-radius: 10px;
    background: linear-gradient(135deg, #8e44ec, #6a1fd1);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 3px 8px rgba(106, 31, 209, .3);
}
body .main .vc_user_actions .vc_ua_main:hover { filter: brightness(1.1); }
body .main .vc_user_actions .vc_ua_icons {
    display: flex;
    gap: 6px;
    width: 100%;
    justify-content: space-between;
}
body .main .vc_user_actions .vc_ua_icon {
    flex: 1 1 0;
    height: 34px;
    border-radius: 10px;
    background: rgba(142, 68, 236, .1);
    color: #7a2fe0;
}
body .main .vc_user_actions .vc_ua_icon:hover { background: rgba(142, 68, 236, .2); }
body .main .vc_user_actions .vc_ua_logout { color: #e53935; background: rgba(229, 57, 53, .1); }
body .main .vc_user_actions .vc_ua_logout:hover { background: rgba(229, 57, 53, .2); }
body .main .vc_user_actions .vc_ua_status i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #9e9e9e;
    box-shadow: 0 0 0 3px rgba(158, 158, 158, .25);
}
body .main .vc_user_actions .vc_ua_status.is_online i { background: #2ecc71; box-shadow: 0 0 0 3px rgba(46, 204, 113, .25); }
body.dark_mode .main .vc_user_actions .vc_ua_icon { background: rgba(255, 255, 255, .08); color: #d6b8ff; }
body.dark_mode .main .vc_user_actions .vc_ua_logout { color: #ff6b6b; }

body .main .vc_user_actions { position: relative; }
body .main .vc_user_actions .vc_ua_vip_note {
    display: none; position: absolute; left: 12px; right: 12px; bottom: calc(100% + 6px); z-index: 50;
    padding: 8px 10px; border-radius: 10px; text-align: center; font-size: 13px; font-weight: 700;
    color: #fff; background: linear-gradient(135deg, #f5a623, #e67e22); box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}

/* top players window */
.vc_top_menu_icon { font-size: 20px; line-height: 1; display: inline-block; animation: vc_top_shine 3s ease-in-out infinite; }
@keyframes vc_top_shine { 0%, 80%, 100% { transform: none; } 88% { transform: rotate(-12deg) scale(1.15); } 94% { transform: rotate(10deg) scale(1.15); } }
.vc_top_modal .vc_top_tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.vc_top_modal .vc_top_tab { border: 0; border-radius: 9px; padding: 6px 10px; font-size: 12px; font-weight: 700; background: rgba(142, 68, 236, .1); color: #7a2fe0; }
.vc_top_modal .vc_top_tab.active { background: linear-gradient(135deg, #8e44ec, #6a1fd1); color: #fff; }
.vc_top_modal .vc_top_list { list-style: none; margin: 0; padding: 0; }
.vc_top_modal .vc_top_list li { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid rgba(127, 127, 127, .15); }
.vc_top_modal .vc_top_place { width: 28px; flex: none; text-align: center; font-weight: 800; font-size: 15px; }
.vc_top_modal .vc_top_name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; cursor: pointer; }
.vc_top_modal .vc_top_name:hover { text-decoration: underline; }
.vc_top_modal .vc_top_score { flex: none; text-align: right; line-height: 1.2; }
.vc_top_modal .vc_top_score small { display: block; font-size: 11px; opacity: .65; }
.vc_top_modal .vc_top_empty { padding: 16px 4px; opacity: .75; }
.vc_top_modal .vc_top_note { margin-top: 10px; font-size: 11px; opacity: .6; }
body.dark_mode .vc_top_modal .vc_top_tab { color: #d6b8ff; background: rgba(255, 255, 255, .08); }
body.dark_mode .vc_top_modal .vc_top_tab.active { color: #fff; }

/* top players: table with wins, draws, losses, games */
.vc_top_modal .vc_top_prize { margin: 6px 0 4px; padding: 9px 12px; border-radius: 12px; font-size: 14px; background: linear-gradient(135deg, #fff4d6, #ffe7f1); color: #6b3d00; }
.vc_top_modal .vc_top_head, .vc_top_modal .vc_top_list li { display: grid; grid-template-columns: 28px 1fr 34px 34px 34px 38px; align-items: center; gap: 4px; }
.vc_top_modal .vc_top_head { padding: 4px; font-size: 12px; font-weight: 700; opacity: .65; text-align: center; }
.vc_top_modal .vc_top_head span:nth-child(2) { text-align: left; }
.vc_top_modal .vc_top_list li { display: grid; padding: 8px 4px; }
.vc_top_modal .vc_top_list li.first { background: linear-gradient(90deg, rgba(255, 200, 30, .18), transparent); border-radius: 10px; }
.vc_top_modal .vc_top_num { text-align: center; font-weight: 700; font-size: 14px; }
.vc_top_modal .vc_top_num.win { color: #2e9e4f; font-size: 16px; }
.vc_top_modal .vc_top_num.lose { color: #c2185b; }
.vc_top_modal .vc_top_num.played { opacity: .7; }
.vc_top_modal .vc_top_bot { font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 6px; background: rgba(142, 68, 236, .12); color: #7a2fe0; vertical-align: 1px; }
.vc_top_modal .vc_top_last { margin-top: 10px; font-size: 13px; }
.vc_top_modal .vc_top_last b { cursor: pointer; }
body.dark_mode .vc_top_modal .vc_top_prize { background: rgba(255, 200, 30, .12); color: #ffd98a; }
