/**
 * RusCOD light theme — late-cascade safety net for page-inline CSS.
 * Only applies under html[data-theme="light"]. Dark theme untouched.
 */

html[data-theme="light"] {
    --theme-bg: #e8eef5;
    --theme-bg-elevated: #f4f7fb;
    --theme-surface: #ffffff;
    --theme-text: #1a2332;
    --theme-text-secondary: #3a4a5c;
    --theme-text-muted: #5a6a7c;
    --theme-border: rgba(45, 140, 214, 0.32);
    --theme-link: #1a5f96;
    --theme-heading: #1568a8;
}

/* Page shells — body stays transparent so .animated-bg is not covered */
html body {
    background-color: transparent !important;
}

html[data-theme="light"] body {
    background: transparent !important;
    color: var(--theme-text) !important;
}

html[data-theme="light"] .animated-bg {
    background: var(--theme-bg) !important;
}

/*
 * Animated background — late !important so page-inline dark CSS
 * (about/bans/faq/…) cannot flatten light theme to a solid wash.
 */
html[data-theme="light"] .bg-grid {
    background-image:
        linear-gradient(rgba(45, 140, 214, 0.22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 140, 214, 0.22) 1px, transparent 1px) !important;
}

html[data-theme="light"] .particles,
html[data-theme="light"] .tracers,
html[data-theme="light"] .light-rays,
html[data-theme="light"] .stars {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

html[data-theme="light"] .particle {
    background: radial-gradient(circle, rgba(45, 140, 214, 0.7), transparent 70%) !important;
    animation-name: floatParticleLight !important;
}

html[data-theme="light"] .particle:nth-child(1) { background: radial-gradient(circle, rgba(45, 140, 214, 0.5), transparent 70%) !important; }
html[data-theme="light"] .particle:nth-child(2) { background: radial-gradient(circle, rgba(45, 140, 214, 0.62), transparent 70%) !important; }
html[data-theme="light"] .particle:nth-child(3) { background: radial-gradient(circle, rgba(63, 169, 245, 0.45), transparent 70%) !important; }
html[data-theme="light"] .particle:nth-child(4) { background: radial-gradient(circle, rgba(45, 140, 214, 0.68), transparent 70%) !important; }
html[data-theme="light"] .particle:nth-child(5) { background: radial-gradient(circle, rgba(45, 140, 214, 0.52), transparent 70%) !important; }
html[data-theme="light"] .particle:nth-child(6) { background: radial-gradient(circle, rgba(45, 140, 214, 0.58), transparent 70%) !important; }
html[data-theme="light"] .particle:nth-child(7) { background: radial-gradient(circle, rgba(63, 169, 245, 0.4), transparent 70%) !important; }
html[data-theme="light"] .particle:nth-child(8) { background: radial-gradient(circle, rgba(45, 140, 214, 0.64), transparent 70%) !important; }

html[data-theme="light"] .tracer {
    background: linear-gradient(90deg, transparent, rgba(45, 140, 214, 0.7), transparent) !important;
}

html[data-theme="light"] .tracer:nth-child(2) {
    background: linear-gradient(90deg, transparent, rgba(45, 140, 214, 0.5), transparent) !important;
}

html[data-theme="light"] .tracer:nth-child(4) {
    background: linear-gradient(90deg, transparent, rgba(45, 140, 214, 0.62), transparent) !important;
}

html[data-theme="light"] .tracer:nth-child(6) {
    background: linear-gradient(90deg, transparent, rgba(45, 140, 214, 0.55), transparent) !important;
}

html[data-theme="light"] .star {
    background: rgba(45, 140, 214, 0.75) !important;
    box-shadow: 0 0 5px rgba(45, 140, 214, 0.45) !important;
}

/* keyframes live in common.css; ensure name resolves if theme-light wins cascade */
@keyframes floatParticleLight {
    0%   { transform: translate(0, 0) scale(1); opacity: 0; }
    10%  { opacity: 0.85; }
    90%  { opacity: 0.85; }
    100% { transform: translate(100px, -200px) scale(1.5); opacity: 0; }
}

html[data-theme="light"] .light-ray {
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(45, 140, 214, 0.08) 30%,
        rgba(45, 140, 214, 0.22) 50%,
        rgba(45, 140, 214, 0.08) 70%,
        transparent 100%
    ) !important;
}

html[data-theme="light"] .bg-noise {
    opacity: 0.04 !important;
    mix-blend-mode: multiply;
}

html[data-theme="light"] .bg-gradient-overlay {
    background:
        radial-gradient(ellipse at 18% 35%, rgba(45, 140, 214, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse at 82% 65%, rgba(63, 169, 245, 0.1) 0%, transparent 55%),
        linear-gradient(
            180deg,
            rgba(232, 238, 245, 0.05) 0%,
            rgba(212, 224, 236, 0.18) 45%,
            rgba(232, 238, 245, 0.28) 100%
        ) !important;
}

@media (prefers-reduced-motion: reduce) {
    html[data-theme="light"] .bg-grid,
    html[data-theme="light"] .particle,
    html[data-theme="light"] .tracer,
    html[data-theme="light"] .star,
    html[data-theme="light"] .light-ray,
    html[data-theme="light"] .bg-noise {
        animation: none !important;
    }
}

/* Generic dark glass panels → solid light surfaces */
html[data-theme="light"] .content-card,
html[data-theme="light"] .content-box,
html[data-theme="light"] .page-card,
html[data-theme="light"] .main-card,
html[data-theme="light"] .info-card,
html[data-theme="light"] .tool-card,
html[data-theme="light"] .filter-bar,
html[data-theme="light"] .search-box,
html[data-theme="light"] .search-form,
html[data-theme="light"] .pagination,
html[data-theme="light"] .tabs,
html[data-theme="light"] .tab-nav,
html[data-theme="light"] .table-wrap,
html[data-theme="light"] .table-container,
html[data-theme="light"] .data-table,
html[data-theme="light"] .ban-item,
html[data-theme="light"] .ban-row,
html[data-theme="light"] .demo-item,
html[data-theme="light"] .chat-box,
html[data-theme="light"] .chat-messages,
html[data-theme="light"] .chat-input-area,
html[data-theme="light"] .faq-question,
html[data-theme="light"] .faq-answer,
html[data-theme="light"] .rule-item,
html[data-theme="light"] .rule-section,
html[data-theme="light"] .settings-section,
html[data-theme="light"] .settings-block,
html[data-theme="light"] .profile-section,
html[data-theme="light"] .profile-header,
html[data-theme="light"] .profile-stats,
html[data-theme="light"] .support-ticket,
html[data-theme="light"] .ticket-card,
html[data-theme="light"] .mod-card,
html[data-theme="light"] .admin-panel,
html[data-theme="light"] .admin-box,
html[data-theme="light"] .panel-box,
html[data-theme="light"] .form-box,
html[data-theme="light"] .form-card,
html[data-theme="light"] .alert-box,
html[data-theme="light"] .empty-state,
html[data-theme="light"] .stats-box,
html[data-theme="light"] .stat-box,
html[data-theme="light"] .leaderboard-card,
html[data-theme="light"] .player-card,
html[data-theme="light"] .screenshot-item,
html[data-theme="light"] .gallery-item,
html[data-theme="light"] .download-card,
html[data-theme="light"] .about-card,
html[data-theme="light"] .feature-card,
html[data-theme="light"] .mm-mode-card,
html[data-theme="light"] .mm-header,
html[data-theme="light"] .mm-match-found-inner,
html[data-theme="light"] .article-header,
html[data-theme="light"] .article-content,
html[data-theme="light"] .article-actions,
html[data-theme="light"] .comments-section,
html[data-theme="light"] .related-news,
html[data-theme="light"] .comment-item,
html[data-theme="light"] .comment-form,
html[data-theme="light"] .rss-card,
html[data-theme="light"] .page-header,
html[data-theme="light"] .section-box {
    background: #ffffff !important;
    border-color: var(--theme-border) !important;
    color: var(--theme-text) !important;
    box-shadow: 0 8px 24px rgba(26, 48, 72, 0.1);
}

/* Headings / muted copy commonly hardcoded white */
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4 {
    color: var(--theme-heading);
}

/* Video hero titles stay white (overrides h1 above) */
html[data-theme="light"] .video-hero h1,
html[data-theme="light"] .video-slide h1,
html[data-theme="light"] .video-hero .hero-title,
html[data-theme="light"] .video-slide .hero-title {
    color: #fff !important;
}

html[data-theme="light"] .page-title,
html[data-theme="light"] .section-heading,
html[data-theme="light"] .card-title,
html[data-theme="light"] .block-title,
html[data-theme="light"] .article-title,
html[data-theme="light"] .comments-title,
html[data-theme="light"] .related-title,
html[data-theme="light"] .mm-title,
html[data-theme="light"] .mm-mode-header h3,
html[data-theme="light"] .mm-match-found-inner h2 {
    color: var(--theme-heading) !important;
    text-shadow: none !important;
}

html[data-theme="light"] .page-subtitle,
html[data-theme="light"] .section-desc,
html[data-theme="light"] .card-desc,
html[data-theme="light"] .meta,
html[data-theme="light"] .text-muted,
html[data-theme="light"] .muted,
html[data-theme="light"] .hint,
html[data-theme="light"] .help-text,
html[data-theme="light"] .empty-text,
html[data-theme="light"] .no-data,
html[data-theme="light"] .mm-subtitle,
html[data-theme="light"] .mm-progress-text,
html[data-theme="light"] .mm-nav a,
html[data-theme="light"] .mm-username,
html[data-theme="light"] .mm-match-found-inner p,
html[data-theme="light"] .article-meta,
html[data-theme="light"] .comment-meta,
html[data-theme="light"] .comment-date {
    color: var(--theme-text-muted) !important;
}

html[data-theme="light"] p,
html[data-theme="light"] li,
html[data-theme="light"] td,
html[data-theme="light"] th,
html[data-theme="light"] label,
html[data-theme="light"] .article-content,
html[data-theme="light"] .comment-body,
html[data-theme="light"] .faq-answer,
html[data-theme="light"] .rule-text {
    color: var(--theme-text);
}

html[data-theme="light"] th {
    color: #134a72 !important;
}

html[data-theme="light"] a:not(.cta-button):not(.hero-button):not(.action-btn):not(.connect-btn):not(.mm-btn):not(.lsp-connect):not(.lsp-more) {
    color: var(--theme-link);
}

html[data-theme="light"] .mm-logo b,
html[data-theme="light"] .mm-nav a:hover,
html[data-theme="light"] .mm-nav a.active {
    color: var(--theme-heading) !important;
}

html[data-theme="light"] .mm-header {
    background: rgba(244, 247, 251, 0.95) !important;
    border-bottom-color: var(--theme-border) !important;
}

html[data-theme="light"] .mm-btn-join:hover:not(:disabled),
html[data-theme="light"] .mm-btn-leave:hover:not(:disabled) {
    color: #fff !important;
}

html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select {
    background: #ffffff !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
    color: var(--theme-text-muted) !important;
}

/*
 * Page heroes (faq/rules/about/game/panel/check) sit on light animated bg —
 * do NOT force white. Only cinematic video / match-found stay white.
 */
html[data-theme="light"] .hero-section .hero-title,
html[data-theme="light"] .hero-section h1,
html[data-theme="light"] .hero-section .hero-title i {
    color: var(--theme-heading) !important;
    text-shadow: none !important;
}

html[data-theme="light"] .hero-section .hero-subtitle,
html[data-theme="light"] .hero-section .hero-divider + p {
    color: var(--theme-text-secondary) !important;
    text-shadow: none !important;
}

/* Homepage video hero + MM match-found overlay — keep cinematic white */
html[data-theme="light"] .video-hero,
html[data-theme="light"] .video-hero .hero-title,
html[data-theme="light"] .video-hero .hero-subtitle,
html[data-theme="light"] .video-slide .hero-title,
html[data-theme="light"] .video-slide .hero-subtitle,
html[data-theme="light"] .mm-match-found {
    color: #fff !important;
}

html[data-theme="light"] .video-slide .hero-button,
html[data-theme="light"] .video-hero .hero-button,
html[data-theme="light"] .hero-button {
    color: #3fa9f5 !important;
    text-shadow: none !important;
}

html[data-theme="light"] .video-slide .hero-button:hover,
html[data-theme="light"] .hero-button:hover {
    color: #000000 !important;
}

html[data-theme="light"] .mm-match-found {
    background: rgba(10, 18, 28, 0.88);
}

html[data-theme="light"] .mm-match-found-inner {
    background: #0f1824 !important;
    color: #fff !important;
}

html[data-theme="light"] .mm-match-found-inner h2,
html[data-theme="light"] .mm-match-found-inner p {
    color: #fff !important;
}

html[data-theme="light"] .cta-button,
html[data-theme="light"] .cta-button i {
    color: #ffffff !important;
}

/* Stats / monitoring page-inline classes */
html[data-theme="light"] .stats-label,
html[data-theme="light"] .status-text,
html[data-theme="light"] .server-info-label,
html[data-theme="light"] .server-tag,
html[data-theme="light"] .map-label,
html[data-theme="light"] .mode-label,
html[data-theme="light"] .updated-text,
html[data-theme="light"] .players-label {
    color: #5a6a7c !important;
}

html[data-theme="light"] .player-name,
html[data-theme="light"] .server-info-value,
html[data-theme="light"] .score-display,
html[data-theme="light"] .stats-number,
html[data-theme="light"] .stat-number,
html[data-theme="light"] .server-name,
html[data-theme="light"] .map-name,
html[data-theme="light"] .mode-name,
html[data-theme="light"] .score-value,
html[data-theme="light"] .players-count {
    color: #1a2332 !important;
}

html[data-theme="light"] .team-table,
html[data-theme="light"] .players-table,
html[data-theme="light"] .scoreboard,
html[data-theme="light"] .server-details,
html[data-theme="light"] .monitor-card,
html[data-theme="light"] .live-card {
    background: #ffffff !important;
    border-color: var(--theme-border) !important;
    color: #1a2332 !important;
}

/* Bans / FAQ / rules / demos / chat / screenshots common labels */
html[data-theme="light"] .ban-reason,
html[data-theme="light"] .ban-date,
html[data-theme="light"] .ban-admin,
html[data-theme="light"] .faq-question,
html[data-theme="light"] .rule-number,
html[data-theme="light"] .demo-meta,
html[data-theme="light"] .chat-time,
html[data-theme="light"] .chat-nick,
html[data-theme="light"] .screenshot-meta,
html[data-theme="light"] .filter-label,
html[data-theme="light"] .form-hint,
html[data-theme="light"] .field-hint {
    color: #5a6a7c !important;
}

html[data-theme="light"] .ban-player,
html[data-theme="light"] .faq-answer,
html[data-theme="light"] .rule-text,
html[data-theme="light"] .demo-title,
html[data-theme="light"] .chat-message,
html[data-theme="light"] .settings-label,
html[data-theme="light"] .profile-name,
html[data-theme="light"] .profile-value {
    color: #1a2332 !important;
}

/* Stats monitoring — team cards / empty / legend */
html[data-theme="light"] .team-card,
html[data-theme="light"] .match-score,
html[data-theme="light"] .teams-grid,
html[data-theme="light"] .scoreboard-wrap {
    background: #ffffff !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
    color: #1a2332 !important;
    box-shadow: 0 10px 28px rgba(26, 48, 72, 0.1);
}

/* Nested layout wrapper inside glass — never a second opaque card */
html[data-theme="light"] .content-layer > .container {
    background: transparent !important;
    box-shadow: none !important;
    border-color: transparent !important;
    color: inherit !important;
}

html[data-theme="light"] .empty-team,
html[data-theme="light"] .team-count,
html[data-theme="light"] .legend-item,
html[data-theme="light"] .footer-copyright,
html[data-theme="light"] .match-score .score-separator {
    color: #5a6a7c !important;
}

html[data-theme="light"] .empty-team i {
    color: rgba(45, 140, 214, 0.45) !important;
}

html[data-theme="light"] .team-table th {
    background: rgba(63, 169, 245, 0.14) !important;
    color: #134a72 !important;
}

html[data-theme="light"] .team-table td {
    color: #1a2332 !important;
    border-color: rgba(26, 35, 50, 0.08) !important;
}

html[data-theme="light"] .match-score .score-separator,
html[data-theme="light"] .match-score .score-colon {
    color: #5a6a7c !important;
}

/* ========== Auth / settings forms ========== */
html[data-theme="light"] .form-card,
html[data-theme="light"] .form-box,
html[data-theme="light"] .settings-card,
html[data-theme="light"] .panel-card,
html[data-theme="light"] .admin-card,
html[data-theme="light"] .connection-card,
html[data-theme="light"] .notify-card {
    background: #ffffff !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
    color: #1a2332 !important;
    box-shadow: 0 8px 24px rgba(26, 48, 72, 0.1);
}

html[data-theme="light"] .form-title,
html[data-theme="light"] .form-label,
html[data-theme="light"] .page-title,
html[data-theme="light"] .admin-card-title,
html[data-theme="light"] .connection-name,
html[data-theme="light"] .notify-title,
html[data-theme="light"] .mod-section-title {
    color: #1568a8 !important;
    text-shadow: none !important;
}

html[data-theme="light"] .form-group label,
html[data-theme="light"] .form-hint,
html[data-theme="light"] .field-hint,
html[data-theme="light"] .toggle-label,
html[data-theme="light"] .admin-card-desc,
html[data-theme="light"] .connection-desc,
html[data-theme="light"] .notify-body,
html[data-theme="light"] .notify-time,
html[data-theme="light"] .notify-empty,
html[data-theme="light"] .back-link,
html[data-theme="light"] .password-requirements,
html[data-theme="light"] .file-upload-text,
html[data-theme="light"] .file-upload-hint,
html[data-theme="light"] .mod-sub,
html[data-theme="light"] .mod-meta,
html[data-theme="light"] .mod-empty {
    color: #5a6a7c !important;
}

html[data-theme="light"] .back-link:hover,
html[data-theme="light"] .notify-link {
    color: #1a5f96 !important;
}

html[data-theme="light"] .btn:not(.cta-button):not(.mm-btn):not(.auth-submit-btn),
html[data-theme="light"] .btn-secondary,
html[data-theme="light"] .btn-outline-secondary {
    color: #1a2332 !important;
}

html[data-theme="light"] .btn-primary,
html[data-theme="light"] .btn-danger {
    color: #ffffff !important;
}

html[data-theme="light"] .form-input,
html[data-theme="light"] .form-textarea,
html[data-theme="light"] .form-select,
html[data-theme="light"] .form-control,
html[data-theme="light"] .form-group input,
html[data-theme="light"] .form-group textarea,
html[data-theme="light"] .form-group select {
    background: #ffffff !important;
    color: #1a2332 !important;
    border-color: rgba(45, 140, 214, 0.32) !important;
}

html[data-theme="light"] .form-select option,
html[data-theme="light"] select option {
    background: #ffffff !important;
    color: #1a2332 !important;
}

/* ========== Bans / demo / chat / screenshots ========== */
/* .content-section is a page shell — never paint the whole viewport as a card */
html[data-theme="light"] .content-section {
    background: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
}

/* Forum pages nest .container inside; force full width even if parent is flex */
html[data-theme="light"] .content-section > .container {
    width: 100%;
    flex: 1 1 auto;
    align-self: stretch;
    max-width: 1200px;
}

/* Glass shell — translucent so animated bg shows through (like dark theme) */
html[data-theme="light"] .content-layer {
    background: rgba(255, 255, 255, 0.42) !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
    color: #1a2332 !important;
    box-shadow: 0 10px 28px rgba(26, 48, 72, 0.1);
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

html[data-theme="light"] .table-container,
html[data-theme="light"] .controls,
html[data-theme="light"] .search-box,
html[data-theme="light"] .bans-table,
html[data-theme="light"] .pagination-bar,
html[data-theme="light"] .chat-container,
html[data-theme="light"] .chat-box,
html[data-theme="light"] .chat-messages,
html[data-theme="light"] .chat-input-area,
html[data-theme="light"] .chat-header,
html[data-theme="light"] .demo-card,
html[data-theme="light"] .demo-item,
html[data-theme="light"] .screenshot-card,
html[data-theme="light"] .screenshot-item,
html[data-theme="light"] .gallery-item {
    background: #ffffff !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
    color: #1a2332 !important;
    box-shadow: 0 10px 28px rgba(26, 48, 72, 0.1);
}

/* Nested forum chrome must not become stacked white cards */
html[data-theme="light"] .content-layer .breadcrumb,
html[data-theme="light"] .content-layer .breadcrumbs,
html[data-theme="light"] .content-layer .empty-state,
html[data-theme="light"] .content-layer .forum-empty,
html[data-theme="light"] .breadcrumb,
html[data-theme="light"] .breadcrumbs {
    background: transparent !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

html[data-theme="light"] .bans-table th,
html[data-theme="light"] .bans-table thead {
    background: rgba(63, 169, 245, 0.14) !important;
    color: #134a72 !important;
}

html[data-theme="light"] .bans-table td,
html[data-theme="light"] .player-name,
html[data-theme="light"] .reason-text,
html[data-theme="light"] .demo-name,
html[data-theme="light"] .chat-message,
html[data-theme="light"] .msg-text,
html[data-theme="light"] .message-text {
    color: #1a2332 !important;
}

html[data-theme="light"] .admin-name:not(.system),
html[data-theme="light"] .filter-btn.active {
    color: #1568a8 !important;
}

html[data-theme="light"] .admin-name.system,
html[data-theme="light"] .time-indicator,
html[data-theme="light"] .pagination-info,
html[data-theme="light"] .stats-label,
html[data-theme="light"] .filter-btn,
html[data-theme="light"] .page-btn,
html[data-theme="light"] .demo-date,
html[data-theme="light"] .demo-meta,
html[data-theme="light"] .screenshot-meta,
html[data-theme="light"] .chat-time,
html[data-theme="light"] .chat-nick,
html[data-theme="light"] .msg-time,
html[data-theme="light"] .message-date,
html[data-theme="light"] .empty-messages,
html[data-theme="light"] .empty-state,
html[data-theme="light"] .no-screenshots,
html[data-theme="light"] .search-box i,
html[data-theme="light"] .search-box input::placeholder {
    color: #5a6a7c !important;
}

html[data-theme="light"] .filter-btn,
html[data-theme="light"] .page-btn {
    background: rgba(244, 247, 251, 0.95) !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
}

html[data-theme="light"] .filter-btn:hover,
html[data-theme="light"] .page-btn:hover,
html[data-theme="light"] .page-btn.current,
html[data-theme="light"] .page-btn.active {
    background: rgba(63, 169, 245, 0.14) !important;
    color: #134a72 !important;
}

html[data-theme="light"] .search-box input,
html[data-theme="light"] .chat-input {
    background: #ffffff !important;
    color: #1a2332 !important;
}

/* ========== Panel messages / profile bits ========== */
html[data-theme="light"] .messages-section,
html[data-theme="light"] .messages-wrapper,
html[data-theme="light"] .messages-box,
html[data-theme="light"] .message-item,
html[data-theme="light"] .profile-section,
html[data-theme="light"] .profile-header,
html[data-theme="light"] .profile-stats,
html[data-theme="light"] .profile-card {
    background: #ffffff !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
    color: #1a2332 !important;
}

html[data-theme="light"] .profile-name,
html[data-theme="light"] .profile-value,
html[data-theme="light"] .profile-label,
html[data-theme="light"] .detail-value {
    color: #1a2332 !important;
}

html[data-theme="light"] .profile-about,
html[data-theme="light"] .profile-status,
html[data-theme="light"] .profile-presence {
    color: #5a6a7c !important;
}

/* ========== Forum topic / search / profile (page-inline) ========== */
html[data-theme="light"] .forum-container,
html[data-theme="light"] .forum-section,
html[data-theme="light"] .forum-category,
html[data-theme="light"] .topic-item,
html[data-theme="light"] .post-item,
html[data-theme="light"] .post-card,
html[data-theme="light"] .reply-box,
html[data-theme="light"] .create-topic-form,
html[data-theme="light"] .forum-sidebar,
html[data-theme="light"] .forum-stats-box,
html[data-theme="light"] .editor-toolbar,
html[data-theme="light"] .editor-preview,
html[data-theme="light"] .result-item,
html[data-theme="light"] .search-form {
    background: #ffffff !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
    color: #1a2332 !important;
}

html[data-theme="light"] .back-link {
    color: #5a6a7c !important;
}

html[data-theme="light"] .back-link:hover {
    color: #1568a8 !important;
}

html[data-theme="light"] .search-hint,
html[data-theme="light"] .search-summary,
html[data-theme="light"] .empty-state {
    color: #5a6a7c !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="light"] .empty-state i {
    color: rgba(45, 140, 214, 0.5) !important;
}

html[data-theme="light"] .empty-state h3 {
    color: #1a2332 !important;
}

html[data-theme="light"] .search-summary strong {
    color: #1568a8 !important;
}

html[data-theme="light"] .empty-hint,
html[data-theme="light"] .muted-text,
html[data-theme="light"] .edited-mark {
    color: #5a6a7c !important;
}

html[data-theme="light"] .login-prompt {
    background: #ffffff !important;
    border: 1px solid rgba(45, 140, 214, 0.28) !important;
    color: #1a2332 !important;
    box-shadow: 0 8px 24px rgba(26, 48, 72, 0.08);
}

html[data-theme="light"] .login-prompt a {
    color: #1a5f96 !important;
}

html[data-theme="light"] .reply-form {
    background: #ffffff !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
    color: #1a2332 !important;
}

html[data-theme="light"] .reply-form textarea {
    background: #ffffff !important;
    color: #1a2332 !important;
    border-color: rgba(45, 140, 214, 0.32) !important;
}

html[data-theme="light"] .result-item .result-title a,
html[data-theme="light"] .result-item .result-content {
    color: #1a2332 !important;
}

html[data-theme="light"] .result-item .result-type,
html[data-theme="light"] .result-item .result-meta,
html[data-theme="light"] .result-item .result-meta a {
    color: #5a6a7c !important;
}

html[data-theme="light"] .search-form input {
    background: #ffffff !important;
    color: #1a2332 !important;
    border-color: rgba(45, 140, 214, 0.32) !important;
}

html[data-theme="light"] .search-form input::placeholder {
    color: #6a7a8c !important;
}

html[data-theme="light"] .pagination a,
html[data-theme="light"] .pagination span {
    border-color: rgba(45, 140, 214, 0.28) !important;
    color: #3a4a5c !important;
    background: #ffffff !important;
}

html[data-theme="light"] .pagination a:hover {
    color: #1568a8 !important;
    border-color: #3fa9f5 !important;
}

html[data-theme="light"] .pagination .active {
    background: #3fa9f5 !important;
    color: #ffffff !important;
    border-color: #3fa9f5 !important;
}

html[data-theme="light"] .topic-title-link,
html[data-theme="light"] .topic-title a,
html[data-theme="light"] .post-author-name,
html[data-theme="light"] .post-content,
html[data-theme="light"] .post-text,
html[data-theme="light"] .section-details h3 a,
html[data-theme="light"] .result-type {
    color: #1a2332 !important;
}

html[data-theme="light"] .topic-meta,
html[data-theme="light"] .topic-stats,
html[data-theme="light"] .topic-last-post,
html[data-theme="light"] .topic-info,
html[data-theme="light"] .post-date,
html[data-theme="light"] .post-time,
html[data-theme="light"] .post-footer,
html[data-theme="light"] .post-author-role,
html[data-theme="light"] .post-location,
html[data-theme="light"] .section-description,
html[data-theme="light"] .section-stats,
html[data-theme="light"] .section-last-activity,
html[data-theme="light"] .category-description,
html[data-theme="light"] .category-stats,
html[data-theme="light"] .result-meta,
html[data-theme="light"] .snippet,
html[data-theme="light"] .character-counter,
html[data-theme="light"] .delete-text,
html[data-theme="light"] .delete-warning,
html[data-theme="light"] .warning-text {
    color: #5a6a7c !important;
}

html[data-theme="light"] .editor-textarea,
html[data-theme="light"] .reply-box textarea,
html[data-theme="light"] .create-topic-form input,
html[data-theme="light"] .create-topic-form textarea {
    background: #ffffff !important;
    color: #1a2332 !important;
    border-color: rgba(45, 140, 214, 0.32) !important;
}

/* ========== Moderation / admin ========== */
html[data-theme="light"] .mod-card,
html[data-theme="light"] .mod-content,
html[data-theme="light"] .admin-panel,
html[data-theme="light"] .admin-box,
html[data-theme="light"] .panel-box {
    background: #ffffff !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
    color: #1a2332 !important;
}

html[data-theme="light"] .mod-tab,
html[data-theme="light"] .tab-btn,
html[data-theme="light"] .category-btn {
    color: #3a4a5c !important;
    background: rgba(244, 247, 251, 0.92) !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
}

html[data-theme="light"] .mod-tab.active,
html[data-theme="light"] .tab-btn.active,
html[data-theme="light"] .category-btn.active,
html[data-theme="light"] .category-btn:hover {
    color: #1568a8 !important;
    background: rgba(63, 169, 245, 0.14) !important;
    border-color: #3fa9f5 !important;
}

/* ========== Stats top / leaderboard ========== */
html[data-theme="light"] .top-page-subtitle,
html[data-theme="light"] .top-filters-info,
html[data-theme="light"] .top-loading,
html[data-theme="light"] .top-live-stat-label,
html[data-theme="light"] .tp-stat-label,
html[data-theme="light"] .tp-empty,
html[data-theme="light"] .tp-chart-min-max {
    color: #5a6a7c !important;
}

html[data-theme="light"] .top-page-title {
    color: #1568a8 !important;
    text-shadow: none !important;
}

html[data-theme="light"] .top-live-stat,
html[data-theme="light"] .top-filters-wrap,
html[data-theme="light"] .top-filters-search {
    background: rgba(255, 255, 255, 0.78) !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
    color: #1a2332 !important;
    box-shadow: 0 8px 22px rgba(26, 48, 72, 0.07);
}

html[data-theme="light"] .top-filters-search input {
    color: #1a2332 !important;
}

html[data-theme="light"] .top-filters-search input::placeholder {
    color: #5a6a7c !important;
}

html[data-theme="light"] .top-live-stat-value,
html[data-theme="light"] .tp-stat-value,
html[data-theme="light"] .tp-name,
html[data-theme="light"] .tp-rank-num {
    color: #1a2332 !important;
    text-shadow: none !important;
}

html[data-theme="light"] .top-live-stat-value.blue,
html[data-theme="light"] .tp-stat-value.played,
html[data-theme="light"] .tp-stat-value.rating-big {
    color: #1568a8 !important;
}

html[data-theme="light"] .tp-stat-value.deaths {
    color: #5a6a7c !important;
}

html[data-theme="light"] .tp-card,
html[data-theme="light"] .tp-card:hover,
html[data-theme="light"] .tp-card.tp-rank-1,
html[data-theme="light"] .tp-card.tp-rank-2,
html[data-theme="light"] .tp-card.tp-rank-3 {
    background: rgba(255, 255, 255, 0.88) !important;
    border-color: rgba(45, 140, 214, 0.22) !important;
    box-shadow: 0 6px 20px rgba(26, 48, 72, 0.08);
    color: #1a2332 !important;
}

html[data-theme="light"] .tp-card.tp-rank-1 {
    border-left-color: #c9a000 !important;
    background: linear-gradient(90deg, rgba(255, 248, 220, 0.95), rgba(255, 255, 255, 0.9)) !important;
}

html[data-theme="light"] .tp-card.tp-rank-2 {
    border-left-color: #8a8a8a !important;
    background: linear-gradient(90deg, rgba(240, 242, 245, 0.95), rgba(255, 255, 255, 0.9)) !important;
}

html[data-theme="light"] .tp-card.tp-rank-3 {
    border-left-color: #a05a2c !important;
    background: linear-gradient(90deg, rgba(255, 240, 230, 0.95), rgba(255, 255, 255, 0.9)) !important;
}

html[data-theme="light"] .tp-rating-change.neutral {
    background: rgba(232, 238, 245, 0.95) !important;
    border-color: rgba(45, 140, 214, 0.22) !important;
    color: #5a6a7c !important;
}

html[data-theme="light"] .tp-card.tp-rank-2 .tp-stat-value.rating-big {
    color: #4a5568 !important;
}

html[data-theme="light"] .legend-item,
html[data-theme="light"] .footer-copyright {
    color: #5a6a7c !important;
}

/* ========== MM match page ========== */
html[data-theme="light"] .score-box,
html[data-theme="light"] .match-header,
html[data-theme="light"] .team-block,
html[data-theme="light"] .map-pick-box,
html[data-theme="light"] .player-row,
html[data-theme="light"] .leaderboard-card {
    background: #ffffff !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
    color: #1a2332 !important;
}

html[data-theme="light"] .match-mode,
html[data-theme="light"] .score-hint,
html[data-theme="light"] .score-current,
html[data-theme="light"] .score-form label,
html[data-theme="light"] .team-avg-elo,
html[data-theme="light"] .team-ready-count,
html[data-theme="light"] .player-elo,
html[data-theme="light"] .map-actions-log,
html[data-theme="light"] .already-ready,
html[data-theme="light"] .match-starting p {
    color: #5a6a7c !important;
}

html[data-theme="light"] .match-timer,
html[data-theme="light"] .match-starting h2,
html[data-theme="light"] .map-chip,
html[data-theme="light"] .score-table td {
    color: #1a2332 !important;
}

html[data-theme="light"] .team-vs span {
    color: rgba(26, 35, 50, 0.35) !important;
}

html[data-theme="light"] .map-chip {
    background: rgba(244, 247, 251, 0.95) !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
}

html[data-theme="light"] .score-form input {
    background: #ffffff !important;
    color: #1a2332 !important;
    border-color: rgba(45, 140, 214, 0.32) !important;
}

/* ========== CFG gen / checkcfg / find_player orphans ========== */
html[data-theme="light"] .generator-wrap,
html[data-theme="light"] .generator-wrap .top-bar,
html[data-theme="light"] .generator-wrap .stats,
html[data-theme="light"] body .container {
    color: #1a2332;
}

html[data-theme="light"] .logo-text,
html[data-theme="light"] .logo-text span,
html[data-theme="light"] .color-picker-title,
html[data-theme="light"] .card-title,
html[data-theme="light"] .card-text,
html[data-theme="light"] .card-description,
html[data-theme="light"] .info-text,
html[data-theme="light"] .info-note,
html[data-theme="light"] .info-label,
html[data-theme="light"] .info-value,
html[data-theme="light"] .req-label,
html[data-theme="light"] .req-value,
html[data-theme="light"] .stat-label,
html[data-theme="light"] .stat-value,
html[data-theme="light"] .stat-title,
html[data-theme="light"] .stat-description,
html[data-theme="light"] .step-title,
html[data-theme="light"] .step-description,
html[data-theme="light"] .error-title,
html[data-theme="light"] .error-message,
html[data-theme="light"] .loading-text {
    color: #1a2332 !important;
}

html[data-theme="light"] .logo-text span,
html[data-theme="light"] .card-description,
html[data-theme="light"] .info-note,
html[data-theme="light"] .info-label,
html[data-theme="light"] .req-label,
html[data-theme="light"] .stat-label,
html[data-theme="light"] .stat-description,
html[data-theme="light"] .step-description,
html[data-theme="light"] .error-message {
    color: #5a6a7c !important;
}

/* Soften dark glass that pages hardcode as rgba(0,0,0,*) */
html[data-theme="light"] [style*="background: rgba(0, 0, 0"],
html[data-theme="light"] [style*="background:rgba(0,0,0"],
html[data-theme="light"] [style*="background: #0a0a0a"],
html[data-theme="light"] [style*="background:#0a0a0a"] {
    /* attribute selectors can't restyle computed CSS; covered by class rules above */
}

/* ========== 404 / verify / reset ========== */
html[data-theme="light"] .error-title,
html[data-theme="light"] .login-subtitle,
html[data-theme="light"] .auth-title {
    color: #1568a8 !important;
    text-shadow: none !important;
}

html[data-theme="light"] .quick-link-card,
html[data-theme="light"] .link-title {
    color: #1a2332 !important;
}

html[data-theme="light"] .link-desc {
    color: #5a6a7c !important;
}

/* News form (create/edit) */
html[data-theme="light"] .file-upload-area {
    background: rgba(244, 247, 251, 0.9) !important;
    border-color: rgba(45, 140, 214, 0.35) !important;
}

html[data-theme="light"] .current-image,
html[data-theme="light"] .news-title-preview,
html[data-theme="light"] .article-excerpt {
    color: #1a2332 !important;
}

/* RSS / comments / delete confirm */
html[data-theme="light"] .rss-card,
html[data-theme="light"] .comment-item,
html[data-theme="light"] .comment-form,
html[data-theme="light"] .related-news {
    background: #ffffff !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
    color: #1a2332 !important;
}

html[data-theme="light"] .comment-author-name,
html[data-theme="light"] .comment-body,
html[data-theme="light"] .comment-content {
    color: #1a2332 !important;
}

html[data-theme="light"] .comment-date,
html[data-theme="light"] .login-to-comment,
html[data-theme="light"] .no-comments,
html[data-theme="light"] .related-item-meta,
html[data-theme="light"] .article-reading-time,
html[data-theme="light"] .article-stat {
    color: #5a6a7c !important;
}

/* Homepage live counter + empty forum teaser */
html[data-theme="light"] .live-online-counter .counter-sep,
html[data-theme="light"] .live-online-counter .counter-label,
html[data-theme="light"] .live-online-counter.offline .counter-value {
    color: #5a6a7c !important;
    text-shadow: none !important;
}

html[data-theme="light"] .live-online-counter .counter-value[data-server="2"] {
    color: #b8860b !important;
}

html[data-theme="light"] .page-dots,
html[data-theme="light"] .forum-posts-grid > p,
html[data-theme="light"] .forum-posts-grid .empty,
html[data-theme="light"] .latest-forum-empty,
html[data-theme="light"] .no-forum-posts,
html[data-theme="light"] .forum-empty-state,
html[data-theme="light"] .forum-empty-state p,
html[data-theme="light"] .forum-empty-state i {
    color: #5a6a7c !important;
}

html[data-theme="dark"] .forum-empty-state,
html[data-theme="dark"] .forum-empty-state p,
html[data-theme="dark"] .forum-empty-state i {
    color: rgba(255, 255, 255, 0.35);
}

/* Warning tags stay yellow but slightly deeper for light surfaces */
html[data-theme="light"] .tag-warning {
    color: #9a7b00 !important;
    background: rgba(255, 217, 61, 0.22) !important;
}

html[data-theme="light"] .date-separator,
html[data-theme="light"] .date-separator::before,
html[data-theme="light"] .date-separator::after {
    color: #5a6a7c !important;
    border-color: rgba(26, 35, 50, 0.15) !important;
    background-color: transparent;
}

html[data-theme="light"] .logo-small,
html[data-theme="light"] .auth-modal-logo .logo-small {
    color: #5a6a7c !important;
}

html[data-theme="light"] .logo-big,
html[data-theme="light"] .auth-modal-logo .logo-big {
    color: #1568a8 !important;
    text-shadow: none !important;
}

/* ========== Pass 2 — leftovers found in live audit ========== */

/* Nested answer/content often hardcoded rgba(255,255,255,*) */
html[data-theme="light"] .faq-answer-content,
html[data-theme="light"] .faq-answer-content p,
html[data-theme="light"] .faq-answer-content li,
html[data-theme="light"] .rule-content,
html[data-theme="light"] .rule-body,
html[data-theme="light"] .about-text,
html[data-theme="light"] .about-card p,
html[data-theme="light"] .contact-section,
html[data-theme="light"] .contact-section p,
html[data-theme="light"] .feature-text,
html[data-theme="light"] .download-desc,
html[data-theme="light"] .req-list,
html[data-theme="light"] .req-list li,
html[data-theme="light"] .step-content,
html[data-theme="light"] .panel-desc,
html[data-theme="light"] .ticket-body,
html[data-theme="light"] .ticket-message,
html[data-theme="light"] .support-desc {
    color: #1a2332 !important;
}

html[data-theme="light"] .faq-card,
html[data-theme="light"] .rule-card,
html[data-theme="light"] .contact-section,
html[data-theme="light"] .about-card,
html[data-theme="light"] .feature-card,
html[data-theme="light"] .download-card,
html[data-theme="light"] .req-card,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .info-block,
html[data-theme="light"] .quick-link-card {
    background: rgba(255, 255, 255, 0.72) !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
    color: #1a2332 !important;
    box-shadow: 0 8px 24px rgba(26, 48, 72, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

html[data-theme="light"] .faq-question,
html[data-theme="light"] .faq-question span {
    color: #134a72 !important;
}

/* Chat messages — dark glass → light translucent bubbles */
html[data-theme="light"] .message,
html[data-theme="light"] .chat-message,
html[data-theme="light"] .msg-item {
    background: rgba(255, 255, 255, 0.78) !important;
    border-color: rgba(45, 140, 214, 0.22) !important;
    color: #1a2332 !important;
    box-shadow: 0 4px 14px rgba(26, 48, 72, 0.06);
}

html[data-theme="light"] .message-text,
html[data-theme="light"] .message-text .text-content,
html[data-theme="light"] .msg-text,
html[data-theme="light"] .text-content {
    background: rgba(232, 238, 245, 0.85) !important;
    color: #1a2332 !important;
    border-color: rgba(45, 140, 214, 0.18) !important;
}

html[data-theme="light"] .message-date,
html[data-theme="light"] .msg-time,
html[data-theme="light"] .message-header {
    color: #5a6a7c !important;
}

html[data-theme="light"] .message-date {
    background: rgba(244, 247, 251, 0.95) !important;
}

html[data-theme="light"] .player,
html[data-theme="light"] .chat-nick {
    color: #1568a8 !important;
}

/* Server action chips on homepage monitor */
html[data-theme="light"] .action-btn {
    background: rgba(244, 247, 251, 0.95) !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
    color: #3a4a5c !important;
}

html[data-theme="light"] .action-btn i {
    color: #1568a8 !important;
}

html[data-theme="light"] .action-btn:hover {
    background: rgba(63, 169, 245, 0.14) !important;
    color: #134a72 !important;
}

html[data-theme="light"] .action-btn.connect-btn {
    background: rgba(46, 204, 113, 0.12) !important;
    border-color: rgba(46, 204, 113, 0.35) !important;
    color: #1e7a45 !important;
}

html[data-theme="light"] .action-btn.connect-btn i {
    color: #1e7a45 !important;
}

html[data-theme="light"] .server-actions-panel {
    background: rgba(255, 255, 255, 0.55) !important;
    border-color: rgba(45, 140, 214, 0.22) !important;
}

/* Live online pill — light surface so dark muted labels stay readable */
html[data-theme="light"] .live-online-counter {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(45, 140, 214, 0.38) !important;
    color: #1a2332 !important;
    box-shadow: 0 2px 10px rgba(26, 48, 72, 0.08);
}

html[data-theme="light"] .live-online-counter:hover {
    background: #ffffff !important;
    border-color: rgba(45, 140, 214, 0.55) !important;
    box-shadow: 0 4px 14px rgba(26, 48, 72, 0.12);
}

html[data-theme="light"] .live-online-counter .counter-value {
    color: #1568a8 !important;
}

html[data-theme="light"] .live-online-counter .counter-sep {
    color: #7a8a9c !important;
}

html[data-theme="light"] .live-online-counter .counter-label {
    color: #3a4a5c !important;
}

html[data-theme="light"] .live-online-counter.offline .counter-value {
    color: #8a9aac !important;
}

/* Ban / status tags — deepen pastels for white table cells */
html[data-theme="light"] .tag-kick,
html[data-theme="light"] .tag.tag-kick {
    color: #0b5f9a !important;
    background: rgba(63, 169, 245, 0.18) !important;
}

html[data-theme="light"] .tag-tempban,
html[data-theme="light"] .tag.tag-tempban {
    color: #a85a00 !important;
    background: rgba(255, 169, 77, 0.22) !important;
}

html[data-theme="light"] .tag-ban,
html[data-theme="light"] .tag.tag-ban,
html[data-theme="light"] .expires-expired {
    color: #b42318 !important;
    background: rgba(255, 107, 107, 0.18) !important;
}

html[data-theme="light"] .page-btn.active,
html[data-theme="light"] .page-btn.current {
    background: #2d8cd6 !important;
    color: #ffffff !important;
    border-color: #2d8cd6 !important;
}

/* Demo / screenshots / bans filter bars that stay dark glass */
html[data-theme="light"] .controls,
html[data-theme="light"] .filter-bar,
html[data-theme="light"] .filters,
html[data-theme="light"] .stats-row,
html[data-theme="light"] .stat-item,
html[data-theme="light"] .demo-stats,
html[data-theme="light"] .chat-stats,
html[data-theme="light"] .bans-stats {
    background: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(45, 140, 214, 0.25) !important;
    color: #1a2332 !important;
}

html[data-theme="light"] .stat-item .stat-value,
html[data-theme="light"] .stat-item .stat-number,
html[data-theme="light"] .demo-stats .stat-value,
html[data-theme="light"] .chat-stats .stat-value {
    color: #1a2332 !important;
}

html[data-theme="light"] .stat-item .stat-label,
html[data-theme="light"] .demo-stats .stat-label,
html[data-theme="light"] .chat-stats .stat-label {
    color: #5a6a7c !important;
}

/* Auth modal leftovers on pages with duplicated inline auth CSS */
html[data-theme="light"] .auth-modal,
html[data-theme="light"] .auth-modal-content,
html[data-theme="light"] .logout-modal-content {
    background: #ffffff !important;
    background-image: none !important;
    color: #1a2332 !important;
    border-color: rgba(45, 140, 214, 0.3) !important;
}

html[data-theme="light"] .auth-tab,
html[data-theme="light"] .auth-back-btn,
html[data-theme="light"] .auth-form-group label,
html[data-theme="light"] .auth-checkbox,
html[data-theme="light"] .logout-modal-text,
html[data-theme="light"] .auth-forgot-hint,
html[data-theme="light"] .legal-modal-content,
html[data-theme="light"] .legal-modal-content p,
html[data-theme="light"] .legal-modal-content li,
html[data-theme="light"] .legal-modal-content strong {
    color: #3a4a5c !important;
}

/* Forgot-password helper — dark body text, beat pale / white leftovers */
html[data-theme="light"] #forgotForm .auth-forgot-hint,
html[data-theme="light"] p.auth-forgot-hint {
    color: #1a2332 !important;
    opacity: 1 !important;
}

/* «Забыли пароль?» — must beat pale white-on-white / global link wash */
html[data-theme="light"] .auth-forgot,
html[data-theme="light"] a.auth-forgot {
    color: #1568a8 !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
    opacity: 1 !important;
}

html[data-theme="light"] .auth-forgot:hover,
html[data-theme="light"] a.auth-forgot:hover {
    color: #0d4a75 !important;
}

html[data-theme="light"] .auth-password-toggle {
    color: #5a6a7c !important;
}

html[data-theme="light"] .auth-password-toggle:hover {
    color: #1568a8 !important;
}

html[data-theme="light"] .auth-tab.active,
html[data-theme="light"] .logout-modal-title,
html[data-theme="light"] .auth-modal-title {
    color: #1568a8 !important;
}

html[data-theme="light"] .auth-submit-btn {
    background: linear-gradient(135deg, #2d8cd6, #1a6fb0) !important;
    border-color: #1a6fb0 !important;
    color: #ffffff !important;
}

html[data-theme="light"] .auth-submit-btn:hover {
    background: linear-gradient(135deg, #1f7fc4, #155f96) !important;
    border-color: #155f96 !important;
    color: #ffffff !important;
}

html[data-theme="light"] .social-login-btn,
html[data-theme="light"] .social-login-btn:hover,
html[data-theme="light"] a.social-login-btn,
html[data-theme="light"] a.social-login-btn:hover {
    color: #ffffff !important;
}

html[data-theme="light"] .auth-btn {
    background: #ffffff !important;
    color: #1a2332 !important;
    border-color: rgba(45, 140, 214, 0.4) !important;
}

html[data-theme="light"] .auth-btn:hover {
    background: rgba(63, 169, 245, 0.1) !important;
    color: #0d5a9a !important;
}

html[data-theme="light"] .auth-btn.login,
html[data-theme="light"] a.auth-btn.login {
    background: #2d8cd6 !important;
    color: #ffffff !important;
    border-color: #1f7fc4 !important;
}

html[data-theme="light"] .auth-btn.login:hover,
html[data-theme="light"] a.auth-btn.login:hover {
    background: #1f7fc4 !important;
    color: #ffffff !important;
    border-color: #1869a8 !important;
}

html[data-theme="light"] .logout-modal-cancel {
    background: rgba(232, 238, 245, 0.95) !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
    color: #3a4a5c !important;
}

/* Panel / settings inline dark panels */
html[data-theme="light"] .panel-section,
html[data-theme="light"] .settings-block,
html[data-theme="light"] .settings-row,
html[data-theme="light"] .notify-row,
html[data-theme="light"] .connection-row,
html[data-theme="light"] .appeal-card,
html[data-theme="light"] .appeal-form,
html[data-theme="light"] .messages-box,
html[data-theme="light"] .message-item {
    background: rgba(255, 255, 255, 0.78) !important;
    border-color: rgba(45, 140, 214, 0.25) !important;
    color: #1a2332 !important;
}

html[data-theme="light"] .filter-btn,
html[data-theme="light"] .btn-filter,
html[data-theme="light"] .reset-btn,
html[data-theme="light"] .btn-reset {
    background: rgba(244, 247, 251, 0.95) !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
    color: #3a4a5c !important;
}

/* Select options / dark #1a1a2e leftovers */
html[data-theme="light"] option {
    background: #ffffff !important;
    color: #1a2332 !important;
}

/* Soften leader-indicator on light killfeed */
html[data-theme="light"] .leader-indicator {
    color: #8a6d00 !important;
    background: rgba(255, 215, 0, 0.22) !important;
}

/* News comments page hardcoded body #0a0a0a */
html[data-theme="light"] .comment-content,
html[data-theme="light"] .comment-body,
html[data-theme="light"] .comment-text {
    color: #1a2332 !important;
}

html[data-theme="light"] .btn-secondary {
    background: rgba(244, 247, 251, 0.95) !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
    color: #3a4a5c !important;
}

/* About / game / support page-inline leftovers */
html[data-theme="light"] .timeline-text,
html[data-theme="light"] .timeline-content,
html[data-theme="light"] .timeline-content p,
html[data-theme="light"] .principle-text,
html[data-theme="light"] .principle-card p,
html[data-theme="light"] .admin-text,
html[data-theme="light"] .contacts-intro,
html[data-theme="light"] .history-text,
html[data-theme="light"] .history-section p,
html[data-theme="light"] .tech-card p,
html[data-theme="light"] .tech-desc,
html[data-theme="light"] .download-card li,
html[data-theme="light"] .download-card p,
html[data-theme="light"] .install-step p,
html[data-theme="light"] .step-description,
html[data-theme="light"] .req-value,
html[data-theme="light"] .req-list li,
html[data-theme="light"] .support-intro,
html[data-theme="light"] .support-card p,
html[data-theme="light"] .ticket-form label,
html[data-theme="light"] .form-note {
    color: #1a2332 !important;
}

html[data-theme="light"] .timeline-year,
html[data-theme="light"] .timeline-content h3,
html[data-theme="light"] .principle-card h3,
html[data-theme="light"] .tech-card h3,
html[data-theme="light"] .contact-card h3 {
    color: #1568a8 !important;
}

html[data-theme="light"] .timeline-content,
html[data-theme="light"] .principle-card,
html[data-theme="light"] .tech-card,
html[data-theme="light"] .contact-card,
html[data-theme="light"] .history-block,
html[data-theme="light"] .install-step,
html[data-theme="light"] .req-card {
    background: rgba(255, 255, 255, 0.72) !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
    color: #1a2332 !important;
}

/* Numbered badges on colored circles may stay white — only if on blue/accent fill */
html[data-theme="light"] .step-number {
    color: #ffffff !important;
}

/* ========== Pass 3 — Amy list: rules / report / support / leftovers ========== */

/* --- Server rules page --- */
html[data-theme="light"] .table-of-contents,
html[data-theme="light"] .rules-section,
html[data-theme="light"] .warning-box,
html[data-theme="light"] .feature-card {
    background: rgba(255, 255, 255, 0.78) !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
    color: #1a2332 !important;
    box-shadow: 0 8px 24px rgba(26, 48, 72, 0.08);
}

html[data-theme="light"] .warning-box {
    background: rgba(255, 245, 245, 0.92) !important;
    border-color: rgba(185, 28, 28, 0.35) !important;
}

html[data-theme="light"] .toc-title,
html[data-theme="light"] .section-title,
html[data-theme="light"] .hero-title {
    text-shadow: none !important;
}

html[data-theme="light"] .hero-subtitle,
html[data-theme="light"] .rule-preview,
html[data-theme="light"] .feature-desc,
html[data-theme="light"] .content-text,
html[data-theme="light"] .penalty-text {
    color: #3a4a5c !important;
}

html[data-theme="light"] .warning-text {
    color: #5a2a2a !important;
}

html[data-theme="light"] .toc-link {
    background: rgba(244, 247, 251, 0.95) !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
    color: #1a2332 !important;
}

html[data-theme="light"] .toc-link:hover,
html[data-theme="light"] .toc-link.active {
    background: rgba(63, 169, 245, 0.14) !important;
    color: #1568a8 !important;
}

html[data-theme="light"] .rule-card {
    background: rgba(255, 255, 255, 0.88) !important;
    border-color: rgba(45, 140, 214, 0.25) !important;
}

html[data-theme="light"] .rule-card.prohibited {
    border-color: rgba(185, 28, 28, 0.35) !important;
}

html[data-theme="light"] .rule-header:hover {
    background: rgba(63, 169, 245, 0.08) !important;
}

html[data-theme="light"] .rule-title,
html[data-theme="light"] .feature-title {
    color: #1a2332 !important;
}

html[data-theme="light"] .rule-description,
html[data-theme="light"] .rule-content,
html[data-theme="light"] .rule-content p,
html[data-theme="light"] .rule-content li {
    color: #1a2332 !important;
}

html[data-theme="light"] .penalty-info {
    background: rgba(255, 244, 180, 0.55) !important;
    border-color: rgba(180, 140, 0, 0.4) !important;
}

html[data-theme="light"] .penalty-info .penalty-text {
    color: #8a6d00 !important;
}

html[data-theme="light"] .penalty-info.danger {
    background: rgba(255, 230, 230, 0.75) !important;
    border-color: rgba(185, 28, 28, 0.35) !important;
}

html[data-theme="light"] .penalty-info.danger .penalty-text {
    color: #b42318 !important;
}

/* --- Player complaint / report form --- */
html[data-theme="light"] .report-hero p,
html[data-theme="light"] .form-group label,
html[data-theme="light"] .form-hint,
html[data-theme="light"] .upload-progress-text {
    color: #3a4a5c !important;
}

html[data-theme="light"] .report-card,
html[data-theme="light"] .info-card,
html[data-theme="light"] .support-card,
html[data-theme="light"] .discord-cta {
    background: rgba(255, 255, 255, 0.82) !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
    color: #1a2332 !important;
    box-shadow: 0 8px 24px rgba(26, 48, 72, 0.08);
}

html[data-theme="light"] .info-card.warning {
    background: rgba(255, 245, 245, 0.92) !important;
    border-color: rgba(185, 28, 28, 0.32) !important;
}

html[data-theme="light"] .info-card h3,
html[data-theme="light"] .support-card h2,
html[data-theme="light"] .form-section-title {
    color: #1568a8 !important;
}

html[data-theme="light"] .info-card.warning h3 {
    color: #b42318 !important;
}

html[data-theme="light"] .info-card p,
html[data-theme="light"] .info-card ul li,
html[data-theme="light"] .info-item .info-text,
html[data-theme="light"] .discord-cta p,
html[data-theme="light"] .discord-cta h3,
html[data-theme="light"] .support-form label {
    color: #1a2332 !important;
}

html[data-theme="light"] .info-item .info-text strong {
    color: #134a72 !important;
}

html[data-theme="light"] .info-item {
    border-bottom-color: rgba(26, 35, 50, 0.08) !important;
}

html[data-theme="light"] .form-section {
    border-bottom-color: rgba(26, 35, 50, 0.08) !important;
}

html[data-theme="light"] .form-group input,
html[data-theme="light"] .form-group select,
html[data-theme="light"] .form-group textarea,
html[data-theme="light"] .support-form input,
html[data-theme="light"] .support-form select,
html[data-theme="light"] .support-form textarea {
    background: rgba(244, 247, 251, 0.95) !important;
    border-color: rgba(45, 140, 214, 0.32) !important;
    color: #1a2332 !important;
}

html[data-theme="light"] .form-group input:focus,
html[data-theme="light"] .form-group select:focus,
html[data-theme="light"] .form-group textarea:focus,
html[data-theme="light"] .support-form input:focus,
html[data-theme="light"] .support-form select:focus,
html[data-theme="light"] .support-form textarea:focus {
    background: #ffffff !important;
    border-color: rgba(45, 140, 214, 0.55) !important;
}

html[data-theme="light"] .form-group input::placeholder,
html[data-theme="light"] .form-group textarea::placeholder,
html[data-theme="light"] .support-form input::placeholder,
html[data-theme="light"] .support-form textarea::placeholder {
    color: #8a9aac !important;
}

html[data-theme="light"] .file-upload,
html[data-theme="light"] .screenshot-slot {
    background: rgba(244, 247, 251, 0.9) !important;
    border-color: rgba(45, 140, 214, 0.35) !important;
    color: #1a2332 !important;
}

html[data-theme="light"] .screenshot-slot.has-image {
    background: rgba(232, 245, 236, 0.9) !important;
}

html[data-theme="light"] .upload-progress-bar {
    background: rgba(26, 35, 50, 0.08) !important;
}

html[data-theme="light"] .report-cta-card {
    background: linear-gradient(145deg, rgba(255, 240, 240, 0.95), rgba(255, 250, 250, 0.92)) !important;
    border-color: rgba(185, 28, 28, 0.35) !important;
    color: #1a2332 !important;
    box-shadow: 0 8px 22px rgba(185, 28, 28, 0.08);
}

html[data-theme="light"] .report-cta-content h3 {
    color: #b42318 !important;
}

html[data-theme="light"] .report-cta-content p {
    color: #5a3a3a !important;
}

html[data-theme="light"] .report-cta-btn {
    color: #b42318 !important;
}

html[data-theme="light"] .faq-item {
    background: rgba(244, 247, 251, 0.92) !important;
    border-color: rgba(45, 140, 214, 0.22) !important;
}

html[data-theme="light"] .faq-question,
html[data-theme="light"] .faq-answer {
    color: #1a2332 !important;
}

/* Support / report page shells that hardcode body #0a0a0a */
html[data-theme="light"] body {
    color: #1a2332 !important;
}

/* Killfeed / live monitor: inline white nicknames */
html[data-theme="light"] .profile-link[style*="color:#fff"],
html[data-theme="light"] .profile-link[style*="color: #fff"],
html[data-theme="light"] span.profile-link {
    color: #1568a8 !important;
}

/* Homepage LIVE badge / online section leftovers */
html[data-theme="light"] .live-badge,
html[data-theme="light"] .section-live-badge,
html[data-theme="light"] .online-live-badge {
    background: rgba(46, 204, 113, 0.14) !important;
    color: #1e7a45 !important;
    border-color: rgba(46, 204, 113, 0.35) !important;
}

/* Soften neon text-shadows that muddy light surfaces */
html[data-theme="light"] .hero-title,
html[data-theme="light"] .support-hero h1,
html[data-theme="light"] .report-hero h1,
html[data-theme="light"] .page-title,
html[data-theme="light"] .section-heading {
    text-shadow: none !important;
}

/* Inline style leftovers on support/report sidebars */
html[data-theme="light"] .info-card p[style],
html[data-theme="light"] .support-sidebar p[style] {
    color: #3a4a5c !important;
}

/* Content layer glass on pages that still ship dark inline shells */
html[data-theme="light"] .content-layer,
html[data-theme="light"] .main-content .container > .table-of-contents,
html[data-theme="light"] .main-content .container > .rules-section {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Ensure dark opaque body washes don't hide animated bg */
html[data-theme="light"] body {
    background: transparent !important;
    background-color: transparent !important;
}

html[data-theme="light"] .animated-bg {
    background: #e8eef5 !important;
}

/* ========== Amy A/B/C — light contrast safety net (!important) ========== */

/* A) Mega-menu «ЕЩЁ» — solid light panel, no dark glass / blur bleed */
html[data-theme="light"] .dropdown-menu {
    background: #ffffff !important;
    background-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
    box-shadow:
        0 18px 40px rgba(26, 48, 72, 0.14),
        0 2px 8px rgba(26, 48, 72, 0.06) !important;
}

html[data-theme="light"] .dropdown-menu::before {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
    box-shadow: none !important;
}

/* Keep hover bridge transparent — white strip looked crooked over hero */
html[data-theme="light"] .cod-header .dropdown-menu::before {
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

html[data-theme="light"] .cod-header .dropdown-menu {
    background: #ffffff !important;
    background-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow: hidden !important;
    border: 1px solid rgba(45, 140, 214, 0.28) !important;
    border-top-color: rgba(45, 140, 214, 0.16) !important;
    box-shadow: 0 16px 36px rgba(26, 48, 72, 0.12) !important;
}

html[data-theme="light"] .cod-header .dropdown-group + .dropdown-group {
    border-left-color: rgba(26, 35, 50, 0.1) !important;
}

html[data-theme="light"] .dropdown-group-title {
    color: #0d4a75 !important;
    border-bottom-color: rgba(26, 35, 50, 0.1) !important;
}

html[data-theme="light"] .dropdown-menu a {
    color: #1a2332 !important;
}

html[data-theme="light"] .dropdown-menu a .link-icon {
    color: #1568a8 !important;
}

html[data-theme="light"] .dropdown-menu a:hover {
    background: rgba(63, 169, 245, 0.1) !important;
    color: #0d5a9a !important;
}

html[data-theme="light"] .dropdown-menu a:hover .link-icon {
    color: #0d5a9a !important;
}

html[data-theme="light"] .dropdown-menu a .link-badge {
    background: #2d8cd6 !important;
    color: #ffffff !important;
}

html[data-theme="light"] .dropdown-menu a .link-badge.new {
    background: #1e7a45 !important;
    color: #ffffff !important;
}

html[data-theme="light"] .dropdown-menu a .link-badge.hot {
    background: #c0392b !important;
    color: #ffffff !important;
}

html[data-theme="light"] .dropdown-menu a:hover .link-badge {
    background: #1f7fc4 !important;
    color: #ffffff !important;
}

html[data-theme="light"] .dropdown-menu a:hover .link-badge.hot {
    background: #a93226 !important;
    color: #ffffff !important;
}

html[data-theme="light"] .dropdown-menu a:hover .link-badge.new {
    background: #196b3c !important;
    color: #ffffff !important;
}

/* B) Servers block — empty state inline #aaa/#888 + actions + legend + pill */
html[data-theme="light"] .server-scoreboard [style*="color: #888"],
html[data-theme="light"] .server-scoreboard [style*="color:#888"],
html[data-theme="light"] .server-scoreboard [style*="color: #aaa"],
html[data-theme="light"] .server-scoreboard [style*="color:#aaa"] {
    color: #3a4a5c !important;
}

html[data-theme="light"] .server-scoreboard h3[style*="color: #aaa"],
html[data-theme="light"] .server-scoreboard h3[style*="color:#aaa"],
html[data-theme="light"] .server-scoreboard h3 {
    color: #1a2332 !important;
}

html[data-theme="light"] .server-scoreboard [style*="color: #888"] p,
html[data-theme="light"] .server-scoreboard [style*="color:#888"] p,
html[data-theme="light"] .server-scoreboard p {
    color: #3a4a5c !important;
}

html[data-theme="light"] .server-scoreboard [style*="color: #888"] > i,
html[data-theme="light"] .server-scoreboard [style*="color:#888"] > i {
    color: #5a6a7c !important;
    opacity: 0.85 !important;
}

html[data-theme="light"] .empty-team {
    color: #3a4a5c !important;
}

html[data-theme="light"] .visitors-chart-container .chart-legend-item,
html[data-theme="light"] .visitors-chart-container .no-data,
html[data-theme="light"] .legend-item {
    color: #3a4a5c !important;
}

html[data-theme="light"] .action-btn {
    background: rgba(244, 247, 251, 0.98) !important;
    border-color: rgba(45, 140, 214, 0.35) !important;
    color: #1a2332 !important;
}

html[data-theme="light"] .action-btn i {
    color: #0d5a9a !important;
}

html[data-theme="light"] .action-btn:hover {
    background: rgba(63, 169, 245, 0.16) !important;
    color: #0d3a5c !important;
}

html[data-theme="light"] .action-btn:hover i {
    color: #0d3a5c !important;
}

html[data-theme="light"] .action-btn.connect-btn {
    background: rgba(46, 204, 113, 0.16) !important;
    border-color: rgba(30, 122, 69, 0.45) !important;
    color: #146338 !important;
}

html[data-theme="light"] .action-btn.connect-btn i {
    color: #146338 !important;
}

html[data-theme="light"] .live-online-counter {
    background: #ffffff !important;
    border: 1px solid rgba(45, 140, 214, 0.42) !important;
    color: #1a2332 !important;
    box-shadow: 0 2px 10px rgba(26, 48, 72, 0.1);
}

html[data-theme="light"] .live-online-counter .counter-value {
    color: #0d5a9a !important;
}

html[data-theme="light"] .live-online-counter .counter-value[data-server="2"] {
    color: #8a5a00 !important;
}

html[data-theme="light"] .live-online-counter .counter-sep {
    color: #5a6a7c !important;
}

html[data-theme="light"] .live-online-counter .counter-label {
    color: #1a2332 !important;
    background: rgba(45, 140, 214, 0.16);
    border-radius: 4px;
    padding: 1px 6px;
    letter-spacing: 1px;
}

html[data-theme="light"] .live-online-counter.offline .counter-value {
    color: #6a7a8c !important;
}

/* C) Live-online floating card */
html[data-theme="light"] .live-server-pop .lsp-team.attack,
html[data-theme="light"] .live-server-pop .lsp-score strong.attack {
    color: #0b6eae !important;
}

html[data-theme="light"] .live-server-pop .lsp-team.defence,
html[data-theme="light"] .live-server-pop .lsp-score strong.defence {
    color: #8a5a00 !important;
}

html[data-theme="light"] .live-server-pop .lsp-empty,
html[data-theme="light"] .live-server-pop .lsp-score span,
html[data-theme="light"] .live-server-pop .lsp-score em,
html[data-theme="light"] .live-server-pop .lsp-teams li i {
    color: #3a4a5c !important;
}

html[data-theme="light"] .live-server-pop .lsp-teams li b {
    color: #1a2332 !important;
}

html[data-theme="light"] .live-server-pop .lsp-score {
    background: rgba(232, 238, 245, 0.95) !important;
    border-color: rgba(45, 140, 214, 0.22) !important;
}

html[data-theme="light"] .live-server-pop .lsp-connect {
    background: #1e7a45 !important;
    border-color: #1a6b3c !important;
    color: #ffffff !important;
}

html[data-theme="light"] .live-server-pop .lsp-connect:hover {
    background: #196b3c !important;
    color: #ffffff !important;
}

html[data-theme="light"] .live-server-pop .lsp-more {
    background: rgba(244, 247, 251, 0.98) !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
    color: #1568a8 !important;
}

html[data-theme="light"] .live-server-pop .lsp-more:hover {
    color: #0d4a75 !important;
    border-color: rgba(45, 140, 214, 0.45) !important;
}

html[data-theme="light"] .live-server-pop .lsp-tabs button {
    background: rgba(244, 247, 251, 0.98) !important;
    border-color: rgba(45, 140, 214, 0.22) !important;
    color: #3a4a5c !important;
}

html[data-theme="light"] .live-server-pop .lsp-tabs button.is-on {
    background: rgba(63, 169, 245, 0.14) !important;
    border-color: rgba(45, 140, 214, 0.4) !important;
    color: #1a2332 !important;
}

html[data-theme="light"] .live-server-pop .lsp-tabs button b {
    color: #1568a8 !important;
}

/* Legal modals — full chrome for light (beats page-inline dark CSS) */
html[data-theme="light"] .legal-modal-overlay {
    background: rgba(20, 35, 55, 0.45) !important;
}

html[data-theme="light"] .legal-modal {
    background: #ffffff !important;
    background-image: none !important;
    border-color: rgba(45, 140, 214, 0.32) !important;
    box-shadow: 0 30px 70px rgba(26, 48, 72, 0.22) !important;
    color: #1a2332 !important;
}

html[data-theme="light"] .legal-modal-close {
    color: #5a6a7c !important;
}

html[data-theme="light"] .legal-modal-close:hover {
    color: #1a2332 !important;
}

html[data-theme="light"] .legal-modal-title {
    color: #1568a8 !important;
}

html[data-theme="light"] .legal-modal-content {
    color: #3a4a5c !important;
    background: transparent !important;
}

html[data-theme="light"] .legal-modal-content h4 {
    color: #1568a8 !important;
}

html[data-theme="light"] .legal-modal-content p,
html[data-theme="light"] .legal-modal-content li,
html[data-theme="light"] .legal-modal-content strong {
    color: #3a4a5c !important;
}

html[data-theme="light"] .legal-modal-content .highlight,
html[data-theme="light"] .legal-modal-content a {
    color: #1568a8 !important;
}

html[data-theme="light"] .legal-modal-content ul li::before {
    color: #1568a8 !important;
}

html[data-theme="light"] .legal-modal-footer {
    border-top-color: rgba(26, 35, 50, 0.12) !important;
}

html[data-theme="light"] .legal-modal-footer .btn {
    background: rgba(45, 140, 214, 0.12) !important;
    color: #1568a8 !important;
    border-color: rgba(45, 140, 214, 0.35) !important;
}

html[data-theme="light"] .legal-modal-footer .btn:hover {
    background: rgba(45, 140, 214, 0.2) !important;
    color: #0d4a75 !important;
}

html[data-theme="light"] .legal-modal::-webkit-scrollbar-thumb {
    background: rgba(45, 140, 214, 0.35) !important;
}

/* ========== Auth-gated: panel / moderation / admin ========== */

/* Soft translucent glass — keep animated bg visible through panels */
html[data-theme="light"] .profile-card,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .settings-card,
html[data-theme="light"] .notify-card,
html[data-theme="light"] .messages-box,
html[data-theme="light"] .send-message-box,
html[data-theme="light"] .passport-card,
html[data-theme="light"] .link-card,
html[data-theme="light"] .admin-card,
html[data-theme="light"] .admin-stat,
html[data-theme="light"] .recent-users,
html[data-theme="light"] .mod-stat,
html[data-theme="light"] .mod-section,
html[data-theme="light"] .report,
html[data-theme="light"] .users-table {
    background: rgba(255, 255, 255, 0.78) !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
    color: #1a2332 !important;
    box-shadow: 0 8px 24px rgba(26, 48, 72, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Panel hero — no dark wash over light animated bg */
html[data-theme="light"] .hero-section {
    background: transparent !important;
    border-bottom-color: rgba(45, 140, 214, 0.22) !important;
}

html[data-theme="light"] .hero-section::before {
    background:
        radial-gradient(ellipse at 30% 50%, rgba(45, 140, 214, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(63, 169, 245, 0.05) 0%, transparent 60%) !important;
}

html[data-theme="light"] .section-title {
    color: #1568a8 !important;
    text-shadow: none !important;
}

html[data-theme="light"] .section-title::after {
    background: linear-gradient(90deg, transparent, rgba(45, 140, 214, 0.45), transparent) !important;
}

/* Online player → stats modal (homepage «Игроки онлайн») */
html[data-theme="light"] button.online-player-stats,
html[data-theme="light"] .live-server-pop .lsp-teams li .lsp-player {
    color: #1a2332 !important;
}

html[data-theme="light"] button.online-player-stats:hover,
html[data-theme="light"] button.online-player-stats:focus-visible,
html[data-theme="light"] .live-server-pop .lsp-teams li .lsp-player:hover,
html[data-theme="light"] .live-server-pop .lsp-teams li .lsp-player:focus-visible {
    color: #2d8cd6 !important;
}

html[data-theme="light"] .psi-badge:not(.on) {
    background: rgba(26, 35, 50, 0.06) !important;
    color: #5a6a7c !important;
}

/* Panel profile nested cells */
html[data-theme="light"] .profile-info-item,
html[data-theme="light"] .info-group,
html[data-theme="light"] .profile-detail-item,
html[data-theme="light"] .setting-item,
html[data-theme="light"] .my-report,
html[data-theme="light"] .appeal-block {
    background: rgba(244, 247, 251, 0.85) !important;
    border-color: rgba(45, 140, 214, 0.2) !important;
    color: #1a2332 !important;
}

html[data-theme="light"] .info-group-title {
    background: rgba(63, 169, 245, 0.1) !important;
    color: #1568a8 !important;
    border-bottom-color: rgba(45, 140, 214, 0.18) !important;
}

html[data-theme="light"] .profile-label,
html[data-theme="light"] .profile-detail-item .label,
html[data-theme="light"] .status-hint,
html[data-theme="light"] .stat-title,
html[data-theme="light"] .stat-description,
html[data-theme="light"] .link-desc,
html[data-theme="light"] .setting-info p,
html[data-theme="light"] .box-title,
html[data-theme="light"] .msg-time,
html[data-theme="light"] .empty-messages,
html[data-theme="light"] .my-report small,
html[data-theme="light"] .bar-meta,
html[data-theme="light"] .notify-mark {
    color: #5a6a7c !important;
}

html[data-theme="light"] .profile-value,
html[data-theme="light"] .profile-detail-item .value,
html[data-theme="light"] .stat-value,
html[data-theme="light"] .link-title,
html[data-theme="light"] .setting-info h4,
html[data-theme="light"] .msg-text,
html[data-theme="light"] .msg-sender,
html[data-theme="light"] .notify-title,
html[data-theme="light"] .notify-item.is-unread .notify-link,
html[data-theme="light"] .notify-link,
html[data-theme="light"] .appeal-reason,
html[data-theme="light"] .passport-card h3 {
    color: #1a2332 !important;
    text-shadow: none !important;
}

html[data-theme="light"] .profile-name,
html[data-theme="light"] .passport-card h3,
html[data-theme="light"] .box-title,
html[data-theme="light"] .notify-title i {
    color: #1568a8 !important;
}

html[data-theme="light"] .msg-sender {
    color: #1568a8 !important;
}

html[data-theme="light"] .notify-link:hover {
    color: #0d5a9a !important;
}

html[data-theme="light"] .notify-body,
html[data-theme="light"] .notify-time,
html[data-theme="light"] .notify-empty {
    color: #5a6a7c !important;
}

html[data-theme="light"] .notify-mark {
    border-color: rgba(45, 140, 214, 0.3) !important;
    background: rgba(244, 247, 251, 0.95) !important;
}

html[data-theme="light"] .notify-mark:hover {
    color: #1568a8 !important;
    border-color: rgba(45, 140, 214, 0.5) !important;
}

html[data-theme="light"] .notify-item {
    border-bottom-color: rgba(26, 35, 50, 0.08) !important;
}

html[data-theme="light"] .notify-dot {
    background: rgba(90, 106, 124, 0.35) !important;
}

html[data-theme="light"] .alias-chip {
    background: rgba(63, 169, 245, 0.12) !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
    color: #1a2332 !important;
}

html[data-theme="light"] .bar-track {
    background: rgba(26, 35, 50, 0.1) !important;
}

/* Status picker */
html[data-theme="light"] .status-indicator {
    background: rgba(244, 247, 251, 0.95) !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
    color: #1a2332 !important;
}

html[data-theme="light"] .status-wrap[data-status="invisible"] .status-indicator {
    color: #5a6a7c !important;
}

html[data-theme="light"] .status-dropdown {
    background: #ffffff !important;
    border-color: rgba(45, 140, 214, 0.3) !important;
    box-shadow: 0 16px 40px rgba(26, 48, 72, 0.16) !important;
}

html[data-theme="light"] .status-dropdown .status-option {
    color: #3a4a5c !important;
}

html[data-theme="light"] .status-dropdown .status-option:hover,
html[data-theme="light"] .status-dropdown .status-option.is-current {
    background: rgba(63, 169, 245, 0.12) !important;
    color: #1a2332 !important;
}

html[data-theme="light"] .status-option-hint {
    color: #5a6a7c !important;
}

html[data-theme="light"] .status-dot.invisible,
html[data-theme="light"] .status-dropdown .status-option .dot.invisible {
    border-color: rgba(90, 106, 124, 0.55) !important;
}

/* Messages */
html[data-theme="light"] .messages-wrapper {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

html[data-theme="light"] .message-item {
    background: rgba(244, 247, 251, 0.9) !important;
    border-left-color: rgba(45, 140, 214, 0.35) !important;
    color: #1a2332 !important;
}

html[data-theme="light"] .message-item:hover {
    background: rgba(63, 169, 245, 0.1) !important;
}

html[data-theme="light"] .message-item .msg-actions button {
    color: #5a6a7c !important;
}

html[data-theme="light"] .message-item .msg-actions button:hover {
    color: #1568a8 !important;
}

html[data-theme="light"] .appeal-form textarea,
html[data-theme="light"] .send-message-box .form-group input,
html[data-theme="light"] .send-message-box .form-group select,
html[data-theme="light"] .send-message-box .form-group textarea,
html[data-theme="light"] .settings-card .form-group input,
html[data-theme="light"] .settings-card .form-group select,
html[data-theme="light"] .settings-card .form-group textarea {
    background: #ffffff !important;
    color: #1a2332 !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
}

html[data-theme="light"] .appeal-send,
html[data-theme="light"] .setting-btn {
    background: rgba(63, 169, 245, 0.14) !important;
    border-color: rgba(45, 140, 214, 0.4) !important;
    color: #1568a8 !important;
}

html[data-theme="light"] .appeal-send:hover,
html[data-theme="light"] .setting-btn:hover {
    background: rgba(63, 169, 245, 0.22) !important;
    color: #0d4a75 !important;
}

html[data-theme="light"] .account-settings-lead {
    color: #5a6a7c !important;
}

html[data-theme="light"] .account-settings-action {
    background: rgba(244, 247, 251, 0.95) !important;
    border-color: rgba(45, 140, 214, 0.22) !important;
    color: #1a2332 !important;
}

html[data-theme="light"] .account-settings-action:hover {
    background: rgba(63, 169, 245, 0.1) !important;
    border-color: rgba(45, 140, 214, 0.4) !important;
}

html[data-theme="light"] .account-settings-action-text span,
html[data-theme="light"] .account-settings-action > .fa-chevron-right {
    color: #5a6a7c !important;
}

html[data-theme="light"] .btn-cancel {
    background: rgba(244, 247, 251, 0.95) !important;
    color: #3a4a5c !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
}

html[data-theme="light"] .modal-content {
    background: #ffffff !important;
    border-color: rgba(45, 140, 214, 0.3) !important;
    color: #1a2332 !important;
    box-shadow: 0 20px 60px rgba(26, 48, 72, 0.2) !important;
}

html[data-theme="light"] .modal-close {
    color: #5a6a7c !important;
}

html[data-theme="light"] .modal-close:hover {
    color: #1a2332 !important;
}

html[data-theme="light"] .modal-title {
    color: #1568a8 !important;
}

html[data-theme="light"] .profile-badge.badge-user,
html[data-theme="light"] .role-user {
    background: rgba(90, 106, 124, 0.12) !important;
    color: #3a4a5c !important;
    border-color: rgba(90, 106, 124, 0.25) !important;
}

/* Moderation page */
html[data-theme="light"] .mod-title {
    color: #6b3fa8 !important;
    text-shadow: none !important;
}

html[data-theme="light"] .mod-sub,
html[data-theme="light"] .mod-stat .l,
html[data-theme="light"] .mod-empty,
html[data-theme="light"] .report-meta,
html[data-theme="light"] .report-nick small,
html[data-theme="light"] .report-reviewed,
html[data-theme="light"] .mod-list .meta,
html[data-theme="light"] .mod-list .snippet,
html[data-theme="light"] .mod-list .when {
    color: #5a6a7c !important;
}

html[data-theme="light"] .mod-btn {
    background: rgba(244, 247, 251, 0.95) !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
    color: #1a2332 !important;
}

html[data-theme="light"] .mod-btn:hover,
html[data-theme="light"] .mod-btn.accent {
    background: rgba(166, 107, 255, 0.14) !important;
    border-color: rgba(166, 107, 255, 0.4) !important;
    color: #4a2a7a !important;
}

html[data-theme="light"] .mod-tab {
    background: rgba(244, 247, 251, 0.92) !important;
    border-color: rgba(45, 140, 214, 0.22) !important;
    color: #3a4a5c !important;
}

html[data-theme="light"] .mod-tab.active,
html[data-theme="light"] .mod-tab:hover {
    background: rgba(166, 107, 255, 0.14) !important;
    border-color: rgba(166, 107, 255, 0.4) !important;
    color: #4a2a7a !important;
}

html[data-theme="light"] .mod-section-title,
html[data-theme="light"] .report-nick,
html[data-theme="light"] .mod-list a {
    color: #1a2332 !important;
}

html[data-theme="light"] .mod-list a:hover {
    color: #6b3fa8 !important;
}

html[data-theme="light"] .mod-list li {
    border-bottom-color: rgba(26, 35, 50, 0.08) !important;
}

html[data-theme="light"] .report-desc {
    background: rgba(244, 247, 251, 0.92) !important;
    border-left-color: rgba(166, 107, 255, 0.55) !important;
    color: #1a2332 !important;
}

html[data-theme="light"] .report-files a {
    background: rgba(63, 169, 245, 0.12) !important;
    border-color: rgba(45, 140, 214, 0.3) !important;
    color: #1568a8 !important;
}

html[data-theme="light"] .report-form select,
html[data-theme="light"] .report-form textarea,
html[data-theme="light"] .report-form input[type="number"] {
    background: #ffffff !important;
    color: #1a2332 !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
}

html[data-theme="light"] .report-reviewed b {
    color: #1a2332 !important;
}

html[data-theme="light"] .mod-stat .v {
    text-shadow: none !important;
}

/* Admin dashboard */
html[data-theme="light"] .admin-title {
    color: #b33a2e !important;
    text-shadow: none !important;
}

html[data-theme="light"] .admin-section-title {
    color: #1568a8 !important;
}

html[data-theme="light"] .admin-stat .stat-label,
html[data-theme="light"] .recent-users h3,
html[data-theme="light"] .recent-user-email,
html[data-theme="light"] .admin-card-desc {
    color: #5a6a7c !important;
}

html[data-theme="light"] .admin-stat .stat-number {
    color: #1568a8 !important;
}

html[data-theme="light"] .admin-card-title,
html[data-theme="light"] .recent-user-name a {
    color: #1a2332 !important;
}

html[data-theme="light"] .recent-user-name a:hover {
    color: #1568a8 !important;
}

html[data-theme="light"] .recent-user-item {
    border-bottom-color: rgba(26, 35, 50, 0.08) !important;
}

html[data-theme="light"] .admin-header {
    border-bottom-color: rgba(45, 140, 214, 0.22) !important;
}

/* Admin users table */
html[data-theme="light"] .users-table th {
    color: #5a6a7c !important;
    border-bottom-color: rgba(26, 35, 50, 0.1) !important;
    background: rgba(63, 169, 245, 0.08) !important;
}

html[data-theme="light"] .users-table td {
    color: #1a2332 !important;
    border-bottom-color: rgba(26, 35, 50, 0.06) !important;
}

html[data-theme="light"] .users-table tr:hover td {
    background: rgba(63, 169, 245, 0.06) !important;
}

html[data-theme="light"] .user-search input,
html[data-theme="light"] .role-select {
    background: #ffffff !important;
    color: #1a2332 !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
}

html[data-theme="light"] .user-search button,
html[data-theme="light"] .assign-btn {
    background: rgba(63, 169, 245, 0.14) !important;
    border-color: rgba(45, 140, 214, 0.35) !important;
    color: #1568a8 !important;
}

html[data-theme="light"] .pager a,
html[data-theme="light"] .pager span {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
    color: #3a4a5c !important;
}

html[data-theme="light"] .pager .active {
    background: rgba(63, 169, 245, 0.18) !important;
    color: #1568a8 !important;
}

html[data-theme="light"] .page-title {
    color: #1568a8 !important;
    text-shadow: none !important;
}

/* Soften inline muted helper text on admin users */
html[data-theme="light"] .container > div[style*="color: rgba(255,255,255"] {
    color: #5a6a7c !important;
}

/* ========== Profile + player cards (thorough light pass) ========== */

/* Forum / panel / public profile nested text that stayed white-on-light */
html[data-theme="light"] .profile-info-item .label,
html[data-theme="light"] .profile-info-item .value,
html[data-theme="light"] .profile-modal .profile-info-item .label,
html[data-theme="light"] .profile-modal .profile-info-item .value {
    color: #1a2332 !important;
}

html[data-theme="light"] .profile-info-item .label,
html[data-theme="light"] .profile-modal .profile-info-item .label {
    color: #5a6a7c !important;
}

html[data-theme="light"] .profile-info-item {
    border-bottom-color: rgba(26, 35, 50, 0.1) !important;
}

html[data-theme="light"] .profile-stats {
    background: transparent !important;
    box-shadow: none !important;
    border-top-color: rgba(45, 140, 214, 0.18) !important;
    border-bottom-color: rgba(45, 140, 214, 0.18) !important;
}

html[data-theme="light"] .profile-stat .stat-number,
html[data-theme="light"] .profile-modal .profile-stat .stat-number {
    color: #1568a8 !important;
    text-shadow: none !important;
}

html[data-theme="light"] .profile-stat .stat-label,
html[data-theme="light"] .profile-modal .profile-stat .stat-label {
    color: #5a6a7c !important;
}

html[data-theme="light"] .profile-personal-title,
html[data-theme="light"] .profile-modal .profile-personal-title {
    color: #1568a8 !important;
}

html[data-theme="light"] .profile-avatar,
html[data-theme="light"] .profile-modal .profile-avatar {
    border-color: rgba(45, 140, 214, 0.35) !important;
    box-shadow: 0 8px 24px rgba(26, 48, 72, 0.12) !important;
}

html[data-theme="light"] .profile-presence,
html[data-theme="light"] .profile-presence.presence-online,
html[data-theme="light"] .profile-presence.presence-away,
html[data-theme="light"] .profile-presence.presence-invisible {
    background: rgba(244, 247, 251, 0.95) !important;
    color: #1a2332 !important;
}

html[data-theme="light"] .profile-presence.presence-online {
    border-color: rgba(46, 204, 113, 0.45) !important;
    color: #1e7a45 !important;
}

html[data-theme="light"] .profile-presence.presence-away {
    border-color: rgba(241, 196, 15, 0.5) !important;
    color: #8a6d00 !important;
}

html[data-theme="light"] .profile-presence.presence-invisible {
    border-color: rgba(90, 106, 124, 0.4) !important;
    color: #5a6a7c !important;
}

html[data-theme="light"] .profile-presence.presence-invisible .presence-dot {
    border-color: rgba(90, 106, 124, 0.55) !important;
}

html[data-theme="light"] .profile-status .status-inactive {
    color: #5a6a7c !important;
}

html[data-theme="light"] .profile-badge.badge-user,
html[data-theme="light"] .role-user,
html[data-theme="light"] .profile-modal .role-user {
    background: rgba(90, 106, 124, 0.12) !important;
    color: #3a4a5c !important;
    border-color: rgba(90, 106, 124, 0.28) !important;
}

html[data-theme="light"] .profile-about .about-label,
html[data-theme="light"] .profile-modal .profile-about .about-label,
html[data-theme="light"] .profile-modal .profile-recent-posts .recent-title,
html[data-theme="light"] .profile-modal .profile-send-message .send-title {
    color: #1568a8 !important;
}

html[data-theme="light"] .profile-about .about-text,
html[data-theme="light"] .profile-modal .profile-about .about-text {
    color: #3a4a5c !important;
}

html[data-theme="light"] .profile-modal .profile-about,
html[data-theme="light"] .profile-modal .profile-send-message,
html[data-theme="light"] .profile-modal .profile-recent-posts .recent-item {
    background: rgba(244, 247, 251, 0.92) !important;
    border-color: rgba(45, 140, 214, 0.22) !important;
}

html[data-theme="light"] .profile-modal .profile-recent-posts .recent-item:hover {
    background: rgba(63, 169, 245, 0.1) !important;
    border-left-color: #3fa9f5 !important;
}

html[data-theme="light"] .profile-modal .profile-recent-posts .recent-item a {
    color: #1a2332 !important;
}

html[data-theme="light"] .profile-modal .profile-recent-posts .recent-item a:hover {
    color: #1568a8 !important;
}

html[data-theme="light"] .profile-modal .profile-recent-posts .recent-item .recent-meta {
    color: #5a6a7c !important;
}

/* Profile modal shell (injected styles lose to higher specificity here) */
html[data-theme="light"] .profile-modal-overlay {
    background: rgba(20, 35, 55, 0.4) !important;
}

html[data-theme="light"] .profile-modal {
    background: #ffffff !important;
    background-image: none !important;
    border-color: rgba(45, 140, 214, 0.3) !important;
    color: #1a2332 !important;
    box-shadow: 0 30px 70px rgba(26, 48, 72, 0.22) !important;
}

html[data-theme="light"] .profile-modal-close {
    color: #5a6a7c !important;
}

html[data-theme="light"] .profile-modal-close:hover {
    color: #1a2332 !important;
}

html[data-theme="light"] .profile-modal-loading,
html[data-theme="light"] .profile-modal-loading p {
    color: #5a6a7c !important;
}

html[data-theme="light"] .profile-modal .profile-status {
    color: #5a6a7c !important;
}

html[data-theme="light"] .profile-modal .profile-name {
    color: #1568a8 !important;
    text-shadow: none !important;
}

html[data-theme="light"] .profile-modal .profile-stats {
    background: transparent !important;
    box-shadow: none !important;
    border-top-color: rgba(45, 140, 214, 0.18) !important;
    border-bottom-color: rgba(45, 140, 214, 0.18) !important;
}

html[data-theme="light"] .profile-modal .info-group {
    background: rgba(244, 247, 251, 0.85) !important;
    border-color: rgba(45, 140, 214, 0.2) !important;
}

html[data-theme="light"] .profile-modal .info-group-title {
    background: rgba(63, 169, 245, 0.1) !important;
    color: #1568a8 !important;
    border-bottom-color: rgba(45, 140, 214, 0.18) !important;
}

html[data-theme="light"] .profile-modal .profile-detail-item {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(45, 140, 214, 0.18) !important;
}

html[data-theme="light"] .profile-modal .profile-detail-item .label {
    color: #5a6a7c !important;
}

html[data-theme="light"] .profile-modal .profile-detail-item .value {
    color: #1a2332 !important;
}

html[data-theme="light"] .profile-modal .profile-send-message textarea {
    background: #ffffff !important;
    color: #1a2332 !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
}

html[data-theme="light"] .profile-modal .profile-send-message textarea::placeholder {
    color: #5a6a7c !important;
}

html[data-theme="light"] .profile-modal .btn-secondary {
    background: rgba(244, 247, 251, 0.95) !important;
    color: #3a4a5c !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
}

html[data-theme="light"] .profile-modal .btn-secondary:hover {
    background: rgba(63, 169, 245, 0.12) !important;
    color: #1568a8 !important;
}

html[data-theme="light"] .profile-modal::-webkit-scrollbar-thumb {
    background: rgba(45, 140, 214, 0.35) !important;
}

/* Player stats modal — nested cells / badges / weapons */
html[data-theme="light"] .player-modal-name {
    color: #1568a8 !important;
    text-shadow: none !important;
}

html[data-theme="light"] .player-modal-header {
    border-bottom-color: rgba(45, 140, 214, 0.2) !important;
}

html[data-theme="light"] .player-modal-loading,
html[data-theme="light"] .player-modal-loading p {
    color: #5a6a7c !important;
}

html[data-theme="light"] .player-modal-rank-line .pml-rank,
html[data-theme="light"] .player-modal-rank-line .rank-badge,
html[data-theme="light"] .player-modal-rank-line .pml-client,
html[data-theme="light"] .player-modal-rank-line .client-id-badge {
    color: #5a6a7c !important;
}

html[data-theme="light"] .player-modal-rank-line .pml-rating,
html[data-theme="light"] .player-modal-rank-line .rating-badge {
    color: #1568a8 !important;
}

html[data-theme="light"] .player-modal-rank-line .rating-change-badge.neutral {
    background: rgba(232, 238, 245, 0.95) !important;
    border-color: rgba(45, 140, 214, 0.22) !important;
    color: #5a6a7c !important;
}

html[data-theme="light"] .pmes-item,
html[data-theme="light"] .pmgi-item {
    background: rgba(244, 247, 251, 0.95) !important;
    border-color: rgba(45, 140, 214, 0.2) !important;
    color: #1a2332 !important;
}

html[data-theme="light"] .pmes-item:hover {
    background: rgba(63, 169, 245, 0.08) !important;
    border-color: rgba(45, 140, 214, 0.4) !important;
}

html[data-theme="light"] .pmes-label,
html[data-theme="light"] .pmgi-label {
    color: #5a6a7c !important;
}

html[data-theme="light"] .pmes-value {
    color: #1568a8 !important;
}

html[data-theme="light"] .pmgi-value {
    color: #1a2332 !important;
}

html[data-theme="light"] .player-modal-aliases,
html[data-theme="light"] .player-modal-chart-wrap,
html[data-theme="light"] .player-modal-hitbox-wrap,
html[data-theme="light"] .player-modal-weapons-wrap,
html[data-theme="light"] .player-modal-hourly-wrap {
    background: rgba(244, 247, 251, 0.92) !important;
    border-color: rgba(45, 140, 214, 0.22) !important;
}

html[data-theme="light"] .player-chart-title {
    color: #1568a8 !important;
}

html[data-theme="light"] .player-alias-tag {
    background: rgba(63, 169, 245, 0.12) !important;
    border-color: rgba(45, 140, 214, 0.3) !important;
    color: #1a2332 !important;
}

html[data-theme="light"] .player-alias-tag.active {
    background: rgba(63, 169, 245, 0.2) !important;
    color: #1568a8 !important;
    border-color: rgba(45, 140, 214, 0.5) !important;
}

html[data-theme="light"] .player-weapon-row {
    background: rgba(255, 255, 255, 0.9) !important;
    border-left-color: rgba(45, 140, 214, 0.35) !important;
}

html[data-theme="light"] .player-weapon-row:hover {
    background: rgba(63, 169, 245, 0.1) !important;
}

html[data-theme="light"] .player-weapon-name {
    color: #1a2332 !important;
}

html[data-theme="light"] .player-weapon-kills {
    color: #1568a8 !important;
}

html[data-theme="light"] .player-weapon-percent {
    color: #5a6a7c !important;
}

html[data-theme="light"] .hitbox-tooltip,
html[data-theme="light"] .hourly-bar:hover::after {
    background: #ffffff !important;
    color: #1a2332 !important;
    border-color: rgba(45, 140, 214, 0.4) !important;
    box-shadow: 0 8px 20px rgba(26, 48, 72, 0.14);
}

html[data-theme="light"] .hitbox-limb-chip,
html[data-theme="light"] .hitbox-zone-row {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(45, 140, 214, 0.2) !important;
}

html[data-theme="light"] .hitbox-limb-chip.group-arms::before {
    background: rgba(230, 120, 30, 0.95) !important;
}

html[data-theme="light"] .hitbox-limb-chip.group-legs::before {
    background: rgba(40, 160, 70, 0.9) !important;
}

html[data-theme="light"] .hitbox-zone-row:hover {
    background: rgba(63, 169, 245, 0.1) !important;
    border-color: rgba(45, 140, 214, 0.35) !important;
}

html[data-theme="light"] .hitbox-limb-label {
    color: #5a6a7c !important;
}

html[data-theme="light"] .hitbox-limb-value,
html[data-theme="light"] .hitbox-zone-name {
    color: #1a2332 !important;
}

html[data-theme="light"] .hitbox-limb-value em,
html[data-theme="light"] .hitbox-zone-hits {
    color: #1568a8 !important;
}

html[data-theme="light"] .hitbox-zone-pct,
html[data-theme="light"] .hitbox-legend .legend-item,
html[data-theme="light"] .hitbox-zone-empty {
    color: #5a6a7c !important;
}

html[data-theme="light"] .hitbox-zone-bar {
    background: rgba(45, 140, 214, 0.12) !important;
}

html[data-theme="light"] .player-modal-content::-webkit-scrollbar-thumb {
    background: rgba(45, 140, 214, 0.35) !important;
}

/* Check / find-player style cards */
html[data-theme="light"] .player-item {
    background: rgba(255, 255, 255, 0.88) !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
    color: #1a2332 !important;
    box-shadow: 0 8px 22px rgba(26, 48, 72, 0.08);
}

html[data-theme="light"] .player-item:hover {
    border-color: rgba(45, 140, 214, 0.5) !important;
    box-shadow: 0 12px 28px rgba(26, 48, 72, 0.12);
}

html[data-theme="light"] .player-item.suspicious {
    background: linear-gradient(145deg, rgba(231, 76, 60, 0.08), rgba(255, 255, 255, 0.9)) !important;
    border-color: rgba(231, 76, 60, 0.45) !important;
}

html[data-theme="light"] .player-header {
    border-bottom-color: rgba(45, 140, 214, 0.2) !important;
}

html[data-theme="light"] .player-info h2,
html[data-theme="light"] .player-name {
    color: #1568a8 !important;
}

html[data-theme="light"] .player-id,
html[data-theme="light"] .player-last-seen,
html[data-theme="light"] .player-stats {
    color: #5a6a7c !important;
}

html[data-theme="light"] .player-card .stat-box,
html[data-theme="light"] .download-card .stat-box,
html[data-theme="light"] .info-card .stat-box {
    background: rgba(244, 247, 251, 0.92) !important;
    border-color: rgba(45, 140, 214, 0.22) !important;
}

/* Panel passport / profile polish */
html[data-theme="light"] .profile-card::before,
html[data-theme="light"] .stat-card::before {
    background: linear-gradient(90deg, transparent, rgba(45, 140, 214, 0.45), transparent) !important;
}

html[data-theme="light"] .stat-card:hover {
    box-shadow: 0 10px 28px rgba(26, 48, 72, 0.12) !important;
    border-color: rgba(45, 140, 214, 0.35) !important;
}

html[data-theme="light"] .stat-value {
    color: #1a2332 !important;
    text-shadow: none !important;
}

html[data-theme="light"] .status-indicator {
    color: #1a2332 !important;
}

html[data-theme="light"] .status-wrap[data-status="invisible"] .status-indicator {
    color: #5a6a7c !important;
}

html[data-theme="light"] .profile-avatar .avatar-overlay {
    background: rgba(255, 255, 255, 0.72) !important;
    color: #1568a8 !important;
}

html[data-theme="light"] .profile-avatar .avatar-overlay span {
    color: #1568a8 !important;
}

/* Settings profile form leftovers */
html[data-theme="light"] .form-card .form-group input,
html[data-theme="light"] .form-card .form-group select,
html[data-theme="light"] .form-card .form-group textarea {
    background: #ffffff !important;
    color: #1a2332 !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
}

html[data-theme="light"] .form-card .btn {
    background: rgba(63, 169, 245, 0.14) !important;
    border-color: rgba(45, 140, 214, 0.4) !important;
    color: #1568a8 !important;
}

html[data-theme="light"] .form-card .btn:hover {
    background: rgba(63, 169, 245, 0.22) !important;
    color: #0d4a75 !important;
}

/* ========== Cabinet redesign (panel.css) light pass ========== */
html[data-theme="light"] .cabinet-hero {
    background: transparent !important;
    border-bottom-color: rgba(45, 140, 214, 0.22) !important;
}

html[data-theme="light"] .cabinet-hero::before {
    background:
        radial-gradient(ellipse at 12% 40%, rgba(45, 140, 214, 0.1) 0%, transparent 55%),
        radial-gradient(ellipse at 88% 60%, rgba(63, 169, 245, 0.06) 0%, transparent 50%) !important;
}

html[data-theme="light"] .cabinet-hero-title {
    color: #1a2332 !important;
    text-shadow: none !important;
}

html[data-theme="light"] .cabinet-hero-title span,
html[data-theme="light"] .cabinet-kicker,
html[data-theme="light"] .mm-hub-kicker {
    color: #1568a8 !important;
}

html[data-theme="light"] .cabinet-hero-sub,
html[data-theme="light"] .mm-hub-sub,
html[data-theme="light"] .mm-cta-desc,
html[data-theme="light"] .guid-hint,
html[data-theme="light"] .guid-hint-sub,
html[data-theme="light"] .guid-status,
html[data-theme="light"] .stats-source,
html[data-theme="light"] .stats-empty,
html[data-theme="light"] .appeal-meta {
    color: #5a6a7c !important;
}

html[data-theme="light"] .cabinet-jump a {
    background: rgba(255, 255, 255, 0.78) !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
    color: #3a4a5c !important;
}

html[data-theme="light"] .cabinet-jump a:hover {
    background: rgba(63, 169, 245, 0.12) !important;
    color: #1568a8 !important;
    border-color: rgba(45, 140, 214, 0.45) !important;
}

html[data-theme="light"] .cabinet-hero-avatar {
    border-color: rgba(45, 140, 214, 0.45) !important;
    box-shadow: 0 0 0 4px rgba(63, 169, 245, 0.1), 0 10px 28px rgba(26, 48, 72, 0.12) !important;
}

html[data-theme="light"] .mm-hub,
html[data-theme="light"] .guid-bind {
    background: rgba(255, 255, 255, 0.78) !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
    color: #1a2332 !important;
    box-shadow: 0 8px 24px rgba(26, 48, 72, 0.08);
}

html[data-theme="light"] .mm-hub-title,
html[data-theme="light"] .mm-cta-title,
html[data-theme="light"] .guid-bind-title,
html[data-theme="light"] .guid-line {
    color: #1a2332 !important;
}

html[data-theme="light"] .mm-hub-elo-value,
html[data-theme="light"] .guid-code,
html[data-theme="light"] .guid-status b {
    color: #1568a8 !important;
    text-shadow: none !important;
}

html[data-theme="light"] .mm-hub-elo-label {
    color: #5a6a7c !important;
}

html[data-theme="light"] .mm-cta {
    background: rgba(244, 247, 251, 0.92) !important;
    border-color: rgba(45, 140, 214, 0.22) !important;
}

html[data-theme="light"] .mm-cta:hover,
html[data-theme="light"] .mm-cta.primary {
    background: rgba(63, 169, 245, 0.12) !important;
    border-color: rgba(45, 140, 214, 0.4) !important;
}

html[data-theme="light"] .guid-howto {
    background: rgba(63, 169, 245, 0.08) !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
    color: #3a4a5c !important;
}

html[data-theme="light"] .guid-howto-title {
    color: #1568a8 !important;
}

html[data-theme="light"] .guid-howto code {
    background: rgba(26, 35, 50, 0.06) !important;
    color: #1a2332 !important;
}

html[data-theme="light"] .cabinet-section .section-title {
    color: #1568a8 !important;
    text-shadow: none !important;
}

html[data-theme="light"] .notify-title.sub {
    color: #3a4a5c !important;
}

html[data-theme="light"] .setting-btn.danger {
    background: rgba(231, 76, 60, 0.1) !important;
    color: #c0392b !important;
    border-color: rgba(231, 76, 60, 0.28) !important;
}

/* Cookie notice — light */
html[data-theme="light"] .ruscod-cookie-notice {
    background: rgba(244, 247, 251, 0.96);
    border-top-color: rgba(45, 140, 214, 0.35);
    box-shadow: 0 -8px 28px rgba(26, 48, 72, 0.12);
    color: #1a2332;
}

html[data-theme="light"] .ruscod-cookie-notice__text {
    color: #3a4a5c;
}

html[data-theme="light"] .ruscod-cookie-notice__link {
    color: #1a5f96;
}

html[data-theme="light"] .ruscod-cookie-notice__link:hover {
    color: #1568a8;
}

html[data-theme="light"] .ruscod-cookie-notice__btn {
    background: rgba(45, 140, 214, 0.12);
    border-color: rgba(45, 140, 214, 0.45);
    color: #1568a8;
}

html[data-theme="light"] .ruscod-cookie-notice__btn:hover {
    background: rgba(45, 140, 214, 0.2);
    border-color: rgba(45, 140, 214, 0.7);
    color: #0f4f82;
}
