/* Cashback Pro V36.8.56 — shared, position-aligned dashboard gradient.
   Each card reveals a distinct slice of ONE virtual gradient canvas.  Slices
   are aligned to the same .seasonal-main origin by v36-8-56 JS; gradients
   no longer restart at the upper-left of every separate card. */

@property --cb-v856-flow {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}

@keyframes cbV856SharedFlow {
  0%   { --cb-v856-flow: -95px; }
  100% { --cb-v856-flow: 95px; }
}

/* Only the default Sáng/Tối themes are changed.  Disable per-card gradient
   animations once coordinates are ready: one ancestor animates an inherited
   offset for all six surfaces in phase. */
html body:is(.default-light-mode, .default-dark-mode) #seasonal-dashboard .seasonal-main[data-cb-v856-root="1"] {
  animation: cbV856SharedFlow 28s ease-in-out infinite alternate !important;
}

html body:is(.default-light-mode, .default-dark-mode) #seasonal-dashboard .seasonal-main[data-cb-v856-root="1"] :is(.seasonal-welcome, .seasonal-kpis > article.seasonal-kpi:is(.kpi-cyan,.kpi-purple,.kpi-blue,.kpi-green), .seasonal-orders)[data-cb-v856-surface="1"] {
  animation: none !important;
  animation-delay: 0s !important;
  background-repeat: no-repeat !important;
  background-size:
    var(--cb-v856-width) var(--cb-v856-height),
    var(--cb-v856-width) var(--cb-v856-height),
    var(--cb-v856-width) var(--cb-v856-height),
    var(--cb-v856-width) var(--cb-v856-height) !important;
  background-position:
    calc(var(--cb-v856-left) + var(--cb-v856-flow)) calc(var(--cb-v856-top) - var(--cb-v856-flow)),
    calc(var(--cb-v856-left) + var(--cb-v856-flow)) calc(var(--cb-v856-top) - var(--cb-v856-flow)),
    calc(var(--cb-v856-left) + var(--cb-v856-flow)) calc(var(--cb-v856-top) - var(--cb-v856-flow)),
    calc(var(--cb-v856-left) + var(--cb-v856-flow)) calc(var(--cb-v856-top) - var(--cb-v856-flow)) !important;
  -webkit-backdrop-filter: blur(15px) saturate(130%) !important;
  backdrop-filter: blur(15px) saturate(130%) !important;
}

html body.default-light-mode #seasonal-dashboard .seasonal-main[data-cb-v856-root="1"] :is(.seasonal-welcome, .seasonal-kpis > article.seasonal-kpi:is(.kpi-cyan,.kpi-purple,.kpi-blue,.kpi-green), .seasonal-orders)[data-cb-v856-surface="1"] {
  background-color: rgba(224, 235, 251, .64) !important;
  background-image:
    radial-gradient(ellipse 68% 48% at 0% 6%, rgba(132, 184, 239, .30), transparent 72%),
    radial-gradient(ellipse 65% 45% at 100% 45%, rgba(177, 148, 232, .25), transparent 75%),
    radial-gradient(ellipse 70% 40% at 15% 100%, rgba(124, 197, 191, .20), transparent 73%),
    linear-gradient(165deg, rgba(232,244,255,.88) 0%,rgba(222,234,252,.84) 30%,rgba(228,223,250,.81) 62%,rgba(219,237,244,.83) 100%) !important;
  border-color: rgba(119, 153, 200, .28) !important;
}

html body.default-dark-mode #seasonal-dashboard .seasonal-main[data-cb-v856-root="1"] :is(.seasonal-welcome, .seasonal-kpis > article.seasonal-kpi:is(.kpi-cyan,.kpi-purple,.kpi-blue,.kpi-green), .seasonal-orders)[data-cb-v856-surface="1"] {
  background-color: rgba(16, 29, 52, .78) !important;
  background-image:
    radial-gradient(ellipse 70% 46% at 0% 8%, rgba(63, 126, 184, .27), transparent 73%),
    radial-gradient(ellipse 66% 45% at 100% 46%, rgba(126, 88, 177, .28), transparent 73%),
    radial-gradient(ellipse 73% 42% at 12% 100%, rgba(43, 121, 135, .17), transparent 72%),
    linear-gradient(160deg, rgba(27,52,83,.85) 0%,rgba(19,34,59,.86) 33%,rgba(36,30,68,.85) 65%,rgba(22,45,73,.84) 100%) !important;
  border-color: rgba(131, 159, 211, .28) !important;
}

/* No extra per-card gradient plate is allowed to obscure the shared wash.
   Keep loading badges, icons and the real content above the backgrounds. */
html body:is(.default-light-mode, .default-dark-mode) #seasonal-dashboard .seasonal-main > .seasonal-kpis > article.seasonal-kpi[data-cb-v856-surface="1"]::before,
html body:is(.default-light-mode, .default-dark-mode) #seasonal-dashboard .seasonal-main > .seasonal-kpis > article.seasonal-kpi[data-cb-v856-surface="1"]::after,
html body:is(.default-light-mode, .default-dark-mode) #seasonal-dashboard .seasonal-main > .seasonal-orders[data-cb-v856-surface="1"]::before {
  background: none !important;
  animation: none !important;
  pointer-events: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html body:is(.default-light-mode, .default-dark-mode) #seasonal-dashboard .seasonal-main[data-cb-v856-root="1"] {
    animation: none !important;
  }
}
