/*
 * Cashback Pro V36.7.112 — Universal Gradient Glass System
 * Fixes the V36.7.110 scope/cascade gap:
 * - V36.7.110 animated only the dashboard-home pseudo layer and tinted only a
 *   small set of surfaces.
 * - V36.7.81 explicitly set background-image:none!important on many Light
 *   cards, so later rules must deliberately restore gradient images.
 * This file is loaded LAST. It applies only to the built-in default Light/Dark
 * modes; seasonal and uploaded themes keep their own palettes and overlays.
 */

/* ---------- PAGE CANVAS: visible on every menu page, not only the home tab ---------- */
html body.default-light-mode {
  color-scheme: light !important;
  background-color: #edf3fb !important;
  background-image:
    radial-gradient(ellipse at 7% 8%, rgba(116, 164, 226, .28), transparent 36%),
    radial-gradient(ellipse at 94% 15%, rgba(181, 151, 231, .23), transparent 37%),
    radial-gradient(ellipse at 54% 96%, rgba(111, 190, 190, .18), transparent 43%),
    linear-gradient(128deg, #edf4fc 0%, #f4f1fb 48%, #edf7f5 100%) !important;
  background-size: 150% 150%, 150% 150%, 150% 150%, 180% 180% !important;
  background-attachment: fixed !important;
  animation: v367112LightCanvas 34s ease-in-out infinite alternate !important;
  color: #24354c !important;
}
html body.default-dark-mode {
  color-scheme: dark !important;
  background-color: #0a1121 !important;
  background-image:
    radial-gradient(ellipse at 8% 7%, rgba(49, 105, 184, .32), transparent 37%),
    radial-gradient(ellipse at 92% 20%, rgba(126, 77, 174, .27), transparent 38%),
    radial-gradient(ellipse at 50% 100%, rgba(16, 139, 145, .19), transparent 43%),
    linear-gradient(128deg, #0b1428 0%, #111b34 48%, #1a1631 100%) !important;
  background-size: 150% 150%, 150% 150%, 150% 150%, 180% 180% !important;
  background-attachment: fixed !important;
  animation: v367112DarkCanvas 38s ease-in-out infinite alternate !important;
  color: #eaf0ff !important;
}

@keyframes v367112LightCanvas {
  0% { background-position: 0% 0%, 100% 10%, 40% 100%, 0% 0%; }
  100% { background-position: 100% 60%, 0% 80%, 100% 0%, 100% 100%; }
}
@keyframes v367112DarkCanvas {
  0% { background-position: 0% 10%, 100% 0%, 50% 100%, 0% 0%; }
  100% { background-position: 100% 70%, 0% 90%, 100% 10%, 100% 100%; }
}

/* Page/layout wrappers must stay clear so the moving canvas is visible between
   all the cards in every menu section. Do not make these wrappers opaque. */
html body.default-light-mode .main-container,
html body.default-light-mode main,
html body.default-light-mode .tab-content,
html body.default-light-mode .tab-content.active,
html body.default-light-mode .main-content,
html body.default-light-mode .page-content,
html body.default-light-mode #tab-admin,
html body.default-light-mode #tab-admin > .admin-card,
html body.default-dark-mode .main-container,
html body.default-dark-mode main,
html body.default-dark-mode .tab-content,
html body.default-dark-mode .tab-content.active,
html body.default-dark-mode .main-content,
html body.default-dark-mode .page-content,
html body.default-dark-mode #tab-admin,
html body.default-dark-mode #tab-admin > .admin-card {
  background-color: transparent !important;
  background-image: none !important;
}

/* ---------- SHARED GLASS-SURFACE PALETTES ---------- */
html body.default-light-mode .app-header,
html body.default-light-mode #app-sidebar,
html body.default-light-mode .tabs-nav,
html body.default-light-mode .glass-panel,
html body.default-light-mode .modal-card,
html body.default-light-mode .seasonal-kpi,
html body.default-light-mode .seasonal-orders,
html body.default-light-mode .balance-card,
html body.default-light-mode .finance-card,
html body.default-light-mode .withdrawal-card,
html body.default-light-mode .bank-management-card,
html body.default-light-mode .customer-withdrawals-card,
html body.default-light-mode .customer-withdrawals-filters,
html body.default-light-mode .profile-page-card,
html body.default-light-mode .converter-card,
html body.default-light-mode .table-card,
html body.default-light-mode .kpi-card,
html body.default-light-mode .ai-copilot-box,
html body.default-light-mode .admin-section-card,
html body.default-light-mode .section-card,
html body.default-light-mode .content-card,
html body.default-light-mode .filter-card,
html body.default-light-mode .order-card,
html body.default-light-mode .support-card,
html body.default-light-mode .commission-card,
html body.default-light-mode .admin-access-card,
html body.default-light-mode .marketplace-list-card,
html body.default-light-mode .kb-upload-panel,
html body.default-light-mode .inbox-split,
html body.default-light-mode .result-box,
html body.default-light-mode .guidance-box {
  color: #26364d !important;
  background-color: rgba(243, 248, 255, .82) !important;
  background-image:
    radial-gradient(ellipse at 0% 0%, rgba(123, 169, 231, .22), transparent 54%),
    radial-gradient(ellipse at 100% 100%, rgba(186, 158, 232, .19), transparent 56%),
    linear-gradient(137deg, rgba(255,255,255,.94) 0%, rgba(234,243,253,.91) 54%, rgba(247,241,255,.91) 100%) !important;
  background-size: 145% 145%, 145% 145%, 100% 100% !important;
  border-color: rgba(125, 151, 190, .31) !important;
  box-shadow: 0 12px 30px rgba(43, 66, 103, .09), inset 0 1px 0 rgba(255,255,255,.92) !important;
  -webkit-backdrop-filter: blur(16px) saturate(125%) !important;
  backdrop-filter: blur(16px) saturate(125%) !important;
}

html body.default-dark-mode .app-header,
html body.default-dark-mode #app-sidebar,
html body.default-dark-mode .tabs-nav,
html body.default-dark-mode .glass-panel,
html body.default-dark-mode .modal-card,
html body.default-dark-mode .seasonal-kpi,
html body.default-dark-mode .seasonal-orders,
html body.default-dark-mode .balance-card,
html body.default-dark-mode .finance-card,
html body.default-dark-mode .withdrawal-card,
html body.default-dark-mode .bank-management-card,
html body.default-dark-mode .customer-withdrawals-card,
html body.default-dark-mode .customer-withdrawals-filters,
html body.default-dark-mode .profile-page-card,
html body.default-dark-mode .converter-card,
html body.default-dark-mode .table-card,
html body.default-dark-mode .kpi-card,
html body.default-dark-mode .ai-copilot-box,
html body.default-dark-mode .admin-section-card,
html body.default-dark-mode .section-card,
html body.default-dark-mode .content-card,
html body.default-dark-mode .filter-card,
html body.default-dark-mode .order-card,
html body.default-dark-mode .support-card,
html body.default-dark-mode .commission-card,
html body.default-dark-mode .admin-access-card,
html body.default-dark-mode .marketplace-list-card,
html body.default-dark-mode .kb-upload-panel,
html body.default-dark-mode .inbox-split,
html body.default-dark-mode .result-box,
html body.default-dark-mode .guidance-box {
  color: #eaf0ff !important;
  background-color: rgba(17, 29, 51, .82) !important;
  background-image:
    radial-gradient(ellipse at 0% 0%, rgba(57, 111, 191, .28), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(126, 79, 180, .23), transparent 56%),
    linear-gradient(137deg, rgba(31,48,78,.95) 0%, rgba(17,31,56,.94) 54%, rgba(43,31,68,.91) 100%) !important;
  background-size: 145% 145%, 145% 145%, 100% 100% !important;
  border-color: rgba(130, 157, 202, .29) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.085) !important;
  -webkit-backdrop-filter: blur(16px) saturate(130%) !important;
  backdrop-filter: blur(16px) saturate(130%) !important;
}

/* ---------- EVERY ADMIN PANE, INCLUDING NESTED SUBPAGES ---------- */
html body.default-light-mode #tab-admin > .admin-card > .admin-nav-shell,
html body.default-light-mode #tab-admin > .admin-card > .admin-subnav,
html body.default-light-mode #tab-admin .customer-admin-subnav,
html body.default-light-mode #tab-admin > .admin-card > .admin-pane.active:not(#admin-pane-backups),
html body.default-light-mode #tab-admin > .admin-card > #admin-pane-users > .customer-admin-inner-pane.active,
html body.default-light-mode #tab-admin .backup-update-subnav,
html body.default-light-mode #tab-admin .backup-update-panel.active,
html body.default-light-mode #tab-admin .admin-pane.active:not(#admin-pane-backups),
html body.default-light-mode #tab-admin .admin-pane .admin-card,
html body.default-light-mode #tab-admin .admin-pane .admin-access-card,
html body.default-light-mode #tab-admin .customer-admin-inner-pane.active,
html body.default-light-mode #tab-admin .audit-filter-bar,
html body.default-light-mode #tab-admin .audit-log-frame {
  color: #26364d !important;
  background-color: rgba(243,248,255,.84) !important;
  background-image:
    radial-gradient(ellipse at 0% 0%, rgba(119,166,229,.22), transparent 56%),
    radial-gradient(ellipse at 100% 100%, rgba(187,159,231,.19), transparent 56%),
    linear-gradient(137deg, rgba(255,255,255,.95), rgba(233,243,253,.91) 55%, rgba(247,241,255,.92)) !important;
  border-color: rgba(125,151,190,.34) !important;
  box-shadow: 0 12px 30px rgba(43,66,103,.09), inset 0 1px 0 rgba(255,255,255,.92) !important;
  -webkit-backdrop-filter: blur(16px) saturate(125%) !important;
  backdrop-filter: blur(16px) saturate(125%) !important;
}

html body.default-dark-mode #tab-admin > .admin-card > .admin-nav-shell,
html body.default-dark-mode #tab-admin > .admin-card > .admin-subnav,
html body.default-dark-mode #tab-admin .customer-admin-subnav,
html body.default-dark-mode #tab-admin .backup-update-subnav,
html body.default-dark-mode #tab-admin .backup-update-panel.active,
html body.default-dark-mode #tab-admin > .admin-card > .admin-pane.active:not(#admin-pane-backups),
html body.default-dark-mode #tab-admin .admin-pane .admin-card,
html body.default-dark-mode #tab-admin .admin-pane .admin-access-card,
html body.default-dark-mode #tab-admin .customer-admin-inner-pane.active,
html body.default-dark-mode #tab-admin .audit-filter-bar,
html body.default-dark-mode #tab-admin .audit-log-frame {
  color: #eaf0ff !important;
  background-color: rgba(17,29,51,.84) !important;
  background-image:
    radial-gradient(ellipse at 0% 0%, rgba(57,111,191,.29), transparent 56%),
    radial-gradient(ellipse at 100% 100%, rgba(126,79,180,.23), transparent 56%),
    linear-gradient(137deg, rgba(31,48,78,.96), rgba(17,31,56,.94) 55%, rgba(43,31,68,.92)) !important;
  border-color: rgba(130,157,202,.31) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.085) !important;
  -webkit-backdrop-filter: blur(16px) saturate(130%) !important;
  backdrop-filter: blur(16px) saturate(130%) !important;
}

/* Admin content cards and nested action panels that are not the transparent
   legacy root wrapper. The backup parent itself intentionally stays frameless. */
html body.default-light-mode #tab-admin .admin-pane .backup-content-card,
html body.default-light-mode #tab-admin .admin-pane .marketplace-editor,
html body.default-light-mode #tab-admin .admin-pane .customer-create-user-card,
html body.default-light-mode #tab-admin .admin-pane .bank-admin-section,
html body.default-light-mode #tab-admin .admin-pane .backup-update-panel > .admin-card,
html body.default-light-mode #tab-admin .admin-pane .backup-update-panel .table-card,
html body.default-light-mode #tab-admin .admin-pane .custom-table,
html body.default-light-mode #tab-admin .admin-pane .inbox-split {
  background-image:
    radial-gradient(ellipse at 0% 0%, rgba(120,166,229,.17), transparent 58%),
    linear-gradient(135deg, rgba(255,255,255,.91), rgba(234,243,253,.88) 60%, rgba(247,241,255,.88)) !important;
  background-color: rgba(243,248,255,.82) !important;
  border-color: rgba(125,151,190,.29) !important;
  box-shadow: 0 8px 24px rgba(43,66,103,.075), inset 0 1px 0 rgba(255,255,255,.86) !important;
}
html body.default-dark-mode #tab-admin .admin-pane .backup-content-card,
html body.default-dark-mode #tab-admin .admin-pane .marketplace-editor,
html body.default-dark-mode #tab-admin .admin-pane .customer-create-user-card,
html body.default-dark-mode #tab-admin .admin-pane .bank-admin-section,
html body.default-dark-mode #tab-admin .admin-pane .backup-update-panel > .admin-card,
html body.default-dark-mode #tab-admin .admin-pane .backup-update-panel .table-card,
html body.default-dark-mode #tab-admin .admin-pane .custom-table,
html body.default-dark-mode #tab-admin .admin-pane .inbox-split {
  background-image:
    radial-gradient(ellipse at 0% 0%, rgba(57,111,191,.22), transparent 58%),
    linear-gradient(135deg, rgba(31,48,78,.91), rgba(17,31,56,.89) 60%, rgba(43,31,68,.88)) !important;
  background-color: rgba(17,29,51,.82) !important;
  border-color: rgba(130,157,202,.28) !important;
  box-shadow: 0 9px 26px rgba(0,0,0,.19), inset 0 1px 0 rgba(255,255,255,.07) !important;
}

/* Admin nav tiles + nested tabs also receive a coordinated gradient rather
   than leaving the shell colorful while the controls stay flat. */
html body.default-light-mode #tab-admin .admin-subnav-btn,
html body.default-light-mode #tab-admin .customer-admin-subnav-btn,
html body.default-light-mode #tab-admin .backup-update-tab-btn,
html body.default-light-mode .tabs-nav .tab-btn:hover,
html body.default-light-mode .tabs-nav .tab-btn.active {
  background-image: linear-gradient(135deg, rgba(255,255,255,.94), rgba(230,241,254,.92) 58%, rgba(245,236,255,.92)) !important;
  border-color: rgba(126,151,190,.34) !important;
}
html body.default-light-mode #tab-admin .admin-subnav-btn.active,
html body.default-light-mode #tab-admin .customer-admin-subnav-btn.active,
html body.default-light-mode #tab-admin .backup-update-tab-btn.active,
html body.default-light-mode .tabs-nav .tab-btn.active {
  background-image: linear-gradient(135deg, rgba(224,232,255,.98), rgba(233,222,255,.96) 58%, rgba(219,242,248,.95)) !important;
  border-color: rgba(137,112,212,.62) !important;
}
html body.default-dark-mode #tab-admin .admin-subnav-btn,
html body.default-dark-mode #tab-admin .customer-admin-subnav-btn,
html body.default-dark-mode #tab-admin .backup-update-tab-btn,
html body.default-dark-mode .tabs-nav .tab-btn:hover,
html body.default-dark-mode .tabs-nav .tab-btn.active {
  background-image: linear-gradient(135deg, rgba(34,53,84,.94), rgba(24,42,72,.92) 58%, rgba(55,39,83,.91)) !important;
  border-color: rgba(132,159,207,.32) !important;
}
html body.default-dark-mode #tab-admin .admin-subnav-btn.active,
html body.default-dark-mode #tab-admin .customer-admin-subnav-btn.active,
html body.default-dark-mode #tab-admin .backup-update-tab-btn.active,
html body.default-dark-mode .tabs-nav .tab-btn.active {
  background-image: linear-gradient(135deg, rgba(73,67,130,.82), rgba(49,57,111,.88) 58%, rgba(28,91,111,.78)) !important;
  border-color: rgba(161,137,244,.66) !important;
}

/* Tables get a tinted table canvas and subtle header gradient; form fields and
   action buttons are deliberately excluded to preserve their own states. */
html body.default-light-mode .custom-table {
  background-color: rgba(247,250,255,.72) !important;
  background-image: linear-gradient(135deg, rgba(244,248,255,.82), rgba(250,246,255,.76)) !important;
  color: #26364d !important;
}
html body.default-light-mode .custom-table thead th {
  background-image: linear-gradient(135deg, rgba(222,235,251,.94), rgba(238,230,253,.92)) !important;
  color: #26364d !important;
}
html body.default-light-mode .custom-table tbody tr:nth-child(even) td {
  background-color: rgba(224,236,250,.30) !important;
}
html body.default-dark-mode .custom-table {
  background-color: rgba(14,25,45,.72) !important;
  background-image: linear-gradient(135deg, rgba(29,47,76,.82), rgba(42,31,67,.76)) !important;
  color: #eaf0ff !important;
}
html body.default-dark-mode .custom-table thead th {
  background-image: linear-gradient(135deg, rgba(44,64,98,.96), rgba(59,45,91,.94)) !important;
  color: #f0f4ff !important;
}
html body.default-dark-mode .custom-table tbody tr:nth-child(even) td {
  background-color: rgba(69,90,130,.12) !important;
}

/* Docs loaded asynchronously should follow the same surface treatment too. */
html body.default-light-mode #docs-container-policy > article,
html body.default-light-mode #docs-container-guide > article,
html body.default-light-mode #docs-container-support > article,
html body.default-light-mode #docs-container-policy .document-card,
html body.default-light-mode #docs-container-guide .document-card,
html body.default-light-mode #docs-container-support .document-card,
html body.default-light-mode #docs-container-policy .doc-card,
html body.default-light-mode #docs-container-guide .doc-card,
html body.default-light-mode #docs-container-support .doc-card {
  background-image: linear-gradient(135deg, rgba(255,255,255,.94), rgba(234,243,253,.91), rgba(247,241,255,.91)) !important;
  background-color: rgba(243,248,255,.84) !important;
  border-color: rgba(125,151,190,.30) !important;
  box-shadow: 0 10px 26px rgba(43,66,103,.08) !important;
}
html body.default-dark-mode #docs-container-policy > article,
html body.default-dark-mode #docs-container-guide > article,
html body.default-dark-mode #docs-container-support > article,
html body.default-dark-mode #docs-container-policy .document-card,
html body.default-dark-mode #docs-container-guide .document-card,
html body.default-dark-mode #docs-container-support .document-card,
html body.default-dark-mode #docs-container-policy .doc-card,
html body.default-dark-mode #docs-container-guide .doc-card,
html body.default-dark-mode #docs-container-support .doc-card {
  background-image: linear-gradient(135deg, rgba(31,48,78,.94), rgba(17,31,56,.92), rgba(43,31,68,.90)) !important;
  background-color: rgba(17,29,51,.84) !important;
  border-color: rgba(130,157,202,.29) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.20) !important;
}

/* Preserve legibility of controls and honor reduced-motion preferences. */
html body.default-light-mode input,
html body.default-light-mode select,
html body.default-light-mode textarea {
  color-scheme: light;
}
html body.default-dark-mode input,
html body.default-dark-mode select,
html body.default-dark-mode textarea {
  color-scheme: dark;
}
@media (prefers-reduced-motion: reduce) {
  html body.default-light-mode,
  html body.default-dark-mode {
    animation: none !important;
  }
}
