/* Cashback Pro 36.10.53
   Keep the original Dashboard as the reference. Lighter glass for scenic
   Dashboard cards and other menu panels; never put a color plate behind a
   whole group. The tint, blur and motion stay on each EXISTING card only.
   All elements' text/icons/buttons remain fully opaque. */

/* Soft theme colors: lower alpha than V36.7.131 and the later V36.10.52
   converter patch. These are inherited by the same card rendering rule,
   rather than creating a separate unrelated color for each section. */
html body.default-dark-mode {
  --cb53-glass-base: rgba(12, 28, 53, .07);
  --cb53-glass-top: rgba(59, 123, 211, .21);
  --cb53-glass-bottom: rgba(143, 91, 204, .17);
  --cb53-glass-a: rgba(27, 67, 112, .25);
  --cb53-glass-b: rgba(62, 48, 105, .20);
  --cb53-glass-c: rgba(14, 104, 112, .17);
  --cb53-glass-line: rgba(127, 157, 208, .36);
  --cb53-glass-shadow: rgba(0, 0, 0, .15);
}
html body.default-light-mode {
  --cb53-glass-base: rgba(204, 224, 247, .08);
  --cb53-glass-top: rgba(92, 157, 229, .20);
  --cb53-glass-bottom: rgba(173, 132, 224, .17);
  --cb53-glass-a: rgba(160, 202, 245, .23);
  --cb53-glass-b: rgba(202, 184, 239, .20);
  --cb53-glass-c: rgba(147, 214, 203, .18);
  --cb53-glass-line: rgba(106, 145, 194, .34);
  --cb53-glass-shadow: rgba(55, 82, 128, .07);
}
html body:is(.theme-halloween, .halloween-active):not(.default-light-mode) {
  --cb53-glass-base: rgba(31, 14, 48, .06);
  --cb53-glass-top: rgba(158, 77, 184, .23);
  --cb53-glass-bottom: rgba(205, 91, 69, .16);
  --cb53-glass-a: rgba(88, 42, 112, .31);
  --cb53-glass-b: rgba(54, 29, 78, .32);
  --cb53-glass-c: rgba(92, 39, 66, .30);
  --cb53-glass-line: rgba(196, 142, 232, .37);
  --cb53-glass-shadow: rgba(0, 0, 0, .15);
}
html body.theme-winter:not(.default-light-mode) {
  --cb53-glass-base: rgba(5, 31, 60, .06);
  --cb53-glass-top: rgba(60, 156, 222, .23);
  --cb53-glass-bottom: rgba(113, 190, 232, .16);
  --cb53-glass-a: rgba(15, 86, 139, .29);
  --cb53-glass-b: rgba(14, 54, 98, .32);
  --cb53-glass-c: rgba(20, 91, 121, .28);
  --cb53-glass-line: rgba(139, 209, 247, .36);
  --cb53-glass-shadow: rgba(0, 15, 36, .14);
}
html body.theme-ocean:not(.default-light-mode) {
  --cb53-glass-base: rgba(2, 28, 39, .06);
  --cb53-glass-top: rgba(20, 177, 169, .22);
  --cb53-glass-bottom: rgba(53, 139, 211, .17);
  --cb53-glass-a: rgba(5, 105, 111, .28);
  --cb53-glass-b: rgba(5, 57, 83, .32);
  --cb53-glass-c: rgba(9, 99, 123, .27);
  --cb53-glass-line: rgba(83, 210, 204, .36);
  --cb53-glass-shadow: rgba(0, 16, 27, .15);
}

/* Do not modify the Default Sáng/Tối Dashboard: it already has a precisely
   position-aligned V36.8.56 gradient. Update only its MENU cards.
   For scenic themes preserve the Dashboard's original V36.7.134 animations,
   varying only the color transparency and the amount of backdrop blur. */
html body:is(.theme-halloween, .halloween-active, .theme-winter, .theme-ocean):not(.default-light-mode)
  #seasonal-dashboard .seasonal-main .seasonal-kpis > article.seasonal-kpi,
html body:is(.theme-halloween, .halloween-active, .theme-winter, .theme-ocean):not(.default-light-mode)
  #seasonal-dashboard .seasonal-main .seasonal-orders,
html body:is(.default-light-mode, .default-dark-mode)
  #tab-converter > :is(.converter-card, .table-card),
html body:is(.theme-halloween, .halloween-active, .theme-winter, .theme-ocean):not(.default-light-mode)
  #tab-converter > :is(.converter-card, .table-card),
html body:is(.theme-halloween, .halloween-active, .theme-winter, .theme-ocean):not(.default-light-mode)
  .tab-content :is(.profile-page-card, .section-card, .content-card,
                   .order-card, .customer-withdrawals-card, .bank-management-card) {
  background-color: var(--cb53-glass-base) !important;
  background-image:
    radial-gradient(ellipse 76% 116% at 5% 8%, var(--cb53-glass-top), transparent 73%),
    radial-gradient(ellipse 78% 118% at 96% 92%, var(--cb53-glass-bottom), transparent 73%),
    linear-gradient(118deg,
      var(--cb53-glass-a) 0%,
      var(--cb53-glass-b) 52%,
      var(--cb53-glass-c) 100%) !important;
  background-repeat: no-repeat !important;
  background-clip: padding-box !important;
  border-color: var(--cb53-glass-line) !important;
  box-shadow: 0 9px 24px var(--cb53-glass-shadow),
              inset 0 1px 0 rgba(255, 255, 255, .07) !important;
  -webkit-backdrop-filter: blur(8px) saturate(116%) !important;
  backdrop-filter: blur(8px) saturate(116%) !important;
}

/* The existing Dashboard animation stays untouched. Only the menu glass
   panels use the V36.7.131 movement, like other menu surfaces. */
html body:is(.default-light-mode, .default-dark-mode)
  #tab-converter > :is(.converter-card, .table-card),
html body:is(.theme-halloween, .halloween-active, .theme-winter, .theme-ocean):not(.default-light-mode)
  #tab-converter > :is(.converter-card, .table-card) {
  background-size: 260% 260%, 260% 260%, 280% 280% !important;
  animation: v367131GradientDrift 26s ease-in-out infinite alternate !important;
}

/* In particular, do NOT darken any parents, the underlying scene, or
   nested controls. Lower tint alpha instead of applying opacity to cards. */
@media (prefers-reduced-motion: reduce) {
  html body:is(.default-light-mode, .default-dark-mode)
    #tab-converter > :is(.converter-card, .table-card),
  html body:is(.theme-halloween, .halloween-active, .theme-winter, .theme-ocean):not(.default-light-mode)
    #tab-converter > :is(.converter-card, .table-card) {
    animation: none !important;
  }
}
