/* =========================================================
   ShopShop - Dark Mode / High Contrast / Accessibility CSS
   קובץ החלפה מלא עבור dark.css
   ========================================================= */

/* ---------- משתני ברירת מחדל ---------- */
:root {
    --zap-blue: #004a99;
    --zap-orange: #ff922b;
    --zap-green: #2ecc71;
    --zap-light: #f0f2f5;
    --zap-dark: #2c3e50;

    --bg-main: #f0f2f5;
    --bg-card: #ffffff;
    --bg-card-soft: #f8fafc;
    --bg-elevated: #ffffff;
    --text-main: #2c3e50;
    --text-strong: #111827;
    --text-muted: #64748b;
    --text-faint: #94a3b8;
    --border-color: #e2e8f0;
    --border-strong: #cbd5e1;
    --input-bg: #ffffff;
    --input-text: #111827;
    --input-placeholder: #94a3b8;
    --link-color: #004a99;
    --link-hover: #ff922b;
    --shadow-soft: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-elevated: 0 10px 30px rgba(0,0,0,0.18);
    --focus-ring: 0 0 0 3px rgba(0, 74, 153, 0.25);
    --font-base-size: 16px;
}

/* ---------- מצב לילה ---------- */
body.dark-theme {
    color-scheme: dark;

    --zap-blue: #7dd3fc;
    --zap-orange: #fbbf24;
    --zap-green: #34d399;
    --zap-light: #0b1120;
    --zap-dark: #e5e7eb;

    --bg-main: #0b1120;
    --bg-card: #111827;
    --bg-card-soft: #172033;
    --bg-elevated: #1e293b;
    --text-main: #e5e7eb;
    --text-strong: #f8fafc;
    --text-muted: #cbd5e1;
    --text-faint: #94a3b8;
    --border-color: #334155;
    --border-strong: #475569;
    --input-bg: #0f172a;
    --input-text: #f8fafc;
    --input-placeholder: #94a3b8;
    --link-color: #93c5fd;
    --link-hover: #fbbf24;
    --shadow-soft: 0 2px 12px rgba(0,0,0,0.35);
    --shadow-elevated: 0 18px 45px rgba(0,0,0,0.55);
    --focus-ring: 0 0 0 3px rgba(147, 197, 253, 0.28);

    background-color: var(--bg-main) !important;
    color: var(--text-main) !important;
}

/* ---------- ניגודיות גבוהה ---------- */
body.high-contrast {
    color-scheme: dark;

    --zap-blue: #00ffff;
    --zap-orange: #ffff00;
    --zap-green: #00ff00;
    --zap-light: #000000;
    --zap-dark: #ffff00;

    --bg-main: #000000;
    --bg-card: #000000;
    --bg-card-soft: #000000;
    --bg-elevated: #000000;
    --text-main: #ffff00;
    --text-strong: #ffffff;
    --text-muted: #ffff00;
    --text-faint: #ffffff;
    --border-color: #ffffff;
    --border-strong: #ffffff;
    --input-bg: #000000;
    --input-text: #ffff00;
    --input-placeholder: #ffffff;
    --link-color: #00ffff;
    --link-hover: #ffffff;
    --shadow-soft: none;
    --shadow-elevated: none;
    --focus-ring: 0 0 0 4px #ffffff;

    background-color: #000000 !important;
    color: #ffff00 !important;
}

body.large-font { --font-base-size: 19px; }

/* =========================================================
   בסיס כללי
   ========================================================= */
html,
body {
    font-size: var(--font-base-size) !important;
}

body.dark-theme,
body.dark-theme main,
body.dark-theme .main-content,
body.dark-theme .content-area,
body.dark-theme .home-container,
body.dark-theme .recent-wrapper,
body.dark-theme .admin-container,
body.dark-theme .forum-container,
body.dark-theme .sh-container,
body.dark-theme .profile-container,
body.dark-theme .page-container,
body.dark-theme .main-layout {
    background-color: var(--bg-main) !important;
    color: var(--text-main) !important;
}

body.dark-theme * {
    border-color: var(--border-color);
}

body.dark-theme ::selection {
    background: var(--zap-orange) !important;
    color: #111827 !important;
}

body.dark-theme a:not(.btn):not(.auth-btn):not(.search-btn):not(.btn-go-compare):not(.btn-product-link):not(.card-link-overlay) {
    color: var(--link-color) !important;
}

body.dark-theme a:not(.btn):not(.auth-btn):not(.search-btn):not(.btn-go-compare):not(.btn-product-link):hover {
    color: var(--link-hover) !important;
}

body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme h6,
body.dark-theme label,
body.dark-theme legend,
body.dark-theme .product-title,
body.dark-theme .product-title h1,
body.dark-theme .product-name,
body.dark-theme .product-brand,
body.dark-theme .article-title,
body.dark-theme .topic-title,
body.dark-theme .card-title,
body.dark-theme .recent-title,
body.dark-theme .section-title,
body.dark-theme .dedupe-title,
body.dark-theme .input-label,
body.dark-theme .queue-label,
body.dark-theme .comment-author,
body.dark-theme .comment-user,
body.dark-theme .username-link,
body.dark-theme .post-username a {
    color: var(--text-strong) !important;
}

body.dark-theme p,
body.dark-theme li,
body.dark-theme td,
body.dark-theme th,
body.dark-theme .article-body,
body.dark-theme .comment-text,
body.dark-theme .post-content,
body.dark-theme .value,
body.dark-theme .info,
body.dark-theme .bbcode,
body.dark-theme .bb-preview,
body.dark-theme .about,
body.dark-theme .about-container,
body.dark-theme .showcase-desc,
body.dark-theme .pro-textarea {
    color: var(--text-main) !important;
}

body.dark-theme .text-muted,
body.dark-theme .muted,
body.dark-theme .post-top-meta,
body.dark-theme .topic-meta,
body.dark-theme .breadcrumb,
body.dark-theme .breadcrumb .separator,
body.dark-theme .article-excerpt,
body.dark-theme .article-meta-row,
body.dark-theme .comment-date,
body.dark-theme .rating-status,
body.dark-theme .rating-text,
body.dark-theme .cat-label,
body.dark-theme .file-count-label,
body.dark-theme .footer-sub-tagline,
body.dark-theme .footer-bottom-bar,
body.dark-theme .empty-state h3,
body.dark-theme .selected-color-text,
body.dark-theme .source-table small,
body.dark-theme .stat-label,
body.dark-theme .section-note {
    color: var(--text-muted) !important;
}

/* =========================================================
   אזורי רקע / כרטיסיות / קופסאות
   ========================================================= */
body.dark-theme header,
body.dark-theme nav,
body.dark-theme .main-header,
body.dark-theme .site-header,
body.dark-theme .top-bar,
body.dark-theme .top-bar-header,
body.dark-theme .secondary-nav-bar,
body.dark-theme .nav-container,
body.dark-theme .white-card,
body.dark-theme .card,
body.dark-theme .card-body,
body.dark-theme .product-card,
body.dark-theme .article-card,
body.dark-theme .comments-section,
body.dark-theme .add-comment-box,
body.dark-theme .post-card,
body.dark-theme .post-sidebar,
body.dark-theme .post-main,
body.dark-theme .topic-header,
body.dark-theme .reply-section,
body.dark-theme .filter-box,
body.dark-theme .filter-panel,
body.dark-theme .search-filter-card,
body.dark-theme .search-container,
body.dark-theme .login-box,
body.dark-theme .form-container,
body.dark-theme .store-item-wrapper,
body.dark-theme .comment-item,
body.dark-theme .report-box,
body.dark-theme .report-bubble,
body.dark-theme .empty-state,
body.dark-theme .recent-header,
body.dark-theme .container,
body.dark-theme .main-container,
body.dark-theme .wrapper,
body.dark-theme .home-wrapper,
body.dark-theme .main-box,
body.dark-theme .box,
body.dark-theme .panel,
body.dark-theme .section-box,
body.dark-theme .category-block,
body.dark-theme .hidden-cat-block,
body.dark-theme .admin-card,
body.dark-theme .stat-card,
body.dark-theme .stat-box,
body.dark-theme .queue-box,
body.dark-theme .queue-container,
body.dark-theme .log-section,
body.dark-theme .log-entry,
body.dark-theme .edit-box,
body.dark-theme .bb-editor,
body.dark-theme .bb-preview,
body.dark-theme .media-section,
body.dark-theme .dynamic-row,
body.dark-theme .new-row,
body.dark-theme .fav-item-row,
body.dark-theme .blocked-tags,
body.dark-theme .privacy-toggle-group,
body.dark-theme .dropdown-check-list,
body.dark-theme .items-container,
body.dark-theme .items-list,
body.dark-theme .emoji-bubble,
body.dark-theme .bubble-footer,
body.dark-theme .links-modal,
body.dark-theme .modal-box,
body.dark-theme .custom-modal,
body.dark-theme .modal-content,
body.dark-theme .accessibility-wrapper > div,
body.dark-theme #accessMenu {
    background-color: var(--bg-card) !important;
    background-image: none !important;
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
    box-shadow: var(--shadow-soft) !important;
}

body.dark-theme .blog-header,
body.dark-theme .category-header,
body.dark-theme .links-modal-header,
body.dark-theme .links-modal-footer,
body.dark-theme .admin-header,
body.dark-theme .header-actions,
body.dark-theme .table-wrapper,
body.dark-theme .specs-table,
body.dark-theme .source-table,
body.dark-theme .manage-table,
body.dark-theme .source-icon-box,
body.dark-theme .main-image-container,
body.dark-theme .product-carousel,
body.dark-theme .product-img-wrapper,
body.dark-theme .gallery-item,
body.dark-theme .sortable-gallery,
body.dark-theme .drop-zone-custom,
body.dark-theme .file-upload-wrapper,
body.dark-theme .file-upload-box,
body.dark-theme .search-dropdown,
body.dark-theme .search-item,
body.dark-theme .link-row-item,
body.dark-theme .link-item,
body.dark-theme .action-card,
body.dark-theme .trending-item,
body.dark-theme .showcase-tag,
body.dark-theme .super-series-section,
body.dark-theme .super-pill,
body.dark-theme .series-header,
body.dark-theme .sub-series-display,
body.dark-theme .items-list label,
body.dark-theme .dropdown-check-list .anchor,
body.dark-theme .quick-filter-lbl,
body.dark-theme .brand-pill,
body.dark-theme .tab-content,
body.dark-theme .control-group,
body.dark-theme .generator-input-group,
body.dark-theme .dedupe-count,
body.dark-theme .input-box,
body.dark-theme .raw-textarea,
body.dark-theme .queue-textarea,
body.dark-theme .sql-editor,
body.dark-theme .pro-import-container,
body.dark-theme .compare-bar {
    background-color: var(--bg-card-soft) !important;
    background-image: none !important;
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
}

body.dark-theme .product-card:hover,
body.dark-theme .article-card:hover,
body.dark-theme .search-item:hover,
body.dark-theme .btn-compare-card:hover,
body.dark-theme .btn-hide-cat:hover,
body.dark-theme .btn-vote:hover,
body.dark-theme .acc-btn:hover,
body.dark-theme .link-row-item:hover,
body.dark-theme .items-list label:hover,
body.dark-theme .emoji-list span:hover,
body.dark-theme .bubble-footer button:hover {
    background-color: var(--bg-elevated) !important;
    border-color: var(--border-strong) !important;
}

/* טיפול ברקעים לבנים/בהירים שנכתבו inline בתוך העמודים */
body.dark-theme [style*="background: white" i],
body.dark-theme [style*="background:white" i],
body.dark-theme [style*="background-color: white" i],
body.dark-theme [style*="background-color:white" i],
body.dark-theme [style*="background: #fff" i],
body.dark-theme [style*="background:#fff" i],
body.dark-theme [style*="background-color: #fff" i],
body.dark-theme [style*="background-color:#fff" i],
body.dark-theme [style*="background: #f8f9fa" i],
body.dark-theme [style*="background:#f8f9fa" i],
body.dark-theme [style*="background: #f9f9f9" i],
body.dark-theme [style*="background:#f9f9f9" i],
body.dark-theme [style*="background: #fafbfc" i],
body.dark-theme [style*="background:#fafbfc" i],
body.dark-theme [style*="background: #f8fafc" i],
body.dark-theme [style*="background:#f8fafc" i],
body.dark-theme [style*="background: #f4f7f6" i],
body.dark-theme [style*="background:#f4f7f6" i],
body.dark-theme [style*="background: #f0f2f5" i],
body.dark-theme [style*="background:#f0f2f5" i],
body.dark-theme [style*="background: #eef5ff" i],
body.dark-theme [style*="background:#eef5ff" i],
body.dark-theme [style*="background: #eaf4ff" i],
body.dark-theme [style*="background:#eaf4ff" i],
body.dark-theme [style*="background: #e8f0fe" i],
body.dark-theme [style*="background:#e8f0fe" i],
body.dark-theme [style*="background: #f1f5f9" i],
body.dark-theme [style*="background:#f1f5f9" i],
body.dark-theme [style*="background: #fff8e1" i],
body.dark-theme [style*="background:#fff8e1" i],
body.dark-theme [style*="background: #fffaf0" i],
body.dark-theme [style*="background:#fffaf0" i],
body.dark-theme [style*="background: #fffdf8" i],
body.dark-theme [style*="background:#fffdf8" i],
body.dark-theme [style*="background: #fff5f5" i],
body.dark-theme [style*="background:#fff5f5" i],
body.dark-theme [style*="background: #fff0f0" i],
body.dark-theme [style*="background:#fff0f0" i],
body.dark-theme [style*="background: #fee2e2" i],
body.dark-theme [style*="background:#fee2e2" i],
body.dark-theme [style*="linear-gradient" i] {
    background: var(--bg-card) !important;
    background-color: var(--bg-card) !important;
    background-image: none !important;
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
}

/* טיפול בטקסטים אפורים/כהים שנכתבו inline */
body.dark-theme [style*="color: #333" i],
body.dark-theme [style*="color:#333" i],
body.dark-theme [style*="color: #444" i],
body.dark-theme [style*="color:#444" i],
body.dark-theme [style*="color: #555" i],
body.dark-theme [style*="color:#555" i],
body.dark-theme [style*="color: #666" i],
body.dark-theme [style*="color:#666" i],
body.dark-theme [style*="color: #777" i],
body.dark-theme [style*="color:#777" i],
body.dark-theme [style*="color: #888" i],
body.dark-theme [style*="color:#888" i],
body.dark-theme [style*="color: #999" i],
body.dark-theme [style*="color:#999" i],
body.dark-theme [style*="color: #aaa" i],
body.dark-theme [style*="color:#aaa" i],
body.dark-theme [style*="color: #2c3e50" i],
body.dark-theme [style*="color:#2c3e50" i],
body.dark-theme [style*="color: #2d3748" i],
body.dark-theme [style*="color:#2d3748" i],
body.dark-theme [style*="color: #4a5568" i],
body.dark-theme [style*="color:#4a5568" i],
body.dark-theme [style*="color: #475569" i],
body.dark-theme [style*="color:#475569" i],
body.dark-theme [style*="color: #64748b" i],
body.dark-theme [style*="color:#64748b" i],
body.dark-theme [style*="color: #718096" i],
body.dark-theme [style*="color:#718096" i],
body.dark-theme [style*="color: #7f8c8d" i],
body.dark-theme [style*="color:#7f8c8d" i] {
    color: var(--text-main) !important;
}

/* =========================================================
   Header / Navigation / Accessibility
   ========================================================= */
body.dark-theme .search-form,
body.dark-theme .header-search .search-form {
    background: var(--input-bg) !important;
    border-color: var(--border-color) !important;
}

body.dark-theme .search-form input,
body.dark-theme .header-search input {
    background: transparent !important;
    color: var(--input-text) !important;
}

body.dark-theme .search-dropdown {
    box-shadow: var(--shadow-elevated) !important;
}

body.dark-theme .search-item img,
body.dark-theme .product-thumb,
body.dark-theme .article-img,
body.dark-theme .main-image,
body.dark-theme .product-img,
body.dark-theme .store-logo img,
body.dark-theme .brand-logo,
body.dark-theme img.logo,
body.dark-theme .logo img,
body.dark-theme .footer-logo-area img,
body.dark-theme .header-profile-pic,
body.dark-theme .comment-avatar,
body.dark-theme .post-avatar,
body.dark-theme .profile-avatar {
    background-color: transparent !important;
    box-shadow: none !important;
}

body.dark-theme .nav-menu a,
body.dark-theme .secondary-nav-bar a,
body.dark-theme .user-greeting a,
body.dark-theme .mobile-nav-link,
body.dark-theme .nav-link {
    color: var(--link-color) !important;
}

body.dark-theme .nav-menu a:hover,
body.dark-theme .secondary-nav-bar a:hover,
body.dark-theme .user-greeting a:hover,
body.dark-theme .mobile-nav-link:hover,
body.dark-theme .nav-link:hover {
    color: var(--link-hover) !important;
}

body.dark-theme .user-section {
    border-color: var(--border-color) !important;
}

body.dark-theme .acc-btn {
    background: var(--bg-card-soft) !important;
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
}

body.dark-theme .acc-btn i {
    color: var(--link-color) !important;
}

body.dark-theme .accessibility-wrapper button[title],
body.dark-theme .accessibility-wrapper > button {
    background: var(--link-color) !important;
    color: #0b1120 !important;
}

/* =========================================================
   טפסים, קלטים, select, textarea
   ========================================================= */
body.dark-theme input,
body.dark-theme textarea,
body.dark-theme select,
body.dark-theme option,
body.dark-theme .form-control,
body.dark-theme .form-input,
body.dark-theme .edit-input,
body.dark-theme .report-input,
body.dark-theme .input-flat,
body.dark-theme .generator-input,
body.dark-theme .spec-input,
body.dark-theme .bb-textarea,
body.dark-theme .pro-textarea,
body.dark-theme .add-comment-textarea,
body.dark-theme .raw-textarea,
body.dark-theme .queue-textarea,
body.dark-theme .sql-editor {
    background-color: var(--input-bg) !important;
    color: var(--input-text) !important;
    border-color: var(--border-color) !important;
    caret-color: var(--input-text) !important;
}

body.dark-theme input::placeholder,
body.dark-theme textarea::placeholder {
    color: var(--input-placeholder) !important;
    opacity: 1 !important;
}

body.dark-theme input:focus,
body.dark-theme textarea:focus,
body.dark-theme select:focus,
body.dark-theme button:focus,
body.dark-theme a:focus,
body.dark-theme .form-control:focus {
    outline: none !important;
    box-shadow: var(--focus-ring) !important;
    border-color: var(--link-color) !important;
}

body.dark-theme .file-upload-wrapper,
body.dark-theme .drop-zone-custom,
body.dark-theme .file-upload-box {
    border-style: dashed !important;
}

body.dark-theme .file-upload-wrapper:hover,
body.dark-theme .file-upload-wrapper.dragover,
body.dark-theme .drop-zone-custom:hover {
    background: var(--bg-elevated) !important;
    border-color: var(--link-color) !important;
}

/* =========================================================
   כפתורים ניטרליים + שמירת כפתורי פעולה צבעוניים
   ========================================================= */
body.dark-theme .btn-action,
body.dark-theme .btn-report,
body.dark-theme .btn-tool,
body.dark-theme .btn-outline,
body.dark-theme .btn-toggle,
body.dark-theme .btn-sm,
body.dark-theme .btn-hide-cat,
body.dark-theme .btn-compare,
body.dark-theme .btn-compare-card,
body.dark-theme .btn-vote,
body.dark-theme .btn-settings,
body.dark-theme .edit-links-btn,
body.dark-theme .layout-btn,
body.dark-theme .tab-btn,
body.dark-theme .mini-btn,
body.dark-theme .modal-btn,
body.dark-theme .bubble-footer button,
body.dark-theme .sub-variant-btn,
body.dark-theme .privacy-label,
body.dark-theme .toggle-label,
body.dark-theme .btn-move,
body.dark-theme .btn-clear-compare,
body.dark-theme .bbcode-btn,
body.dark-theme .bb-guide-btn {
    background-color: var(--bg-card-soft) !important;
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
}

body.dark-theme .tab-btn.active,
body.dark-theme .layout-btn.active,
body.dark-theme .sub-variant-btn.active,
body.dark-theme .btn-report.is-active,
body.dark-theme .btn-compare.active,
body.dark-theme .btn-compare-card.active,
body.dark-theme .privacy-radio:checked + .privacy-label,
body.dark-theme .toggle-radio:checked + .toggle-label {
    background-color: var(--link-color) !important;
    color: #0b1120 !important;
    border-color: var(--link-color) !important;
}

body.dark-theme .btn-primary,
body.dark-theme .btn-submit,
body.dark-theme .btn-submit-main,
body.dark-theme .btn-save,
body.dark-theme .btn-add,
body.dark-theme .btn-blue,
body.dark-theme .search-btn,
body.dark-theme .btn-go-compare,
body.dark-theme .btn-product-link,
body.dark-theme .auth-btn.login {
    color: #ffffff !important;
}

body.dark-theme .btn-delete,
body.dark-theme .btn-remove,
body.dark-theme .btn-remove-new,
body.dark-theme .btn-clear,
body.dark-theme .danger {
    color: #fecaca !important;
    border-color: #7f1d1d !important;
}

body.dark-theme .btn-delete:hover,
body.dark-theme .btn-remove:hover,
body.dark-theme .btn-clear:hover {
    background-color: #7f1d1d !important;
    color: #ffffff !important;
}

/* =========================================================
   טבלאות
   ========================================================= */
body.dark-theme table,
body.dark-theme .manage-table,
body.dark-theme .specs-table,
body.dark-theme .source-table {
    background: var(--bg-card) !important;
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
}

body.dark-theme th,
body.dark-theme .manage-table th,
body.dark-theme .specs-table th,
body.dark-theme .source-table th {
    background: var(--bg-card-soft) !important;
    color: var(--text-strong) !important;
    border-color: var(--border-color) !important;
}

body.dark-theme td,
body.dark-theme .manage-table td,
body.dark-theme .specs-table td,
body.dark-theme .source-table td {
    background: transparent !important;
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
}

body.dark-theme tr:nth-child(even),
body.dark-theme .specs-table tr:nth-child(even) {
    background: var(--bg-card-soft) !important;
}

body.dark-theme tr:hover,
body.dark-theme .manage-table tr:hover {
    background: var(--bg-elevated) !important;
}

/* =========================================================
   עמוד מוצר / קטלוג / חיפוש מתקדם
   ========================================================= */
body.dark-theme .product-carousel,
body.dark-theme .carousel-slides,
body.dark-theme .carousel-slides img {
    background: var(--bg-card-soft) !important;
}

body.dark-theme .carousel-btn {
    background: rgba(15, 23, 42, 0.88) !important;
    color: var(--link-color) !important;
    border-color: var(--border-strong) !important;
}

body.dark-theme .carousel-btn:hover {
    background: var(--link-color) !important;
    color: #0b1120 !important;
}

body.dark-theme .carousel-dots span {
    background: var(--border-strong) !important;
}

body.dark-theme .rating-stars label,
body.dark-theme .stars-container span {
    color: var(--border-strong) !important;
    background: transparent !important;
}

body.dark-theme .carousel-dots span.active,
body.dark-theme .carousel-dots span:hover {
    background: var(--link-color) !important;
}

body.dark-theme .rating-stars input:checked ~ label,
body.dark-theme .rating-stars input:checked + label,
body.dark-theme .rating-stars label:hover,
body.dark-theme .rating-stars label:hover ~ label,
body.dark-theme .stars-container span.active,
body.dark-theme .stars-container span:hover,
body.dark-theme .stars-container span:hover ~ span,
body.dark-theme .star-icon {
    color: #facc15 !important;
    background: transparent !important;
}


body.dark-theme .stars-outer {
    color: #334155 !important;
    background: transparent !important;
}

body.dark-theme .stars-inner {
    color: #facc15 !important;
    background: transparent !important;
}

body.dark-theme .brand-link,
body.dark-theme .product-link,
body.dark-theme .product-brand {
    color: var(--link-color) !important;
}

body.dark-theme .brand-link:hover,
body.dark-theme .product-link:hover,
body.dark-theme .product-brand:hover {
    color: var(--link-hover) !important;
}

body.dark-theme .eol-tag,
body.dark-theme .eol-badge,
body.dark-theme .status-badge,
body.dark-theme .badge,
body.dark-theme .nav-badge {
    color: #ffffff !important;
}

body.dark-theme .rep-badge,
body.dark-theme .rep-badge-sm,
body.dark-theme .tag,
body.dark-theme .product-tag,
body.dark-theme .cat-label,
body.dark-theme .source-icon-box,
body.dark-theme .num,
body.dark-theme .input-main,
body.dark-theme .input-exists,
body.dark-theme .input-skipped {
    background: var(--bg-card-soft) !important;
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
}

body.dark-theme .btn-vote.active-like {
    background: rgba(22, 101, 52, 0.35) !important;
    color: #bbf7d0 !important;
    border-color: #166534 !important;
}

body.dark-theme .btn-vote.active-dislike {
    background: rgba(127, 29, 29, 0.35) !important;
    color: #fecaca !important;
    border-color: #7f1d1d !important;
}

/* =========================================================
   פורומים / כתבות / תגובות / BBCode
   ========================================================= */
body.dark-theme .bbcode-toolbar,
body.dark-theme .bb-toolbar,
body.dark-theme .editor-toolbar {
    background-color: var(--bg-card-soft) !important;
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
}

body.dark-theme .bbcode img,
body.dark-theme .bb-img,
body.dark-theme .article-body img,
body.dark-theme .post-content img {
    background: transparent !important;
}

body.dark-theme blockquote,
body.dark-theme .quote,
body.dark-theme .spoiler {
    background: var(--bg-card-soft) !important;
    color: var(--text-main) !important;
    border-color: var(--border-strong) !important;
}

body.dark-theme code,
body.dark-theme pre,
body.dark-theme .console {
    background: #020617 !important;
    color: #e5e7eb !important;
    border-color: var(--border-color) !important;
}

body.dark-theme .product-cta-container,
body.dark-theme .share-section,
body.dark-theme .comment-item[style*="background" i] {
    background: var(--bg-card-soft) !important;
    border-color: var(--border-color) !important;
}

/* =========================================================
   מודאלים / שכבות / תפריטים
   ========================================================= */
body.dark-theme .modal-overlay,
body.dark-theme .links-modal-overlay,
body.dark-theme #convertModal,
body.dark-theme .custom-modal-overlay {
    background: rgba(0, 0, 0, 0.72) !important;
    backdrop-filter: blur(3px);
}

body.dark-theme .modal-box,
body.dark-theme .links-modal,
body.dark-theme .custom-modal,
body.dark-theme .modal-content,
body.dark-theme [role="dialog"] {
    background: var(--bg-card) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-elevated) !important;
}

body.dark-theme hr,
body.dark-theme .sep,
body.dark-theme .separator,
body.dark-theme .footer-divider {
    border-color: var(--border-color) !important;
    color: var(--border-strong) !important;
}

/* =========================================================
   Footer
   ========================================================= */
body.dark-theme .site-footer {
    background: #0f172a !important;
    color: var(--text-main) !important;
    border-top: 1px solid var(--border-color) !important;
}

body.dark-theme .footer-tagline,
body.dark-theme .f-link,
body.dark-theme .footer-bottom-bar strong {
    color: var(--text-main) !important;
}

body.dark-theme .f-link:hover {
    color: var(--link-hover) !important;
}

/* =========================================================
   הדגשת קישורים / פונט / סמן / ביטול אנימציות
   ========================================================= */
body.highlight-links a {
    text-decoration: underline !important;
    font-weight: bold !important;
    background-color: #ffeb3b !important;
    color: #000000 !important;
    outline: 2px solid #000000 !important;
    outline-offset: 1px !important;
}

body.dark-theme.highlight-links a {
    background-color: #facc15 !important;
    color: #020617 !important;
    outline-color: #f8fafc !important;
}

body.readable-font,
body.readable-font * {
    font-family: Arial, Helvetica, sans-serif !important;
}

body.large-cursor,
body.large-cursor * {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="black" stroke="white" stroke-width="2" viewBox="0 0 24 24"><path d="M4 2l16 11-7 1 4 7-3 1-4-7-6 5z"/></svg>'), auto !important;
}

body.stop-animations,
body.stop-animations *,
body.stop-animations *::before,
body.stop-animations *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
}

/* =========================================================
   ניגודיות גבוהה - כיסוי אגרסיבי ומכוון נגישות
   ========================================================= */
body.high-contrast,
body.high-contrast *:not(img):not(video):not(iframe):not(svg):not(path) {
    background-color: #000000 !important;
    background-image: none !important;
    color: #ffff00 !important;
    border-color: #ffffff !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

body.high-contrast a,
body.high-contrast a * {
    color: #00ffff !important;
    text-decoration: underline !important;
    font-weight: bold !important;
}

body.high-contrast button,
body.high-contrast .btn,
body.high-contrast input,
body.high-contrast textarea,
body.high-contrast select,
body.high-contrast option,
body.high-contrast .form-control,
body.high-contrast .acc-btn,
body.high-contrast .privacy-label,
body.high-contrast .toggle-label {
    background: #000000 !important;
    color: #ffff00 !important;
    border: 2px solid #ffffff !important;
    outline: none !important;
}

body.high-contrast button:hover,
body.high-contrast .btn:hover,
body.high-contrast .acc-btn:hover,
body.high-contrast a:hover {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #ffff00 !important;
}

body.high-contrast input:focus,
body.high-contrast textarea:focus,
body.high-contrast select:focus,
body.high-contrast button:focus,
body.high-contrast a:focus {
    outline: 4px solid #00ffff !important;
    outline-offset: 2px !important;
    box-shadow: none !important;
}

body.high-contrast img,
body.high-contrast video,
body.high-contrast iframe,
body.high-contrast svg {
    background: transparent !important;
    filter: none !important;
}

body.high-contrast table,
body.high-contrast th,
body.high-contrast td {
    border: 2px solid #ffffff !important;
}

body.high-contrast .eol-tag,
body.high-contrast .eol-badge,
body.high-contrast .badge,
body.high-contrast .nav-badge,
body.high-contrast .rep-badge,
body.high-contrast .rep-badge-sm {
    background: #000000 !important;
    color: #ffff00 !important;
    border: 2px solid #ffffff !important;
}

body.high-contrast .rating-stars label,
body.high-contrast .stars-container span,
body.high-contrast .star-icon {
    color: #ffff00 !important;
    background: transparent !important;
}

/* =========================================================
   התאמות קטנות למובייל
   ========================================================= */
@media (max-width: 768px) {
    body.dark-theme .mobile-nav,
    body.dark-theme .mobile-bottom-nav,
    body.dark-theme .mobile-header-back {
        background: var(--bg-card) !important;
        color: var(--text-main) !important;
        border-color: var(--border-color) !important;
    }
}

/* =========================================================
   V3 - תיקוני כיסוי מלאים לעמודים עם CSS פנימי
   כולל: יד שנייה, הגרלת מוצר, מודאלים, קטלוג, כרטיסיות ומסננים
   ========================================================= */

body.dark-theme {
    --bg-gradient: linear-gradient(135deg, #0b1120 0%, #111827 100%) !important;
    --bg-gray: #0b1120 !important;
    background: var(--bg-main) !important;
    background-color: var(--bg-main) !important;
    background-image: none !important;
}

body.high-contrast {
    --bg-gradient: none !important;
    --bg-gray: #000000 !important;
}

/* רקע עמודים/מעטפות שלא היו מכוסות */
body.dark-theme .market-container,
body.dark-theme .randomizer-wrapper,
body.dark-theme .catalog-container,
body.dark-theme .products-container,
body.dark-theme .items-grid,
body.dark-theme .profile-layout,
body.dark-theme .article-container,
body.dark-theme .articles-container,
body.dark-theme .forum-layout,
body.dark-theme .dashboard-container,
body.dark-theme .analytics-container,
body.dark-theme .content-wrapper,
body.dark-theme .page-wrapper,
body.dark-theme .site-main,
body.dark-theme .main-page,
body.dark-theme .body-wrapper {
    background: transparent !important;
    color: var(--text-main) !important;
}

/* קופסאות מרכזיות - כיסוי רחב יותר */
body.dark-theme .market-header,
body.dark-theme .item-card,
body.dark-theme .item-content,
body.dark-theme .sh-modal,
body.dark-theme .modal-header,
body.dark-theme .modal-body,
body.dark-theme .modal-info,
body.dark-theme .modal-spec-grid,
body.dark-theme .modal-desc,
body.dark-theme .visual-filters,
body.dark-theme .showcase-card,
body.dark-theme .showcase-details,
body.dark-theme .no-results,
body.dark-theme .sidebar,
body.dark-theme .cat-list,
body.dark-theme .layout-toggles,
body.dark-theme .spec-filter-row,
body.dark-theme .spec-filter-options,
body.dark-theme .card-info,
body.dark-theme .card-actions,
body.dark-theme .admin-actions,
body.dark-theme .stores-section,
body.dark-theme .stores-bar,
body.dark-theme .variant-picker-wrapper,
body.dark-theme .color-picker-wrapper,
body.dark-theme .contact-box,
body.dark-theme .report-bubble,
body.dark-theme .link-row-item,
body.dark-theme .emoji-bubble,
body.dark-theme .bubble-footer,
body.dark-theme .sub-series-display,
body.dark-theme .hidden-cat-block,
body.dark-theme .profile-top-card,
body.dark-theme .profile-card,
body.dark-theme .profile-section,
body.dark-theme .user-card,
body.dark-theme .admin-box,
body.dark-theme .data-card,
body.dark-theme .form-card,
body.dark-theme .table-card,
body.dark-theme .note-card,
body.dark-theme .info-card,
body.dark-theme .notice-box,
body.dark-theme .alert-box,
body.dark-theme .panel-box,
body.dark-theme .filter-card,
body.dark-theme .category-card,
body.dark-theme .topic-card,
body.dark-theme .reply-card,
body.dark-theme .review-card,
body.dark-theme .review-form,
body.dark-theme .comment-form,
body.dark-theme .publish-box,
body.dark-theme .upload-box,
body.dark-theme .preview-box {
    background: var(--bg-card) !important;
    background-color: var(--bg-card) !important;
    background-image: none !important;
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
    box-shadow: var(--shadow-soft) !important;
}

/* אזורים פנימיים בהירים */
body.dark-theme .item-img-wrapper,
body.dark-theme .modal-main-img,
body.dark-theme .modal-thumbs,
body.dark-theme .showcase-image-wrap,
body.dark-theme .card-img-container,
body.dark-theme .product-img-wrapper,
body.dark-theme .main-image-container,
body.dark-theme .img-preview,
body.dark-theme .image-preview,
body.dark-theme .gallery-preview,
body.dark-theme .drop-zone,
body.dark-theme .dropzone,
body.dark-theme .file-preview,
body.dark-theme .rating-box,
body.dark-theme .count-badge,
body.dark-theme .source-table td,
body.dark-theme .source-table th,
body.dark-theme .specs-table td,
body.dark-theme .specs-table th,
body.dark-theme .manage-table td,
body.dark-theme .manage-table th {
    background: var(--bg-card-soft) !important;
    background-color: var(--bg-card-soft) !important;
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
}

/* טקסטים ספציפיים שהוגדרו בצבעים כהים בתוך העמודים */
body.dark-theme .market-header h1,
body.dark-theme .item-title,
body.dark-theme .item-meta,
body.dark-theme .item-footer,
body.dark-theme .seller-info,
body.dark-theme .modal-info,
body.dark-theme .modal-info span,
body.dark-theme .modal-info strong,
body.dark-theme .modal-desc,
body.dark-theme .btn-close-modal,
body.dark-theme .randomizer-header h1,
body.dark-theme .randomizer-header p,
body.dark-theme .filter-section-title,
body.dark-theme .cat-btn,
body.dark-theme .brand-pill span,
body.dark-theme .toggle-switch,
body.dark-theme .showcase-details h2,
body.dark-theme .showcase-desc,
body.dark-theme .showcase-rating span,
body.dark-theme .category-header h2,
body.dark-theme .cat-link,
body.dark-theme .layout-btn,
body.dark-theme .quick-filter-lbl,
body.dark-theme .super-series-title,
body.dark-theme .spec-filter-label,
body.dark-theme .spec-pill,
body.dark-theme .compare-label,
body.dark-theme .btn-admin-sm,
body.dark-theme .btn-compare-card,
body.dark-theme .rating-value,
body.dark-theme .store-logo strong,
body.dark-theme .color-label,
body.dark-theme .selected-color-text,
body.dark-theme .variant-label,
body.dark-theme .variant-title,
body.dark-theme .empty-title,
body.dark-theme .empty-text {
    color: var(--text-main) !important;
}

body.dark-theme .market-header h1,
body.dark-theme .randomizer-header h1,
body.dark-theme .category-header h2,
body.dark-theme .filter-section-title,
body.dark-theme .showcase-details h2,
body.dark-theme .modal-header h2,
body.dark-theme .modal-header h3,
body.dark-theme .section-heading,
body.dark-theme .page-title {
    color: var(--text-strong) !important;
}

body.dark-theme .item-meta,
body.dark-theme .item-footer,
body.dark-theme .randomizer-header p,
body.dark-theme .showcase-desc,
body.dark-theme .showcase-rating span,
body.dark-theme .rating-value,
body.dark-theme .count-badge,
body.dark-theme small,
body.dark-theme .small,
body.dark-theme .help-text,
body.dark-theme .field-note,
body.dark-theme .meta-line {
    color: var(--text-muted) !important;
}

/* כפתורי בחירה / פילטרים */
body.dark-theme .cat-btn,
body.dark-theme .brand-pill,
body.dark-theme .quick-filter-lbl,
body.dark-theme .super-pill,
body.dark-theme .spec-pill,
body.dark-theme .layout-btn,
body.dark-theme .compare-label,
body.dark-theme .btn-compare-card,
body.dark-theme .btn-admin-sm,
body.dark-theme .btn-report-tool,
body.dark-theme .btn-vote,
body.dark-theme .btn-hide-cat,
body.dark-theme .sub-series-link,
body.dark-theme .privacy-label,
body.dark-theme .toggle-label {
    background: var(--bg-card-soft) !important;
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
}

body.dark-theme .cat-btn:hover,
body.dark-theme .brand-pill:hover,
body.dark-theme .quick-filter-lbl:hover,
body.dark-theme .super-pill:hover,
body.dark-theme .spec-pill:hover,
body.dark-theme .layout-btn:hover,
body.dark-theme .compare-label:hover,
body.dark-theme .btn-compare-card:hover,
body.dark-theme .btn-admin-sm:hover,
body.dark-theme .btn-report-tool:hover,
body.dark-theme .btn-vote:hover,
body.dark-theme .btn-hide-cat:hover,
body.dark-theme .sub-series-link:hover {
    background: var(--bg-elevated) !important;
    color: var(--link-hover) !important;
    border-color: var(--border-strong) !important;
}

body.dark-theme .cat-btn.active,
body.dark-theme .brand-pill.active,
body.dark-theme .quick-filter-lbl.active,
body.dark-theme .super-pill.active,
body.dark-theme .spec-pill.active,
body.dark-theme .layout-btn.active,
body.dark-theme .compare-label.is-active,
body.dark-theme .sub-series-link.active {
    background: rgba(125, 211, 252, 0.16) !important;
    color: var(--link-color) !important;
    border-color: var(--link-color) !important;
    box-shadow: inset 0 0 0 1px var(--link-color) !important;
}

body.dark-theme .cat-link:hover,
body.dark-theme .cat-link.active {
    background: rgba(125, 211, 252, 0.12) !important;
    color: var(--link-color) !important;
    border-right-color: var(--link-color) !important;
}

/* תגיות צבעוניות - לשמור משמעות אבל להתאים לחושך */
body.dark-theme .showcase-tag,
body.dark-theme .series-tag,
body.dark-theme .product-tag,
body.dark-theme .tag,
body.dark-theme .badge:not(.nav-badge),
body.dark-theme .rep-badge,
body.dark-theme .rep-badge-sm {
    background: rgba(125, 211, 252, 0.12) !important;
    color: var(--link-color) !important;
    border: 1px solid rgba(147, 197, 253, 0.35) !important;
}

body.dark-theme .showcase-tag.brand,
body.dark-theme .brand-tag {
    background: rgba(251, 191, 36, 0.14) !important;
    color: #fbbf24 !important;
    border-color: rgba(251, 191, 36, 0.35) !important;
}

body.dark-theme .showcase-tag.eol,
body.dark-theme .eol-tag,
body.dark-theme .eol-badge,
body.dark-theme .status-danger,
body.dark-theme .danger-badge {
    background: rgba(220, 38, 38, 0.25) !important;
    color: #fecaca !important;
    border-color: rgba(248, 113, 113, 0.55) !important;
}

/* מחירים, דירוגים וכוכבים */
body.dark-theme .item-price-badge,
body.dark-theme .modal-price,
body.dark-theme .price,
body.dark-theme .product-price,
body.dark-theme .showcase-rating,
body.dark-theme .star-icon,
body.dark-theme .stars-inner,
body.dark-theme .rating-box span[style*="#f1c40f" i] {
    color: #facc15 !important;
    background: transparent !important;
}

body.dark-theme .item-price-badge {
    background: #f59e0b !important;
    color: #111827 !important;
}

body.dark-theme .stars-outer,
body.dark-theme .rating-stars label,
body.dark-theme .stars-container span {
    color: #475569 !important;
    background: transparent !important;
}

body.dark-theme .rating-stars input:checked ~ label,
body.dark-theme .rating-stars input:checked + label,
body.dark-theme .rating-stars label:hover,
body.dark-theme .rating-stars label:hover ~ label,
body.dark-theme .stars-container span.active,
body.dark-theme .stars-container span:hover,
body.dark-theme .stars-container span:hover ~ span {
    color: #facc15 !important;
    background: transparent !important;
}

/* מודאל יד שנייה ותמונה במסך מלא */
body.dark-theme .sh-modal-overlay,
body.dark-theme #fullscreen-img-modal,
body.dark-theme .fullscreen-overlay,
body.dark-theme .lightbox-overlay {
    background: rgba(0, 0, 0, 0.82) !important;
    backdrop-filter: blur(4px) !important;
}

body.dark-theme .modal-thumbs img,
body.dark-theme .gallery-thumb,
body.dark-theme .thumb-img {
    background: var(--bg-card-soft) !important;
    border-color: var(--border-color) !important;
}

body.dark-theme .modal-thumbs img.active,
body.dark-theme .gallery-thumb.active,
body.dark-theme .thumb-img.active {
    border-color: var(--link-color) !important;
    box-shadow: 0 0 0 2px rgba(147, 197, 253, 0.25) !important;
}

body.dark-theme .report-bubble::after {
    border-bottom-color: var(--bg-card) !important;
}

/* טפסים, textarea, select, checkbox wrappers */
body.dark-theme input,
body.dark-theme textarea,
body.dark-theme select,
body.dark-theme option,
body.dark-theme .form-control,
body.dark-theme .report-textarea,
body.dark-theme .search-row input,
body.dark-theme .l-icon,
body.dark-theme .l-text,
body.dark-theme .l-url,
body.dark-theme .l-vis {
    background: var(--input-bg) !important;
    color: var(--input-text) !important;
    border-color: var(--border-color) !important;
    box-shadow: none !important;
}

body.dark-theme input::placeholder,
body.dark-theme textarea::placeholder {
    color: var(--input-placeholder) !important;
    opacity: 1 !important;
}

body.dark-theme input[type="checkbox"],
body.dark-theme input[type="radio"] {
    accent-color: var(--link-color) !important;
}

/* קישורים ולוגואים */
body.dark-theme .view-all-link,
body.dark-theme .brand-link-card,
body.dark-theme .brand-link,
body.dark-theme .sub-series-link,
body.dark-theme .product-title a,
body.dark-theme .item-title a,
body.dark-theme .store-logo,
body.dark-theme .cat-link {
    color: var(--link-color) !important;
}

body.dark-theme .brand-pill img,
body.dark-theme .brand-logo,
body.dark-theme .store-logo img,
body.dark-theme .product-img,
body.dark-theme .item-img-wrapper img,
body.dark-theme .modal-main-img,
body.dark-theme .showcase-image-wrap img,
body.dark-theme .carousel-slides img {
    filter: none !important;
}

/* כפתורים צבעוניים חשובים - לא להפוך לאפורים */
body.dark-theme .btn-publish,
body.dark-theme .btn-contact,
body.dark-theme .spin-button,
body.dark-theme .btn-primary,
body.dark-theme .search-row button,
body.dark-theme .search-btn,
body.dark-theme .add-product-nav,
body.dark-theme .btn-save,
body.dark-theme .btn-go-compare,
body.dark-theme .auth-btn,
body.dark-theme .btn-success,
body.dark-theme .btn-danger,
body.dark-theme .btn-warning,
body.dark-theme .btn-info,
body.dark-theme .btn-report-tool[style*="background:#ff7100" i],
body.dark-theme .btn-report-tool[style*="background: #ff7100" i],
body.dark-theme [style*="background:#25D366" i],
body.dark-theme [style*="background: #25D366" i],
body.dark-theme [style*="background:#27ae60" i],
body.dark-theme [style*="background: #27ae60" i] {
    color: #ffffff !important;
    border-color: transparent !important;
}

body.dark-theme .btn-contact,
body.dark-theme [style*="background:#25D366" i],
body.dark-theme [style*="background: #25D366" i] {
    background: #16a34a !important;
}

body.dark-theme .btn-publish,
body.dark-theme .btn-success,
body.dark-theme [style*="background:#27ae60" i],
body.dark-theme [style*="background: #27ae60" i] {
    background: #15803d !important;
}

body.dark-theme .spin-button,
body.dark-theme .btn-warning,
body.dark-theme [style*="background:#ff922b" i],
body.dark-theme [style*="background: #ff922b" i],
body.dark-theme [style*="background:#ff7100" i],
body.dark-theme [style*="background: #ff7100" i] {
    background: #f59e0b !important;
    color: #111827 !important;
}

body.dark-theme .btn-primary,
body.dark-theme .search-row button,
body.dark-theme .search-btn,
body.dark-theme .btn-save,
body.dark-theme .btn-go-compare,
body.dark-theme .btn-info {
    background: #2563eb !important;
    color: #ffffff !important;
}

/* תיקון רקעים inline נוספים בלי לשבור תמונות */
body.dark-theme div[style*="background:white" i],
body.dark-theme section[style*="background:white" i],
body.dark-theme article[style*="background:white" i],
body.dark-theme aside[style*="background:white" i],
body.dark-theme form[style*="background:white" i],
body.dark-theme div[style*="background: white" i],
body.dark-theme section[style*="background: white" i],
body.dark-theme article[style*="background: white" i],
body.dark-theme aside[style*="background: white" i],
body.dark-theme form[style*="background: white" i],
body.dark-theme div[style*="background:#fff" i],
body.dark-theme section[style*="background:#fff" i],
body.dark-theme article[style*="background:#fff" i],
body.dark-theme aside[style*="background:#fff" i],
body.dark-theme form[style*="background:#fff" i],
body.dark-theme div[style*="background: #fff" i],
body.dark-theme section[style*="background: #fff" i],
body.dark-theme article[style*="background: #fff" i],
body.dark-theme aside[style*="background: #fff" i],
body.dark-theme form[style*="background: #fff" i],
body.dark-theme div[style*="background:#f" i],
body.dark-theme section[style*="background:#f" i],
body.dark-theme article[style*="background:#f" i],
body.dark-theme aside[style*="background:#f" i],
body.dark-theme form[style*="background:#f" i],
body.dark-theme div[style*="background: #f" i],
body.dark-theme section[style*="background: #f" i],
body.dark-theme article[style*="background: #f" i],
body.dark-theme aside[style*="background: #f" i],
body.dark-theme form[style*="background: #f" i] {
    background: var(--bg-card) !important;
    background-color: var(--bg-card) !important;
    background-image: none !important;
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
}

/* מסגרות/קווי הפרדה */
body.dark-theme .category-header,
body.dark-theme .filter-bottom-row,
body.dark-theme .admin-actions,
body.dark-theme .modal-header,
body.dark-theme .item-footer,
body.dark-theme .brand-pills,
body.dark-theme .super-series-section,
body.dark-theme .list-view .card-actions,
body.dark-theme .store-item-wrapper > div,
body.dark-theme .color-picker-wrapper,
body.dark-theme .variant-picker-wrapper,
body.dark-theme .links-modal-footer {
    border-color: var(--border-color) !important;
}

/* ניגודיות גבוהה - תיקונים ממוקדים לאותם רכיבים */
body.high-contrast .market-header,
body.high-contrast .item-card,
body.high-contrast .sh-modal,
body.high-contrast .visual-filters,
body.high-contrast .showcase-card,
body.high-contrast .sidebar,
body.high-contrast .cat-btn,
body.high-contrast .brand-pill,
body.high-contrast .quick-filter-lbl,
body.high-contrast .spec-pill,
body.high-contrast .layout-btn,
body.high-contrast .compare-label,
body.high-contrast .modal-spec-grid,
body.high-contrast .contact-box,
body.high-contrast .report-bubble,
body.high-contrast .profile-top-card,
body.high-contrast .profile-card,
body.high-contrast .store-item-wrapper {
    background: #000000 !important;
    background-color: #000000 !important;
    background-image: none !important;
    color: #ffff00 !important;
    border: 2px solid #ffffff !important;
    box-shadow: none !important;
}

body.high-contrast .item-price-badge,
body.high-contrast .modal-price,
body.high-contrast .price,
body.high-contrast .showcase-rating,
body.high-contrast .stars-inner,
body.high-contrast .rating-stars label,
body.high-contrast .stars-container span {
    color: #ffff00 !important;
    background: #000000 !important;
}

body.high-contrast .cat-btn.active,
body.high-contrast .brand-pill.active,
body.high-contrast .quick-filter-lbl.active,
body.high-contrast .spec-pill.active,
body.high-contrast .layout-btn.active,
body.high-contrast .compare-label.is-active {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #ffff00 !important;
}


/* =========================================================
   V4 - תיקונים ממוקדים לעמודים: פורום, קטגוריית פורום, אינדקס אתרים, אודות
   נועד לנצח CSS פנימי שמוגדר אחרי טעינת dark.css
   ========================================================= */

/* ---------- Forum index: forum.php ---------- */
body.dark-theme .forum-container .forum-header,
body.dark-theme .forum-container .category-card,
body.dark-theme .forum-container .cat-stats,
body.dark-theme .forum-container .stat-box,
body.dark-theme .forum-container .cat-latest {
    background: var(--bg-card) !important;
    background-color: var(--bg-card) !important;
    background-image: none !important;
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
    box-shadow: var(--shadow-soft) !important;
}

body.dark-theme .forum-container .forum-header {
    border-bottom-color: var(--link-color) !important;
}

body.dark-theme .forum-container .forum-header h1,
body.dark-theme .forum-container .cat-title,
body.dark-theme .forum-container .cat-title a,
body.dark-theme .forum-container .stat-num {
    color: var(--link-color) !important;
}

body.dark-theme .forum-container .forum-header p,
body.dark-theme .forum-container .cat-desc,
body.dark-theme .forum-container .stat-label,
body.dark-theme .forum-container .cat-latest,
body.dark-theme .forum-container .cat-latest div,
body.dark-theme .forum-container .cat-latest span {
    color: var(--text-muted) !important;
}

body.dark-theme .forum-container .cat-icon {
    background: var(--bg-elevated) !important;
    background-color: var(--bg-elevated) !important;
    color: var(--link-color) !important;
    border: 1px solid var(--border-color) !important;
}

body.dark-theme .forum-container .category-card:hover {
    background: var(--bg-elevated) !important;
    border-color: var(--border-strong) !important;
    box-shadow: var(--shadow-elevated) !important;
}

/* ---------- Forum category: forum_category.php ---------- */
body.dark-theme .forum-container .cat-header,
body.dark-theme .forum-container .topics-list,
body.dark-theme .forum-container .topic-row,
body.dark-theme .forum-container .topic-row.pinned,
body.dark-theme .forum-container .t-main,
body.dark-theme .forum-container .t-stats,
body.dark-theme .forum-container .t-last {
    background: var(--bg-card) !important;
    background-color: var(--bg-card) !important;
    background-image: none !important;
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
}

body.dark-theme .forum-container .topic-row:nth-child(even) {
    background: var(--bg-card-soft) !important;
}

body.dark-theme .forum-container .topic-row:hover {
    background: var(--bg-elevated) !important;
}

body.dark-theme .forum-container .topic-row.pinned {
    background: rgba(251, 191, 36, 0.10) !important;
    border-color: rgba(251, 191, 36, 0.32) !important;
}

body.dark-theme .forum-container .cat-title-area h1,
body.dark-theme .forum-container .t-title,
body.dark-theme .forum-container .t-title a,
body.dark-theme .forum-container .t-stats div[style],
body.dark-theme .forum-container .t-last div[style] {
    color: var(--text-strong) !important;
}

body.dark-theme .forum-container .cat-title-area p,
body.dark-theme .forum-container .t-meta,
body.dark-theme .forum-container .t-meta a,
body.dark-theme .forum-container .t-stats,
body.dark-theme .forum-container .t-last,
body.dark-theme .forum-container a[style*="color: #718096" i],
body.dark-theme .forum-container [style*="color: #a0aec0" i],
body.dark-theme .forum-container [style*="color:#718096" i],
body.dark-theme .forum-container [style*="color:#4a5568" i] {
    color: var(--text-muted) !important;
}

body.dark-theme .forum-container .t-icon {
    color: var(--text-faint) !important;
}

body.dark-theme .forum-container .pinned .t-icon,
body.dark-theme .forum-container .fa-thumbtack {
    color: var(--zap-orange) !important;
}

body.dark-theme .forum-container .btn-new-topic {
    background: var(--zap-orange) !important;
    color: #111827 !important;
    border: 1px solid rgba(251, 191, 36, 0.45) !important;
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.18) !important;
}

/* ---------- Sites index: sites.php ---------- */
body.dark-theme .sites-container,
body.dark-theme .sites-container .block-wrapper,
body.dark-theme .sites-container .modern-links-table,
body.dark-theme .sites-container .flex-table,
body.dark-theme .sites-container .flex-row,
body.dark-theme .sites-container .mlt-row,
body.dark-theme .sites-container .bottom-action-bar,
body.dark-theme .sites-container .privacy-toggle-group {
    background: var(--bg-card) !important;
    background-color: var(--bg-card) !important;
    background-image: none !important;
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
    box-shadow: var(--shadow-soft) !important;
}

body.dark-theme .sites-container .block-wrapper,
body.dark-theme .sites-container .modern-links-table,
body.dark-theme .sites-container .flex-table {
    background: var(--bg-card-soft) !important;
    background-color: var(--bg-card-soft) !important;
}

body.dark-theme .sites-container .sites-header,
body.dark-theme .sites-container .block-header,
body.dark-theme .sites-container .mlt-header,
body.dark-theme .sites-container .flex-header,
body.dark-theme .sites-container .bottom-action-bar {
    background: var(--bg-elevated) !important;
    background-color: var(--bg-elevated) !important;
    background-image: none !important;
    color: var(--text-strong) !important;
    border-color: var(--border-strong) !important;
}

body.dark-theme .sites-container .mlt-row:hover,
body.dark-theme .sites-container .flex-row:hover,
body.dark-theme .sites-container .flex-row.new-row {
    background: var(--bg-elevated) !important;
    background-color: var(--bg-elevated) !important;
}

body.dark-theme .sites-container .sites-header h1,
body.dark-theme .sites-container .block-header h2,
body.dark-theme .sites-container .mlt-header,
body.dark-theme .sites-container .flex-header,
body.dark-theme .sites-container span[style*="color:var(--zap-blue)" i],
body.dark-theme .sites-container span[style*="color: var(--zap-blue)" i] {
    color: var(--link-color) !important;
}

body.dark-theme .sites-container .mlt-col-name,
body.dark-theme .sites-container .mlt-col-num,
body.dark-theme .sites-container .flex-col-num,
body.dark-theme .sites-container .flex-col,
body.dark-theme .sites-container [style*="color: #666" i],
body.dark-theme .sites-container [style*="color:#666" i],
body.dark-theme .sites-container [style*="color: #888" i],
body.dark-theme .sites-container [style*="color:#888" i] {
    color: var(--text-main) !important;
}

body.dark-theme .sites-container .site-link,
body.dark-theme .sites-container .btn-blue,
body.dark-theme .sites-container button[style*="background:#eef5ff" i],
body.dark-theme .sites-container button[style*="background: #eef5ff" i] {
    background: rgba(147, 197, 253, 0.12) !important;
    background-color: rgba(147, 197, 253, 0.12) !important;
    color: var(--link-color) !important;
    border-color: rgba(147, 197, 253, 0.35) !important;
}

body.dark-theme .sites-container .site-link:hover,
body.dark-theme .sites-container .btn-blue:hover,
body.dark-theme .sites-container button[style*="background:#eef5ff" i]:hover,
body.dark-theme .sites-container button[style*="background: #eef5ff" i]:hover {
    background: var(--link-color) !important;
    background-color: var(--link-color) !important;
    color: #0b1120 !important;
}

body.dark-theme .sites-container .btn-red:not(:hover) {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
}

body.dark-theme .sites-container .btn-green,
body.dark-theme .sites-container [style*="background:#27ae60" i],
body.dark-theme .sites-container [style*="background: #27ae60" i] {
    background: #16a34a !important;
    color: #ffffff !important;
}

body.dark-theme .sites-container .btn-purple {
    background: #7e22ce !important;
    color: #ffffff !important;
}

body.dark-theme .sites-container .btn-gray {
    background: #475569 !important;
    color: #ffffff !important;
}

body.dark-theme .sites-container .privacy-radio:checked + .privacy-label {
    background: var(--bg-main) !important;
    color: var(--link-color) !important;
    box-shadow: inset 0 0 0 1px var(--border-strong) !important;
}

body.dark-theme .sites-container .privacy-label {
    color: var(--text-muted) !important;
}

body.dark-theme .sites-container .form-input,
body.dark-theme .sites-container .form-input-title {
    background: var(--input-bg) !important;
    color: var(--input-text) !important;
    border-color: var(--border-color) !important;
}

body.dark-theme .sites-container .form-input-title {
    background: transparent !important;
    border-bottom-color: var(--border-strong) !important;
}

body.dark-theme .sites-container .form-input::placeholder,
body.dark-theme .sites-container .form-input-title::placeholder {
    color: var(--input-placeholder) !important;
}

/* ---------- About page: about.php ---------- */
body.dark-theme .about-container,
body.dark-theme .about-container .about-header,
body.dark-theme .about-container .bb-editor,
body.dark-theme .about-container .bb-preview,
body.dark-theme .about-container .bbcode,
body.dark-theme .about-container .bb-toolbar,
body.dark-theme .about-container .bb-textarea {
    background: var(--bg-card) !important;
    background-color: var(--bg-card) !important;
    background-image: none !important;
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
    box-shadow: var(--shadow-soft) !important;
}

body.dark-theme .about-container .about-header,
body.dark-theme .about-container .bb-toolbar {
    background: var(--bg-elevated) !important;
    background-color: var(--bg-elevated) !important;
    border-color: var(--border-strong) !important;
}

body.dark-theme .about-container .about-header h1,
body.dark-theme .about-container h1,
body.dark-theme .about-container h2,
body.dark-theme .about-container h3,
body.dark-theme .about-container strong,
body.dark-theme .about-container b,
body.dark-theme .about-container [style*="background:yellow" i],
body.dark-theme .about-container [style*="background: yellow" i],
body.dark-theme .about-container [style*="background-color:yellow" i],
body.dark-theme .about-container [style*="background-color: yellow" i] {
    color: var(--text-strong) !important;
}

body.dark-theme .about-container .bbcode,
body.dark-theme .about-container .bbcode p,
body.dark-theme .about-container .bbcode li,
body.dark-theme .about-container .bbcode div,
body.dark-theme .about-container .bbcode span,
body.dark-theme .about-container .bbcode td,
body.dark-theme .about-container .bbcode th,
body.dark-theme .about-container div[style*="color: #444" i],
body.dark-theme .about-container div[style*="color:#444" i] {
    color: var(--text-main) !important;
}

body.dark-theme .about-container hr,
body.dark-theme .about-container .about-header {
    border-color: var(--border-strong) !important;
}

body.dark-theme .about-container .bb-guide-btn {
    background: rgba(147, 197, 253, 0.12) !important;
    color: var(--link-color) !important;
    border-color: rgba(147, 197, 253, 0.35) !important;
}

body.dark-theme .about-container .bb-guide-btn:hover {
    background: var(--link-color) !important;
    color: #0b1120 !important;
}

body.dark-theme .about-container .btn-edit,
body.dark-theme .about-container .btn-save {
    color: #ffffff !important;
}

body.dark-theme .about-container textarea,
body.dark-theme .about-container input,
body.dark-theme .about-container select {
    background: var(--input-bg) !important;
    color: var(--input-text) !important;
    border-color: var(--border-color) !important;
}

/* סימון BBCode צהוב צריך להישאר קריא גם בדארק */
body.dark-theme .about-container mark,
body.dark-theme .about-container [style*="background:yellow" i],
body.dark-theme .about-container [style*="background: yellow" i],
body.dark-theme .bbcode mark,
body.dark-theme .bbcode [style*="background:yellow" i],
body.dark-theme .bbcode [style*="background: yellow" i] {
    background: #facc15 !important;
    background-color: #facc15 !important;
    color: #111827 !important;
}

/* ---------- High Contrast עבור אותם עמודים ---------- */
body.high-contrast .forum-container .forum-header,
body.high-contrast .forum-container .category-card,
body.high-contrast .forum-container .cat-icon,
body.high-contrast .forum-container .topics-list,
body.high-contrast .forum-container .topic-row,
body.high-contrast .sites-container,
body.high-contrast .sites-container .block-wrapper,
body.high-contrast .sites-container .modern-links-table,
body.high-contrast .sites-container .flex-table,
body.high-contrast .sites-container .flex-row,
body.high-contrast .sites-container .mlt-row,
body.high-contrast .sites-container .mlt-header,
body.high-contrast .sites-container .flex-header,
body.high-contrast .about-container,
body.high-contrast .about-container .bbcode,
body.high-contrast .about-container .bb-preview,
body.high-contrast .about-container .bb-toolbar {
    background: #000000 !important;
    background-color: #000000 !important;
    background-image: none !important;
    color: #ffff00 !important;
    border: 2px solid #ffffff !important;
    box-shadow: none !important;
}

body.high-contrast .forum-container a,
body.high-contrast .sites-container a,
body.high-contrast .about-container a {
    color: #00ffff !important;
    text-decoration: underline !important;
}

body.high-contrast .forum-container h1,
body.high-contrast .forum-container h2,
body.high-contrast .sites-container h1,
body.high-contrast .sites-container h2,
body.high-contrast .about-container h1,
body.high-contrast .about-container h2,
body.high-contrast .about-container h3 {
    color: #ffffff !important;
}

body.high-contrast .sites-container input,
body.high-contrast .sites-container textarea,
body.high-contrast .about-container input,
body.high-contrast .about-container textarea,
body.high-contrast .about-container select {
    background: #000000 !important;
    color: #ffff00 !important;
    border: 2px solid #ffffff !important;
}
/* =========================================================
   תיקון מחולל עמודים manage_pages.php / עמודים שנוצרו ממנו
   עובד גם כשהתוכן מודפס אחרי CSS פנימי של העמוד
   ========================================================= */
/* החלת רקעים כהים וטקסט בהיר למחולל העמודים - אך ורק במצב לילה */
body.dark-theme .page-header,
body.dark-theme .page-nav,
body.dark-theme .content-block,
body.dark-theme .blocks-wrapper,
body.dark-theme #edit_block_form {
    background: #111827 !important;
    background-color: #111827 !important;
    color: #f8fafc !important;
    border-color: #263244 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35) !important;
}

/* צביעת כל האלמנטים והטקסטים הפנימיים בלבן במחולל - אך ורק במצב לילה */
body.dark-theme .page-header h1,
body.dark-theme .page-nav h3,
body.dark-theme .content-block h1,
body.dark-theme .content-block h2,
body.dark-theme .content-block h3,
body.dark-theme .block-header h2,
body.dark-theme .page-header *,
body.dark-theme .page-nav *,
body.dark-theme .content-block *,
body.dark-theme .blocks-wrapper * {
    color: #f8fafc !important;
}

body.dark-theme .block-header {
    border-bottom-color: #334155 !important;
}

body.dark-theme .toc-item {
    background: #0f172a !important;
    background-color: #0f172a !important;
    border-color: #334155 !important;
}

body.dark-theme .toc-item a,
body.dark-theme .toc-item .drag-handle {
    color: #93c5fd !important;
}

body.dark-theme .toc-item:hover {
    background: #1e293b !important;
    border-color: #60a5fa !important;
}

body.dark-theme .bbcode,
body.dark-theme .content-block .bbcode,
body.dark-theme .content-block .bbcode * {
    color: #f8fafc !important;
}

body.dark-theme .btn-light {
    background: #1e293b !important;
    color: #bfdbfe !important;
    border-color: #334155 !important;
}

body.dark-theme .btn-danger {
    background: #3f1d1d !important;
    color: #fecaca !important;
    border-color: #7f1d1d !important;
}

body.dark-theme .generator-input,
body.dark-theme .bb-textarea,
body.dark-theme .bb-preview {
    background: #0f172a !important;
    background-color: #0f172a !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}

/* =========================================================
   BBCode Guide - מוגבל ומאובטח למצב לילה בלבד
   ========================================================= */

body.dark-theme .guide-wrapper,
body.dark-theme div.guide-wrapper {
    background: #111827 !important;
    background-color: #111827 !important;
    color: #f8fafc !important;
    border: 1px solid #263244 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35) !important;
}

body.dark-theme .guide-wrapper *,
body.dark-theme .guide-wrapper h1,
body.dark-theme .guide-wrapper h2,
body.dark-theme .guide-wrapper h3,
body.dark-theme .guide-wrapper h4 {
    border-color: #334155 !important;
    color: #f8fafc !important;
}

body.dark-theme .guide-wrapper .guide-subtitle,
body.dark-theme .guide-wrapper p,
body.dark-theme .guide-wrapper li,
body.dark-theme .guide-wrapper span,
body.dark-theme .guide-wrapper div {
    color: #e5e7eb !important;
}

body.dark-theme .guide-wrapper .bb-block,
body.dark-theme div.guide-wrapper div.bb-block {
    background: #0f172a !important;
    background-color: #0f172a !important;
    color: #f8fafc !important;
    border: 1px solid #334155 !important;
}

body.dark-theme .guide-wrapper .bb-code,
body.dark-theme div.guide-wrapper div.bb-code {
    background: #020617 !important;
    background-color: #020617 !important;
    color: #dbeafe !important;
    border: 1px solid #475569 !important;
}

body.dark-theme .guide-wrapper .bb-preview,
body.dark-theme div.guide-wrapper div.bb-preview {
    background: #0b1220 !important;
    background-color: #0b1220 !important;
    color: #f8fafc !important;
    border: 1px solid #334155 !important;
}

body.dark-theme .guide-wrapper .bb-preview a,
body.dark-theme .guide-wrapper .bbcode a {
    color: #93c5fd !important;
}

body.dark-theme .guide-wrapper .bb-preview table,
body.dark-theme .guide-wrapper .bb-table {
    background: #0f172a !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}

body.dark-theme .guide-wrapper .bb-preview table th,
body.dark-theme .guide-wrapper .bb-preview table td {
    background: #111827 !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}

body.dark-theme .guide-wrapper .bb-quote,
body.dark-theme .guide-wrapper blockquote,
body.dark-theme .guide-wrapper details,
body.dark-theme .guide-wrapper pre,
body.dark-theme .guide-wrapper code {
    background: #020617 !important;
    color: #dbeafe !important;
    border-color: #334155 !important;
}

body.dark-theme .guide-wrapper .spoiler {
    color: #020617 !important;
    background: #020617 !important;
    border: 1px solid #334155 !important;
}

body.dark-theme .guide-wrapper .spoiler:hover {
    color: #f8fafc !important;
}

body.dark-theme .guide-wrapper mark,
body.dark-theme .guide-wrapper .bb-highlight {
    background: #facc15 !important;
    color: #111827 !important;
}

body.dark-theme .guide-wrapper kbd {
    background: #1e293b !important;
    color: #f8fafc !important;
    border-color: #475569 !important;
}