/* ==========================================================================
   Dark mode — final consistency layer
   ========================================================================== */
:root { color-scheme: light; }
[data-theme="dark"] { color-scheme: dark; }

[data-theme="dark"] body,
[data-theme="dark"] .ha-main { background: var(--ha-bg); color: var(--ha-ink); }

[data-theme="dark"] .ha-header {
	background: #071713;
	border-bottom-color: #20382f;
	color: #e9f2ef;
}
[data-theme="dark"] .ha-header a,
[data-theme="dark"] .ha-header button { color: #e9f2ef; }
[data-theme="dark"] .ha-header__cta { border-color: #2ab394; }
[data-theme="dark"] .ha-logo__name { color: #fff; }

[data-theme="dark"] .ha-card,
[data-theme="dark"] .ha-form-card,
[data-theme="dark"] .ha-ticket,
[data-theme="dark"] .ha-license,
[data-theme="dark"] .ha-plan,
[data-theme="dark"] .ha-addon-card,
[data-theme="dark"] .ha-list-card,
[data-theme="dark"] .ha-dlp2-buy,
[data-theme="dark"] .ha-dlp2-visual__frame,
[data-theme="dark"] .woocommerce-checkout .col2-set,
[data-theme="dark"] .woocommerce-checkout #order_review,
[data-theme="dark"] .woocommerce-checkout #payment { background: var(--ha-card); border-color: var(--ha-border); color: var(--ha-ink); }

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
	background: #0e1d19 !important;
	color: #e9f2ef !important;
	border-color: #20382f !important;
}
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder { color: #7d948d; }

[data-theme="dark"] .ha-table th,
[data-theme="dark"] .ha-table td { border-color: var(--ha-border); }
[data-theme="dark"] .ha-table thead th { background: #12342b; color: #2ab394; }

[data-theme="dark"] .ha-faq__item,
[data-theme="dark"] details { background: var(--ha-surface); border-color: var(--ha-border); }
[data-theme="dark"] .ha-faq__answer p { color: #c2d2cc; }

[data-theme="dark"] .ha-store-toolbar,
[data-theme="dark"] .ha-checkout-trust,
[data-theme="dark"] .ha-dlp2-why__card,
[data-theme="dark"] .ha-dlp2-step,
[data-theme="dark"] .ha-addon-option,
[data-theme="dark"] .ha-changelog__row { background: var(--ha-card); border-color: var(--ha-border); }

[data-theme="dark"] .ha-btn--ghost { color: #e9f2ef; border-color: #2ab394; }
[data-theme="dark"] .ha-btn--ghost:hover { background: #12342b; color: #fff; }

[data-theme="dark"] .ha-theme-toggle__sun { display: none !important; }
[data-theme="dark"] .ha-theme-toggle__moon { display: inline-flex !important; }
