/* YHpay final blue-white theme guard — loaded after the legacy stylesheet. */
:root{
  --bg:#f3f7fd!important;
  --panel:#fff!important;
  --panel2:#f7faff!important;
  --line:#d7e4f2!important;
  --gold:#1677ff!important;
  --gold2:#0b5fc6!important;
  --text:#10233f!important;
  --muted:#667b96!important;
}

html,body,.app-shell,.content{background:#f3f7fd!important;color:#10233f!important}
.login-shell{background:linear-gradient(145deg,#f8fbff,#e8f2ff)!important}
.login-card,.sidebar,.topbar,.panel,.stat,.table-wrap,.modal-card,.admin-modal-card,
.yh-ad-card,.yh-ad-perm,.yh-svc-card,.yh-svc-stat,.yh-payment-editor-card,
.yh-payment-switch-row,.yh-payment-biller-mini,.yh-usdt-detail-box,.yh-usdt-chain-value{
  background:#fff!important;
  background-image:none!important;
  color:#10233f!important;
  border-color:#d5e4f3!important;
  box-shadow:0 8px 24px rgba(38,82,126,.07)!important;
}

.yh-ad-wrap,.yh-svc-wrap{color:#10233f!important}
.yh-ad-title h2,.yh-ad-card h3,.yh-svc-head h2,.yh-svc-card h3,
.panel-head h2,.modal-card h2{color:#1268ca!important;-webkit-text-fill-color:#1268ca!important}
.yh-ad-muted,.yh-ad-field label,.yh-svc-label,.yh-svc-muted,.muted{color:#647e99!important}

input,select,textarea,
.yh-ad-field input,.yh-ad-field select,.yh-ad-field textarea,
.yh-svc-field input,.yh-svc-field select,.yh-svc-field textarea{
  background:#fff!important;
  background-image:none!important;
  color:#142a45!important;
  -webkit-text-fill-color:#142a45!important;
  border-color:#cbddef!important;
}

.yh-ad-tabs button,.yh-ad-btn,.yh-svc-btn,.action-btn,.ghost,.btn.ghost{
  background:#f2f8ff!important;
  background-image:none!important;
  border-color:#bcd7f3!important;
  color:#0b63be!important;
  -webkit-text-fill-color:#0b63be!important;
}
.yh-ad-tabs button.active,.yh-ad-btn.gold,.yh-svc-btn.gold,.primary,.btn.primary{
  background:#1677ff!important;
  background-image:linear-gradient(135deg,#1677ff,#0865d8)!important;
  border-color:#1677ff!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

th,.yh-ad-table th,.yh-svc-table th{background:#eff6fd!important;color:#4d6885!important}
td,.yh-ad-table td,.yh-svc-table td{background:#fff!important;color:#203a55!important;border-color:#e1eaf3!important}
tbody tr:hover td{background:#f6faff!important}

.admin-modal-overlay,.modal-overlay,.yh-payment-editor-overlay{
  background:rgba(16,55,96,.46)!important;
  backdrop-filter:blur(8px)!important;
}

/* Neutralize legacy inline black/gold surfaces generated by older modules. */
#content [style*="background:#070604"],#content [style*="background:#080604"],
#content [style*="background:#090805"],#content [style*="background:#0b0907"],
#content [style*="background:#0c0906"],#content [style*="background:#0d0b08"],
#content [style*="background:#11100d"],#content [style*="background:#16130d"],
#content [style*="background:#17130d"]{
  background:#fff!important;background-image:none!important;color:#142a45!important;
  -webkit-text-fill-color:#142a45!important;border-color:#cbddef!important;
}
#content [style*="border:1px solid #352b1b"],#content [style*="border:1px solid #594522"],
#content [style*="border:1px solid #604a20"]{border-color:#d5e4f3!important}
#content [style*="color:#e4b94d"],#content [style*="color:#f4d675"],
#content [style*="color:#f5d77f"],#content [style*="color:#e8c66e"]{
  color:#1268ca!important;-webkit-text-fill-color:#1268ca!important;
}

/* Preserve semantic success, warning, and error colors on the light theme. */
.ok,.yh-ad-ok,.yh-svc-ok{color:#07845d!important}
.warn,.yh-ad-warn,.yh-svc-warn{color:#a96800!important}
.bad,.danger,.yh-ad-err{color:#c83248!important}

