/* Aqua Store — complete dark theme (no leftover white panels) */
html[data-aqua-theme="dark"],
body.aqua-mode-dark,
body.aqua-theme-midnight {
  color-scheme: dark;
  --blue: #2ec4d6;
  --blue-hover: #4fd0df;
  --aqua: #2ec4d6;
  --aqua-hover: #4fd0df;
  --aqua-fg: #062026;
  --ok: #5dcaa0;
  --warn: #e0b25a;
  --danger: #ff6b6b;
  --danger-fg: #2a0b0d;
  --subtle: #0e1524;
  --header-surface: rgba(8, 13, 24, 0.86);
  --footer-surface: #070b16;
}

html[data-aqua-theme="dark"] body,
body.aqua-mode-dark,
body.aqua-theme-midnight,
body.aqua-mode-dark .site-content,
body.aqua-theme-midnight .site-content {
  background-color: #070b16 !important;
  color: #e8eef6 !important;
}

html[data-aqua-theme="dark"] body,
body.aqua-mode-dark,
body.aqua-theme-midnight {
  background-image:
    radial-gradient(800px 420px at 10% -12%, color-mix(in srgb, #2ec4d6 14%, transparent), transparent 58%),
    radial-gradient(520px 320px at 100% 0%, color-mix(in srgb, #2ec4d6 8%, transparent), transparent 50%),
    linear-gradient(180deg, #070b16 0%, #0b1220 55%, #080d18 100%) !important;
}

body.aqua-mode-dark,
body.aqua-theme-midnight,
html[data-aqua-theme="dark"] {
  --ink: #e8eef6;
  --ink-2: #c9d4e2;
  --mute: #93a4b8;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --card: #121826;
  --bg: #070b16;
  --shadow: 0 10px 32px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255,255,255,.04) inset;
  --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.45);
}

body.aqua-mode-dark .site-header,
body.aqua-theme-midnight .site-header,
html[data-aqua-theme="dark"] .site-header {
  background: rgba(8, 13, 24, 0.82) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

body.aqua-mode-dark.aqua-header-solid .site-header,
body.aqua-theme-midnight.aqua-header-solid .site-header {
  background: #121826 !important;
}

body.aqua-mode-dark .brand,
body.aqua-mode-dark .brand-name,
body.aqua-mode-dark .brand-name .brand-store,
body.aqua-mode-dark .nav-main a,
body.aqua-mode-dark .icon-btn,
body.aqua-mode-dark .user-chip {
  color: #e8eef6;
}
body.aqua-mode-dark .nav-main a { color: #c9d4e2; }
body.aqua-mode-dark .nav-main a:hover,
body.aqua-mode-dark .nav-main a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
body.aqua-mode-dark .icon-btn:hover,
body.aqua-mode-dark .user-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

body.aqua-mode-dark .header-search input,
body.aqua-mode-dark input,
body.aqua-mode-dark select,
body.aqua-mode-dark textarea,
body.aqua-mode-dark .qty,
body.aqua-mode-dark .search-field,
body.aqua-mode-dark .woocommerce input.input-text,
body.aqua-mode-dark .woocommerce textarea,
body.aqua-mode-dark .woocommerce select,
body.aqua-mode-dark .comment-form input,
body.aqua-mode-dark .comment-form textarea,
body.aqua-mode-dark .form-row input,
body.aqua-mode-dark .form-row textarea,
body.aqua-mode-dark .form-row select {
  background: #0e1524 !important;
  color: #e8eef6 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
body.aqua-mode-dark input::placeholder,
body.aqua-mode-dark textarea::placeholder {
  color: #7b8ba0 !important;
}

body.aqua-mode-dark .product-card,
body.aqua-mode-dark .post-card,
body.aqua-mode-dark .panel,
body.aqua-mode-dark .feat,
body.aqua-mode-dark .cat-card,
body.aqua-mode-dark .review-item,
body.aqua-mode-dark .qa-item,
body.aqua-mode-dark .pdp-buybox-inner,
body.aqua-mode-dark .feature-card,
body.aqua-mode-dark .hero-float-card,
body.aqua-mode-dark .step-card,
body.aqua-mode-dark .content-block,
body.aqua-mode-dark .account-card,
body.aqua-mode-dark .ticket-card,
body.aqua-mode-dark .faq-item,
body.aqua-mode-dark .login-card,
body.aqua-mode-dark .auth-card,
body.aqua-mode-dark .widget,
body.aqua-mode-dark .woocommerce ul.products li.product,
body.aqua-mode-dark .woocommerce-message,
body.aqua-mode-dark .woocommerce-info,
body.aqua-mode-dark .woocommerce-error,
body.aqua-mode-dark .cart_totals,
body.aqua-mode-dark .woocommerce-checkout #payment,
body.aqua-mode-dark table.nice,
body.aqua-mode-dark table.shop_table,
body.aqua-mode-dark .tab-content,
body.aqua-mode-dark .pdp-tabs,
body.aqua-mode-dark .brl-modal-card,
body.aqua-mode-dark .auth-wrap,
body.aqua-mode-dark .empty {
  background: #121826 !important;
  color: #e8eef6 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: var(--shadow);
}

body.aqua-mode-dark .product-thumb,
body.aqua-mode-dark .pdp-main-img,
body.aqua-mode-dark .placeholder-thumb {
  background: #0b1220 !important;
  color: #93a4b8;
}

body.aqua-mode-dark .site-footer,
body.aqua-mode-dark .site-footer a,
body.aqua-theme-midnight .site-footer {
  background: #070b16 !important;
  color: #c9d4e2;
  border-top-color: rgba(255,255,255,.08);
}

body.aqua-mode-dark h1,
body.aqua-mode-dark h2,
body.aqua-mode-dark h3,
body.aqua-mode-dark h4,
body.aqua-mode-dark .pdp-title,
body.aqua-mode-dark .section-head h2 {
  color: #f3f7ff;
}

body.aqua-mode-dark .muted,
body.aqua-mode-dark .meta,
body.aqua-mode-dark .pdp-cat,
body.aqua-mode-dark .section-kicker {
  color: #93a4b8 !important;
}

body.aqua-mode-dark .btn-ghost {
  color: #7dd3fc;
}
body.aqua-mode-dark .pdp-btn-buy,
body.aqua-mode-dark .btn-secondary {
  background: #1b2436 !important;
  color: #e8eef6 !important;
  border: 1px solid rgba(255,255,255,.12);
}

body.aqua-mode-dark .product-tabs button,
body.aqua-mode-dark .pdp-tabs button {
  background: transparent;
  color: #93a4b8;
}
body.aqua-mode-dark .product-tabs button.active,
body.aqua-mode-dark .pdp-tabs button.active {
  background: #1b2436;
  color: #fff;
}

body.aqua-mode-dark table.nice th,
body.aqua-mode-dark table.shop_table th,
body.aqua-mode-dark table.nice td,
body.aqua-mode-dark table.shop_table td {
  border-color: rgba(255,255,255,.08) !important;
  background: transparent !important;
  color: #e8eef6;
}

body.aqua-mode-dark .pdp-qty-ctrl,
body.aqua-mode-dark .pdp-qty-btn {
  background: #0e1524 !important;
  color: #e8eef6 !important;
  border-color: rgba(255,255,255,.12);
}

body.aqua-mode-dark .notice,
body.aqua-mode-dark .notice-err {
  background: #2a1520 !important;
  color: #fecaca !important;
}
body.aqua-mode-dark .updated,
body.aqua-mode-dark .notice-ok,
body.aqua-mode-dark .stock-in {
  background: #10261c !important;
  color: #86efac !important;
}

body.aqua-mode-dark .status-wait { background: #2a2110 !important; color: #fbbf24 !important; }

body.aqua-mode-dark .hero-pro,
body.aqua-mode-dark .hero {
  background: transparent;
}
body.aqua-mode-dark .hero-glow {
  opacity: .55;
}

body.aqua-mode-dark .payment-method {
  background: #0e1524 !important;
  border-color: rgba(255,255,255,.1) !important;
  color: #e8eef6;
}
body.aqua-mode-dark .payment-method.selected {
  border-color: var(--blue) !important;
  background: #102033 !important;
}

body.aqua-mode-dark .brl-modal-backdrop {
  background: rgba(0,0,0,.65);
}
body.aqua-mode-dark .consent-label {
  color: #c9d4e2;
}

body.aqua-mode-dark .woocommerce #respond input#submit,
body.aqua-mode-dark .woocommerce a.button,
body.aqua-mode-dark .woocommerce button.button,
body.aqua-mode-dark .woocommerce input.button {
  background: var(--blue) !important;
  color: #fff !important;
}

body.aqua-mode-dark .page-title,
body.aqua-mode-dark .woocommerce-breadcrumb,
body.aqua-mode-dark .pdp-breadcrumb {
  color: #93a4b8;
}

@media (prefers-color-scheme: dark) {
  body.aqua-mode-auto {
    color-scheme: dark;
    background-color: #070b16 !important;
    color: #e8eef6 !important;
    --ink: #e8eef6;
    --ink-2: #c9d4e2;
    --mute: #93a4b8;
    --card: #121826;
    --bg: #070b16;
    --line: rgba(255,255,255,.08);
  }
  body.aqua-mode-auto .site-header { background: rgba(8,13,24,.82) !important; }
  body.aqua-mode-auto .product-card,
  body.aqua-mode-auto .panel,
  body.aqua-mode-auto .feature-card,
  body.aqua-mode-auto .cat-card,
  body.aqua-mode-auto .pdp-buybox-inner,
  body.aqua-mode-auto .hero-float-card,
  body.aqua-mode-auto .step-card,
  body.aqua-mode-auto input,
  body.aqua-mode-auto select,
  body.aqua-mode-auto textarea {
    background: #121826 !important;
    color: #e8eef6 !important;
    border-color: rgba(255,255,255,.1);
  }
}


body.aqua-mode-dark .buy-form .qty,
body.aqua-mode-dark .pdp-main-img,
body.aqua-mode-dark .pdp-thumb,
body.aqua-mode-dark .toolbar select,
body.aqua-mode-dark .page-hero,
body.aqua-mode-dark .home-cta-box,
body.aqua-mode-dark .comment-form,
body.aqua-mode-dark .woocommerce-tabs,
body.aqua-mode-dark .store-empty {
  background-color: #121826 !important;
  color: #e8eef6;
  border-color: rgba(255,255,255,.08);
}
body.aqua-mode-dark .product-card .product-thumb,
body.aqua-mode-dark .placeholder-thumb:not(.game-ph) {
  background: linear-gradient(180deg, #0b1220, #151c2c) !important;
}
body.aqua-mode-dark .nav-main.open,
body.aqua-mode-dark .nav-main.open a {
  background: #0b1220;
  color: #e8eef6;
}
body.aqua-mode-dark table.nice thead th {
  background: #0e1524 !important;
}
body.aqua-mode-dark .woocommerce div.product p.price,
body.aqua-mode-dark .woocommerce div.product span.price {
  color: #7dd3fc;
}

/* Account / tickets / auth — full dark surface */
html[data-aqua-theme="dark"] .account-shell,
body.aqua-mode-dark .account-shell,
html[data-aqua-theme="dark"] .account-hero,
body.aqua-mode-dark .account-hero {
  background: transparent !important;
  color: #e8eef6 !important;
  box-shadow: none !important;
}
html[data-aqua-theme="dark"] .account-profile-card,
body.aqua-mode-dark .account-profile-card,
html[data-aqua-theme="dark"] .account-card,
body.aqua-mode-dark .account-card,
html[data-aqua-theme="dark"] .account-side .panel,
body.aqua-mode-dark .account-side .panel,
html[data-aqua-theme="dark"] .side-nav,
body.aqua-mode-dark .side-nav {
  background: #121826 !important;
  color: #e8eef6 !important;
  border-color: rgba(255,255,255,.08) !important;
}
html[data-aqua-theme="dark"] .side-nav a,
body.aqua-mode-dark .side-nav a {
  color: #c9d4e2 !important;
}
html[data-aqua-theme="dark"] .side-nav a:hover,
html[data-aqua-theme="dark"] .side-nav a.active,
body.aqua-mode-dark .side-nav a:hover,
body.aqua-mode-dark .side-nav a.active {
  background: rgba(56, 189, 248, .14) !important;
  color: #fff !important;
}
html[data-aqua-theme="dark"] .chip,
html[data-aqua-theme="dark"] .stat,
html[data-aqua-theme="dark"] .quick-tile,
html[data-aqua-theme="dark"] .account .stat,
body.aqua-mode-dark .chip,
body.aqua-mode-dark .stat,
body.aqua-mode-dark .quick-tile,
body.aqua-mode-dark .account .stat {
  background: #0e1524 !important;
  color: #e8eef6 !important;
  border-color: rgba(255,255,255,.1) !important;
}
html[data-aqua-theme="dark"] .delivery-box,
body.aqua-mode-dark .delivery-box {
  background: #0e1524 !important;
  color: #e8eef6 !important;
  border-color: rgba(255,255,255,.1) !important;
}
html[data-aqua-theme="dark"] .ticket-msg,
body.aqua-mode-dark .ticket-msg {
  color: #e8eef6;
}

html[data-aqua-theme="light"] {
  color-scheme: light;
}

html[data-aqua-theme="dark"] .page-hero,
html[data-aqua-theme="dark"] .toolbar,
html[data-aqua-theme="dark"] .pagination a,
html[data-aqua-theme="dark"] .pagination .current,
html[data-aqua-theme="dark"] .store-empty,
html[data-aqua-theme="dark"] .comments-area,
html[data-aqua-theme="dark"] .comment,
html[data-aqua-theme="dark"] .legal-body,
html[data-aqua-theme="dark"] .content-page,
html[data-aqua-theme="dark"] .woocommerce-checkout #payment,
html[data-aqua-theme="dark"] .woocommerce-checkout #payment div.payment_box,
body.aqua-mode-dark .page-hero,
body.aqua-mode-dark .toolbar,
body.aqua-mode-dark .pagination a,
body.aqua-mode-dark .pagination .current,
body.aqua-mode-dark .store-empty,
body.aqua-mode-dark .comments-area,
body.aqua-mode-dark .comment,
body.aqua-mode-dark .legal-body,
body.aqua-mode-dark .content-page,
body.aqua-mode-dark .woocommerce-checkout #payment {
  background: #121826 !important;
  color: #e8eef6 !important;
  border-color: rgba(255,255,255,.08) !important;
}

html[data-aqua-theme="dark"] .comment-respond,
html[data-aqua-theme="dark"] #review_form_wrapper,
html[data-aqua-theme="dark"] #respond,
html[data-aqua-theme="dark"] .woocommerce-Reviews,
body.aqua-mode-dark .comment-respond,
body.aqua-mode-dark #review_form_wrapper,
body.aqua-mode-dark #respond,
body.aqua-mode-dark .woocommerce-Reviews {
  background: #121826 !important;
  color: #e8eef6 !important;
}
html[data-aqua-theme="dark"] #reply-title,
html[data-aqua-theme="dark"] .comment-form a,
html[data-aqua-theme="dark"] .logged-in-as,
html[data-aqua-theme="dark"] .comment-notes,
html[data-aqua-theme="dark"] .comment-form-cookies-consent,
body.aqua-mode-dark #reply-title,
body.aqua-mode-dark .comment-form a,
body.aqua-mode-dark .logged-in-as,
body.aqua-mode-dark .comment-notes {
  color: #c9d4e2 !important;
}
html[data-aqua-theme="dark"] .comment-form input[type="text"],
html[data-aqua-theme="dark"] .comment-form input[type="email"],
html[data-aqua-theme="dark"] .comment-form textarea,
html[data-aqua-theme="dark"] #review_form input,
html[data-aqua-theme="dark"] #review_form textarea,
body.aqua-mode-dark .comment-form input[type="text"],
body.aqua-mode-dark .comment-form input[type="email"],
body.aqua-mode-dark .comment-form textarea,
body.aqua-mode-dark #review_form input,
body.aqua-mode-dark #review_form textarea {
  background: #0e1524 !important;
  color: #e8eef6 !important;
  border-color: rgba(255,255,255,.12) !important;
}


/* =========================================================
   Aqua Store 1.9 — strict theme isolation
   Every visual surface is resolved from the active mode.
   Light mode never inherits dark surfaces and vice versa.
   ========================================================= */
html[data-aqua-theme="light"] {
  color-scheme: light;
  --theme-bg: #f4f7fb;
  --theme-surface: #ffffff;
  --theme-surface-2: #f7f9fc;
  --theme-surface-3: #eef3f8;
  --theme-text: #182230;
  --theme-text-2: #465466;
  --theme-muted: #6d7887;
  --theme-border: rgba(24,34,48,.10);
  --theme-border-strong: rgba(24,34,48,.16);
  --theme-hover: rgba(10,163,184,.07);
  --theme-on-accent: #ffffff;
  --theme-shadow: 0 10px 30px rgba(24,34,48,.07), 0 1px 0 rgba(255,255,255,.9) inset;
}
html[data-aqua-theme="dark"],
body.aqua-mode-dark,
body.aqua-theme-midnight {
  --theme-bg: #080d18;
  --theme-surface: #121a29;
  --theme-surface-2: #0e1625;
  --theme-surface-3: #182338;
  --theme-text: #edf3fb;
  --theme-text-2: #c4d0df;
  --theme-muted: #91a0b4;
  --theme-border: rgba(255,255,255,.09);
  --theme-border-strong: rgba(255,255,255,.15);
  --theme-hover: rgba(125,211,252,.10);
  --theme-on-accent: #ffffff;
  --theme-shadow: 0 12px 34px rgba(0,0,0,.30), 0 1px 0 rgba(255,255,255,.03) inset;
}

/* Explicit light isolation */
html[data-aqua-theme="light"] body,
html[data-aqua-theme="light"] body.aqua-mode-light,
html[data-aqua-theme="light"] .site-content {
  background: var(--theme-bg) !important;
  color: var(--theme-text) !important;
}
html[data-aqua-theme="light"] .site-header {
  background: color-mix(in srgb, var(--theme-surface) 88%, transparent) !important;
  color: var(--theme-text) !important;
  border-color: var(--theme-border) !important;
}
html[data-aqua-theme="light"] .site-footer {
  background: var(--theme-surface-2) !important;
  color: var(--theme-text-2) !important;
  border-color: var(--theme-border) !important;
}

/* Shared components resolve only against active theme */
html[data-aqua-theme="light"] .product-card,
html[data-aqua-theme="light"] .post-card,
html[data-aqua-theme="light"] .panel,
html[data-aqua-theme="light"] .feat,
html[data-aqua-theme="light"] .cat-card,
html[data-aqua-theme="light"] .review-item,
html[data-aqua-theme="light"] .qa-item,
html[data-aqua-theme="light"] .pdp-buybox-inner,
html[data-aqua-theme="light"] .feature-card,
html[data-aqua-theme="light"] .hero-float-card,
html[data-aqua-theme="light"] .step-card,
html[data-aqua-theme="light"] .content-block,
html[data-aqua-theme="light"] .account-card,
html[data-aqua-theme="light"] .ticket-card,
html[data-aqua-theme="light"] .faq-item,
html[data-aqua-theme="light"] .login-card,
html[data-aqua-theme="light"] .auth-card,
html[data-aqua-theme="light"] .widget,
html[data-aqua-theme="light"] .woocommerce ul.products li.product,
html[data-aqua-theme="light"] .woocommerce-message,
html[data-aqua-theme="light"] .woocommerce-info,
html[data-aqua-theme="light"] .woocommerce-error,
html[data-aqua-theme="light"] .cart_totals,
html[data-aqua-theme="light"] table.nice,
html[data-aqua-theme="light"] table.shop_table,
html[data-aqua-theme="light"] .tab-content,
html[data-aqua-theme="light"] .pdp-tabs,
html[data-aqua-theme="light"] .brl-modal-card,
html[data-aqua-theme="light"] .auth-wrap,
html[data-aqua-theme="light"] .account-profile-card {
  background: var(--theme-surface) !important;
  color: var(--theme-text) !important;
  border-color: var(--theme-border) !important;
  box-shadow: var(--theme-shadow);
}

/* Dark isolation — no white/bright card leakage */
html[data-aqua-theme="dark"] body,
html[data-aqua-theme="dark"] .site-content {
  background: var(--theme-bg) !important;
  color: var(--theme-text) !important;
}
html[data-aqua-theme="dark"] .site-header {
  background: color-mix(in srgb, var(--theme-surface) 90%, transparent) !important;
  color: var(--theme-text) !important;
  border-color: var(--theme-border) !important;
}
html[data-aqua-theme="dark"] .site-footer {
  background: var(--theme-bg) !important;
  color: var(--theme-text-2) !important;
  border-color: var(--theme-border) !important;
}
html[data-aqua-theme="dark"] .product-card,
html[data-aqua-theme="dark"] .post-card,
html[data-aqua-theme="dark"] .panel,
html[data-aqua-theme="dark"] .feat,
html[data-aqua-theme="dark"] .cat-card,
html[data-aqua-theme="dark"] .review-item,
html[data-aqua-theme="dark"] .qa-item,
html[data-aqua-theme="dark"] .pdp-buybox-inner,
html[data-aqua-theme="dark"] .feature-card,
html[data-aqua-theme="dark"] .hero-float-card,
html[data-aqua-theme="dark"] .step-card,
html[data-aqua-theme="dark"] .content-block,
html[data-aqua-theme="dark"] .account-card,
html[data-aqua-theme="dark"] .ticket-card,
html[data-aqua-theme="dark"] .faq-item,
html[data-aqua-theme="dark"] .login-card,
html[data-aqua-theme="dark"] .auth-card,
html[data-aqua-theme="dark"] .widget,
html[data-aqua-theme="dark"] .woocommerce ul.products li.product,
html[data-aqua-theme="dark"] .woocommerce-message,
html[data-aqua-theme="dark"] .woocommerce-info,
html[data-aqua-theme="dark"] .woocommerce-error,
html[data-aqua-theme="dark"] .cart_totals,
html[data-aqua-theme="dark"] table.nice,
html[data-aqua-theme="dark"] table.shop_table,
html[data-aqua-theme="dark"] .tab-content,
html[data-aqua-theme="dark"] .pdp-tabs,
html[data-aqua-theme="dark"] .brl-modal-card,
html[data-aqua-theme="dark"] .auth-wrap,
html[data-aqua-theme="dark"] .account-profile-card {
  background: var(--theme-surface) !important;
  color: var(--theme-text) !important;
  border-color: var(--theme-border) !important;
  box-shadow: var(--theme-shadow);
}

html[data-aqua-theme="light"] input,
html[data-aqua-theme="light"] select,
html[data-aqua-theme="light"] textarea,
html[data-aqua-theme="light"] .qty,
html[data-aqua-theme="light"] .search-field,
html[data-aqua-theme="light"] .woocommerce input.input-text,
html[data-aqua-theme="light"] .woocommerce textarea,
html[data-aqua-theme="light"] .woocommerce select {
  background: var(--theme-surface) !important;
  color: var(--theme-text) !important;
  border-color: var(--theme-border-strong) !important;
}
html[data-aqua-theme="dark"] input,
html[data-aqua-theme="dark"] select,
html[data-aqua-theme="dark"] textarea,
html[data-aqua-theme="dark"] .qty,
html[data-aqua-theme="dark"] .search-field,
html[data-aqua-theme="dark"] .woocommerce input.input-text,
html[data-aqua-theme="dark"] .woocommerce textarea,
html[data-aqua-theme="dark"] .woocommerce select {
  background: var(--theme-surface-2) !important;
  color: var(--theme-text) !important;
  border-color: var(--theme-border-strong) !important;
}

html[data-aqua-theme="light"] .product-thumb,
html[data-aqua-theme="light"] .placeholder-thumb,
html[data-aqua-theme="light"] .delivery-box,
html[data-aqua-theme="light"] .quick-tile,
html[data-aqua-theme="light"] .account .empty {
  background: var(--theme-surface-2) !important;
  color: var(--theme-text-2) !important;
}
html[data-aqua-theme="dark"] .product-thumb,
html[data-aqua-theme="dark"] .placeholder-thumb,
html[data-aqua-theme="dark"] .delivery-box,
html[data-aqua-theme="dark"] .quick-tile,
html[data-aqua-theme="dark"] .account .empty {
  background: var(--theme-surface-2) !important;
  color: var(--theme-text-2) !important;
}

html[data-aqua-theme="light"] h1,
html[data-aqua-theme="light"] h2,
html[data-aqua-theme="light"] h3,
html[data-aqua-theme="light"] h4,
html[data-aqua-theme="light"] p,
html[data-aqua-theme="light"] li,
html[data-aqua-theme="light"] label,
html[data-aqua-theme="light"] th,
html[data-aqua-theme="light"] td {
  color: inherit;
}
html[data-aqua-theme="dark"] h1,
html[data-aqua-theme="dark"] h2,
html[data-aqua-theme="dark"] h3,
html[data-aqua-theme="dark"] h4,
html[data-aqua-theme="dark"] p,
html[data-aqua-theme="dark"] li,
html[data-aqua-theme="dark"] label,
html[data-aqua-theme="dark"] th,
html[data-aqua-theme="dark"] td {
  color: inherit;
}
html[data-aqua-theme="light"] a { color: var(--blue); }
html[data-aqua-theme="dark"] a { color: color-mix(in srgb, var(--blue) 78%, white); }


/* Aqua Store 1.9.4 — dark-mode WooCommerce product/review hardening */
html[data-aqua-theme="dark"] .woocommerce div.product .woocommerce-product-gallery,
html[data-aqua-theme="dark"] .woocommerce div.product .summary,
body.aqua-mode-dark .woocommerce div.product .woocommerce-product-gallery,
body.aqua-mode-dark .woocommerce div.product .summary {
  background: #121826 !important;
  border-color: rgba(255,255,255,.08) !important;
  color: #e8eef6 !important;
}

html[data-aqua-theme="dark"] .woocommerce div.product .woocommerce-product-gallery .woocommerce-product-gallery__image,
body.aqua-mode-dark .woocommerce div.product .woocommerce-product-gallery .woocommerce-product-gallery__image {
  background: #0b1220 !important;
}

html[data-aqua-theme="dark"] .woocommerce div.product form.cart,
body.aqua-mode-dark .woocommerce div.product form.cart,
html[data-aqua-theme="dark"] .brl-wc-reviews .brl-review-form,
body.aqua-mode-dark .brl-wc-reviews .brl-review-form,
html[data-aqua-theme="dark"] .brl-wc-reviews .review-item,
body.aqua-mode-dark .brl-wc-reviews .review-item {
  background: #0e1524 !important;
  border-color: rgba(255,255,255,.1) !important;
  color: #e8eef6 !important;
}

html[data-aqua-theme="dark"] .woocommerce div.product form.cart .quantity .qty,
body.aqua-mode-dark .woocommerce div.product form.cart .quantity .qty,
html[data-aqua-theme="dark"] .brl-wc-reviews .brl-review-form input,
html[data-aqua-theme="dark"] .brl-wc-reviews .brl-review-form select,
html[data-aqua-theme="dark"] .brl-wc-reviews .brl-review-form textarea,
body.aqua-mode-dark .brl-wc-reviews .brl-review-form input,
body.aqua-mode-dark .brl-wc-reviews .brl-review-form select,
body.aqua-mode-dark .brl-wc-reviews .brl-review-form textarea {
  background: #121826 !important;
  color: #e8eef6 !important;
  border-color: rgba(255,255,255,.12) !important;
}

html[data-aqua-theme="dark"] .woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel,
body.aqua-mode-dark .woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel {
  background: #121826 !important;
  color: #e8eef6 !important;
  border-color: rgba(255,255,255,.08) !important;
}

html[data-aqua-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs,
body.aqua-mode-dark .woocommerce div.product .woocommerce-tabs ul.tabs {
  border-bottom-color: rgba(255,255,255,.08) !important;
}

html[data-aqua-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs li a,
body.aqua-mode-dark .woocommerce div.product .woocommerce-tabs ul.tabs li a {
  color: #93a4b8 !important;
}

html[data-aqua-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
body.aqua-mode-dark .woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: #7dd3fc !important;
  border-bottom-color: #7dd3fc !important;
}

html[data-aqua-theme="dark"] .woocommerce div.product #reviews,
html[data-aqua-theme="dark"] .woocommerce div.product .woocommerce-Reviews,
body.aqua-mode-dark .woocommerce div.product #reviews,
body.aqua-mode-dark .woocommerce div.product .woocommerce-Reviews {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* ===================================================================
   Aqua Store — Dark mode complete fix (appended patch)
   Covers: WP comment list, comment author/meta, review panel,
   brl-wc-reviews, buy-form qty, form-row select, star fill colour.
   =================================================================== */

/* Comment list items & avatars */
html[data-aqua-theme="dark"] .comment-list li,
html[data-aqua-theme="dark"] .comment-list article,
html[data-aqua-theme="dark"] .comment-body,
html[data-aqua-theme="dark"] .comment-author b,
html[data-aqua-theme="dark"] .comment-author cite,
html[data-aqua-theme="dark"] .comment-metadata a,
html[data-aqua-theme="dark"] .comment-metadata time,
body.aqua-mode-dark .comment-list li,
body.aqua-mode-dark .comment-list article,
body.aqua-mode-dark .comment-body,
body.aqua-mode-dark .comment-author b,
body.aqua-mode-dark .comment-author cite,
body.aqua-mode-dark .comment-metadata a,
body.aqua-mode-dark .comment-metadata time {
  color: #c9d4e2 !important;
  background: transparent !important;
}

/* WordPress default comment avatar img */
html[data-aqua-theme="dark"] .comment-list .avatar,
body.aqua-mode-dark .comment-list .avatar {
  border-radius: 50%;
  opacity: 0.85;
}

/* Reply link */
html[data-aqua-theme="dark"] .comment-reply-link,
body.aqua-mode-dark .comment-reply-link {
  color: #7dd3fc !important;
}

/* Comments area wrapper — ensure full dark surface, no white bleed */
html[data-aqua-theme="dark"] #comments,
html[data-aqua-theme="dark"] .comments-area,
body.aqua-mode-dark #comments,
body.aqua-mode-dark .comments-area {
  background: transparent !important;
  color: #e8eef6 !important;
}

/* Individual comment box — subtle dark card */
html[data-aqua-theme="dark"] .comment-list > li,
html[data-aqua-theme="dark"] .comment-list .comment,
body.aqua-mode-dark .comment-list > li,
body.aqua-mode-dark .comment-list .comment {
  background: #121826 !important;
  border-color: rgba(255,255,255,.07) !important;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

/* Comment form submit button */
html[data-aqua-theme="dark"] .comment-form #submit,
body.aqua-mode-dark .comment-form #submit {
  background: var(--blue) !important;
  color: #fff !important;
  border: none !important;
}

/* brl-wc-reviews container */
html[data-aqua-theme="dark"] .brl-wc-reviews,
body.aqua-mode-dark .brl-wc-reviews {
  background: transparent !important;
  color: #e8eef6 !important;
}

/* form-row select (missing from global input rule) */
html[data-aqua-theme="dark"] .form-row select,
body.aqua-mode-dark .form-row select {
  background: #0e1524 !important;
  color: #e8eef6 !important;
  border-color: rgba(255,255,255,.12) !important;
}

/* Inline star SVG fill — dark mode uses lighter amber */
body.aqua-mode-dark .rating-stars svg[fill="#334155"],
html[data-aqua-theme="dark"] .rating-stars svg[fill="#334155"] {
  fill: #2a3a50 !important;
}

/* Panel border fix in dark mode — was inheriting .7 white from light */
html[data-aqua-theme="dark"] .panel,
body.aqua-mode-dark .panel {
  border-color: rgba(255,255,255,.08) !important;
}

/* Buy-form qty dark */
html[data-aqua-theme="dark"] .buy-form .qty,
body.aqua-mode-dark .buy-form .qty {
  background: #0e1524 !important;
  color: #e8eef6 !important;
  border-color: rgba(255,255,255,.12) !important;
}

/* Toolbar select — already using var(--card) from style.css but ensure dark */
html[data-aqua-theme="dark"] .toolbar select,
html[data-aqua-theme="dark"] .toolbar input,
body.aqua-mode-dark .toolbar select,
body.aqua-mode-dark .toolbar input {
  background: #121826 !important;
  color: #e8eef6 !important;
  border-color: rgba(255,255,255,.12) !important;
}

/* Product card — add subtle border so cards are distinguishable on dark bg */
html[data-aqua-theme="dark"] .product-card,
html[data-aqua-theme="dark"] .post-card,
body.aqua-mode-dark .product-card,
body.aqua-mode-dark .post-card {
  border: 1px solid rgba(255,255,255,.06) !important;
}
