/*
 * AutoWA Dark Clean v1.1.5
 * ------------------------------------------------------------
 * Scope rule: ONLY the effective Bootstrap/Vuexy dark theme.
 * Light mode is untouched. System mode automatically inherits this
 * skin when AutoWA resolves System -> dark on the <html> element.
 *
 * This file intentionally does not redefine --bs-primary or
 * --bs-primary-rgb. Admin-selected AutoWA primary colors remain the
 * source of truth for accents, focus rings and active states.
 * ------------------------------------------------------------
 */

html[data-bs-theme="dark"] {
  color-scheme: dark;

  /* Dark Clean palette */
  --adc-bg: #0f1113;
  --adc-surface: #141619;
  --adc-surface-raised: #181b1e;
  --adc-surface-soft: #1d2024;
  --adc-surface-hover: #22262a;
  --adc-border: #2b3035;
  --adc-border-soft: rgba(255, 255, 255, .075);
  --adc-border-strong: rgba(255, 255, 255, .13);
  --adc-heading: #f4f6f8;
  --adc-text: #c9ced5;
  --adc-muted: #929aa4;
  --adc-faint: #6f7780;
  --adc-black: #090a0b;
  --adc-grid: rgba(255, 255, 255, .027);
  --adc-shadow: 0 12px 34px rgba(0, 0, 0, .24);
  --adc-shadow-sm: 0 6px 18px rgba(0, 0, 0, .18);

  /* Bootstrap/Vuexy core tokens */
  --bs-body-color: var(--adc-text);
  --bs-body-color-rgb: 201, 206, 213;
  --bs-body-bg: var(--adc-bg);
  --bs-body-bg-rgb: 15, 17, 19;
  --bs-emphasis-color: #ffffff;
  --bs-emphasis-color-rgb: 255, 255, 255;
  --bs-heading-color: var(--adc-heading);
  --bs-secondary-color: var(--adc-muted);
  --bs-secondary-color-rgb: 146, 154, 164;
  --bs-secondary-bg: #202328;
  --bs-secondary-bg-rgb: 32, 35, 40;
  --bs-tertiary-color: rgba(201, 206, 213, .52);
  --bs-tertiary-color-rgb: 201, 206, 213;
  --bs-tertiary-bg: #23272b;
  --bs-tertiary-bg-rgb: 35, 39, 43;

  --bs-paper-bg: var(--adc-surface);
  --bs-paper-bg-rgb: 20, 22, 25;
  --bs-base-color: #eef1f4;
  --bs-base-color-rgb: 238, 241, 244;

  --bs-gray-25: #17191c;
  --bs-gray-50: #1b1e21;
  --bs-gray-75: #1f2226;
  --bs-gray-100: #24282c;
  --bs-gray-200: #2b3035;
  --bs-gray-300: #3a4046;
  --bs-gray-400: #555d66;
  --bs-gray-500: #737c86;
  --bs-gray-600: #929aa4;
  --bs-gray-700: #adb4bc;
  --bs-gray-800: #c9ced5;
  --bs-gray-900: #e7eaed;
  --bs-gray: #929aa4;
  --bs-gray-rgb: 146, 154, 164;

  --bs-border-color: var(--adc-border);
  --bs-border-color-translucent: var(--adc-border-soft);

  --bs-primary-text-emphasis: color-mix(in srgb, var(--bs-primary) 72%, white 28%);
  --bs-primary-bg-subtle: color-mix(in srgb, var(--bs-primary) 14%, var(--adc-surface) 86%);
  --bs-primary-border-subtle: color-mix(in srgb, var(--bs-primary) 34%, var(--adc-border) 66%);
  --bs-secondary-bg-subtle: #202328;
  --bs-secondary-border-subtle: #343a40;
  --bs-secondary-text-emphasis: #c3c8ce;
  --bs-success-bg-subtle: color-mix(in srgb, var(--bs-success) 13%, var(--adc-surface) 87%);
  --bs-success-border-subtle: color-mix(in srgb, var(--bs-success) 34%, var(--adc-border) 66%);
  --bs-info-bg-subtle: color-mix(in srgb, var(--bs-info) 13%, var(--adc-surface) 87%);
  --bs-info-border-subtle: color-mix(in srgb, var(--bs-info) 34%, var(--adc-border) 66%);
  --bs-warning-bg-subtle: color-mix(in srgb, var(--bs-warning) 13%, var(--adc-surface) 87%);
  --bs-warning-border-subtle: color-mix(in srgb, var(--bs-warning) 34%, var(--adc-border) 66%);
  --bs-danger-bg-subtle: color-mix(in srgb, var(--bs-danger) 13%, var(--adc-surface) 87%);
  --bs-danger-border-subtle: color-mix(in srgb, var(--bs-danger) 34%, var(--adc-border) 66%);
  --bs-light-bg-subtle: #1d2024;
  --bs-light-border-subtle: #30353a;
  --bs-dark-bg-subtle: #121416;
  --bs-dark-border-subtle: #33383d;

  --bs-link-color: var(--bs-primary);
  --bs-link-color-rgb: var(--bs-primary-rgb);
  --bs-link-hover-color: color-mix(in srgb, var(--bs-primary) 78%, white 22%);
  --bs-link-hover-color-rgb: var(--bs-primary-rgb);
  --bs-code-color: color-mix(in srgb, var(--bs-primary) 72%, #ffffff 28%);
  --bs-highlight-color: var(--adc-heading);
  --bs-highlight-bg: color-mix(in srgb, var(--bs-warning) 18%, var(--adc-surface) 82%);

  --bs-box-shadow: 0 .1875rem .75rem rgba(0, 0, 0, .22);
  --bs-box-shadow-xs: 0 .0625rem .375rem rgba(0, 0, 0, .17);
  --bs-box-shadow-sm: 0 .125rem .5rem rgba(0, 0, 0, .19);
  --bs-box-shadow-lg: 0 .35rem 1.35rem rgba(0, 0, 0, .27);
  --bs-box-shadow-xl: 0 .5rem 2rem rgba(0, 0, 0, .31);
  --bs-floating-component-shadow: 0 .45rem 1.5rem rgba(0, 0, 0, .35);

  /* Vuexy layout tokens */
  --bs-navbar-bg: rgba(20, 22, 25, .92);
  --bs-navbar-border-color: var(--adc-border-soft);
  --bs-navbar-box-shadow: 0 1px 0 var(--adc-border-soft);
  --bs-nav-box-shadow: none;
  --bs-nav-border-color: var(--adc-border);
  --bs-menu-bg: #111315;
  --bs-menu-bg-rgb: 17, 19, 21;
  --bs-menu-color: #cbd0d6;
  --bs-menu-color-rgb: 203, 208, 214;
  --bs-menu-hover-bg: rgba(255, 255, 255, .045);
  --bs-menu-hover-color: #ffffff;
  --bs-menu-sub-active-bg: color-mix(in srgb, var(--bs-primary) 10%, transparent);
  --bs-menu-sub-active-color: color-mix(in srgb, var(--bs-primary) 75%, white 25%);
  --bs-menu-header-color: #777f88;
  --bs-menu-box-shadow: 1px 0 0 var(--adc-border-soft);
  --bs-menu-horizontal-menu-box-shadow: 0 0 0 1px var(--adc-border);
  --bs-menu-horizontal-menu-sub-box-shadow: 0 0 0 1px var(--adc-border);

  --bs-focus-ring-color: rgba(var(--bs-primary-rgb), .30);
}

/* ============================================================
   FOUNDATION / TECHNICAL BACKGROUND
   ============================================================ */
html[data-bs-theme="dark"] body {
  background-color: var(--adc-bg) !important;
  background-image:
    linear-gradient(var(--adc-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--adc-grid) 1px, transparent 1px) !important;
  background-size: 24px 24px !important;
  background-attachment: fixed !important;
  color: var(--adc-text);
}

html[data-bs-theme="dark"] .layout-wrapper,
html[data-bs-theme="dark"] .layout-page,
html[data-bs-theme="dark"] .content-wrapper {
  background-color: transparent !important;
}

/* Do not create a page-level stacking context here. Bootstrap/Vuexy and several
   AutoWA plugins render modals inside these containers. `isolation:isolate` can
   trap the dialog below a body-level backdrop, making the page look frozen. */
html[data-bs-theme="dark"] .container-xxl.container-p-y,
html[data-bs-theme="dark"] .container-fluid.container-p-y {
  isolation: auto;
}

html[data-bs-theme="dark"] ::selection {
  background: rgba(var(--bs-primary-rgb), .32);
  color: #fff;
}

/* ============================================================
   NAVBAR / SIDEBAR / FOOTER
   ============================================================ */
html[data-bs-theme="dark"] #layout-menu,
html[data-bs-theme="dark"] .layout-menu,
html[data-bs-theme="dark"] .bg-menu-theme {
  background-color: #111315 !important;
  color: var(--adc-text) !important;
}

html[data-bs-theme="dark"] .layout-navbar,
html[data-bs-theme="dark"] .layout-navbar.navbar-detached.bg-navbar-theme,
html[data-bs-theme="dark"] .bg-navbar-theme {
  background-color: rgba(20, 22, 25, .92) !important;
  border-color: var(--adc-border-soft) !important;
  box-shadow: 0 1px 0 var(--adc-border-soft) !important;
  backdrop-filter: blur(16px) saturate(115%);
  -webkit-backdrop-filter: blur(16px) saturate(115%);
}

html[data-bs-theme="dark"] .content-footer,
html[data-bs-theme="dark"] .bg-footer-theme {
  background: transparent !important;
  color: var(--adc-muted) !important;
}

html[data-bs-theme="dark"] .menu-inner-shadow {
  background: linear-gradient(#111315 5%, rgba(17, 19, 21, .7) 45%, rgba(17, 19, 21, 0)) !important;
}

html[data-bs-theme="dark"] .menu-item .menu-link {
  color: #afb6be;
}

html[data-bs-theme="dark"] .menu-item .menu-link:hover,
html[data-bs-theme="dark"] .menu-item.open > .menu-link,
html[data-bs-theme="dark"] .menu-item.active > .menu-link:not(.menu-toggle) {
  color: var(--adc-heading);
}

html[data-bs-theme="dark"] .menu-item.active > .menu-link:not(.menu-toggle) {
  background: color-mix(in srgb, var(--bs-primary) 18%, transparent) !important;
  box-shadow: inset 2px 0 0 var(--bs-primary);
}

/* ============================================================
   SURFACES / CARDS
   ============================================================ */
html[data-bs-theme="dark"] .card,
html[data-bs-theme="dark"] .accordion-item,
html[data-bs-theme="dark"] .list-group-item,
html[data-bs-theme="dark"] .toast,
html[data-bs-theme="dark"] .offcanvas,
html[data-bs-theme="dark"] .modal-content,
html[data-bs-theme="dark"] .dropdown-menu,
html[data-bs-theme="dark"] .popover {
  background-color: var(--adc-surface) !important;
  border-color: var(--adc-border) !important;
}

html[data-bs-theme="dark"] .card {
  border: 1px solid var(--adc-border) !important;
  box-shadow: 0 7px 24px rgba(0, 0, 0, .16) !important;
}

html[data-bs-theme="dark"] .card-header,
html[data-bs-theme="dark"] .card-footer,
html[data-bs-theme="dark"] .modal-header,
html[data-bs-theme="dark"] .modal-footer,
html[data-bs-theme="dark"] .offcanvas-header,
html[data-bs-theme="dark"] .dropdown-header,
html[data-bs-theme="dark"] .popover-header {
  background-color: transparent !important;
  border-color: var(--adc-border) !important;
}

html[data-bs-theme="dark"] .card.card-border-shadow-primary,
html[data-bs-theme="dark"] .card.card-border-shadow-success,
html[data-bs-theme="dark"] .card.card-border-shadow-info,
html[data-bs-theme="dark"] .card.card-border-shadow-warning,
html[data-bs-theme="dark"] .card.card-border-shadow-danger {
  box-shadow: 0 7px 24px rgba(0, 0, 0, .16) !important;
}

html[data-bs-theme="dark"] .bg-white,
html[data-bs-theme="dark"] .bg-body,
html[data-bs-theme="dark"] .bg-body-secondary,
html[data-bs-theme="dark"] .bg-body-tertiary,
html[data-bs-theme="dark"] .bg-light {
  background-color: var(--adc-surface) !important;
  color: var(--adc-text) !important;
}

html[data-bs-theme="dark"] .border,
html[data-bs-theme="dark"] .border-top,
html[data-bs-theme="dark"] .border-end,
html[data-bs-theme="dark"] .border-bottom,
html[data-bs-theme="dark"] .border-start {
  border-color: var(--adc-border) !important;
}

/* ============================================================
   TYPOGRAPHY / MUTED CONTENT
   ============================================================ */
html[data-bs-theme="dark"] h1,
html[data-bs-theme="dark"] h2,
html[data-bs-theme="dark"] h3,
html[data-bs-theme="dark"] h4,
html[data-bs-theme="dark"] h5,
html[data-bs-theme="dark"] h6,
html[data-bs-theme="dark"] .h1,
html[data-bs-theme="dark"] .h2,
html[data-bs-theme="dark"] .h3,
html[data-bs-theme="dark"] .h4,
html[data-bs-theme="dark"] .h5,
html[data-bs-theme="dark"] .h6,
html[data-bs-theme="dark"] .text-heading {
  color: var(--adc-heading) !important;
}

html[data-bs-theme="dark"] .text-body,
html[data-bs-theme="dark"] .text-body-emphasis {
  color: var(--adc-text) !important;
}

html[data-bs-theme="dark"] .text-muted,
html[data-bs-theme="dark"] .text-secondary {
  color: var(--adc-muted) !important;
}

html[data-bs-theme="dark"] hr {
  border-color: var(--adc-border) !important;
}

/* ============================================================
   FORMS
   ============================================================ */
html[data-bs-theme="dark"] .form-control,
html[data-bs-theme="dark"] .form-select,
html[data-bs-theme="dark"] .input-group-text,
html[data-bs-theme="dark"] .form-control-plaintext,
html[data-bs-theme="dark"] .bootstrap-select > .dropdown-toggle,
html[data-bs-theme="dark"] .select2-container--default .select2-selection,
html[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection,
html[data-bs-theme="dark"] .tagify {
  background-color: var(--adc-surface-soft) !important;
  border-color: #343a40 !important;
  color: var(--adc-heading) !important;
  box-shadow: none !important;
}

html[data-bs-theme="dark"] .form-control:focus,
html[data-bs-theme="dark"] .form-select:focus,
html[data-bs-theme="dark"] .bootstrap-select > .dropdown-toggle:focus,
html[data-bs-theme="dark"] .select2-container--open .select2-selection,
html[data-bs-theme="dark"] .tagify--focus {
  background-color: #202429 !important;
  border-color: var(--bs-primary) !important;
  box-shadow: 0 0 0 .15rem rgba(var(--bs-primary-rgb), .16) !important;
}

html[data-bs-theme="dark"] .form-control:disabled,
html[data-bs-theme="dark"] .form-select:disabled,
html[data-bs-theme="dark"] .form-control[readonly] {
  background-color: #181b1e !important;
  color: #747d86 !important;
  opacity: 1;
}

html[data-bs-theme="dark"] .form-control::placeholder,
html[data-bs-theme="dark"] textarea::placeholder,
html[data-bs-theme="dark"] input::placeholder {
  color: #747d86 !important;
  opacity: 1;
}

html[data-bs-theme="dark"] option,
html[data-bs-theme="dark"] optgroup {
  background: var(--adc-surface-raised) !important;
  color: var(--adc-text) !important;
}

html[data-bs-theme="dark"] .form-check-input {
  background-color: #202429;
  border-color: #3a4148;
}

html[data-bs-theme="dark"] .form-check-input:checked {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

html[data-bs-theme="dark"] .form-switch .form-check-input:not(:checked) {
  background-color: #343a40;
}

/* ============================================================
   TABLES / DATATABLES
   ============================================================ */
html[data-bs-theme="dark"] .table {
  --bs-table-color: var(--adc-text);
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--adc-border);
  --bs-table-striped-bg: rgba(255, 255, 255, .018);
  --bs-table-striped-color: var(--adc-text);
  --bs-table-active-bg: rgba(var(--bs-primary-rgb), .10);
  --bs-table-active-color: var(--adc-heading);
  --bs-table-hover-bg: rgba(255, 255, 255, .035);
  --bs-table-hover-color: var(--adc-heading);
}

html[data-bs-theme="dark"] .table > :not(caption) > * > * {
  border-bottom-color: var(--adc-border) !important;
}

html[data-bs-theme="dark"] .table thead th,
html[data-bs-theme="dark"] .table-light th,
html[data-bs-theme="dark"] .table-light td {
  background-color: var(--adc-surface-raised) !important;
  color: var(--adc-heading) !important;
  border-color: var(--adc-border) !important;
}

html[data-bs-theme="dark"] div.dt-container,
html[data-bs-theme="dark"] .dataTables_wrapper {
  color: var(--adc-text) !important;
}

html[data-bs-theme="dark"] table.dataTable tbody tr,
html[data-bs-theme="dark"] .table-responsive {
  background-color: transparent !important;
}

/* ============================================================
   DROPDOWNS / MODALS / OVERLAYS
   ============================================================ */
html[data-bs-theme="dark"] .dropdown-menu,
html[data-bs-theme="dark"] .modal-content,
html[data-bs-theme="dark"] .offcanvas,
html[data-bs-theme="dark"] .popover {
  box-shadow: var(--adc-shadow) !important;
}

html[data-bs-theme="dark"] .dropdown-item {
  color: var(--adc-text) !important;
}

html[data-bs-theme="dark"] .dropdown-item:hover,
html[data-bs-theme="dark"] .dropdown-item:focus,
html[data-bs-theme="dark"] .dropdown-item.active,
html[data-bs-theme="dark"] .dropdown-item:active {
  background-color: rgba(255, 255, 255, .05) !important;
  color: var(--adc-heading) !important;
}

html[data-bs-theme="dark"] .dropdown-item.active,
html[data-bs-theme="dark"] .dropdown-item:active {
  background-color: color-mix(in srgb, var(--bs-primary) 17%, transparent) !important;
  color: color-mix(in srgb, var(--bs-primary) 72%, white 28%) !important;
}

html[data-bs-theme="dark"] .modal-backdrop,
html[data-bs-theme="dark"] .offcanvas-backdrop {
  background-color: #000 !important;
}

html[data-bs-theme="dark"] .modal-backdrop.show,
html[data-bs-theme="dark"] .offcanvas-backdrop.show {
  opacity: .68 !important;
}

/* ============================================================
   NAVS / TABS / PILLS / PAGINATION
   ============================================================ */
html[data-bs-theme="dark"] .nav-tabs {
  border-color: var(--adc-border) !important;
}

html[data-bs-theme="dark"] .nav-tabs .nav-link {
  color: var(--adc-muted) !important;
  border-color: transparent !important;
}

html[data-bs-theme="dark"] .nav-tabs .nav-item.show .nav-link,
html[data-bs-theme="dark"] .nav-tabs .nav-link.active {
  background-color: var(--adc-surface-raised) !important;
  color: var(--adc-heading) !important;
  border-color: var(--adc-border) var(--adc-border) var(--adc-surface-raised) !important;
}

html[data-bs-theme="dark"] .nav-pills .nav-link:not(.active) {
  color: #aab1b9;
}

html[data-bs-theme="dark"] .nav-pills .nav-link:not(.active):hover {
  background: rgba(255, 255, 255, .035);
  color: var(--adc-heading);
}

html[data-bs-theme="dark"] .nav-pills .nav-link.active,
html[data-bs-theme="dark"] .nav-pills .show > .nav-link {
  box-shadow: none !important;
}

html[data-bs-theme="dark"] .page-link {
  background-color: var(--adc-surface) !important;
  border-color: var(--adc-border) !important;
  color: var(--adc-text) !important;
}

html[data-bs-theme="dark"] .page-link:hover {
  background-color: var(--adc-surface-hover) !important;
  color: var(--adc-heading) !important;
}

html[data-bs-theme="dark"] .page-item.active .page-link {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  color: var(--bs-primary-contrast, #fff) !important;
}

/* ============================================================
   BUTTONS / BADGES / ALERTS
   ============================================================ */
html[data-bs-theme="dark"] .btn:not(.btn-primary):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-info):not(.btn-secondary):not(.btn-dark):not(.btn-light) {
  border-color: var(--adc-border);
}

html[data-bs-theme="dark"] .btn-light,
html[data-bs-theme="dark"] .btn-outline-secondary {
  background-color: var(--adc-surface-raised) !important;
  border-color: #343a40 !important;
  color: var(--adc-text) !important;
}

html[data-bs-theme="dark"] .btn-light:hover,
html[data-bs-theme="dark"] .btn-outline-secondary:hover {
  background-color: var(--adc-surface-hover) !important;
  border-color: #424950 !important;
  color: #fff !important;
}

html[data-bs-theme="dark"] .alert {
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 22%, transparent);
  box-shadow: none;
}

html[data-bs-theme="dark"] .badge.bg-label-secondary,
html[data-bs-theme="dark"] .bg-label-secondary {
  background-color: #22262a !important;
  color: #b7bec6 !important;
}

/* ============================================================
   ACCORDION / LISTS / BREADCRUMB
   ============================================================ */
html[data-bs-theme="dark"] .accordion-button {
  background-color: var(--adc-surface) !important;
  color: var(--adc-heading) !important;
  box-shadow: none !important;
}

html[data-bs-theme="dark"] .accordion-button:not(.collapsed) {
  background-color: var(--adc-surface-raised) !important;
  color: color-mix(in srgb, var(--bs-primary) 78%, white 22%) !important;
}

html[data-bs-theme="dark"] .list-group-item-action:hover,
html[data-bs-theme="dark"] .list-group-item-action:focus {
  background-color: var(--adc-surface-hover) !important;
  color: var(--adc-heading) !important;
}

html[data-bs-theme="dark"] .breadcrumb-item,
html[data-bs-theme="dark"] .breadcrumb-item.active {
  color: var(--adc-muted) !important;
}

/* ============================================================
   CODE / API DOCUMENTATION
   ============================================================ */
html[data-bs-theme="dark"] pre,
html[data-bs-theme="dark"] code,
html[data-bs-theme="dark"] kbd,
html[data-bs-theme="dark"] samp {
  font-feature-settings: "liga" 0;
}

html[data-bs-theme="dark"] pre,
html[data-bs-theme="dark"] pre.bg-dark,
html[data-bs-theme="dark"] .bg-dark pre,
html[data-bs-theme="dark"] .code-block,
html[data-bs-theme="dark"] .code-preview,
html[data-bs-theme="dark"] .request-code,
html[data-bs-theme="dark"] .response-code {
  background: #090b0d !important;
  color: #dce2e7 !important;
  border: 1px solid #2a3035 !important;
  box-shadow: none !important;
}

html[data-bs-theme="dark"] pre code,
html[data-bs-theme="dark"] pre code * {
  background: transparent !important;
}

html[data-bs-theme="dark"] :not(pre) > code {
  background-color: rgba(var(--bs-primary-rgb), .10);
  border: 1px solid rgba(var(--bs-primary-rgb), .16);
  border-radius: .35rem;
  padding: .12rem .34rem;
}

/* Existing API docs has a hard-coded white active tab in a page-level <style>. */
html[data-bs-theme="dark"] .tab-content {
  color: var(--adc-text);
}

html[data-bs-theme="dark"] .tab-pane .card,
html[data-bs-theme="dark"] .tab-content .card {
  background-color: var(--adc-surface) !important;
}

/* ============================================================
   SELECT2 / BOOTSTRAP SELECT / TAGIFY / FLATPICKR
   ============================================================ */
html[data-bs-theme="dark"] .select2-dropdown,
html[data-bs-theme="dark"] .bootstrap-select .dropdown-menu,
html[data-bs-theme="dark"] .tagify__dropdown__wrapper,
html[data-bs-theme="dark"] .flatpickr-calendar,
html[data-bs-theme="dark"] .flatpickr-months,
html[data-bs-theme="dark"] .flatpickr-innerContainer,
html[data-bs-theme="dark"] .flatpickr-time {
  background: var(--adc-surface-raised) !important;
  border-color: var(--adc-border) !important;
  color: var(--adc-text) !important;
  box-shadow: var(--adc-shadow-sm) !important;
}

html[data-bs-theme="dark"] .select2-results__option,
html[data-bs-theme="dark"] .bootstrap-select .dropdown-item,
html[data-bs-theme="dark"] .tagify__dropdown__item,
html[data-bs-theme="dark"] .flatpickr-day,
html[data-bs-theme="dark"] .flatpickr-weekday,
html[data-bs-theme="dark"] .flatpickr-current-month,
html[data-bs-theme="dark"] .flatpickr-time input {
  color: var(--adc-text) !important;
}

html[data-bs-theme="dark"] .select2-results__option--highlighted,
html[data-bs-theme="dark"] .select2-results__option[aria-selected="true"],
html[data-bs-theme="dark"] .tagify__dropdown__item--active,
html[data-bs-theme="dark"] .flatpickr-day:hover {
  background: var(--adc-surface-hover) !important;
  color: #fff !important;
}

html[data-bs-theme="dark"] .flatpickr-day.selected,
html[data-bs-theme="dark"] .flatpickr-day.startRange,
html[data-bs-theme="dark"] .flatpickr-day.endRange {
  background: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  color: #fff !important;
}

/* ============================================================
   NOTYF / SWEETALERT / TOAST-LIKE PLUGINS
   ============================================================ */
html[data-bs-theme="dark"] .notyf__toast,
html[data-bs-theme="dark"] .swal2-popup,
html[data-bs-theme="dark"] .swal2-modal,
html[data-bs-theme="dark"] .gcu-dialog {
  background-color: var(--adc-surface-raised) !important;
  border: 1px solid var(--adc-border) !important;
  color: var(--adc-text) !important;
  box-shadow: var(--adc-shadow) !important;
}

html[data-bs-theme="dark"] .swal2-title,
html[data-bs-theme="dark"] .swal2-html-container,
html[data-bs-theme="dark"] .gcu-title {
  color: var(--adc-heading) !important;
}

/* ============================================================
   AUTH / BILLING / CHECKOUT COMPATIBILITY
   ============================================================ */
html[data-bs-theme="dark"] .authentication-wrapper,
html[data-bs-theme="dark"] .authentication-inner,
html[data-bs-theme="dark"] .auth-cover-bg,
html[data-bs-theme="dark"] .abg-shell,
html[data-bs-theme="dark"] .abg-page,
html[data-bs-theme="dark"] .checkout-page,
html[data-bs-theme="dark"] .payment-page {
  color: var(--adc-text);
}

html[data-bs-theme="dark"] .authentication-inner .card,
html[data-bs-theme="dark"] [class*="abg-"][class*="card"],
html[data-bs-theme="dark"] [class*="checkout-"][class*="card"],
html[data-bs-theme="dark"] [class*="payment-"][class*="card"] {
  background-color: var(--adc-surface) !important;
  border-color: var(--adc-border) !important;
}


/* ============================================================
   AUTH COVER — DARK CLEAN GUARANTEE
   Auto Bill GoPay's PasswordResetOtp middleware can return its auth view
   directly without calling the remainder of the web middleware chain.
   v1.1.7 makes Dark Clean the outermost web middleware and these selectors
   explicitly neutralize the legacy Vuexy blue/purple auth surfaces.
   ============================================================ */
html[data-bs-theme="dark"] .authentication-wrapper.authentication-cover,
html[data-bs-theme="dark"] .authentication-wrapper .authentication-inner {
  background: transparent !important;
}

html[data-bs-theme="dark"] .authentication-wrapper .auth-cover-bg {
  background-color: transparent !important;
  background-image:
    radial-gradient(circle at 50% 36%, rgba(var(--bs-primary-rgb), .075), transparent 34%),
    linear-gradient(var(--adc-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--adc-grid) 1px, transparent 1px) !important;
  background-size: auto, 24px 24px, 24px 24px !important;
}

html[data-bs-theme="dark"] .authentication-wrapper .authentication-bg {
  background-color: rgba(20, 22, 25, .94) !important;
  border-inline-start: 1px solid var(--adc-border-soft) !important;
}

html[data-bs-theme="dark"] .authentication-wrapper .platform-bg {
  opacity: .20 !important;
  filter: saturate(.15) brightness(.72) !important;
}

html[data-bs-theme="dark"] .authentication-wrapper :is(.form-control, .form-select, .input-group-text) {
  background-color: var(--adc-surface-raised) !important;
  border-color: var(--adc-border) !important;
  color: var(--adc-text) !important;
}

html[data-bs-theme="dark"] .authentication-wrapper :is(.form-control, .form-select)::placeholder {
  color: var(--adc-faint) !important;
}

html[data-bs-theme="dark"] .authentication-wrapper .text-muted {
  color: var(--adc-muted) !important;
}

/* ============================================================
   HOMEPAGE SEO / PUBLIC FRONTEND
   ============================================================ */
html[data-bs-theme="dark"] .landing-page-wrapper,
html[data-bs-theme="dark"] .landing-wrapper,
html[data-bs-theme="dark"] .scrollspy-example,
html[data-bs-theme="dark"] main {
  color: var(--adc-text);
}

/* Homepage SEO relies heavily on Bootstrap variables; these compatibility
   rules catch the few sections/components that intentionally use a bright
   surface in their own page-level CSS. */
html[data-bs-theme="dark"] [class^="hs-"][class*="card"],
html[data-bs-theme="dark"] [class*=" hs-"][class*="card"],
html[data-bs-theme="dark"] [class^="hs-"][class*="dialog"],
html[data-bs-theme="dark"] [class*=" hs-"][class*="dialog"],
html[data-bs-theme="dark"] [class^="hs-"][class*="panel"],
html[data-bs-theme="dark"] [class*=" hs-"][class*="panel"] {
  border-color: var(--adc-border) !important;
}

html[data-bs-theme="dark"] .hs-feature-dialog,
html[data-bs-theme="dark"] .hs-feature-x,
html[data-bs-theme="dark"] .hs-p4-benefit,
html[data-bs-theme="dark"] .hs-terms-dialog,
html[data-bs-theme="dark"] .hs-terms-toc a {
  background-color: var(--adc-surface) !important;
  border-color: var(--adc-border) !important;
  color: var(--adc-text) !important;
}

html[data-bs-theme="dark"] .hs-phase2,
html[data-bs-theme="dark"] .hs-phase4,
html[data-bs-theme="dark"] .hs-feature-item {
  background-color: transparent !important;
}

html[data-bs-theme="dark"] .hs-feature-item,
html[data-bs-theme="dark"] .hs-p4-benefit {
  background: rgba(20, 22, 25, .86) !important;
  backdrop-filter: blur(8px);
}

/* Keep intentionally white media controls readable instead of recoloring all
   white utility classes inside media previews. */
html[data-bs-theme="dark"] .hs-p4-play {
  background: #f4f6f8 !important;
  color: #101214 !important;
}

/* ============================================================
   LIVE CHAT / CAMPAIGNS / WELCOME / BOT / PHONEBOOK
   ============================================================ */
html[data-bs-theme="dark"] .chat-app-wrapper,
html[data-bs-theme="dark"] .app-chat,
html[data-bs-theme="dark"] .chat-history,
html[data-bs-theme="dark"] .chat-history-body,
html[data-bs-theme="dark"] .chat-sidebar,
html[data-bs-theme="dark"] .smart-campaign-wrapper,
html[data-bs-theme="dark"] .wm-wrapper,
html[data-bs-theme="dark"] .bot-flow-wrapper,
html[data-bs-theme="dark"] .phonebook-wrapper {
  color: var(--adc-text);
}

html[data-bs-theme="dark"] .wm-native-device-card,
html[data-bs-theme="dark"] .wm-catalog-preview__card,
html[data-bs-theme="dark"] [class*="campaign-"][class*="card"],
html[data-bs-theme="dark"] [class*="phonebook-"][class*="card"],
html[data-bs-theme="dark"] [class*="chat-"][class*="panel"] {
  background-color: var(--adc-surface) !important;
  border-color: var(--adc-border) !important;
}

/* WhatsApp-like incoming/outgoing bubbles keep their semantic tint but lose
   the old blue/purple dark-surface cast. */
html[data-bs-theme="dark"] .chat-message:not(.chat-message-right) .chat-message-text,
html[data-bs-theme="dark"] .chat-message:not(.message-out) .message-bubble {
  background-color: #1c2023 !important;
  border-color: #2e3439 !important;
}

/* ============================================================
   FILE MANAGERS / EDITORS / GENERIC PLUGIN PANELS
   ============================================================ */
html[data-bs-theme="dark"] .editor-toolbar,
html[data-bs-theme="dark"] .CodeMirror,
html[data-bs-theme="dark"] .ace_editor,
html[data-bs-theme="dark"] .file-manager,
html[data-bs-theme="dark"] .fm-content,
html[data-bs-theme="dark"] .fm-sidebar {
  background-color: var(--adc-surface) !important;
  color: var(--adc-text) !important;
  border-color: var(--adc-border) !important;
}

/* ============================================================
   SCROLLBARS
   ============================================================ */
html[data-bs-theme="dark"] {
  scrollbar-color: #3b4249 #111315;
  scrollbar-width: thin;
}

html[data-bs-theme="dark"] *::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

html[data-bs-theme="dark"] *::-webkit-scrollbar-track {
  background: #111315;
}

html[data-bs-theme="dark"] *::-webkit-scrollbar-thumb {
  background: #3b4249;
  border: 2px solid #111315;
  border-radius: 999px;
}

html[data-bs-theme="dark"] *::-webkit-scrollbar-thumb:hover {
  background: #4a535c;
}

/* Perfect Scrollbar used by Vuexy */
html[data-bs-theme="dark"] .ps__rail-x,
html[data-bs-theme="dark"] .ps__rail-y {
  background-color: transparent !important;
}

html[data-bs-theme="dark"] .ps__thumb-x,
html[data-bs-theme="dark"] .ps__thumb-y {
  background-color: #414850 !important;
}

/* ============================================================
   MOBILE / PWA
   ============================================================ */
@media (max-width: 1199.98px) {
  html[data-bs-theme="dark"] .layout-menu {
    box-shadow: 12px 0 32px rgba(0, 0, 0, .36) !important;
  }
}

@media (max-width: 767.98px) {
  html[data-bs-theme="dark"] body {
    background-size: 20px 20px !important;
  }

  html[data-bs-theme="dark"] .layout-navbar.navbar-detached {
    background-color: rgba(20, 22, 25, .96) !important;
  }

  html[data-bs-theme="dark"] .modal-content,
  html[data-bs-theme="dark"] .offcanvas {
    box-shadow: none !important;
  }
}

/* Reduced motion stays respected. */
@media (prefers-reduced-motion: reduce) {
  html[data-bs-theme="dark"] * {
    scroll-behavior: auto !important;
  }
}


/* ============================================================
   v1.1.0 — PWA / MOBILE APP SHELL
   ------------------------------------------------------------
   The PWA plugin defines its own old Vuexy-dark palette (#25293c /
   #2f3349) after Bootstrap variables. Override those PWA tokens here
   so the existing "Dark" choice uses Dark Clean everywhere without
   editing autowa-pwa-app itself. Light mode remains untouched.
   ============================================================ */
html[data-bs-theme="dark"],
html.dark-style,
html[data-theme="dark"] {
  --aw-pwa-body-bg: var(--adc-bg, #0f1113) !important;
  --aw-pwa-card-bg: var(--adc-surface, #141619) !important;
  --aw-pwa-text: var(--adc-text, #c9ced5) !important;
  --aw-pwa-heading: var(--adc-heading, #f4f6f8) !important;
  --aw-pwa-muted: var(--adc-muted, #929aa4) !important;
  --aw-pwa-border: var(--adc-border, #2b3035) !important;
  --aw-pwa-label-primary: rgba(var(--aw-pwa-primary-rgb, var(--bs-primary-rgb)), .14) !important;
  --aw-pwa-shadow: 0 10px 28px rgba(0, 0, 0, .22) !important;
  --aw-pwa-shadow-sm: 0 5px 16px rgba(0, 0, 0, .16) !important;
}

html[data-bs-theme="dark"].autowa-pwa-mobile-ui body,
html.dark-style.autowa-pwa-mobile-ui body,
html[data-theme="dark"].autowa-pwa-mobile-ui body {
  background-color: var(--adc-bg, #0f1113) !important;
  background-image:
    linear-gradient(var(--adc-grid, rgba(255,255,255,.027)) 1px, transparent 1px),
    linear-gradient(90deg, var(--adc-grid, rgba(255,255,255,.027)) 1px, transparent 1px) !important;
  background-size: 20px 20px !important;
}

html[data-bs-theme="dark"] :is(
  .autowa-pwa-header,
  .autowa-pwa-bottom-nav,
  .autowa-pwa-sheet-panel,
  .autowa-pwa-utility-menu,
  .autowa-pwa-update-toast,
  .autowa-pwa-route-loader-card,
  .autowa-pwa-home-device-select,
  .autowa-pwa-proxy-card
),
html.dark-style :is(
  .autowa-pwa-header,
  .autowa-pwa-bottom-nav,
  .autowa-pwa-sheet-panel,
  .autowa-pwa-utility-menu,
  .autowa-pwa-update-toast,
  .autowa-pwa-route-loader-card,
  .autowa-pwa-home-device-select,
  .autowa-pwa-proxy-card
),
html[data-theme="dark"] :is(
  .autowa-pwa-header,
  .autowa-pwa-bottom-nav,
  .autowa-pwa-sheet-panel,
  .autowa-pwa-utility-menu,
  .autowa-pwa-update-toast,
  .autowa-pwa-route-loader-card,
  .autowa-pwa-home-device-select,
  .autowa-pwa-proxy-card
) {
  background-color: var(--adc-surface, #141619) !important;
  background-image: none !important;
  border-color: var(--adc-border, #2b3035) !important;
  color: var(--adc-text, #c9ced5) !important;
  box-shadow: 0 6px 20px rgba(0,0,0,.15) !important;
}

html[data-bs-theme="dark"] :is(
  .autowa-pwa-home-stat,
  .autowa-pwa-menu-card,
  .autowa-pwa-utility-menu-item,
  .autowa-pwa-language-item,
  .autowa-pwa-device-item
),
html.dark-style :is(
  .autowa-pwa-home-stat,
  .autowa-pwa-menu-card,
  .autowa-pwa-utility-menu-item,
  .autowa-pwa-language-item,
  .autowa-pwa-device-item
),
html[data-theme="dark"] :is(
  .autowa-pwa-home-stat,
  .autowa-pwa-menu-card,
  .autowa-pwa-utility-menu-item,
  .autowa-pwa-language-item,
  .autowa-pwa-device-item
) {
  background: var(--adc-surface-raised, #181b1e) !important;
  border-color: var(--adc-border, #2b3035) !important;
  color: var(--adc-text, #c9ced5) !important;
  box-shadow: none !important;
}

html[data-bs-theme="dark"] :is(.autowa-pwa-home-stat, .autowa-pwa-menu-card, .autowa-pwa-device-item):hover,
html.dark-style :is(.autowa-pwa-home-stat, .autowa-pwa-menu-card, .autowa-pwa-device-item):hover,
html[data-theme="dark"] :is(.autowa-pwa-home-stat, .autowa-pwa-menu-card, .autowa-pwa-device-item):hover {
  background: var(--adc-surface-hover, #22262a) !important;
  border-color: var(--adc-border-strong, rgba(255,255,255,.13)) !important;
}

/* PWA welcome hero intentionally stays PRIMARY/GREEN, matching the desktop
   welcome treatment and the original PWA visual identity. Dark Clean only
   cleans the surrounding surfaces; it must not neutralize this hero. */
html[data-bs-theme="dark"] .autowa-pwa-home-hero,
html.dark-style .autowa-pwa-home-hero,
html[data-theme="dark"] .autowa-pwa-home-hero {
  background: var(--aw-pwa-primary, var(--bs-primary)) !important;
  background-color: var(--aw-pwa-primary, var(--bs-primary)) !important;
  background-image: none !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  box-shadow: var(--aw-pwa-shadow, 0 10px 28px rgba(0,0,0,.22)) !important;
  color: #fff !important;
}

html[data-bs-theme="dark"] .autowa-pwa-home-hero::after,
html.dark-style .autowa-pwa-home-hero::after,
html[data-theme="dark"] .autowa-pwa-home-hero::after {
  border-color: rgba(255,255,255,.22) !important;
}

html[data-bs-theme="dark"] .autowa-pwa-home-hero-icon,
html.dark-style .autowa-pwa-home-hero-icon,
html[data-theme="dark"] .autowa-pwa-home-hero-icon {
  background: rgba(255,255,255,.18) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.10) !important;
}

html[data-bs-theme="dark"] :is(.autowa-pwa-home-hero-copy > span, .autowa-pwa-home-hero-copy p),
html.dark-style :is(.autowa-pwa-home-hero-copy > span, .autowa-pwa-home-hero-copy p),
html[data-theme="dark"] :is(.autowa-pwa-home-hero-copy > span, .autowa-pwa-home-hero-copy p) {
  color: rgba(255,255,255,.82) !important;
}

html[data-bs-theme="dark"] :is(.autowa-pwa-home-hero-copy h2, .autowa-pwa-home-hero-copy h2 strong),
html.dark-style :is(.autowa-pwa-home-hero-copy h2, .autowa-pwa-home-hero-copy h2 strong),
html[data-theme="dark"] :is(.autowa-pwa-home-hero-copy h2, .autowa-pwa-home-hero-copy h2 strong) {
  color: #fff !important;
}

html[data-bs-theme="dark"] .autowa-pwa-home-hero-meta-item,
html.dark-style .autowa-pwa-home-hero-meta-item,
html[data-theme="dark"] .autowa-pwa-home-hero-meta-item {
  background: rgba(255,255,255,.12) !important;
  border-color: rgba(255,255,255,.18) !important;
  color: #fff !important;
}

html[data-bs-theme="dark"] .autowa-pwa-home-hero-meta-item small,
html.dark-style .autowa-pwa-home-hero-meta-item small,
html[data-theme="dark"] .autowa-pwa-home-hero-meta-item small {
  color: rgba(255,255,255,.76) !important;
}

html[data-bs-theme="dark"] .autowa-pwa-home-hero-meta-item strong,
html.dark-style .autowa-pwa-home-hero-meta-item strong,
html[data-theme="dark"] .autowa-pwa-home-hero-meta-item strong {
  color: #fff !important;
}

html[data-bs-theme="dark"] :is(.autowa-pwa-sheet-search, .autowa-pwa-search-shell),
html.dark-style :is(.autowa-pwa-sheet-search, .autowa-pwa-search-shell),
html[data-theme="dark"] :is(.autowa-pwa-sheet-search, .autowa-pwa-search-shell) {
  background: var(--adc-surface-soft, #1d2024) !important;
  border-color: var(--adc-border, #2b3035) !important;
  color: var(--adc-text, #c9ced5) !important;
  box-shadow: none !important;
}

html[data-bs-theme="dark"] .autowa-pwa-sheet-backdrop,
html.dark-style .autowa-pwa-sheet-backdrop,
html[data-theme="dark"] .autowa-pwa-sheet-backdrop {
  background: rgba(0,0,0,.72) !important;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

html[data-bs-theme="dark"] .autowa-pwa-sheet-handle,
html.dark-style .autowa-pwa-sheet-handle,
html[data-theme="dark"] .autowa-pwa-sheet-handle {
  background: #3a4046 !important;
}

html[data-bs-theme="dark"] .autowa-pwa-device-manage,
html.dark-style .autowa-pwa-device-manage,
html[data-theme="dark"] .autowa-pwa-device-manage {
  background: color-mix(in srgb, var(--adc-surface-raised, #181b1e) 94%, var(--aw-pwa-primary) 6%) !important;
  border-color: color-mix(in srgb, var(--adc-border, #2b3035) 66%, var(--aw-pwa-primary) 34%) !important;
}

html[data-bs-theme="dark"] .autowa-pwa-bottom-nav,
html.dark-style .autowa-pwa-bottom-nav,
html[data-theme="dark"] .autowa-pwa-bottom-nav {
  border-top: 1px solid var(--adc-border, #2b3035) !important;
  backdrop-filter: blur(18px) saturate(112%);
  -webkit-backdrop-filter: blur(18px) saturate(112%);
}

/* ============================================================
   v1.1.0 — AUTO BILL GOPAY / BILLING / CHECKOUT
   ------------------------------------------------------------
   Auto Bill GoPay mostly follows Bootstrap tokens already. These rules
   normalize its custom ABG/HS surfaces so no old blue/purple dark cards
   or bright payment panels remain, while provider logos/QR media stay
   intentionally white for readability and brand accuracy.
   ============================================================ */
html[data-bs-theme="dark"],
html.dark-style,
html[data-theme="dark"] {
  --abg-body: var(--adc-bg, #0f1113);
  --abg-card: var(--adc-surface, #141619);
  --abg-heading: var(--adc-heading, #f4f6f8);
  --abg-text: var(--adc-text, #c9ced5);
  --abg-border: var(--adc-border, #2b3035);
  --hs-p5-surface: color-mix(in srgb, var(--adc-bg, #0f1113) 94%, var(--bs-primary) 6%);
}

html[data-bs-theme="dark"] :is(
  .abg-secure-card,
  .abg-access-card,
  .abg-payment-picker,
  .abg-payment-option,
  .abg-promo-panel,
  .abg-duitku-channel,
  .abg-storage-estimate-tip,
  .abg-user-canvas,
  .abg-error-card,
  .hs-terms-dialog,
  .hs-contact-card
),
html.dark-style :is(
  .abg-secure-card,
  .abg-access-card,
  .abg-payment-picker,
  .abg-payment-option,
  .abg-promo-panel,
  .abg-duitku-channel,
  .abg-storage-estimate-tip,
  .abg-user-canvas,
  .abg-error-card,
  .hs-terms-dialog,
  .hs-contact-card
),
html[data-theme="dark"] :is(
  .abg-secure-card,
  .abg-access-card,
  .abg-payment-picker,
  .abg-payment-option,
  .abg-promo-panel,
  .abg-duitku-channel,
  .abg-storage-estimate-tip,
  .abg-user-canvas,
  .abg-error-card,
  .hs-terms-dialog,
  .hs-contact-card
) {
  background-color: var(--adc-surface, #141619) !important;
  background-image: none !important;
  border-color: var(--adc-border, #2b3035) !important;
  color: var(--adc-text, #c9ced5) !important;
  box-shadow: 0 7px 24px rgba(0,0,0,.16) !important;
}

html[data-bs-theme="dark"] :is(.abg-payment-option:hover, .abg-payment-option:focus-visible, .abg-payment-option.is-selected),
html.dark-style :is(.abg-payment-option:hover, .abg-payment-option:focus-visible, .abg-payment-option.is-selected),
html[data-theme="dark"] :is(.abg-payment-option:hover, .abg-payment-option:focus-visible, .abg-payment-option.is-selected) {
  background: color-mix(in srgb, var(--adc-surface-raised, #181b1e) 91%, var(--bs-primary) 9%) !important;
  border-color: var(--bs-primary) !important;
}

html[data-bs-theme="dark"] :is(.abg-method-modal .modal-content, .abg-method-modal .modal-header),
html.dark-style :is(.abg-method-modal .modal-content, .abg-method-modal .modal-header),
html[data-theme="dark"] :is(.abg-method-modal .modal-content, .abg-method-modal .modal-header) {
  background: var(--adc-surface, #141619) !important;
  border-color: var(--adc-border, #2b3035) !important;
}

html[data-bs-theme="dark"] .abg-public-section,
html.dark-style .abg-public-section,
html[data-theme="dark"] .abg-public-section {
  background-color: transparent !important;
  color: var(--adc-text, #c9ced5) !important;
}

html[data-bs-theme="dark"] :is(.abg-plan-scroll, .abg-plan-feature-list, .abg-benefits-toggle-content),
html.dark-style :is(.abg-plan-scroll, .abg-plan-feature-list, .abg-benefits-toggle-content),
html[data-theme="dark"] :is(.abg-plan-scroll, .abg-plan-feature-list, .abg-benefits-toggle-content) {
  color: var(--adc-text, #c9ced5) !important;
}

/* Payment-provider logo canvases and QR codes deliberately remain white. */
html[data-bs-theme="dark"] :is(.abg-method-logo, .abg-method-logo img, .abg-duitku-channel-logo, .abg-pay-qr),
html.dark-style :is(.abg-method-logo, .abg-method-logo img, .abg-duitku-channel-logo, .abg-pay-qr),
html[data-theme="dark"] :is(.abg-method-logo, .abg-method-logo img, .abg-duitku-channel-logo, .abg-pay-qr) {
  color-scheme: light;
}

/* Homepage SEO / GoPay sections using page-level dark rules get the same
   neutral surface family as the dashboard and PWA. */
html[data-bs-theme="dark"] :is(.hs-p3-card, .hs-p6-card, .hs-p7-item, .hs-p7-support, .hs-p6-terminal, .hs-p6-docs, .hs-p4-dialog),
html.dark-style :is(.hs-p3-card, .hs-p6-card, .hs-p7-item, .hs-p7-support, .hs-p6-terminal, .hs-p6-docs, .hs-p4-dialog),
html[data-theme="dark"] :is(.hs-p3-card, .hs-p6-card, .hs-p7-item, .hs-p7-support, .hs-p6-terminal, .hs-p6-docs, .hs-p4-dialog) {
  background-color: var(--adc-surface, #141619) !important;
  border-color: var(--adc-border, #2b3035) !important;
  color: var(--adc-text, #c9ced5) !important;
  box-shadow: none !important;
}

/* PWA installed mode can keep an old stylesheet in its service-worker cache.
   v1.1.0 uses a new query-string cache key in both injected links, so a normal
   reload after plugin update fetches this compatibility layer immediately. */

/* ============================================================
   v1.1.3 — POPUP / MODAL STACK SAFETY
   ------------------------------------------------------------
   The previous Dark Clean build created a stacking context on the main
   Vuexy content container. Many AutoWA pages place Bootstrap modals inside
   that container while Bootstrap appends the backdrop to <body>. In dark
   mode the backdrop could therefore sit above the dialog and intercept all
   clicks, which looked like the whole page had frozen. Keep the visual skin
   only: do not alter modal positioning, transforms or Bootstrap JS state.
   ============================================================ */
html[data-bs-theme="dark"] body.modal-open .container-xxl.container-p-y,
html[data-bs-theme="dark"] body.modal-open .container-fluid.container-p-y,
html[data-bs-theme="dark"] body.swal2-shown .container-xxl.container-p-y,
html[data-bs-theme="dark"] body.swal2-shown .container-fluid.container-p-y {
  isolation: auto !important;
}

/* Backdrops should remain cheap opaque layers. Blur on a full viewport overlay
   can trigger large GPU repaints on mobile/PWA and some desktop Chromium builds. */
html[data-bs-theme="dark"] .modal-backdrop,
html[data-bs-theme="dark"] .offcanvas-backdrop,
html[data-bs-theme="dark"] .swal2-container {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Dark Clean must not introduce pointer-event or transform behavior on dialog
   shells. These declarations intentionally restore framework ownership. */
html[data-bs-theme="dark"] .modal,
html[data-bs-theme="dark"] .modal-dialog,
html[data-bs-theme="dark"] .offcanvas,
html[data-bs-theme="dark"] .swal2-container,
html[data-bs-theme="dark"] .swal2-popup {
  isolation: auto;
}

/* ============================================================
   v1.1.3 — HOMEPAGE SALES PROOF / SOCIAL PROOF
   ------------------------------------------------------------
   Keep the proof notification on the same neutral-black surface family as
   Dark Clean instead of the old body-bg/primary blended card. This covers
   both the normal Laravel homepage and the vGateway bridge because the
   bridge mirrors the same rendered stylesheet.
   ============================================================ */
html[data-bs-theme="dark"] .hs-sales-proof__holder,
html.dark-style .hs-sales-proof__holder,
html[data-theme="dark"] .hs-sales-proof__holder {
  background: linear-gradient(180deg, rgba(20, 22, 25, .985), rgba(9, 10, 11, .985)) !important;
  background-color: var(--adc-surface, #141619) !important;
  border-color: var(--adc-border-strong, rgba(255,255,255,.13)) !important;
  color: var(--adc-text, #c9ced5) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255,255,255,.025) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html[data-bs-theme="dark"] .hs-sales-proof__text,
html[data-bs-theme="dark"] .hs-sales-proof__text strong,
html.dark-style .hs-sales-proof__text,
html.dark-style .hs-sales-proof__text strong,
html[data-theme="dark"] .hs-sales-proof__text,
html[data-theme="dark"] .hs-sales-proof__text strong {
  color: var(--adc-heading, #f4f6f8) !important;
}

html[data-bs-theme="dark"] .hs-sales-proof__close,
html.dark-style .hs-sales-proof__close,
html[data-theme="dark"] .hs-sales-proof__close {
  color: var(--adc-muted, #929aa4) !important;
}

html[data-bs-theme="dark"] .hs-sales-proof__close:hover,
html[data-bs-theme="dark"] .hs-sales-proof__close:focus-visible,
html.dark-style .hs-sales-proof__close:hover,
html.dark-style .hs-sales-proof__close:focus-visible,
html[data-theme="dark"] .hs-sales-proof__close:hover,
html[data-theme="dark"] .hs-sales-proof__close:focus-visible {
  background: rgba(var(--hs-sp-primary-rgb, var(--bs-primary-rgb)), .12) !important;
  color: var(--hs-sp-primary, var(--bs-primary)) !important;
}



/* ============================================================
   v1.1.3 — HOMEPAGE INTEGRATION: TRUE DARK CLEAN
   ------------------------------------------------------------
   Homepage SEO intentionally mixes --bs-primary into Phase 6's page-level
   background. In Dark Clean that creates a green wash behind the whole
   Integration section. The Hero itself has no section fill, so Phase 6 now
   follows the same rule: transparent page canvas, with primary used only for
   small accents/badges/buttons. Cards stay on neutral Dark Clean surfaces.
   ============================================================ */
html[data-bs-theme="dark"] .hs-phase6,
html.dark-style .hs-phase6,
html[data-theme="dark"] .hs-phase6 {
  background: transparent !important;
  background-color: transparent !important;
  border-color: transparent !important;
}

html[data-bs-theme="dark"] .hs-phase6::before,
html[data-bs-theme="dark"] .hs-phase6::after,
html.dark-style .hs-phase6::before,
html.dark-style .hs-phase6::after,
html[data-theme="dark"] .hs-phase6::before,
html[data-theme="dark"] .hs-phase6::after {
  display: none !important;
  background: none !important;
}

html[data-bs-theme="dark"] :is(.hs-p6-card, .hs-p6-docs),
html.dark-style :is(.hs-p6-card, .hs-p6-docs),
html[data-theme="dark"] :is(.hs-p6-card, .hs-p6-docs) {
  background: var(--adc-surface, #141619) !important;
  border-color: var(--adc-border, #2b3035) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .20) !important;
}

html[data-bs-theme="dark"] .hs-p6-card:hover,
html.dark-style .hs-p6-card:hover,
html[data-theme="dark"] .hs-p6-card:hover {
  border-color: color-mix(in srgb, var(--bs-primary) 35%, var(--adc-border, #2b3035) 65%) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .26) !important;
}

html[data-bs-theme="dark"] :is(.hs-p6-language, .hs-p6-docs-button),
html.dark-style :is(.hs-p6-language, .hs-p6-docs-button),
html[data-theme="dark"] :is(.hs-p6-language, .hs-p6-docs-button) {
  background: var(--adc-bg, #0f1113) !important;
  border-color: var(--adc-border, #2b3035) !important;
}

html[data-bs-theme="dark"] .hs-p6-terminal,
html.dark-style .hs-p6-terminal,
html[data-theme="dark"] .hs-p6-terminal {
  background: var(--adc-black, #090a0b) !important;
  border-color: var(--adc-border, #2b3035) !important;
  box-shadow: none !important;
}

html[data-bs-theme="dark"] .hs-p6-terminal-head,
html.dark-style .hs-p6-terminal-head,
html[data-theme="dark"] .hs-p6-terminal-head {
  background: var(--adc-surface-raised, #181b1e) !important;
  border-color: var(--adc-border, #2b3035) !important;
}


/* ============================================================
   v1.1.4 — HOMEPAGE DARK HOOK COMPATIBILITY
   ------------------------------------------------------------
   Some public/Homepage SEO renders place the dark marker on BODY instead of
   HTML. The original Homepage SEO selectors intentionally support that shape
   (`body.dark-style` / body data-theme), while v1.1.3 only targeted HTML for
   the Integration and Sales Proof overrides. Result: the old primary-tinted
   Phase 6 background could win even though the page was visibly in dark mode.

   Keep this fix inside Dark Clean. Homepage SEO remains untouched, so
   disabling this plugin restores its original Dark appearance immediately.
   ============================================================ */

/* Integration: same neutral/transparent canvas as Hero, regardless of whether
   the active dark marker lives on HTML or BODY. */
body.dark-style .hs-phase6,
body.theme-dark .hs-phase6,
body.dark-mode .hs-phase6,
body.layout-dark .hs-phase6,
body[data-bs-theme="dark"] .hs-phase6,
body[data-theme="dark"] .hs-phase6 {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
}

body.dark-style .hs-phase6::before,
body.dark-style .hs-phase6::after,
body.theme-dark .hs-phase6::before,
body.theme-dark .hs-phase6::after,
body.dark-mode .hs-phase6::before,
body.dark-mode .hs-phase6::after,
body.layout-dark .hs-phase6::before,
body.layout-dark .hs-phase6::after,
body[data-bs-theme="dark"] .hs-phase6::before,
body[data-bs-theme="dark"] .hs-phase6::after,
body[data-theme="dark"] .hs-phase6::before,
body[data-theme="dark"] .hs-phase6::after {
  display: none !important;
  content: none !important;
  background: none !important;
  background-image: none !important;
}

body.dark-style :is(.hs-p6-card, .hs-p6-docs),
body.theme-dark :is(.hs-p6-card, .hs-p6-docs),
body.dark-mode :is(.hs-p6-card, .hs-p6-docs),
body.layout-dark :is(.hs-p6-card, .hs-p6-docs),
body[data-bs-theme="dark"] :is(.hs-p6-card, .hs-p6-docs),
body[data-theme="dark"] :is(.hs-p6-card, .hs-p6-docs) {
  background: var(--adc-surface, #141619) !important;
  background-image: none !important;
  border-color: var(--adc-border, #2b3035) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .20) !important;
}

/* Sales Proof: neutral Black Clean card under the same BODY-based dark hooks.
   The 4px left rail, buyer name and verification badge intentionally remain
   primary-colored accents. */
body.dark-style .hs-sales-proof__holder,
body.theme-dark .hs-sales-proof__holder,
body.dark-mode .hs-sales-proof__holder,
body.layout-dark .hs-sales-proof__holder,
body[data-bs-theme="dark"] .hs-sales-proof__holder,
body[data-theme="dark"] .hs-sales-proof__holder {
  background: linear-gradient(180deg, rgba(20, 22, 25, .99), rgba(9, 10, 11, .99)) !important;
  background-color: var(--adc-surface, #141619) !important;
  border-color: var(--adc-border-strong, rgba(255,255,255,.13)) !important;
  color: var(--adc-text, #c9ced5) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255,255,255,.025) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

body.dark-style .hs-sales-proof__text,
body.dark-style .hs-sales-proof__text strong,
body.theme-dark .hs-sales-proof__text,
body.theme-dark .hs-sales-proof__text strong,
body.dark-mode .hs-sales-proof__text,
body.dark-mode .hs-sales-proof__text strong,
body.layout-dark .hs-sales-proof__text,
body.layout-dark .hs-sales-proof__text strong,
body[data-bs-theme="dark"] .hs-sales-proof__text,
body[data-bs-theme="dark"] .hs-sales-proof__text strong,
body[data-theme="dark"] .hs-sales-proof__text,
body[data-theme="dark"] .hs-sales-proof__text strong {
  color: var(--adc-heading, #f4f6f8) !important;
}

body.dark-style .hs-sales-proof__close,
body.theme-dark .hs-sales-proof__close,
body.dark-mode .hs-sales-proof__close,
body.layout-dark .hs-sales-proof__close,
body[data-bs-theme="dark"] .hs-sales-proof__close,
body[data-theme="dark"] .hs-sales-proof__close {
  color: var(--adc-muted, #929aa4) !important;
}

/* ============================================================
   v1.1.5 — GLOBAL HTTP ERROR PAGES
   ------------------------------------------------------------
   Auto Bill GoPay supplies standalone 401/403/404/419/429/500/5xx
   documents using .abg-error-*. Dark Clean v1.1.5 is injected into
   rendered HTML error responses as well, so the same skin applies to
   session-expired and server-error pages without editing Auto Bill.
   ============================================================ */
html[data-bs-theme="dark"] body:has(.abg-error-page),
html.dark-style body:has(.abg-error-page),
html[data-theme="dark"] body:has(.abg-error-page) {
  background-color: var(--adc-bg, #0f1113) !important;
  background-image:
    linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px) !important;
  background-size: 28px 28px !important;
  color: var(--adc-text, #c9ced5) !important;
}

html[data-bs-theme="dark"] .abg-error-page::before,
html.dark-style .abg-error-page::before,
html[data-theme="dark"] .abg-error-page::before {
  background-image:
    linear-gradient(rgba(255,255,255,.023) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.023) 1px, transparent 1px) !important;
  background-size: 34px 34px !important;
  opacity: .7 !important;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent) !important;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent) !important;
}

html[data-bs-theme="dark"] .abg-error-card,
html.dark-style .abg-error-card,
html[data-theme="dark"] .abg-error-card {
  background: linear-gradient(180deg, rgba(24,27,30,.985), rgba(14,16,18,.995)) !important;
  border-color: var(--adc-border-strong, rgba(255,255,255,.13)) !important;
  color: var(--adc-text, #c9ced5) !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.025) !important;
}

html[data-bs-theme="dark"] .abg-error-card::before,
html.dark-style .abg-error-card::before,
html[data-theme="dark"] .abg-error-card::before {
  background: var(--bs-primary) !important;
  opacity: .9;
}

html[data-bs-theme="dark"] :is(.abg-error-title),
html.dark-style :is(.abg-error-title),
html[data-theme="dark"] :is(.abg-error-title) {
  color: var(--adc-heading, #f4f6f8) !important;
}

html[data-bs-theme="dark"] :is(.abg-error-message),
html.dark-style :is(.abg-error-message),
html[data-theme="dark"] :is(.abg-error-message) {
  color: var(--adc-text, #c9ced5) !important;
}

html[data-bs-theme="dark"] :is(.abg-error-detail, .abg-error-reference),
html.dark-style :is(.abg-error-detail, .abg-error-reference),
html[data-theme="dark"] :is(.abg-error-detail, .abg-error-reference) {
  color: var(--adc-muted, #929aa4) !important;
}

html[data-bs-theme="dark"] :is(.abg-error-icon, .abg-error-code),
html.dark-style :is(.abg-error-icon, .abg-error-code),
html[data-theme="dark"] :is(.abg-error-icon, .abg-error-code) {
  background: color-mix(in srgb, var(--bs-primary) 10%, var(--adc-surface, #141619) 90%) !important;
  border-color: color-mix(in srgb, var(--bs-primary) 35%, var(--adc-border, #2b3035) 65%) !important;
  color: color-mix(in srgb, var(--bs-primary) 78%, #fff 22%) !important;
  box-shadow: none !important;
}

html[data-bs-theme="dark"] .abg-error-button-secondary,
html.dark-style .abg-error-button-secondary,
html[data-theme="dark"] .abg-error-button-secondary {
  background: var(--adc-surface-raised, #181b1e) !important;
  border-color: var(--adc-border, #2b3035) !important;
  color: var(--adc-heading, #f4f6f8) !important;
  box-shadow: none !important;
}

html[data-bs-theme="dark"] .abg-error-button-secondary:hover,
html.dark-style .abg-error-button-secondary:hover,
html[data-theme="dark"] .abg-error-button-secondary:hover {
  background: var(--adc-surface-hover, #22262a) !important;
  border-color: var(--adc-border-strong, rgba(255,255,255,.13)) !important;
}

/* ============================================================
   v1.1.5 — GLOBAL CONFIRM UI + GLOBAL NOTIFICATIONS
   ------------------------------------------------------------
   Skin the dedicated global-confirm-ui plugin without touching its JS,
   focus trap, stacking order or confirm/cancel behaviour. Full-screen
   backdrop blur is disabled to keep modal interactions cheap/stable.
   ============================================================ */
html[data-bs-theme="dark"] .gcu-root,
html.dark-style .gcu-root,
html[data-theme="dark"] .gcu-root,
body.dark-style .gcu-root,
body.dark .gcu-root {
  --gcu-bg: var(--adc-surface-raised, #181b1e) !important;
  --gcu-text: var(--adc-text, #c9ced5) !important;
  --gcu-muted: var(--adc-muted, #929aa4) !important;
  --gcu-border: var(--adc-border, #2b3035) !important;
  --gcu-shadow: 0 24px 70px rgba(0,0,0,.46) !important;
}

html[data-bs-theme="dark"] .gcu-backdrop,
html.dark-style .gcu-backdrop,
html[data-theme="dark"] .gcu-backdrop,
body.dark-style .gcu-backdrop,
body.dark .gcu-backdrop {
  background: rgba(4,5,6,.74) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html[data-bs-theme="dark"] .gcu-dialog,
html.dark-style .gcu-dialog,
html[data-theme="dark"] .gcu-dialog,
body.dark-style .gcu-dialog,
body.dark .gcu-dialog {
  background: linear-gradient(180deg, rgba(24,27,30,.995), rgba(14,16,18,.995)) !important;
  border-color: var(--adc-border-strong, rgba(255,255,255,.13)) !important;
  color: var(--adc-text, #c9ced5) !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.025) !important;
}

html[data-bs-theme="dark"] :is(.gcu-title, .gcu-toast-title),
html.dark-style :is(.gcu-title, .gcu-toast-title),
html[data-theme="dark"] :is(.gcu-title, .gcu-toast-title),
body.dark-style :is(.gcu-title, .gcu-toast-title),
body.dark :is(.gcu-title, .gcu-toast-title) {
  color: var(--adc-heading, #f4f6f8) !important;
}

html[data-bs-theme="dark"] :is(.gcu-message, .gcu-toast-message),
html.dark-style :is(.gcu-message, .gcu-toast-message),
html[data-theme="dark"] :is(.gcu-message, .gcu-toast-message),
body.dark-style :is(.gcu-message, .gcu-toast-message),
body.dark :is(.gcu-message, .gcu-toast-message) {
  color: var(--adc-muted, #929aa4) !important;
}

html[data-bs-theme="dark"] :is(.gcu-close, .gcu-toast-close),
html.dark-style :is(.gcu-close, .gcu-toast-close),
html[data-theme="dark"] :is(.gcu-close, .gcu-toast-close),
body.dark-style :is(.gcu-close, .gcu-toast-close),
body.dark :is(.gcu-close, .gcu-toast-close) {
  color: var(--adc-muted, #929aa4) !important;
}

html[data-bs-theme="dark"] :is(.gcu-close:hover, .gcu-toast-close:hover),
html.dark-style :is(.gcu-close:hover, .gcu-toast-close:hover),
html[data-theme="dark"] :is(.gcu-close:hover, .gcu-toast-close:hover),
body.dark-style :is(.gcu-close:hover, .gcu-toast-close:hover),
body.dark :is(.gcu-close:hover, .gcu-toast-close:hover) {
  background: var(--adc-surface-hover, #22262a) !important;
  color: var(--adc-heading, #f4f6f8) !important;
}

html[data-bs-theme="dark"] .gcu-btn-cancel,
html.dark-style .gcu-btn-cancel,
html[data-theme="dark"] .gcu-btn-cancel,
body.dark-style .gcu-btn-cancel,
body.dark .gcu-btn-cancel {
  background: var(--adc-surface, #141619) !important;
  border-color: var(--adc-border, #2b3035) !important;
  color: var(--adc-heading, #f4f6f8) !important;
  box-shadow: none !important;
}

html[data-bs-theme="dark"] .gcu-btn-cancel:hover,
html.dark-style .gcu-btn-cancel:hover,
html[data-theme="dark"] .gcu-btn-cancel:hover,
body.dark-style .gcu-btn-cancel:hover,
body.dark .gcu-btn-cancel:hover {
  background: var(--adc-surface-hover, #22262a) !important;
}

/* Confirm button intentionally keeps the configured AutoWA primary color. */
html[data-bs-theme="dark"] .gcu-btn-confirm,
html.dark-style .gcu-btn-confirm,
html[data-theme="dark"] .gcu-btn-confirm,
body.dark-style .gcu-btn-confirm,
body.dark .gcu-btn-confirm {
  box-shadow: 0 8px 20px rgba(var(--bs-primary-rgb), .18) !important;
}

/* Global notify/toast cards become opaque neutral black. The type-specific
   success/error/warning/info color remains only as the left accent + icon. */
html[data-bs-theme="dark"] .gcu-toast,
html.dark-style .gcu-toast,
html[data-theme="dark"] .gcu-toast,
body.dark-style .gcu-toast,
body.dark .gcu-toast {
  background: linear-gradient(180deg, rgba(24,27,30,.985), rgba(12,14,16,.99)) !important;
  border-color: var(--adc-border-strong, rgba(255,255,255,.13)) !important;
  color: var(--adc-text, #c9ced5) !important;
  box-shadow: 0 16px 42px rgba(0,0,0,.38) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html[data-bs-theme="dark"] .gcu-toast-icon,
html.dark-style .gcu-toast-icon,
html[data-theme="dark"] .gcu-toast-icon,
body.dark-style .gcu-toast-icon,
body.dark .gcu-toast-icon {
  background: rgba(var(--gcu-toast-accent-rgb), .10) !important;
  box-shadow: inset 0 0 0 1px rgba(var(--gcu-toast-accent-rgb), .16);
}

/* SweetAlert compatibility for pages/plugins that bypass Global Confirm UI. */
html[data-bs-theme="dark"] :is(.swal2-popup, .swal2-modal),
html.dark-style :is(.swal2-popup, .swal2-modal),
html[data-theme="dark"] :is(.swal2-popup, .swal2-modal) {
  background: linear-gradient(180deg, rgba(24,27,30,.995), rgba(14,16,18,.995)) !important;
  border: 1px solid var(--adc-border-strong, rgba(255,255,255,.13)) !important;
  color: var(--adc-text, #c9ced5) !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.46) !important;
}

html[data-bs-theme="dark"] :is(.swal2-title, .swal2-html-container),
html.dark-style :is(.swal2-title, .swal2-html-container),
html[data-theme="dark"] :is(.swal2-title, .swal2-html-container) {
  color: var(--adc-heading, #f4f6f8) !important;
}


/* ============================================================
   v1.1.7 — DIRECT ERROR VIEW + GLOBAL CONFIRM HARDENING
   ------------------------------------------------------------
   Error pages now load this stylesheet directly from the Dark Clean error
   override, because Laravel exception rendering can bypass route middleware.
   Normal HTML receives data-autowa-dark-clean-active="1" as a stable hook.
   ============================================================ */
html[data-autowa-dark-clean-active="1"][data-bs-theme="dark"] .gcu-root {
  --gcu-bg: #111315 !important;
  --gcu-text: #c9ced5 !important;
  --gcu-muted: #929aa4 !important;
  --gcu-border: rgba(255,255,255,.10) !important;
  --gcu-shadow: 0 24px 70px rgba(0,0,0,.52) !important;
}
html[data-autowa-dark-clean-active="1"][data-bs-theme="dark"] .gcu-dialog {
  background: linear-gradient(180deg,#171a1d 0%,#0f1113 100%) !important;
  border-color: rgba(255,255,255,.11) !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.025) !important;
}
html[data-autowa-dark-clean-active="1"][data-bs-theme="dark"] .gcu-backdrop {
  background: rgba(2,3,4,.78) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
html[data-autowa-dark-clean-active="1"][data-bs-theme="dark"] .gcu-toast {
  background: linear-gradient(180deg,#171a1d 0%,#0d0f11 100%) !important;
  border-color: rgba(255,255,255,.11) !important;
  box-shadow: 0 16px 42px rgba(0,0,0,.42) !important;
}
html[data-autowa-dark-clean-active="1"][data-bs-theme="dark"] .abg-error-page {
  --abg-body: #0c0e10 !important;
  --abg-card: #15181b !important;
  --abg-heading: #f4f6f8 !important;
  --abg-text: #c9ced5 !important;
  --abg-border: rgba(255,255,255,.10) !important;
}
