@charset "UTF-8";
/* Тёмная тема: включается через <html data-sa-theme="dark"> (настройка в sa_users.ui_theme). */

html[data-sa-theme="dark"] {
    color-scheme: dark;
}

/* ——— База, ссылки ——— */
html[data-sa-theme="dark"] body.sa-body {
    background: #121214 !important;
    color: #e4e4ea;
}

html[data-sa-theme="dark"] a {
    color: #f17c26;
}

html[data-sa-theme="dark"] a:visited {
    color: #f17c26;
}

html[data-sa-theme="dark"] a:hover {
    color: #f17c26;
}

html[data-sa-theme="dark"] .sa-skip {
    background: #2a2a32;
    color: #e4e4ea;
}

/* ——— Каркас ——— */
html[data-sa-theme="dark"] .sa-page-bg {
    background: #121214;
}

html[data-sa-theme="dark"] .sa-container {
    background: #1c1c22;
    border-color: #3a3a44;
}

html[data-sa-theme="dark"] .sa-col-left,
html[data-sa-theme="dark"] .sa-col-right {
    background: #222228;
    border-color: #3f3f48;
}

html[data-sa-theme="dark"] .sa-col-main {
    background: #1c1c22;
}

html[data-sa-theme="dark"] .sa-headerimg {
    border-bottom-color: #2a2d36;
}

/* ——— Toolbar / верхняя навигация ——— */
html[data-sa-theme="dark"] .sa-toolbar {
    border-bottom-color: #3a3a44;
    background: linear-gradient(180deg, #2a2a32 0%, #222228 100%);
}

html[data-sa-theme="dark"] .sa-toolbar__portal {
    color: #c8c8d4;
}

html[data-sa-theme="dark"] .sa-toolbar-login__label,
html[data-sa-theme="dark"] .sa-toolbar-login__remember {
    color: #f17c26;
}

html[data-sa-theme="dark"] .sa-toolbar-login__greet {
    color: #ffffff;
}

html[data-sa-theme="dark"] .sa-toolbar-login__input {
    background: #2a2a32;
    border-color: #55555f;
    color: #e4e4ea;
}

html[data-sa-theme="dark"] .sa-topnav-wide:not(.sa-topnav-wide--full) {
    border-color: #3a3a44;
    background: #26262e;
}

html[data-sa-theme="dark"] .sa-topnav-wide:not(.sa-topnav-wide--full) a {
    color: #f17c26;
}

html[data-sa-theme="dark"] .sa-topnav-wide.sa-topnav-wide--full {
    background: #0d0d10;
    border-color: #2e2e36;
}

html[data-sa-theme="dark"] .sa-topnav-wide.sa-topnav-wide--full a,
html[data-sa-theme="dark"] .sa-topnav-wide.sa-topnav-wide--full a:visited {
    color: #e2e2ea;
    border-right-color: #33333c;
}

/* ——— Блоки vB (tcat / alt) ——— */
html[data-sa-theme="dark"] .sa-tcat {
    background: #2d3038;
    color: #f0f0f6;
    border-color: #1e1e24;
}

html[data-sa-theme="dark"] .sa-tcat a {
    color: #e8e8f0;
}

html[data-sa-theme="dark"] .sa-alt1,
html[data-sa-theme="dark"] .sa-alt2 {
    border-color: #3a3a44;
}

html[data-sa-theme="dark"] .sa-alt1 {
    background: #222228;
}

html[data-sa-theme="dark"] .sa-alt2 {
    background: #2a2a32;
}

html[data-sa-theme="dark"] .sa-muted,
html[data-sa-theme="dark"] .sa-small {
    color: #ffffff;
}

html[data-sa-theme="dark"] .sa-login-side__row span,
html[data-sa-theme="dark"] .sa-login-side__chk {
    color: #c4c4d0;
}

html[data-sa-theme="dark"] .sa-input-vb,
html[data-sa-theme="dark"] .sa-rep-modal__input,
html[data-sa-theme="dark"] .sa-rep-modal__comment,
html[data-sa-theme="dark"] textarea,
html[data-sa-theme="dark"] select,
html[data-sa-theme="dark"] input[type="text"],
html[data-sa-theme="dark"] input[type="password"],
html[data-sa-theme="dark"] input[type="email"],
html[data-sa-theme="dark"] input[type="search"],
html[data-sa-theme="dark"] input[type="url"] {
    background: #2a2a32;
    border-color: #55555f;
    color: #e4e4ea;
}

html[data-sa-theme="dark"] .sa-btn-vb {
    background: linear-gradient(180deg, #3a3a46 0%, #2a2a32 100%);
    border: 1px solid #55555f;
    color: #e4e4ea;
}

html[data-sa-theme="dark"] .sa-flash {
    background: #f17c26;
    color: #ffffff;
}

/* ——— Таблицы форума ——— */
html[data-sa-theme="dark"] .sa-outer-t {
    border-color: #3a3a44;
}

html[data-sa-theme="dark"] .sa-outer-t > tbody > tr:first-child > .sa-tcat {
    border-color: #1e1e24;
    border-bottom-color: #3a3a44;
}

html[data-sa-theme="dark"] .sa-thead-row .sa-th {
    background: #2d3038;
    color: #e8e8f0;
    border-color: #3a3a44;
}

html[data-sa-theme="dark"] .sa-outer-t .sa-alt1,
html[data-sa-theme="dark"] .sa-outer-t .sa-alt2 {
    border-color: #3a3a44;
    color: #d8d8e4;
}

html[data-sa-theme="dark"] .sa-td-ico {
    color: #ffffff;
}

html[data-sa-theme="dark"] .sa-outer-t .sa-alt1 {
    background: #222228;
}

html[data-sa-theme="dark"] .sa-outer-t .sa-alt2 {
    background: #26262e;
}

html[data-sa-theme="dark"] .sa-outer-t .sa-small {
    color: #c2c2c2;
}

html[data-sa-theme="dark"] .sa-td-num {
    color: #f17c26;
}

html[data-sa-theme="dark"] .sa-time {
    color: #9090a0;
}

html[data-sa-theme="dark"] .sa-ico {
    background: #4a4a54;
}

html[data-sa-theme="dark"] .sa-ico--old {
    background: #4a4a54;
}

/* ——— Посты / тред ——— */
html[data-sa-theme="dark"] .sa-thread-topic-title {
    color: #f0f0f6;
}

html[data-sa-theme="dark"] .sa-thread-header {
    border-bottom-color: #3a3a44;
}

html[data-sa-theme="dark"] .sa-post-table {
    border-color: #3a3a44;
}

html[data-sa-theme="dark"] .sa-post-usercell {
    background: #222228;
    border-color: #3a3a44;
}

html[data-sa-theme="dark"] .sa-post-maincell {
    background: #1c1c22;
    border-color: #3a3a44;
}

html[data-sa-theme="dark"] .sa-post-head {
    border-bottom-color: #3a3a44;
    color: #c8c8d4;
}

html[data-sa-theme="dark"] .sa-post-body {
    color: #e4e4ea;
}

html[data-sa-theme="dark"] .sa-post-body .sa-bbcode-quote {
    border-color: #4a5568;
    background: #252530;
}

html[data-sa-theme="dark"] .sa-post-body .sa-quote-head {
    background: #2d3340;
    color: #c8d0e0;
    border-bottom-color: #4a5568;
}

html[data-sa-theme="dark"] .sa-post-body .sa-quote-body {
    color: #d8d8e4;
}

html[data-sa-theme="dark"] .sa-post-sig {
    border-top-color: #3a3a44;
    color: #f17c26;
}

html[data-sa-theme="dark"] .sa-post-foot {
    color: #9090a0;
}

html[data-sa-theme="dark"] .sa-profile-row span {
    color: #b8b8c4;
}

html[data-sa-theme="dark"] .sa-profile-box {
    color: #d8d8e4;
}

/* ——— Сайдбар: облако, мониторинг, меню ——— */
html[data-sa-theme="dark"] .sa-comma {
    color: #f17c26;
}

html[data-sa-theme="dark"] .sa-usercloud__more {
    color: #9090a0;
}

html[data-sa-theme="dark"] .sa-mainmenu__label {
    color: #e0e0ea;
}

html[data-sa-theme="dark"] .sa-mixbox {
    background: #1a1a1e;
    border: 1px solid #3a3a44;
}

html[data-sa-theme="dark"] .sa-mixbox__title {
    color: #c8c8d4;
}

html[data-sa-theme="dark"] .sa-mon-h,
html[data-sa-theme="dark"] .sa-mon-srv,
html[data-sa-theme="dark"] .sa-mon-meta,
html[data-sa-theme="dark"] .sa-mon-row {
    color: #d8d8e4;
}

html[data-sa-theme="dark"] .sa-monitor-vb .sa-alt1,
html[data-sa-theme="dark"] .sa-monitor-vb .sa-alt2 {
    background: #222228;
}

html[data-sa-theme="dark"] .sa-mon-h {
    color: #d8d8e4;
    border-bottom-color: #3a3a44;
}

html[data-sa-theme="dark"] .sa-srv-card {
    border-color: #3a3a44;
    background-color: #2a2a32;
}

html[data-sa-theme="dark"] .sa-srv-card::before {
    background: rgba(0, 0, 0, 0.25);
}

html[data-sa-theme="dark"] .sa-srv-title,
html[data-sa-theme="dark"] .sa-srv-line {
    color: #f4f4f8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

html[data-sa-theme="dark"] .sa-srv-card__caption-text {
    background: rgba(0, 0, 0, 0.62);
    border-color: rgba(255, 255, 255, 0.16);
    color: #f4f4f8;
}

html[data-sa-theme="dark"] .sa-srv-fillbar__track {
    background: rgba(255, 255, 255, 0.22);
}

html[data-sa-theme="dark"] .sa-srv-fillbar__count {
    color: #f0f0f6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

html[data-sa-theme="dark"] .sa-srv-cloud {
    background: #2a2a32;
    border-color: #55555f;
    color: #d8d8e4;
}

html[data-sa-theme="dark"] .sa-mixbox__icon {
    background: #3a5a80;
    border-color: #2a4060;
}

/* ——— Новости ——— */
html[data-sa-theme="dark"] .sa-news-title,
html[data-sa-theme="dark"] .sa-news-title a {
    color: #e8e8f0;
}

html[data-sa-theme="dark"] .sa-news-pad {
    color: #ffffff;
}

html[data-sa-theme="dark"] .sa-news-editor-bar {
    background: #26262e;
    border-color: #3a3a44;
}

html[data-sa-theme="dark"] .sa-news-like-btn {
    background: #2a2a32;
    border-color: #55555f;
    color: #e4e4ea;
}

html[data-sa-theme="dark"] .sa-news-like-count {
    color: #f17c26;
}

/* ——— Профиль ——— */
html[data-sa-theme="dark"] .sa-profile-layout__nick {
    color: #f0f0f6;
}

html[data-sa-theme="dark"] .sa-profile-layout__status {
    color: #f17c26;
}

html[data-sa-theme="dark"] .sa-profile-tabs a {
    color: #f17c26;
}

html[data-sa-theme="dark"] .sa-profile-tabs__on {
    color: #e8e8f0;
    font-weight: bold;
}

html[data-sa-theme="dark"] .sa-profile-stat {
    background: #2a2a32;
    border-color: #3a3a44;
}

html[data-sa-theme="dark"] .sa-profile-stat__value {
    color: #f0f0f6;
}

html[data-sa-theme="dark"] .sa-profile-stat__label {
    color: #f17c26;
}

html[data-sa-theme="dark"] .sa-profile-compose {
    border-top-color: #3a3a44;
}

html[data-sa-theme="dark"] .sa-profile-compose__title {
    color: #e8e8f0;
}

html[data-sa-theme="dark"] .sa-profile-content-tabs {
    border-bottom-color: #3a3a44;
}

html[data-sa-theme="dark"] .sa-profile-ctab {
    background: #2d2d35;
    border-color: #3a3a44;
    color: #d8d8e4;
}

html[data-sa-theme="dark"] .sa-profile-ctab:hover {
    background: #363640;
}

html[data-sa-theme="dark"] .sa-profile-ctab.sa-ctab-btn-active {
    background: #1c1c22;
    border-color: #3a3a44;
    border-bottom-color: #1c1c22;
    color: #fff;
}

html[data-sa-theme="dark"] .sa-profile-ctab-panel {
    color: #d8d8e4;
}

html[data-sa-theme="dark"] .sa-profile-post-excerpt {
    color: #9090a0;
}

html[data-sa-theme="dark"] .sa-profile-guests__title {
    color: #c8c8d4;
}

html[data-sa-theme="dark"] .sa-profile-guests__row {
    border-color: #3a3a44;
}

html[data-sa-theme="dark"] .sa-profile-guests__name a {
    color: #f17c26;
}

html[data-sa-theme="dark"] .sa-profile-guests__date {
    color: #9090a0;
}

html[data-sa-theme="dark"] .sa-rules-page .rules-strikearena,
html[data-sa-theme="dark"] .sa-rules-page .rules-strikearena h1,
html[data-sa-theme="dark"] .sa-rules-page .rules-strikearena h2,
html[data-sa-theme="dark"] .sa-rules-page .rules-strikearena h3,
html[data-sa-theme="dark"] .sa-rules-page .rules-strikearena p,
html[data-sa-theme="dark"] .sa-rules-page .rules-strikearena li {
    color: #d8d8e4;
}

html[data-sa-theme="dark"] .sa-rules-page .rules-strikearena small {
    color: #ffffff;
}

html[data-sa-theme="dark"] .sa-rules-page .rules-strikearena .rules-strikearena-revision {
    color: #ffffff;
}

html[data-sa-theme="dark"] .sa-giveaway-log th,
html[data-sa-theme="dark"] .sa-giveaway-log td {
    border-color: #3a3a44;
}

html[data-sa-theme="dark"] .sa-giveaway-log__head {
    background: #2d3038;
    color: #e8e8f0;
}

html[data-sa-theme="dark"] .sa-tg-chat {
    background: #222228;
    border-color: #3a3a44;
}

html[data-sa-theme="dark"] .sa-tg-chat__msg {
    border-bottom-color: #3a3a44;
}

html[data-sa-theme="dark"] .sa-tg-chat__head,
html[data-sa-theme="dark"] .sa-tg-chat__text {
    color: #d8d8e4;
}

/* ——— Формы / ошибки ——— */
html[data-sa-theme="dark"] .sa-form-error-general {
    background: #3d2020;
    border-color: #8b4040;
    color: #ffb4b4;
}

html[data-sa-theme="dark"] .sa-reg-field .sa-field-error {
    color: #ff8a8a;
}

html[data-sa-theme="dark"] .sa-toggle-slider {
    background: #48484a;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

html[data-sa-theme="dark"] .sa-toggle-wrap input:checked + .sa-toggle-slider {
    background: #30b350;
}

html[data-sa-theme="dark"] .sa-toggle-slider::before {
    background: #f2f2f7;
}

html[data-sa-theme="dark"] .sa-toggle-status-label {
    color: #e4e4ea;
}

/* ——— Модалки, тулбар BBCode ——— */
html[data-sa-theme="dark"] .sa-rep-modal__box,
html[data-sa-theme="dark"] .sa-report-modal__box,
html[data-sa-theme="dark"] .sa-csgo-modal__box {
    background: #26262e;
    border-color: #55555f;
    color: #e4e4ea;
}

html[data-sa-theme="dark"] .sa-rep-modal__title {
    color: #f0f0f6;
}

html[data-sa-theme="dark"] .sa-rep-modal__hint {
    color: #f17c26;
}

html[data-sa-theme="dark"] .sa-rep-history__row {
    border-bottom-color: #3a3a44;
}

html[data-sa-theme="dark"] .sa-rep-btn {
    background: #3a3a46;
    border: 1px solid #55555f;
    color: #e4e4ea;
}

html[data-sa-theme="dark"] .sa-rep-btn:hover {
    background: #454550;
}

html[data-sa-theme="dark"] .sa-rep-bracket-btn {
    color: #f17c26;
}

html[data-sa-theme="dark"] .sa-report-close,
html[data-sa-theme="dark"] .sa-csgo-modal__close {
    color: #c8c8d4;
}

html[data-sa-theme="dark"] .sa-launch-quote {
    background: #252530;
    border-color: #55555f;
}

html[data-sa-theme="dark"] .sa-bbcode-tb {
    background: linear-gradient(180deg, #3a3a46 0%, #2a2a32 100%);
    border-color: #55555f;
    color: #e4e4ea;
}

html[data-sa-theme="dark"] .sa-bbcode-tb:hover {
    background: linear-gradient(180deg, #454550 0%, #32323c 100%);
}

html[data-sa-theme="dark"] .sa-action-img {
    background-color: #2a2a32;
    border-color: #55555f;
    color: #d8d8e4;
}

html[data-sa-theme="dark"] .sa-awards__title {
    color: #c8c8d4;
}

html[data-sa-theme="dark"] .sa-award img {
    background: #2a2a32;
    border-color: #55555f;
}

html[data-sa-theme="dark"] .sa-award__cap {
    color: #f17c26;
}

/* ——— Cookie, футер, мобильный dock ——— */
html[data-sa-theme="dark"] .sa-cookie-consent {
    background: #26262e;
    border-color: #55555f;
    color: #e4e4ea;
}

html[data-sa-theme="dark"] .sa-footer-pay__row {
    background: #26262e;
    border-color: #3a3a44;
    color: #c8c8d4;
}

html[data-sa-theme="dark"] .sa-footer-menu a {
    color: #f17c26;
}

html[data-sa-theme="dark"] .sa-footer-note {
    color: #ffffff;
}

html[data-sa-theme="dark"] .sa-footer-theme {
    color: #b8b8c4;
}

html[data-sa-theme="dark"] .sa-footer-theme__label {
    color: #f17c26;
}

html[data-sa-theme="dark"] .sa-footer-theme__opt {
    color: #f17c26;
}

html[data-sa-theme="dark"] .sa-footer-theme__opt:hover {
    color: #f17c26;
}

html[data-sa-theme="dark"] .sa-footer-theme__opt.is-on {
    color: #e8e8f0;
}

html[data-sa-theme="dark"] .sa-footer-theme__sep {
    color: #666670;
}

html[data-sa-theme="dark"] .sa-mobile-dock {
    background: #1a1a1e;
    border-top-color: #3a3a44;
}

html[data-sa-theme="dark"] .sa-mobile-dock a {
    color: #c8c8d4;
}

html[data-sa-theme="dark"] .sa-mobile-dock a:active {
    background: #2a2a32;
}

/* Группы пользователей (читаемость на тёмном) */
html[data-sa-theme="dark"] .sa-g-user,
html[data-sa-theme="dark"] .sa-col-left .sa-usercloud a.sa-g-user,
html[data-sa-theme="dark"] .sa-col-right .sa-usercloud a.sa-g-user {
    color: #ffffff !important;
    text-shadow: 0 2px 2px #ffffff !important;
}

html[data-sa-theme="dark"] .sa-g-srv,
html[data-sa-theme="dark"] .sa-col-left .sa-usercloud a.sa-g-srv,
html[data-sa-theme="dark"] .sa-col-right .sa-usercloud a.sa-g-srv {
    color: #ffffff !important;
    text-shadow: 0 2px 2px #30c7eb !important;
}

html[data-sa-theme="dark"] .sa-g-mansrv,
html[data-sa-theme="dark"] .sa-g-mod {
    color: #ffffff !important;
    text-shadow: 0 2px 2px #00ce00 !important;
}

html[data-sa-theme="dark"] .sa-g-adminportal {
    color: #ffffff !important;
    text-shadow: 0 2px 2px #e100e1de !important;
}

html[data-sa-theme="dark"] .sa-g-banned,
html[data-sa-theme="dark"] .sa-col-left .sa-usercloud a.sa-g-banned,
html[data-sa-theme="dark"] .sa-col-right .sa-usercloud a.sa-g-banned {
    color: #ffffff !important;
    text-shadow: 0 2px 2px #c2c2c2 !important;
}

/* Пагинация и мелкие элементы поста */
html[data-sa-theme="dark"] .sa-pagination a,
html[data-sa-theme="dark"] .sa-pagenav a {
    color: #f17c26;
}

html[data-sa-theme="dark"] .sa-move-topic {
    color: #f17c26;
}

/* Главная: «Последние темы на форуме» — белое в ячейках, оранжевый только автор и раздел */
html[data-sa-theme="dark"] .sa-latest-topics td a {
    color: #ffffff;
}

html[data-sa-theme="dark"] .sa-latest-topics .sa-latest-topics__author,
html[data-sa-theme="dark"] .sa-latest-topics .sa-latest-topics__forum a {
    color: #f17c26;
}

/* Разделение шапки блока и заголовков таблицы (иначе визуально сливаются) */
html[data-sa-theme="dark"] .sa-latest-topics .sa-tcat {
    background: #1f1f26;
    border-bottom-color: #3a3a44;
}

html[data-sa-theme="dark"] .sa-latest-topics .sa-thead-row .sa-th {
    background: #2a2a32;
    border-top-color: #3a3a44;
}

/* Таблицы админки / общие */
html[data-sa-theme="dark"] table.sa-admin-table th,
html[data-sa-theme="dark"] table.sa-admin-table td,
html[data-sa-theme="dark"] .sa-admin-wrap {
    border-color: #3a3a44;
}

html[data-sa-theme="dark"] .sa-admin-wrap {
    color: #d8d8e4;
}

/* Админка: вкладки (стили в admin.php) */
html[data-sa-theme="dark"] .sa-adm-tabs {
    border-bottom-color: #3a3a44;
}

html[data-sa-theme="dark"] .sa-adm-tab {
    background: #2a2a32;
    color: #c8c8d4;
}

html[data-sa-theme="dark"] .sa-adm-tab:hover {
    background: #363640;
    color: #f0f0f6;
}

html[data-sa-theme="dark"] .sa-adm-tab--active {
    background: #1c1c22;
    border-color: #3a3a44;
    color: #f0f0f6;
}

html[data-sa-theme="dark"] .sa-online {
    color: #6ecf6e;
}

html[data-sa-theme="dark"] .sa-offline {
    color: #9090a0;
}

html[data-sa-theme="dark"] .sa-post-body code,
html[data-sa-theme="dark"] .sa-post-body pre,
html[data-sa-theme="dark"] .sa-alt1 pre,
html[data-sa-theme="dark"] .sa-alt1 code {
    background: #2a2a32;
    border-color: #3a3a44;
    color: #e0e0ea;
}

html[data-sa-theme="dark"] .sa-alt1 hr,
html[data-sa-theme="dark"] .sa-alt2 hr {
    border-color: #3a3a44;
}

html[data-sa-theme="dark"] .sa-poll-result-row:hover,
html[data-sa-theme="dark"] .sa-poll-result-row:focus {
    background: rgba(255, 255, 255, 0.06);
}

html[data-sa-theme="dark"] .sa-poll-result-row:focus-visible {
    border-color: #6a8ab8;
}

html[data-sa-theme="dark"] .sa-poll-result-row__bar-wrap {
    background: #3a3a44;
}

html[data-sa-theme="dark"] .sa-poll-result-row__bar-fill {
    background: #5a7a9c;
}

html[data-sa-theme="dark"] .sa-poll-result-row,
html[data-sa-theme="dark"] .sa-poll-result-row__label,
html[data-sa-theme="dark"] .sa-poll-result-row__pct {
    color: #ffffff;
}

/* Сайдбар: опрос (options/percent) */
html[data-sa-theme="dark"] .sa-sidebar-poll,
html[data-sa-theme="dark"] .sa-sidebar-poll .sa-sidebar-poll__option,
html[data-sa-theme="dark"] .sa-sidebar-poll .sa-sidebar-poll__label,
html[data-sa-theme="dark"] .sa-sidebar-poll .sa-sidebar-poll__pct,
html[data-sa-theme="dark"] .sa-sidebar-poll .sa-sidebar-poll__num,
html[data-sa-theme="dark"] .sa-sidebar-poll label,
html[data-sa-theme="dark"] .sa-sidebar-poll label span {
    color: #ffffff !important;
}

html[data-sa-theme="dark"] .sa-poll-voters-modal__box {
    background: #26262e;
    border-color: #55555f;
    color: #e4e4ea;
}

html[data-sa-theme="dark"] .sa-poll-voters-modal__close {
    color: #c8c8d4;
}

html[data-sa-theme="dark"] .sa-poll-voters-modal__item {
    border-bottom-color: #3a3a44;
}

html[data-sa-theme="dark"] .sa-poll-voters-modal__date {
    color: #9090a0;
}
