.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.22rem;
    flex: 0 0 auto;
    min-width: 72px;
    height: 34px;
    margin-left: auto;
    padding: 0.25rem 0.35rem;
    border: 1px solid #cbd5ce;
    border-radius: 999px;
    background: #f4f7f4;
    color: #315b42;
    cursor: pointer;
}

.theme-toggle-floating {
    position: fixed;
    top: 0.55rem;
    right: 0.65rem;
    z-index: 1000;
    margin: 0;
}

.theme-toggle:focus-visible {
    outline: 3px solid #57a978;
    outline-offset: 2px;
}

.theme-toggle-track {
    position: relative;
    width: 30px;
    height: 18px;
    flex: 0 0 30px;
    border-radius: 999px;
    background: #b8c5bc;
    transition: background 160ms ease;
}

.theme-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
    transition: transform 160ms ease;
}

.theme-toggle-icon {
    width: 14px;
    font-size: 0.78rem;
    line-height: 1;
    text-align: center;
}

html[data-theme="dark"] .theme-toggle {
    border-color: #59645e;
    background: #303833;
    color: #d7e9dc;
}

html[data-theme="dark"] .theme-toggle-track {
    background: #34764c;
}

html[data-theme="dark"] .theme-toggle-thumb {
    transform: translateX(12px);
}

html[data-theme="dark"] body {
    background: #191e1b !important;
    color: #edf2ee;
    color-scheme: dark;
}

html[data-theme="dark"] body h1,
html[data-theme="dark"] body h2,
html[data-theme="dark"] body h3,
html[data-theme="dark"] body h4,
html[data-theme="dark"] body label,
html[data-theme="dark"] body p,
html[data-theme="dark"] body li,
html[data-theme="dark"] body small {
    color: #d9e2dc;
}

html[data-theme="dark"] body p {
    background-color: transparent;
}

html[data-theme="dark"] body :not(img)[style*="background:#fff"],
html[data-theme="dark"] body :not(img)[style*="background: #fff"],
html[data-theme="dark"] body :not(img)[style*="background-color:#fff"],
html[data-theme="dark"] body :not(img)[style*="background-color: #fff"],
html[data-theme="dark"] body :not(img)[style*="background:white"],
html[data-theme="dark"] body :not(img)[style*="background: white"] {
    border-color: #46534b !important;
    background-color: #252d28 !important;
    color: #e9efeb !important;
}

html[data-theme="dark"] body input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] body textarea,
html[data-theme="dark"] body select {
    border-color: #4a5750 !important;
    background-color: #252d28 !important;
    color: #eef3ef !important;
}

html[data-theme="dark"] body input::placeholder,
html[data-theme="dark"] body textarea::placeholder {
    color: #a4b0a8 !important;
}

html[data-theme="dark"] #ai-response,
html[data-theme="dark"] #qa-list article {
    border-color: #46534b !important;
    background: #202723 !important;
    color: #e9efeb !important;
}

html[data-theme="dark"] #ai-assistant h3,
html[data-theme="dark"] #product-qa h3,
html[data-theme="dark"] #ai-quick-actions button {
    color: #e4eee7 !important;
}

html[data-theme="dark"] #product-main #ai-quick-actions .ai-chip {
    border-color: #526057 !important;
    background: #303a34 !important;
    color: #d7e9dc !important;
}

html[data-theme="dark"] #product-main #ai-quick-actions .ai-chip:hover {
    border-color: #69bb84 !important;
    background: #38483d !important;
    color: #a8dfb7 !important;
}

html[data-theme="dark"] #ai-assistant p,
html[data-theme="dark"] #product-qa p,
html[data-theme="dark"] #product-qa small,
html[data-theme="dark"] #qa-list {
    color: #c3cec6 !important;
}

html[data-theme="dark"] .cart-page h1,
html[data-theme="dark"] .checkout-form h2,
html[data-theme="dark"] .cart-item-name {
    color: #edf2ee !important;
}

html[data-theme="dark"] .checkout-form,
html[data-theme="dark"] .service-flow-box,
html[data-theme="dark"] .payment-methods,
html[data-theme="dark"] .ips-box,
html[data-theme="dark"] .invoice-box {
    border-color: #46534b !important;
    background: #252d28 !important;
    color: #e9efeb !important;
}

html[data-theme="dark"] .service-flow-header {
    border: 1px solid #75622a;
    background: #4b401f !important;
    color: #f2dfa0 !important;
}

html[data-theme="dark"] .service-flow-option span {
    border-color: #526057 !important;
    background: #303a34 !important;
    color: #e0e9e2 !important;
}

html[data-theme="dark"] .service-flow-option:hover span {
    border-color: #62846b !important;
    background: #35483a !important;
}

html[data-theme="dark"] .service-flow-option input[type="radio"]:checked + span {
    border-color: #43845a !important;
    background: #28623d !important;
    color: #fff !important;
}

html[data-theme="dark"] .payment-methods .pm-title,
html[data-theme="dark"] .payment-option,
html[data-theme="dark"] .payment-help,
html[data-theme="dark"] .ips-box p,
html[data-theme="dark"] .invoice-box p,
html[data-theme="dark"] .consent-row label {
    color: #c9d3cc !important;
}

html[data-theme="dark"] .ips-code,
html[data-theme="dark"] .invoice-grid input,
html[data-theme="dark"] .qty-input {
    border-color: #4a5750 !important;
    background: #202723 !important;
    color: #eef3ef !important;
}

html[data-theme="dark"] .ips-btn {
    border-color: #52675a !important;
    background: #303a34 !important;
    color: #c7e6d0 !important;
}

html[data-theme="dark"] .cart-table th,
html[data-theme="dark"] .cart-table td {
    border-color: #3d4942 !important;
    color: #dce5df !important;
}

html[data-theme="dark"] .cart-empty,
html[data-theme="dark"] .wishlist-page .empty,
html[data-theme="dark"] .empty-state {
    color: #c9d3cc !important;
}

html[data-theme="dark"] .empty {
    border-color: #3d4942 !important;
    background: #252d28 !important;
    color: #c9d3cc !important;
}

html[data-theme="dark"] .checkout-hero,
html[data-theme="dark"] .checkout-card,
html[data-theme="dark"] .payment-options,
html[data-theme="dark"] .info-panel,
html[data-theme="dark"] .service-summary,
html[data-theme="dark"] .consent-row,
html[data-theme="dark"] .review-step,
html[data-theme="dark"] .courier-box,
html[data-theme="dark"] .courier-quote,
html[data-theme="dark"] .ips-box,
html[data-theme="dark"] .invoice-box {
    border-color: #3d4942 !important;
    background: #252d28 !important;
    color: #e9efeb !important;
}

html[data-theme="dark"] .checkout-step,
html[data-theme="dark"] .progress-node:not(.active):not(.done) {
    border-color: #46534b !important;
    background: #2b3530 !important;
    color: #d9e2dc !important;
}

html[data-theme="dark"] .checkout-card h2,
html[data-theme="dark"] .checkout-hero h1,
html[data-theme="dark"] .checkout-hero p,
html[data-theme="dark"] .checkout-card .payment-label,
html[data-theme="dark"] .checkout-card .payment-option,
html[data-theme="dark"] .checkout-card .review-grid div,
html[data-theme="dark"] .checkout-card .review-grid strong,
html[data-theme="dark"] .checkout-card .courier-box h3,
html[data-theme="dark"] .checkout-card .courier-note,
html[data-theme="dark"] .checkout-card .review-note,
html[data-theme="dark"] .checkout-card .ips-box p,
html[data-theme="dark"] .checkout-card .invoice-box p {
    color: #d9e2dc !important;
}

html[data-theme="dark"] .checkout-card .summary-table th,
html[data-theme="dark"] .checkout-card .summary-table td {
    border-color: #3d4942 !important;
    color: #d9e2dc !important;
}

html[data-theme="dark"] .checkout-card .progress-node.active,
html[data-theme="dark"] .checkout-card .progress-node.done {
    border-color: #43845a !important;
    background: #284b35 !important;
    color: #c9ebd2 !important;
}

html[data-theme="dark"] .request-card,
html[data-theme="dark"] .review-card,
html[data-theme="dark"] .form-block,
html[data-theme="dark"] .lead-card,
html[data-theme="dark"] .masters-hero,
html[data-theme="dark"] .payment-card,
html[data-theme="dark"] .legal-card,
html[data-theme="dark"] .withdrawal-form,
html[data-theme="dark"] .rules-card,
html[data-theme="dark"] body > main > .card {
    border-color: #3d4942 !important;
    background: #252d28 !important;
    color: #e9efeb !important;
}

html[data-theme="dark"] .lead-note,
html[data-theme="dark"] .note-box,
html[data-theme="dark"] .rules-note {
    border-color: #46534b !important;
    background: #2b3530 !important;
    color: #d9e2dc !important;
}

html[data-theme="dark"] .review-card h1,
html[data-theme="dark"] .review-card h2,
html[data-theme="dark"] .payment-card h1,
html[data-theme="dark"] .payment-card h2,
html[data-theme="dark"] .legal-card h1,
html[data-theme="dark"] .legal-card h2,
html[data-theme="dark"] .rules-card h1,
html[data-theme="dark"] .rules-card h2,
html[data-theme="dark"] .lead-card h1,
html[data-theme="dark"] .masters-hero h1 {
    color: #edf2ee !important;
}

html[data-theme="dark"] .review-card p,
html[data-theme="dark"] .review-card label,
html[data-theme="dark"] .payment-card p,
html[data-theme="dark"] .payment-card li,
html[data-theme="dark"] .legal-card p,
html[data-theme="dark"] .legal-card li,
html[data-theme="dark"] .rules-card p,
html[data-theme="dark"] .rules-card li,
html[data-theme="dark"] .lead-card p,
html[data-theme="dark"] .masters-hero p {
    color: #c9d3cc !important;
}

html[data-theme="dark"] .form-block textarea,
html[data-theme="dark"] .review-card input,
html[data-theme="dark"] .review-card textarea,
html[data-theme="dark"] .review-card select {
    border-color: #4a5750 !important;
    background: #202723 !important;
    color: #eef3ef !important;
}

html[data-theme="dark"] .checkout-card .ips-qr,
html[data-theme="dark"] .cart-page .ips-qr {
    background: #fff !important;
}

html[data-theme="dark"] nav.main-menu {
    background: #202723 !important;
    border-bottom: 1px solid #343e38;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .nav-logo {
    color: #f1f5f2;
}

html[data-theme="dark"] .nav-logo:hover,
html[data-theme="dark"] .nav-logo:focus-visible {
    color: #69bb84;
}

html[data-theme="dark"] .main-menu ul li a,
html[data-theme="dark"] ul.main-menu li a {
    color: #b8e1c5;
}

html[data-theme="dark"] .main-menu ul li a:hover,
html[data-theme="dark"] .main-menu ul li a.active,
html[data-theme="dark"] ul.main-menu li a:hover,
html[data-theme="dark"] ul.main-menu li a.active {
    background: #365543;
    color: #fff;
}

html[data-theme="dark"] .main-menu ul li a.nav-majstor,
html[data-theme="dark"] ul.main-menu li a.nav-majstor {
    background: transparent;
    color: #ff9a2e;
}

html[data-theme="dark"] .main-menu ul li a.nav-majstor:hover,
html[data-theme="dark"] .main-menu ul li a.nav-majstor.active,
html[data-theme="dark"] ul.main-menu li a.nav-majstor:hover,
html[data-theme="dark"] ul.main-menu li a.nav-majstor.active {
    background: #f57c00;
    color: #fff;
}

html[data-theme="dark"] .main-menu ul li a.nav-account,
html[data-theme="dark"] ul.main-menu li a.nav-account {
    background: transparent;
    color: #1976d2;
    border-color: transparent;
}

html[data-theme="dark"] .main-menu ul li a.nav-account:hover,
html[data-theme="dark"] .main-menu ul li a.nav-account.active,
html[data-theme="dark"] ul.main-menu li a.nav-account:hover,
html[data-theme="dark"] ul.main-menu li a.nav-account.active {
    background: #1976d2;
    border-color: #1976d2;
    color: #fff;
}

html[data-theme="dark"] .catalog-main,
html[data-theme="dark"] #product-main {
    color: #edf2ee;
}

html[data-theme="dark"] .catalog-main h1,
html[data-theme="dark"] #product-main h2,
html[data-theme="dark"] #product-main h3 {
    color: #f2f5f3 !important;
}

html[data-theme="dark"] .cat-breadcrumb,
html[data-theme="dark"] .cat-breadcrumb a {
    color: #aab8af !important;
}

html[data-theme="dark"] .cat-sidebar {
    background: #202723 !important;
    border-right-color: #38433d;
}

html[data-theme="dark"] .sidebar-toggle-btn {
    border-color: #46534b !important;
    background: #2a342e !important;
    color: #e5ede7 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .sidebar-toggle-btn .hamburger-lines span {
    background: #b8e1c5;
}

html[data-theme="dark"] .cat-sidebar h2,
html[data-theme="dark"] .cat-root-btn,
html[data-theme="dark"] .tree-node-btn {
    color: #dce5df;
}

html[data-theme="dark"] .cat-root-btn:hover,
html[data-theme="dark"] .tree-node-btn:hover {
    background: #303b35;
    color: #9cddb0;
}

html[data-theme="dark"] .cat-root-btn.active,
html[data-theme="dark"] .tree-node-btn.active {
    color: #b8e1c5;
    background: #30483a;
    border-left-color: #69bb84;
}

html[data-theme="dark"] .category-heading-row,
html[data-theme="dark"] .catalog-status-line {
    color: #bec9c2;
}

html[data-theme="dark"] #search-bar,
html[data-theme="dark"] .catalog-controls select {
    border-color: #4a5750;
    background: #252d28;
    color: #eef3ef;
}

html[data-theme="dark"] #search-bar::placeholder {
    color: #a4b0a8;
}

html[data-theme="dark"] .discovery-links a {
    border-color: #42634d;
    background: #26392d;
    color: #b8e1c5;
}

html[data-theme="dark"] .catalog-main .cat-card,
html[data-theme="dark"] .catalog-main .product {
    border-color: #3c4841;
    border-left-color: #43845a;
    background: #252d28 !important;
    color: #edf2ee !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .catalog-main .cat-card h3,
html[data-theme="dark"] .catalog-main .product h2,
html[data-theme="dark"] .catalog-main .product p {
    color: #edf2ee !important;
}

html[data-theme="dark"] .catalog-main .product > a,
html[data-theme="dark"] .catalog-main .product > a:hover {
    color: #edf2ee !important;
}

html[data-theme="dark"] .catalog-main .product-mini-btn {
    border-color: #536158 !important;
    background: #303a34 !important;
    color: #d7e9dc !important;
}

html[data-theme="dark"] .catalog-main .product-mini-btn:hover {
    border-color: #69bb84 !important;
    color: #a8dfb7 !important;
}

html[data-theme="dark"] .catalog-main .product img,
html[data-theme="dark"] .catalog-main .cat-card img,
html[data-theme="dark"] #product-main-image,
html[data-theme="dark"] .product-image-thumb img,
html[data-theme="dark"] .variant-choice-btn img {
    background-color: #f0f2ef !important;
}

html[data-theme="dark"] .product-image-thumb,
html[data-theme="dark"] .variant-choice-btn {
    border-color: #58665d !important;
    background: #27312b !important;
    color: #edf2ee !important;
}

html[data-theme="dark"] #buy-sidebar {
    border: 1px solid #3d4841;
    background: #252d28 !important;
    color: #edf2ee;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] #buy-sidebar button:not(.add-to-cart-main-btn) {
    border-color: #52675a !important;
    background: #303b35 !important;
    color: #c7e6d0 !important;
}

html[data-theme="dark"] #product-main > #product-id > div,
html[data-theme="dark"] #product-main #product-qa,
html[data-theme="dark"] #product-main #ai-assistant,
html[data-theme="dark"] #product-main #related-products,
html[data-theme="dark"] #product-main #recently-viewed {
    color: #d9e2dc !important;
}

html[data-theme="dark"] #product-main #product-id > div > div[style*="text-align:left"] {
    color: #d9e2dc !important;
}

html[data-theme="dark"] #product-main #product-id > div > div[style*="text-align:left"] a {
    color: #9fd9b0 !important;
}

html[data-theme="dark"] #product-main #product-id > div > div[style*="text-align:left"] {
    max-width: 100%;
    overflow-wrap: anywhere;
}

html[data-theme="dark"] #product-main #qa-form > div[style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
}

html[data-theme="dark"] #product-main #qa-form input,
html[data-theme="dark"] #product-main #qa-form textarea {
    min-width: 0;
    max-width: 100%;
}

html[data-theme="dark"] .product-specs,
html[data-theme="dark"] #product-qa article,
html[data-theme="dark"] #ai-response,
html[data-theme="dark"] #product-qa input,
html[data-theme="dark"] #product-qa textarea,
html[data-theme="dark"] #ai-question {
    border-color: #46534b !important;
    background: #202723 !important;
    color: #e9efeb !important;
}

html[data-theme="dark"] .product-specs li,
html[data-theme="dark"] #product-qa p,
html[data-theme="dark"] #product-qa small,
html[data-theme="dark"] #ai-assistant p {
    color: #c9d3cc !important;
}

html[data-theme="dark"] .site-footer {
    border-top-color: #39453e;
    background: #202723;
}

html[data-theme="dark"] .site-footer-copy {
    color: #bdc9c1;
}

html[data-theme="dark"] .site-footer-links a {
    color: #a8d9b7;
}

html[data-theme="dark"] .categories-section h2 {
    color: #edf2ee !important;
}

html[data-theme="dark"] .categories-section .cat-card {
    border-color: #3c4841 !important;
    border-left-color: #43845a !important;
    background: #252d28 !important;
    color: #edf2ee !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .categories-section .cat-card h3,
html[data-theme="dark"] .categories-section .cat-card p {
    color: #d9e2dc !important;
}

html[data-theme="dark"] .categories-section .cat-card:hover h3 {
    color: #8dd3a2 !important;
}

html[data-theme="dark"] .about-section {
    border-top-color: #3b4740 !important;
    background: #202723 !important;
}

html[data-theme="dark"] .about-section p {
    color: #d9e2dc !important;
}

html[data-theme="dark"] .contact-info,
html[data-theme="dark"] .support-panel {
    border: 1px solid #3d4942;
    background: #252d28 !important;
    color: #e3ebe5 !important;
}

html[data-theme="dark"] .contact-info h2,
html[data-theme="dark"] .support-panel h2,
html[data-theme="dark"] .support-flow h3,
html[data-theme="dark"] .support-faq h3,
html[data-theme="dark"] .support-faq .faq-item strong {
    color: #edf2ee !important;
}

html[data-theme="dark"] .contact-info p,
html[data-theme="dark"] .support-flow p,
html[data-theme="dark"] .support-faq .faq-item p {
    color: #c9d3cc !important;
}

html[data-theme="dark"] .contact-info .label,
html[data-theme="dark"] .support-panel .subtitle {
    color: #aab8af !important;
}

html[data-theme="dark"] .support-highlights .highlight-item {
    border-color: #40594a !important;
    background: #2b3930 !important;
}

html[data-theme="dark"] .support-highlights .highlight-item .title {
    color: #b6c9bb !important;
}

html[data-theme="dark"] .support-highlights .highlight-item p {
    color: #e0e9e2 !important;
}

html[data-theme="dark"] .support-faq {
    border-top-color: #46534b !important;
}

html[data-theme="dark"] .knowledge-hero,
html[data-theme="dark"] .knowledge-wrap {
    --ink: #edf2ee;
    --muted: #c0cbc3;
    --surface: #2b3530;
    --card: #252d28;
    --line: #46534b;
    --brand-dark: #9bd6aa;
}

html[data-theme="dark"] .hero-side,
html[data-theme="dark"] .article,
html[data-theme="dark"] .knowledge-wrap .panel {
    border-color: #46534b !important;
    background: #252d28 !important;
    color: #e9efeb !important;
}

html[data-theme="dark"] .hero-tip {
    border-color: #46534b !important;
    background: #2b3530 !important;
}

html[data-theme="dark"] .hero-tip strong,
html[data-theme="dark"] .article h2,
html[data-theme="dark"] .knowledge-wrap .panel h3 {
    color: #edf2ee !important;
}

html[data-theme="dark"] .hero-tip span,
html[data-theme="dark"] .article p,
html[data-theme="dark"] .knowledge-wrap .panel p,
html[data-theme="dark"] .knowledge-wrap .panel ul {
    color: #c0cbc3 !important;
}

html[data-theme="dark"] .article-meta,
html[data-theme="dark"] .knowledge-wrap .panel a,
html[data-theme="dark"] .knowledge-wrap details summary {
    color: #9bd6aa !important;
}

html[data-theme="dark"] .knowledge-wrap details {
    border-top-color: #46534b !important;
}

html[data-theme="dark"] .account-shell {
    color: #e9efeb;
}

html[data-theme="dark"] .account-shell .panel,
html[data-theme="dark"] .account-shell .order-card,
html[data-theme="dark"] .account-shell .service-item,
html[data-theme="dark"] .account-shell .price-section,
html[data-theme="dark"] .account-shell .benefits-panel {
    border-color: #3d4942 !important;
    background: #252d28 !important;
    color: #e9efeb !important;
}

html[data-theme="dark"] .account-shell h1,
html[data-theme="dark"] .account-shell h2,
html[data-theme="dark"] .account-shell h3,
html[data-theme="dark"] .account-shell h4,
html[data-theme="dark"] .account-shell label,
html[data-theme="dark"] .account-shell .order-head strong,
html[data-theme="dark"] .account-shell .section-title,
html[data-theme="dark"] .account-shell .service-item label {
    color: #e5ede7 !important;
}

html[data-theme="dark"] .account-shell p,
html[data-theme="dark"] .account-shell .hero-copy p,
html[data-theme="dark"] .account-shell .orders-empty {
    color: #c0cbc3 !important;
}

html[data-theme="dark"] .account-shell .hero-note,
html[data-theme="dark"] .account-shell .master-form-note,
html[data-theme="dark"] .account-shell .admin-links a {
    border-color: #40594a !important;
    background: #2b3930 !important;
    color: #c7e6d0 !important;
}

html[data-theme="dark"] .account-shell .tabs button,
html[data-theme="dark"] .account-shell .ghost-btn,
html[data-theme="dark"] .account-shell .service-item input,
html[data-theme="dark"] .account-shell .form-grid input:not([type="checkbox"]),
html[data-theme="dark"] .account-shell .form-grid textarea,
html[data-theme="dark"] .account-shell .form-grid select {
    border-color: #4a5750 !important;
    background: #202723 !important;
    color: #eef3ef !important;
}

html[data-theme="dark"] .account-shell .tabs button.active {
    border-color: #43845a !important;
    background: #28623d !important;
    color: #fff !important;
}

html[data-theme="dark"] #product-main #ai-assistant,
html[data-theme="dark"] #product-main #product-qa {
    border-color: #46534b !important;
    background: #252d28 !important;
    color: #e9efeb !important;
}

html[data-theme="dark"] #product-main #ai-response,
html[data-theme="dark"] #product-main #qa-list article {
    border-color: #46534b !important;
    background: #202723 !important;
    color: #e9efeb !important;
}

html[data-theme="dark"] #product-main #ai-assistant h3,
html[data-theme="dark"] #product-main #product-qa h3,
html[data-theme="dark"] #product-main #ai-quick-actions button {
    color: #e4eee7 !important;
}

html[data-theme="dark"] #product-main #ai-assistant p,
html[data-theme="dark"] #product-main #product-qa p,
html[data-theme="dark"] #product-main #product-qa small,
html[data-theme="dark"] #product-main #qa-list {
    color: #c3cec6 !important;
}

html[data-theme="dark"] .cart-page h1,
html[data-theme="dark"] .checkout-form h2,
html[data-theme="dark"] .cart-item-name {
    color: #edf2ee !important;
}

html[data-theme="dark"] .checkout-form,
html[data-theme="dark"] .service-flow-box,
html[data-theme="dark"] .payment-methods,
html[data-theme="dark"] .ips-box,
html[data-theme="dark"] .invoice-box {
    border-color: #46534b !important;
    background: #252d28 !important;
    color: #e9efeb !important;
}

html[data-theme="dark"] .service-flow-header {
    border: 1px solid #75622a;
    background: #4b401f !important;
    color: #f2dfa0 !important;
}

html[data-theme="dark"] .service-flow-option span {
    border-color: #526057 !important;
    background: #303a34 !important;
    color: #e0e9e2 !important;
}

html[data-theme="dark"] .service-flow-option input[type="radio"]:checked + span {
    border-color: #43845a !important;
    background: #28623d !important;
    color: #fff !important;
}

html[data-theme="dark"] .payment-methods .pm-title,
html[data-theme="dark"] .payment-option,
html[data-theme="dark"] .payment-help,
html[data-theme="dark"] .ips-box p,
html[data-theme="dark"] .invoice-box p,
html[data-theme="dark"] .consent-row label {
    color: #c9d3cc !important;
}

html[data-theme="dark"] .ips-code,
html[data-theme="dark"] .invoice-grid input,
html[data-theme="dark"] .qty-input {
    border-color: #4a5750 !important;
    background: #202723 !important;
    color: #eef3ef !important;
}

html[data-theme="dark"] .ips-btn {
    border-color: #52675a !important;
    background: #303a34 !important;
    color: #c7e6d0 !important;
}

html[data-theme="dark"] .cart-table th,
html[data-theme="dark"] .cart-table td {
    border-color: #3d4942 !important;
    color: #dce5df !important;
}

html[data-theme="dark"] .wishlist-page .empty,
html[data-theme="dark"] .compare-page .empty,
html[data-theme="dark"] #wishlist-content .empty {
    border-color: #3d4942 !important;
    background: #252d28 !important;
    color: #c9d3cc !important;
}

html[data-theme="dark"] .request-card,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .review-card,
html[data-theme="dark"] .form-block,
html[data-theme="dark"] .lead-card,
html[data-theme="dark"] .masters-hero,
html[data-theme="dark"] .payment-card,
html[data-theme="dark"] .legal-card,
html[data-theme="dark"] .withdrawal-form,
html[data-theme="dark"] .rules-card,
html[data-theme="dark"] .rules-note,
html[data-theme="dark"] body > main > .card {
    border-color: #3d4942 !important;
    background: #252d28 !important;
    color: #e9efeb !important;
}

html[data-theme="dark"] .lead-note,
html[data-theme="dark"] .note-box,
html[data-theme="dark"] .service-summary,
html[data-theme="dark"] .info-panel,
html[data-theme="dark"] .courier-box,
html[data-theme="dark"] .review-step,
html[data-theme="dark"] .courier-quote,
html[data-theme="dark"] .checkout-step,
html[data-theme="dark"] .progress-node:not(.active):not(.done) {
    border-color: #46534b !important;
    background: #2b3530 !important;
    color: #d9e2dc !important;
}

html[data-theme="dark"] .checkout-hero,
html[data-theme="dark"] .checkout-card,
html[data-theme="dark"] .payment-options,
html[data-theme="dark"] .consent-row,
html[data-theme="dark"] .checkout-card .ips-box,
html[data-theme="dark"] .checkout-card .invoice-box {
    border-color: #3d4942 !important;
    background: #252d28 !important;
    color: #e9efeb !important;
}

html[data-theme="dark"] .checkout-card h2,
html[data-theme="dark"] .checkout-hero h1,
html[data-theme="dark"] .checkout-hero p,
html[data-theme="dark"] .checkout-card .payment-label,
html[data-theme="dark"] .checkout-card .payment-option,
html[data-theme="dark"] .checkout-card .review-grid div,
html[data-theme="dark"] .checkout-card .review-grid strong,
html[data-theme="dark"] .checkout-card .courier-box h3,
html[data-theme="dark"] .checkout-card .courier-note,
html[data-theme="dark"] .checkout-card .review-note,
html[data-theme="dark"] .checkout-card .ips-box p,
html[data-theme="dark"] .checkout-card .invoice-box p {
    color: #d9e2dc !important;
}

html[data-theme="dark"] .checkout-card .summary-table th,
html[data-theme="dark"] .checkout-card .summary-table td {
    border-color: #3d4942 !important;
    color: #d9e2dc !important;
}

html[data-theme="dark"] .checkout-card .progress-node.active,
html[data-theme="dark"] .checkout-card .progress-node.done {
    background: #284b35 !important;
    color: #c9ebd2 !important;
    border-color: #43845a !important;
}

html[data-theme="dark"] .review-card h1,
html[data-theme="dark"] .review-card h2,
html[data-theme="dark"] .payment-card h1,
html[data-theme="dark"] .payment-card h2,
html[data-theme="dark"] .legal-card h1,
html[data-theme="dark"] .legal-card h2,
html[data-theme="dark"] .rules-card h1,
html[data-theme="dark"] .rules-card h2,
html[data-theme="dark"] .lead-card h1,
html[data-theme="dark"] .masters-hero h1 {
    color: #edf2ee !important;
}

html[data-theme="dark"] .review-card p,
html[data-theme="dark"] .review-card label,
html[data-theme="dark"] .form-block,
html[data-theme="dark"] .payment-card p,
html[data-theme="dark"] .payment-card li,
html[data-theme="dark"] .legal-card p,
html[data-theme="dark"] .legal-card li,
html[data-theme="dark"] .rules-card p,
html[data-theme="dark"] .rules-card li,
html[data-theme="dark"] .lead-card p,
html[data-theme="dark"] .masters-hero p {
    color: #c9d3cc !important;
}

html[data-theme="dark"] .form-block textarea,
html[data-theme="dark"] .review-card input,
html[data-theme="dark"] .review-card textarea,
html[data-theme="dark"] .review-card select {
    border-color: #4a5750 !important;
    background: #202723 !important;
    color: #eef3ef !important;
}

html[data-theme="dark"] .checkout-card .ips-qr,
html[data-theme="dark"] .cart-page .ips-qr {
    background: #fff !important;
}

html[data-theme="dark"] .admin-header {
    background: #202d25 !important;
    color: #eef3ef !important;
}

html[data-theme="dark"] .admin-header a {
    color: #c7e6d0 !important;
}

html[data-theme="dark"] .admin-container,
html[data-theme="dark"] .admin-container .controls,
html[data-theme="dark"] .page,
html[data-theme="dark"] .card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .orders-table,
html[data-theme="dark"] .table-container,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .dashboard-card {
    border-color: #3d4942 !important;
    background-color: #252d28 !important;
    color: #e9efeb !important;
}

html[data-theme="dark"] table,
html[data-theme="dark"] thead,
html[data-theme="dark"] tbody,
html[data-theme="dark"] tr,
html[data-theme="dark"] th,
html[data-theme="dark"] td {
    border-color: #3d4942 !important;
    color: #e0e8e2;
}

html[data-theme="dark"] th {
    background-color: #303a34 !important;
}

html[data-theme="dark"] tr:nth-child(even) {
    background-color: #222a25 !important;
}

html[data-theme="dark"] .catalog-layout .cat-sidebar {
    border-right-color: #3d4942 !important;
    background: #202723 !important;
}

html[data-theme="dark"] .catalog-layout .cat-sidebar h2,
html[data-theme="dark"] .catalog-layout .cat-breadcrumb,
html[data-theme="dark"] .catalog-layout .catalog-status-line,
html[data-theme="dark"] .catalog-layout .catalog-empty-state {
    color: #aebbb2 !important;
}

html[data-theme="dark"] .catalog-layout .cat-root-btn,
html[data-theme="dark"] .catalog-layout .tree-node-btn {
    color: #d9e2dc !important;
}

html[data-theme="dark"] .catalog-layout .cat-root-btn:hover,
html[data-theme="dark"] .catalog-layout .tree-node-btn:hover {
    background: #2b3530 !important;
    color: #b9e1c2 !important;
}

html[data-theme="dark"] .catalog-layout .cat-root-btn.active,
html[data-theme="dark"] .catalog-layout .tree-node-btn.active {
    background: #294235 !important;
    color: #b9e1c2 !important;
}

html[data-theme="dark"] .catalog-main .cat-card,
html[data-theme="dark"] .catalog-main .product {
    border-color: #3d4942 !important;
    border-left-color: #4a9b63 !important;
    background: #252d28 !important;
    color: #e9efeb !important;
}

html[data-theme="dark"] .catalog-main .cat-card h3,
html[data-theme="dark"] .catalog-main .product h2,
html[data-theme="dark"] .catalog-main .product p,
html[data-theme="dark"] .catalog-main .product small,
html[data-theme="dark"] .catalog-main .product a {
    color: #e9efeb !important;
}

html[data-theme="dark"] .catalog-main .cat-card img,
html[data-theme="dark"] .catalog-main .product img {
    background: #202723 !important;
}

html[data-theme="dark"] .catalog-main .product-mini-btn,
html[data-theme="dark"] .catalog-controls select {
    border-color: #526057 !important;
    background: #303a34 !important;
    color: #e0e9e2 !important;
}

html[data-theme="dark"] .catalog-main .product-mini-btn:hover {
    border-color: #78bd88 !important;
    color: #b9e1c2 !important;
}

html[data-theme="dark"] .cable-group-image,
html[data-theme="dark"] .cable-group-media > div {
    background: #202723 !important;
}

html[data-theme="dark"] .cable-group-title,
html[data-theme="dark"] .cable-group-text,
html[data-theme="dark"] .cable-product-name {
    color: #e9efeb !important;
}

html[data-theme="dark"] .cable-group-text {
    color: #c3cec6 !important;
}

html[data-theme="dark"] .cable-product-card {
    border-color: #46534b !important;
    background: #252d28 !important;
    color: #e9efeb !important;
}

html[data-theme="dark"] .cable-save-btn {
    border-color: #526057 !important;
    background: #303a34 !important;
    color: #c7e6d0 !important;
}

@media (max-width: 700px) {
    nav.main-menu {
        gap: 0.15rem;
        padding-right: 0.55rem;
        padding-left: 0.65rem;
    }

    .nav-logo {
        margin-right: 0.2rem;
        font-size: 1.05rem;
    }

    .main-menu ul li a {
        padding: 0.35rem 0.42rem;
        font-size: 0.73rem;
    }

    nav.main-menu > ul {
        flex: 1 1 0;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
    }

    nav.main-menu > ul::-webkit-scrollbar {
        display: none;
    }

    nav.main-menu > ul li {
        flex: 0 0 auto;
    }

    .theme-toggle {
        min-width: 64px;
        margin-left: 0.1rem;
        transform: scale(0.92);
        transform-origin: right center;
    }

    .theme-toggle-floating {
        min-width: 68px;
        transform: scale(0.95);
        transform-origin: right top;
    }
}