/* RAJ PREMIUM PANEL — single authoritative card-border pulse layer.
   All pulse variants share the same 3.2s wall-clock phase from card-pulse-sync.js.
   This stylesheet only controls card borders/glow and preserves fills, typography, buttons, theme and workflows. */
:root {
  --raj-final-pulse-period: 3.2s;
  --raj-final-pulse-delay: 0s;
}

/* Registered variables let the glow animate even when a legacy stylesheet marks box-shadow !important. */
@property --raj-soft-radius { syntax: "<length>"; inherits: false; initial-value: 4px; }
@property --raj-soft-alpha { syntax: "<number>"; inherits: false; initial-value: .075; }
@property --raj-soft-edge { syntax: "<number>"; inherits: false; initial-value: .48; }
@property --raj-res-radius { syntax: "<length>"; inherits: false; initial-value: 5px; }
@property --raj-res-alpha { syntax: "<number>"; inherits: false; initial-value: .11; }
@property --raj-res-edge { syntax: "<number>"; inherits: false; initial-value: .56; }
@property --raj-auth-radius { syntax: "<length>"; inherits: false; initial-value: 8px; }
@property --raj-auth-alpha { syntax: "<number>"; inherits: false; initial-value: .18; }
@property --raj-auth-edge { syntax: "<number>"; inherits: false; initial-value: .62; }
@property --raj-tutorial-radius { syntax: "<length>"; inherits: false; initial-value: 4px; }
@property --raj-tutorial-alpha { syntax: "<number>"; inherits: false; initial-value: .07; }
@property --raj-tutorial-edge { syntax: "<number>"; inherits: false; initial-value: .62; }

@keyframes rajFinalSoftCardPulse {
  0%, 100% { --raj-soft-radius: 4px; --raj-soft-alpha: .075; --raj-soft-edge: .48; }
  50%      { --raj-soft-radius: 7px; --raj-soft-alpha: .18;  --raj-soft-edge: .78; }
}
@keyframes rajFinalResellerCardPulse {
  0%, 100% { --raj-res-radius: 5px; --raj-res-alpha: .11; --raj-res-edge: .56; }
  50%      { --raj-res-radius: 9px; --raj-res-alpha: .25; --raj-res-edge: .90; }
}
@keyframes rajFinalAuthCardPulse {
  0%, 100% { --raj-auth-radius: 8px;  --raj-auth-alpha: .18; --raj-auth-edge: .62; }
  50%      { --raj-auth-radius: 14px; --raj-auth-alpha: .42; --raj-auth-edge: 1; }
}
@keyframes rajFinalTutorialRedPulse {
  0%, 100% { --raj-tutorial-radius: 4px; --raj-tutorial-alpha: .07; --raj-tutorial-edge: .62; }
  50%      { --raj-tutorial-radius: 7px; --raj-tutorial-alpha: .16; --raj-tutorial-edge: .92; }
}

/* Complete shared family list. Repeated :is() boosts specificity without changing the match set. */
html body.inner-app-page :is(
  [class~="card"], [class*="-card"], [class^="card-"], .nc, .top, .top5,
  .live-chart-card, .pf-card, .rs-card, .ra-card, .ra-pn, .ra-pl, .ra-hero,
  .ra-stats > div, .ra-ib, .ra-ibc, .bn-card, .dp-card, .dp-stat, .fpanel,
  .rbox, .rup-box, .qrbox, .mini2, .sx-box, .bal, .safe, .sc, .box, .pc,
  .stat, .panel, .mini, .upd, .kcard, .ticket-card, .tk-card, .tk-list,
  details.pcard, .pcard, .pn, .pn-card, .pn-none, .pn-empty, .okcard, .rs-box,
  .reseller-metric-card, .purchase-card, .validation-box, .premium-card, .stat-card,
  .metric-card, .dashboard-card, .chart-card, .key-card, .payment-card, .product-card,
  .purchase-box, .reseller-card, .admin-card, .profile-card, .deposit-card, .qt,
  .th-box, .urow, .dur, .card-box, .tbl-wrap, .twrap, .tst, .scard,
  .howbar, .how-use-top, .btn-how-to-use, .how-to-use-btn, .how-to-use-card,
  .how-to-buy-card, .tutorial-card, .dp-how, .bn-how
):is(
  [class~="card"], [class*="-card"], [class^="card-"], .nc, .top, .top5,
  .live-chart-card, .pf-card, .rs-card, .ra-card, .ra-pn, .ra-pl, .ra-hero,
  .ra-stats > div, .ra-ib, .ra-ibc, .bn-card, .dp-card, .dp-stat, .fpanel,
  .rbox, .rup-box, .qrbox, .mini2, .sx-box, .bal, .safe, .sc, .box, .pc,
  .stat, .panel, .mini, .upd, .kcard, .ticket-card, .tk-card, .tk-list,
  details.pcard, .pcard, .pn, .pn-card, .pn-none, .pn-empty, .okcard, .rs-box,
  .reseller-metric-card, .purchase-card, .validation-box, .premium-card, .stat-card,
  .metric-card, .dashboard-card, .chart-card, .key-card, .payment-card, .product-card,
  .purchase-box, .reseller-card, .admin-card, .profile-card, .deposit-card, .qt,
  .th-box, .urow, .dur, .card-box, .tbl-wrap, .twrap, .tst, .scard,
  .howbar, .how-use-top, .btn-how-to-use, .how-to-use-btn, .how-to-use-card,
  .how-to-buy-card, .tutorial-card, .dp-how, .bn-how
):not(:is(
  .auth-container, .reseller-card, .reseller-metric-card, .rs-card, .rs-box,
  .ra-card, .ra-pn, .ra-pl, .ra-hero, .ra-ib, .ra-ibc,
  .howbar, .how-use-top, .btn-how-to-use, .how-to-use-btn, .how-to-use-card,
  .how-to-buy-card, .tutorial-card, .dp-how, .bn-how
)) {
  --raj-soft-radius: 4px;
  --raj-soft-alpha: .075;
  --raj-soft-edge: .48;
  border-width: 2px !important;
  border-style: solid !important;
  border-color: rgba(var(--raj-accent-rgb, 75, 145, 219), var(--raj-soft-edge)) !important;
  box-shadow:
    0 0 0 .5px rgba(var(--raj-accent-rgb, 75, 145, 219), calc(var(--raj-soft-alpha) * .46)),
    0 0 var(--raj-soft-radius) 0 rgba(var(--raj-accent-rgb, 75, 145, 219), var(--raj-soft-alpha)),
    0 0 calc(var(--raj-soft-radius) + 1px) 1px rgba(var(--raj-accent-alt-rgb, 39, 194, 208), calc(var(--raj-soft-alpha) * .42)) !important;
  animation: rajFinalSoftCardPulse var(--raj-final-pulse-period, 3.2s) ease-in-out infinite !important;
  animation-delay: var(--raj-card-pulse-delay, 0s) !important;
  animation-fill-mode: both !important;
}

/* Reseller-facing feature cards stay clearer than standard cards but use the same shared phase. */
html body.inner-app-page :is(.reseller-card, .reseller-metric-card, .rs-card, .rs-box, .ra-card, .ra-pn, .ra-pl, .ra-hero, .ra-ib, .ra-ibc):is(.reseller-card, .reseller-metric-card, .rs-card, .rs-box, .ra-card, .ra-pn, .ra-pl, .ra-hero, .ra-ib, .ra-ibc),
html body.inner-admin-page :is(.reseller-card, .reseller-metric-card, .rs-card, .rs-box, .ra-card, .ra-pn, .ra-pl, .ra-hero, .ra-ib, .ra-ibc):is(.reseller-card, .reseller-metric-card, .rs-card, .rs-box, .ra-card, .ra-pn, .ra-pl, .ra-hero, .ra-ib, .ra-ibc) {
  --raj-res-radius: 5px;
  --raj-res-alpha: .11;
  --raj-res-edge: .56;
  border-width: 2px !important;
  border-style: solid !important;
  border-color: rgba(var(--raj-accent-rgb, 75, 145, 219), var(--raj-res-edge)) !important;
  box-shadow:
    0 0 .5px .5px rgba(var(--raj-accent-rgb, 75, 145, 219), calc(var(--raj-res-alpha) * .5)),
    0 0 var(--raj-res-radius) 0 rgba(var(--raj-accent-rgb, 75, 145, 219), var(--raj-res-alpha)),
    0 0 calc(var(--raj-res-radius) + 1px) 1px rgba(var(--raj-accent-alt-rgb, 39, 194, 208), calc(var(--raj-res-alpha) * .45)) !important;
  animation: rajFinalResellerCardPulse var(--raj-final-pulse-period, 3.2s) ease-in-out infinite !important;
  animation-delay: var(--raj-card-pulse-delay, 0s) !important;
  animation-fill-mode: both !important;
}

/* Tutorial cards keep the requested red accent; only their border and glow are animated. */
html body.inner-app-page :is(.howbar, .how-use-top, .btn-how-to-use, .how-to-use-btn, .how-to-use-card, .how-to-buy-card, .tutorial-card, .dp-how, .bn-how):is(.howbar, .how-use-top, .btn-how-to-use, .how-to-use-btn, .how-to-use-card, .how-to-buy-card, .tutorial-card, .dp-how, .bn-how),
html body.inner-admin-page :is(.howbar, .how-use-top, .btn-how-to-use, .how-to-use-btn, .how-to-use-card, .how-to-buy-card, .tutorial-card, .dp-how, .bn-how):is(.howbar, .how-use-top, .btn-how-to-use, .how-to-use-btn, .how-to-use-card, .how-to-buy-card, .tutorial-card, .dp-how, .bn-how) {
  --raj-tutorial-radius: 4px;
  --raj-tutorial-alpha: .07;
  --raj-tutorial-edge: .62;
  border-color: rgba(239, 68, 78, var(--raj-tutorial-edge)) !important;
  box-shadow:
    0 0 0 .5px rgba(239, 68, 78, calc(var(--raj-tutorial-alpha) * .48)),
    0 0 var(--raj-tutorial-radius) 0 rgba(239, 68, 78, var(--raj-tutorial-alpha)),
    0 0 calc(var(--raj-tutorial-radius) + 1px) 1px rgba(248, 93, 103, calc(var(--raj-tutorial-alpha) * .42)) !important;
  animation: rajFinalTutorialRedPulse var(--raj-final-pulse-period, 3.2s) ease-in-out infinite !important;
  animation-delay: var(--raj-card-pulse-delay, 0s) !important;
  animation-fill-mode: both !important;
}

/* Login and registration: stronger and wider pulse, shared 3.2s phase. Keep the existing rotating ring. */
html body .auth-container,
html body #login-ui.auth-container {
  --raj-auth-radius: 8px;
  --raj-auth-alpha: .18;
  --raj-auth-edge: .62;
  border-width: 1px !important;
  border-style: solid !important;
  border-color: rgba(var(--raj-accent-rgb, 75, 145, 219), var(--raj-auth-edge)) !important;
  box-shadow:
    0 0 .75px .5px rgba(var(--raj-accent-rgb, 75, 145, 219), calc(var(--raj-auth-alpha) * .58)),
    0 0 var(--raj-auth-radius) 1px rgba(var(--raj-accent-rgb, 75, 145, 219), var(--raj-auth-alpha)),
    0 0 calc(var(--raj-auth-radius) + 4px) 1.5px rgba(var(--raj-accent-alt-rgb, 39, 194, 208), calc(var(--raj-auth-alpha) * .62)) !important;
  animation: jumpCard 4s ease-in-out infinite, rajFinalAuthCardPulse var(--raj-final-pulse-period, 3.2s) ease-in-out infinite !important;
  animation-delay: 0s, var(--raj-card-pulse-delay, 0s) !important;
  animation-fill-mode: both !important;
}
html body .auth-container::after { inset: 1px !important; border-radius: 24px !important; }
html body .auth-container::before { animation: rotateLighting 3.2s linear infinite !important; }

/* Buy Keys card's legacy pseudo-ring is disabled so only the real card border pulses. */
html body .pn::after { content: none !important; animation: none !important; box-shadow: none !important; }

/* Keep the video play triangle visually centred. */
html body .pn-play {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
}
html body .pn-play > i,
html body .pn-play > svg {
  display: block !important;
  flex: 0 0 auto !important;
  width: 1em !important;
  height: 1em !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: translateX(1px) !important;
}
#refer-earn-settings { scroll-margin-top: 16px; }

@media (prefers-reduced-motion: reduce) {
  html body.inner-app-page :is([class~="card"], [class*="-card"], [class^="card-"], .nc, .top, .top5, .live-chart-card, .pf-card, .rs-card, .ra-card, .ra-pn, .ra-pl, .ra-hero, .ra-stats > div, .ra-ib, .ra-ibc, .bn-card, .dp-card, .dp-stat, .fpanel, .rbox, .rup-box, .qrbox, .mini2, .sx-box, .bal, .safe, .sc, .box, .pc, .stat, .panel, .mini, .upd, .kcard, .ticket-card, .tk-card, .tk-list, details.pcard, .pcard, .pn, .pn-card, .pn-none, .pn-empty, .okcard, .rs-box, .reseller-metric-card, .purchase-card, .validation-box, .premium-card, .stat-card, .metric-card, .dashboard-card, .chart-card, .key-card, .payment-card, .product-card, .purchase-box, .reseller-card, .admin-card, .profile-card, .deposit-card, .qt, .th-box, .urow, .dur, .card-box, .tbl-wrap, .twrap, .tst, .scard, .howbar, .how-use-top, .btn-how-to-use, .how-to-use-btn, .how-to-use-card, .how-to-buy-card, .tutorial-card, .dp-how, .bn-how),
  html body.inner-admin-page :is([class~="card"], [class*="-card"], [class^="card-"], .nc, .top, .top5, .live-chart-card, .pf-card, .rs-card, .ra-card, .ra-pn, .ra-pl, .ra-hero, .ra-stats > div, .ra-ib, .ra-ibc, .bn-card, .dp-card, .dp-stat, .fpanel, .rbox, .rup-box, .qrbox, .mini2, .sx-box, .bal, .safe, .sc, .box, .pc, .stat, .panel, .mini, .upd, .kcard, .ticket-card, .tk-card, .tk-list, details.pcard, .pcard, .pn, .pn-card, .pn-none, .pn-empty, .okcard, .rs-box, .reseller-metric-card, .purchase-card, .validation-box, .premium-card, .stat-card, .metric-card, .dashboard-card, .chart-card, .key-card, .payment-card, .product-card, .purchase-box, .reseller-card, .admin-card, .profile-card, .deposit-card, .qt, .th-box, .urow, .dur, .card-box, .tbl-wrap, .twrap, .tst, .scard, .howbar, .how-use-top, .btn-how-to-use, .how-to-use-btn, .how-to-use-card, .how-to-buy-card, .tutorial-card, .dp-how, .bn-how),
  html body .auth-container, html body #login-ui.auth-container {
    animation: none !important;
  }
}
