/* BitZed light / dark — simple, shared, premium. */
.header-home {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0;
}

.header-home-tools {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 2.5rem;
}

.header-home .theme-toggle {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .header-home {
        flex-direction: column;
        align-items: center;
        position: relative;
        gap: 1rem;
    }

    .header-home-tools {
        width: 100%;
        justify-content: center;
        gap: 0;
    }

    .header-home .live-rate {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }

    .header-home .theme-toggle {
        position: absolute;
        top: 1rem;
        right: 0;
    }
}

.theme-toggle {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 4px 12px rgba(15, 23, 42, 0.05);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    color: #0f172a;
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.06),
        0 8px 18px rgba(15, 23, 42, 0.08);
}

.theme-toggle:focus-visible {
    outline: 2px solid #f7931a;
    outline-offset: 2px;
}

.theme-icon {
    display: none !important;
}

.theme-toggle::before {
    content: "";
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M21 14.3A9 9 0 1 1 9.7 3 7.2 7.2 0 0 0 21 14.3z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M21 14.3A9 9 0 1 1 9.7 3 7.2 7.2 0 0 0 21 14.3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

html[data-theme="dark"] .theme-toggle::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4.4' fill='black'/%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' d='M12 2.6v1.8M12 19.6v1.8M2.6 12h1.8M19.6 12h1.8M5.1 5.1l1.3 1.3M17.6 17.6l1.3 1.3M18.9 5.1l-1.3 1.3M6.4 17.6l-1.3 1.3'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4.4' fill='black'/%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' d='M12 2.6v1.8M12 19.6v1.8M2.6 12h1.8M19.6 12h1.8M5.1 5.1l1.3 1.3M17.6 17.6l1.3 1.3M18.9 5.1l-1.3 1.3M6.4 17.6l-1.3 1.3'/%3E%3C/svg%3E") center / contain no-repeat;
}


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

html[data-theme="dark"] body {
    background: #0c0f14 !important;
    color: #e8edf4 !important;
}

html[data-theme="dark"] .logo,
html[data-theme="dark"] .brand span,
html[data-theme="dark"] .spend-page .logo,
html[data-theme="dark"] .buy-page .logo,
html[data-theme="dark"] body.spend-page .container .header .logo,
html[data-theme="dark"] body.buy-page .container .header .logo,
html[data-theme="dark"] html body.buy-page .container .header .logo {
    color: #f8fafc !important;
}

html[data-theme="dark"] .live-rate,
html[data-theme="dark"] body.spend-page .live-rate,
html[data-theme="dark"] body.spend-page .container .header .live-rate,
html[data-theme="dark"] body.buy-page .live-rate,
html[data-theme="dark"] body.buy-page .container .header .live-rate,
html[data-theme="dark"] body.units-page .live-rate,
html[data-theme="dark"] body.units-page .container .header .live-rate,
html[data-theme="dark"] body.track-page .live-rate {
    background: #181c24 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22) !important;
}

html[data-theme="dark"] .theme-toggle {
    background: #181c24;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .theme-toggle:hover {
    color: #ffffff;
}

html[data-theme="dark"] .description h2,
html[data-theme="dark"] .wallets-title,
html[data-theme="dark"] .footer-link,
html[data-theme="dark"] .footer-text {
    color: #94a3b8;
}

html[data-theme="dark"] .footer-link:hover {
    color: #f8fafc;
}

html[data-theme="dark"] .footer {
    border-top-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .wallet-item {
    background: #181c24;
    border-color: rgba(255, 255, 255, 0.08);
    color: #e8edf4;
}

html[data-theme="dark"] .wallet-name {
    color: #e8edf4;
}

html[data-theme="dark"] .social-icon-link.x-twitter {
    background: #181c24;
    border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] body.spend-page,
html[data-theme="dark"] body.buy-page,
html[data-theme="dark"] body.track-page,
html[data-theme="dark"] body.units-page {
    background: #0c0f14 !important;
}

html[data-theme="dark"] .spend-page .spend-hero-subtitle,
html[data-theme="dark"] .buy-page .buy-hero-subtitle {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .spend-page .form-group label,
html[data-theme="dark"] .spend-page .form-group label[for="spend-amount"],
html[data-theme="dark"] .spend-page .form-group label[for="merchant-phone"],
html[data-theme="dark"] .spend-page .form-group label[for="units-meter"],
html[data-theme="dark"] .units-page .form-group label,
html[data-theme="dark"] .buy-page .form-group label {
    color: #9aa3b2 !important;
}

html[data-theme="dark"] .spend-page .input-with-prefix,
html[data-theme="dark"] .buy-page .input-with-prefix,
html[data-theme="dark"] .units-page .input-with-prefix {
    background: #181c24 !important;
    border: 1px solid rgba(232, 238, 247, 0.46) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18) !important;
}

html[data-theme="dark"] .spend-page .form-group .input-with-prefix input,
html[data-theme="dark"] .spend-page .input-with-prefix input,
html[data-theme="dark"] .buy-page .form-group input,
html[data-theme="dark"] .buy-page .input-with-prefix input {
    color: #f1f5f9 !important;
    background: transparent !important;
}

html[data-theme="dark"] .spend-page .form-group input::placeholder,
html[data-theme="dark"] .buy-page .form-group input::placeholder {
    color: #64748b !important;
}

html[data-theme="dark"] .rail-recipient-card {
    background: #181c24;
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .rail-recipient-name {
    color: #f1f5f9;
}

html[data-theme="dark"] .rail-recipient-phone {
    color: #94a3b8;
}

html[data-theme="dark"] .spend-page .spend-flow-card,
html[data-theme="dark"] .spend-stock-card {
    background: #181c24;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .spend-page .spend-flow-detail-label {
    color: #94a3b8;
}

html[data-theme="dark"] .spend-page .spend-flow-detail-value,
html[data-theme="dark"] .spend-page .spend-flow-recipient-name,
html[data-theme="dark"] .spend-stock-title {
    color: #f1f5f9;
}

html[data-theme="dark"] .spend-stock-subtitle,
html[data-theme="dark"] .spend-flow-status-message {
    color: #94a3b8;
}

html[data-theme="dark"] .spend-page .spend-txid,
html[data-theme="dark"] .spend-page .spend-txid span,
html[data-theme="dark"] .units-page .spend-txid,
html[data-theme="dark"] .units-page .spend-txid span {
    color: #f8fafc !important;
}

html[data-theme="dark"] .spend-page .spend-flow-amount-display,
html[data-theme="dark"] .spend-page .spend-flow-amount-sats,
html[data-theme="dark"] .spend-page .spend-flow-amount-phone,
html[data-theme="dark"] .units-page .units-pay-amount {
    color: #f8fafc !important;
}

html[data-theme="dark"] .spend-page .spend-flow-amount-arrow {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .units-page .units-pay-meter {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .units-page .units-pay-amount {
    color: #f1f5f9;
}

html[data-theme="dark"] .modal-content {
    background: #181c24;
    color: #e8edf4;
}

html[data-theme="dark"] .transaction-label,
html[data-theme="dark"] .mobile-number-subtitle {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .transaction-value,
html[data-theme="dark"] .mobile-number-new {
    color: #f8fafc !important;
}

html[data-theme="dark"] .mobile-number-display-new {
    background: #181c24 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .units-page .units-token-card {
    background: linear-gradient(180deg, #13241d 0%, #181c24 72%);
    border-color: rgba(50, 179, 132, 0.22);
}

html[data-theme="dark"] .units-page .units-token-value {
    color: #4ec894;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] .last-updated strong {
    color: #f1f5f9;
}

html[data-theme="dark"] p,
html[data-theme="dark"] li,
html[data-theme="dark"] small,
html[data-theme="dark"] .subtitle {
    color: #94a3b8;
}

html[data-theme="dark"] .last-updated,
html[data-theme="dark"] .contact-info,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .card {
    background: #181c24;
    border-color: rgba(255, 255, 255, 0.08);
    color: #e8edf4;
}

html[data-theme="dark"] hr {
    border-top-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] body.receipt-page,
html[data-theme="dark"] .receipt-page {
    background: #0c0f14;
}

html[data-theme="dark"] .amount .value,
html[data-theme="dark"] .row .v {
    color: #f1f5f9;
}

html[data-theme="dark"] .row .k,
html[data-theme="dark"] .amount .label {
    color: #94a3b8;
}

html[data-theme="dark"] .buy-page .invoice-card,
html[data-theme="dark"] .buy-page .success-card,
html[data-theme="dark"] .buy-page .confirmation-card,
html[data-theme="dark"] .buy-page .buy-flow-card,
html[data-theme="dark"] .spend-you-pay-banner {
    background: #181c24 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #e8edf4 !important;
}

html[data-theme="dark"] .buy-page .you-pay-label,
html[data-theme="dark"] .spend-page .you-pay-label {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .spend-page .spend-estimate-row .fee-summary-static,
html[data-theme="dark"] .buy-page .buy-estimate-row .fee-summary-static,
html[data-theme="dark"] .units-page .spend-estimate-row .fee-summary-static {
    background: #222833 !important;
    border: 1px solid rgba(232, 238, 247, 0.2) !important;
    color: #e8edf4 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .spend-page .fee-label,
html[data-theme="dark"] .buy-page .fee-label,
html[data-theme="dark"] .units-page .fee-label,
html[data-theme="dark"] .spend-page .spend-estimate-row .fee-summary-static .fee-label,
html[data-theme="dark"] .buy-page .buy-estimate-row .fee-summary-static .fee-label {
    color: #e8edf4 !important;
}

html[data-theme="dark"] .buy-page .buy-flow-otp-input {
    background: #181c24;
    border-color: rgba(232, 238, 247, 0.28);
    color: #f1f5f9;
}

html[data-theme="dark"] img.logo-icon,
html[data-theme="dark"] .logo-container img,
html[data-theme="dark"] .brand img {
    content: url("/logo-dark.png");
}

html[data-theme="dark"] .spend-page .spend-back-home,
html[data-theme="dark"] .spend-page .spend-back-home:hover,
html[data-theme="dark"] .units-page .spend-back-home,
html[data-theme="dark"] .units-page .spend-back-home:hover {
    background: var(--spend-theme-gradient) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(234, 88, 12, 0.24) !important;
}

html[data-theme="dark"] .units-page .spend-back-home,
html[data-theme="dark"] .units-page .spend-back-home:hover {
    box-shadow: 0 6px 16px rgba(32, 157, 112, 0.24) !important;
}

html[data-theme="dark"] .buy-page .buy-back-home,
html[data-theme="dark"] .buy-page .buy-back-home:hover {
    background: var(--buy-theme-gradient) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.24) !important;
}

html[data-theme="dark"] .spend-page .input-with-prefix:focus-within,
html[data-theme="dark"] .buy-page .input-with-prefix:focus-within,
html[data-theme="dark"] .units-page .input-with-prefix:focus-within {
    background: #181c24 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18) !important;
}

html[data-theme="dark"] .spend-page .input-with-prefix input,
html[data-theme="dark"] .buy-page .input-with-prefix input,
html[data-theme="dark"] .units-page .input-with-prefix input,
html[data-theme="dark"] .buy-page .form-group input {
    background: transparent !important;
    background-color: transparent !important;
    color: #f1f5f9 !important;
    color-scheme: dark;
}

html[data-theme="dark"] .spend-page .form-group input:-webkit-autofill,
html[data-theme="dark"] .spend-page .form-group input:-webkit-autofill:hover,
html[data-theme="dark"] .spend-page .form-group input:-webkit-autofill:focus,
html[data-theme="dark"] .spend-page .form-group input:-webkit-autofill:active,
html[data-theme="dark"] .spend-page .input-with-prefix input:-webkit-autofill,
html[data-theme="dark"] .spend-page .input-with-prefix input:-webkit-autofill:hover,
html[data-theme="dark"] .spend-page .input-with-prefix input:-webkit-autofill:focus,
html[data-theme="dark"] .spend-page .input-with-prefix input:-webkit-autofill:active,
html[data-theme="dark"] .buy-page .form-group input:-webkit-autofill,
html[data-theme="dark"] .buy-page .form-group input:-webkit-autofill:hover,
html[data-theme="dark"] .buy-page .form-group input:-webkit-autofill:focus,
html[data-theme="dark"] .buy-page .form-group input:-webkit-autofill:active,
html[data-theme="dark"] .buy-page .input-with-prefix input:-webkit-autofill,
html[data-theme="dark"] .buy-page .input-with-prefix input:-webkit-autofill:hover,
html[data-theme="dark"] .buy-page .input-with-prefix input:-webkit-autofill:focus,
html[data-theme="dark"] .buy-page .input-with-prefix input:-webkit-autofill:active,
html[data-theme="dark"] .units-page .input-with-prefix input:-webkit-autofill,
html[data-theme="dark"] .units-page .input-with-prefix input:-webkit-autofill:hover,
html[data-theme="dark"] .units-page .input-with-prefix input:-webkit-autofill:focus,
html[data-theme="dark"] .units-page .input-with-prefix input:-webkit-autofill:active,
html[data-theme="dark"] .buy-page .buy-flow-otp-input:-webkit-autofill,
html[data-theme="dark"] .buy-page .buy-flow-otp-input:-webkit-autofill:hover,
html[data-theme="dark"] .buy-page .buy-flow-otp-input:-webkit-autofill:focus,
html[data-theme="dark"] .buy-page .buy-flow-otp-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #181c24 inset !important;
    box-shadow: 0 0 0 1000px #181c24 inset !important;
    -webkit-text-fill-color: #f1f5f9 !important;
    caret-color: inherit !important;
    background-color: #181c24 !important;
    background-image: none !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

html[data-theme="dark"] .buy-page .getcash-pay-card {
    background: #181c24 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22) !important;
}

html[data-theme="dark"] .buy-page .getcash-instruction,
html[data-theme="dark"] .buy-page .getcash-merchant,
html[data-theme="dark"] .buy-page .getcash-countdown.is-expired,
html[data-theme="dark"] .buy-page .buy-flow-status-message,
html[data-theme="dark"] .buy-page .buy-flow-status-to,
html[data-theme="dark"] .buy-page .buy-flow-otp-lead,
html[data-theme="dark"] .buy-page .buy-flow-step-body p {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .buy-page .getcash-agent-id,
html[data-theme="dark"] .buy-page .getcash-txid span,
html[data-theme="dark"] .buy-page .buy-flow-detail-value,
html[data-theme="dark"] .buy-page .buy-flow-error-card h3 {
    color: #f8fafc !important;
}

html[data-theme="dark"] .buy-page .getcash-txid,
html[data-theme="dark"] .buy-page .getcash-agent-label,
html[data-theme="dark"] .buy-page .buy-flow-detail-label {
    color: #fdba74 !important;
}

html[data-theme="dark"] .buy-page .buy-flow-lightning-pill {
    background: #1e293b !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
}

html[data-theme="dark"] .buy-page .buy-flow-lightning-pill span {
    color: #dbeafe !important;
}

html[data-theme="dark"] .buy-page .buy-flow-phone-chip {
    background: #1e293b !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .buy-page .buy-flow-detail-row,
html[data-theme="dark"] .buy-page .buy-flow-step {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}
