﻿html { background-color: #f6f6f6; }
[data-theme="dim"] html, [data-theme="midnight"] html { background: var(--bg); }
[data-theme="dark"] html { background: #14110e; }
html:not([data-theme="dark"]):not([data-theme="midnight"]):not([data-theme="dim"]) body { background-color: #f6f6f6; }
html:not([data-theme="dark"]):not([data-theme="midnight"]):not([data-theme="dim"]) footer { background: transparent; }
html:not([data-theme="dark"]):not([data-theme="midnight"]):not([data-theme="dim"]) footer .wrapper { border-radius: 28px 28px 0 0; margin-top: 40px; box-shadow: 0 0 34px rgba(20,15,10,0.07); }
#join_us { background-color: #f6f6f6; }
.flying { border-radius: 20px; }
.br { border-radius: 18px; }
.flying { border-radius: 20px; }
.br { border-radius: 18px; }

/* ---------- Переменные тем ---------- */
:root {
    --panel: #ffffff;
}

[data-theme="dim"] {
    --panel: #2b2d31;
    --gg-body-bg: #232428;          /* фон страницы */
    --gg-section-bg: #2b2d31;       /* фон секций/карточек */
    --gg-surface: #313338;          /* кнопки, поля */
    --gg-border: #3b3d44;           /* рамки */
    --gg-text: #f2f3f5;             /* основной текст */
    --gg-strong: #ffffff;           /* заголовки */
    --gg-muted: #9aa0b8;            /* второстепенный */
    --bg: #232428;
    --section-bg: #2b2d31;
    --surface: #313338;
    --border: #3b3d44;
    --text: #f2f3f5;
    --strong: #ffffff;
    --muted: #9aa0b8;
    color-scheme: dark;
}

[data-theme="dark"] {
    --panel: #1f1b18;
    --bg: #14110e;
    --section-bg: #1f1b18;
    --surface: #2a2420;
    --border: #3a322c;
    --text: #f2eee8;
    --strong: #f7f3ed;
    --muted: #8a8f9c;
    color-scheme: dark;
}

[data-theme="midnight"] {
    --panel: #0e0f1a;
    --gg-body-bg: #05060c;          /* почти чёрный с сине-фиолетовым оттенком */
    --gg-section-bg: #0e0f1a;       /* фон секций/карточек */
    --gg-surface: #171826;          /* кнопки, поля */
    --gg-border: #262740;           /* рамки */
    --gg-text: #e9e8f3;             /* основной текст */
    --gg-strong: #ffffff;           /* заголовки */
    --gg-muted: #83849e;            /* второстепенный */
    --bg: #05060c;
    --section-bg: #0e0f1a;
    --surface: #171826;
    --border: #262740;
    --text: #e9e8f3;
    --strong: #ffffff;
    --muted: #83849e;
    color-scheme: dark;
}

/* ---------- Кнопка переключения темы (в шапке) ---------- */
.gg-theme-btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 41px;
    height: 41px;
    -webkit-box-flex: 0;
    -ms-flex: none;
    flex: none;
    border: none;
    border-bottom: 4px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    -webkit-box-shadow: 0px 25px 45px rgba(0, 0, 0, 0.15);
    box-shadow: 0px 25px 45px rgba(0, 0, 0, 0.15);
    color: #1b1712;
    cursor: pointer;
    transition: -webkit-filter 0.2s ease, transform 0.2s ease;
    transition: filter 0.2s ease, transform 0.2s ease;
}
.gg-theme-btn i {
    font-size: 15px;
    color: var(--accent);
}
.gg-theme-btn:hover {
    -webkit-transform: translateY(-1px);
    -ms-transform: translateY(-1px);
    transform: translateY(-1px);
    -webkit-filter: brightness(0.97);
    filter: brightness(0.97);
}
.gg-header-actions .gg-theme-btn {
    margin-right: 2px;
}

/* ---------- ТЕМНЫЕ/ТЁМНЫЕ ТЕМЫ (общие для ash/dark/onyx) ---------- */
/* Каждая тёмная тема отдельно (переменные разные), но правила одни. */

/* База */
[data-theme="dim"] body { background: var(--bg); color: var(--text); }
[data-theme="dark"] body { background: #14110e; color: #f2eee8; }
[data-theme="midnight"] body { background: var(--bg); color: var(--text); }

/* Карточки-секции и подвал */
[data-theme="dim"] section { background-color: var(--section-bg); border-bottom-color: var(--border); }
[data-theme="dim"] footer,
[data-theme="dim"] footer .wrapper { background-color: var(--section-bg); }
[data-theme="dark"] section { background-color: #1f1b18; border-bottom-color: #2a2420; }
[data-theme="dark"] footer,
[data-theme="dark"] footer .wrapper { background-color: #1f1b18; }
[data-theme="midnight"] section { background-color: var(--section-bg); border-bottom-color: var(--border); }
[data-theme="midnight"] footer,
[data-theme="midnight"] footer .wrapper { background-color: var(--section-bg); }
[data-theme="dim"] footer,
[data-theme="dark"] footer,
[data-theme="midnight"] footer { background: transparent; }
[data-theme="dim"] footer .wrapper,
[data-theme="dark"] footer .wrapper,
[data-theme="midnight"] footer .wrapper { border-radius: 28px 28px 0 0; margin-top: 40px; }

[data-theme="dim"] footer .wrapper,
[data-theme="midnight"] footer .wrapper { color: var(--muted); }
[data-theme="dark"] footer .wrapper { color: #b8b2a9; }

[data-theme="dim"] footer a,
[data-theme="midnight"] footer a { color: var(--text); }
[data-theme="dark"] footer a { color: #f2eee8; }
[data-theme="dim"] footer a:hover,
[data-theme="midnight"] footer a:hover { color: var(--accent); }
[data-theme="dark"] footer a:hover { color: var(--accent); }

[data-theme="dim"] .copyright .copy,
[data-theme="midnight"] .copyright .copy { color: var(--text); }
[data-theme="dark"] .copyright .copy { color: #f2eee8; }

/* Тексты в секциях */
[data-theme="dim"] section h1,
[data-theme="dim"] section h2,
[data-theme="dim"] section h3,
[data-theme="dim"] section h4,
[data-theme="dim"] section h5,
[data-theme="dark"] section h1,
[data-theme="dark"] section h2,
[data-theme="dark"] section h3,
[data-theme="dark"] section h4,
[data-theme="dark"] section h5,
[data-theme="midnight"] section h1,
[data-theme="midnight"] section h2,
[data-theme="midnight"] section h3,
[data-theme="midnight"] section h4,
[data-theme="midnight"] section h5 {
    color: var(--strong);
}

[data-theme="dim"] section p,
[data-theme="dim"] section li,
[data-theme="dim"] section td,
[data-theme="dim"] section th,
[data-theme="dim"] section div:not([class]),
[data-theme="midnight"] section p,
[data-theme="midnight"] section li,
[data-theme="midnight"] section td,
[data-theme="midnight"] section th,
[data-theme="midnight"] section div:not([class]) {
    color: var(--text);
}
[data-theme="dark"] section p,
[data-theme="dark"] section li,
[data-theme="dark"] section td,
[data-theme="dark"] section th,
[data-theme="dark"] section div:not([class]) {
    color: #d8d2c9;
}

[data-theme="dim"] section .muted,
[data-theme="dim"] section .copyip,
[data-theme="midnight"] section .muted,
[data-theme="midnight"] section .copyip {
    color: var(--muted);
}
[data-theme="dark"] section .muted,
[data-theme="dark"] section .copyip {
    color: #8a8f9c;
}

/* Меню в шапке */
[data-theme="dim"] header nav ul li a *,
[data-theme="midnight"] header nav ul li a * { color: var(--muted); }
[data-theme="dark"] header nav ul li a * { color: #9aa0b8; }
[data-theme="dim"] header nav ul li a:hover *,
[data-theme="midnight"] header nav ul li a:hover * { color: var(--strong); }
[data-theme="dark"] header nav ul li a:hover * { color: #fff; }
[data-theme="dim"] header nav ul .active,
[data-theme="midnight"] header nav ul .active {
    background-color: var(--surface);
    border-bottom-color: var(--border);
}
[data-theme="dark"] header nav ul .active {
    background-color: #2a2420;
    border-bottom-color: #3a322c;
}
[data-theme="dim"] header nav ul .active a *,
[data-theme="midnight"] header nav ul .active a *,
[data-theme="dark"] header nav ul .active a * { color: #fff; }

/* Белые пилюли-кнопки */
[data-theme="dim"] .button { background-color: var(--surface); border-bottom-color: var(--border); }
[data-theme="dim"] .button span { color: var(--text); }
[data-theme="midnight"] .button { background-color: var(--surface); border-bottom-color: var(--border); }
[data-theme="midnight"] .button span { color: var(--text); }
[data-theme="dark"] .button { background-color: #2a2420; border-bottom-color: #3a322c; }
[data-theme="dark"] .button span { color: #f2eee8; }
[data-theme="dim"] .button:hover span,
[data-theme="midnight"] .button:hover span,
[data-theme="dark"] .button:hover span { color: var(--accent); }

/* Мобильное меню на весь экран */
@media only screen and (max-width: 1280px) {
    [data-theme="dim"] header #header_menu,
    [data-theme="midnight"] header #header_menu { background: var(--bg); }
    [data-theme="dark"] header #header_menu { background: #14110e; }
}

/* Авторизация: кнопка в шапке */
[data-theme="dim"] .gg-auth-btn,
[data-theme="midnight"] .gg-auth-btn { background: var(--surface); border-bottom-color: var(--border); color: var(--text); }
[data-theme="dim"] .gg-auth-btn:hover,
[data-theme="midnight"] .gg-auth-btn:hover { color: var(--text); }
[data-theme="dark"] .gg-auth-btn { background: #2a2420; border-bottom-color: #3a322c; color: #f2eee8; }
[data-theme="dark"] .gg-auth-btn:hover { color: #f2eee8; }

/* Авторизация: выпадающее меню */
[data-theme="dim"] .gg-pop,
[data-theme="midnight"] .gg-pop { background: var(--section-bg); border-bottom-color: var(--border); }
[data-theme="dark"] .gg-pop { background: #1f1b18; border-bottom-color: #3a322c; }
[data-theme="dim"] .gg-pop .who,
[data-theme="dim"] .gg-pop a,
[data-theme="midnight"] .gg-pop .who,
[data-theme="midnight"] .gg-pop a { color: var(--text); }
[data-theme="dark"] .gg-pop .who,
[data-theme="dark"] .gg-pop a { color: #f2eee8; }
[data-theme="dim"] .gg-pop a:hover,
[data-theme="midnight"] .gg-pop a:hover,
[data-theme="dark"] .gg-pop a:hover {
    background: rgba(var(--accent-rgb), 0.14);
    color: var(--accent);
}

/* Авторизация: модалка */
[data-theme="dim"] .gg-modal,
[data-theme="midnight"] .gg-modal { background: var(--section-bg); border-bottom-color: var(--border); }
[data-theme="dark"] .gg-modal { background: #1f1b18; border-bottom-color: #3a322c; }
[data-theme="dim"] .gg-modal h3,
[data-theme="dim"] .gg-modal label,
[data-theme="dim"] .gg-close:hover,
[data-theme="midnight"] .gg-modal h3,
[data-theme="midnight"] .gg-modal label,
[data-theme="midnight"] .gg-close:hover { color: var(--text); }
[data-theme="dark"] .gg-modal h3,
[data-theme="dark"] .gg-modal label,
[data-theme="dark"] .gg-close:hover { color: #f2eee8; }
[data-theme="dim"] .gg-sub,
[data-theme="dim"] .gg-close,
[data-theme="midnight"] .gg-sub,
[data-theme="midnight"] .gg-close { color: var(--muted); }
[data-theme="dark"] .gg-sub,
[data-theme="dark"] .gg-close { color: #8a8f9c; }
[data-theme="dim"] .gg-modal input,
[data-theme="midnight"] .gg-modal input { background: var(--surface); border-color: var(--border); color: var(--text); }
[data-theme="dark"] .gg-modal input { background: #14110e; border-color: #3a322c; color: #f2eee8; }
[data-theme="dim"] .gg-modal input:focus,
[data-theme="midnight"] .gg-modal input:focus,
[data-theme="dark"] .gg-modal input:focus { border-color: var(--accent); }
[data-theme="dim"] .gg-switch,
[data-theme="midnight"] .gg-switch { color: var(--muted); }
[data-theme="dark"] .gg-switch { color: #b8b2a9; }

/* Покупка/карточки магазина */
[data-theme="dim"] #store_items .card .buy,
[data-theme="midnight"] #store_items .card .buy { background-color: var(--surface); }
[data-theme="dark"] #store_items .card .buy { background-color: #2a2420; }

/* Страницы-карточки (maintenance.html, 404.html) */
[data-theme="dim"] .card,
[data-theme="midnight"] .card { background: var(--section-bg); }
[data-theme="dark"] .card { background: #1f1b18; }
[data-theme="dim"] .card h1,
[data-theme="midnight"] .card h1 { color: var(--strong); }
[data-theme="dark"] .card h1 { color: #f7f3ed; }
[data-theme="dim"] .card p,
[data-theme="midnight"] .card p { color: var(--muted); }
[data-theme="dark"] .card p { color: #b8b2a9; }
[data-theme="dim"] .logotype .logo_text,
[data-theme="midnight"] .logotype .logo_text { color: var(--text); }
[data-theme="dark"] .logotype .logo_text { color: #f2eee8; }
[data-theme="dim"] .button.ghost,
[data-theme="midnight"] .button.ghost { background: var(--surface); color: var(--text); border-bottom-color: var(--border); }
[data-theme="dark"] .button.ghost { background: #2a2420; color: #f2eee8; border-bottom-color: #3a322c; }

/* ---------- Дополнительное покрытие тёмных тем ---------- */

/* Шапка: логотип */
[data-theme="dim"] header .logotype .logo_text,
[data-theme="midnight"] header .logotype .logo_text { color: var(--text); }
[data-theme="dark"] header .logotype .logo_text { color: #f2eee8; }

/* Блок «Присоединяйтесь» и IP */
[data-theme="dim"] #join_us { background-color: var(--section-bg); }
[data-theme="midnight"] #join_us { background-color: var(--section-bg); }
[data-theme="dark"] #join_us { background-color: #1f1b18; }
[data-theme="dim"] #join_us h2,
[data-theme="midnight"] #join_us h2 { color: var(--strong); }
[data-theme="dark"] #join_us h2 { color: #f7f3ed; }
[data-theme="dim"] #join_us .left { color: var(--text); }
[data-theme="midnight"] #join_us .left { color: var(--text); }
[data-theme="dark"] #join_us .left { color: #d8d2c9; }
[data-theme="dim"] .copyip,
[data-theme="midnight"] .copyip { border-color: var(--border); color: var(--muted); }
[data-theme="dark"] .copyip { border-color: #3a322c; color: #8a8f9c; }
[data-theme="dim"] .progress,
[data-theme="midnight"] .progress { background: var(--border); }
[data-theme="dark"] .progress { background: #3a322c; }

/* Переключатели товаров в магазине */
[data-theme="dim"] .group-button,
[data-theme="midnight"] .group-button { border-color: var(--border); }
[data-theme="dark"] .group-button { border-color: #3a322c; }
[data-theme="dim"] .group-button .button span,
[data-theme="dim"] .group-button .button i,
[data-theme="midnight"] .group-button .button span,
[data-theme="midnight"] .group-button .button i { color: var(--muted); }
[data-theme="dark"] .group-button .button span,
[data-theme="dark"] .group-button .button i { color: #b8b2a9; }
[data-theme="dim"] .group-button .active,
[data-theme="midnight"] .group-button .active { background-color: var(--surface); border-bottom-color: var(--border); }
[data-theme="dark"] .group-button .active { background-color: #2a2420; border-bottom-color: #3a322c; }

/* Окно покупки и тосты */
[data-theme="dim"] .mymodal .modal-dialog,
[data-theme="midnight"] .mymodal .modal-dialog { background: var(--section-bg); }
[data-theme="dark"] .mymodal .modal-dialog { background: #1f1b18; }
[data-theme="dim"] .mymodal .modal-dialog h3,
[data-theme="dim"] .mymodal .modal-dialog h4,
[data-theme="dim"] .mymodal .modal-dialog p,
[data-theme="dim"] .mymodal .modal-dialog span,
[data-theme="dim"] .mymodal .modal-dialog label,
[data-theme="midnight"] .mymodal .modal-dialog h3,
[data-theme="midnight"] .mymodal .modal-dialog h4,
[data-theme="midnight"] .mymodal .modal-dialog p,
[data-theme="midnight"] .mymodal .modal-dialog span,
[data-theme="midnight"] .mymodal .modal-dialog label,
[data-theme="dark"] .mymodal .modal-dialog h3,
[data-theme="dark"] .mymodal .modal-dialog h4,
[data-theme="dark"] .mymodal .modal-dialog p,
[data-theme="dark"] .mymodal .modal-dialog span,
[data-theme="dark"] .mymodal .modal-dialog label { color: var(--text); }
[data-theme="dim"] .mymodal .modal-dialog .muted,
[data-theme="dim"] .mymodal .modal-dialog .sub,
[data-theme="midnight"] .mymodal .modal-dialog .muted,
[data-theme="midnight"] .mymodal .modal-dialog .sub,
[data-theme="dark"] .mymodal .modal-dialog .muted,
[data-theme="dark"] .mymodal .modal-dialog .sub { color: var(--muted); }
[data-theme="dim"] .mymodal .modal-dialog input,
[data-theme="dim"] .mymodal .modal-dialog select,
[data-theme="midnight"] .mymodal .modal-dialog input,
[data-theme="midnight"] .mymodal .modal-dialog select,
[data-theme="dark"] .mymodal .modal-dialog input,
[data-theme="dark"] .mymodal .modal-dialog select { background: var(--surface); border-color: var(--border); color: var(--text); }
[data-theme="dim"] #toasts .toast,
[data-theme="midnight"] #toasts .toast,
[data-theme="dark"] #toasts .toast { background-color: var(--section-bg); color: var(--text); }
[data-theme="dim"] #toasts .toast .toast_title,
[data-theme="midnight"] #toasts .toast .toast_title,
[data-theme="dark"] #toasts .toast .toast_title { color: var(--text); }
[data-theme="dim"] #toasts .toast .toast_text,
[data-theme="midnight"] #toasts .toast .toast_text,
[data-theme="dark"] #toasts .toast .toast_text { color: var(--muted); }

/* Личный кабинет */
[data-theme="dark"] #lc_section .lc_bg { background-color: #1f1b18; border-bottom-color: #3a322c; }
[data-theme="dark"] #lc_section .lc_nav { border-bottom-color: #3a322c; }
[data-theme="dark"] #lc_section .lc_nav a { color: #8a8f9c; }
[data-theme="dark"] #lc_section .lc_nav a.active,
[data-theme="dark"] #lc_section .lc_nav a:hover { color: var(--accent); }
[data-theme="dark"] .lc_row { border-color: #3a322c; background: #2a2420; }
[data-theme="dark"] #lc_section .lc_row * { color: #d8d2c9 !important; }

/* Соцсети и низ */
[data-theme="dim"] #social div,
[data-theme="midnight"] #social div,
[data-theme="dark"] #social div { background-color: var(--section-bg); }

/* Карточки-секции: рамки и тени не светлые */
[data-theme="dim"] section,
[data-theme="midnight"] section,
[data-theme="dark"] section { -webkit-box-shadow: none; box-shadow: none; }

/* Покупка в карточке магазина */
[data-theme="dim"] #store_items .card .name,
[data-theme="dim"] #store_items .card .price,
[data-theme="midnight"] #store_items .card .name,
[data-theme="midnight"] #store_items .card .price,
[data-theme="dark"] #store_items .card .name,
[data-theme="dark"] #store_items .card .price { color: var(--strong); }

/* Прокрутка и фон страницы */
[data-theme="dim"] ::-webkit-scrollbar-track,
[data-theme="midnight"] ::-webkit-scrollbar-track { background: var(--bg); }
[data-theme="dark"] ::-webkit-scrollbar-track { background: #14110e; }

/* Автор "поддержка — скоро" */
[data-theme="dim"] header nav a .gg-soon,
[data-theme="midnight"] header nav a .gg-soon,
[data-theme="dark"] header nav a .gg-soon { background: var(--accent); color: #fff; }

/* ---------- Кнопка «Поддержка» — скоро ---------- */
header nav a .gg-soon,
.head nav a .gg-soon {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.4px;
    line-height: 1.4;
    vertical-align: middle;
}

/* ---------- Ивент / анонс на главной ---------- */
#gg_event {
    position: relative;
    overflow: hidden;
    padding: 64px 20px;
    text-align: center;
    background: linear-gradient(135deg, #14110e 0%, #2a1a10 45%, #14110e 100%);
    border-bottom: 1px solid #ececec;
}
#gg_event[hidden] { display: none; }
.gg-event-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.gg-event-bg > div {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(252, 148, 4, 0.28) 0%, rgba(252, 148, 4, 0) 70%);
    -webkit-animation: ggEventFloat 9s ease-in-out infinite alternate;
    animation: ggEventFloat 9s ease-in-out infinite alternate;
}
.gg-event-bg .gg-event-p1 { width: 340px; height: 340px; top: -120px; left: -80px; }
.gg-event-bg .gg-event-p2 { width: 260px; height: 260px; top: 10%; right: -70px; -webkit-animation-delay: 1.2s; animation-delay: 1.2s; }
.gg-event-bg .gg-event-p3 { width: 200px; height: 200px; bottom: -60px; left: 22%; -webkit-animation-delay: 2.4s; animation-delay: 2.4s; }
.gg-event-bg .gg-event-p4 { width: 150px; height: 150px; top: -40px; left: 42%; background: radial-gradient(circle, rgba(255, 77, 109, 0.30) 0%, rgba(255, 77, 109, 0) 70%); -webkit-animation-delay: 0.6s; animation-delay: 0.6s; }
.gg-event-bg .gg-event-p5 { width: 120px; height: 120px; bottom: 16%; right: 28%; background: radial-gradient(circle, rgba(64, 156, 255, 0.30) 0%, rgba(64, 156, 255, 0) 70%); -webkit-animation-delay: 3.1s; animation-delay: 3.1s; }
.gg-event-bg .gg-event-p6 { width: 90px; height: 90px; top: 44%; left: 12%; background: radial-gradient(circle, rgba(255, 205, 86, 0.35) 0%, rgba(255, 205, 86, 0) 70%); -webkit-animation-delay: 1.8s; animation-delay: 1.8s; }
.gg-event-bg .gg-event-p7 { width: 70px; height: 70px; bottom: 8%; left: 60%; background: radial-gradient(circle, rgba(180, 120, 255, 0.35) 0%, rgba(180, 120, 255, 0) 70%); -webkit-animation-delay: 0.9s; animation-delay: 0.9s; }
.gg-event-bg .gg-event-p8 { width: 180px; height: 180px; top: -60px; right: 34%; background: radial-gradient(circle, rgba(252, 148, 4, 0.22) 0%, rgba(252, 148, 4, 0) 70%); -webkit-animation-delay: 2.9s; animation-delay: 2.9s; }
@-webkit-keyframes ggEventFloat {
    0% { -webkit-transform: translateY(0) scale(1); transform: translateY(0) scale(1); }
    100% { -webkit-transform: translateY(26px) scale(1.08); transform: translateY(26px) scale(1.08); }
}
@keyframes ggEventFloat {
    0% { -webkit-transform: translateY(0) scale(1); transform: translateY(0) scale(1); }
    100% { -webkit-transform: translateY(26px) scale(1.08); transform: translateY(26px) scale(1.08); }
}
.gg-event-box {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}
.gg-event-photo {
    max-width: 720px;
    margin: 0 auto 22px;
    border-radius: 18px;
    overflow: hidden;
    -webkit-box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.gg-event-photo img {
    display: block;
    width: 100%;
    height: auto;
}
#gg_event h2 {
    margin: 0 0 18px;
    font-size: 34px;
    font-weight: 900;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.55);
}
.gg-event-desc {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 640px;
}
.gg-event-music {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border: none;
    border-radius: 999px;
    background: var(--accent, #fc9404);
    color: #fff;
    font: 700 14px 'Mazzard M', Arial, sans-serif;
    cursor: pointer;
    -webkit-box-shadow: 0 14px 34px rgba(252, 148, 4, 0.4);
    box-shadow: 0 14px 34px rgba(252, 148, 4, 0.4);
    -webkit-transition: -webkit-transform 0.2s ease, -webkit-filter 0.2s ease;
    transition: -webkit-transform 0.2s ease, -webkit-filter 0.2s ease;
    transition: transform 0.2s ease, filter 0.2s ease;
    transition: transform 0.2s ease, filter 0.2s ease, -webkit-transform 0.2s ease, -webkit-filter 0.2s ease;
}
.gg-event-music:hover {
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-filter: brightness(1.06);
    filter: brightness(1.06);
}
.gg-event-music.playing i {
    -webkit-animation: ggEventSpin 1.6s linear infinite;
    animation: ggEventSpin 1.6s linear infinite;
}
@-webkit-keyframes ggEventSpin {
    0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}
@keyframes ggEventSpin {
    0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}
@media (max-width: 640px) {
    #gg_event { padding: 44px 16px; }
    #gg_event h2 { font-size: 25px; }
}

/* ---------- Ивент: конфетти-канвас ---------- */
#gg_event_fx {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
    pointer-events: none;
}
.gg-event-bg { z-index: 0; }
.gg-event-box { z-index: 1; }

/* Пульсация кнопки музыки, пока ивент активен */
.gg-event-music {
    -webkit-animation: ggEventPulse 2.2s ease-in-out infinite;
    animation: ggEventPulse 2.2s ease-in-out infinite;
}
@-webkit-keyframes ggEventPulse {
    0%, 100% { -webkit-box-shadow: 0 14px 34px rgba(252, 148, 4, 0.35); box-shadow: 0 14px 34px rgba(252, 148, 4, 0.35); }
    50% { -webkit-box-shadow: 0 14px 52px rgba(252, 148, 4, 0.85); box-shadow: 0 14px 52px rgba(252, 148, 4, 0.85); }
}
@keyframes ggEventPulse {
    0%, 100% { -webkit-box-shadow: 0 14px 34px rgba(252, 148, 4, 0.35); box-shadow: 0 14px 34px rgba(252, 148, 4, 0.35); }
    50% { -webkit-box-shadow: 0 14px 52px rgba(252, 148, 4, 0.85); box-shadow: 0 14px 52px rgba(252, 148, 4, 0.85); }
}
.gg-event-music.playing {
    -webkit-animation: none;
    animation: none;
}

/* ---------- Ивент: ряд музыки + визуализатор эквалайзера ---------- */
.gg-event-music-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    gap: 18px;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}
.gg-event-music-row > .gg-event-music {
    -ms-flex-negative: 0;
    flex-shrink: 0;
}
.gg-eq {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    gap: 3px;
    height: 44px;
    padding: 0 8px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.gg-eq span {
    display: block;
    width: 4px;
    height: 6%;
    min-height: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, #ffd28a, #fc9404);
    -webkit-transition: height 70ms linear;
    transition: height 70ms linear;
}

/* ---------- Блоки кода (все языки, highlight.js) ---------- */
pre.gg-code {
    margin: 8px 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: #0d1117;
    color: #e6edf3;
    overflow-x: auto;
    font-size: 12.5px;
    line-height: 1.55;
    border: 1px solid rgba(148, 163, 184, 0.2);
}
pre.gg-code code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    background: none !important;
    padding: 0;
    white-space: pre;
}
.gg-md-code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    background: rgba(120, 120, 130, 0.15);
    border-radius: 5px;
    padding: 1px 6px;
    font-size: 0.92em;
}

/* ---------- Чат: тёмные темы (Dark/Ash/Onyx) ---------- */
[data-theme="dim"] .gg-sidebar, [data-theme="dim"] .gg-chat-box, [data-theme="dim"] .gg-members,
[data-theme="dark"] .gg-sidebar, [data-theme="dark"] .gg-chat-box, [data-theme="dark"] .gg-members,
[data-theme="midnight"] .gg-sidebar, [data-theme="midnight"] .gg-chat-box, [data-theme="midnight"] .gg-members {
    background: var(--section-bg, #1f1b18);
    border-color: var(--border, #3a322c);
    color: var(--text, #f2eee8);
}
[data-theme="dim"] .gg-chat-box .gg-chat-input, [data-theme="dim"] .gg-chat-box .gg-chat-log,
[data-theme="dark"] .gg-chat-box .gg-chat-input, [data-theme="dark"] .gg-chat-box .gg-chat-log,
[data-theme="midnight"] .gg-chat-box .gg-chat-input, [data-theme="midnight"] .gg-chat-box .gg-chat-log {
    background: var(--section-bg, #1f1b18);
}
[data-theme="dim"] .gg-input-row textarea, [data-theme="dim"] .gg-input-row input,
[data-theme="dark"] .gg-input-row textarea, [data-theme="dark"] .gg-input-row input,
[data-theme="midnight"] .gg-input-row textarea, [data-theme="midnight"] .gg-input-row input,
[data-theme="dim"] .gg-input-ico, [data-theme="dim"] .gg-emoji-btn > button, [data-theme="dim"] .gg-sound-btn,
[data-theme="dark"] .gg-input-ico, [data-theme="dark"] .gg-emoji-btn > button, [data-theme="dark"] .gg-sound-btn,
[data-theme="midnight"] .gg-input-ico, [data-theme="midnight"] .gg-emoji-btn > button, [data-theme="midnight"] .gg-sound-btn {
    background: var(--surface, #2a2420);
    border-color: var(--border, #3a322c);
    color: var(--text, #f2eee8);
}
[data-theme="dim"] .gg-input-row textarea:focus, [data-theme="dark"] .gg-input-row textarea:focus, [data-theme="midnight"] .gg-input-row textarea:focus {
    border-color: var(--accent, #fc9404);
}
[data-theme="dim"] .gg-sb-search input, [data-theme="dark"] .gg-sb-search input, [data-theme="midnight"] .gg-sb-search input {
    background: var(--surface, #2a2420);
    border-color: var(--border, #3a322c);
    color: var(--text, #f2eee8);
}
[data-theme="dim"] .gg-chat-empty, [data-theme="dark"] .gg-chat-empty, [data-theme="midnight"] .gg-chat-empty,
[data-theme="dim"] .gg-login-note, [data-theme="dark"] .gg-login-note, [data-theme="midnight"] .gg-login-note {
    color: var(--muted, #8a8f9c);
}
[data-theme="dim"] .gg-member .gg-avatar, [data-theme="dark"] .gg-member .gg-avatar, [data-theme="midnight"] .gg-member .gg-avatar,
[data-theme="dim"] .gg-msg .gg-avatar, [data-theme="dark"] .gg-msg .gg-avatar, [data-theme="midnight"] .gg-msg .gg-avatar,
[data-theme="dim"] .gg-sb-item .gg-sb-ico, [data-theme="dark"] .gg-sb-item .gg-sb-ico, [data-theme="midnight"] .gg-sb-item .gg-sb-ico {
    background: var(--surface, #2a2420);
}
[data-theme="dim"] .gg-msg:hover, [data-theme="dark"] .gg-msg:hover, [data-theme="midnight"] .gg-msg:hover {
    background: rgba(255, 255, 255, 0.03);
}
[data-theme="dim"] .gg-input-row textarea { color: var(--text, #f2eee8); }
[data-theme="dark"] .gg-input-row textarea { color: var(--text, #f2eee8); }
[data-theme="midnight"] .gg-input-row textarea { color: var(--text, #f2eee8); }

/* =============================================================
   Адаптив: планшеты и телефоны (все страницы).
   ============================================================= */
@media (max-width: 1024px) {
    .gg-chat-page { padding: 20px 12px 40px; }
    .gg-layout { grid-template-columns: 1fr !important; }
    .gg-sidebar { max-height: 320px; overflow-y: auto; }
    .gg-members { display: none !important; }
    .gg-chat-box { max-height: calc(100vh - 260px); min-height: 360px; }
    .gg-page { padding: 20px 14px 40px; }
    .gg-page-head h1 { font-size: 26px; }
    .gg-chat-head h1 { font-size: 22px; }
    .gg-toolbar { flex-direction: column; align-items: stretch; }
    .gg-search { min-width: 0; width: 100%; }
    .gg-modal { max-width: 92vw; padding: 18px; }
}

@media (max-width: 640px) {
    .gg-chat-page { padding: 12px 8px 30px; }
    .gg-sidebar { max-height: 240px; }
    .gg-chat-box { max-height: calc(100vh - 210px); min-height: 300px; border-radius: 12px; }
    .gg-chat-head h1 { font-size: 19px; }
    .gg-chat-head p { font-size: 12px; }
    .gg-layout { gap: 8px; }
    .gg-input-row { gap: 5px; }
    .gg-input-row textarea { min-height: 40px; padding: 9px 11px; font-size: 14px; }
    .gg-input-row .gg-input-ico { width: 38px; height: 38px; }
    .gg-input-row .gg-send { padding: 9px 13px; }
    .gg-emoji-btn > button { width: 38px; height: 38px; }
    .gg-chat-input .gg-sound-btn { width: 38px; height: 38px; }
    .gg-chat-input { padding: 8px; }
    .gg-msg { padding: 5px 6px; }
    .gg-msg .gg-avatar { width: 34px; height: 34px; font-size: 13px; }
    .gg-chat-log { padding: 10px; gap: 8px; }
    .gg-date-sep::before, .gg-date-sep::after { width: 20px; }
    .gg-emoji-panel { width: min(276px, 92vw); position: fixed; left: 50%; transform: translateX(-50%); bottom: 80px; }
    .gg-ctx { min-width: 150px; }
    .gg-msg { flex-direction: row; }
    .gg-msg .gg-msg-actions { visibility: visible; opacity: .6; }
    .gg-meta { flex-wrap: wrap; }
    .gg-reactions { gap: 3px; }
    .gg-react-btn { padding: 1px 7px; font-size: 11px; }
    .gg-page { padding: 14px 10px 34px; }
    .gg-page-head h1 { font-size: 21px; gap: 8px; }
    .gg-stats { gap: 8px; }
    .gg-stat { padding: 10px 12px; }
    .gg-board-top { padding: 12px 12px; }
    .gg-topic { padding: 12px 12px; flex-direction: column; align-items: stretch; }
    .gg-topic .t-main { flex: 1; }
    .gg-post { padding: 12px; }
    .gg-post-user { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; }
    .gg-pu-av { width: 40px; height: 40px; margin: 0; font-size: 14px; }
    .gg-topic .t-last { display: none; }
    .gg-pager { gap: 5px; }
    .gg-pg { min-width: 32px; height: 32px; padding: 0 8px; font-size: 12px; }
    .gg-modal { padding: 16px; border-radius: 14px; }
    .gg-modal-btns { flex-direction: column-reverse; }
    .gg-modal-btns .gg-btn { width: 100%; justify-content: center; }
    .gg-msg { max-width: 96%; }
    .gg-msg-b { padding: 8px 11px; }
    .soc-card { padding: 16px; }
    .soc-head { gap: 10px; }
    .soc-av { width: 56px; height: 56px; font-size: 22px; }
    .soc-stats { gap: 12px; font-size: 12px; }
    .soc-composer { flex-direction: column; }
    .soc-composer textarea { height: 50px; }
    .soc-peoples { grid-template-columns: 1fr 1fr; }
    .soc-tabs { flex-wrap: wrap; }
    .soc-tabs .gg-pill { padding: 7px 11px; font-size: 11.5px; }
    .gg-hint { flex-wrap: wrap; }
}

@media (max-width: 380px) {
    .soc-peoples { grid-template-columns: 1fr; }
    .gg-input-row .gg-input-ico, .gg-input-row .gg-send { font-size: 13px; }
}

/* Мобильное меню: скрыть некоторые элементы шапки на телефоне */
@media (max-width: 1024px) {
    .gg-header-actions { display: none; }
}
@media (min-width: 1025px) {
    .menu-button { display: none !important; }
}
/* =============================================================
   Главная страница: карточки, онлайн, галерея — телефоны/планшеты.
   ============================================================= */
@media (max-width: 1024px) {
    .wrapper { padding-left: 12px; padding-right: 12px; }
    .s-online { flex-wrap: wrap; }
    .s-online-wrapp { width: 100%; }
    .server { margin-left: 0; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .g-card .g-photo { min-height: 160px; }
    .g-card .g-body { padding: 14px; }
    .g-name { font-size: 17px; }
    .g-tags { font-size: 11px; }
    .server { padding: 14px; }
    .server .progress { flex-wrap: wrap; }
    .progress-bar { min-width: 60px; }
    .s-online .online { font-size: 12px; }
}

/* =============================================================
   Настройки: панели в одну колонку на телефоне.
   ============================================================= */
@media (max-width: 640px) {
    .settings-wrap, .set-grid, .sec-grid, .gg-settings-grid { grid-template-columns: 1fr !important; }
    .settings-card, .set-card, .sec-card { padding: 14px; }
    .settings-card h3, .set-card h3, .sec-card h3 { font-size: 15px; }
    .settings-card .gg-btn, .set-card .gg-btn, .sec-card .gg-btn { width: 100%; justify-content: center; }
}

/* =============================================================
   Админ-панель: таблицы скроллятся, панели на всю ширину.
   ============================================================= */
@media (max-width: 900px) {
    .wrap { padding: 0 10px; }
    .stats { grid-template-columns: 1fr 1fr; }
    .panel { padding: 14px; overflow-x: auto; }
    table { display: block; overflow-x: auto; white-space: nowrap; }
    .head { padding: 12px 14px; flex-wrap: wrap; gap: 8px; }
    .book-nav button { font-size: 12px; padding: 8px 10px; }
    .book-page > .panel { padding: 14px; }
}
@media (max-width: 480px) {
    .stats { grid-template-columns: 1fr; }
    .stat .num { font-size: 22px; }
    .head h1 { font-size: 17px; }
}

/* =============================================================
   Страховка для любых устройств: ничего не должно вылезать за экран.
   ============================================================= */
html { overflow-x: hidden; }
img, video, canvas, iframe, table { max-width: 100%; }
pre, code { overflow-x: auto; }
* { overflow-wrap: break-word; }
@media (max-width: 640px) {
    body { -webkit-text-size-adjust: 100%; }
    input, select, textarea { font-size: 16px !important; }
    .wrapper, .container { min-width: 0; }
    .head_top, .head, .top { flex-wrap: wrap; }
}

/* =============================================================
   Планшеты: контейнер не должен быть уже экрана.
   ============================================================= */
@media (max-width: 1100px) {
    .wrapper, .container, #app, .gg-page, .gg-chat-page {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
}

/* =============================================================
   Форум на телефоне: темы и мета без негативных отступов.
   ============================================================= */
@media (max-width: 640px) {
    .gg-topic, .gg-topic .t-main, .gg-topic .t-title, .gg-topic .t-meta {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: auto !important;
        min-width: 0 !important;
    }
    .gg-topic .t-title { flex-wrap: wrap; gap: 6px; }
    .gg-board { padding-left: 0 !important; padding-right: 0 !important; }
    .gg-sec-head, .gg-section { padding-left: 8px !important; padding-right: 8px !important; }
    .gg-topic .t-main { padding-right: 0 !important; }
}

/* =============================================================
   Быстрый статус в меню «Аккаунт» (шапка, все страницы).
   ============================================================= */
.gg-acc-status {
    margin: 6px 8px 10px;
    padding: 12px;
    border-radius: 12px;
    background: #f6f4f0;
    border: 1px solid #ececec;
    min-width: 220px;
}
.gg-acc-status.hl {
    margin: 10px 8px 6px;
    border: 1.5px solid var(--accent, #fc9404);
    background: linear-gradient(160deg, rgba(252,148,4,.10), rgba(252,148,4,.03));
    box-shadow: 0 6px 18px rgba(252,148,4,.16);
}
.gg-acc-status-head {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #8a857d;
    margin-bottom: 8px;
}
.gg-acc-status-head i { color: var(--accent); font-size: 9px; }
.gg-acc-status .gg-pop-status-row { gap: 4px; }
.gg-acc-status .gg-st-dot { width: 24px; height: 24px; font-size: 11px; }
.gg-acc-status .gg-pop-status-text {
    flex: 1;
    min-width: 100%;
    width: 100%;
    margin-top: 8px;
    border: 1px solid #e3e3e3;
    border-radius: 9px;
    padding: 7px 10px;
    font-size: 12.5px;
    font-family: "Mazzard M", Arial, sans-serif;
    outline: none;
    background: #fff;
    color: #333;
    box-sizing: border-box;
}
.gg-acc-status .gg-pop-status-text:focus { border-color: var(--accent); }
.gg-acc-status-save {
    margin-top: 8px;
    width: 100%;
    border: 0;
    border-radius: 9px;
    padding: 8px 0;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    transition: filter .15s ease, transform .15s ease;
}
.gg-acc-status-save:hover { filter: brightness(1.08); }
.gg-acc-status-save.ok { background: linear-gradient(135deg, #22c55e, #16a34a); }
[data-theme="dim"] .gg-acc-status, [data-theme="dark"] .gg-acc-status, [data-theme="midnight"] .gg-acc-status {
    background: var(--section-bg, #2a2420);
    border-color: var(--border, #3a322c);
}
[data-theme="dim"] .gg-acc-status .gg-pop-status-text, [data-theme="dark"] .gg-acc-status .gg-pop-status-text, [data-theme="midnight"] .gg-acc-status .gg-pop-status-text {
    background: var(--surface, #241f1c);
    border-color: var(--border, #3a322c);
    color: var(--text, #f2eee8);
}

/* =============================================================
   Профессиональный вид: Чат
   ============================================================= */
.gg-chat-box {
    box-shadow: 0 12px 32px rgba(20, 15, 10, .08);
    border: 1px solid var(--border, #ececec);
    overflow: hidden;
}
.gg-chat-head {
    position: relative;
    border-bottom: 3px solid var(--accent);
    background: linear-gradient(180deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0));
}
[data-theme="dim"] .gg-chat-head, [data-theme="dark"] .gg-chat-head, [data-theme="midnight"] .gg-chat-head {
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, 0));
}
.gg-sb-item { transition: background .15s ease, transform .15s ease, padding-left .15s ease; border-radius: 10px; }
.gg-sb-item:hover { background: rgba(120, 120, 130, .08); }
.gg-sb-item.active {
    background: linear-gradient(90deg, rgba(252, 148, 4, .16), rgba(252, 148, 4, .04));
}
.gg-send {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    box-shadow: 0 6px 16px rgba(252, 148, 4, .35);
    border: 0;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.gg-send:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 8px 20px rgba(252, 148, 4, .45); }
.gg-msg { border-radius: 12px; transition: background .15s ease; }
.gg-msg .gg-avatar { border: 2px solid rgba(255, 255, 255, .6); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
[data-theme="dim"] .gg-msg .gg-avatar, [data-theme="dark"] .gg-msg .gg-avatar, [data-theme="midnight"] .gg-msg .gg-avatar {
    border-color: var(--surface, #2a2420);
}
.gg-msg-b { border: 1px solid var(--border, #f0eeea); box-shadow: 0 3px 10px rgba(20, 15, 10, .05); }
.gg-msg.gg-msg-me .gg-msg-b { border-color: rgba(252, 148, 4, .3); }
.gg-date-sep { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #a9a29a); }
.gg-date-sep::before, .gg-date-sep::after { background: linear-gradient(90deg, transparent, var(--border, #ececec)); height: 1px; }

/* =============================================================
   Профессиональный вид: Форум
   ============================================================= */
.gg-topic { transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.gg-topic:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(20, 15, 10, .10);
    border-color: rgba(252, 148, 4, .35);
}
.gg-sec-head {
    background: linear-gradient(90deg, rgba(252, 148, 4, .07), rgba(252, 148, 4, 0));
}
.gg-board-top {
    background: linear-gradient(90deg, rgba(252, 148, 4, .05), rgba(252, 148, 4, 0));
}
.gg-stat {
    border: 1px solid var(--border, #ececec);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(20, 15, 10, .06);
    transition: transform .15s ease, box-shadow .15s ease;
}
.gg-stat:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(20, 15, 10, .10); }
.gg-stat i { background: linear-gradient(135deg, rgba(252, 148, 4, .16), rgba(252, 148, 4, .04)); }
.gg-pg { transition: all .15s ease; }
.gg-pg:hover:not(.cur) { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.gg-pg.cur { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(252, 148, 4, .4); }

/* =============================================================
   Профессиональный вид: Поддержка
   ============================================================= */
.gg-tk-item {
    border: 1px solid var(--border, #ececec);
    border-left: 4px solid transparent;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(20, 15, 10, .05);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.gg-tk-item:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(20, 15, 10, .10); }
.gg-tk-item.st-open { border-left-color: #2563eb; }
.gg-tk-item.st-answered { border-left-color: #16a34a; }
.gg-tk-item.st-closed { border-left-color: #9ca3af; }
.gg-thread { border-radius: 14px; }
.gg-composer {
    border: 1px solid var(--border, #ececec);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(20, 15, 10, .06);
}
.gg-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: 0;
    color: #fff;
    box-shadow: 0 5px 14px rgba(252, 148, 4, .3);
    transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.gg-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.gg-btn.ghost {
    background: transparent;
    border: 1px solid var(--border, #e3e3e3);
    color: var(--text, #1b1712);
    box-shadow: none;
}
.gg-btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: rgba(252, 148, 4, .06); }

/* =============================================================
   Профессиональный вид: Профиль (соц.)
   ============================================================= */
.soc-card { border: 1px solid var(--border, #ececec); box-shadow: 0 10px 28px rgba(20, 15, 10, .07); }
.soc-av { border: 3px solid #fff; box-shadow: 0 4px 14px rgba(20, 15, 10, .18); }
[data-theme="dim"] .soc-av, [data-theme="dark"] .soc-av, [data-theme="midnight"] .soc-av { border-color: var(--surface, #2a2420); }
.soc-head { position: relative; }
.soc-head::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
}
.soc-name h1 { letter-spacing: -.01em; }
.soc-stats b { font-size: 17px; }
.soc-tabs .gg-pill { transition: all .15s ease; }
.soc-tabs .gg-pill.on { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(252, 148, 4, .35); }
.soc-peoples .soc-user { transition: transform .15s ease, box-shadow .15s ease; }
.soc-peoples .soc-user:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(20, 15, 10, .10); }

/* ---------- Статичный фон вместо видео (быстрее загрузка) ---------- */
.bg-static {
  position: absolute;
  inset: 0;
  background-image: url('videos/fone/gw.png');
  background-size: cover;
  background-position: center;
}
.bg-static::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.30);
}

header nav ul .active a::after { display: none !important; }

html:not([data-theme="dark"]):not([data-theme="midnight"]):not([data-theme="dim"]) body {
  background-color: #f6f6f6;
}
[data-theme="dark"] body,
[data-theme="midnight"] body,
[data-theme="dim"] body {
  background-color: #14110e;
}
