/* RAJ PREMIUM PANEL — v9 colour-icon + loader accuracy layer (loaded LAST on every shell).
   1. Every sidebar / drawer icon, dashboard card icon, chart heading icon, panel icon and shortcut icon now has its
      own real-world colour (wallet = green, cart = orange, key = gold, YouTube = red ...), tuned to the blue/navy theme.
   2. Loading circles (Security Validation ring + login-button spinner) are exactly centred and perfectly round.
   Colours / tints only: no sizes, no layout, no scripts, no application behaviour are changed.
   Rules use `html body:not(#rajx)` (same ID-level specificity as v6-v8) and load after them, so they win cleanly. */


/* ===== 1. SIDEBAR / DRAWER (customer + reseller + admin-as-user) ===== */
html body:not(#rajx) .drawer a[href="dashboard.php"]{--ic:#4da3ff;--icr:77,163,255}
html body:not(#rajx) .drawer a[href="add-funds.php"]{--ic:#34d399;--icr:52,211,153}
html body:not(#rajx) .drawer a[href="store.php"]{--ic:#ff7a59;--icr:255,122,89}
html body:not(#rajx) .drawer a[href="keys.php"]{--ic:#fbbf24;--icr:251,191,36}
html body:not(#rajx) .drawer a[href="orders.php"]{--ic:#38bdf8;--icr:56,189,248}
html body:not(#rajx) .drawer a[href="refer.php"]{--ic:#f472b6;--icr:244,114,182}
html body:not(#rajx) .drawer a[href="my-reseller.php"]{--ic:#a78bfa;--icr:167,139,250}
html body:not(#rajx) .drawer a[href="admin.php"]{--ic:#22d3ee;--icr:34,211,238}
html body:not(#rajx) .drawer a[href="tickets.php"]{--ic:#fb923c;--icr:251,146,60}
html body:not(#rajx) .drawer a[href="admin-tickets.php"]{--ic:#f59e0b;--icr:245,158,11}
html body:not(#rajx) .drawer a[href="reseller-api.php"]{--ic:#2dd4bf;--icr:45,212,191}
html body:not(#rajx) .drawer a[href="profile.php"]{--ic:#60a5fa;--icr:96,165,250}
html body:not(#rajx) .drawer a[href="login.php"]{--ic:#60a5fa;--icr:96,165,250}
html body:not(#rajx) .drawer a[href="register.php"]{--ic:#34d399;--icr:52,211,153}
html body:not(#rajx) .drawer a[href="logout.php"]{--ic:#f87171;--icr:248,113,113}

/* ===== 1b. ADMIN SIDEBAR ===== */
html body:not(#rajx) .dr a.it[href="dashboard.php"]{--ic:#4da3ff;--icr:77,163,255}
html body:not(#rajx) .dr a.it[href="admin-users.php"]{--ic:#38bdf8;--icr:56,189,248}
html body:not(#rajx) .dr a.it[href="admin-users.php?f=reseller"]{--ic:#a78bfa;--icr:167,139,250}
html body:not(#rajx) .dr a.it[href="admin-panels.php"]{--ic:#c084fc;--icr:192,132,252}
html body:not(#rajx) .dr a.it[href="admin-products.php"]{--ic:#e879f9;--icr:232,121,249}
html body:not(#rajx) .dr a.it[href="admin-keys.php"]{--ic:#fbbf24;--icr:251,191,36}
html body:not(#rajx) .dr a.it[href="admin-orders.php"]{--ic:#4ade80;--icr:74,222,128}
html body:not(#rajx) .dr a.it[href="admin-transactions.php"]{--ic:#2dd4bf;--icr:45,212,191}
html body:not(#rajx) .dr a.it[href="admin-deposits.php"]{--ic:#60a5fa;--icr:96,165,250}
html body:not(#rajx) .dr a.it[href="admin-payment.php"]{--ic:#34d399;--icr:52,211,153}
html body:not(#rajx) .dr a.it[href="admin.php#refer-earn-settings"]{--ic:#f472b6;--icr:244,114,182}
html body:not(#rajx) .dr a.it[href="admin-stockout.php"]{--ic:#fb7185;--icr:251,113,133}
html body:not(#rajx) .dr a.it[href="admin-site-maintenance.php"]{--ic:#fb923c;--icr:251,146,60}
html body:not(#rajx) .dr a.it[href="admin-maintenance.php"]{--ic:#94a3b8;--icr:148,163,184}
html body:not(#rajx) .dr a.it[href="admin-uncertain.php"]{--ic:#facc15;--icr:250,204,21}
html body:not(#rajx) .dr a.it[href="admin-reseller-api.php"]{--ic:#22d3ee;--icr:34,211,238}
html body:not(#rajx) .dr a.it[href="admin-pids.php"]{--ic:#a3e635;--icr:163,230,53}
html body:not(#rajx) .dr a.it[href="admin-tickets.php"]{--ic:#f59e0b;--icr:245,158,11}
html body:not(#rajx) .dr a.it[href="admin-upgrade.php"]{--ic:#fcd34d;--icr:252,211,77}
html body:not(#rajx) .dr a.it[href="admin-updates.php"]{--ic:#818cf8;--icr:129,140,248}
html body:not(#rajx) .dr a.it[href="admin-profile.php"]{--ic:#60a5fa;--icr:96,165,250}
html body:not(#rajx) .dr a.it[href="logout.php"]{--ic:#f87171;--icr:248,113,113}

html body:not(#rajx) .drawer a[href] .ic,
html body:not(#rajx) .dr a.it[href] svg {
  background: rgba(var(--icr,75,145,219), .14) !important;
  border-color: rgba(var(--icr,75,145,219), .34) !important;
  color: var(--ic, #9cc4ea) !important;
  stroke: currentColor !important;
}
html body:not(#rajx) .drawer a[href]:hover:not(.act) .ic,
html body:not(#rajx) .dr a.it[href]:hover:not(.act) svg {
  background: rgba(var(--icr,75,145,219), .28) !important;
  border-color: rgba(var(--icr,75,145,219), .60) !important;
  color: var(--ic, #e4f1ff) !important;
}
/* active page: item colour becomes a solid tile, icon turns white (still the item's own colour family) */
html body:not(#rajx) .drawer a[href].act .ic,
html body:not(#rajx) .dr a.it[href].act svg {
  background: linear-gradient(135deg, rgba(var(--icr,75,145,219), .95), rgba(var(--icr,75,145,219), .62)) !important;
  border-color: rgba(255,255,255,.22) !important;
  color: #fff !important;
}
html body:not(#rajx) .drawer a[href].act,
html body:not(#rajx) .dr a.it[href].act {
  background: linear-gradient(100deg, rgba(var(--icr,75,145,219), .22), rgba(var(--icr,75,145,219), .06)) !important;
  border-color: rgba(var(--icr,75,145,219), .55) !important;
  box-shadow: 0 6px 18px rgba(var(--icr,75,145,219), .12), inset 0 0 0 1px rgba(255,255,255,.03) !important;
}
html body:not(#rajx) .drawer a[href].act::before,
html body:not(#rajx) .dr a.it[href].act::before {
  background: linear-gradient(180deg, rgb(var(--icr,75,145,219)), rgba(var(--icr,75,145,219), .55)) !important;
  box-shadow: 0 0 10px rgba(var(--icr,75,145,219), .55) !important;
}
html body:not(#rajx) .drawer a.out[href] .ic, html body:not(#rajx) .dr a.it.out[href] svg { color: #f87171 !important; }
html body:not(#rajx) .drawer .dr-sec, html body:not(#rajx) .dr .sec { color: #8fa5c4 !important; }

/* drawer header logo ring + admin shield */
html body:not(#rajx) .dr .dh .lg,
html body:not(#rajx) .av .ring { color: #22d3ee !important; border-color: rgba(34,211,238,.62) !important; background: rgba(34,211,238,.10) !important; }
html body:not(#rajx) .dr .dh .lg svg, html body:not(#rajx) .av .ring svg { color: #22d3ee !important; }

/* ===== 2. TOP BAR ===== */
html body:not(#rajx) .topbar .menu-btn i, html body:not(#rajx) .dtop .menu-btn i { color: #dbe7f7 !important; }
html body:not(#rajx) .topbar .pal-btn i, html body:not(#rajx) .admin-palette-btn i, html body:not(#rajx) .pal-btn i { color: #f472b6 !important; }
html body:not(#rajx) .top .burger i { background: #7dd3fc !important; }
html body:not(#rajx) .top #theme, html body:not(#rajx) .top button svg { color: #7dd3fc !important; }
html body:not(#rajx) .dep-btn.how-use-top i, html body:not(#rajx) .howbar i, html body:not(#rajx) .how-use-top i { color: #ff3b3b !important; -webkit-text-fill-color: #ff3b3b !important; }

/* ===== 3. USER / RESELLER DASHBOARD ===== */
html body:not(#rajx) .dstack .nc.bal .w { color: #34d399 !important; opacity: .92 !important; -webkit-text-fill-color: #34d399 !important; }
html body:not(#rajx) .dstack .nc.safe .t i { color: #4ade80 !important; }
html body:not(#rajx) .currency-switcher-title i { color: #fbbf24 !important; }
html body:not(#rajx) .nc.act h3 i, html body:not(#rajx) #rupCard h3 i { color: #fbbf24 !important; }
html body:not(#rajx) .top5-ico, html body:not(#rajx) .top5-ico i { color: #fbbf24 !important; }
html body:not(#rajx) .sc .ico2 { opacity: 1 !important; }
html body:not(#rajx) .metric-sales-today .ico2 { color: #ff7a59 !important; }
html body:not(#rajx) .metric-sales-month .ico2 { color: #818cf8 !important; }
html body:not(#rajx) .metric-revenue-today .ico2 { color: #34d399 !important; }
html body:not(#rajx) .metric-revenue-month .ico2 { color: #2dd4bf !important; }
html body:not(#rajx) .purchase-today .ico2 { color: #fb7185 !important; }
html body:not(#rajx) .purchase-month .ico2 { color: #818cf8 !important; }
html body:not(#rajx) .qgrid > a.qt > i { color: var(--c) !important; -webkit-text-fill-color: var(--c) !important; }

/* ===== 4. ADMIN DASHBOARD CARDS ===== */
html body:not(#rajx) .box .ic { border: 1px solid rgba(var(--bxr,167,139,250), .34) !important; background: rgba(var(--bxr,167,139,250), .15) !important; color: var(--bxc,#a78bfa) !important; }
html body:not(#rajx) .box.p { --bxc:#a78bfa; --bxr:167,139,250 }
html body:not(#rajx) .box.c { --bxc:#22d3ee; --bxr:34,211,238 }
html body:not(#rajx) .box.r { --bxc:#fbbf24; --bxr:251,191,36 }
html body:not(#rajx) .box.g { --bxc:#34d399; --bxr:52,211,153 }
html body:not(#rajx) .box.o { --bxc:#fb923c; --bxr:251,146,60 }
html body:not(#rajx) .box .ic svg { color: inherit !important; }
html body:not(#rajx) .nav a:nth-child(5n+1) > svg { color: #a78bfa !important; }
html body:not(#rajx) .nav a:nth-child(5n+2) > svg { color: #e879f9 !important; }
html body:not(#rajx) .nav a:nth-child(5n+3) > svg { color: #fbbf24 !important; }
html body:not(#rajx) .nav a:nth-child(5n+4) > svg { color: #4ade80 !important; }
html body:not(#rajx) .nav a:nth-child(5n+5) > svg { color: #2dd4bf !important; }
html body:not(#rajx) .pc .pt svg, html body:not(#rajx) .pc .pt i { color: #38bdf8 !important; }
html body:not(#rajx) .lv i { background: #34d399 !important; }

/* ===== 5. LIVE CHARTS: coloured heading icons + live badge ===== */
html body:not(#rajx) .live-chart-head h3 { display: flex; align-items: center; gap: 8px; }
html body:not(#rajx) .live-chart-head h3::before {
  content: "\f080"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif; font-weight: 900;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 24px; width: 24px; height: 24px;
  border-radius: 8px; font-size: 12px; line-height: 1; color: #22d3ee;
  background: rgba(34,211,238,.13); border: 1px solid rgba(34,211,238,.32);
}
html body:not(#rajx) .live-chart-card:nth-child(2n) .live-chart-head h3::before {
  content: "\f201"; color: #34d399; background: rgba(52,211,153,.13); border-color: rgba(52,211,153,.32);
}
html body:not(#rajx) .live-badge { border-color: rgba(52,211,153,.45) !important; background: rgba(52,211,153,.12) !important; color: #86efac !important; }
html body:not(#rajx) .live-badge i { background: #34d399 !important; }

/* ===== 6. PAGE ICONS (Font Awesome) — real colours by meaning =====
   Buttons / .btn keep their own text colour (restored right below), so no icon ever clashes with a button fill. */

html body:not(#rajx) i.fa-wallet{color:#34d399}
html body:not(#rajx) i.fa-key{color:#fbbf24}
html body:not(#rajx) i.fa-cart-shopping{color:#ff7a59}
html body:not(#rajx) i.fa-bag-shopping{color:#fb7185}
html body:not(#rajx) i.fa-shield-halved{color:#4ade80}
html body:not(#rajx) i.fa-shield-check{color:#4ade80}
html body:not(#rajx) i.fa-crown{color:#fbbf24}
html body:not(#rajx) i.fa-coins{color:#fcd34d}
html body:not(#rajx) i.fa-gift{color:#f472b6}
html body:not(#rajx) i.fa-calendar-days{color:#818cf8}
html body:not(#rajx) i.fa-calendar-check{color:#818cf8}
html body:not(#rajx) i.fa-chart-line{color:#2dd4bf}
html body:not(#rajx) i.fa-award{color:#fbbf24}
html body:not(#rajx) i.fa-user-plus{color:#34d399}
html body:not(#rajx) i.fa-user{color:#60a5fa}
html body:not(#rajx) i.fa-user-lock{color:#a78bfa}
html body:not(#rajx) i.fa-lock{color:#a78bfa}
html body:not(#rajx) i.fa-lock-open{color:#fbbf24}
html body:not(#rajx) i.fa-fingerprint{color:#22d3ee}
html body:not(#rajx) i.fa-envelope{color:#f472b6}
html body:not(#rajx) i.fa-headset{color:#fb923c}
html body:not(#rajx) i.fa-inbox{color:#38bdf8}
html body:not(#rajx) i.fa-network-wired{color:#2dd4bf}
html body:not(#rajx) i.fa-money-bill-transfer{color:#34d399}
html body:not(#rajx) i.fa-hand-holding-dollar{color:#fbbf24}
html body:not(#rajx) i.fa-clock-rotate-left{color:#38bdf8}
html body:not(#rajx) i.fa-clock{color:#38bdf8}
html body:not(#rajx) i.fa-screwdriver-wrench{color:#fb923c}
html body:not(#rajx) i.fa-share-nodes{color:#38bdf8}
html body:not(#rajx) i.fa-qrcode{color:#e2e8f0}
html body:not(#rajx) i.fa-mobile-screen{color:#38bdf8}
html body:not(#rajx) i.fa-code{color:#2dd4bf}
html body:not(#rajx) i.fa-table-list{color:#60a5fa}
html body:not(#rajx) i.fa-bolt{color:#facc15}
html body:not(#rajx) i.fa-circle-check{color:#34d399}
html body:not(#rajx) i.fa-circle-info{color:#38bdf8}
html body:not(#rajx) i.fa-triangle-exclamation{color:#fbbf24}
html body:not(#rajx) i.fa-cloud-arrow-down{color:#38bdf8}
html body:not(#rajx) i.fa-cloud-arrow-up{color:#34d399}
html body:not(#rajx) i.fa-camera{color:#a78bfa}
html body:not(#rajx) i.fa-floppy-disk{color:#60a5fa}
html body:not(#rajx) i.fa-right-to-bracket{color:#60a5fa}
html body:not(#rajx) i.fa-file-arrow-down{color:#38bdf8}

/* brand icons */
html body:not(#rajx) i.fa-youtube { color: #ff3b3b; }
html body:not(#rajx) i.fa-telegram { color: #2aabee; }
html body:not(#rajx) i.fa-android { color: #3ddc84; }
html body:not(#rajx) i.fa-windows { color: #4cc2ff; }
html body:not(#rajx) i.fa-apple { color: #e5e7eb; }
html body:not(#rajx) i.fa-google { color: #ea4335; }

/* inside buttons the icon follows the button text colour (no clash with button fills) */
html body:not(#rajx) :is(button, .btn, a.btn, input.btn, .btn-primary, .btn-login, .btn-google, .submit-btn, .pay-btn, .go, .jn, .join, .more, .fbtn, .kbuy, .kapply, .kpay, .pn-buy, .pn-purchase, .rs-btn, .ra-btn, .rclaimbtn, .tk-submit, .bn-paid, .th-close, .rup-yes, .rup-no) i[class*="fa-"] {
  color: inherit !important; -webkit-text-fill-color: currentColor !important;
}
html body:not(#rajx) :is(button, .btn, a.btn, .btn-login, .go, .jn, .join, .more, .fbtn, .kbuy, .pn-buy, .pn-purchase, .bn-paid) i[class*="fa-"] { color: inherit; }
/* the three top-bar buttons keep their colours (after the restore rule, same specificity, later wins) */
html body:not(#rajx) .topbar .pal-btn i, html body:not(#rajx) .admin-palette-btn i { color: #f472b6 !important; }
html body:not(#rajx) .topbar .menu-btn i { color: #dbe7f7 !important; }
html body:not(#rajx) .dep-btn.how-use-top i { color: #ff3b3b !important; }
html body:not(#rajx) .btn-google i, html body:not(#rajx) .btn-google svg { color: initial !important; }

/* ===== 7. LOADING CIRCLES: exact centre, perfectly round ===== */
/* NOTE: no `display` here on purpose - the page script hides this overlay with style.display='none' */
html body:not(#rajx) #loader-screen {
  position: fixed !important; top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important;
  align-items: center !important; justify-content: center !important;
  margin: 0 !important; padding: 0 !important;
}
html body:not(#rajx) .validation-box {
  display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important;
  margin: 0 auto !important;
}
html body:not(#rajx) .validation-box > * { width: 100% !important; box-sizing: border-box !important; }
html body:not(#rajx) .circle-loader {
  box-sizing: border-box !important; display: block !important;
  width: 70px !important; height: 70px !important; flex: 0 0 70px !important;
  margin: 0 auto 24px !important; padding: 0 !important;
  border-radius: 50% !important; border-width: 4px !important; border-style: solid !important;
  border-color: rgba(56,189,248,.16) !important;
  border-top-color: #22d3ee !important; border-right-color: #3b82f6 !important;
  transform-origin: 50% 50% !important; aspect-ratio: 1 / 1;
}
html body:not(#rajx) .validation-box > .circle-loader { width: 70px !important; }
html body:not(#rajx) .validation-title { color: #7dd3fc !important; }
html body:not(#rajx) .progress-bar { background: linear-gradient(90deg, #22d3ee, #3b82f6) !important; }

/* login / register button: becomes an exact circle, spinner sits on the exact centre */
html body:not(#rajx) .btn-wrapper { display: flex !important; justify-content: center !important; align-items: center !important; }
html body:not(#rajx) .btn-login.active-loading {
  width: 50px !important; min-width: 50px !important; max-width: 50px !important; height: 50px !important;
  padding: 0 !important; border-radius: 50% !important; flex: 0 0 50px !important; overflow: hidden !important;
}
html body:not(#rajx) .btn-login.active-loading::after {
  content: "" !important; position: absolute !important; top: 50% !important; left: 50% !important;
  box-sizing: border-box !important; width: 22px !important; height: 22px !important; margin: -11px 0 0 -11px !important;
  border: 3px solid rgba(255,255,255,.28) !important; border-top-color: #fff !important; border-radius: 50% !important;
  animation: spinCircle .7s linear infinite !important;
}
@media (max-width: 360px) {
  html body:not(#rajx) .btn-wrapper { height: 46px !important; }
  html body:not(#rajx) .btn-login.active-loading { width: 46px !important; min-width: 46px !important; max-width: 46px !important; height: 46px !important; flex-basis: 46px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html body:not(#rajx) .circle-loader, html body:not(#rajx) .btn-login.active-loading::after { animation-duration: 1.6s !important; }
}

/* ===== 8. BUY KEYS: product name + purchase button share one font style ===== */
html body:not(#rajx) {
  --pn-fs: 14px; --pn-fw: 700; --pn-ls: .65px;
}
html body:not(#rajx) .pn .pn-t,
html body:not(#rajx) .pn .pn-purchase {
  font-family: 'Poppins', system-ui, sans-serif !important;
  font-size: var(--pn-fs) !important;
  font-weight: var(--pn-fw) !important;
  letter-spacing: var(--pn-ls) !important;
}
@media (max-width: 390px) {
  html body:not(#rajx) { --pn-fs: 13px; }
}

/* ===== 9. BUY KEYS FEATURE CARDS: movement now lives in raj-v13-requested-refinements.css (loaded last) =====
   The old whole-list pendulum swing was removed. Each small feature card now moves by itself inside its own tiny fixed area. */

/* ===== 10. ADMIN PRODUCT ADD / EDIT: small text cards inside the main card stay normal (no pulse / glow) =====
   Scoped to Panels (Buy Keys) and Products Edit only (body.raj-prod-page). The main card keeps its pulse. */
html body.raj-prod-page:not(#rajx) :is(.pcard .mini2, .pc .mini2, .pcard .dur) {
  animation: none !important;
  box-shadow: none !important;
  filter: none !important;
}
html body.raj-prod-page:not(#rajx) :is(.pcard .mini2, .pc .mini2) { border-color: #3c5c92 !important; }
html body.raj-prod-page:not(#rajx) .pcard .dur { border-color: #35465e !important; }
html body.raj-prod-page:not(#rajx) :is(.pcard .mini2, .pc .mini2, .pcard .dur)::before,
html body.raj-prod-page:not(#rajx) :is(.pcard .mini2, .pc .mini2, .pcard .dur)::after { animation: none !important; box-shadow: none !important; }


/* ===== 11. LAST MONO ICONS: History heading clock + admin product-card gift now use theme colours ===== */
html body:not(#rajx) .kcard .kh .kic { color: #a78bfa !important; }
html body:not(#rajx) .pcard .pci svg { color: #f472b6 !important; }

/* ===== 12. PASSWORD EYE BUTTON: soft round icon inside the field (no square box) =====
   Change Password card on the Profile page. The old style gave the eye a bordered square that stuck out of the
   rounded input. Now it is a borderless icon centred inside the input; a faint round tint appears on hover/tap. */
html body:not(#rajx) .pf-pw .pf-eye.pf-eye {
  position: absolute !important; top: 0 !important; right: 4px !important;
  width: 40px !important; height: 42px !important; margin: 0 !important; padding: 0 !important;
  display: grid !important; place-items: center !important;
  background: transparent !important; background-color: transparent !important;
  border: 0 !important; border-radius: 12px !important; box-shadow: none !important;
  color: #a78bfa !important; -webkit-text-fill-color: #a78bfa !important;
  font-size: 15px !important; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .18s ease, color .18s ease;
}
html body:not(#rajx) .pf-pw .pf-eye.pf-eye:hover,
html body:not(#rajx) .pf-pw .pf-eye.pf-eye:active {
  background: rgba(167, 139, 250, .16) !important; background-color: rgba(167, 139, 250, .16) !important;
  color: #c4b5fd !important; -webkit-text-fill-color: #c4b5fd !important; border: 0 !important;
}
html body:not(#rajx) .pf-pw .pf-eye.pf-eye:focus-visible {
  outline: 2px solid rgba(167, 139, 250, .65); outline-offset: -2px;
}
html body:not(#rajx) .pf-pw .pf-eye.pf-eye i { color: inherit !important; -webkit-text-fill-color: inherit !important; }
html body:not(#rajx) .pf-pw .fin { padding-right: 48px !important; }
