/* Cashback V36.7.82 — scoped repair for light surfaces and consistent seasonal glass.
   This sheet replaces the broad V36.7.81 child transparency rule. It does not
   apply opacity to text or parent containers and does not alter layout/behavior. */

/* LIGHT MODE: use one quiet page canvas across every navigation tab. */
html body.default-light-mode,
html body.theme-default.default-light-mode {
  color-scheme: light !important;
  --bg-dark: #f3f6fb !important;
  --bg-surface: #ffffff !important;
  --bg-surface-2: #f6f8fc !important;
  --bg-card: #ffffff !important;
  --border-color: #d7e0ec !important;
  --border-light: #cbd6e4 !important;
  --text-main: #25344a !important;
  --text-muted: #586a80 !important;
  --text-sub: #687b91 !important;
  background: #ffffff !important;
  background-image: none !important;
  background-color: #ffffff !important;
  color: #25344a !important;
}

/* Structural wrappers stay transparent; unlike V36.7.81, do NOT force every
   direct child of an active tab to transparent. Card surfaces below stay solid. */
html body.default-light-mode .main-container,
html body.default-light-mode .main-content,
html body.default-light-mode .page-content,
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 #tab-finance,
html body.default-light-mode #tab-orders,
html body.default-light-mode #tab-converter,
html body.default-light-mode #tab-profile,
html body.default-light-mode #tab-support,
html body.default-light-mode #tab-admin,
html body.default-light-mode .admin-pane,
html body.default-light-mode .admin-pane.active {
  background: transparent !important;
  color: #25344a !important;
}
html body.default-light-mode .halloween-ambient-layer,
html body.default-light-mode .theme-ambient-fx { opacity: .035 !important; }

/* Explicit light surfaces: include withdrawal history and its request rows,
   which were omitted from the previous global override. */
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 #balance-summary-source,
html body.default-light-mode #balance-summary-source > *,
html body.default-light-mode .finance-card,
html body.default-light-mode .withdrawal-card,
html body.default-light-mode .customer-withdrawals-card,
html body.default-light-mode .customer-withdrawal-row,
html body.default-light-mode .bank-management-card,
html body.default-light-mode .customer-bank-item,
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 .admin-card,
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 .customer-admin-subnav {
  color: #26364c !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border-color: #d5dfeb !important;
  box-shadow: 0 5px 18px rgba(37,55,82,.075) !important;
  opacity: 1 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
html body.default-light-mode .customer-withdrawal-row,
html body.default-light-mode .customer-bank-item {
  background: #f6f8fc !important;
  background-color: #f6f8fc !important;
  border-color: #d9e2ed !important;
}
html body.default-light-mode .customer-withdrawals-head h3,
html body.default-light-mode .bank-management-heading h3,
html body.default-light-mode .customer-withdrawal-main strong,
html body.default-light-mode .customer-withdrawal-meta > b,
html body.default-light-mode .balance-title,
html body.default-light-mode .tab-content h1,
html body.default-light-mode .tab-content h2,
html body.default-light-mode .tab-content h3,
html body.default-light-mode .tab-content h4,
html body.default-light-mode .tab-content strong,
html body.default-light-mode .admin-pane h2,
html body.default-light-mode .admin-pane h3 {
  color: #26364c !important;
}
html body.default-light-mode .customer-withdrawals-head p,
html body.default-light-mode .customer-withdrawal-main span,
html body.default-light-mode .customer-withdrawal-main small,
html body.default-light-mode .bank-management-heading p,
html body.default-light-mode .balance-sub,
html body.default-light-mode .tab-content p,
html body.default-light-mode .tab-content label {
  color: #5d6e83 !important;
}
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 #balance-summary-source * {
  text-shadow: none !important;
}
html body.default-light-mode .customer-withdrawals-card input,
html body.default-light-mode .customer-withdrawals-card select,
html body.default-light-mode .customer-withdrawals-card textarea,
html body.default-light-mode .bank-management-card input,
html body.default-light-mode .bank-management-card select,
html body.default-light-mode .bank-management-card textarea,
html body.default-light-mode .tab-content .form-control {
  color: #26364c !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-color: #cbd7e5 !important;
  box-shadow: 0 1px 3px rgba(32,50,78,.045) !important;
}
html body.default-light-mode .tab-content input::placeholder,
html body.default-light-mode .tab-content textarea::placeholder {
  color: #8a98a9 !important;
  opacity: 1 !important;
}

/* SEASONAL DARK THEMES: the same blur, border and opacity on every primary
   panel, including withdrawal history and saved bank accounts. Light mode is
   explicitly excluded so seasonal rules cannot overwrite the light palette. */
html body.theme-halloween:not(.default-light-mode) .app-header,
html body.theme-halloween:not(.default-light-mode) .glass-panel,
html body.theme-halloween:not(.default-light-mode) .seasonal-sidebar,
html body.theme-halloween:not(.default-light-mode) .seasonal-kpi,
html body.theme-halloween:not(.default-light-mode) .seasonal-orders,
html body.theme-halloween:not(.default-light-mode) .balance-card,
html body.theme-halloween:not(.default-light-mode) .customer-withdrawals-card,
html body.theme-halloween:not(.default-light-mode) .customer-withdrawal-row,
html body.theme-halloween:not(.default-light-mode) .bank-management-card,
html body.theme-halloween:not(.default-light-mode) .customer-bank-item,
html body.theme-halloween:not(.default-light-mode) .profile-page-card,
html body.theme-halloween:not(.default-light-mode) .converter-card,
html body.theme-halloween:not(.default-light-mode) .table-card,
html body.theme-halloween:not(.default-light-mode) .admin-card,
html body.theme-halloween:not(.default-light-mode) .admin-pane,
html body.theme-winter:not(.default-light-mode) .app-header,
html body.theme-winter:not(.default-light-mode) .glass-panel,
html body.theme-winter:not(.default-light-mode) .seasonal-sidebar,
html body.theme-winter:not(.default-light-mode) .seasonal-kpi,
html body.theme-winter:not(.default-light-mode) .seasonal-orders,
html body.theme-winter:not(.default-light-mode) .balance-card,
html body.theme-winter:not(.default-light-mode) .customer-withdrawals-card,
html body.theme-winter:not(.default-light-mode) .customer-withdrawal-row,
html body.theme-winter:not(.default-light-mode) .bank-management-card,
html body.theme-winter:not(.default-light-mode) .customer-bank-item,
html body.theme-winter:not(.default-light-mode) .profile-page-card,
html body.theme-winter:not(.default-light-mode) .converter-card,
html body.theme-winter:not(.default-light-mode) .table-card,
html body.theme-winter:not(.default-light-mode) .admin-card,
html body.theme-winter:not(.default-light-mode) .admin-pane,
html body.theme-ocean:not(.default-light-mode) .app-header,
html body.theme-ocean:not(.default-light-mode) .glass-panel,
html body.theme-ocean:not(.default-light-mode) .seasonal-sidebar,
html body.theme-ocean:not(.default-light-mode) .seasonal-kpi,
html body.theme-ocean:not(.default-light-mode) .seasonal-orders,
html body.theme-ocean:not(.default-light-mode) .balance-card,
html body.theme-ocean:not(.default-light-mode) .customer-withdrawals-card,
html body.theme-ocean:not(.default-light-mode) .customer-withdrawal-row,
html body.theme-ocean:not(.default-light-mode) .bank-management-card,
html body.theme-ocean:not(.default-light-mode) .customer-bank-item,
html body.theme-ocean:not(.default-light-mode) .profile-page-card,
html body.theme-ocean:not(.default-light-mode) .converter-card,
html body.theme-ocean:not(.default-light-mode) .table-card,
html body.theme-ocean:not(.default-light-mode) .admin-card,
html body.theme-ocean:not(.default-light-mode) .admin-pane {
  -webkit-backdrop-filter: blur(16px) saturate(130%) !important;
  backdrop-filter: blur(16px) saturate(130%) !important;
  border: 1px solid rgba(190,215,245,.26) !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.10) !important;
  opacity: 1 !important;
}

/* Theme-specific glass colors; keep the transparency level consistent. */
html body.theme-halloween:not(.default-light-mode) .app-header,
html body.theme-halloween:not(.default-light-mode) .glass-panel,
html body.theme-halloween:not(.default-light-mode) .seasonal-sidebar,
html body.theme-halloween:not(.default-light-mode) .seasonal-kpi,
html body.theme-halloween:not(.default-light-mode) .seasonal-orders,
html body.theme-halloween:not(.default-light-mode) .balance-card,
html body.theme-halloween:not(.default-light-mode) .customer-withdrawals-card,
html body.theme-halloween:not(.default-light-mode) .customer-withdrawal-row,
html body.theme-halloween:not(.default-light-mode) .bank-management-card,
html body.theme-halloween:not(.default-light-mode) .customer-bank-item,
html body.theme-halloween:not(.default-light-mode) .profile-page-card,
html body.theme-halloween:not(.default-light-mode) .converter-card,
html body.theme-halloween:not(.default-light-mode) .table-card,
html body.theme-halloween:not(.default-light-mode) .admin-card,
html body.theme-halloween:not(.default-light-mode) .admin-pane {
  color: #f2edff !important;
  background: linear-gradient(145deg,rgba(72,44,101,.78),rgba(24,20,49,.84)) !important;
}
html body.theme-winter:not(.default-light-mode) .app-header,
html body.theme-winter:not(.default-light-mode) .glass-panel,
html body.theme-winter:not(.default-light-mode) .seasonal-sidebar,
html body.theme-winter:not(.default-light-mode) .seasonal-kpi,
html body.theme-winter:not(.default-light-mode) .seasonal-orders,
html body.theme-winter:not(.default-light-mode) .balance-card,
html body.theme-winter:not(.default-light-mode) .customer-withdrawals-card,
html body.theme-winter:not(.default-light-mode) .customer-withdrawal-row,
html body.theme-winter:not(.default-light-mode) .bank-management-card,
html body.theme-winter:not(.default-light-mode) .customer-bank-item,
html body.theme-winter:not(.default-light-mode) .profile-page-card,
html body.theme-winter:not(.default-light-mode) .converter-card,
html body.theme-winter:not(.default-light-mode) .table-card,
html body.theme-winter:not(.default-light-mode) .admin-card,
html body.theme-winter:not(.default-light-mode) .admin-pane {
  color: #edf6ff !important;
  background: linear-gradient(145deg,rgba(35,83,132,.78),rgba(10,36,70,.84)) !important;
}
html body.theme-ocean:not(.default-light-mode) .app-header,
html body.theme-ocean:not(.default-light-mode) .glass-panel,
html body.theme-ocean:not(.default-light-mode) .seasonal-sidebar,
html body.theme-ocean:not(.default-light-mode) .seasonal-kpi,
html body.theme-ocean:not(.default-light-mode) .seasonal-orders,
html body.theme-ocean:not(.default-light-mode) .balance-card,
html body.theme-ocean:not(.default-light-mode) .customer-withdrawals-card,
html body.theme-ocean:not(.default-light-mode) .customer-withdrawal-row,
html body.theme-ocean:not(.default-light-mode) .bank-management-card,
html body.theme-ocean:not(.default-light-mode) .customer-bank-item,
html body.theme-ocean:not(.default-light-mode) .profile-page-card,
html body.theme-ocean:not(.default-light-mode) .converter-card,
html body.theme-ocean:not(.default-light-mode) .table-card,
html body.theme-ocean:not(.default-light-mode) .admin-card,
html body.theme-ocean:not(.default-light-mode) .admin-pane {
  color: #e9fbff !important;
  background: linear-gradient(145deg,rgba(8,91,107,.78),rgba(3,43,63,.84)) !important;
}

/* Keep details and form controls readable on the seasonal glass surfaces. */
html body.theme-halloween:not(.default-light-mode) .customer-withdrawals-head h3,
html body.theme-winter:not(.default-light-mode) .customer-withdrawals-head h3,
html body.theme-ocean:not(.default-light-mode) .customer-withdrawals-head h3,
html body.theme-halloween:not(.default-light-mode) .bank-management-heading h3,
html body.theme-winter:not(.default-light-mode) .bank-management-heading h3,
html body.theme-ocean:not(.default-light-mode) .bank-management-heading h3,
html body.theme-halloween:not(.default-light-mode) .customer-withdrawal-main strong,
html body.theme-winter:not(.default-light-mode) .customer-withdrawal-main strong,
html body.theme-ocean:not(.default-light-mode) .customer-withdrawal-main strong,
html body.theme-halloween:not(.default-light-mode) .customer-withdrawal-meta > b,
html body.theme-winter:not(.default-light-mode) .customer-withdrawal-meta > b,
html body.theme-ocean:not(.default-light-mode) .customer-withdrawal-meta > b {
  color: #f3f7ff !important;
}
html body.theme-halloween:not(.default-light-mode) .customer-withdrawals-head p,
html body.theme-winter:not(.default-light-mode) .customer-withdrawals-head p,
html body.theme-ocean:not(.default-light-mode) .customer-withdrawals-head p,
html body.theme-halloween:not(.default-light-mode) .customer-withdrawal-main span,
html body.theme-winter:not(.default-light-mode) .customer-withdrawal-main span,
html body.theme-ocean:not(.default-light-mode) .customer-withdrawal-main span,
html body.theme-halloween:not(.default-light-mode) .customer-withdrawal-main small,
html body.theme-winter:not(.default-light-mode) .customer-withdrawal-main small,
html body.theme-ocean:not(.default-light-mode) .customer-withdrawal-main small,
html body.theme-halloween:not(.default-light-mode) .bank-management-heading p,
html body.theme-winter:not(.default-light-mode) .bank-management-heading p,
html body.theme-ocean:not(.default-light-mode) .bank-management-heading p {
  color: rgba(230,239,251,.78) !important;
}
html body.theme-halloween:not(.default-light-mode) .customer-withdrawals-card input,
html body.theme-halloween:not(.default-light-mode) .customer-withdrawals-card select,
html body.theme-halloween:not(.default-light-mode) .customer-withdrawals-card textarea,
html body.theme-halloween:not(.default-light-mode) .bank-management-card input,
html body.theme-halloween:not(.default-light-mode) .bank-management-card select,
html body.theme-halloween:not(.default-light-mode) .bank-management-card textarea,
html body.theme-winter:not(.default-light-mode) .customer-withdrawals-card input,
html body.theme-winter:not(.default-light-mode) .customer-withdrawals-card select,
html body.theme-winter:not(.default-light-mode) .customer-withdrawals-card textarea,
html body.theme-winter:not(.default-light-mode) .bank-management-card input,
html body.theme-winter:not(.default-light-mode) .bank-management-card select,
html body.theme-winter:not(.default-light-mode) .bank-management-card textarea,
html body.theme-ocean:not(.default-light-mode) .customer-withdrawals-card input,
html body.theme-ocean:not(.default-light-mode) .customer-withdrawals-card select,
html body.theme-ocean:not(.default-light-mode) .customer-withdrawals-card textarea,
html body.theme-ocean:not(.default-light-mode) .bank-management-card input,
html body.theme-ocean:not(.default-light-mode) .bank-management-card select,
html body.theme-ocean:not(.default-light-mode) .bank-management-card textarea {
  color: #f3f7ff !important;
  background: rgba(5,15,32,.76) !important;
  border-color: rgba(185,211,242,.30) !important;
}
html body.theme-halloween:not(.default-light-mode) input::placeholder,
html body.theme-winter:not(.default-light-mode) input::placeholder,
html body.theme-ocean:not(.default-light-mode) input::placeholder,
html body.theme-halloween:not(.default-light-mode) textarea::placeholder,
html body.theme-winter:not(.default-light-mode) textarea::placeholder,
html body.theme-ocean:not(.default-light-mode) textarea::placeholder {
  color: rgba(220,231,246,.58) !important;
  opacity: 1 !important;
}

@media (prefers-reduced-transparency: reduce) {
  html body.theme-halloween:not(.default-light-mode) .app-header,
  html body.theme-halloween:not(.default-light-mode) .glass-panel,
  html body.theme-halloween:not(.default-light-mode) .seasonal-sidebar,
  html body.theme-halloween:not(.default-light-mode) .seasonal-kpi,
  html body.theme-halloween:not(.default-light-mode) .seasonal-orders,
  html body.theme-halloween:not(.default-light-mode) .balance-card,
  html body.theme-halloween:not(.default-light-mode) .customer-withdrawals-card,
  html body.theme-halloween:not(.default-light-mode) .bank-management-card,
  html body.theme-winter:not(.default-light-mode) .app-header,
  html body.theme-winter:not(.default-light-mode) .glass-panel,
  html body.theme-winter:not(.default-light-mode) .seasonal-sidebar,
  html body.theme-winter:not(.default-light-mode) .seasonal-kpi,
  html body.theme-winter:not(.default-light-mode) .seasonal-orders,
  html body.theme-winter:not(.default-light-mode) .balance-card,
  html body.theme-winter:not(.default-light-mode) .customer-withdrawals-card,
  html body.theme-winter:not(.default-light-mode) .bank-management-card,
  html body.theme-ocean:not(.default-light-mode) .app-header,
  html body.theme-ocean:not(.default-light-mode) .glass-panel,
  html body.theme-ocean:not(.default-light-mode) .seasonal-sidebar,
  html body.theme-ocean:not(.default-light-mode) .seasonal-kpi,
  html body.theme-ocean:not(.default-light-mode) .seasonal-orders,
  html body.theme-ocean:not(.default-light-mode) .balance-card,
  html body.theme-ocean:not(.default-light-mode) .customer-withdrawals-card,
  html body.theme-ocean:not(.default-light-mode) .bank-management-card {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}
