/* RAJ PREMIUM PANEL — final layer v7 (loaded after v6 on every shell).
   1. Login / Register title uses the same bold animated brand style as the sign under the social icons.
   2. Glow only where it belongs: buttons + text. Decorative glows on icons, badges, logos, sidebars and modals are removed.
   3. Login / Register card keeps (and strengthens) its pulsing glow border.
   4. Every other card: tighter pulse area (smaller than before) with stronger intensity, so neighbouring cards never blend.
   5. Buy Keys: feature rows float up/down smoothly in place (no overlap, no layout shift).
   6. Whole interface is slightly smaller (single knob: --raj-ui-scale).
   Rules use `html body:not(#rajx)` (ID-level specificity) so they win over the older layered files without piling up classes. */

:root { --raj-ui-scale: .92; }

/* =====================================================================
   1. LOGIN / REGISTER TITLE — same look as the brand under the social icons
   ===================================================================== */
html body:not(#rajx) .brand-logo.raj-auth-brand {
  display: flex; justify-content: center; align-items: center;
  margin: 10px 0 0; padding: 0;
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
  font-size: 15px; font-weight: 800; letter-spacing: normal; line-height: 1.3;
  text-shadow: none !important; filter: none;
  color: inherit !important; -webkit-text-fill-color: initial !important;
}
html body:not(#rajx) .brand-logo.raj-auth-brand .rbs-name {
  display: inline-block; max-width: 100%;
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
  font-size: inherit; font-weight: 800; letter-spacing: .2em; padding-left: .2em;
  text-transform: uppercase; white-space: nowrap; line-height: 1.3;
  background: none !important; color: inherit !important; -webkit-text-fill-color: initial !important;
  text-shadow: none !important;
  animation: rbsGlow 3.2s ease-in-out infinite;
}
html body:not(#rajx) .brand-logo.raj-auth-brand .rbs-w1 {
  background: linear-gradient(100deg, #dbe7f7 0%, #dbe7f7 38%, #ffffff 50%, #dbe7f7 62%, #dbe7f7 100%) !important;
  background-size: 260% 100% !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  color: transparent !important; -webkit-text-fill-color: transparent !important;
  text-shadow: none !important; font-weight: 800 !important;
  animation: rbsShine 4.6s linear infinite;
}
html body:not(#rajx) .brand-logo.raj-auth-brand .rbs-w2 {
  background: linear-gradient(100deg, rgb(var(--raj-accent-rgb, 75,145,219)), rgb(var(--raj-accent-alt-rgb, 39,194,208)), rgb(var(--raj-accent-rgb, 75,145,219))) !important;
  background-size: 220% 100% !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  color: transparent !important; -webkit-text-fill-color: transparent !important;
  text-shadow: none !important; font-weight: 800 !important; animation: rbsShine 3.8s linear infinite reverse;
}
@media (max-width: 340px) {
  html body:not(#rajx) .brand-logo.raj-auth-brand { font-size: 13px; }
  html body:not(#rajx) .brand-logo.raj-auth-brand .rbs-name { letter-spacing: .15em; padding-left: .15em; }
}

/* =====================================================================
   2. GLOW ONLY ON BUTTONS + TEXT — remove decorative glows
   ===================================================================== */
/* icon / emoji drop-shadows */
html body:not(#rajx) :is(.top5-ico, .okring svg, .dtop .menu-btn i, .nc.act h3 i, .qt i, .qgrid .qt svg, .qgrid .qt i, .scanner-orb > div, .tbar i) {
  filter: none !important;
}
/* badges, avatars, logos, small tiles */
html body:not(#rajx) :is(.pill.r, .abadge, .rhow, .pf-av, .sp-logo, .rup, .rup-ico, .safe .en, .bn-qr,
  .dr-head .dr-logo, .dr .dh .lg, .pn-b, .pn-b1, .pn-b2, .pn-chip, .pn-search, .pn-plan) {
  box-shadow: none !important; animation: none !important;
}
/* sidebars: plain dark depth only, no coloured glow, no glowing active bar */
html body:not(#rajx) :is(.drawer, .dr) { box-shadow: 14px 0 36px rgba(0, 0, 0, .55) !important; }
html body:not(#rajx) .drawer a.act,
html body:not(#rajx) .dr a.it.act { box-shadow: none !important; }
html body:not(#rajx) .drawer a.act::before,
html body:not(#rajx) .dr a.it.act::before { box-shadow: none !important; }
/* modals / popups */
html body:not(#rajx) :is(.th-box, .guest-auth-box, .guest-profile-menu, .pn-mb) { box-shadow: 0 18px 50px rgba(0, 0, 0, .55) !important; }
/* sign-in loader + shield */
html body:not(#rajx) .validation-box { box-shadow: 0 18px 50px rgba(0, 0, 0, .55) !important; }
/* brand sign: keep the travelling line + text glow, drop the glowing dots */
@keyframes rbsDot { 0%, 100% { transform: scale(.82); opacity: .55; } 50% { transform: scale(1); opacity: 1; } }
html body:not(#rajx) .raj-brand-sign .rbs-dot { box-shadow: none !important; }

/* =====================================================================
   3. LOGIN / REGISTER CARD — pulsing glow border (kept + stronger)
   ===================================================================== */
@property --rv7-aa { syntax: "<number>"; inherits: false; initial-value: .18; }
@property --rv7-ar { syntax: "<length>"; inherits: false; initial-value: 8px; }
@keyframes rajV7AuthGlow {
  0%, 100% { --rv7-aa: .18; --rv7-ar: 8px; }
  50%      { --rv7-aa: .80; --rv7-ar: 24px; }
}
html body:not(#rajx) .auth-container {
  box-shadow:
    0 0 calc(var(--rv7-ar) * .35) 0 rgba(84, 207, 223, var(--rv7-aa)),
    0 0 var(--rv7-ar) 1px rgba(47, 112, 191, calc(var(--rv7-aa) * .5)) !important;
  animation: auth-border-track 7s linear infinite, auth-card-border-pulse 3.4s ease-in-out infinite, rajV7AuthGlow 3.4s ease-in-out infinite !important;
  zoom: var(--raj-ui-scale);
}

/* =====================================================================
   4. OTHER CARDS — tighter pulse area, stronger intensity
   The shared keyframes below replace the earlier ones of the same name (last definition wins).
   Old reach: ~11px at peak, peak alpha .70/.28.  New reach: ~7px at peak, peak alpha .95/.42.
   ===================================================================== */
@keyframes rajBuyKeysSharedPulseV4 {
  0%, 100% {
    --raj-v4-edge-alpha: .55;
    --raj-v4-near-radius: 1px;
    --raj-v4-near-alpha: .30;
    --raj-v4-far-radius: 2px;
    --raj-v4-far-alpha: .10;
  }
  50% {
    --raj-v4-edge-alpha: 1;
    --raj-v4-near-radius: 3px;
    --raj-v4-near-alpha: .95;
    --raj-v4-far-radius: 6px;
    --raj-v4-far-alpha: .42;
  }
}
/* Buy Keys panel card: gradient edge ring */
@keyframes raj-buy-key-edge-pulse {
  0%, 100% { opacity: .55; filter: drop-shadow(0 0 1px rgba(78, 175, 220, .28)); }
  50%      { opacity: 1;   filter: drop-shadow(0 0 3px rgba(74, 196, 220, .95)) drop-shadow(0 0 5px rgba(52, 152, 211, .42)); }
}
html body:not(#rajx) .pn::after { filter: drop-shadow(0 0 2px rgba(78, 175, 220, .5)); }

/* Buy Keys video card: companion colour, same tight area, half a cycle out of phase.
   Border + shadow are driven through variables because the older rules mark them !important
   (an !important declaration cannot be animated directly, a custom property can). */
@property --rv7-va { syntax: "<number>"; inherits: false; initial-value: .5; }
@property --rv7-vg { syntax: "<number>"; inherits: false; initial-value: .12; }
@property --rv7-vr { syntax: "<length>"; inherits: false; initial-value: 1px; }
@keyframes rajV7VideoPulse {
  0%, 100% { --rv7-va: .55; --rv7-vg: .14; --rv7-vr: 1px; }
  50%      { --rv7-va: 1;   --rv7-vg: .85; --rv7-vr: 4px; }
}
html body:not(#rajx) .pn .pn-video-card {
  border: 1.5px solid rgba(var(--raj-accent-alt-rgb, 39,194,208), var(--rv7-va)) !important;
  box-shadow:
    0 0 var(--rv7-vr) 0 rgba(var(--raj-accent-alt-rgb, 39,194,208), var(--rv7-vg)),
    inset 0 0 8px rgba(var(--raj-accent-alt-rgb, 39,194,208), calc(var(--rv7-vg) * .16)) !important;
  animation: rajV7VideoPulse 3.2s ease-in-out infinite !important;
  animation-delay: calc(var(--raj-card-pulse-delay, 0s) - 1.6s) !important;
}
/* cards need a little breathing room so the (now tight) glows never touch */
html body:not(#rajx) .pn { margin-top: 14px !important; margin-bottom: 14px !important; }

/* =====================================================================
   5. BUY KEYS FEATURES — smooth floating movement, fixed place, no overlap
   Each row moves only ±2px (transform, so no layout shift) and rows are phase-shifted by a small
   step, so two neighbours never differ by more than ~1.3px while the gap between rows is 5px.
   ===================================================================== */
@keyframes rajV7FeatFloat {
  0%, 100% { transform: translate3d(0, -2px, 0); }
  50%      { transform: translate3d(0, 2px, 0); }
}
html body:not(#rajx) .pn-feats { gap: 6px !important; }
html body:not(#rajx) .pn-feats .pn-f {
  animation: rajV7FeatFloat 3.6s ease-in-out infinite !important;
  will-change: transform;
  backface-visibility: hidden;
}
html body:not(#rajx) .pn-feats .pn-f:nth-child(1) { animation-delay: 0s !important; }
html body:not(#rajx) .pn-feats .pn-f:nth-child(2) { animation-delay: -.35s !important; }
html body:not(#rajx) .pn-feats .pn-f:nth-child(3) { animation-delay: -.70s !important; }
html body:not(#rajx) .pn-feats .pn-f:nth-child(4) { animation-delay: -1.05s !important; }
html body:not(#rajx) .pn-feats .pn-f:nth-child(5) { animation-delay: -1.40s !important; }
html body:not(#rajx) .pn-feats .pn-f:nth-child(6) { animation-delay: -1.75s !important; }
html body:not(#rajx) .pn-feats .pn-f:nth-child(n+7) { animation-delay: -2.10s !important; }

/* =====================================================================
   6. SLIGHTLY SMALLER INTERFACE (more content visible per screen)
   One knob: change --raj-ui-scale at the top (1 = original size, .92 = default, .88 = smaller).
   ===================================================================== */
@supports (zoom: 1) {
  html body.inner-app-page,
  html body.inner-admin-page { zoom: var(--raj-ui-scale); }
}

@media (prefers-reduced-motion: reduce) {
  html body:not(#rajx) .pn-feats .pn-f { animation: none !important; will-change: auto; }
  html body:not(#rajx) .brand-logo.raj-auth-brand .rbs-name,
  html body:not(#rajx) .brand-logo.raj-auth-brand .rbs-w1,
  html body:not(#rajx) .brand-logo.raj-auth-brand .rbs-w2 { animation: none !important; }
  html body:not(#rajx) .pn .pn-video-card { animation: none !important; }
  html body:not(#rajx) .auth-container { animation: none !important; --rv7-aa: .5; --rv7-ar: 14px; }
}

/* Hidden (expandable) feature rows look exactly like the first three rows. */
html body:not(#rajx) .pn-feats .pn-f.pn-extra { display: none; }
html body:not(#rajx) .pn-feats.open .pn-f.pn-extra { display: flex; }
