/* Barmajli portal — design tokens for the optional night palette.
   Loaded after portal.css so the light palette stays unchanged. */
html[data-theme="dark"]{
  color-scheme:dark;
  --bg:#081527;--surface:#132740;--surface-2:#10243d;
  --ink:#edf5ff;--muted:#a3b7d2;--line:#29435f;
  --orange:#55a4ff;--orange-2:#2477ef;--orange-soft:#17385e;
  --blue:#65adff;--violet:#aa9bff;--green:#55d4a5;--red:#ff8394;
  --shadow:0 18px 48px rgba(0,4,16,.30);
  --shadow-sm:0 8px 24px rgba(0,4,16,.23);
  --blue-soft:#183554;--blue-soft-2:#1d4369;--navy:#dceaff;
}

/* Scoped night-mode equivalents of hard-coded light-mode surfaces and text. */
html[data-theme="dark"] :is(.boot-view){background:#142943}
html[data-theme="dark"] :is(.boot-dots span){background:#382531}
html[data-theme="dark"] :is(.login-view){background:#142943}
html[data-theme="dark"] :is(.secure-pill){background:#142943;color:#c5d6ee}
html[data-theme="dark"] :is(.login-visual){background:linear-gradient(145deg,#142943 0,#11253e 100%);border:1px solid #2c4869}
html[data-theme="dark"] :is(.field label){color:#c5d6ee}
html[data-theme="dark"] :is(.input-shell){background:#142943}
html[data-theme="dark"] :is(.input-shell:focus-within){border-color:#2c4869}
html[data-theme="dark"] :is(.input-shell>svg){color:#a9bdd8}
html[data-theme="dark"] :is(.peek){color:#a9bdd8}
html[data-theme="dark"] :is(.login-footnote){color:#a9bdd8}
html[data-theme="dark"] :is(.portal-view){background:#142943}
html[data-theme="dark"] :is(.app-shell){background:#142943}
html[data-theme="dark"] :is(.icon-btn,.round-btn){background:#142943;color:#c5d6ee}
html[data-theme="dark"] :is(.hero-transfer){background:#142943;border:1px solid #2c4869}
html[data-theme="dark"] :is(.trade-switch){background:#11253e}
html[data-theme="dark"] :is(.trade-option){color:#c5d6ee}
html[data-theme="dark"] :is(.trade-option.active){background:#142943}
html[data-theme="dark"] :is(.network-indicator){background:#11253e;color:#c5d6ee}
html[data-theme="dark"] :is(.network-indicator.syriatel){background:#11253e}
html[data-theme="dark"] :is(.network-indicator.mtn){background:#382c28}
html[data-theme="dark"] :is(.phone-entry){background:#142943}
html[data-theme="dark"] :is(.phone-entry:focus-within){border-color:#2c4869}
html[data-theme="dark"] :is(.phone-icon){background:#11253e;color:#c5d6ee}
html[data-theme="dark"] :is(.hint){color:#a9bdd8}
html[data-theme="dark"] :is(.wholesale-note){background:#142943;border:1px solid #2c4869}
html[data-theme="dark"] :is(.note-icon){background:#142943}
html[data-theme="dark"] :is(.wholesale-note p){color:#c5d6ee}
html[data-theme="dark"] :is(.network-btn){background:#142943}
html[data-theme="dark"] :is(.network-btn small){color:#a9bdd8}
html[data-theme="dark"] :is(.network-btn i){background:#11253e}
html[data-theme="dark"] :is(.network-btn.selected){border-color:#2c4869;background:#142943}
html[data-theme="dark"] :is(.network-logo.syr){background:#11253e}
html[data-theme="dark"] :is(.network-logo.mtn){background:#382c28;color:#c5d6ee}
html[data-theme="dark"] :is(.section-mini-title small){color:#a9bdd8}
html[data-theme="dark"] :is(.operation-btn){background:#142943;color:#c5d6ee}
html[data-theme="dark"] :is(.operation-btn small){color:#a9bdd8}
html[data-theme="dark"] :is(.op-icon.blue){background:#142943}
html[data-theme="dark"] :is(.op-icon.violet){background:#11253e}
html[data-theme="dark"] :is(.op-icon.green){background:#11253e}
html[data-theme="dark"] :is(.operation-btn.active){border-color:#2c4869;background:#142943}
html[data-theme="dark"] :is(.service-tile){border:1px solid #2c4869;background:#142943}
html[data-theme="dark"] :is(.service-tile small){color:#a9bdd8}
html[data-theme="dark"] :is(.service-icon.game){background:#11253e}
html[data-theme="dark"] :is(.service-icon.bill){background:#11253e;color:#ff9da9}
html[data-theme="dark"] :is(.service-icon.transfer){background:#142943;color:#7bb7ff}
html[data-theme="dark"] :is(.service-icon.settle){background:#11253e;color:#74deb4}
html[data-theme="dark"] :is(.service-icon.account){background:#382c28}
html[data-theme="dark"] :is(.service-icon.more){background:#11253e;color:#c5d6ee}
html[data-theme="dark"] :is(.step-card){background:#142943;border:1px solid #2c4869}
html[data-theme="dark"] :is(.step-card.success){border-color:#2c4869;background:#142943}
html[data-theme="dark"] :is(.step-card.error){border-color:#2c4869;background:#142943}
html[data-theme="dark"] :is(.step-card.success .step-status-icon){background:#11253e}
html[data-theme="dark"] :is(.step-card.error .step-status-icon){background:#142943}
html[data-theme="dark"] :is(.step-description){color:#c5d6ee}
html[data-theme="dark"] :is(.step-card.success .step-description){color:#74deb4}
html[data-theme="dark"] :is(.step-options-title){color:#a9bdd8}
html[data-theme="dark"] :is(.step-option,.step-link){background:#142943;color:#c5d6ee}
html[data-theme="dark"] :is(.step-option:hover,.step-option:focus-visible,.step-link:hover,.step-link:focus-visible){border-color:#2c4869;background:#142943}
html[data-theme="dark"] :is(.step-empty){background:#142943;border:1px solid #2c4869;color:#c5d6ee}
html[data-theme="dark"] :is(.step-form){background:#142943;border:1px solid #2c4869}
html[data-theme="dark"] :is(.step-field-wrap>label){color:#c5d6ee}
html[data-theme="dark"] :is(.step-input-shell){background:#142943}
html[data-theme="dark"] :is(.step-input-shell:focus-within){background:#142943;border-color:#2c4869}
html[data-theme="dark"] :is(.step-input-icon){background:#11253e;color:#c5d6ee}
html[data-theme="dark"] :is(.step-field-hint){color:#a9bdd8}
html[data-theme="dark"] :is(.step-upload){border:1px dashed #2c4869;background:#142943}
html[data-theme="dark"] :is(.step-upload>span){background:#11253e}
html[data-theme="dark"] :is(.bottom-nav){border-top:1px solid #2c4869}
html[data-theme="dark"] :is(.nav-item){color:#a9bdd8}
html[data-theme="dark"] :is(.favorite-pick-btn,.mini-favorite-btn){background:#142943}
html[data-theme="dark"] :is(.debt-option){border-top:1px dashed #2c4869}
html[data-theme="dark"] :is(.switch-ui){background:#11253e}
html[data-theme="dark"] :is(.switch-ui:after){background:#142943}
html[data-theme="dark"] :is(.customer-price-wrap){background:#142943;border:1px solid #2c4869}
html[data-theme="dark"] :is(.customer-price-wrap>small){color:#c5d6ee}
html[data-theme="dark"] :is(.money-input){border:1px solid #2c4869;background:#142943}
html[data-theme="dark"] :is(.manager-card){background:#142943;border:1px solid #2c4869}
html[data-theme="dark"] :is(.search-shell){background:#142943}
html[data-theme="dark"] :is(.favorite-row,.customer-row,.ledger-row){border:1px solid #2c4869;background:#142943}
html[data-theme="dark"] :is(.tiny-btn){background:#142943}
html[data-theme="dark"] :is(.tiny-btn.danger){background:#142943}
html[data-theme="dark"] :is(.tiny-btn.primary){background:#142943;border-color:#2c4869}
html[data-theme="dark"] :is(.summary-box){background:#142943;border:1px solid #2c4869}
html[data-theme="dark"] :is(.summary-box.balance){background:#142943;border-color:#2c4869}
html[data-theme="dark"] :is(.filter-bar input){background:#142943}
html[data-theme="dark"] :is(.preset-btn){background:#142943}
html[data-theme="dark"] :is(.preset-btn.active){background:#11253e;border-color:#2c4869}
html[data-theme="dark"] :is(.ledger-row.payment .ledger-amount){color:#74deb4}
html[data-theme="dark"] :is(.modal-sheet){background:#142943}
html[data-theme="dark"] :is(.modal-handle){background:#11253e}
html[data-theme="dark"] :is(.modal-form label){color:#c5d6ee}
html[data-theme="dark"] :is(.modal-form input,.modal-form select,.modal-form textarea){background:#142943}
html[data-theme="dark"] :is(.customer-total.credit){color:#74deb4}
html[data-theme="dark"] :is(.amount-entry){background:#142943}
html[data-theme="dark"] :is(.amount-entry:focus-within){border-color:#2c4869}
html[data-theme="dark"] :is(.amount-icon){background:#11253e;color:#c5d6ee}
html[data-theme="dark"] :is(.tier-count){background:#11253e}
html[data-theme="dark"] :is(.tier-chip){border:1px solid #2c4869;background:#142943}
html[data-theme="dark"] :is(.tier-chip:hover,.tier-chip.selected){background:#11253e;border-color:#2c4869}
html[data-theme="dark"] :is(.tier-dialog-btn){background:#142943}
html[data-theme="dark"] :is(.modal-warning){border:1px solid #2c4869;background:#142943;color:#ff9da9}
html[data-theme="dark"] :is(.manager-tabs){background:#11253e}
html[data-theme="dark"] :is(.manager-tab){color:#c5d6ee}
html[data-theme="dark"] :is(.manager-tab.active){background:#142943}
html[data-theme="dark"] :is(.mini-spinner){border:2px solid #2c4869}
html[data-theme="dark"] :is(.transfer-row){border:1px solid #2c4869;background:#142943}
html[data-theme="dark"] :is(.status-pill.good){background:#11253e;color:#74deb4}
html[data-theme="dark"] :is(.status-pill.warn){background:#382c28}
html[data-theme="dark"] :is(.status-pill.bad){background:#142943}
html[data-theme="dark"] :is(.transfer-details span){background:#142943}
html[data-theme="dark"] :is(.record-reason){background:#142943}
html[data-theme="dark"] :is(.result-badge.good){background:#11253e;color:#74deb4}
html[data-theme="dark"] :is(.result-badge.good span){background:#18382f}
html[data-theme="dark"] :is(.result-badge.warn){background:#382c28}
html[data-theme="dark"] :is(.result-badge.warn span){background:#382c28}
html[data-theme="dark"] :is(.result-badge.bad){background:#142943}
html[data-theme="dark"] :is(.result-badge.bad span){background:#382531}
html[data-theme="dark"] :is(.result-order-id){background:#142943}
html[data-theme="dark"] :is(.result-grid>div){background:#11253e;border:1px solid #2c4869}
html[data-theme="dark"] :is(.result-message){background:#142943;color:#c5d6ee}
html[data-theme="dark"] :is(.result-close){background:#142943}
html[data-theme="dark"] :is(.secondary-auth-btn){background:#142943}
html[data-theme="dark"] :is(.register-form){background:#142943}
html[data-theme="dark"] :is(.register-form label){color:#c5d6ee}
html[data-theme="dark"] :is(.register-form input,.register-form select){background:#142943}
html[data-theme="dark"] :is(.register-form input:focus,.register-form select:focus){border-color:#2c4869}
html[data-theme="dark"] :is(.wallet-card){background:#142943;border:1px solid #2c4869}
html[data-theme="dark"] :is(.wholesale-target-card){background:#142943}
html[data-theme="dark"] :is(.wholesale-target-head span){color:#c5d6ee}
html[data-theme="dark"] :is(.register-form select){background:#142943}
html[data-theme="dark"] :is(.prepaid-balance-card){background:linear-gradient(145deg,#142943 0%,#142943 100%);border:1px solid #2c4869}
html[data-theme="dark"] :is(.wallet-card-title-row b){color:#c5d6ee}
html[data-theme="dark"] :is(.wallet-icon-badge){background:linear-gradient(135deg,#11253e,#382531)}
html[data-theme="dark"] :is(.wallet-status){background:#11253e;color:#74deb4}
html[data-theme="dark"] :is(.wallet-status.is-empty){background:#11253e;color:#ff9da9}
html[data-theme="dark"] :is(.wallet-balance-line strong){color:#c5d6ee}
html[data-theme="dark"] :is(.wallet-balance-line span){color:#c5d6ee}
html[data-theme="dark"] :is(.prepaid-balance-card small){color:#c5d6ee}
html[data-theme="dark"] :is(.prepaid-topup-tile){border-color:#2c4869!important;background:linear-gradient(145deg,#142943,#142943)!important}
html[data-theme="dark"] :is(.prepaid-topup-tile .service-icon.settle){background:linear-gradient(135deg,#11253e,#382531)!important}
html[data-theme="dark"] :is(.icon-scale-control){border:1px solid #2c4869}
html[data-theme="dark"] :is(.icon-scale-mark){background:#11253e;color:#c5d6ee}
html[data-theme="dark"] :is(.wholesale-code-chip){border:1px solid #2c4869;background:#142943}
html[data-theme="dark"] :is(.wholesale-code-chip.selected){background:#11253e;border-color:#2c4869}
html[data-theme="dark"] :is(.tier-picker-button){background:#142943}
html[data-theme="dark"] :is(.tier-picker-button:hover){border-color:#2c4869}
html[data-theme="dark"] :is(.tier-picker-button em){color:#a9bdd8}
html[data-theme="dark"] :is(.tier-dialog-btn.selected){background:#11253e;border-color:#2c4869}
html[data-theme="dark"] :is(.app-modal .modal-sheet){background:#142943}
html[data-theme="dark"] :is(.app-modal .modal-head){background:#142943}
html[data-theme="dark"] :is(.app-shell){background:linear-gradient(180deg,#142943 0%,#142943 100%)}
html[data-theme="dark"] :is(.menu-trigger){border:1px solid #2c4869;background:#142943;color:#dbeaff}
html[data-theme="dark"] :is(.profile-copy span){color:#a9bdd8}
html[data-theme="dark"] :is(.user-avatar){background:linear-gradient(145deg,#142943,#18365a);color:#7bb7ff;border:1px solid #2c4869}
html[data-theme="dark"] :is(.summary-card){background:linear-gradient(135deg,#142943 0%,#11253e 55%,#18365a 100%)}
html[data-theme="dark"] :is(.dues-summary-card){background:linear-gradient(135deg,#142943 0%,#142943 56%,#11253e 100%)}
html[data-theme="dark"] :is(.today-total-card){background:linear-gradient(135deg,#142943 0%,#18365a 64%,#18365a 100%)}
html[data-theme="dark"] :is(.today-count-card){background:linear-gradient(135deg,#142943 0%,#11253e 60%,#18365a 100%)}
html[data-theme="dark"] :is(.summary-card-head b){color:#dbeaff}
html[data-theme="dark"] :is(.summary-card-head small){color:#a9bdd8}
html[data-theme="dark"] :is(.summary-icon){color:#7bb7ff}
html[data-theme="dark"] :is(.summary-value strong){color:#dbeaff}
html[data-theme="dark"] :is(.summary-value span){color:#dbeaff}
html[data-theme="dark"] :is(.count-orb){background:radial-gradient(circle at 35% 30%,#142943,rgba(104,118,240,.15) 50%,rgba(43,124,241,.04) 75%)}
html[data-theme="dark"] :is(.stats-dots i){background:#18365a}
html[data-theme="dark"] :is(.currency-badge.syp){background:#11253e;color:#dbeaff}
html[data-theme="dark"] :is(.currency-badge.usd){background:#11253e;color:#74deb4}
html[data-theme="dark"] :is(.currency-copy small){color:#c5d6ee}
html[data-theme="dark"] :is(.currency-copy strong){color:#dbeaff}
html[data-theme="dark"] :is(.prepaid-balance-card){border-color:#2c4869;background:linear-gradient(145deg,#142943,#142943)}
html[data-theme="dark"] :is(.wallet-icon-badge){background:linear-gradient(135deg,#11253e,#18365a);color:#7bb7ff}
html[data-theme="dark"] :is(.hero-transfer){border:1px solid #2c4869}
html[data-theme="dark"] :is(.trade-switch){background:#142943;border:1px solid #2c4869}
html[data-theme="dark"] :is(.trade-option){color:#c5d6ee}
html[data-theme="dark"] :is(.field-label-row label,.section-mini-title span){color:#dbeaff}
html[data-theme="dark"] :is(.network-indicator.neutral){background:#11253e;color:#a9bdd8}
html[data-theme="dark"] :is(.phone-entry,.favorite-pick-btn,.tier-picker-button,.amount-entry,.money-input,.wholesale-target-card){border-color:#2c4869;background:#142943}
html[data-theme="dark"] :is(.phone-entry:focus-within,.input-shell:focus-within){border-color:#2c4869}
html[data-theme="dark"] :is(.phone-icon){background:#142943;color:#7bb7ff}
html[data-theme="dark"] :is(.favorite-pick-btn svg){color:#7bb7ff}
html[data-theme="dark"] :is(.wholesale-note){background:#142943;border-color:#2c4869}
html[data-theme="dark"] :is(.note-icon){background:#142943;color:#7bb7ff}
html[data-theme="dark"] :is(.wholesale-code-chip.selected,.tier-dialog-btn.selected){background:#11253e;border-color:#2c4869;color:#dbeaff}
html[data-theme="dark"] :is(.operation-btn){border-color:#2c4869;background:#142943}
html[data-theme="dark"] :is(.operation-btn.active){background:linear-gradient(180deg,#142943,#142943)}
html[data-theme="dark"] :is(.operation-btn.active b){color:#dbeaff}
html[data-theme="dark"] :is(.op-icon.blue){background:#11253e;color:#7bb7ff}
html[data-theme="dark"] :is(.op-icon.violet){background:#11253e}
html[data-theme="dark"] :is(.op-icon.green){background:#11253e;color:#74deb4}
html[data-theme="dark"] :is(.switch-ui){background:#11253e}
html[data-theme="dark"] :is(.bottom-nav){border-top:1px solid #2c4869}
html[data-theme="dark"] :is(.nav-item){color:#a9bdd8}
html[data-theme="dark"] :is(.nav-item.active){color:#dbeaff}
html[data-theme="dark"] :is(.drawer-panel){background:linear-gradient(180deg,#142943,#142943)}
html[data-theme="dark"] :is(.drawer-close){color:#dbeaff;background:#142943;border-color:#2c4869}
html[data-theme="dark"] :is(.drawer-brand strong){color:#dbeaff}
html[data-theme="dark"] :is(.drawer-brand small){color:#a9bdd8}
html[data-theme="dark"] :is(.drawer-shop-card){background:#142943;border:1px solid #2c4869}
html[data-theme="dark"] :is(.drawer-shop-icon){background:#142943;color:#7bb7ff}
html[data-theme="dark"] :is(.drawer-shop-card small){color:#a9bdd8}
html[data-theme="dark"] :is(.drawer-shop-card strong){color:#dbeaff}
html[data-theme="dark"] :is(.drawer-services-section .section-heading .kicker){color:#7bb7ff}
html[data-theme="dark"] :is(.drawer-services-section .service-tile){border-color:#2c4869;background:#142943}
html[data-theme="dark"] :is(.drawer-services-section .service-tile b){color:#dbeaff}
html[data-theme="dark"] :is(.drawer-services-section .service-tile small){color:#a9bdd8}
html[data-theme="dark"] :is(.drawer-services-section .service-icon.game,.drawer-services-section .service-icon.bill,.drawer-services-section .service-icon.transfer,.drawer-services-section .service-icon.history,.drawer-services-section .service-icon.security,.drawer-services-section .service-icon.contact,.drawer-services-section .service-icon.more){background:#142943;color:#7bb7ff}
html[data-theme="dark"] :is(.drawer-services-section .service-icon.settle){background:#11253e;color:#74deb4}
html[data-theme="dark"] :is(.drawer-services-section .service-icon.account){background:#382c28}
html[data-theme="dark"] :is(.drawer-services-section .service-icon.dues){background:#11253e}
html[data-theme="dark"] :is(.drawer-scale-control){border-color:#2c4869;background:#142943}
html[data-theme="dark"] :is(.drawer-scale-control output){background:#142943;color:#7bb7ff}
html[data-theme="dark"] :is(.drawer-logout){border:1px solid #2c4869;background:#142943}
html[data-theme="dark"] :is(.flow-title-wrap span){color:#a9bdd8}
html[data-theme="dark"] :is(.flow-title-wrap h1){color:#dbeaff}
html[data-theme="dark"] :is(.records-toolbar){background:linear-gradient(180deg,#142943 75%,rgba(245,249,255,0))}
html[data-theme="dark"] :is(.record-filter){border:1px solid #2c4869;background:#142943;color:#c5d6ee}
html[data-theme="dark"] :is(.transfer-record-card){border:1px solid #2c4869;background:#142943}
html[data-theme="dark"] :is(.transfer-record-card.mtn){background:linear-gradient(135deg,#142943 0%,#142943 100%)}
html[data-theme="dark"] :is(.transfer-record-card.syriatel){background:linear-gradient(135deg,#142943 0%,#142943 100%)}
html[data-theme="dark"] :is(.record-network strong){color:#dbeaff}
html[data-theme="dark"] :is(.record-network small){color:#a9bdd8}
html[data-theme="dark"] :is(.record-logo.mtn){color:#dbeaff}
html[data-theme="dark"] :is(.record-status.success){background:#11253e;color:#74deb4}
html[data-theme="dark"] :is(.record-status.failed){background:#11253e}
html[data-theme="dark"] :is(.record-status.pending){background:#382c28}
html[data-theme="dark"] :is(.record-reference span,.record-amount span,.record-target span,.record-meta-line span){color:#a9bdd8}
html[data-theme="dark"] :is(.record-reference strong){color:#dbeaff}
html[data-theme="dark"] :is(.record-amount){background:#142943}
html[data-theme="dark"] :is(.record-amount strong){color:#dbeaff}
html[data-theme="dark"] :is(.record-amount em){color:#dbeaff}
html[data-theme="dark"] :is(.record-target b,.record-meta-line b){color:#dbeaff}
html[data-theme="dark"] :is(.record-footer){color:#c5d6ee}
html[data-theme="dark"] :is(.dues-modal-card){border:1px solid #2c4869}
html[data-theme="dark"] :is(.dues-modal-card.syp){background:#142943}
html[data-theme="dark"] :is(.dues-modal-card.usd){background:#11253e}
html[data-theme="dark"] :is(.dues-modal-card span){color:#a9bdd8}
html[data-theme="dark"] :is(.dues-modal-card strong){color:#dbeaff}
html[data-theme="dark"] :is(.dues-modal-card small){color:#a9bdd8}
html[data-theme="dark"] :is(.app-modal .modal-sheet){background:#142943}
html[data-theme="dark"] :is(.app-modal .modal-head){background:#142943}
html[data-theme="dark"] :is(.kicker){color:#7bb7ff}
html[data-theme="dark"] :is(.tiny-btn.primary){background:#11253e;color:#dbeaff;border-color:#2c4869}
html[data-theme="dark"] :is(.round-btn){border-color:#2c4869;color:#dbeaff}
html[data-theme="dark"] :is(.icon-scale-control){border-color:#2c4869}
html[data-theme="dark"] :is(.icon-scale-control output){background:#142943;color:#7bb7ff}
html[data-theme="dark"] :is(.tier-picker-button:hover){border-color:#2c4869}
html[data-theme="dark"] :is(.today-count-card,.today-total-card,.dues-summary-card){background:linear-gradient(135deg,#142943 0%,#142943 56%,#11253e 100%)}
html[data-theme="dark"] :is(.records-controlbar){background:linear-gradient(180deg,#142943 78%,rgba(245,249,255,.94) 90%,rgba(245,249,255,0))}
html[data-theme="dark"] :is(.record-search-shell){background:#142943;border:1px solid #2c4869}
html[data-theme="dark"] :is(.record-search-shell input,.debt-search-shell input){color:#dbeaff}
html[data-theme="dark"] :is(.record-search-shell input::placeholder,.debt-search-shell input::placeholder){color:#a9bdd8}
html[data-theme="dark"] :is(.records-filter-button){border:1px solid #2c4869;background:#142943;color:#dbeaff}
html[data-theme="dark"] :is(.records-filter-button.active){background:#11253e;border-color:#2c4869;color:#dbeaff}
html[data-theme="dark"] :is(.records-filter-button span){border:2px solid #2c4869}
html[data-theme="dark"] :is(.records-filter-summary){color:#a9bdd8}
html[data-theme="dark"] :is(.records-loading){color:#a9bdd8}
html[data-theme="dark"] :is(.records-load-sentinel){color:#a9bdd8}
html[data-theme="dark"] :is(.record-filter-form label){color:#dbeaff}
html[data-theme="dark"] :is(.record-filter-form input,.record-filter-form select){border:1px solid #2c4869;background:#142943;color:#dbeaff}
html[data-theme="dark"] :is(.record-filter-form input:focus,.record-filter-form select:focus){border-color:#2c4869}
html[data-theme="dark"] :is(.filter-reset-btn){border:1px solid #2c4869;background:#142943}
html[data-theme="dark"] :is(.debt-search-shell){background:#142943;border:1px solid #2c4869}
html[data-theme="dark"] :is(.internal-platform-card){border:1px solid #2c4869;background:linear-gradient(145deg,#142943,#142943)}
html[data-theme="dark"] :is(.internal-platform-card .pic){background:#142943;color:#7bb7ff}
html[data-theme="dark"] :is(.internal-platform-card.sham .pic){background:#11253e;color:#74deb4}
html[data-theme="dark"] :is(.internal-platform-card.khuzai .pic){background:#11253e}
html[data-theme="dark"] :is(.internal-platform-card small){color:#a9bdd8}
html[data-theme="dark"] :is(.internal-platform-card em){color:#a9bdd8}
html[data-theme="dark"] :is(.internal-form-note){background:#142943;color:#c5d6ee}
html[data-theme="dark"] :is(.internal-choice button){background:#142943;color:#c5d6ee}
html[data-theme="dark"] :is(.internal-choice button.active){border-color:#2c4869;background:#142943;color:#dbeaff}
html[data-theme="dark"] :is(.file-picked){color:#74deb4}
html[data-theme="dark"] :is(.transfer-record-card.internal){background:linear-gradient(135deg,#142943 0%,#142943 100%)}
html[data-theme="dark"] :is(.transfer-record-card.bills){background:linear-gradient(135deg,#142943 0%,#142943 100%)}
html[data-theme="dark"] :is(.transfer-record-card.games){background:linear-gradient(135deg,#142943 0%,#142943 100%)}
html[data-theme="dark"] :is(.record-logo.abily4){background:#11253e;color:#dbeaff}
html[data-theme="dark"] :is(.record-logo.shamcash){background:#11253e}
html[data-theme="dark"] :is(.record-logo.khuzai){background:#11253e;color:#dbeaff}
html[data-theme="dark"] :is(.record-logo.bills){background:#11253e;color:#dbeaff}
html[data-theme="dark"] :is(.record-logo.games){background:#11253e}
html[data-theme="dark"] :is(.app-modal.service-dialog .modal-sheet){background:linear-gradient(180deg,#142943 0%,#142943 100%)}
html[data-theme="dark"] :is(.app-modal.service-dialog .modal-head h2){color:#dbeaff}
html[data-theme="dark"] :is(.app-modal.service-dialog .modal-handle){background:#18365a}
html[data-theme="dark"] :is(.app-modal.service-dialog .modal-body::-webkit-scrollbar-thumb){background:#18365a}
html[data-theme="dark"] :is(.service-request-form label){color:#dbeaff}
html[data-theme="dark"] :is(.service-request-form input,.service-request-form select,.service-request-form textarea){border-color:#2c4869;background:#142943;color:#dbeaff}
html[data-theme="dark"] :is(.service-request-form input:focus,.service-request-form select:focus,.service-request-form textarea:focus){border-color:#2c4869}
html[data-theme="dark"] :is(.service-request-form input:disabled,.service-request-form select:disabled,.service-request-form textarea:disabled){background:#142943}
html[data-theme="dark"] :is(.service-form-hero){border:1px solid #2c4869;background:linear-gradient(135deg,#142943,#142943)}
html[data-theme="dark"] :is(.service-form-icon){background:#142943;color:#7bb7ff}
html[data-theme="dark"] :is(.service-form-hero strong){color:#dbeaff}
html[data-theme="dark"] :is(.service-form-hero small){color:#a9bdd8}
html[data-theme="dark"] :is(.service-form-hero.games-hero){background:linear-gradient(135deg,#142943,#11253e);border-color:#2c4869}
html[data-theme="dark"] :is(.games-hero .service-form-icon){background:#142943}
html[data-theme="dark"] :is(.service-form-hero.bills-hero){background:linear-gradient(135deg,#142943,#11253e);border-color:#2c4869}
html[data-theme="dark"] :is(.bills-hero .service-form-icon){color:#7bb7ff}
html[data-theme="dark"] :is(.service-form-hero.sham-hero){background:linear-gradient(135deg,#142943,#142943);border-color:#2c4869}
html[data-theme="dark"] :is(.service-form-hero.khuzai-hero){background:linear-gradient(135deg,#142943,#11253e);border-color:#2c4869}
html[data-theme="dark"] :is(.khuzai-hero .service-form-icon){color:#dbeaff}
html[data-theme="dark"] :is(.service-price-card){border:1px solid #2c4869;background:#142943;color:#dbeaff}
html[data-theme="dark"] :is(.service-price-card strong){color:#dbeaff}
html[data-theme="dark"] :is(.service-choice-card){border:1px solid #2c4869!important;background:#142943!important}
html[data-theme="dark"] :is(.service-choice-card .service-choice-icon){background:#142943;color:#7bb7ff}
html[data-theme="dark"] :is(.service-choice-card b){color:#dbeaff}
html[data-theme="dark"] :is(.service-choice-card small){color:#a9bdd8}
html[data-theme="dark"] :is(.service-choice-card em){color:#a9bdd8}
html[data-theme="dark"] :is(.service-choice-card.internet .service-choice-icon){background:#11253e;color:#74deb4}
html[data-theme="dark"] :is(.service-choice-card.other .service-choice-icon){background:#142943}
html[data-theme="dark"] :is(.app-modal.service-dialog .internal-platform-card){border-color:#2c4869}
html[data-theme="dark"] :is(.request-progress){border:1px solid #2c4869;background:#142943;color:#dbeaff}
html[data-theme="dark"] :is(.request-progress-track){background:#18365a}
html[data-theme="dark"] :is(.service-result-card){border:1px solid #2c4869;background:#142943}
html[data-theme="dark"] :is(.service-result-icon){background:#11253e;color:#74deb4}
html[data-theme="dark"] :is(.service-result-card strong){color:#dbeaff}
html[data-theme="dark"] :is(.service-result-card p){color:#a9bdd8}
html[data-theme="dark"] :is(.service-result-card small){color:#a9bdd8}
html[data-theme="dark"] :is(.games-result .service-result-icon){background:#11253e}
html[data-theme="dark"] :is(.bills-result .service-result-icon){background:#11253e;color:#dbeaff}
html[data-theme="dark"] :is(.error-result .service-result-icon){background:#11253e}
html[data-theme="dark"] :is(.transfer-record-card.internal){border-color:#2c4869;background:linear-gradient(135deg,#142943 0%,#142943 100%)}
html[data-theme="dark"] :is(.transfer-record-card.internal.shamcash){background:linear-gradient(135deg,#142943 0%,#142943 55%,#142943 100%);border-color:#2c4869}
html[data-theme="dark"] :is(.transfer-record-card.internal.khuzai){background:linear-gradient(135deg,#142943 0%,#142943 100%);border-color:#2c4869}
html[data-theme="dark"] :is(.transfer-record-card.games){border-color:#2c4869;background:linear-gradient(135deg,#142943 0%,#142943 100%)}
html[data-theme="dark"] :is(.transfer-record-card.bills){border-color:#2c4869;background:linear-gradient(135deg,#142943 0%,#142943 100%)}
html[data-theme="dark"] :is(.record-logo.games){background:linear-gradient(145deg,#11253e,#142943);color:#dbeaff}
html[data-theme="dark"] :is(.record-logo.bills){background:linear-gradient(145deg,#11253e,#142943);color:#dbeaff}
html[data-theme="dark"] :is(.record-logo.abily4){background:linear-gradient(145deg,#11253e,#142943);color:#dbeaff}
html[data-theme="dark"] :is(.record-logo.shamcash){background:linear-gradient(145deg,#11253e,#142943);color:#dbeaff}
html[data-theme="dark"] :is(.record-logo.khuzai){background:linear-gradient(145deg,#11253e,#142943);color:#dbeaff}
html[data-theme="dark"] :is(.service-picker-intro){border:1px solid #2c4869;background:linear-gradient(135deg,#142943 0%,#142943 100%)}
html[data-theme="dark"] :is(.service-picker-intro-icon){background:#142943;color:#7bb7ff}
html[data-theme="dark"] :is(.service-picker-intro strong){color:#dbeaff}
html[data-theme="dark"] :is(.service-picker-intro small){color:#a9bdd8}
html[data-theme="dark"] :is(.service-picker-intro.internal-picker-intro){background:linear-gradient(135deg,#142943 0%,#142943 52%,#142943 100%)}
html[data-theme="dark"] :is(.service-option-card){border:1px solid #2c4869;background:linear-gradient(145deg,#142943 0%,#142943 100%)}
html[data-theme="dark"] :is(.service-option-card:hover){border-color:#2c4869}
html[data-theme="dark"] :is(.service-option-card.is-selected){background:linear-gradient(145deg,#142943 0%,var(--option-soft) 155%)}
html[data-theme="dark"] :is(.service-option-copy strong){color:#dbeaff}
html[data-theme="dark"] :is(.service-option-copy small){color:#a9bdd8}
html[data-theme="dark"] :is(.service-option-tail){background:#142943;color:#a9bdd8}
html[data-theme="dark"] :is(.service-route-loading){border:1px solid #2c4869;background:linear-gradient(135deg,#142943,#142943)}
html[data-theme="dark"] :is(.route-loader-orb){background:#142943}
html[data-theme="dark"] :is(.route-loader-orb span){border:2px solid #2c4869}
html[data-theme="dark"] :is(.service-route-loading strong){color:#dbeaff}
html[data-theme="dark"] :is(.service-route-loading small){color:#a9bdd8}
html[data-theme="dark"] :is(.service-route-progress){background:#18365a}
html[data-theme="dark"] :is(.today-profit-detail){color:#dbeaff}
html[data-theme="dark"] :is(.today-profit-detail strong){color:#74deb4}
html[data-theme="dark"] :is(.sales-summary-currency){border:1px solid #2c4869;background:linear-gradient(135deg,#142943,#142943)}
html[data-theme="dark"] :is(.sales-summary-caption){color:#dbeaff}
html[data-theme="dark"] :is(.sales-summary-figures>span){background:#142943}
html[data-theme="dark"] :is(.sales-summary-figures small){color:#a9bdd8}
html[data-theme="dark"] :is(.sales-summary-figures b){color:#dbeaff}
html[data-theme="dark"] :is(.sales-summary-figures .profit b){color:#74deb4}
html[data-theme="dark"] :is(.app-modal.transfer-result-dialog .modal-sheet){background:#142943}
html[data-theme="dark"] :is(.app-modal.transfer-result-dialog .modal-handle){background:#18365a}
html[data-theme="dark"] :is(.transfer-outcome-symbol){background:#11253e;color:#74deb4}
html[data-theme="dark"] :is(.transfer-outcome.failed .transfer-outcome-symbol){background:#11253e}
html[data-theme="dark"] :is(.transfer-outcome.pending .transfer-outcome-symbol){background:#382c28}
html[data-theme="dark"] :is(.transfer-outcome>strong){color:#dbeaff}
html[data-theme="dark"] :is(.transfer-outcome-order){border:1px solid #2c4869;background:#142943}
html[data-theme="dark"] :is(.transfer-outcome-order b){color:#dbeaff}
html[data-theme="dark"] :is(.transfer-outcome-detail,.transfer-outcome-warning){background:#11253e;color:#74deb4}
html[data-theme="dark"] :is(.transfer-outcome-warning){background:#11253e}
html[data-theme="dark"] :is(.boot-error){color:#ff9da9}
html[data-theme="dark"] :is(.record-sale-action){border:1px solid #2c4869;background:#142943;color:#dbeaff}
html[data-theme="dark"] :is(.record-sale-action:hover,.record-sale-action:focus-visible){background:#18365a;color:#dbeaff}
html[data-theme="dark"] :is(.sales-summary-missing){background:#11253e}
html[data-theme="dark"] :is(.currency-pane[data-state="due"]){border-color:#2c4869}
html[data-theme="dark"] :is(.currency-pane[data-state="credit"]){border-color:#2c4869}
html[data-theme="dark"] :is(.currency-pane[data-state="credit"] .currency-copy strong,.currency-pane[data-state="credit"] .currency-copy small){color:#74deb4}
html[data-theme="dark"] :is(.currency-pane[data-state="settled"] .currency-copy strong){color:#dbeaff}
html[data-theme="dark"] :is(.dues-modal-card.due){background:linear-gradient(145deg,#142943,#11253e);border-color:#2c4869}
html[data-theme="dark"] :is(.dues-modal-card.credit){background:linear-gradient(145deg,#142943,#11253e);border-color:#2c4869}
html[data-theme="dark"] :is(.dues-modal-card.credit strong,.dues-modal-card.credit .dues-state-label){color:#74deb4}
html[data-theme="dark"] :is(.dues-modal-card.settled){background:#142943}
html[data-theme="dark"] :is(.dues-modal-card .dues-state-label){color:#a9bdd8}
html[data-theme="dark"] :is(.dues-allowance){border:1px solid #2c4869;background:linear-gradient(145deg,#142943,#142943)}
html[data-theme="dark"] :is(.dues-allowance-title strong){color:#dbeaff}
html[data-theme="dark"] :is(.dues-allowance-title small){color:#c5d6ee}
html[data-theme="dark"] :is(.dues-allowance-grid>div){border:1px solid #2c4869}
html[data-theme="dark"] :is(.dues-allowance-grid small){color:#c5d6ee}
html[data-theme="dark"] :is(.dues-allowance-grid b){color:#dbeaff}
html[data-theme="dark"] :is(.dues-allowance-grid>.available){background:linear-gradient(110deg,#11253e,#142943);border-color:#2c4869}
html[data-theme="dark"] :is(.dues-allowance-grid>.available b){color:#dbeaff}

/* Intentional visual hierarchy: graphite-blue canvas, luminous blue interaction. */
html[data-theme="dark"],html[data-theme="dark"] body,
html[data-theme="dark"] .boot-view,html[data-theme="dark"] .login-view,
html[data-theme="dark"] .portal-view,html[data-theme="dark"] .app-shell,
html[data-theme="dark"] .login-shell{
  background:#081527;color:var(--ink);
}
html[data-theme="dark"] .app-shell{
  background:linear-gradient(180deg,#0a1930 0%,#0b1a2f 100%);
  box-shadow:0 0 0 1px rgba(126,172,236,.1),0 18px 80px #020a17;
}
html[data-theme="dark"] .app-header,
html[data-theme="dark"] .flow-header,
html[data-theme="dark"] .manager-header{
  background:rgba(11,27,47,.94);border-color:rgba(67,109,156,.27);
  backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
}
html[data-theme="dark"] .bottom-nav{
  background:rgba(13,29,51,.97);border-top:1px solid #2a4767;
  box-shadow:0 -8px 30px rgba(0,5,18,.36);
}
html[data-theme="dark"] .bottom-nav .nav-item{color:#9ab5d6}
html[data-theme="dark"] .bottom-nav .nav-item.active{color:#75bbff}
html[data-theme="dark"] .hero-transfer,
html[data-theme="dark"] .service-tile,
html[data-theme="dark"] .perm,
html[data-theme="dark"] .step-panel,
html[data-theme="dark"] .summary-card,
html[data-theme="dark"] .today-count-card,
html[data-theme="dark"] .today-total-card,
html[data-theme="dark"] .dues-summary-card{
  background:linear-gradient(150deg,#142b49 0%,#10243e 100%);
  color:var(--ink);border-color:#2b4768;
  box-shadow:0 12px 28px rgba(0,5,17,.16);
}
html[data-theme="dark"] .summary-card :is(b,strong,h2,h3),
html[data-theme="dark"] .service-tile :is(b,strong),
html[data-theme="dark"] .hero-transfer :is(b,strong,h1,h2),
html[data-theme="dark"] .drawer-panel :is(h1,h2,h3){color:var(--ink)}
html[data-theme="dark"] .record-search-shell,
html[data-theme="dark"] .debt-search-shell,
html[data-theme="dark"] .phone-entry,
html[data-theme="dark"] .amount-entry,
html[data-theme="dark"] .money-input,
html[data-theme="dark"] .input-shell,
html[data-theme="dark"] .step-input-shell,
html[data-theme="dark"] .tier-picker-button,
html[data-theme="dark"] .record-filter-form :is(input,select),
html[data-theme="dark"] :is(input:not([type="checkbox"]):not([type="range"]),select,textarea){
  background:#0d2037;color:#e7f2ff;border-color:#315172;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{color:#7f9bbd}
html[data-theme="dark"] :is(input,textarea,select):focus-visible,
html[data-theme="dark"] :is(button,[role="button"]):focus-visible{
  outline:2px solid #6bb9ff;outline-offset:2px;
}
html[data-theme="dark"] :is(button,select,input,textarea){color-scheme:dark}
html[data-theme="dark"] .records-controlbar{
  background:linear-gradient(180deg,#0b1c33 75%,rgba(11,28,51,0));
}
html[data-theme="dark"] .transfer-record-card,
html[data-theme="dark"] .transfer-record-card.mtn,
html[data-theme="dark"] .transfer-record-card.syriatel{
  background:linear-gradient(140deg,#142d4c,#0f233d);
  border:1px solid #2b4766;
}
html[data-theme="dark"] .transfer-record-card.mtn{
  background:linear-gradient(120deg,#142a45,#2a2b32);
}
html[data-theme="dark"] .transfer-record-card.syriatel{
  background:linear-gradient(120deg,#142a45,#312436);
}
html[data-theme="dark"] .transfer-record-card :is(b,strong){color:#e8f2ff}
html[data-theme="dark"] .record-amount{background:#1b3a61}
html[data-theme="dark"] .record-amount strong{color:#87c5ff}
html[data-theme="dark"] .app-modal .modal-sheet,
html[data-theme="dark"] .app-modal .modal-head{
  background:#0e2038;color:var(--ink);
}
html[data-theme="dark"] .modal-backdrop,
html[data-theme="dark"] .drawer-backdrop{background:rgba(0,6,18,.75)}
html[data-theme="dark"] .login-visual{
  background:linear-gradient(140deg,#142e54,#0e203d);
  border-color:#315376;
}
html[data-theme="dark"] .login-hero-card{
  background:rgba(19,41,70,.88);border-color:#315275;
  box-shadow:0 18px 42px rgba(0,4,16,.32);
}
html[data-theme="dark"] .drawer-panel{
  background:linear-gradient(165deg,#102641 0%,#0b1d33 66%,#09172b 100%);
  border-left:1px solid #304d6f;box-shadow:-24px 0 60px rgba(0,4,18,.60);
}
html[data-theme="dark"] .drawer-brand strong,
html[data-theme="dark"] .drawer-shop-card strong,
html[data-theme="dark"] .drawer-services-section .service-tile b{color:#edf4ff}
html[data-theme="dark"] .drawer-brand small,
html[data-theme="dark"] .drawer-shop-card small,
html[data-theme="dark"] .drawer-services-section .service-tile small{color:#9eb6d3}
html[data-theme="dark"] .drawer-shop-card{
  background:linear-gradient(130deg,#17365a,#10263f);
  border-color:#35587e;box-shadow:0 10px 25px rgba(0,4,18,.22);
}
html[data-theme="dark"] .drawer-services-section .service-tile{
  background:#142b49;border:1px solid #2b496c;
  box-shadow:none;
}
html[data-theme="dark"] .drawer-services-section .service-tile:hover,
html[data-theme="dark"] .drawer-services-section .service-tile:focus-visible{
  background:#1b406a;border-color:#4c8ed5;
}
html[data-theme="dark"] .drawer-scale-control{
  background:#142b49;border-color:#2b496c;
}
html[data-theme="dark"] .drawer-close{
  background:#1c3e64;color:#c1deff;border-color:#335c83;
}
html[data-theme="dark"] .drawer-logout{
  background:#382432;border-color:#724356;color:#ffb5c0;
}
html[data-theme="dark"] .drawer-settings{display:grid;gap:9px}
html[data-theme="dark"] .trade-switch,
html[data-theme="dark"] .manager-tabs{background:#0c2039}
html[data-theme="dark"] .trade-option.active,
html[data-theme="dark"] .manager-tab.active{background:#254e7e;color:#eff7ff}
html[data-theme="dark"] .network-btn.selected,
html[data-theme="dark"] .operation-btn.active,
html[data-theme="dark"] .tier-dialog-btn.selected{
  background:#1b4066;border-color:#5298e5;
}
html[data-theme="dark"] .prepaid-balance-card{
  background:linear-gradient(120deg,#182f4e,#11243d);
  border-color:#33557a;
}
html[data-theme="dark"] .wallet-balance-line strong,
html[data-theme="dark"] .wallet-card-title-row b{color:#e9f3ff}
html[data-theme="dark"] .dues-modal-card.syp{background:#172e50}
html[data-theme="dark"] .dues-modal-card.usd{background:#15362f}
html[data-theme="dark"] .dues-modal-card strong{color:#e7f4ff}
html[data-theme="dark"] .record-status.success{background:#153c32;color:#72e4af}
html[data-theme="dark"] .record-status.failed{background:#412431;color:#ff99a9}
html[data-theme="dark"] .record-status.pending{background:#3b3422;color:#f4d28b}
/* The switch is a full-sized, accessible button on small phones. */
.theme-toggle{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  width:100%;min-height:56px;border:1px solid #d8e7f8;border-radius:17px;
  background:#fff;color:#17375f;padding:9px 13px;text-align:right;
  box-shadow:0 5px 16px rgba(23,90,159,.05);cursor:pointer;
}
.theme-toggle .theme-toggle-copy{display:grid;gap:2px;flex:1;text-align:right}
.theme-toggle .theme-toggle-copy strong{font-size:12px;font-weight:950}
.theme-toggle .theme-toggle-copy small{font-size:10px;color:#7a92ad}
.theme-toggle .theme-toggle-icon{
  width:36px;height:36px;flex:none;border-radius:12px;
  display:grid;place-items:center;background:#ebf4ff;color:#2279e9;
}
.theme-toggle .theme-toggle-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8}
.theme-toggle .theme-toggle-track{
  width:42px;height:24px;border-radius:999px;background:#d7e4f4;
  padding:3px;direction:ltr;display:flex;align-items:center;
  transition:background .18s ease;
}
.theme-toggle .theme-toggle-track:after{
  content:"";width:18px;height:18px;border-radius:50%;background:#fff;
  box-shadow:0 2px 5px #091c3340;transition:transform .18s ease;
}
html[data-theme="dark"] .theme-toggle{
  background:#142c4b;color:#edf5ff;border-color:#355a80;box-shadow:none;
}
html[data-theme="dark"] .theme-toggle .theme-toggle-copy small{color:#9fb9d8}
html[data-theme="dark"] .theme-toggle .theme-toggle-icon{background:#1b436e;color:#b8ddff}
html[data-theme="dark"] .theme-toggle .theme-toggle-track{background:#2889ef}
html[data-theme="dark"] .theme-toggle .theme-toggle-track:after{transform:translateX(18px)}
.theme-toggle:hover,.theme-toggle:focus-visible{border-color:#4695eb;background:#eaf4ff;outline:none}
html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .theme-toggle:focus-visible{background:#1d4067;border-color:#5fa7f2}
.theme-toggle:focus-visible{box-shadow:0 0 0 3px rgba(60,150,250,.25)}
.login-theme-toggle{width:42px;min-width:42px;height:42px;min-height:42px;border-radius:14px;padding:0;justify-content:center}
.login-theme-toggle .theme-toggle-icon{background:transparent}
.login-theme-toggle .theme-toggle-copy,.login-theme-toggle .theme-toggle-track{display:none}
@media(min-width:700px){html[data-theme="dark"] body,html[data-theme="dark"] .login-view,
  html[data-theme="dark"] .portal-view{background:#06111e}}
@media(prefers-reduced-motion:reduce){.theme-toggle,.theme-toggle *{transition:none!important}}

/* Preserve readability of the signed-dues carousel (neutral/owed/credit). */
html[data-theme="dark"] .summary-card:before{background:rgba(61,126,204,.10)}
html[data-theme="dark"] .summary-card:after{background:rgba(32,98,174,.18)}
html[data-theme="dark"] .currency-pane{
  background:#193553;border:1px solid #355a80;color:#e6f2ff;
}
html[data-theme="dark"] .currency-copy :is(small,em){color:#a6bfda}
html[data-theme="dark"] .currency-copy strong{color:#f0f7ff}
html[data-theme="dark"] .currency-pane[data-state="due"]{
  background:#412936;border-color:#87505e;
}
html[data-theme="dark"] .currency-pane[data-state="due"] .currency-copy :is(strong,small){color:#ffb0be}
html[data-theme="dark"] .currency-pane[data-state="credit"]{
  background:#193c37;border-color:#35755e;
}
html[data-theme="dark"] .currency-pane[data-state="credit"] .currency-copy :is(strong,small){color:#8ce3b6}
html[data-theme="dark"] .currency-pane[data-state="settled"] .currency-copy strong{color:#eef6ff}
html[data-theme="dark"] .summary-card-head small,
html[data-theme="dark"] .summary-value span{color:#a8c0de}
html[data-theme="dark"] .summary-icon{
  background:#1f456c;border-color:#3b6899;color:#b8dcff;
}
/* Match blue hover feedback in both modes, without white hover flashes. */
html[data-theme="dark"] :is(.service-tile,.operation-btn,.network-btn,.favorite-pick-btn,.tier-picker-button,.round-btn):not(:disabled):hover{
  background:#1c4069;border-color:#568dca;
}
html[data-theme="dark"] :is(.service-tile,.operation-btn,.network-btn,.favorite-pick-btn,.tier-picker-button,.round-btn):not(:disabled):active{
  background:#26517f;border-color:#6aaefe;
}

/* Refinement: neutral finance cards in dark mode, color on numeric totals only. */
html[data-theme="dark"] .dues-summary-card .currency-pane[data-state="due"],
html[data-theme="dark"] .dues-summary-card .currency-pane[data-state="credit"],
html[data-theme="dark"] .dues-summary-card .currency-pane[data-state="settled"]{background:#183453;border-color:#325475}
html[data-theme="dark"] .dues-summary-card .currency-pane[data-state] .currency-copy small{color:#c2d4e7!important}
html[data-theme="dark"] .dues-summary-card .currency-pane[data-state] .currency-copy em{color:#bfd3e6}
html[data-theme="dark"] .dues-summary-card .currency-pane[data-state="due"] .currency-copy strong{color:#ff879c!important}
html[data-theme="dark"] .dues-summary-card .currency-pane[data-state="credit"] .currency-copy strong{color:#72e6b0!important}
html[data-theme="dark"] .dues-summary-card .currency-pane[data-state="settled"] .currency-copy strong{color:#eff6ff!important}
html[data-theme="dark"] .dues-modal-grid .dues-modal-card{background:#18334e!important;border:1px solid #365575!important}
html[data-theme="dark"] .dues-modal-grid .dues-modal-card>span{color:#e1edfc!important}
html[data-theme="dark"] .dues-modal-grid .dues-state-label{color:#c5d7ea!important}
html[data-theme="dark"] .dues-modal-grid .dues-modal-card>strong{color:#f0f7ff!important}
html[data-theme="dark"] .dues-modal-grid .dues-modal-card.due>strong{color:#ff879c!important}
html[data-theme="dark"] .dues-modal-grid .dues-modal-card.credit>strong{color:#72e6b0!important}
html[data-theme="dark"] .dues-modal-grid .dues-modal-card>small:last-child{color:#c3d7ec!important}
html[data-theme="dark"] .drawer-panel .drawer-identity-header{border-color:#30506f}
html[data-theme="dark"] .drawer-panel .drawer-shop-card{background:transparent;border:0;box-shadow:none}
html[data-theme="dark"] .drawer-shop-copy small{color:#b3cbe3!important}
html[data-theme="dark"] .drawer-shop-copy strong{color:#f2f7ff!important}
html[data-theme="dark"] .drawer-shop-caption{color:#95c8ff}
html[data-theme="dark"] .drawer-shop-photo{background:linear-gradient(145deg,#2468b4,#2e8de9);border-color:#477caf;box-shadow:0 9px 20px rgba(0,0,0,.25)}
html[data-theme="dark"] .drawer-photo-edit{background:#183854;border-color:#4d759e;color:#e2f0ff}
html[data-theme="dark"] .drawer-photo-status{background:#1a3a5c;color:#c6e0ff}
html[data-theme="dark"] .drawer-photo-status[data-error="true"]{background:#3f2934;color:#ffbac5}
html[data-theme="dark"] .retail-tier-mode{background:#0f2540;border-color:#335575}
html[data-theme="dark"] .retail-tier-mode button{color:#c5d7e9}
html[data-theme="dark"] .retail-tier-mode button.active{background:#23517e;border-color:#438ad0;color:#fff;box-shadow:none}
html[data-theme="dark"] .retail-pay-entry>label{color:#e1edfa}
html[data-theme="dark"] .retail-price-feedback,html[data-theme="dark"] .retail-pay-currency{color:#bed5ec}
html[data-theme="dark"] .retail-price-choice{background:#1b476d;border-color:#417aa8;color:#e8f5ff}

/* Keep profit GREEN in dark mode; a broad summary-card strong rule previously won. */
html[data-theme="dark"] .today-total-card .today-profit-detail #statTodayProfit,
html[data-theme="dark"] .stats-carousel .today-profit-detail strong{color:#73e6af!important}
html[data-theme="dark"] .sales-summary-figures .profit b{color:#73e6af!important}
/* Compact side-by-side retail inputs: consistent contrast in both themes. */
html[data-theme="dark"] .retail-tier-row .retail-pay-entry>label{color:#deedff}
html[data-theme="dark"] .retail-tier-row .retail-pay-input{background:#10253d;border-color:#416181}
html[data-theme="dark"] .retail-tier-row .retail-pay-input input{color:#f3f8ff;background:transparent}
html[data-theme="dark"] .retail-tier-row .retail-pay-input input::placeholder{color:#9bb9d6}
html[data-theme="dark"] .retail-tier-row .retail-pay-currency,
html[data-theme="dark"] .retail-price-feedback{color:#c4d9ee}

/* Keep the dashboard eye readable in both dark and light themes. */
html[data-theme="dark"] .header-stats-toggle{background:#142943;border-color:#2c4869;color:#8abfff}
html[data-theme="dark"] .header-stats-toggle:hover,
html[data-theme="dark"] .header-stats-toggle:focus-visible{background:#193d67;border-color:#4b9cff;color:#a9d3ff}

html[data-theme="dark"] .record-device-section{background:#162237;border-color:#34445c}
html[data-theme="dark"] .record-device-option{background:#1c2c45;border-color:#41526d}
html[data-theme="dark"] .device-filter-heading strong,html[data-theme="dark"] .record-device-option b{color:#e5f2ff}
html[data-theme="dark"] .record-device-section>small,html[data-theme="dark"] .record-device-option small{color:#a2b9d1}
html[data-theme="dark"] .phone-entry .last-transfer-button{background:#254365;border-color:#4b78aa;color:#cee5ff}
html[data-theme="dark"] .debt-settled-message{background:#153c32;border-color:#28725c;color:#baf2d5}


/* The microphone follows the existing dark-mode brand variables automatically. */
html[data-theme="dark"] .voice-feedback{background:#142943;border-color:#35587d;color:#e8f2ff;box-shadow:0 12px 32px rgba(0,5,18,.42)}
html[data-theme="dark"] .voice-feedback[data-error="true"]{color:#ffb1a6}

/* V3 voice display; the rest of the dark palette is unchanged. */
html[data-theme="dark"] .voice-v3-card.voice-feedback{background:#12243a;border-color:#355a80;box-shadow:0 14px 42px rgba(0,5,20,.55)}
html[data-theme="dark"] .voice-v3-message{color:#bbcee5}
html[data-theme="dark"] .voice-v3-top{color:#eef7ff}
html[data-theme="dark"] .voice-v3-cancel{border-color:#456381;color:#d9ebff}
