/* Zabanisa payment dark polish + quick theme toggle v1
   Focused cleanup after Dark Mode Phase 6B.
   No billing/auth behavior changes. */

/* -------------------------------------------------------------------------- */
/* Quick theme toggle: light + dark                                            */
/* -------------------------------------------------------------------------- */
.theme-quick-toggle {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, .28);
    background: rgba(255,255,255,.88);
    color: #355c9a;
    box-shadow: 0 8px 18px rgba(15,23,42,.06);
    cursor: pointer;
    padding: 0;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
    -webkit-tap-highlight-color: transparent;
}
.theme-quick-toggle:hover { transform: translateY(-1px); }
.theme-quick-toggle:focus-visible {
    outline: 3px solid rgba(23,179,159,.18);
    outline-offset: 2px;
}
.theme-quick-icon { width: 18px; height: 18px; display:grid; place-items:center; }
.theme-quick-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.theme-quick-icon--sun { display:none; }
html[data-zabanisa-theme="dark"] .theme-quick-toggle {
    background:#152238;
    border-color:#34465f;
    color:#f2bd66;
    box-shadow:0 10px 22px rgba(0,0,0,.24);
}
html[data-zabanisa-theme="dark"] .theme-quick-icon--moon { display:none; }
html[data-zabanisa-theme="dark"] .theme-quick-icon--sun { display:grid; }
@media (max-width: 760px) {
    .theme-quick-toggle { width:36px; height:36px; flex-basis:36px; box-shadow:none; }
    .theme-quick-icon,.theme-quick-icon svg { width:17px; height:17px; }
}

/* -------------------------------------------------------------------------- */
/* Legal/business footer                                                       */
/* -------------------------------------------------------------------------- */
html[data-zabanisa-theme="dark"] .legal-footer-card {
    background:linear-gradient(180deg,#111b2e 0%,#0e192a 100%)!important;
    border-color:#2a3a51!important;
}
html[data-zabanisa-theme="dark"] .footer-brand-title strong { color:#eef4ff!important; }
html[data-zabanisa-theme="dark"] :is(.footer-brand-title span,.footer-domain) { color:#9fb0c8!important; }
html[data-zabanisa-theme="dark"] .footer-status-pill {
    background:#12382f!important;
    border-color:#2e615a!important;
    color:#8cebdc!important;
    box-shadow:none!important;
}
html[data-zabanisa-theme="dark"] .footer-links a {
    background:#152238!important;
    border-color:#34465f!important;
    color:#c7d6e9!important;
}
html[data-zabanisa-theme="dark"] .footer-links a:hover,
html[data-zabanisa-theme="dark"] .footer-links a:focus-visible {
    background:#19304a!important;
    border-color:#3b7d74!important;
    color:#8cebdc!important;
}
html[data-zabanisa-theme="dark"] .footer-brand-visual {
    background:#eef4f3!important;
    border-color:#34465f!important;
}

/* -------------------------------------------------------------------------- */
/* Pricing / My subscription                                                   */
/* -------------------------------------------------------------------------- */
html[data-zabanisa-theme="dark"] .zp-secure-chip,
html[data-zabanisa-theme="dark"] .zp-owned-label,
html[data-zabanisa-theme="dark"] .zp-owned-icon {
    background:#12382f!important;
    border-color:#2e615a!important;
    color:#8cebdc!important;
}
html[data-zabanisa-theme="dark"] .zp-owned-head a,
html[data-zabanisa-theme="dark"] .zp-promo-head>a,
html[data-zabanisa-theme="dark"] .zp-subscription-note a {
    background:#17263b!important;
    border:1px solid #34465f!important;
    color:#9fc4ff!important;
}
html[data-zabanisa-theme="dark"] .zp-plan-main { border-inline-start-color:#2a3a51!important; }
html[data-zabanisa-theme="dark"] .zp-plan-title-row em {
    background:#3b2d1c!important;
    color:#efc476!important;
}
html[data-zabanisa-theme="dark"] .zp-plan-title-row em.is-promo {
    background:#12382f!important;
    color:#83e5cb!important;
}
html[data-zabanisa-theme="dark"] .zp-plan-benefits span {
    background:#1a2940!important;
    color:#a8b8cb!important;
}
html[data-zabanisa-theme="dark"] .zp-subscription-note {
    background:#101b2d!important;
    border-color:#2a3a51!important;
}
html[data-zabanisa-theme="dark"] .zp-policy-card details {
    background:#101b2d!important;
    border-color:#2a3a51!important;
}
html[data-zabanisa-theme="dark"] .zp-policy-card summary { color:#eef4ff!important; }
html[data-zabanisa-theme="dark"] .zp-policy-card p { color:#9fb0c8!important; }
html[data-zabanisa-theme="dark"] .zp-trust-strip div {
    color:#c7d6e9!important;
    border-inline-start-color:#2a3a51!important;
}
html[data-zabanisa-theme="dark"] .zp-pay-btn.is-disabled {
    background:#34465f!important;
    color:#a9bad0!important;
}

/* -------------------------------------------------------------------------- */
/* Checkout / purchase confirmation                                            */
/* -------------------------------------------------------------------------- */
html[data-zabanisa-theme="dark"] .zcx-steps {
    background:#101b2d!important;
    border-color:#2a3a51!important;
}
html[data-zabanisa-theme="dark"] .zcx-step {
    background:#152238!important;
    border-color:#34465f!important;
    color:#a8b8cb!important;
}
html[data-zabanisa-theme="dark"] .zcx-step.is-active {
    background:#12382f!important;
    border-color:#347068!important;
    color:#8cebdc!important;
}
html[data-zabanisa-theme="dark"] .zcx-switch div { color:#9fb0c8!important; }
html[data-zabanisa-theme="dark"] .zcx-switch .is-active {
    background:#12382f!important;
    border-color:#347068!important;
    color:#8cebdc!important;
    box-shadow:none!important;
}
html[data-zabanisa-theme="dark"] .zcx-price {
    background:linear-gradient(145deg,#12382f,#17263b)!important;
    border-color:#2e615a!important;
}
html[data-zabanisa-theme="dark"] .zcx-price span { color:#c7d6e9!important; }
html[data-zabanisa-theme="dark"] .zcx-price svg {
    background:#17263b!important;
    color:#8cebdc!important;
}
html[data-zabanisa-theme="dark"] .zcx-auto-note {
    background:#12382f!important;
    color:#83e5cb!important;
}
html[data-zabanisa-theme="dark"] .zcx-promo-inline label { color:#eef4ff!important; }
html[data-zabanisa-theme="dark"] .zcx-promo-inline input {
    background:#0d1829!important;
    border-color:#34465f!important;
    color:#eef4ff!important;
}
html[data-zabanisa-theme="dark"] .zcx-promo-wallet {
    background:linear-gradient(145deg,#111b2e,#12382f)!important;
    border-color:#2e615a!important;
}
html[data-zabanisa-theme="dark"] .zcx-promo-card {
    background:#152238!important;
    border-color:#34465f!important;
}
html[data-zabanisa-theme="dark"] .zcx-promo-card-copy strong { color:#eef4ff!important; }
html[data-zabanisa-theme="dark"] .zcx-promo-card-copy small { color:#9fb0c8!important; }
html[data-zabanisa-theme="dark"] .zcx-promo-mini:not(.is-primary) {
    background:#17263b!important;
    border-color:#3a526d!important;
    color:#9fc4ff!important;
}
html[data-zabanisa-theme="dark"] .zcx-trust-card div {
    border-inline-start-color:#2a3a51!important;
}
html[data-zabanisa-theme="dark"] .zcx-trust-card strong { color:#eef4ff!important; }
html[data-zabanisa-theme="dark"] .zcx-trust-card span { color:#9fb0c8!important; }
html[data-zabanisa-theme="dark"] .zcx-secondary {
    background:#17263b!important;
    border-color:#3a526d!important;
    color:#9fc4ff!important;
}
html[data-zabanisa-theme="dark"] .zcx-pay:disabled {
    background:#34465f!important;
    color:#a9bad0!important;
    box-shadow:none!important;
}

/* -------------------------------------------------------------------------- */
/* Payment result                                                              */
/* -------------------------------------------------------------------------- */
html[data-zabanisa-theme="dark"] .zrs-row--subscription-total {
    background:#12382f!important;
    color:#83e5cb!important;
}
html[data-zabanisa-theme="dark"] .zrs-diagnostic-action {
    background:#152238!important;
    border-color:#34465f!important;
    color:#c7d6e9!important;
}
html[data-zabanisa-theme="dark"] .zrs-diagnostic-code {
    border-top-color:#34465f!important;
}
html[data-zabanisa-theme="dark"] .zrs-diagnostic-code span { color:#9fb0c8!important; }
html[data-zabanisa-theme="dark"] .zrs-diagnostic-code bdi { color:#eef4ff!important; }
html[data-zabanisa-theme="dark"] .zrs-note-row {
    background:#35291a!important;
    color:#efc476!important;
}
html[data-zabanisa-theme="dark"] .zrs-secondary,
html[data-zabanisa-theme="dark"] .zrs-tertiary {
    background:#17263b!important;
    border-color:#3a526d!important;
    color:#c7d6e9!important;
}

/* -------------------------------------------------------------------------- */
/* Transaction history                                                         */
/* -------------------------------------------------------------------------- */
html[data-zabanisa-theme="dark"] .zth-stat,
html[data-zabanisa-theme="dark"] .zth-open-icon,
html[data-zabanisa-theme="dark"] .zth-info-box,
html[data-zabanisa-theme="dark"] .zth-diagnostic {
    background:#152238!important;
    border-color:#34465f!important;
}
html[data-zabanisa-theme="dark"] .zth-details {
    background:#101b2d!important;
    border-top-color:#2a3a51!important;
}
html[data-zabanisa-theme="dark"] .zth-link-chip,
html[data-zabanisa-theme="dark"] .zth-secondary {
    background:#17263b!important;
    border-color:#3a526d!important;
    color:#9fc4ff!important;
}
