/* RAJ PREMIUM PANEL — spectrum refinement v2.
   Presentation-only overrides. Preserve auth, navigation, payment and dashboard workflows. */

:root, body, body.light {
  --raj-main-white: #f3f7fc;
  --raj-panel-grey: #b9c3cf;
  --raj-sapphire: #4b8fda;
  --raj-cyan: #4bc8d5;
  --raj-teal: #31b99f;
  --raj-steel: #7f8fa3;
  --pink: #72c8d5 !important;
  --pur: #4b8fda !important;
  --accent: #4b8fda !important;
  --mn: #62c4d4 !important;
  --card-edge-purple: #4b7d9f !important;
  --auth-purple: #4b8fda !important;
  --auth-lavender: #9ec7e2 !important;
  --auth-violet-deep: #254766 !important;
}

/* Wordmark: brand prefix is clean white and the final PANEL word is neutral grey everywhere. */
body .brand-main,
body .brand-logo .brand-main {
  color: var(--raj-main-white) !important;
  -webkit-text-fill-color: var(--raj-main-white) !important;
  text-shadow: none !important;
  background: none !important;
}
body .brand-panel,
body .brand-logo .brand-panel,
body .brand-logo span.brand-panel,
body .dr-title .brand-panel,
body .tb small .brand-panel,
body .copyright-txt .brand-panel {
  color: var(--raj-panel-grey) !important;
  -webkit-text-fill-color: var(--raj-panel-grey) !important;
  text-shadow: none !important;
  background: none !important;
}
body .brand-logo,
body .dr-title,
body .dr .tt,
body .brand {
  color: var(--raj-main-white) !important;
  -webkit-text-fill-color: var(--raj-main-white) !important;
  text-shadow: none !important;
}
body .tb small { color: #9eacbf !important; }

/* Remove inherited purple icon/text accents; use cool sapphire and teal instead. */
body .brand span:not(.brand-panel),
body .welcome h1 .name {
  color: var(--raj-main-white) !important;
  -webkit-text-fill-color: var(--raj-main-white) !important;
  text-shadow: none !important;
  background: none !important;
}
body :is(.val,.bal .v,.topbar .menu-btn,.dtop .menu-btn i,.panel h2 i,.upd .tag,.upd-ico,.top5-ico,.sc .ico2,.top button,.top #theme,.nav a>svg,.pc .pt svg,.pc .pt i,.dh .lg,.sec,.dr-sec) {
  color: #72c7d5 !important;
  -webkit-text-fill-color: #72c7d5 !important;
  text-shadow: none !important;
  filter: none !important;
}
body :is(.ico.p,.ico.k,.bnav .p,.bnav .k) {
  background: #152538 !important;
  color: #7dcbd5 !important;
  -webkit-text-fill-color: #7dcbd5 !important;
  text-shadow: none !important;
}
body input[type="checkbox"],
body input[type="radio"] { accent-color: #4bc8d5 !important; }
body input:focus,
body select:focus,
body textarea:focus,
body .in:focus,
body .fin:focus,
body .ksel select:focus {
  border-color: #58accd !important;
  box-shadow: 0 0 0 3px rgba(63,156,204,.17) !important;
}

/* Login/register: replace every remaining violet stop with sapphire, ice and teal.
   The gradient is clipped to the border itself; no diffuse outer card shadow. */
body .auth-container,
body #login-ui.auth-container {
  --auth-border-alpha: .72;
  border: 1.5px solid transparent !important;
  background:
    linear-gradient(#0d1420,#0d1420) padding-box,
    conic-gradient(
      from var(--auth-edge-angle),
      rgba(47,112,191,var(--auth-border-alpha)) 0deg,
      rgba(65,198,221,var(--auth-border-alpha)) 88deg,
      rgba(238,247,255,var(--auth-border-alpha)) 164deg,
      rgba(49,185,159,var(--auth-border-alpha)) 250deg,
      rgba(47,112,191,var(--auth-border-alpha)) 360deg
    ) border-box !important;
  box-shadow: none !important;
}
@keyframes auth-card-border-pulse {
  0%, 100% { --auth-border-alpha: .68; }
  50% { --auth-border-alpha: 1; }
}
body .scanner-orb { border-color: rgba(75,156,211,.58) !important; }
body .scanner-orb .orb-ring { border-color: rgba(75,200,213,.86) !important; }
body .circle-loader { border-top-color: #55c8d5 !important; }

/* Sidebar and page-switch states: dark sapphire/teal active state, never purple fill. */
body .drawer a.act,
body .dr a.it.act,
body .nav a.act,
body .nav a.active,
body .bnav a.act,
body .bnav a.active {
  background: linear-gradient(100deg,rgba(42,108,180,.30),rgba(32,151,151,.19)) !important;
  border-color: rgba(80,165,196,.62) !important;
  color: #f4f8fd !important;
  -webkit-text-fill-color: #f4f8fd !important;
  box-shadow: inset 3px 0 #43c3d0, 0 0 12px rgba(44,158,190,.13) !important;
  text-shadow: none !important;
}
body .drawer a.act::before,
body .dr a.it.act::before {
  background: #43c3d0 !important;
  box-shadow: none !important;
}
body .drawer a.act .ic,
body .dr a.it.act svg,
body .dr a.it.act i,
body .nav a.act>svg,
body .nav a.active>svg,
body .bnav a.act,
body .bnav a.active {
  color: #66d0d8 !important;
  -webkit-text-fill-color: #66d0d8 !important;
  filter: none !important;
}
body :is(.ftab.active,.ftab.on,.ftab.sel,.tab.active,.tab.on,.tab.sel,.tab-button.active,.tab-button.on,.filter-tabs button.active,.segmented button.active,.segmented-control .active) {
  background: linear-gradient(110deg,rgba(42,108,180,.28),rgba(32,151,151,.17)) !important;
  border-color: #4d9db8 !important;
  color: #f4f8fd !important;
  -webkit-text-fill-color: #f4f8fd !important;
  box-shadow: inset 0 -2px #43c3d0 !important;
}

/* Stronger, smoother sapphire-to-teal edge breathing glow across cards. */
@keyframes luxe-card-pulse {
  0%, 100% {
    --luxe-edge-color: rgba(70,139,213,.70);
    --luxe-pulse: .13;
  }
  50% {
    --luxe-edge-color: rgba(66,202,207,.96);
    --luxe-pulse: .29;
  }
}
body :is(.panel,.stat,.mini,.upd,.fpanel,.pf-card,.rs-card,.kcard,.pcard,.pc,.ticket-card,.tk-card,.bn-card,.dp-card,.dp-stat,.ra-card,.ra-pn,.ra-stats > div,.rbox,.rup-box,.qrbox,.bal,.safe,.sc,.tbl-wrap,.twrap,.live-chart-card,.nc,.qt,.sx-box,.pn-card,.pn-none,.pn-empty,.okcard,.ra-pl,.rs-box) {
  --luxe-edge-color: rgba(70,139,213,.70);
  --luxe-pulse: .13;
  border-color: var(--luxe-edge-color) !important;
  box-shadow:
    0 0 0 1px rgba(70,139,213,.18),
    0 0 17px rgba(53,169,214,var(--luxe-pulse)),
    0 0 25px rgba(37,185,166,calc(var(--luxe-pulse) * .42)),
    0 10px 28px rgba(0,0,0,.19) !important;
  animation-duration: 5.8s !important;
}

/* Remaining legacy widget accents: replace old purple and pink fills with the same cool spectrum. */
body .ra-hico {
  background: linear-gradient(135deg,#3679bd,#249aa6) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(36,128,170,.16) !important;
}
body .ra-card::before {
  background: linear-gradient(90deg,#377bc0 0%,#43c2d0 52%,#35b89c 100%) !important;
}
body .ra-bp,
body .sx-go,
body .dp-pay {
  background: linear-gradient(115deg,#316fb5 0%,#287fa9 58%,#188f91 100%) !important;
  border-color: rgba(105,194,215,.62) !important;
  color: #f7fbff !important;
  -webkit-text-fill-color: #f7fbff !important;
  box-shadow: 0 5px 14px rgba(30,111,157,.20) !important;
}
body .dp-tab.on {
  background: linear-gradient(115deg,#316fb5,#188f91) !important;
  border-color: #57bdce !important;
  color: #fff !important;
  box-shadow: 0 0 12px rgba(53,170,198,.22) !important;
}
body .dp-card {
  border-color: rgba(83,157,198,.45) !important;
  border-top-color: #42bdc6 !important;
}
body .dp-in:focus {
  border-color: #58accd !important;
  box-shadow: 0 0 0 2px rgba(63,156,204,.18) !important;
}
body .pill.r {
  background: linear-gradient(180deg,#223b55,#182b3f) !important;
  color: #c9e6fa !important;
  border-color: rgba(105,177,216,.30) !important;
  box-shadow: none !important;
}
body .toast {
  background: #132033 !important;
  border-color: rgba(75,200,213,.34) !important;
  color: #eef5fc !important;
}

/* Respect a user's reduced-motion preference. */
@media (prefers-reduced-motion: reduce) {
  body :is(.panel,.stat,.mini,.upd,.fpanel,.pf-card,.rs-card,.kcard,.pcard,.pc,.ticket-card,.tk-card,.bn-card,.dp-card,.dp-stat,.ra-card,.ra-pn,.ra-stats > div,.rbox,.rup-box,.qrbox,.bal,.safe,.sc,.tbl-wrap,.twrap,.live-chart-card,.nc,.qt,.sx-box,.pn-card,.pn-none,.pn-empty,.okcard,.ra-pl,.rs-box) {
    animation: none !important;
    box-shadow: 0 0 0 1px rgba(70,139,213,.20), 0 0 12px rgba(53,169,214,.12), 0 10px 28px rgba(0,0,0,.19) !important;
  }
  body .auth-container, body #login-ui.auth-container { animation: none !important; --auth-border-alpha: .84; }
}


/* Preserve accessible contrast when the existing admin light-mode switch is selected. */
body.light .brand-main,
body.light .brand-logo,
body.light .brand-logo .brand-main,
body.light .dr-title,
body.light .dr .tt,
body.light .brand {
  color: #1b2b40 !important;
  -webkit-text-fill-color: #1b2b40 !important;
  text-shadow: none !important;
}
body.light .brand-panel,
body.light .brand-logo .brand-panel,
body.light .dr-title .brand-panel,
body.light .tb small .brand-panel,
body.light .copyright-txt .brand-panel {
  color: #68798e !important;
  -webkit-text-fill-color: #68798e !important;
}
body.light .drawer a.act,
body.light .dr a.it.act,
body.light .nav a.act,
body.light .nav a.active {
  background: linear-gradient(100deg,rgba(73,135,190,.16),rgba(41,163,160,.12)) !important;
  border-color: rgba(72,127,167,.42) !important;
  color: #1a293d !important;
  -webkit-text-fill-color: #1a293d !important;
  box-shadow: inset 3px 0 #2697a8 !important;
}
