/* Переключатель темы в шапке (обе темы) */
nav ul li.theme { margin-left: 22px; }
.theme-toggle {
    display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-top: 6px; padding: 0;
    border: 2px solid rgba(160, 190, 50, .35); border-radius: 50%; background: rgba(255, 255, 255, .6); color: #9cba33; cursor: pointer;
}
.theme-toggle:hover { border-color: #f3d271; color: #7e961f; }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .theme-moon { fill: currentColor; stroke: none; }
.theme-toggle .theme-sun, html[data-theme="dark"] .theme-toggle .theme-moon { display: none; }
html[data-theme="dark"] .theme-toggle .theme-sun { display: block; }
@media (max-width: 760px) {
    .responsive header nav ul li.theme { flex: 0 0 auto; display: flex; justify-content: center; padding: 0 6px; }
    .responsive .theme-toggle { width: 30px; height: 30px; margin-top: 0; }
    .responsive .theme-toggle svg { width: 16px; height: 16px; }
}

/* Тёмная тема: графитовая палитра поверх светлых стилей, фирменные зелёный, оранжевый и шапка с персонажами без изменений */
html[data-theme="dark"] {
    --t-bg: #131416;
    --t-card: #1d1f22;
    --t-card-2: #24272b;
    --t-field: #17191b;
    --t-border: #2e3136;
    --t-border-2: #3a3e44;
    --t-text: #e4e6e9;
    --t-text-2: #a9aeb5;
    --t-text-3: #7d838b;
    --t-link: #6fb2f2;
    --t-shadow: 0 14px 40px rgba(0, 0, 0, .45);
    color-scheme: dark;
}
html[data-theme="dark"], html[data-theme="dark"] body {
    background: var(--t-bg) linear-gradient(var(--t-bg) 0, var(--t-bg) 179px, #282b2f 179px, #282b2f 409px, var(--t-bg) 409px) repeat-x;
}
html[data-theme="dark"] #wrapper { background-image: url(../images/bg_without_steve_dark.jpg?v=5); color: var(--t-text); }
html[data-theme="dark"] a.logo { background-image: url(../images/logo_white.png); }
html[data-theme="dark"] nav ul li a { color: var(--t-text); }
html[data-theme="dark"] nav ul li a:hover { color: #f3d271; }
html[data-theme="dark"] .theme-toggle { border-color: var(--t-border-2); background: var(--t-card); color: #f3d271; }
html[data-theme="dark"] .theme-toggle:hover { border-color: #f3d271; }

/* Новости и полная новость */
html[data-theme="dark"] .news_item, html[data-theme="dark"] .fullnews_craft { background: var(--t-card); box-shadow: var(--t-shadow); border-bottom-color: var(--t-border); }
html[data-theme="dark"] .news_title a, html[data-theme="dark"] .news_title h1, html[data-theme="dark"] .news_title h3, html[data-theme="dark"] .news_text,
html[data-theme="dark"] .news_text b, html[data-theme="dark"] .news_text strong { color: var(--t-text); }
html[data-theme="dark"] .news_title a:hover, html[data-theme="dark"] .news_text a { color: #e0a96d; }
html[data-theme="dark"] .news_author a { color: var(--t-link); }
html[data-theme="dark"] span.news_date { color: var(--t-text-3); }
html[data-theme="dark"] .news_more a:before, html[data-theme="dark"] .news_more a:after { background-color: transparent; }
html[data-theme="dark"] .full_news_bottom { border-top-color: var(--t-border); }

/* Пагинация */
html[data-theme="dark"] .navigation_pagination { color: var(--t-text); }
html[data-theme="dark"] .navigation_pagination a { color: var(--t-text-2); }
html[data-theme="dark"] .navigation_pagination a:hover { background: var(--t-card-2); box-shadow: none; color: #f3d271; }
html[data-theme="dark"] .navigation_pagination .nav_ext { color: var(--t-text-3); }

/* Правая колонка: панель игрока, вход, навигация */
html[data-theme="dark"] #rightSide { background: #191a1d; border-left-color: var(--t-border); }
html[data-theme="dark"] #rightSide:before, html[data-theme="dark"] #rightSide:after { display: none; }
html[data-theme="dark"] #user_panel { background-color: var(--t-card); box-shadow: var(--t-shadow); border-bottom-color: var(--t-border); }
html[data-theme="dark"] #user_panel_top, html[data-theme="dark"] .user_panel_userpic, html[data-theme="dark"] #user_panel_navigation { background: var(--t-card-2); box-shadow: none; }
html[data-theme="dark"] #user_panel_navigation { box-shadow: inset 0 1px 0 var(--t-border); }
html[data-theme="dark"] .user_panel_nickname span.hello_player, html[data-theme="dark"] #user_panel_navigation ul li a { color: var(--t-text); }
html[data-theme="dark"] #user_panel_navigation ul li a:hover { color: #f0a032; }
html[data-theme="dark"] a.user_panel_logout { border-left-color: var(--t-border); }
html[data-theme="dark"] .user_panel_balance_current span, html[data-theme="dark"] .user_panel_balance_type span { color: #e48c9c; }
html[data-theme="dark"] a.user_panel_balance_add, html[data-theme="dark"] #login button.loginbutton { box-shadow: none; }
html[data-theme="dark"] #login h3, html[data-theme="dark"] #navigation h3, html[data-theme="dark"] a.login_recovery { color: var(--t-text); }
html[data-theme="dark"] #login input.loginfield { background-color: var(--t-field); box-shadow: inset 0 0 0 1px var(--t-border-2); color: var(--t-text); }
html[data-theme="dark"] a.login_register { color: var(--t-link); }
html[data-theme="dark"] #navigation a { color: var(--t-text-2); border-color: var(--t-border-2); }
html[data-theme="dark"] #navigation a:hover { color: #f0a032; background: var(--t-card-2); border-color: var(--t-card-2); box-shadow: none; }

/* Поля ввода и плейсхолдеры по всему сайту */
html[data-theme="dark"] input::placeholder, html[data-theme="dark"] textarea::placeholder { color: var(--t-text-3); }
html[data-theme="dark"] #user_panel_navigation ul li.user_panel_navigation_cp a { background-image: url(../images/dark/panel_navigation_cp_icon.png); }
html[data-theme="dark"] #user_panel_navigation ul li.user_panel_navigation_settings a { background-image: url(../images/dark/panel_navigation_settings_icon.png); }
html[data-theme="dark"] #user_panel_navigation ul li.user_panel_navigation_messages a { background-image: url(../images/dark/panel_navigation_messages_icon.png); }
html[data-theme="dark"] #user_panel_navigation ul li.user_panel_navigation_privilege a { background-image: url(../images/dark/panel_navigation_privilege_icon.png); }
html[data-theme="dark"] #user_panel_navigation ul li.user_panel_navigation_merchant a { background-image: url(../images/dark/panel_navigation_merchant_icon.png); }
html[data-theme="dark"] #user_panel_navigation ul li.user_panel_navigation_vote a { background-image: url(../images/dark/panel_navigation_vote_icon.png); }
html[data-theme="dark"] #user_panel_navigation ul li.user_panel_navigation_cp a:hover { background-image: url(../images/panel_navigation_cp_icon_hover.png); }
html[data-theme="dark"] #user_panel_navigation ul li.user_panel_navigation_settings a:hover { background-image: url(../images/panel_navigation_settings_icon_hover.png); }
html[data-theme="dark"] #user_panel_navigation ul li.user_panel_navigation_messages a:hover { background-image: url(../images/panel_navigation_messages_icon_hover.png); }
html[data-theme="dark"] #user_panel_navigation ul li.user_panel_navigation_privilege a:hover { background-image: url(../images/panel_navigation_privilege_icon_hover.png); }
html[data-theme="dark"] #user_panel_navigation ul li.user_panel_navigation_merchant a:hover { background-image: url(../images/panel_navigation_merchant_icon_hover.png); }
html[data-theme="dark"] #user_panel_navigation ul li.user_panel_navigation_vote a:hover { background-image: url(../images/panel_navigation_vote_icon_hover.png); }

/* Комментарии */
html[data-theme="dark"] .full_news_comments_title h3, html[data-theme="dark"] .full_news_addcomment h3, html[data-theme="dark"] .mass_comments_action { color: var(--t-text); }
html[data-theme="dark"] .full_news_comment { background: var(--t-card); box-shadow: var(--t-shadow); border-bottom-color: var(--t-border); }
html[data-theme="dark"] .full_news_comment_top { background-color: var(--t-card-2); box-shadow: none; }
html[data-theme="dark"] .news_comment_author_pic { background: var(--t-card-2); box-shadow: 0 6px 16px rgba(0, 0, 0, .5); }
html[data-theme="dark"] .news_comment_author_link a, html[data-theme="dark"] .full_news_comment_content a, html[data-theme="dark"] a.see_last_comments { color: var(--t-link); }
html[data-theme="dark"] .news_comment_date { color: var(--t-text-3); }
html[data-theme="dark"] .full_news_comment_content { color: var(--t-text); }
html[data-theme="dark"] .full_news_addcomment { background: var(--t-card); box-shadow: var(--t-shadow); }
html[data-theme="dark"] .full_news_addcomment textarea { background: var(--t-field); color: var(--t-text); border-bottom-color: var(--t-border-2) !important; border-top-color: var(--t-border) !important; }
html[data-theme="dark"] .full_news_addcomment .bb-pane { border-bottom-color: var(--t-border) !important; }
html[data-theme="dark"] .fullstory_comment_send button:before, html[data-theme="dark"] .fullstory_comment_send button:after { background-color: transparent; }
html[data-theme="dark"] .fullstory_comment_add_code > div { border-color: var(--t-border-2); }

/* Цитаты и спойлеры в тексте */
html[data-theme="dark"] .news_text .quote { background: #1b2733; color: #8cc2ee; }
html[data-theme="dark"] .text_spoiler { background: var(--t-card-2); color: var(--t-text-2); }

/* Редактор Froala (комментарии, личные сообщения) */
html[data-theme="dark"] .fr-box .fr-toolbar, html[data-theme="dark"] .fr-box .fr-wrapper, html[data-theme="dark"] .fr-box .fr-element,
html[data-theme="dark"] .fr-box .fr-counter, html[data-theme="dark"] .fr-box .fr-second-toolbar { background: var(--t-field) !important; color: var(--t-text) !important; border-color: var(--t-border-2) !important; }
html[data-theme="dark"] .fr-box .fr-toolbar { background: var(--t-card-2) !important; }
html[data-theme="dark"] .fr-box .fr-separator { background: var(--t-border-2) !important; }
html[data-theme="dark"] .fr-box .fr-command.fr-btn { color: var(--t-text-2) !important; }
html[data-theme="dark"] .fr-box .fr-command.fr-btn:hover { background: var(--t-border) !important; color: var(--t-text) !important; }
html[data-theme="dark"] .fr-box .fr-placeholder { color: var(--t-text-3) !important; }
html[data-theme="dark"] .fr-dropdown-menu, html[data-theme="dark"] .fr-popup { background: var(--t-card-2) !important; color: var(--t-text) !important; }

/* Поля форм: регистрация, обратная связь, личные сообщения, капча */
html[data-theme="dark"] .fullstory_comment_add_fields input, html[data-theme="dark"] .fullstory_comment_add_code input, html[data-theme="dark"] .craft_user_added textarea,
html[data-theme="dark"] .registration_craft_page_field input, html[data-theme="dark"] textarea.feedback_textarea, html[data-theme="dark"] .pmpages textarea,
html[data-theme="dark"] .reg_captcha_field input { background: var(--t-field); color: var(--t-text); box-shadow: inset 0 0 0 1px var(--t-border-2); }
html[data-theme="dark"] .registration_craft_page_field input:hover, html[data-theme="dark"] .registration_craft_page_field input:focus,
html[data-theme="dark"] .reg_captcha_field input:hover, html[data-theme="dark"] .reg_captcha_field input:focus { background: var(--t-card-2); color: var(--t-text); }
html[data-theme="dark"] form#registration input.bbcodes:nth-child(2) { background: var(--t-card-2); border-bottom-color: var(--t-border-2); color: var(--t-text); box-shadow: none; }
html[data-theme="dark"] .input_block { box-shadow: none; }
html[data-theme="dark"] .input_block .input { background: var(--t-field); color: var(--t-text); box-shadow: inset 0 0 0 1px var(--t-border-2); }
html[data-theme="dark"] .input_block .input:focus, html[data-theme="dark"] .input_block .input:hover { background: var(--t-card-2); color: var(--t-text); }
html[data-theme="dark"] .input_block .label { color: var(--t-text-3); }
html[data-theme="dark"] .select-text { color: var(--t-text); border-bottom-color: var(--t-border-2); }
html[data-theme="dark"] .select-label { color: var(--t-text-3); }
html[data-theme="dark"] .select:after { border-top-color: var(--t-text-3); }
html[data-theme="dark"] .craft_stats_page table { color: var(--t-text); }
html[data-theme="dark"] .rules_menu .selected, html[data-theme="dark"] .rules_menu .selected:hover { background: var(--t-card) !important; border-bottom-color: var(--t-card); }

/* Страницы-формы DLE: обратная связь, профиль, статистика, последние комментарии */
html[data-theme="dark"] .registration_craft_page, html[data-theme="dark"] .craft_stats_page { background: var(--t-card); box-shadow: var(--t-shadow); border-bottom-color: var(--t-border); }
html[data-theme="dark"] .registration_craft_page_text h1, html[data-theme="dark"] .registration_craft_page_text span,
html[data-theme="dark"] .craft_stats_page ul.reset, html[data-theme="dark"] .craft_stats_page ul.reset span { color: var(--t-text); }
html[data-theme="dark"] .registration_craft_page_text a { color: #d6a3b0; }
html[data-theme="dark"] span.field_lable_black, html[data-theme="dark"] .checkbox, html[data-theme="dark"] .someabout,
html[data-theme="dark"] .craft_stats_page_item_title, html[data-theme="dark"] .craft_stats_page_item_detail, html[data-theme="dark"] center > span { color: var(--t-text-2); }
html[data-theme="dark"] .craft_stats_page_item:nth-child(even) { background: var(--t-card); }
html[data-theme="dark"] .craft_stats_page_item:nth-child(odd) { background: var(--t-card-2); }
html[data-theme="dark"] .craft_stats_page td { background: transparent; }
html[data-theme="dark"] .userstop td, html[data-theme="dark"] .pm td.pm_list, html[data-theme="dark"] .pm td.pm_head { border-bottom-color: var(--t-border); }
html[data-theme="dark"] .rules_menu .tab { background: var(--t-card-2); border-left-color: var(--t-border); }
html[data-theme="dark"] .rules_menu .tab:hover { background: var(--t-border); }
html[data-theme="dark"] .rules_menu a { color: var(--t-text); }
html[data-theme="dark"] .scriptcode, html[data-theme="dark"] .quote, html[data-theme="dark"] .text_spoiler { background: var(--t-card-2); border-bottom-color: var(--t-border); color: var(--t-text-2); box-shadow: none; }
html[data-theme="dark"] .title_quote, html[data-theme="dark"] .title_spoiler { background: var(--t-border); color: var(--t-text); }
html[data-theme="dark"] .scriptcode { color: #8cc2ee; }
html[data-theme="dark"] .hide { background-color: #1b2733; color: #8cc2ee; }
html[data-theme="dark"] .ui-dialog.dle-popup-userprofile { background-color: var(--t-card) !important; color: var(--t-text); box-shadow: 0 17px 58px rgba(0, 0, 0, .6) !important; }

/* Модальные окна сайта и всплывающее уведомление поддержки (notify.js) */
html[data-theme="dark"] .modal_app { background: var(--t-card); color: var(--t-text); }
html[data-theme="dark"] .modal_app_title { color: var(--t-text); }
html[data-theme="dark"] .modal_app_content a { color: #e0a96d; }
html[data-theme="dark"] .modal_app_scroll { border-color: var(--t-border-2); }
html[data-theme="dark"] .modal_app_close { filter: invert(1) brightness(1.4); }
html[data-theme="dark"] .sp-toast { background: var(--t-card-2); color: var(--t-text-2) !important; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .5); }
html[data-theme="dark"] .sp-toast b { color: var(--t-text); }

/* Кабинет (cabinet/cabinet.css и формы кабинета из main.css) */
html[data-theme="dark"] .cabinet_block { background-color: var(--t-card); border-bottom-color: var(--t-border); box-shadow: var(--t-shadow); color: var(--t-text); }
html[data-theme="dark"] .header_info .welcome { color: var(--t-text-3); }
html[data-theme="dark"] .header_info .welcome h2, html[data-theme="dark"] .header_info .balances .balance .value,
html[data-theme="dark"] .cabinet_menu .item .name, html[data-theme="dark"] .cabinet_block .function_block .description b,
html[data-theme="dark"] .big_button .title, html[data-theme="dark"] .cabinet_block .information b, html[data-theme="dark"] .thanks,
html[data-theme="dark"] .thanks .text, html[data-theme="dark"] .twofactor_connect_information b, html[data-theme="dark"] #item_name,
html[data-theme="dark"] .dashboard .user_information .item .value, html[data-theme="dark"] .kits_wrapper .info { color: var(--t-text); }
html[data-theme="dark"] .header_info .icon img { box-shadow: 0 8px 17px 4px rgba(0, 0, 0, .45); }
html[data-theme="dark"] .header_info .balances .balance { background: var(--t-card-2); border-bottom-color: var(--t-border); box-shadow: none; }
html[data-theme="dark"] .header_info .balances .balance .name, html[data-theme="dark"] .dashboard .user_information .item,
html[data-theme="dark"] .cabinet_menu .item .description, html[data-theme="dark"] .cabinet_block .function_block .description,
html[data-theme="dark"] .exchange_offer, html[data-theme="dark"] .purchase_calculator, html[data-theme="dark"] #item_price { color: var(--t-text-2); }
html[data-theme="dark"] .header_info .balances .balance .graphics { background-color: var(--t-border); }
html[data-theme="dark"] .dashboard .user_information .item, html[data-theme="dark"] .cabinet_menu .item, html[data-theme="dark"] .cabinet_block .function_block,
html[data-theme="dark"] .cabinet_block .function_block .title, html[data-theme="dark"] .big_button, html[data-theme="dark"] .cabinet_block .information,
html[data-theme="dark"] .gift_item, html[data-theme="dark"] .exchange, html[data-theme="dark"] .kits_wrapper .kit, html[data-theme="dark"] .privileges .item .price {
    background-color: var(--t-card-2); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
html[data-theme="dark"] .cabinet_block .function_block { border-bottom-color: var(--t-border); }
html[data-theme="dark"] .cabinet_menu .item:hover { background-color: #2b2f34; }
html[data-theme="dark"] .cabinet_menu .item .icon { background: var(--t-border); border-color: var(--t-border-2); color: var(--t-text-2); }
html[data-theme="dark"] .cabinet_block .back_to_menu_button { background-color: var(--t-card-2); box-shadow: 0 5px 20px rgba(0, 0, 0, .35); border-bottom-color: var(--t-border); color: var(--t-text-2); }
html[data-theme="dark"] .cabinet_block .information, html[data-theme="dark"] .twofactor_connect_information { color: var(--t-text-2); }
html[data-theme="dark"] .cabinet_block .information a { color: var(--t-link); }
html[data-theme="dark"] .rating_block .icon { background: #24324a; }
html[data-theme="dark"] .rating_block .active { background: #abca4e; }
html[data-theme="dark"] .gift, html[data-theme="dark"] .privileges .vip, html[data-theme="dark"] .privileges .premium,
html[data-theme="dark"] .privileges .grand, html[data-theme="dark"] .privileges .ultra { box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
html[data-theme="dark"] .privileges .item .price { color: var(--t-text-3); }
html[data-theme="dark"] .privileges .item .price span { color: var(--t-text); }
html[data-theme="dark"] .exchange_buttons .fa { color: var(--t-text-3); }
html[data-theme="dark"] .shop_content .item { background-color: var(--t-card-2); box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
html[data-theme="dark"] .shop_content .item:hover { background-color: #2b2f34; box-shadow: 0 8px 22px rgba(0, 0, 0, .5); }
html[data-theme="dark"] .shop_content .item .icon, html[data-theme="dark"] .purchase_icon { background: var(--t-border); }
html[data-theme="dark"] .shop_content .item .cost { color: #b9d64a; }
html[data-theme="dark"] .kits_wrapper .kit:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, .5); }
html[data-theme="dark"] .kits_wrapper .kit:hover .splash { background-color: rgba(255, 255, 255, .12); }
html[data-theme="dark"] #item_get_info { background: #1b2733; color: #8cc2ee; }
html[data-theme="dark"] #item_get_info a { color: #8cc2ee !important; }
html[data-theme="dark"] .purchase_calculator #price_calculated { color: #e48c9c; }
html[data-theme="dark"] .file_select, html[data-theme="dark"] .color_palette, html[data-theme="dark"] .option_select, html[data-theme="dark"] .simple_textarea {
    background-color: var(--t-field); box-shadow: inset 0 0 0 1px var(--t-border-2); color: var(--t-text); }
html[data-theme="dark"] .file_select:hover, html[data-theme="dark"] .option_select:hover, html[data-theme="dark"] .simple_textarea:hover,
html[data-theme="dark"] .simple_textarea:focus { background-color: var(--t-card-2); }
html[data-theme="dark"] .file_select .file_name, html[data-theme="dark"] .color_palette .name, html[data-theme="dark"] .option_select_label,
html[data-theme="dark"] .simple_textarea::placeholder { color: var(--t-text-3); }
html[data-theme="dark"] .color_palette .item { border-color: var(--t-border-2); }
html[data-theme="dark"] .color_palette .item:hover, html[data-theme="dark"] .color_palette .selected { border-color: var(--t-text-2); }
html[data-theme="dark"] .option_select_text, html[data-theme="dark"] .option_select_text option { color: var(--t-text); }
html[data-theme="dark"] .option_select_text option { background: var(--t-card-2); }
html[data-theme="dark"] .option_select:after, html[data-theme="dark"] .cabinet_block .back_to_menu_button { background-blend-mode: normal; }
html[data-theme="dark"] .checkbox_container { box-shadow: none; }
html[data-theme="dark"] .simple_table td, html[data-theme="dark"] .simple_table th { border-bottom-color: var(--t-border); color: var(--t-text); }
html[data-theme="dark"] .simple_table td:nth-child(odd), html[data-theme="dark"] .simple_table th:nth-child(odd) { background: var(--t-card-2); }
html[data-theme="dark"] .simple_table td:nth-child(even), html[data-theme="dark"] .simple_table th:nth-child(even) { background: #212427; }

/* Донат (donate.tpl, css/donate.css) */
html[data-theme="dark"] .content_container { background: var(--t-card); box-shadow: var(--t-shadow); border-bottom-color: var(--t-border); color: var(--t-text); }
html[data-theme="dark"] .content_container_title h1, html[data-theme="dark"] .content_container_title p,
html[data-theme="dark"] .button_donate_action, html[data-theme="dark"] .button_donate_action h1, html[data-theme="dark"] .button_donate_action p { color: var(--t-text); }
html[data-theme="dark"] .button_donate_action { border-color: var(--t-border-2); }
html[data-theme="dark"] .button_donate_action:hover { border-color: #6b5426; background: #2a2416; }
html[data-theme="dark"] .donate_buttons .button_thanks { background: var(--t-card-2); color: var(--t-text); filter: none; }
html[data-theme="dark"] .group_ability .value_kit { box-shadow: none; }
html[data-theme="dark"] .group_ability .description { color: #e48c9c; }
html[data-theme="dark"] .multiple_servers_block .kit_for_servers { background: var(--t-border); }
html[data-theme="dark"] .multiple_servers_block .kit_for_servers .servers { color: var(--t-text); }

/* Начать игру (start.tpl), скачать лаунчер (download.tpl) */
html[data-theme="dark"] .start_page_container { background: var(--t-card); box-shadow: var(--t-shadow); border-bottom-color: var(--t-border); }
html[data-theme="dark"] .title_container h1, html[data-theme="dark"] .title_container p, html[data-theme="dark"] .step_layout,
html[data-theme="dark"] .step_description { color: var(--t-text); }
html[data-theme="dark"] .step_layout, html[data-theme="dark"] .feature { background: var(--t-card-2); }
html[data-theme="dark"] .feature, html[data-theme="dark"] .feature span, html[data-theme="dark"] .fullnews_craft h1, html[data-theme="dark"] .fullnews_craft .text-container { color: var(--t-text); }
html[data-theme="dark"] .feature a { color: #e0a96d; }

/* Страницы серверов (server_page.tpl, server_classic.tpl, server_cobblemon.tpl) */
html[data-theme="dark"] .server_container { background: var(--t-card); box-shadow: var(--t-shadow); border-bottom-color: var(--t-border); color: var(--t-text); }
html[data-theme="dark"] .server_container h1, html[data-theme="dark"] .server_container h2, html[data-theme="dark"] .server_container h6,
html[data-theme="dark"] .server_container p { color: var(--t-text); }
html[data-theme="dark"] .server_property { background: var(--t-card-2); box-shadow: none; }
html[data-theme="dark"] .server_about_block { background: var(--t-card); box-shadow: var(--t-shadow); border-bottom-color: var(--t-border); color: var(--t-text); }
html[data-theme="dark"] .server_about_block .title, html[data-theme="dark"] .server_mods_block .mod .icon h2, html[data-theme="dark"] .server_mods_block .mod .icon p,
html[data-theme="dark"] .server_mods_block .addons h3, html[data-theme="dark"] .mods .mod .addons .addon a { color: var(--t-text); }
html[data-theme="dark"] .server_about_block .description, html[data-theme="dark"] .mods .mod .addons_label { color: var(--t-text-2); }
html[data-theme="dark"] .server_about_block .graphics .icon { background: var(--t-card-2); }
html[data-theme="dark"] .server_mods_block .addons .item { background: var(--t-card-2); color: var(--t-text); }
html[data-theme="dark"] .server_mods_block .addons .item:hover { background: var(--t-border); }

/* Правила */
html[data-theme="dark"] .rules_text { background: var(--t-card-2); box-shadow: none; color: var(--t-text); }
html[data-theme="dark"] .rules_text span { color: #b9d64a; }
html[data-theme="dark"] .rules_horizontal { background: var(--t-border); }
html[data-theme="dark"] mark { background: #6b5a12; color: #fff3b0; }

/* Кейсы, флажки */
html[data-theme="dark"] .cases_items .item { background: var(--t-border); }
html[data-theme="dark"] .cases_items #add_new_case { color: var(--t-text-3); }
html[data-theme="dark"] .cases_items #add_new_case:hover { color: #f3d271; background: var(--t-border-2); }
html[data-theme="dark"] .checkbox_container .checkmark { background-color: var(--t-field); box-shadow: inset 0 0 0 1px var(--t-border-2); }
html[data-theme="dark"] .checkbox_container:hover input ~ .checkmark { background-color: var(--t-card-2); }
html[data-theme="dark"] .checkbox_container input:checked ~ .checkmark { background-color: #adc835; }
html[data-theme="dark"] .download_container .download_button { border-color: var(--t-border-2); }
html[data-theme="dark"] .download_container .download_button span { color: var(--t-text) !important; }
html[data-theme="dark"] .download_container .download_button img[src*="macos"] { filter: invert(1); }
html[data-theme="dark"] .donate_container { background: linear-gradient(109.87deg, #222429 0%, #3b2c1c 100%); }
html[data-theme="dark"] .donate_container .bg_image { opacity: .12; }
html[data-theme="dark"] .cabinet_block .function_block .title { box-shadow: none; }
html[data-theme="dark"] .simple_table { box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }

/* Магазин и каталог в кабинете (разметка приходит скриптом), окно smcui */
html[data-theme="dark"] .shop_menu { background: var(--t-card-2); }
html[data-theme="dark"] .shop_menu #shop_search { background-color: var(--t-field); background-image: url(../images/dark/search_icon.png); color: var(--t-text); border-bottom-color: var(--t-border-2); box-shadow: none; }
html[data-theme="dark"] .shop_catalog .item { background-color: var(--t-card-2); box-shadow: 0 2px 13px -3px rgba(0, 0, 0, .6); color: var(--t-text); }
html[data-theme="dark"] .shop_catalog_item a { box-shadow: none; }
html[data-theme="dark"] #smcui-modal { background: var(--t-card); color: var(--t-text); }

/* Встроенные стили страниц кабинета: заявки в модераторы, редакторы кейсов и магазина, разделитель меню */
html[data-theme="dark"] .moderator_tell_why { background: var(--t-card-2); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); color: var(--t-text-2); }
html[data-theme="dark"] .moderator_tell_why h3 { color: var(--t-text); }
html[data-theme="dark"] #questionnaire_content .hr { background: var(--t-border); }
html[data-theme="dark"] #editor_item_icon, html[data-theme="dark"] .editor_icon { background: var(--t-border); }
html[data-theme="dark"] .cabinet_block [style*="#ebe7dc"] { background: var(--t-border) !important; }

/* Полосы шапки и подвала, мониторинг: нейтральный графит вместо коричневого (картинки перекрашены с сохранением фактуры) */
html[data-theme="dark"] #footer_container { background-image: url(../images/dark/footer_bg.png); }
html[data-theme="dark"] footer:after { background: #26292e; }
html[data-theme="dark"] #copyrights p, html[data-theme="dark"] .policies a { color: var(--t-text-3); }
html[data-theme="dark"] ul.slidesjs-pagination li a { background: #464b53; }
html[data-theme="dark"] .monitoring_block { background: #1d1f22; }
html[data-theme="dark"] .monitoring_block h3 { background-color: #24272b; border-left-color: #3a3e44; }
html[data-theme="dark"] .monitoring_block .version_block { background: #1a1c1f; border-left-color: #34373d; }
html[data-theme="dark"] .monitoring_block .servers_block, html[data-theme="dark"] .monitoring_block .total_online_block { border-left-color: #3a3e44; }
html[data-theme="dark"] .monitoring_block .server_content { background-image: url(/templates/simpleminecraft/images/dark/server_bg.png?v=2); border-bottom-color: #17191b; border-top-color: #2e3136; }
html[data-theme="dark"] .monitoring_block .server_content .information, html[data-theme="dark"] .monitoring_block .server_content .button { border-right-color: #17191b; }
html[data-theme="dark"] .monitoring_block .server_content h4 i, html[data-theme="dark"] .monitoring_block .server_content .button .fa-info-circle,
html[data-theme="dark"] .monitoring_block .server_content .button, html[data-theme="dark"] .monitoring_block .total_online_block .information span { color: var(--t-text-3); }
html[data-theme="dark"] .monitoring_block .server_content .online_text { color: var(--t-text-2); }
html[data-theme="dark"] .monitoring_block .server_content .online_graphics { background: #3a3e44; }
html[data-theme="dark"] .monitoring_block .server_content .button:hover, html[data-theme="dark"] .monitoring_block .activated { background-color: #17191b !important; border-bottom-color: #17191b !important; }
html[data-theme="dark"] .monitoring_block .servers_list { background: #17191b; border-left-color: #3a3e44; }
html[data-theme="dark"] .monitoring_block .servers_list .server { background: #1d1f22; }
html[data-theme="dark"] .monitoring_block .servers_list .circle { background: #131416; }
html[data-theme="dark"] .monitoring_block .total_online_block .information { border-right-color: #2e3136; }
html[data-theme="dark"] a.gamesymbol { filter: grayscale(1) brightness(1.3); }

/* Наборы и привилегии (css/simplemc-ui.css, groups/*.tpl) */
html[data-theme="dark"] .available_kits .kit_block { background: var(--t-card-2); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); color: var(--t-text); }
html[data-theme="dark"] .available_kits .kit_block:hover { background: #2b2f34; }
html[data-theme="dark"] .available_kits .kit_block h1 { color: var(--t-text); }
html[data-theme="dark"] .available_kits .kit_block h3 { background: rgba(255, 255, 255, .08); color: var(--t-text-2); }
html[data-theme="dark"] .available_kits .kit_block .kit_for_servers .servers { color: var(--t-text-2); }
html[data-theme="dark"] .available_kits .kit_block .kit_for_servers b { color: var(--t-text); }
html[data-theme="dark"] .white_shadowed_block { background: var(--t-card-2); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); color: var(--t-text-2); }
html[data-theme="dark"] .white_shadowed_block h3 { color: var(--t-text); }
html[data-theme="dark"] .privileges .item .price { background: var(--t-card-2); color: var(--t-text-3); }
html[data-theme="dark"] .privileges .item .price span { color: var(--t-text); }
html[data-theme="dark"] .donate_action_button { background-color: var(--t-card-2); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
html[data-theme="dark"] .donate_action_button:hover { background-color: #2b2f34; }
html[data-theme="dark"] .donate_action_button_activated { background-color: #33373d !important; }
html[data-theme="dark"] .donate_action_button i, html[data-theme="dark"] .donate_action_button:hover i,
html[data-theme="dark"] .donate_action_button_activated i { color: #34383e !important; }
html[data-theme="dark"] .donate_action_button small { color: var(--t-text-2); }
html[data-theme="dark"] .purchase_buttons_list .purchase_button { background: var(--t-card-2); }
html[data-theme="dark"] .purchase_buttons_list .purchase_button_selected { background: #33373d; box-shadow: 0 4px 20px 4px rgba(0, 0, 0, .45); }
html[data-theme="dark"] [style*="#9c3b99"] { color: #c98ac6 !important; }
html[data-theme="dark"] .monitoring_block .servers_list .online { background-image: url(/templates/simpleminecraft/images/dark/server-user-big-icon.png?v=2); }
html[data-theme="dark"] .monitoring_block .server_content .online_text { background-image: url(/templates/simpleminecraft/images/dark/server-user-small-icon.png?v=2); }

/* Команда проекта (team.tpl, servers/team): графитовые карточки, роль - отсветом слева и цветом подписи */
html[data-theme="dark"] .team_title a { color: #e0a96d; }
html[data-theme="dark"] .member_container { --role: 160, 166, 175; background: linear-gradient(91deg, rgba(var(--role), .16) 0%, var(--t-card-2) 55%);
    border-color: var(--t-border); box-shadow: 0 4px 14px rgba(0, 0, 0, .35); color: var(--t-text); }
html[data-theme="dark"] .member_content .member_title p { color: rgb(var(--role)); opacity: 1; }
html[data-theme="dark"] .admin_bg { --role: 255, 128, 128; }
html[data-theme="dark"] .adminhelper_bg { --role: 255, 160, 120; }
html[data-theme="dark"] .headmoder_bg { --role: 140, 165, 255; }
html[data-theme="dark"] .moder_bg { --role: 120, 190, 255; }
html[data-theme="dark"] .lowmoder_bg { --role: 170, 210, 245; }
html[data-theme="dark"] .curator_bg { --role: 190, 225, 110; }
html[data-theme="dark"] .member_socials a { color: var(--t-text-2); }
html[data-theme="dark"] .member_socials svg path { fill: var(--t-text-2); }

/* Окно пополнения счёта (engine/modules/payments/payments_window.php) */
html[data-theme="dark"] .modal_wrapper { background: rgba(0, 0, 0, .72); }
html[data-theme="dark"] .payment_container { color: var(--t-text-2); }
html[data-theme="dark"] .payment_container .title { color: var(--t-text); }
html[data-theme="dark"] .payment_container .title .button_close { background: rgba(255, 255, 255, .08); color: var(--t-text); }
html[data-theme="dark"] .amount_select_container .button_amount, html[data-theme="dark"] .amount_select_container .input_amount {
    background: var(--t-card-2); border-color: var(--t-card-2); color: var(--t-text); box-shadow: none; }
html[data-theme="dark"] .amount_select_container .button_amount:hover { background: #2b2f34; }
html[data-theme="dark"] .amount_select_container .button_amount_selected, html[data-theme="dark"] .amount_select_container .input_amount_selected {
    background: #0e0f11; border-color: #0e0f11; box-shadow: 0 0 0 2px #a2be06; }
html[data-theme="dark"] .amount_select_container .input_amount input { background-image: linear-gradient(var(--t-text), var(--t-text)) !important; }
html[data-theme="dark"] .amount_select_container .input_amount_selected input { background-image: linear-gradient(to right, #fffb52, #A2BE06) !important; }
html[data-theme="dark"] .amount_select_container .input_amount_focus { background: var(--t-card-2); border-color: #a2be06; }
html[data-theme="dark"] .amount_select_container .input_amount_focus input { background-image: linear-gradient(var(--t-text), var(--t-text)) !important; }
html[data-theme="dark"] .name_input { color: var(--t-text-2); }
html[data-theme="dark"] .name_input input, html[data-theme="dark"] .name_input input:focus { background: var(--t-field); border-color: var(--t-border-2); color: var(--t-text); box-shadow: none; }
html[data-theme="dark"] .name_input input:focus { border-color: #a2be06; }
html[data-theme="dark"] .method_select_container .button_pay { background: var(--t-card-2); border-color: rgba(255, 255, 255, .08); }
html[data-theme="dark"] .method_select_container .button_pay:hover { background: rgba(164, 191, 8, .12); border-color: #a4bf08; }
html[data-theme="dark"] .method_select_container .button_pay .description h1 { color: var(--t-text); }
html[data-theme="dark"] .method_select_container .button_pay .description p { color: var(--t-text-3); }
html[data-theme="dark"] .method_select_container .button_pay img { background: #f1ede6; box-shadow: 0 0 0 7px #f1ede6; border-radius: 3px; }
html[data-theme="dark"] .payment_rights, html[data-theme="dark"] .payment_rights a { color: var(--t-text-3); }
