/* RAJ PREMIUM PANEL — v11 requested refinements (loaded last).
   1) Admin cards that were on a different glow now use the exact same Buy Keys / user / reseller pulse (rajBuyKeysSharedPulseV4).
   2) Profile page: no extra black box behind the three password fields; icons coloured to match the theme.
   Visual-only: no layout, workflow, script or data change. */

/* ---- 1. Admin: same pulse as user / reseller cards ---- */
html body.inner-admin-page .urow.urow.urow.urow.urow.urow.urow.urow.urow,
html body.inner-admin-page .dur.dur.dur.dur.dur.dur.dur.dur.dur {
  --raj-v4-edge-alpha: .48;
  --raj-v4-near-radius: 2px;
  --raj-v4-near-alpha: .22;
  --raj-v4-far-radius: 4px;
  --raj-v4-far-alpha: .08;
  --raj-v4-edge-rgb: var(--raj-accent-rgb, 75,145,219);
  --raj-v4-alt-rgb: var(--raj-accent-alt-rgb, 39,194,208);
  border-width: 1.5px !important;
  border-style: solid !important;
  border-color: rgba(var(--raj-v4-edge-rgb), var(--raj-v4-edge-alpha)) !important;
  box-shadow:
    0 0 var(--raj-v4-near-radius) 0 rgba(var(--raj-v4-edge-rgb), var(--raj-v4-near-alpha)),
    0 0 var(--raj-v4-far-radius) 1px rgba(var(--raj-v4-alt-rgb), var(--raj-v4-far-alpha)) !important;
  animation: rajBuyKeysSharedPulseV4 var(--raj-buykeys-pulse-period-v4, 3.2s) ease-in-out infinite !important;
  animation-delay: var(--raj-card-pulse-delay, 0s) !important;
  animation-fill-mode: both !important;
}
/* Rows/boxes that live inside a main card stay calm (one glow per card, same rule as user pages). */
html body.inner-admin-page .rw.rw.rw,
html body.inner-admin-page :is(.dur, .urow) .mini2.mini2.mini2.mini2.mini2.mini2.mini2.mini2.mini2.mini2.mini2 {
  animation: none !important;
  box-shadow: none !important;
}
@media (prefers-reduced-motion: reduce) {
  html body.inner-admin-page .urow.urow.urow.urow.urow.urow.urow.urow.urow,
html body.inner-admin-page .dur.dur.dur.dur.dur.dur.dur.dur.dur { animation: none !important; }
}

/* ---- 2. Profile page (user + reseller) ---- */
/* The three password fields sit directly inside the main card: remove the extra black wrapper box. */
html body:not(#rajx) .pf-card .pf-pw.pf-pw.pf-pw {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
/* Theme-matched coloured icons. */
html body:not(#rajx) .pf-card .pt.pt > i { color: rgb(var(--raj-accent-rgb, 75,145,219)) !important; -webkit-text-fill-color: currentColor !important; }
html body:not(#rajx) .pf-card .pf-lock.pf-lock > i.fa-user { color: #82aef3 !important; -webkit-text-fill-color: currentColor !important; }
html body:not(#rajx) .pf-card .pf-lock.pf-lock > i.fa-envelope { color: rgb(var(--raj-accent-alt-rgb, 39,194,208)) !important; -webkit-text-fill-color: currentColor !important; }
html body:not(#rajx) .pf-card .pf-lock.pf-lock > i.pf-l { color: #56d6a7 !important; -webkit-text-fill-color: currentColor !important; }
html body:not(#rajx) .pf-card .pf-li.pf-li > i { color: #f4b35d !important; -webkit-text-fill-color: currentColor !important; }
html body:not(#rajx) .pf-card .pf-pw.pf-pw.pf-pw .pf-eye,
html body:not(#rajx) .pf-card .pf-pw.pf-pw.pf-pw .pf-eye i { color: rgb(var(--raj-accent-alt-rgb, 39,194,208)) !important; -webkit-text-fill-color: currentColor !important; }
html body:not(#rajx) .pf-card .pf-pw.pf-pw.pf-pw .pf-eye:hover,
html body:not(#rajx) .pf-card .pf-pw.pf-pw.pf-pw .pf-eye:hover i { color: #8be9f2 !important; }
/* Keep a comfortable gap under card titles now that the grey sub-line is gone. */
html body:not(#rajx) .pf-card .pt.pt { margin-bottom: 14px !important; }

/* ---- 3. Buy Keys: quantity stepper (  -  [ box ]  +  ) ----
   No outer card around the stepper: only the small quantity box keeps its card; the minus / plus signs sit freely on both sides. */
html body .pn-qwrap {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; height: 34px; box-sizing: border-box;
  border: 0 !important; border-radius: 0 !important; overflow: visible; background: transparent !important; box-shadow: none !important; padding: 0;
}
html body .pn-qwrap .pn-qb {
  width: 24px; height: 34px; min-height: 0; margin: 0; padding: 0; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0 !important; border-radius: 8px !important; box-shadow: none !important; text-shadow: none !important;
  background: transparent !important; color: rgb(var(--raj-accent-rgb, 75,145,219)) !important;
  font: inherit; font-size: 22px; font-weight: 600; line-height: 1; cursor: pointer;
  -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
html body .pn-qwrap .pn-qb:active:not(:disabled) { color: #fff !important; background: rgba(var(--raj-accent-rgb, 75,145,219), .22) !important; transform: none !important; }
html body .pn-qwrap .pn-qb:disabled { color: rgba(255, 255, 255, .25) !important; cursor: not-allowed !important; opacity: 1; }
html body .pn-qwrap .pn-qty {
  width: 46px !important; height: 34px !important; min-height: 0; margin: 0; padding: 0 !important; box-sizing: border-box;
  border: 1px solid rgba(135, 190, 233, .45) !important; border-radius: 10px !important;
  background: #172234 !important; color: #fff; text-align: center;
  font-size: 14px !important; -moz-appearance: textfield; appearance: textfield; box-shadow: none !important;
}
html body .pn-qwrap .pn-qty:focus { border-color: rgba(var(--raj-accent-rgb, 75,145,219), .85) !important; outline: none; }
html body .pn-qwrap .pn-qty::-webkit-outer-spin-button,
html body .pn-qwrap .pn-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Plan name and SOLD OUT / STOCK OUT slightly smaller. */
html body .pn-plan .pn-pl { font-size: 12px !important; }
html body .pn-plan .pn-sold { font-size: 10px !important; letter-spacing: .5px !important; padding: 0 9px !important; }
@media (max-width: 390px) {
  html body .pn-plan .pn-pl { font-size: 11px !important; }
}

/* ---- 4. Sold out / stock out: thin red border ---- */
html body:not(#rajx) .pn-plan.pn-plan-sold .pn-sold { border: 1px solid rgba(239, 68, 68, .8); }
html body:not(#rajx) .ra-bd.ra-oos { border: 1px solid rgba(239, 68, 68, .8) !important; }

/* ---- 5. Ticket: payment verification box (admin shell does not load currency-preference.css) ---- */
html body .tk-credit-box { margin: 16px 0; padding: 15px; border-radius: 15px; display: flex; flex-direction: column; gap: 10px; box-sizing: border-box; }
html body .tk-credit-box .tk-credit-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 900; letter-spacing: .7px; }
html body .tk-credit-box .tk-credit-note, html body .tk-credit-box .tk-credit-meta { font-size: 11px; line-height: 1.55; margin: 0; }
html body .tk-credit-box label { display: block; font-size: 10px; font-weight: 800; letter-spacing: .5px; margin: 10px 0 6px; }
html body .tk-credit-box .tk-in { width: 100%; box-sizing: border-box; }
html body .tk-credit-box .tk-credit-btn { width: 100%; margin-top: 12px; padding: 13px; border-radius: 11px; font-size: 12px; font-weight: 900; letter-spacing: .4px; cursor: pointer; }
html body .tk-credit-box .tk-credit-btn:disabled { opacity: .6; cursor: not-allowed; }
html body .tk-credit-box .tk-credit-done { padding: 11px; border-radius: 10px; font-size: 12px; font-weight: 800; }

/* Deposit > Binance card: USDT rate badge (same font as the card, admin can show / hide it). */
html body .bn-card .bn-rate{
  display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;
  /* V10.76: same size as the DOWNLOAD QR button below (about 144 x 31, radius 9, 12px text) */
  width:max-content;min-width:144px;max-width:100%;height:auto;min-height:31px;margin:12px auto 0;padding:4px 12px;box-sizing:border-box;
  font-family:inherit;border:1px solid rgba(245,180,0,.55);border-radius:9px;
  background:linear-gradient(135deg,rgba(245,180,0,.14),rgba(34,211,238,.08));color:#fff;
}
html body .bn-card .bn-rate .bn-rate-l{font-family:inherit;font-size:9px;font-weight:700;letter-spacing:.8px;color:#f5b400;text-transform:uppercase}
html body .bn-card .bn-rate .bn-rate-v{font-family:inherit;font-size:12px;font-weight:700;letter-spacing:.2px;color:#fff;font-variant-numeric:tabular-nums}

/* Reseller API: API DURATION copy button text slightly smaller. */
html body .ra .ra-dur b { font-size: 11px !important; }
html body .ra .ra-dur i { font-size: 10px !important; }

/* ---- Confirm purchase card: smaller, tighter line spacing ---- */
html body:not(#rajx) .pn-mo .pn-mb { max-width: 300px !important; padding: 14px 15px 15px !important; border-radius: 18px !important; }
html body:not(#rajx) .pn-mb .pn-mh { padding: 0 0 9px !important; font-size: 11px !important; letter-spacing: 2px !important; }
html body:not(#rajx) .pn-mb .pn-mt { margin: 0 0 3px !important; padding: 10px 4px 8px !important; font-size: 14px !important; line-height: 1.3 !important; }
html body:not(#rajx) .pn-mb .pn-mr { padding: 6px 0 !important; font-size: 11.5px !important; line-height: 1.3 !important; gap: 8px !important; }
html body:not(#rajx) .pn-mb .pn-mr:first-of-type { padding-top: 6px !important; }
html body:not(#rajx) .pn-mb .pn-mr b { font-size: 12px !important; font-weight: 600; }
html body:not(#rajx) .pn-mb .pn-tot b { font-size: 14px !important; }
html body:not(#rajx) .pn-mb .pn-warn { margin-top: 9px !important; padding: 7px 9px !important; font-size: 11px !important; line-height: 1.35 !important; }
html body:not(#rajx) .pn-mb .pn-ma { margin-top: 12px !important; gap: 8px !important; }
html body:not(#rajx) .pn-mb .pn-ma button { height: 38px !important; border-radius: 10px !important; font-size: 11.5px !important; letter-spacing: .6px !important; }

/* ---- Key delivery (purchase successful) card: smaller card and text ---- */
html body:not(#rajx) .sx-mo { padding: 16px !important; }
html body:not(#rajx) .sx-mo .sx-box { max-width: 320px !important; padding: 20px 16px 16px !important; border-radius: 22px !important; }
html body:not(#rajx) .sx-box .sx-ok { width: 54px !important; height: 54px !important; margin: 0 auto 14px !important; }
html body:not(#rajx) .sx-box .sx-ok svg { width: 27px !important; height: 27px !important; }
html body:not(#rajx) .sx-box .sx-h { font-size: 18px !important; }
html body:not(#rajx) .sx-box .sx-p { margin: 9px 0 14px !important; font-size: 13px !important; line-height: 1.4 !important; }
html body:not(#rajx) .sx-box .sx-note { margin: -4px 0 10px !important; padding: 6px 9px !important; font-size: 11px !important; }
html body:not(#rajx) .sx-box .sx-big { padding: 11px 8px !important; gap: 7px !important; border-radius: 12px !important; }
html body:not(#rajx) .sx-box .sx-bk { font-size: clamp(13px, 4.3vw, 17px) !important; letter-spacing: 2px !important; line-height: 1.3 !important; }
html body:not(#rajx) .sx-box .sx-row { margin-top: 10px !important; padding: 7px 7px 7px 12px !important; border-radius: 12px !important; }
html body:not(#rajx) .sx-box .sx-txt { font-size: 12px !important; }
html body:not(#rajx) .sx-box .sx-cp { width: 33px !important; height: 33px !important; border-radius: 9px !important; }
html body:not(#rajx) .sx-box .sx-cp svg { width: 17px !important; height: 17px !important; }
html body:not(#rajx) .sx-box .sx-ds { margin-top: 9px !important; font-size: 10.5px !important; }
html body:not(#rajx) .sx-box .sx-act { gap: 9px !important; margin-top: 14px !important; }
html body:not(#rajx) .sx-box .sx-act > * { height: 42px !important; border-radius: 12px !important; font-size: 11.5px !important; letter-spacing: .7px !important; gap: 7px !important; }

/* Deposit tabs: real coloured logos (UPI, Binance) next to the tab text. */
html body .dp-tab { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
html body .dp-tab .dp-tab-logo { flex: none; display: block; object-fit: contain; }
html body .dp-tab .dp-tab-upi { width: 40px; height: 18px; padding: 1px 3px; box-sizing: border-box; background: #fff; border-radius: 5px; }
html body .dp-tab .dp-tab-bin { width: 20px; height: 20px; padding: 2px; box-sizing: border-box; background: #191c23; border: 1px solid rgba(240,185,11,.35); border-radius: 6px; }
html body .dp-tab span { font: inherit; letter-spacing: inherit; white-space: nowrap; }
