:root {
    color-scheme: light;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --theme-shell: #111b29;
    --theme-content: #121d2c;
    --theme-panel: #172334;
    --theme-panel-raised: #1b293b;
    --theme-field: #101b29;
    --theme-border: #2b3d52;
    --theme-border-soft: #223247;
    --theme-text: #e5edf7;
    --theme-text-soft: #c4d0df;
    --theme-muted: #9bacc1;
    --theme-faint: #71849b;
    --theme-accent: #e01a3f;
    --theme-accent-hover: #f02b50;
    --theme-shadow: rgba(0, 0, 0, 0.32);
}

[data-theme="dark"] body {
    background: linear-gradient(145deg, #070b12 0%, #101a28 52%, #080d15 100%);
    color: var(--theme-text);
}

[data-theme="dark"] .dashboard {
    background: var(--theme-shell);
    border-color: var(--theme-border);
}

[data-theme="dark"] .center-col {
    background: linear-gradient(165deg, #131f2f 0%, #101a28 100%);
    border-color: var(--theme-border);
    color: var(--theme-text);
}

[data-theme="dark"] .right-col {
    background: linear-gradient(165deg, #101b29 0%, #0d1622 100%);
}

[data-theme="dark"] .site-header,
[data-theme="dark"] .site-footer {
    border-color: #344a64;
}

[data-theme="dark"] .header-logo-text,
[data-theme="dark"] .header-logo-text span,
[data-theme="dark"] .footer-info h3,
[data-theme="dark"] .footer-info h3 span {
    color: var(--theme-muted);
}

[data-theme="dark"] .header-logo-admin {
    color: var(--theme-faint);
}

[data-theme="dark"] .user-dropdown {
    background: #172334;
    border: 1px solid var(--theme-border);
    box-shadow: 0 14px 34px var(--theme-shadow);
}

[data-theme="dark"] .dropdown-item {
    color: var(--theme-text-soft);
}

[data-theme="dark"] .dropdown-item:hover {
    background: #202f43;
    color: #ff6b86;
}

[data-theme="dark"] .dropdown-item i {
    color: var(--theme-muted);
}

[data-theme="dark"] .dropdown-item.logout {
    border-color: var(--theme-border);
}

[data-theme="dark"] .user-info-mini .username {
    color: var(--theme-muted);
}

[data-theme="dark"] .genres-section {
    background: rgba(23, 35, 52, 0.88);
    border: 1px solid var(--theme-border-soft);
}

[data-theme="dark"] .genre-item {
    color: var(--theme-text-soft);
}

[data-theme="dark"] .genre-item:hover {
    background: #202f43;
    color: #ffffff;
}

[data-theme="dark"] .genre-item.active {
    background: rgba(224, 26, 63, 0.18);
    color: #ff7890;
}

[data-theme="dark"] .genre-count {
    background: #243449;
    color: var(--theme-muted);
}

[data-theme="dark"] .genre-divider {
    background: var(--theme-border);
}

[data-theme="dark"] .admin-back {
    border-color: var(--theme-border);
    background: var(--theme-panel-raised);
    color: var(--theme-text-soft);
}

[data-theme="dark"] .admin-back:hover {
    border-color: #3a4f69;
    background: #24354a;
    color: var(--theme-text);
}

[data-theme="dark"] .game-detail-description h3,
[data-theme="dark"] .admin-header h1,
[data-theme="dark"] .inventory-header h1 {
    color: var(--theme-text);
}

[data-theme="dark"] .section-title {
    color: var(--theme-muted);
}

[data-theme="dark"] .game-detail-header h1 {
    color: var(--theme-muted);
}

[data-theme="dark"] .game-title {
    color: var(--theme-muted);
}

[data-theme="dark"] .category-description,
[data-theme="dark"] .game-detail-description p,
[data-theme="dark"] .game-text-content,
[data-theme="dark"] .game-text-content p,
[data-theme="dark"] .game-text-content li,
[data-theme="dark"] .review-comment,
[data-theme="dark"] .admin-header p,
[data-theme="dark"] .my-games-empty,
[data-theme="dark"] .home-seo-content {
    color: var(--theme-muted);
}

[data-theme="dark"] .game-text-content h4 {
    color: var(--theme-muted);
}

[data-theme="dark"] .game-card {
    background: var(--theme-panel);
    border: 1px solid var(--theme-border-soft);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.18);
}

[data-theme="dark"] .game-card:hover {
    border-color: #435a75;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .games-section-block {
    /* Та же тёмная подложка, что и у SEO-блока внизу главной. */
    background: rgba(23, 35, 52, 0.76);
    border-color: var(--theme-border);
    box-shadow: none;
}

[data-theme="dark"] .game-info {
    background: var(--theme-panel);
}

[data-theme="dark"] .preview-category,
[data-theme="dark"] .preview-plays,
[data-theme="dark"] .preview-rating {
    color: var(--theme-muted);
}

[data-theme="dark"] #playButton,
[data-theme="dark"] #playButton:hover,
[data-theme="dark"] #playButton i {
    color: var(--theme-muted);
}

[data-theme="dark"] #playButton,
[data-theme="dark"] #playButton:hover {
    background: #162233;
    background-image: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .game-category {
    color: var(--theme-muted);
}

[data-theme="dark"] .load-more-btn,
[data-theme="dark"] .pagination .page-link,
[data-theme="dark"] .seo-pagination a {
    background: #182638;
    border-color: var(--theme-border);
    color: var(--theme-text-soft);
}

[data-theme="dark"] .load-more-btn:hover,
[data-theme="dark"] .pagination .page-link:hover,
[data-theme="dark"] .seo-pagination a:hover {
    background: #223247;
    border-color: var(--theme-accent);
    color: #ffffff;
}

[data-theme="dark"] .pagination .page-link.active {
    background: var(--theme-accent);
    border-color: var(--theme-accent);
    color: #ffffff;
}

[data-theme="dark"] .home-seo-content {
    background: rgba(23, 35, 52, 0.76);
    border-color: var(--theme-border);
}

[data-theme="dark"] .home-seo-content h2 {
    color: var(--theme-muted);
}

[data-theme="dark"] .game-detail-card {
    background: transparent;
}

/* Блок рекомендаций на странице игры. Карточки используют общие стили
   главной страницы, а контейнер и служебная ссылка требуют отдельной темы. */
[data-theme="dark"] .similar-games-section {
    background: var(--theme-panel) !important;
    border-color: var(--theme-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

[data-theme="dark"] .similar-games-section .section-title {
    color: var(--theme-text);
}

[data-theme="dark"] .similar-games-section .section-title i {
    color: #b49aff;
}

[data-theme="dark"] .game-detail-header,
[data-theme="dark"] .game-detail-content,
[data-theme="dark"] .game-text-block,
[data-theme="dark"] .reviews-section {
    background: rgba(23, 35, 52, 0.82);
    border-color: var(--theme-border);
}

[data-theme="dark"] .game-detail-header,
[data-theme="dark"] .game-detail-content,
[data-theme="dark"] .review-form-card,
[data-theme="dark"] .review-card {
    border-color: var(--theme-border);
}

[data-theme="dark"] .review-date,
[data-theme="dark"] .no-reviews {
    color: var(--theme-muted);
}

[data-theme="dark"] .reviews-badge {
    background: rgba(155, 172, 193, 0.1);
    border-color: rgba(155, 172, 193, 0.28);
    color: var(--theme-muted);
}

[data-theme="dark"] .game-tag-link {
    background: #1a2738;
    border-color: #2d4056;
    color: #a8b7c9;
}

[data-theme="dark"] .game-tag-link:hover {
    background: #202f42;
    border-color: #3a5069;
    color: #d5deea;
}

[data-theme="dark"] .review-card,
[data-theme="dark"] .review-form-card {
    background: var(--theme-panel-raised);
}

[data-theme="dark"] .review-form-header,
[data-theme="dark"] .rating-group label,
[data-theme="dark"] .comment-group label {
    color: var(--theme-text-soft);
}

[data-theme="dark"] .review-form-header i {
    color: var(--theme-faint);
}

[data-theme="dark"] .comment-group textarea {
    background: var(--theme-field);
    border-color: var(--theme-border);
    color: var(--theme-text);
}

[data-theme="dark"] .comment-group textarea::placeholder,
[data-theme="dark"] .char-counter {
    color: var(--theme-faint);
}

[data-theme="dark"] .comment-group textarea:focus {
    border-color: var(--theme-accent);
    box-shadow: 0 0 0 3px rgba(224, 26, 63, 0.16);
}

[data-theme="dark"] .star-rating i.far {
    color: #52677f;
}

[data-theme="dark"] .review-author .author-name {
    color: var(--theme-text);
}

[data-theme="dark"] .review-author-name,
[data-theme="dark"] .review-author-name:hover {
    color: var(--theme-muted);
}

[data-theme="dark"] .review-comment-text {
    color: var(--theme-muted);
}

[data-theme="dark"] .game-text-block > h3,
[data-theme="dark"] .game-chat .chat-header h4 {
    color: var(--theme-muted);
}

[data-theme="dark"] .game-chat .chat-header h4 i {
    color: inherit;
}

[data-theme="dark"] #progressTitle {
    color: var(--theme-muted);
}

[data-theme="dark"] .game-chat {
    background: rgba(23, 35, 52, 0.9) !important;
    border-color: var(--theme-border) !important;
}

[data-theme="dark"] .game-chat .chat-messages,
[data-theme="dark"] .game-chat .chat-input-area {
    background: #111c2a !important;
}

[data-theme="dark"] .game-chat .chat-input-area {
    border-color: var(--theme-border) !important;
}

[data-theme="dark"] .game-chat .chat-input-area input {
    background: var(--theme-field) !important;
    border-color: #344961 !important;
    color: var(--theme-text) !important;
    caret-color: var(--theme-text);
}

[data-theme="dark"] .game-chat .chat-input-area input::placeholder {
    color: var(--theme-faint) !important;
}

[data-theme="dark"] .game-chat .chat-input-area input:focus {
    border-color: var(--theme-accent) !important;
    box-shadow: 0 0 0 3px rgba(224, 26, 63, 0.16) !important;
}

html[data-theme="dark"] #gameChat #chatInput,
html[data-theme="dark"] #gameChat #chatInput:disabled {
    background-color: #101b29 !important;
    border-color: #344961 !important;
    color: #e5edf7 !important;
    -webkit-text-fill-color: #e5edf7;
    opacity: 1;
}

html[data-theme="dark"] #gameChat #chatInput::placeholder {
    color: #71849b !important;
    -webkit-text-fill-color: #71849b;
    opacity: 1;
}

[data-theme="dark"] .game-chat .chat-text {
    color: #9bacc1 !important;
}

[data-theme="dark"] .game-chat .chat-bubble {
    background: #162334 !important;
    border-color: #2d4056 !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .14);
}

[data-theme="dark"] .game-chat .chat-message.mine .chat-bubble {
    background: #1c2b3d !important;
    border-color: #3a4e65 !important;
}

[data-theme="dark"] .game-chat .chat-time {
    color: #71849b;
}

[data-theme="dark"] .game-chat .chat-empty {
    color: var(--theme-muted) !important;
}

[data-theme="dark"] .game-chat .chat-empty i {
    color: #52677f !important;
}

[data-theme="dark"] .game-chat .chat-messages::-webkit-scrollbar-thumb {
    background: #40546d;
}

[data-theme="dark"] .profile-tabs {
    background: #101a28;
    border-color: var(--theme-border);
}

[data-theme="dark"] .profile-tab {
    color: var(--theme-muted);
}

[data-theme="dark"] .profile-tab:hover {
    background: #1c2a3d;
    color: var(--theme-text);
}

[data-theme="dark"] .profile-tab.active {
    background: #223247;
    color: #ff718b;
    box-shadow: 0 2px 9px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .tab-badge {
    background: #26374c;
    color: var(--theme-muted);
}

[data-theme="dark"] .inventory-count {
    background: #1b293b;
    color: var(--theme-muted);
}

[data-theme="dark"] .item-page .ip-title {
    color: var(--theme-muted);
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: var(--theme-muted);
}

[data-theme="dark"] .market-page .market-header h1,
[data-theme="dark"] .market-page .item-name,
[data-theme="dark"] .market-page .item-name-link,
[data-theme="dark"] .market-page .item-name-link:hover,
[data-theme="dark"] .market-page .item-name-link:focus,
[data-theme="dark"] .market-page .btn-sell-link,
[data-theme="dark"] .market-page .btn-sell-link:hover,
[data-theme="dark"] .market-page .btn-sell-link:focus {
    color: var(--theme-muted);
}

[data-theme="dark"] .market-page .market-scope {
    background: var(--theme-field);
    border-color: var(--theme-border);
    color: var(--theme-muted);
}

[data-theme="dark"] .market-page .market-scope i {
    color: var(--theme-muted);
}

[data-theme="dark"] .market-page .market-scope:hover {
    background: var(--theme-panel-raised);
    border-color: var(--theme-muted);
    color: var(--theme-text);
}

[data-theme="dark"] .market-page .market-search button {
    background: var(--theme-field);
    border-color: var(--theme-border);
    color: var(--theme-muted);
}

[data-theme="dark"] .market-page .market-search button i,
[data-theme="dark"] .market-page .market-header h1 i {
    color: var(--theme-muted);
}

[data-theme="dark"] .market-page .market-search button:hover,
[data-theme="dark"] .market-page .market-search button:focus-visible {
    background: var(--theme-panel-raised);
    border-color: var(--theme-muted);
    color: var(--theme-muted);
}

/* Страница выставления предмета на рынок */
[data-theme="dark"] .sell-page h1,
[data-theme="dark"] .sell-page h2 {
    color: var(--theme-text);
}

[data-theme="dark"] .sell-items,
[data-theme="dark"] .sell-form-box {
    background: var(--theme-panel);
    border-color: var(--theme-border);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
}

[data-theme="dark"] .sell-item:hover {
    box-shadow: 0 10px 26px rgba(0, 0, 0, .36);
}

[data-theme="dark"] .sell-form-box label {
    color: var(--theme-text-soft);
}

[data-theme="dark"] .sell-form-box label small {
    color: var(--theme-faint);
}

[data-theme="dark"] .sell-form-box input,
[data-theme="dark"] .sell-form-box select {
    background: var(--theme-field);
    border-color: var(--theme-border);
    color: var(--theme-text);
    color-scheme: dark;
}

[data-theme="dark"] .sell-form-box input:focus,
[data-theme="dark"] .sell-form-box select:focus {
    outline: none;
    border-color: var(--theme-accent);
    box-shadow: 0 0 0 3px rgba(224, 26, 63, .16);
}

[data-theme="dark"] .sell-selected-hint,
[data-theme="dark"] .market-hint {
    color: var(--theme-faint);
}

[data-theme="dark"] .sell-selected-hint.chosen {
    color: #63d391;
}

[data-theme="dark"] .market-empty {
    color: var(--theme-muted);
}

[data-theme="dark"] .market-empty i {
    color: var(--theme-border);
}

[data-theme="dark"] .market-empty .hint {
    color: var(--theme-faint);
}

[data-theme="dark"] .inventory-page .item-name,
[data-theme="dark"] .inventory-page .item-name-link,
[data-theme="dark"] .inventory-page .item-name-link:hover,
[data-theme="dark"] .inventory-page .item-name-link:focus {
    color: var(--theme-muted);
}

[data-theme="dark"] .inventory-page .inventory-header h1 i,
[data-theme="dark"] .inventory-page .empty-inventory > i {
    color: var(--theme-faint);
}

[data-theme="dark"] .inventory-page .filter-tab.active,
[data-theme="dark"] .inventory-page .filter-search button {
    background: #25364b;
    border-color: #3d5270;
    color: var(--theme-muted);
}

[data-theme="dark"] .inventory-page .filter-search button i {
    color: var(--theme-muted);
}

[data-theme="dark"] .inventory-page .filter-tab.active:hover,
[data-theme="dark"] .inventory-page .filter-search button:hover,
[data-theme="dark"] .inventory-page .filter-search button:focus-visible {
    background: #30455e;
    border-color: #526b88;
    color: var(--theme-muted);
}

[data-theme="dark"] .game-detail-card .no-reviews > i {
    color: var(--theme-muted);
}

[data-theme="dark"] .inventory-grid-panel,
[data-theme="dark"] .inventory-filters,
[data-theme="dark"] .item-card-inner {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .notifications-page,
[data-theme="dark"] .notifications-list {
    color: var(--theme-text);
}

[data-theme="dark"] .notifications-header {
    border-color: var(--theme-border);
}

[data-theme="dark"] .notification-item {
    background: var(--theme-panel);
    border-color: var(--theme-border);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

[data-theme="dark"] .notification-item:hover {
    background: var(--theme-panel-raised);
    border-color: #405773;
}

[data-theme="dark"] .notification-item.unread {
    background: #1c293c;
}

[data-theme="dark"] .notification-title {
    color: var(--theme-text);
}

[data-theme="dark"] .notification-message,
[data-theme="dark"] .notification-meta,
[data-theme="dark"] .empty-notifications,
[data-theme="dark"] .empty-notifications .hint {
    color: var(--theme-muted);
}

[data-theme="dark"] .settings-card,
[data-theme="dark"] .register-wrapper,
[data-theme="dark"] .login-wrapper,
[data-theme="dark"] .balance-card,
[data-theme="dark"] .privacy-container,
[data-theme="dark"] .terms-container,
[data-theme="dark"] .rate-limit-card {
    background: var(--theme-panel);
    border-color: var(--theme-border);
    box-shadow: 0 12px 34px var(--theme-shadow);
}

[data-theme="dark"] .settings-header,
[data-theme="dark"] .register-header,
[data-theme="dark"] .login-header,
[data-theme="dark"] .privacy-header,
[data-theme="dark"] .terms-header {
    border-color: var(--theme-border);
}

[data-theme="dark"] .settings-header h1,
[data-theme="dark"] .register-header h1,
[data-theme="dark"] .login-header h1,
[data-theme="dark"] .privacy-header h1,
[data-theme="dark"] .terms-header h1,
[data-theme="dark"] .privacy-section h2,
[data-theme="dark"] .privacy-section h3,
[data-theme="dark"] .terms-section h2,
[data-theme="dark"] .terms-section h3,
[data-theme="dark"] .rate-limit-title {
    color: var(--theme-text);
}

[data-theme="dark"] .settings-header p,
[data-theme="dark"] .register-header p,
[data-theme="dark"] .login-header p,
[data-theme="dark"] .privacy-header p,
[data-theme="dark"] .terms-header p,
[data-theme="dark"] .privacy-section p,
[data-theme="dark"] .privacy-section li,
[data-theme="dark"] .terms-section p,
[data-theme="dark"] .terms-section li,
[data-theme="dark"] .rate-limit-subtitle,
[data-theme="dark"] .rate-limit-details .detail-label {
    color: var(--theme-muted);
}

[data-theme="dark"] .privacy-section,
[data-theme="dark"] .terms-section,
[data-theme="dark"] .privacy-footer,
[data-theme="dark"] .terms-footer {
    border-color: var(--theme-border);
}

[data-theme="dark"] .privacy-note,
[data-theme="dark"] .rate-limit-details {
    background: #111c2a;
    border-color: var(--theme-border);
}

[data-theme="dark"] .rate-limit-details .detail-row {
    border-color: var(--theme-border);
}

[data-theme="dark"] .rate-limit-details .detail-value {
    color: var(--theme-text);
}

[data-theme="dark"] .form-group label,
[data-theme="dark"] .modal-body .form-group label,
[data-theme="dark"] .game-form label,
[data-theme="dark"] .filter-row label {
    color: var(--theme-text-soft);
}

[data-theme="dark"] .center-col input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
[data-theme="dark"] .center-col select,
[data-theme="dark"] .center-col textarea,
[data-theme="dark"] .modal-content input:not([type="checkbox"]):not([type="radio"]),
[data-theme="dark"] .modal-content select,
[data-theme="dark"] .modal-content textarea {
    background: var(--theme-field);
    border-color: #344961;
    color: var(--theme-text);
}

[data-theme="dark"] .center-col input::placeholder,
[data-theme="dark"] .center-col textarea::placeholder,
[data-theme="dark"] .modal-content input::placeholder,
[data-theme="dark"] .modal-content textarea::placeholder {
    color: var(--theme-faint);
}

[data-theme="dark"] .center-col input:disabled,
[data-theme="dark"] .center-col textarea:disabled,
[data-theme="dark"] .disabled-input {
    background: #162131;
    color: #73869c;
}

[data-theme="dark"] .admin-section,
[data-theme="dark"] .table-wrapper {
    background: rgba(23, 35, 52, 0.9);
    border-color: var(--theme-border);
}

[data-theme="dark"] .admin-section h2 {
    color: var(--theme-text);
    border-color: var(--theme-border);
}

/* Фон убираем в прозрачный: main_styles.css задаёт таблице белый, а подложку
   в тёмной теме уже даёт .admin-section или .table-wrapper вокруг неё. */
[data-theme="dark"] .admin-table,
[data-theme="dark"] table {
    background: transparent;
    color: var(--theme-text-soft);
}

[data-theme="dark"] .admin-table th,
[data-theme="dark"] table th {
    background: #111c2a;
    color: var(--theme-text);
    border-color: var(--theme-border);
}

/* Цвет задаём самой ячейке, а не только таблице: в main_styles.css у td
   свой color, и он перебивает унаследованный от родителя. */
[data-theme="dark"] .admin-table td,
[data-theme="dark"] table td {
    border-color: var(--theme-border);
    color: var(--theme-text-soft);
}

[data-theme="dark"] .admin-table tr:hover td,
[data-theme="dark"] table tbody tr:hover td {
    background: rgba(43, 61, 82, 0.42);
}

[data-theme="dark"] .modal-content,
[data-theme="dark"] .delete-modal-content,
[data-theme="dark"] .crop-modal-content {
    background: var(--theme-panel-raised);
    border: 1px solid var(--theme-border);
    color: var(--theme-text);
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer,
[data-theme="dark"] .delete-modal-header,
[data-theme="dark"] .delete-modal-footer,
[data-theme="dark"] .crop-modal-header {
    border-color: var(--theme-border);
}

[data-theme="dark"] .modal-header h3,
[data-theme="dark"] .delete-modal-header h3,
[data-theme="dark"] .crop-modal-header h3 {
    color: var(--theme-text);
}

[data-theme="dark"] .delete-modal-header {
    background: rgba(224, 26, 63, 0.13);
}

[data-theme="dark"] .modal-body p,
[data-theme="dark"] .delete-modal-body p {
    color: var(--theme-muted);
}

[data-theme="dark"] .delete-modal-body .message-preview {
    background: #111c2a;
    color: var(--theme-text-soft);
}

[data-theme="dark"] .btn-cancel,
[data-theme="dark"] .btn-crop-cancel,
[data-theme="dark"] .delete-modal-footer .btn-cancel,
[data-theme="dark"] .btn-clear-filter,
[data-theme="dark"] .btn-home {
    background: #25354a;
    border-color: #3b506a;
    color: var(--theme-text-soft);
}

[data-theme="dark"] .btn-cancel:hover,
[data-theme="dark"] .btn-crop-cancel:hover,
[data-theme="dark"] .delete-modal-footer .btn-cancel:hover,
[data-theme="dark"] .btn-clear-filter:hover,
[data-theme="dark"] .btn-home:hover {
    background: #30435b;
    color: #ffffff;
}

[data-theme="dark"] ::selection {
    background: rgba(224, 26, 63, 0.55);
    color: #ffffff;
}

[data-theme="dark"] * {
    scrollbar-color: #40546d #101a28;
}

@media (max-width: 768px) {
    [data-theme="dark"] body {
        background: #0b111b;
    }
}

@media (prefers-reduced-motion: reduce) {
    .theme-toggle {
        transition: none;
    }
}

/* Единый цвет текста админ-панели в тёмной теме. */
[data-theme="dark"] .admin-container [style*="color: white"],
[data-theme="dark"] .admin-container [style*="color: #fff"],
[data-theme="dark"] .admin-container [style*="color:#fff"],
[data-theme="dark"] .admin-container .btn-add-game,
[data-theme="dark"] .admin-container .btn-edit,
[data-theme="dark"] .admin-container .btn-delete,
[data-theme="dark"] .admin-container .btn-filter,
[data-theme="dark"] .admin-container .btn-add-item,
[data-theme="dark"] .admin-container .btn-refresh,
[data-theme="dark"] .admin-container .btn-grant,
[data-theme="dark"] .admin-container .btn-confirm-delete,
[data-theme="dark"] .admin-container .stat-card {
    color: #9bacc1 !important;
}

[data-theme="dark"] .admin-container .admin-table th,
[data-theme="dark"] .admin-container .admin-table td,
[data-theme="dark"] .admin-container table th,
[data-theme="dark"] .admin-container table td {
    color: #9bacc1 !important;
}

/* Основной текст страницы админ-панели и блока дневной аналитики. */
[data-theme="dark"] .admin-container .admin-header h1,
[data-theme="dark"] .admin-container .admin-header p,
[data-theme="dark"] .admin-container .stat-value,
[data-theme="dark"] .admin-container .stat-label,
[data-theme="dark"] .admin-container .stat-action-title,
[data-theme="dark"] .admin-container .metrics-heading h2,
[data-theme="dark"] .admin-container .metrics-heading p,
[data-theme="dark"] .admin-container .metrics-note,
[data-theme="dark"] .admin-container .metrics-label,
[data-theme="dark"] .admin-container .metrics-value,
[data-theme="dark"] .admin-container .metrics-hint,
[data-theme="dark"] .admin-container .metrics-subtitle,
[data-theme="dark"] .admin-container .metrics-row,
[data-theme="dark"] .admin-container .metrics-empty {
    color: #9bacc1 !important;
}
