/* Whale Miners — Light display mode (site + customer portal)
   Dark mode = default (existing styles). Activate with html[data-wm-theme="light"]. */

/* ——— Theme toggle control ——— */
.wm-theme-switch {
    display: inline-flex;
    align-items: stretch;
    gap: 0;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(201, 162, 75, 0.35);
    background: rgba(0, 0, 0, 0.2);
}
.wm-theme-switch--site {
    margin-inline: 0.35rem 0;
}
.wm-theme-switch--portal-nav {
    margin: 12px 0;
    padding: 0 4px;
}
@media (min-width: 768px) {
    .wm-theme-switch--portal-nav {
        margin: 14px 10px;
        padding: 0;
    }
}
.wm-theme-switch__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 12px;
    cursor: pointer;
    line-height: 1.2;
    transition: background 0.18s ease, color 0.18s ease;
}
.wm-theme-switch__btn:hover,
.wm-theme-switch__btn:focus {
    outline: none;
}
.wm-theme-switch__btn.is-active {
    background: rgba(201, 162, 75, 0.28);
    color: #f3dba0;
}
html[data-wm-theme="light"] .wm-theme-switch {
    border-color: rgba(154, 118, 24, 0.35);
    background: #f0f0f4;
}
html[data-wm-theme="light"] .wm-theme-switch__btn {
    color: #4a4a55;
}
html[data-wm-theme="light"] .wm-theme-switch__btn.is-active {
    background: linear-gradient(135deg, #b8872f 0%, #d4a84a 100%);
    color: #1a1408;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .wm-theme-switch--portal-auth .wm-theme-switch__btn {
    background: #fff;
    border: 1px solid #d8d8e0;
    color: #3a3a44;
}
html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .wm-theme-switch--portal-auth .wm-theme-switch__btn.is-active,
html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .wm-theme-switch--portal-auth .wm-theme-switch__btn.is-active:hover,
html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .wm-theme-switch--portal-auth .wm-theme-switch__btn.is-active:focus {
    background: linear-gradient(135deg, #b8872f 0%, #d4a84a 100%) !important;
    border-color: transparent !important;
    color: #1a1408 !important;
    box-shadow: none;
}
.portal-auth-theme {
    margin-top: 14px;
    text-align: center;
}
@media (max-width: 767px) {
    .wm-theme-switch__text {
        display: none;
    }
    .wm-theme-switch__btn {
        padding: 8px 11px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MARKETING SITE (wm-mining)
   ═══════════════════════════════════════════════════════════════ */
html[data-wm-theme="light"] {
    --wm-bg: #ffffff;
    --wm-bg-2: #faf9f6;
    --wm-bg-3: #f2f0eb;
    --wm-ink: #1a1814;
    --wm-muted: #5c564c;
    --wm-line: rgba(26, 24, 20, 0.1);
    --wm-gold-dim: rgba(202, 156, 68, 0.14);
    --wm-gold-line: rgba(154, 118, 24, 0.22);
    --wm-nav-dropdown-bg: rgba(255, 255, 255, 0.98);
    --wm-nav-dropdown-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

html[data-wm-theme="light"] .wm-field {
    opacity: 0.22;
}

html[data-wm-theme="light"] #mainNavbar.wm-nav,
html[data-wm-theme="light"] #mainNavbar.wm-nav.scrolled {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--wm-line);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

html[data-wm-theme="light"] #mainNavbar.wm-nav .nav-link {
    color: #3d3a34 !important;
}

html[data-wm-theme="light"] #mainNavbar.wm-nav .nav-link:hover,
html[data-wm-theme="light"] #mainNavbar.wm-nav .nav-link.active {
    color: var(--wm-gold-lo) !important;
}

html[data-wm-theme="light"] #mainNavbar.wm-nav .portal-login-btn {
    background: linear-gradient(135deg, #b8872f, #d4a84a);
    color: #1a1408 !important;
}

html[data-wm-theme="light"] #mainNavbar.wm-nav .lang-switch {
    border-color: rgba(154, 118, 24, 0.35);
    color: #5a4a20;
}

/* Mobile hamburger dropdown — site-mining hardcodes dark panel */
@media (max-width: 991.98px) {
    html[data-wm-theme="light"] #mainNavbar.wm-nav .nav-link {
        border-bottom-color: rgba(26, 24, 20, 0.08);
    }

    html[data-wm-theme="light"] #mainNavbar.wm-nav .navbar-toggler {
        border-color: rgba(154, 118, 24, 0.45) !important;
        background: rgba(202, 156, 68, 0.1) !important;
        box-shadow: 0 0 0 1px rgba(154, 118, 24, 0.12);
    }

    html[data-wm-theme="light"] #mainNavbar.wm-nav .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%233d3a34' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.8' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    html[data-wm-theme="light"] #mainNavbar.wm-nav .wm-theme-switch {
        border-color: rgba(154, 118, 24, 0.28);
        background: #f2f0eb;
    }

    html[data-wm-theme="light"] #mainNavbar.wm-nav .wm-theme-switch__btn:not(.is-active) {
        color: #5c564c;
        background: #faf9f6;
    }
}

html[data-wm-theme="light"] .wm-hero {
    background: linear-gradient(165deg, #fff 0%, #f7f4ec 55%, #f0ebe0 100%);
}

html[data-wm-theme="light"] .wm-hero__title span {
    color: var(--wm-gold-lo);
}

html[data-wm-theme="light"] .wm-section {
    background: var(--wm-bg);
}

html[data-wm-theme="light"] .wm-section--alt {
    background: var(--wm-bg-2);
}

html[data-wm-theme="light"] .wm-card,
html[data-wm-theme="light"] .wm-step,
html[data-wm-theme="light"] .wm-why-item,
html[data-wm-theme="light"] .wm-contact-card {
    background: #fff;
    border: 1px solid var(--wm-line);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

html[data-wm-theme="light"] .wm-btn--ghost {
    border-color: rgba(154, 118, 24, 0.45);
    color: #4a3d1a;
}

html[data-wm-theme="light"] .wm-footer {
    background: #f5f3ef;
    border-top: 1px solid var(--wm-line);
    color: var(--wm-muted);
}

html[data-wm-theme="light"] .wm-legal-page .wm-legal-doc {
    background: #fff;
    border: 1px solid var(--wm-line);
    color: var(--wm-ink);
}

/* ═══════════════════════════════════════════════════════════════
   CUSTOMER PORTAL — CSS variables (light)
   ═══════════════════════════════════════════════════════════════ */
html[data-wm-theme="light"] {
    --lx-gold: #9a7618;
    --lx-gold-2: #7a5c12;
    --lx-gold-deep: #5c450e;
    --lx-grad: linear-gradient(135deg, #b8872f 0%, #d4a84a 100%);
    --lx-bg: #f5f5f7;
    --lx-surface: #ffffff;
    --lx-surface-2: #f0f0f4;
    --lx-border: rgba(154, 118, 24, 0.32);
    --lx-border-soft: #e4e4ea;
    --lx-text: #2a2a32;
    --lx-muted: #6b6b78;
    --lx-head: #1a1a22;
    --lx-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
    --lx-body-bg: #f4f4f6;
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) {
    background: var(--lx-body-bg);
    color: var(--lx-text);
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .portal-nav-inner {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--lx-border-soft);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .portal-nav-links li a {
    color: #3a3a44 !important;
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .portal-nav-links li a:hover {
    color: var(--lx-gold) !important;
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .portal-card {
    background: var(--lx-surface);
    border: 1px solid var(--lx-border-soft);
    box-shadow: var(--lx-shadow);
    backdrop-filter: none;
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .portal-section-title h2 {
    -webkit-text-fill-color: unset;
    color: var(--lx-gold-deep);
    background: none;
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) a {
    color: #8a6b1a;
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) a:hover {
    color: #5c450e;
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .form-control {
    background: #fff;
    border-color: #d8d8e0;
    color: var(--lx-text);
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .form-control:focus {
    background: #fff;
    color: var(--lx-text);
    box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.2);
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) select.form-control option {
    background: #fff;
    color: var(--lx-text);
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .form-group > label,
html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .control-label {
    color: #44444f;
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .table > thead > tr > th {
    color: var(--lx-gold-deep);
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .table-striped > tbody > tr:nth-of-type(odd) > td {
    background: #f8f8fb;
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .table-hover > tbody > tr:hover > td {
    background: rgba(201, 162, 75, 0.08);
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .btn-default {
    background: #fff;
    border-color: var(--lx-border);
    color: #5c4a18;
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .portal-footer {
    background: #ececef;
    border-top: 1px solid var(--lx-border-soft);
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .portal-login-card {
    background: #fff;
    border: 1px solid var(--lx-border-soft);
    box-shadow: var(--lx-shadow);
    backdrop-filter: none;
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .portal-login-heading h2 {
    -webkit-text-fill-color: unset;
    color: var(--lx-gold-deep);
    background: none;
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .portal-country-picker-btn {
    background: #fff;
    border-color: #d8d8e0;
    color: var(--lx-text);
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .portal-country-picker-panel {
    background: #fff;
    border-color: var(--lx-border-soft);
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .alert-success {
    background: #e8f7ef;
    border-color: #86cba8;
    color: #1e5636;
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .alert-danger {
    background: #fdecec;
    border-color: #f0a8a8;
    color: #8b1e1e;
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .alert-warning {
    background: #fff8e6;
    border-color: #e8c96a;
    color: #6b4f0a;
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .alert-info {
    background: #eaf4fc;
    border-color: #94c4e8;
    color: #1a4a6e;
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .portal-ref-agent-hero {
    background: linear-gradient(135deg, rgba(201, 162, 75, 0.12) 0%, #fff 60%);
    box-shadow: var(--lx-shadow);
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .portal-ref-milestone {
    background: #fff;
    border-color: var(--lx-border-soft);
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .portal-ref-milestone-note {
    color: var(--lx-muted);
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .portal-ref-milestone-remaining {
    color: var(--lx-gold-deep);
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .portal-ref-link-box .portal-ref-link-input {
    background: #f5f5f8;
    color: var(--lx-text);
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .modal-content {
    background: #fff;
    color: var(--lx-text);
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .modal-content .close {
    color: #333;
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) code {
    background: rgba(201, 162, 75, 0.15);
    color: #5c450e;
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .portal-badge-pending {
    background: #fff3cd !important;
    color: #856404 !important;
    border: 1px solid #ffe69c !important;
    box-shadow: none !important;
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .portal-badge-review {
    background: #cce5ff !important;
    color: #004085 !important;
    border: 1px solid #9ec5fe !important;
    box-shadow: none !important;
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .portal-badge-active {
    background: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #a3cfbb !important;
    box-shadow: none !important;
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .portal-badge-rejected {
    background: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f1aeb5 !important;
    box-shadow: none !important;
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .portal-badge-expired {
    background: #e2e3e5 !important;
    color: #383d41 !important;
    border: 1px solid #c4c8cb !important;
    box-shadow: none !important;
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .portal-badge-attention {
    background: #fff3cd !important;
    color: #856404 !important;
    border: 1px solid #ffe69c !important;
    box-shadow: none !important;
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .portal-copy-field__btn {
    color: #9a7618;
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .portal-copy-field__btn:hover,
html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .portal-copy-field__btn:focus {
    color: #7a5c12;
    background: rgba(201, 162, 75, 0.12);
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .portal-copy-field__btn.is-copied {
    color: #1a1408;
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .portal-copy-field__input {
    background: #fff;
    color: #2a2a32;
}
html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .portal-checkout-wallet-box .portal-copy-field__input {
    background: transparent;
    color: #2a2a32;
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .portal-auth-links-sep {
    color: #ccc;
}

html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .portal-auth-lang-label,
html[data-wm-theme="light"] body.portal-body:not(.portal-admin-body) .portal-auth-theme .portal-auth-lang-label {
    color: var(--lx-muted);
}
