/* RAJ PREMIUM PANEL — final visual polish. Decorative/UI-only; no workflow hooks. */
:root {
  --raj-ui-white: #f4f8fc;
  --raj-ui-muted: #a4b1c2;
  --raj-ui-blue: #72a9f5;
  --raj-ui-cyan: #54cfdf;
  --raj-ui-teal: #55d4ad;
  --raj-ui-gold: #f2c66d;
  --raj-ui-red: #f04e5d;
  --raj-ui-border: #426b93;
}

/* Registered variables let the border pulse intensify without replacing card content/animations. */
@property --raj-ui-edge-alpha { syntax: "<number>"; inherits: false; initial-value: .62; }
@property --raj-ui-glow-alpha { syntax: "<number>"; inherits: false; initial-value: .16; }
@keyframes raj-ui-border-pulse {
  0%, 100% { --raj-ui-edge-alpha: .58; --raj-ui-glow-alpha: .13; }
  50% { --raj-ui-edge-alpha: 1; --raj-ui-glow-alpha: .42; }
}
body:not(.light) :is(
  .nc:not(.howbar), .top5, .live-chart-card, .pf-card, .rs-card, .ra-card, .ra-pn,
  .ra-stats > div, .bn-card, .dp-card, .dp-stat, .fpanel, .rbox, .rup-box,
  .qrbox, .mini2, .sx-box, .box, .pc, .urow, details.pcard, .tbl-wrap,
  .twrap, .pcard, .tk-card, .stat, .panel, .mini, .upd, .kcard, .ticket-card,
  .qt, .pn-card, .pn-none, .pn-empty, .okcard, .ra-pl, .rs-box
) {
  --raj-ui-edge-alpha: .62;
  --raj-ui-glow-alpha: .16;
  border-color: rgba(78, 153, 220, var(--raj-ui-edge-alpha)) !important;
  box-shadow:
    0 0 0 1px rgba(64, 135, 211, calc(var(--raj-ui-glow-alpha) * .7)),
    0 0 19px rgba(58, 158, 221, var(--raj-ui-glow-alpha)),
    0 0 29px rgba(47, 190, 166, calc(var(--raj-ui-glow-alpha) * .55)),
    0 9px 23px rgba(0, 0, 0, .26) !important;
  animation: raj-ui-border-pulse 3.1s ease-in-out infinite alternate !important;
}
@media (prefers-reduced-motion: reduce) {
  body:not(.light) :is(.nc:not(.howbar), .top5, .live-chart-card, .pf-card, .rs-card, .ra-card, .ra-pn, .ra-stats > div, .bn-card, .dp-card, .dp-stat, .fpanel, .rbox, .rup-box, .qrbox, .mini2, .sx-box, .box, .pc, .urow, details.pcard, .tbl-wrap, .twrap, .pcard, .tk-card, .stat, .panel, .mini, .upd, .kcard, .ticket-card, .qt, .pn-card, .pn-none, .pn-empty, .okcard, .ra-pl, .rs-box) {
    animation: none !important;
    --raj-ui-edge-alpha: .85;
    --raj-ui-glow-alpha: .24;
  }
}

/* Auth card: keep the clean black surface and clipped multicolour edge, brighten only its border. */
@keyframes auth-card-border-pulse {
  0%, 100% { --auth-border-alpha: .78; }
  50% { --auth-border-alpha: 1; }
}
body .auth-container, body #login-ui.auth-container {
  box-shadow: none !important;
  filter: none !important;
}

/* Navigation drawer title reserves space for the close control on small screens. */
body .dr-head {
  padding-right: 56px !important;
  gap: 9px !important;
}
body .dr-head .dr-logo {
  flex: 0 0 42px !important;
  min-width: 42px !important;
}
body .dr-head .dr-title {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: clamp(11px, 3.1vw, 13.5px) !important;
  letter-spacing: -.12px !important;
  color: var(--raj-ui-white) !important;
  -webkit-text-fill-color: var(--raj-ui-white) !important;
  text-shadow: none !important;
}
body .dr-head .dr-title .brand-main { color: var(--raj-ui-white) !important; -webkit-text-fill-color: var(--raj-ui-white) !important; }
body .dr-head .dr-title .brand-panel { color: #aeb9c7 !important; -webkit-text-fill-color: #aeb9c7 !important; }
body .dr-head .dr-x {
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 34px !important;
  height: 38px !important;
  flex: 0 0 34px !important;
  display: grid !important;
  place-items: center !important;
  z-index: 3 !important;
  background: #142235 !important;
  border: 1px solid #3d5876 !important;
  border-radius: 10px !important;
  color: #dce8f5 !important;
}
body.light .dr-head .dr-title, body.light .dr-head .dr-title .brand-main { color: #223349 !important; -webkit-text-fill-color: #223349 !important; }
body.light .dr-head .dr-title .brand-panel { color: #68798e !important; -webkit-text-fill-color: #68798e !important; }
body.light .dr-head .dr-x { background: #f0f4f9 !important; color: #304258 !important; border-color: #cbd6e3 !important; }

/* Admin sidebar heading: MASTER white, PANEL neutral grey; remove inherited text gradient. */
body .dh .tt {
  display: flex !important;
  gap: 5px !important;
  align-items: center !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  background: none !important;
  color: var(--raj-ui-white) !important;
  -webkit-text-fill-color: var(--raj-ui-white) !important;
  text-shadow: none !important;
  font-size: clamp(14px, 3.8vw, 17px) !important;
}
body .dh .tt .master-word { color: var(--raj-ui-white) !important; -webkit-text-fill-color: var(--raj-ui-white) !important; }
body .dh .tt .panel-word { color: #aeb9c7 !important; -webkit-text-fill-color: #aeb9c7 !important; }
body .dh .x { flex: 0 0 auto !important; position: relative !important; z-index: 2 !important; }
body.light .dh .tt .master-word { color: #223349 !important; -webkit-text-fill-color: #223349 !important; }
body.light .dh .tt .panel-word { color: #68798e !important; -webkit-text-fill-color: #68798e !important; }

/* User dashboard: real purchase counts in the two retained metric cards only. */
body.dash .purchase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
body.dash .purchase-card {
  min-height: 116px !important;
  padding: 18px 14px 13px !important;
  background: linear-gradient(145deg, #111d2d, #0c1420) !important;
  overflow: hidden !important;
}
body.dash .purchase-card .ico2 { top: 13px !important; right: 14px !important; font-size: 23px !important; }
body.dash .purchase-today .ico2 { color: #55d4ad !important; text-shadow: 0 0 13px rgba(85,212,173,.32) !important; }
body.dash .purchase-month .ico2 { color: #f2c66d !important; text-shadow: 0 0 13px rgba(242,198,109,.28) !important; }
body.dash .purchase-card .n { font-size: 34px !important; line-height: 1.1 !important; color: #f4f8fc !important; margin-top: 8px !important; }
body.dash .purchase-card .lb { font-size: 11px !important; font-weight: 800 !important; letter-spacing: 1.05px !important; color: #d4deea !important; margin-top: 8px !important; }
body.dash .purchase-note { color: #9eafc2 !important; font-size: 11px !important; margin-top: 5px !important; }
@media(max-width:380px) { body.dash .purchase-card { padding: 15px 11px 12px !important; } body.dash .purchase-card .n { font-size: 29px !important; } body.dash .purchase-card .lb { font-size: 9px !important; letter-spacing: .6px !important; } }

/* Colourful yet coordinated icon accents on cards and dashboard shortcuts. */
body .bal > .w { color: #7caeff !important; filter: none !important; text-shadow: 0 0 12px rgba(124,174,255,.25) !important; }
body .safe .t > i { color: #54cfdf !important; }
body .top5-ico, body .act h3 i { color: #f2c66d !important; -webkit-text-fill-color: #f2c66d !important; }
body .qgrid .qt i { color: var(--c, #72a9f5) !important; -webkit-text-fill-color: var(--c, #72a9f5) !important; filter: none !important; text-shadow: 0 0 12px rgba(var(--cr,114,169,245),.25) !important; }
body .box.p .ic { background: linear-gradient(135deg,#477fc6,#3275a9) !important; color:#fff !important; }
body .box.c .ic { background: linear-gradient(135deg,#32bfd3,#217f9b) !important; color:#fff !important; }
body .box.r .ic { background: linear-gradient(135deg,#f06a78,#b83d58) !important; color:#fff !important; }
body .box.g .ic { background: linear-gradient(135deg,#3dc59b,#1d896d) !important; color:#fff !important; }
body .box.o .ic { background: linear-gradient(135deg,#f0bd5f,#b7812c) !important; color:#19202a !important; }
body .nav a:nth-of-type(5n+1) > svg { color:#75aaf5 !important; }
body .nav a:nth-of-type(5n+2) > svg { color:#55d4ad !important; }
body .nav a:nth-of-type(5n+3) > svg { color:#f2c66d !important; }
body .nav a:nth-of-type(5n+4) > svg { color:#54cfdf !important; }
body .nav a:nth-of-type(5n) > svg { color:#f47b86 !important; }

/* All tutorial/how-to controls carry the same restrained YouTube-red outline. */
@property --raj-how-edge-alpha { syntax: "<number>"; inherits: false; initial-value: .65; }
@property --raj-how-glow-alpha { syntax: "<number>"; inherits: false; initial-value: .10; }
@keyframes raj-how-border-pulse {
  0%,100% { --raj-how-edge-alpha: .56; --raj-how-glow-alpha: .08; }
  50% { --raj-how-edge-alpha: 1; --raj-how-glow-alpha: .24; }
}
body :is(.howbar,.how-use-top,.btn-how-to-use,.dp-how,.bn-how) {
  --raj-how-edge-alpha: .65;
  --raj-how-glow-alpha: .10;
  background: linear-gradient(135deg,#151a23,#11141b) !important;
  border: 1px solid rgba(239,68,82,var(--raj-how-edge-alpha)) !important;
  color: #f3f7fb !important;
  -webkit-text-fill-color: #f3f7fb !important;
  box-shadow: 0 0 0 1px rgba(239,68,82,calc(var(--raj-how-glow-alpha) * .42)), 0 0 14px rgba(239,68,82,var(--raj-how-glow-alpha)) !important;
  animation: raj-how-border-pulse 3.3s ease-in-out infinite alternate !important;
}
body :is(.howbar,.how-use-top,.btn-how-to-use,.dp-how,.bn-how) > i { color: #f04452 !important; -webkit-text-fill-color: #f04452 !important; }
body :is(.howbar,.how-use-top,.btn-how-to-use,.dp-how,.bn-how):hover { background: linear-gradient(135deg,#21161c,#17141a) !important; border-color:#ff6673 !important; color:#fff !important; }
body .how-use-top { min-width:0 !important; white-space:nowrap !important; font-size:clamp(9px,2.65vw,12px) !important; letter-spacing:.15px !important; gap:6px !important; }
body .how-use-top span { overflow:hidden !important; text-overflow:ellipsis !important; white-space:nowrap !important; }
@media (prefers-reduced-motion: reduce) { body :is(.howbar,.how-use-top,.btn-how-to-use,.dp-how,.bn-how) { animation:none !important; --raj-how-edge-alpha:.9; --raj-how-glow-alpha:.14; } }

/* UPI and Binance logos in their respective payment method cards. */
body .pay-method-title { display:flex !important; align-items:center !important; justify-content:center !important; gap:9px !important; min-width:0 !important; }
body .pay-method-logo { display:block !important; object-fit:contain !important; flex:0 0 auto !important; }
body .upi-brand-logo { width:62px !important; height:28px !important; padding:2px 5px !important; background:#fff !important; border:1px solid rgba(230,238,247,.55) !important; border-radius:6px !important; }
body .binance-brand-logo { width:28px !important; height:28px !important; padding:2px !important; background:#191c23 !important; border:1px solid rgba(240,185,11,.28) !important; border-radius:7px !important; }
body .dp-h { color:#f3f7fc !important; }
body .bn-h { color:#f3f7fc !important; }

/* Prominent animated status indicator on reseller/admin live charts and API status. */
@keyframes raj-live-dot-pulse {
  0% { box-shadow:0 0 0 0 rgba(53,211,156,.62),0 0 7px rgba(53,211,156,.55); transform:scale(.94); }
  70% { box-shadow:0 0 0 7px rgba(53,211,156,0),0 0 11px rgba(53,211,156,.66); transform:scale(1.08); }
  100% { box-shadow:0 0 0 0 rgba(53,211,156,0),0 0 7px rgba(53,211,156,.55); transform:scale(.94); }
}
body :is(.live-badge,.lv,.ra-live) { border-radius:999px !important; }
body .live-badge { background:rgba(18,53,46,.88) !important; border-color:rgba(53,211,156,.42) !important; color:#a7f3d0 !important; }
body .live-badge i, body .lv i, body .ra-live i { animation:raj-live-dot-pulse 1.8s ease-out infinite !important; }
body .live-badge i { background:#35d39c !important; }
@media (prefers-reduced-motion: reduce) { body .live-badge i, body .lv i, body .ra-live i { animation:none !important; } }

/* Loading indicator: replace the remaining violet with an icy-blue/cyan spectrum. */
#gmLoader .gm-bars span { background:linear-gradient(180deg,#65d8e5 0%,#4389d1 100%) !important; box-shadow:0 0 8px rgba(65,177,219,.28) !important; }


/* Reseller dashboard metrics: sales and revenue summary (icons use distinct premium accents). */
body.dash .reseller-metrics-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 11px !important;
}
body.dash .reseller-metric-card {
  min-width: 0 !important;
  min-height: 118px !important;
  padding: 14px 12px 11px !important;
  position: relative !important;
  overflow: hidden !important;
  background: linear-gradient(145deg, #111d2d, #0b1420) !important;
}
body.dash .reseller-metric-card .ico2 {
  position: absolute !important;
  top: 11px !important;
  right: 12px !important;
  font-size: 20px !important;
}
body.dash .metric-sales-today .ico2 { color: #54cfdf !important; text-shadow: 0 0 12px rgba(84,207,223,.28) !important; }
body.dash .metric-sales-month .ico2 { color: #78a9ff !important; text-shadow: 0 0 12px rgba(120,169,255,.28) !important; }
body.dash .metric-revenue-today .ico2 { color: #f2c66d !important; text-shadow: 0 0 12px rgba(242,198,109,.25) !important; }
body.dash .metric-revenue-month .ico2 { color: #55d4ad !important; text-shadow: 0 0 12px rgba(85,212,173,.25) !important; }
body.dash .reseller-metric-card .n {
  font-size: clamp(22px, 6.3vw, 30px) !important;
  line-height: 1.12 !important;
  font-weight: 800 !important;
  margin-top: 8px !important;
  color: #f4f8fc !important;
  overflow-wrap: anywhere !important;
}
body.dash .reseller-metric-card .reseller-currency { font-size: .68em !important; color: #afc3d8 !important; }
body.dash .reseller-metric-card .lb {
  margin-top: 7px !important;
  font-size: clamp(9px, 2.7vw, 11px) !important;
  letter-spacing: .7px !important;
  line-height: 1.25 !important;
  color: #dce6f1 !important;
}
body.dash .reseller-metric-split {
  display: flex !important;
  justify-content: space-between !important;
  gap: 8px !important;
  border-top: 1px solid rgba(118,151,187,.24) !important;
  margin-top: 8px !important;
  padding-top: 7px !important;
  font-size: 10.5px !important;
  color: #aebed0 !important;
}
body.dash .reseller-metric-split span:first-child b { color: #55d4ad !important; }
body.dash .reseller-metric-split span:last-child b { color: #78a9ff !important; }
body.dash .reseller-metric-card .purchase-note { font-size: 10px !important; line-height: 1.3 !important; margin-top: 5px !important; color: #9eafc2 !important; }
@media(max-width:380px) {
  body.dash .reseller-metrics-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 8px !important; }
  body.dash .reseller-metric-card { padding: 13px 9px 10px !important; min-height: 112px !important; }
  body.dash .reseller-metric-card .n { font-size: clamp(19px, 6vw, 24px) !important; }
  body.dash .reseller-metric-card .lb { font-size: 9px !important; letter-spacing: .45px !important; }
  body.dash .reseller-metric-split { font-size: 9px !important; gap: 4px !important; }
}
