:root[data-theme=light]{--bg:#f5f2eb;--card:#fffdf8;--tx:#171e22;--mu:#807c74;--ac:#b50d29;--ac2:#c6bda9;--bd:#e3dfd4;--rd:#bd2443;--surface-raised:#faf6ee;--surface-tint:#f6e8e5;--accent-text:#a81730;color-scheme:light}
:root[data-theme=dark]{--bg:#070f13;--card:#101b20;--tx:#eee8d7;--mu:#a5aaa6;--ac:#c91c37;--ac2:#d0c5a9;--bd:#2a3539;--rd:#ff829e;--surface-raised:#192429;--surface-tint:#361c25;--accent-text:#ff9faf;color-scheme:dark}
#hd .theme-toggle{width:37px;height:36px;min-height:36px;padding:8px;flex:none;color:var(--accent-text);background:var(--surface-tint);border:1px solid var(--bd)}
html[data-theme=dark] body{background:radial-gradient(ellipse at 85% 0,#68253725,transparent 40%),var(--bg);color:var(--tx)}
html[data-theme=dark] header{background:#0c1519;border-color:var(--bd);color:var(--tx)}
html[data-theme=dark] .logo .brand-name b{color:#eee8d7}
html[data-theme=dark] .logo .brand-name small{color:#aba797}
html[data-theme=dark] nav{background:#0c1519ed;border-color:var(--bd)}
html[data-theme=dark] nav button.on{background:#3b2028;color:#ffafbd}
html[data-theme=dark] button:hover{background:#2c272b;box-shadow:0 3px 12px #0003}
html[data-theme=dark] button.pri,html[data-theme=dark] button.on{background:var(--ac);color:white;border-color:var(--ac)}
html[data-theme=dark] button.pri:hover,html[data-theme=dark] button.on:hover{background:#df2a46}
html[data-theme=dark] nav button.on{background:#3b2028;color:#ffafbd;border-color:transparent}
html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea{background:#0c161b;border-color:var(--bd);color:var(--tx)}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#7e8d91}
html[data-theme=dark] input:focus,html[data-theme=dark] select:focus,html[data-theme=dark] textarea:focus{background:#142228;border-color:#c96378;box-shadow:0 0 0 3px #bb183525}
html[data-theme=dark] #hd select{background:#19262b;color:#c5c5ba}
html[data-theme=dark] .trust-strip .o,html[data-theme=dark] .catalog-tools,html[data-theme=dark] .c,html[data-theme=dark] .admin-sidebar,html[data-theme=dark] .admin-panel,html[data-theme=dark] .summary-card,html[data-theme=dark] .download-product,html[data-theme=dark] dialog,html[data-theme=dark] .o,html[data-theme=dark] .msg{background:var(--card);border-color:var(--bd);color:var(--tx)}
html[data-theme=dark] .c:hover{border-color:#87505b;box-shadow:0 15px 35px #0004}
html[data-theme=dark] .im{background:radial-gradient(ellipse at center,#253136,#17262c);color:#bfb29a}
html[data-theme=dark] .im img{mix-blend-mode:normal}
html[data-theme=dark] .b p{color:#aaa99f}
html[data-theme=dark] .pr b{color:#f2ead7}
html[data-theme=dark] .b .row button:nth-child(2){background:#1a282d}
html[data-theme=dark] .trust-icon,html[data-theme=dark] .bundle-icon,html[data-theme=dark] .staff-avatar{background:#3a2028;color:#f2a6b5}
html[data-theme=dark] .bundle-card{background:linear-gradient(110deg,#24252a,#101b20 80%);border-color:var(--bd)}
html[data-theme=dark] .bundle-save,html[data-theme=dark] .sale{background:#173d34;color:#80dcb7}
html[data-theme=dark] .bundle-heading .eyebrow{color:#d5b68b}
html[data-theme=dark] .admin-toolbar,html[data-theme=dark] .record-note,html[data-theme=dark] .customer-stats,html[data-theme=dark] .record-meta,html[data-theme=dark] .order-items,html[data-theme=dark] .catalog-thumb,html[data-theme=dark] .proof-review,html[data-theme=dark] .promo-info,html[data-theme=dark] .homepage-language,html[data-theme=dark] .admin-menu button:hover{background:var(--surface-raised);border-color:var(--bd)}
html[data-theme=dark] .sidebar-heading,html[data-theme=dark] .sidebar-footer,html[data-theme=dark] .admin-menu button,html[data-theme=dark] .admin-toolbar label,html[data-theme=dark] .record-meta,html[data-theme=dark] .record-note,html[data-theme=dark] .customer-stats span,html[data-theme=dark] .promo-info span,html[data-theme=dark] .admin-section-label,html[data-theme=dark] .catalog-selection{color:var(--mu)}
html[data-theme=dark] .admin-menu button.on{background:#3b2028;color:#ffb4c2;border-color:transparent}
html[data-theme=dark] .admin-panel h3,html[data-theme=dark] .record-title h3,html[data-theme=dark] .catalog-row h3,html[data-theme=dark] .customer-top h3,html[data-theme=dark] .order-items b,html[data-theme=dark] .customer-stats b,html[data-theme=dark] .promo-info b,html[data-theme=dark] .download-product-heading>b,html[data-theme=dark] .download-editor-product{color:var(--tx)}
html[data-theme=dark] .admin-panel,html[data-theme=dark] .admin-sidebar{box-shadow:0 5px 20px #0001}
html[data-theme=dark] .sidebar-footer,html[data-theme=dark] .catalog-row,html[data-theme=dark] .audit-table th,html[data-theme=dark] .audit-table td,html[data-theme=dark] .record-actions,html[data-theme=dark] .order-admin-edit,html[data-theme=dark] .promo-info,html[data-theme=dark] .record-heading{border-color:var(--bd)}
html[data-theme=dark] .state-badge{background:#263438;color:#c0c7c3}
html[data-theme=dark] .state-paid,html[data-theme=dark] .state-done,html[data-theme=dark] .state-active,html[data-theme=dark] .state-accepted,html[data-theme=dark] .state-in_stock{background:#173d34;color:#8be1bd}
html[data-theme=dark] .state-new,html[data-theme=dark] .state-open,html[data-theme=dark] .state-review,html[data-theme=dark] .state-pending,html[data-theme=dark] .state-waiting{background:#44351d;color:#efc579}
html[data-theme=dark] .state-cancelled,html[data-theme=dark] .state-blocked,html[data-theme=dark] .state-rejected{background:#482734;color:#ffabc1}
html[data-theme=dark] .flag-in_stock{background:#173d34;color:#8be1bd}
html[data-theme=dark] .flag-preorder{background:#44351d;color:#efc579}
html[data-theme=dark] .flag-unavailable{background:#273248;color:#acb9ce}
html[data-theme=dark] .flag-new{background:#302c50;color:#bdb3f8}
html[data-theme=dark] #pf .product-status-fields,html[data-theme=dark] .download-editor>.muted{background:#18282e;border-color:var(--bd)}
html[data-theme=dark] #pf .product-status-fields select{background:#0c161b}
html[data-theme=dark] .c .b button.pri:disabled{background:#233047;color:#899bb6;border-color:var(--bd)}
html[data-theme=dark] .order-downloads{background:#1b2328;border-color:#57313e}
html[data-theme=dark] .order-downloads h4,html[data-theme=dark] .download-instructions>summary,html[data-theme=dark] .download-editor input[type=url]{color:#c9bca5}
html[data-theme=dark] .download-edit{background:#1b292e;color:#bcbcae}
html[data-theme=dark] .download-note,html[data-theme=dark] .download-file>small,html[data-theme=dark] .download-expiry,html[data-theme=dark] .download-instructions p{color:#acb8b7}
html[data-theme=dark] #hd .notification-bell{background:#361c25;color:#ffa5b7;border-color:var(--bd)}
html[data-theme=dark] .notification-count{border-color:#0c1519}
html[data-theme=dark] .notification-heading>button,html[data-theme=dark] #notificationMore,html[data-theme=dark] .notification-sound-controls{background:#1d2a2f;border-color:var(--bd);color:#c3bfb5}
html[data-theme=dark] .notification-item{background:var(--card);border-color:var(--bd)}
html[data-theme=dark] .notification-item.is-unread{background:#321d25}
html[data-theme=dark] .notification-item:hover,html[data-theme=dark] .notification-item.is-unread:hover{background:#442531}
html[data-theme=dark] #notificationList{border-color:var(--bd)}
html[data-theme=dark] .notification-copy>b{color:#eee5d7}
html[data-theme=dark] .notification-copy>small,html[data-theme=dark] .notification-copy>span,html[data-theme=dark] .notification-copy>time{color:#b8b9ae}
html[data-theme=dark] .notification-icon{background:#3e2330;color:#f5afbf}
html[data-theme=dark] .notification-icon.key-event{background:#1c3d35;color:#8bd2ba}
html[data-theme=dark] .notification-sound-controls button,html[data-theme=dark] button.notification-read-all{color:#f2a3b5}
html[data-theme=dark] .admin-menu button .support-pending{background:#2d3b40;color:#c7c7b8}
html[data-theme=dark] .admin-menu button .support-pending.has-pending{background:#c91c37;color:white}
html[data-theme=dark] .notification-target{outline-color:#d76a81!important;box-shadow:0 0 0 8px #6d344755!important}
html[data-theme=dark] .paydet{background:#1c292e;border-color:#c91c37;color:#e9e2cf}
html[data-theme=dark] .payref{background:#3e331b;border-color:#ab812b;color:#f6d88e}
html[data-theme=dark] .payamt{background:#177842;color:#fff}
html[data-theme=dark] .payment-panel,html[data-theme=dark] .payment-summary,html[data-theme=dark] .payment-upload,html[data-theme=dark] .payment-steps,html[data-theme=dark] .payment-success,html[data-theme=dark] .empty-state{background:var(--card);border-color:var(--bd);color:var(--tx)}
html[data-theme=dark] .hero-actions button{background:#b90d29;color:#fff4ed}
html[data-theme=dark] .hero-actions button.hero-secondary{background:#ffffff09;color:#dce8ff;border-color:#ffffff25}
html[data-theme=dark] .hero h2,html[data-theme=dark] .metric-revenue strong{color:#fff}
html[data-theme=dark] a{color:#ffa5b7}
html[data-theme=dark] .logo,html[data-theme=dark] .download-button{color:white}
html[data-theme=dark] ::selection{background:#a81531;color:white}
@media(max-width:700px){#hd .theme-toggle{width:30px;height:30px;min-height:30px;padding:6px}}

html[data-theme=dark] .mini-metrics>div,html[data-theme=dark] .record-heading,html[data-theme=dark] .payment-main,html[data-theme=dark] .home-editor .o,html[data-theme=dark] .payment-login{background:var(--card);border-color:var(--bd);color:var(--tx)}
html[data-theme=dark] .catalog-row .row button,html[data-theme=dark] .heading-actions a,html[data-theme=dark] .action-link,html[data-theme=dark] .audit-action{background:var(--surface-raised);border-color:var(--bd);color:var(--accent-text)}
html[data-theme=dark] .admin-menu button.on:after{background:#ec7188}html[data-theme=dark] .admin-panel label{color:var(--mu)}
html[data-theme=dark] .promo-code{color:#f0a3b5}html[data-theme=dark] .hero h2{color:#f1ead8}html[data-theme=dark] .payment-summary{background:linear-gradient(145deg,#131f23,#342027);color:#eee8d7}html[data-theme=dark] .payment-summary strong{color:#eee8d7}html[data-theme=dark] .metric-top i{color:#f49bb0;background:#b7193225}html[data-theme=dark] .metric-revenue .metric-top i{color:white;background:#ffffff20}
html[data-theme=dark] .chat-staff .chat-bubble,html[data-theme=dark] .chat-staff .chat-avatar{background:linear-gradient(135deg,#8f102a,#b91b36);color:#fff}html[data-theme=dark] .chat-staff .chat-role{background:#ffffff25;color:white}html[data-theme=dark] .chat-staff .chat-meta time{color:#efcbd3}
html[data-theme=dark] .payment-summary .muted,html[data-theme=dark] .summary-products{color:#bfb7a9}
html[data-theme=dark] .eyebrow{color:var(--accent-text)}
html[data-theme=dark] #cookie-banner{background:var(--card);color:var(--tx);border-color:var(--bd)}
html[data-theme=dark]{scrollbar-color:#445057 #10191e}html[data-theme=light]{scrollbar-color:#c6bbb0 #f5f2eb}
html[data-theme=dark] .notification-count,html[data-theme=dark] .notification-unread{background:var(--ac)}
.download-button{background:var(--ac);border-color:var(--ac)}.download-button:hover{background:#a5142c;border-color:#a5142c}
html[data-theme=dark] .account-pay-link{background:var(--surface-tint);color:var(--accent-text);border-color:#64333f}
