/* Persistent sitewide appearance. Images, brand artwork and financial actions stay intact. */
html[data-theme="dark"]{
  color-scheme:light;
  background:#F5F7FB;
  color:#1E293B;
  --prime-bg:#F5F7FB;--prime-bg-2:#F8FAFC;--prime-surface:#FFFFFF;--prime-surface-2:#F5F7FB;
  --prime-surface-3:#F8FAFC;--prime-field:#FCFDFF;
  --prime-line:#E2E8F0;--prime-line-soft:#E2E8F0;--prime-line-strong:#2563EB;
  --prime-orange:#2563EB;--prime-orange-2:#3B82F6;--prime-orange-soft:#2563EB;
  --prime-gold:#2563EB;--prime-cream:#1E293B;--prime-text:#1E293B;--prime-text-2:#64748B;--prime-muted:#64748B;
  --prime-shadow:0 10px 32px rgba(30,41,59,.08);--prime-glow:0 0 18px rgba(37,99,235,.14);
  --bg-deep:var(--prime-bg);--bg-primary:var(--prime-bg-2);--bg-secondary:var(--prime-surface-2);
  --bg-card:#fff;--bg-card-hover:#FCFDFF;--bg-glass:rgba(255,255,255,.96);
  --border:var(--prime-line-soft);--border-hover:var(--prime-line);--border-glow:var(--prime-line-strong);
  --text-primary:var(--prime-text);--text-secondary:var(--prime-text-2);--text-muted:var(--prime-muted);
  --accent-purple:var(--prime-orange);--accent-pink:var(--prime-gold);--accent-orange:var(--prime-orange-2);
  --gradient-btn:linear-gradient(135deg,#2563EB,#3B82F6);
  --gradient-hero:linear-gradient(135deg,#F8FAFC,#F5F7FB);
  --gradient-card:linear-gradient(135deg,#F8FAFC,#FFFFFF);
}
html[data-theme="light"]{
  color-scheme:light;
  --prime-bg:#F5F7FB;--prime-bg-2:#FCFDFF;--prime-surface:#FFFFFF;--prime-surface-2:#F8FAFC;
  --prime-surface-3:#FAFFFE;--prime-field:#FCFDFF;
  --prime-line:#E2E8F0;--prime-line-soft:#E2E8F0;--prime-line-strong:#2563EB;
  --prime-orange:#2563EB;--prime-orange-2:#3B82F6;--prime-orange-soft:#2563EB;
  --prime-gold:#2563EB;--prime-cream:#1E293B;--prime-text:#1E293B;--prime-text-2:#64748B;--prime-muted:#64748B;
  --prime-shadow:0 10px 32px rgba(30,41,59,.06);--prime-glow:0 0 18px rgba(37,99,235,.12);
  --bg-deep:var(--prime-bg);--bg-primary:var(--prime-bg-2);--bg-secondary:var(--prime-surface-2);
  --bg-card:#fff;--bg-card-hover:#FCFDFF;--bg-glass:rgba(255,255,255,.96);
  --border:var(--prime-line-soft);--border-hover:var(--prime-line);--border-glow:var(--prime-line-strong);
  --text-primary:var(--prime-text);--text-secondary:var(--prime-text-2);--text-muted:var(--prime-muted);
  --accent-purple:var(--prime-orange);--accent-pink:var(--prime-gold);--accent-orange:var(--prime-orange-2);
  --gradient-btn:linear-gradient(135deg,#2563EB,#3B82F6);
  --gradient-hero:linear-gradient(135deg,#FCFDFF,#F5F7FB);
  --gradient-card:linear-gradient(135deg,#FAFFFE,#FFFFFF);
}
.prime-theme-toggle{
  appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  width:38px;height:38px;min-width:38px;flex-shrink:0;padding:8px;border:1px solid var(--prime-line,#0e3b96);
  border-radius:12px;background:var(--prime-surface-2,#102653);color:var(--prime-orange-soft,#39a8ff);
  cursor:pointer;font:inherit;line-height:1;vertical-align:middle;
}
.prime-theme-toggle:hover{border-color:var(--prime-orange,#0A6CFF);box-shadow:var(--prime-glow)}
.prime-theme-toggle:focus-visible{outline:3px solid var(--prime-orange,#0A6CFF)!important;outline-offset:3px}
.prime-theme-toggle svg{width:20px;height:20px;flex-shrink:0}
.prime-theme-toggle .prime-theme-moon,.prime-theme-button-text{display:none}
html[data-theme="light"] .prime-theme-toggle .prime-theme-sun{display:none}
html[data-theme="light"] .prime-theme-toggle .prime-theme-moon{display:block}
.prime-theme-toggle.prime-theme-labeled{width:auto;padding-inline:12px}
.prime-theme-labeled .prime-theme-button-text{display:inline;font-size:13px;font-weight:600}
.prime-theme-toolbar{display:flex;justify-content:center;padding:20px 16px 0}
.mobile-menu.prime-drawer:not(.open){box-shadow:none!important}

/* The original shared theme contains dark !important surfaces; scope overrides to the selected mode. */
html[data-theme="light"],html[data-theme="light"] body{
  background-color:var(--prime-bg)!important;color:var(--prime-text)!important;
}
html[data-theme="light"] body{
  background-image:radial-gradient(circle at 85% 10%,rgba(63,127,255,.065),transparent 32%)!important;
}
html[data-theme="light"] .header,html[data-theme="light"] .adm-topbar,
html[data-theme="light"] .bottom-nav{
  background:rgba(255,255,255,.98)!important;border-color:var(--prime-line-soft)!important;
  box-shadow:0 4px 20px rgba(31,45,71,.065)!important;
}
html[data-theme="light"] .footer{background:var(--prime-surface)!important;border-color:var(--prime-line)!important}
html[data-theme="light"] .logo-title,html[data-theme="light"] .logo-text,
html[data-theme="light"] .adm-brand-name,html[data-theme="light"] .prime-user-name,
html[data-theme="light"] .footer h4{color:var(--prime-text)!important}
html[data-theme="light"] .nav-link,html[data-theme="light"] .footer a,
html[data-theme="light"] .mobile-menu-btn,html[data-theme="light"] .icon-btn,
html[data-theme="light"] .btn-icon,html[data-theme="light"] .cart-btn{
  color:var(--prime-text-2)!important;
}
html[data-theme="light"] .balance-pill,html[data-theme="light"] .currency-switch>button,
html[data-theme="light"] .top-btn,html[data-theme="light"] .top-user{
  background:#fff6ec!important;border-color:#b2c9f8!important;color:#0d388d!important;
}
html[data-theme="light"] .currency-menu a:hover,html[data-theme="light"] .currency-menu a.active,
html[data-theme="light"] .lang-switch a.active,html[data-theme="light"] .nav-link:hover,
html[data-theme="light"] .nav-link.active,html[data-theme="light"] .nav-link.current,
html[data-theme="light"] .btn-outline:hover,html[data-theme="light"] .btn-ghost:hover,
html[data-theme="light"] .xo-tab:hover,html[data-theme="light"] .xo-tab.active{
  background:#fff0e2!important;color:#003aae!important;
}
html[data-theme="light"] .card,html[data-theme="light"] .sidebar-card,
html[data-theme="light"] .hero,html[data-theme="light"] .product-card,
html[data-theme="light"] .cat-card,html[data-theme="light"] .feature-item,
html[data-theme="light"] .gateway-card,html[data-theme="light"] .addfunds-card,
html[data-theme="light"] .xo-card,html[data-theme="light"] .plat-card,
html[data-theme="light"] .oc-card,html[data-theme="light"] .oc-item,
html[data-theme="light"] .support-card,html[data-theme="light"] .support-hero,
html[data-theme="light"] .account-ref-card,html[data-theme="light"] .account-ref-hero,
html[data-theme="light"] .account-api-row,html[data-theme="light"] .svc-table-wrap,
html[data-theme="light"] .svc-group,html[data-theme="light"] .import-hero,
html[data-theme="light"] .auth-card,html[data-theme="light"] .auth-shell,
html[data-theme="light"] .dash-card,html[data-theme="light"] .stat-box,
html[data-theme="light"] .adm-server,html[data-theme="light"] .user-list,
html[data-theme="light"] .table-scroll,html[data-theme="light"] .ao-card,
html[data-theme="light"] .ao-cell,html[data-theme="light"] .ao-menu,
html[data-theme="light"] .profile-card,html[data-theme="light"] .toast{
  background:var(--prime-surface)!important;border-color:var(--prime-line)!important;
  color:var(--prime-text)!important;box-shadow:var(--prime-shadow)!important;
}
html[data-theme="light"] .account-ref-card-head,html[data-theme="light"] .support-card-title,
html[data-theme="light"] .addfunds-head,html[data-theme="light"] .xo-card-head,
html[data-theme="light"] .svc-group-head,html[data-theme="light"] .adm-table thead th,
html[data-theme="light"] .svc-table th{
  background:#f3f5f9!important;color:var(--prime-text)!important;border-color:var(--prime-line)!important;
}
html[data-theme="light"] .account-ref-hero,html[data-theme="light"] .support-hero,
html[data-theme="light"] .page-header,html[data-theme="light"] .account-ref-card-body,
html[data-theme="light"] .auth-side{
  background:linear-gradient(135deg,#fff7ee,#fff 72%)!important;border-color:#c9d4e3!important;
}
html[data-theme="light"] .form-control,html[data-theme="light"] .xo-select,
html[data-theme="light"] .xo-input,html[data-theme="light"] .account-input,
html[data-theme="light"] .account-textarea,html[data-theme="light"] .account-select,
html[data-theme="light"] .amount-input,html[data-theme="light"] .svc-search-box,
html[data-theme="light"] .top-search,html[data-theme="light"] textarea,html[data-theme="light"] select,
html[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]){
  background:var(--prime-field)!important;color:var(--prime-text)!important;border-color:#cfd6e0!important;
}
html[data-theme="light"] ::placeholder{color:#6c7788!important}
html[data-theme="light"] input[type="file"]{background:#fff!important;color:#232c3a!important;border-color:#d2dae5!important;color-scheme:light}
html[data-theme="light"] input[type="file"]::file-selector-button{background:#edf1f6;color:#232c3a;border:1px solid #d2dae5;border-radius:6px;padding:6px 10px;margin-inline-end:8px;cursor:pointer}
html[data-theme="light"] label,html[data-theme="light"] .form-group label,
html[data-theme="light"] .xo-field label,html[data-theme="light"] .support-form-body label,
html[data-theme="light"] .account-ref-card-body label{color:#4d5766!important}
html[data-theme="light"] .cat-trigger,html[data-theme="light"] .cat-picker,
html[data-theme="light"] .svc-list,html[data-theme="light"] .svc-item,
html[data-theme="light"] .xo-meta-item,html[data-theme="light"] .xo-charge,
html[data-theme="light"] .xo-desc,html[data-theme="light"] .gw-row,
html[data-theme="light"] .gw-tile,html[data-theme="light"] .gateway-opt,
html[data-theme="light"] .check-line,html[data-theme="light"] .support-search,
html[data-theme="light"] .support-ticket-item,html[data-theme="light"] .ticket-meta-strip span,
html[data-theme="light"] .ticket-meta-strip a{background-color:#f7f9fc!important;border-color:var(--prime-line)!important}
html[data-theme="light"] .cat-picker,html[data-theme="light"] .svc-list{box-shadow:var(--prime-shadow)!important}
html[data-theme="light"] .xo-charge strong,html[data-theme="light"] .xo-meta-item strong,
html[data-theme="light"] .srate,html[data-theme="light"] .svc-table .srate{color:#043eb1!important}
html[data-theme="light"] .svc-table td,html[data-theme="light"] .adm-table td,
html[data-theme="light"] .adm-table th{border-color:var(--prime-line-soft)!important}
html[data-theme="light"] .mobile-menu.prime-drawer,html[data-theme="light"] .adm-sidebar{
  background:linear-gradient(180deg,#fff,#f6f8fb)!important;border-color:var(--prime-line)!important;
}
html[data-theme="light"] .mobile-menu.prime-drawer.open{box-shadow:18px 0 45px #23304a22!important}
html[data-theme="light"] .prime-user-card{background:#fff7ef!important;border-color:#a9c3f7!important}
html[data-theme="light"] .prime-menu-group-head,html[data-theme="light"] .prime-menu-items a,
html[data-theme="light"] .prime-drawer-nav a,html[data-theme="light"] .prime-user-label,
html[data-theme="light"] .adm-nav a,html[data-theme="light"] .ao-menu a,
html[data-theme="light"] .ao-menu button{color:var(--prime-text-2)!important}
html[data-theme="light"] .adm-nav a.active,html[data-theme="light"] .adm-nav a:hover,
html[data-theme="light"] .ao-menu button:hover,html[data-theme="light"] .ao-menu a:hover,
html[data-theme="light"] .prime-menu-items a:hover,html[data-theme="light"] .prime-menu-items a.current{
  background:#fff0e2!important;color:#003aae!important;
}
html[data-theme="light"] .bottom-nav a{color:#596477!important}
html[data-theme="light"] .bottom-nav a.active{color:#0142c3!important}
html[data-theme="light"] .bottom-nav .bn-center{border-color:#fff!important;color:#fff!important}
html[data-theme="light"] .admin-login-body{background:radial-gradient(circle at 75% 20%,#e1ebff,transparent 45%),var(--prime-bg)!important}
html[data-theme="light"] .auth-shell{background:#fff!important}
html[data-theme="light"] .auth-hero::before,html[data-theme="light"] .auth-hero::after{display:none}
html[data-theme="light"] .btn-login{background:var(--gradient-btn)!important;color:#fff!important;box-shadow:0 7px 20px #0046d224!important}
html[data-theme="light"] .auth-meta-row a{color:#003aae!important}
html[data-theme="light"] .auth-status-pill,html[data-theme="light"] .auth-secondary{background:#f4f6f9!important;color:var(--prime-text-2)!important;border-color:var(--prime-line)!important}
html[data-theme="light"] .auth-success{background:#edf9f1!important;color:#166638!important;border-color:#b8dfc4!important}
html[data-theme="light"] .auth-warning{background:#ddf1ff!important;color:#005592!important;border-color:#8ecaf4!important}
html[data-theme="light"] .auth-side [style*="color:#fff"],
html[data-theme="light"] .auth-side [style*="color: #fff"]{color:var(--prime-text)!important}
html[data-theme="light"] .ai-panel{background:#fff!important;color:var(--prime-text)!important}
html[data-theme="light"] .ai-head,html[data-theme="light"] .ai-bubble.bot,
html[data-theme="light"] .ai-bubble.user{background:#fff4e8!important;color:var(--prime-text)!important}
html[data-theme="light"] .ai-head span{color:#073ead!important}
html[data-theme="light"] .alert.success,html[data-theme="light"] .alert-success{background:#edf9f1!important;color:#166638!important;border-color:#b8dfc4!important}
html[data-theme="light"] .alert.error,html[data-theme="light"] .alert-danger{background:#fff0f0!important;color:#9b2424!important;border-color:#efc0c0!important}

/* Independent UC storefront, receipts, payment result, wallet, and administration. */
html[data-theme="light"] .pg-store,html[data-theme="light"] .pg-admin{
  --pg-bg:#f7f8fb;--pg-card:#fff;--pg-line:#dce1e9;--pg-orange:#0046d2;
  --pg-text:#202735;--pg-muted:#5e6c7e;color:var(--pg-text)!important;
}
html[data-theme="light"] .pg-admin{background:#f7f8fb!important}
html[data-theme="light"] .pg-admin input[type="file"]{background:#fff!important;color:#232c3a!important;border-color:#d2dae5!important;color-scheme:light}
html[data-theme="light"] .pg-hero{
  background:radial-gradient(circle at 8% 85%,#c5d8ff,transparent 40%),linear-gradient(130deg,#fff5e8,#fff 65%)!important;
  border-color:#c6d3e5!important;color:var(--pg-text)!important;
}
html[data-theme="light"] .pg-hero h1{color:#252b37!important}
html[data-theme="light"] .pg-hero h1 span{background:linear-gradient(110deg,#003cb5,#145df0)!important;background-clip:text!important;-webkit-background-clip:text!important;color:transparent!important}
html[data-theme="light"] .pg-hero p,html[data-theme="light"] .pg-help,
html[data-theme="light"] .pg-description,html[data-theme="light"] .pg-field>span{color:var(--pg-muted)!important}
html[data-theme="light"] .pg-tags span,html[data-theme="light"] .pg-pill,
html[data-theme="light"] .pg-receipt-tags>*,html[data-theme="light"] .pg-receipt-region,
html[data-theme="light"] .pg-receipt-payment-method{background:#fff3e6!important;color:#1044ac!important;border-color:#c6d3e5!important}
html[data-theme="light"] .pg-package,html[data-theme="light"] .pg-card,
html[data-theme="light"] .pg-history-card,html[data-theme="light"] .pg-payment-result{
  background:#fff!important;color:var(--pg-text)!important;border-color:var(--pg-line)!important;box-shadow:var(--prime-shadow)!important;
}
html[data-theme="light"] .pg-package.selected{background:linear-gradient(145deg,#e1ebff,#fff)!important;border-color:#3171f1!important}
html[data-theme="light"] .pg-package-price,html[data-theme="light"] .pg-stats strong,
html[data-theme="light"] .pg-total strong,html[data-theme="light"] .pg-uc,
html[data-theme="light"] .pg-checkout strong{color:var(--pg-text)!important}
html[data-theme="light"] .pg-package-status{color:#1045ae!important}
html[data-theme="light"] .pg-package-status.pg-visible{color:#226a3b!important}
html[data-theme="light"] .pg-secondary,html[data-theme="light"] .pg-store-off{
  background:#f2f4f8!important;color:var(--pg-text)!important;border-color:var(--pg-line)!important;
}
html[data-theme="light"] .pg-sidebar{background:#fff!important;border-color:var(--pg-line)!important}
html[data-theme="light"] .pg-sidebar nav a{color:var(--pg-muted)!important}
html[data-theme="light"] .pg-sidebar nav a.active{color:#003aae!important;background:#fff0e2!important}
html[data-theme="light"] .pg-table th,html[data-theme="light"] .pg-table td{background:#fff!important;color:var(--pg-text)!important;border-color:var(--pg-line)!important}
html[data-theme="light"] .pg-table th{background:#f4f6f9!important}
html[data-theme="light"] .pg-alert{background:#edf9f1!important;color:#196336!important;border-color:#b7dec3!important}
html[data-theme="light"] .pg-error{background:#fff0f0!important;color:#9b2424!important;border-color:#efc0c0!important}
html[data-theme="light"] .pg-receipt-metadata>div,html[data-theme="light"] .pg-receipt-delivery,
html[data-theme="light"] .pg-receipt-timeline li,html[data-theme="light"] .pg-payment-notice,
html[data-theme="light"] .pg-receipt-progress,html[data-theme="light"] .pg-history-card-footer{
  background:#f5f7fa!important;color:var(--pg-text)!important;border-color:var(--pg-line)!important;
}
html[data-theme="light"] .pg-receipt-description,html[data-theme="light"] .pg-receipt-state-note,
html[data-theme="light"] .pg-receipt-metadata dt,html[data-theme="light"] .pg-receipt-timezone,
html[data-theme="light"] .pg-receipt-progress-caption,html[data-theme="light"] .pg-receipt-item-title small,
html[data-theme="light"] .pg-history-card-product small{color:var(--pg-muted)!important}
html[data-theme="light"] .pg-receipt-metadata dd,html[data-theme="light"] .pg-receipt-product-heading,
html[data-theme="light"] .pg-receipt-items h2,html[data-theme="light"] .pg-receipt-item-title,
html[data-theme="light"] .pg-receipt-progress-heading,html[data-theme="light"] .pg-history-card-product,
html[data-theme="light"] .pg-receipt-price{color:var(--pg-text)!important}
html[data-theme="light"] .pg-receipt-badge-pending,html[data-theme="light"] .pg-receipt-badge-processing{background:#def1ff!important;color:#002e8b!important;border-color:#8dc9f4!important}
html[data-theme="light"] .pg-receipt-badge-completed{background:#edf8f0!important;color:#1d713e!important;border-color:#b9dec4!important}
html[data-theme="light"] .pg-receipt-badge-failed,html[data-theme="light"] .pg-receipt-badge-cancelled{background:#fff0f0!important;color:#9b2424!important;border-color:#efc0c0!important}
html[data-theme="light"] .pg-receipt-badge{background:#def1ff;color:#002e8b;border-color:#8dc9f4}
html[data-theme="light"] .pg-receipt-product-image{background:radial-gradient(circle,#d8e5ff,transparent 70%),#f5f7fa!important;border-color:var(--pg-line)!important;box-shadow:var(--prime-shadow)!important}
html[data-theme="light"] .pg-receipt-progress-value>b,
html[data-theme="light"] .pg-history-card-bottom>strong,
html[data-theme="light"] .pg-history-card-product p,
html[data-theme="light"] .pg-history-card-footer>span,
html[data-theme="light"] .pg-payment-list strong,
html[data-theme="light"] .pg-uc-credit-summary>strong,
html[data-theme="light"] .pg-receipt-payment-method strong{color:#0f41a4!important}
html[data-theme="light"] .pg-receipt-completed .pg-receipt-progress-value>b,
html[data-theme="light"] .pg-receipt-completed .pg-receipt-state-note,
html[data-theme="light"] .pg-credit-positive{color:#247044!important}
html[data-theme="light"] .pg-credit-negative{color:#a33228!important}
html[data-theme="light"] .pg-receipt-item-number{color:#0c3c9d!important;background:#dbe7ff!important;border-color:#90b2f5!important}
html[data-theme="light"] .pg-receipt-delivery-completed .pg-receipt-item-number{color:#237044!important;background:#eaf7ef!important;border-color:#bbddc6!important}
html[data-theme="light"] .pg-receipt-timeline li>span:not(.pg-receipt-event-dot){color:#1043a9!important;background:#fff7e9!important;border-color:#bdccdf!important}
html[data-theme="light"] .pg-receipt-timeline li.pg-receipt-event-completed>span:not(.pg-receipt-event-dot),
html[data-theme="light"] .pg-receipt-refund{color:#21693b!important;background:#eaf7ef!important;border-color:#badac3!important}
html[data-theme="light"] .pg-receipt progress,html[data-theme="light"] .pg-history-card progress,
html[data-theme="light"] .pg-receipt progress::-webkit-progress-bar,
html[data-theme="light"] .pg-history-card progress::-webkit-progress-bar{background:#e3e7ed!important}
html[data-theme="light"] .srv-row .ok,html[data-theme="light"] .sb-change.up,
html[data-theme="light"] .st-badge.ok,html[data-theme="light"] .u-bal{color:#21733d!important}
html[data-theme="light"] .st-badge.wait{color:#003193!important}
html[data-theme="light"] .st-badge.fail,html[data-theme="light"] .sb-change.down{color:#b83232!important}
html[data-theme="light"] .st-badge.run{color:#2e5ab6!important}

/* SMM pages load additional visual layers after the shared head. Keep their order logic intact. */
html[data-theme="light"] body.page-new-order{
  --fo-panel:#fff;--fo-panel-2:#f7f9fc;--fo-line:#d9dee7;--fo-text:#202735;--fo-muted:#657184;
  --fo-orange:#0046d2;--fo-orange-2:#0142c3;--fo-gold:#1043a8;background:var(--prime-bg)!important;color:var(--prime-text)!important;
}
html[data-theme="light"] body.page-new-order .header,
html[data-theme="light"] body.page-new-order .plat-card,
html[data-theme="light"] body.page-new-order .xo-card,
html[data-theme="light"] body.page-new-order .xo-card-head,
html[data-theme="light"] body.page-new-order .cat-trigger,
html[data-theme="light"] body.page-new-order .svc-trigger,
html[data-theme="light"] body.page-new-order .xo-readonly,
html[data-theme="light"] body.page-new-order .cat-picker,
html[data-theme="light"] body.page-new-order .svc-picker,
html[data-theme="light"] body.page-new-order .search-results,
html[data-theme="light"] body.page-new-order .cat-item,
html[data-theme="light"] body.page-new-order .svc-item,
html[data-theme="light"] body.page-new-order .fo-service-details,
html[data-theme="light"] body.page-new-order .fo-details-head,
html[data-theme="light"] body.page-new-order .xo-info-card,
html[data-theme="light"] body.page-new-order .xo-info-item,
html[data-theme="light"] body.page-new-order .xo-info-notes,
html[data-theme="light"] body.page-new-order .search-hit{
  background:#fff!important;border-color:var(--prime-line)!important;color:var(--prime-text)!important;box-shadow:var(--prime-shadow)!important;
}
html[data-theme="light"] body.page-new-order .plat-btn .plat-ico{background:#edf0f5!important;border-color:#bcc5d1!important;box-shadow:0 4px 10px #25324712!important}
html[data-theme="light"] body.page-new-order .logo-title,
html[data-theme="light"] body.page-new-order .balance-pill,
html[data-theme="light"] body.page-new-order .currency-switch>button,
html[data-theme="light"] body.page-new-order .mobile-menu-btn,
html[data-theme="light"] body.page-new-order .c-name,
html[data-theme="light"] body.page-new-order .svc-item-name,
html[data-theme="light"] body.page-new-order .c-new,
html[data-theme="light"] body.page-new-order .row-new,
html[data-theme="light"] body.page-new-order .fo-details-head>span,
html[data-theme="light"] body.page-new-order .xo-info-item strong,
html[data-theme="light"] body.page-new-order .search-hit .sname{color:var(--prime-text)!important}
html[data-theme="light"] body.page-new-order .balance-pill,
html[data-theme="light"] body.page-new-order .currency-switch>button,
html[data-theme="light"] body.page-new-order .lang-switch a,
html[data-theme="light"] body.page-new-order .mobile-menu-btn{background:#fff4e9!important;border-color:#b2c9f8!important}
html[data-theme="light"] body.page-new-order .xo-hint,
html[data-theme="light"] body.page-new-order .placeholder,
html[data-theme="light"] body.page-new-order .fo-details-head small,
html[data-theme="light"] body.page-new-order .xo-info-notes{color:var(--prime-text-2)!important}
html[data-theme="light"] body.page-new-order .cat-item.active,
html[data-theme="light"] body.page-new-order .svc-item.selected,
html[data-theme="light"] body.page-new-order .search-hit:hover{background:#fff0e2!important;color:#003aae!important;border-color:#6291f0!important}
html[data-theme="light"] .myorders-hero,html[data-theme="light"] .myorders-tools,
html[data-theme="light"] .myorders-table-card,html[data-theme="light"] .orders-search-form,
html[data-theme="light"] .orders-ref-table th,html[data-theme="light"] .orders-ref-table tbody tr,
html[data-theme="light"] .orders-ref-table tbody tr:nth-child(even),html[data-theme="light"] .orders-swipe-hint,
html[data-theme="light"] .support-file-box{
  background:#fff!important;color:var(--prime-text)!important;border-color:var(--prime-line)!important;box-shadow:var(--prime-shadow)!important;
}
html[data-theme="light"] .orders-ref-table th,html[data-theme="light"] .orders-swipe-hint{background:#f2f5f9!important}
html[data-theme="light"] .myorders-shell,html[data-theme="light"] .myorders-hero-title i,
html[data-theme="light"] .order-id,html[data-theme="light"] .order-charge,
html[data-theme="light"] .order-remains,html[data-theme="light"] .orders-empty strong,
html[data-theme="light"] .account-ref-shell,html[data-theme="light"] .account-ref-title,
html[data-theme="light"] .account-ref-card-body h3,html[data-theme="light"] .account-copy,
html[data-theme="light"] .account-api-row code,html[data-theme="light"] .account-ref-crumb,
html[data-theme="light"] .auth-side h2,html[data-theme="light"] .auth-features .f strong,
html[data-theme="light"] .auth-panel h1,html[data-theme="light"] .support-ticket-item,
html[data-theme="light"] .prime-drawer-brand,html[data-theme="light"] .prime-brand-copy strong,
html[data-theme="light"] .prime-menu-group-label{color:var(--prime-text)!important}
html[data-theme="light"] .myorders-breadcrumb,html[data-theme="light"] .order-date,
html[data-theme="light"] .orders-filter,html[data-theme="light"] .orders-empty span,
html[data-theme="light"] .prime-menu-items a i,html[data-theme="light"] .prime-drawer-bottom-links a{color:var(--prime-text-2)!important}
html[data-theme="light"] .orders-filter.active,html[data-theme="light"] .orders-filter:hover{background:#fff0e2!important;color:#003aae!important;border-color:#6291f0!important}
html[data-theme="light"] .orders-filter.active i,html[data-theme="light"] .auth-side .badge,
html[data-theme="light"] .auth-foot a{color:#003aae!important}
html[data-theme="light"] .orders-note.success{background:#edf9f1!important;color:#166638!important;border-color:#b8dfc4!important}
html[data-theme="light"] .orders-note.error{background:#fff0f0!important;color:#9b2424!important;border-color:#efc0c0!important}
html[data-theme="light"] .prime-menu-title{color:var(--prime-text)!important}
html[data-theme="light"] .account-select{color-scheme:light}

/* Public mobile legal pages deliberately also work without a configured database. */
html[data-theme] .wrap>main{background:var(--prime-surface,#0a1d42)!important;border-color:var(--prime-line,#154173)!important;color:var(--prime-text,#f8faff)!important}
html[data-theme] .wrap .date,html[data-theme] .wrap>footer{color:var(--prime-text-2,#bbcee9)!important}
html[data-theme] .wrap a{color:var(--prime-orange-soft,#39a8ff)}
html[data-theme="light"] .wrap .draft{background:#ddf1ff;color:#1c4573;border-color:#65b7f1}
html[data-theme="dark"] .wrap .draft{background:#F8FAFC;color:#1E293B;border-color:#E2E8F0}

@media(max-width:900px){
  .header-left>.prime-theme-toggle{width:30px;height:32px;min-width:30px;padding:5px;border-radius:10px}
  .header-left>.prime-theme-toggle svg{width:18px;height:18px}
}
@media(max-width:480px){
  /* Keep every control reachable without widening the document at narrow mobile sizes. */
  .header .header-inner{flex-wrap:wrap!important}
  .header{height:auto!important}
  .header .header-inner{height:auto!important;min-height:48px}
  .header .header-left{flex-wrap:wrap;justify-content:flex-end;min-width:0;max-width:100%}
}
@media(prefers-reduced-motion:reduce){.prime-theme-toggle{transition:none!important}}
@media print{.prime-theme-toggle{display:none!important}}

/* Sitewide fallbacks for Emerald v2 */
html[data-theme="dark"]{background:#F5F7FB!important;color:#1E293B!important;color-scheme:light!important;
  --prime-bg:#F5F7FB;--prime-bg-2:#EFF4FC;--prime-text:#1E293B;--prime-text-2:#64748B;
  --prime-surface:#FFFFFF;--prime-surface-2:#F1F5F9;--prime-field:#FAFCFF;--prime-line:#D9E3F0;
  --prime-orange:#2563EB;--prime-orange-2:#2563EB;--prime-muted:#64748B;--prime-blue:#2563EB;
}
html[data-theme="light"]{background:#F5F7FB!important;color:#1E293B!important;color-scheme:light!important;
  --prime-bg:#F5F7FB;--prime-bg-2:#FCFDFF;--prime-text:#1E293B;--prime-text-2:#64748B;
  --prime-surface:#FFFFFF;--prime-surface-2:#EFF4FC;--prime-field:#FCFDFF;--prime-line:#D9E3F0;
  --prime-orange:#2563EB;--prime-orange-2:#2563EB;--prime-muted:#64748B;--prime-blue:#2563EB;
}
