/* Shared bridge-sms chrome, matching the service page reference. */
body #rechargeModal { background: rgb(15 23 42 / 48%) !important; backdrop-filter: blur(4px); padding: 20px; }
body #rechargeModal .recharge-modal-card { width: 100%; max-width: 640px; max-height: calc(100dvh - 40px); overflow-y: auto; background: #fff !important; color: #1e293b !important; border: 1px solid #e2e8f0 !important; border-radius: 20px !important; box-shadow: 0 24px 64px rgb(15 23 42 / 18%) !important; }
body #rechargeModal .recharge-modal-head { background: #fff !important; border-color: #e2e8f0 !important; padding: 20px 24px; }
body #rechargeModal .recharge-modal-head h3 { color: #1e293b !important; font-size: 22px; }
body #rechargeModal .recharge-close-btn { display: inline-flex; justify-content: center; align-items: center; width: 44px; height: 44px; color: #64748b !important; background: #f8fafc !important; border-radius: 999px; }
body #rechargeModal .recharge-stage { padding: 24px; }
body #rechargeModal .recharge-amount-option { min-height: 48px; background: #fff !important; background-image: none !important; border: 1px solid #e2e8f0 !important; border-radius: 12px !important; color: #334155 !important; box-shadow: none !important; font-variant-numeric: tabular-nums; }
body #rechargeModal .recharge-amount-option:hover { background: #fff7ed !important; border-color: #fdba74 !important; }
body #rechargeModal .recharge-amount-option.is-selected { background: #fff7ed !important; border-color: #f97316 !important; color: #c2410c !important; }
body #rechargeModal .recharge-custom-input { background: #f8fafc !important; border-color: #cbd5e1 !important; color: #1e293b !important; min-height: 48px; }
body #rechargeModal .recharge-method-item { background: #fff !important; background-image: none !important; border: 1px solid #e2e8f0 !important; box-shadow: none !important; }
body #rechargeModal .recharge-method-item.is-active { background: #f0fdfa !important; border-color: #5eead4 !important; }
body #rechargeModal .recharge-method-title { color: #1e293b !important; }
body #rechargeModal .recharge-method-desc { color: #64748b !important; }
body #rechargeModal .recharge-check-icon,
body #rechargeModal .usdt-color { color: #0f766e !important; }
body #rechargeModal .recharge-billing { background: #f8fafc !important; border: 1px solid #e2e8f0 !important; border-radius: 12px; }
body #rechargeModal .recharge-billing-row { color: #526176 !important; }
body #rechargeModal .price-val { color: #334155 !important; font-variant-numeric: tabular-nums; }
body #rechargeModal .recharge-billing-row-final { border-color: #cbd5e1 !important; }
body #rechargeModal .recharge-final-amount { color: #0f766e !important; }
body #rechargeModal .exchange-rate-tag { background: #ffedd5 !important; color: #9a3412 !important; }
body #rechargeModal .submit-pay-btn { min-height: 48px; background: #5eead4 !important; background-image: none !important; color: #0f292f !important; border: 0 !important; border-radius: 999px !important; box-shadow: none !important; }
body #rechargeModal .submit-pay-btn:hover { background: #2dd4bf !important; }
body #rechargeModal button:disabled { opacity: .55; cursor: not-allowed; }
body #rechargeModal button:focus-visible,
body #rechargeModal input:focus-visible { outline: 2px solid #f97316; outline-offset: 3px; }
body #rechargeModal .usdt-order-card,
body #rechargeModal .recharge-expired-card { background: #fff !important; color: #1e293b !important; border-color: #e2e8f0 !important; }
body #rechargeModal .usdt-order-row,
body #rechargeModal .usdt-amount-label,
body #rechargeModal .recharge-expired-card h4 { color: #334155 !important; }
body #rechargeModal .usdt-order-row strong,
body #rechargeModal .usdt-order-address-text { color: #1e293b !important; overflow-wrap: anywhere; }
body #rechargeModal .usdt-amount-value { color: #0f766e !important; font-variant-numeric: tabular-nums; }
body #rechargeModal .usdt-amount-note,
body #rechargeModal .recharge-expired-card p { color: #64748b !important; }
body #rechargeModal .usdt-warning-box { background: #fff7ed !important; border-color: #fed7aa !important; color: #9a3412 !important; }
body #rechargeModal .usdt-warning-title,
body #rechargeModal .usdt-warning-list { color: #9a3412 !important; }
body #rechargeModal #topupExistingOrderNotice { background: #f0fdfa !important; border-color: #99f6e4 !important; }
body #rechargeModal #topup-existing-order-title,
body #rechargeModal #topup-existing-order-desc { color: #115e59 !important; }
body #rechargeModal .recharge-scroll-tip { background: #f8fafc !important; color: #64748b !important; border-color: #cbd5e1 !important; }
body #rechargeModal .btn-secondary { min-height: 44px; background: #fff !important; color: #334155 !important; border-color: #cbd5e1 !important; }
@media (max-width: 480px) {
    body #rechargeModal { padding: 12px; }
    body #rechargeModal .recharge-modal-card { max-height: calc(100dvh - 24px); }
    body #rechargeModal .recharge-modal-head,
    body #rechargeModal .recharge-stage { padding: 16px; }
    body #rechargeModal .recharge-modal-head h3 { font-size: 20px; }
    body #rechargeModal .recharge-amount-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body #rechargeModal .recharge-billing-row { flex-wrap: wrap; gap: 8px; }
}
body .site-topbar { background: #fff !important; border-bottom: 1px solid #e2e8f0 !important; }
body .site-topbar > div {
    display: grid !important;
    grid-template-columns: 240px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 96px !important;
    height: auto !important;
    gap: 24px !important;
}
body .site-topbar > div > div:first-child:not(#nav-auth-section) { display: contents; }
body .site-topbar .site-image-brand,
body .site-topbar .reference-header-brand { width: 240px !important; min-width: 0; height: 60px !important; }
body .site-topbar .site-header-logo,
body .site-topbar .reference-header-logo { width: 240px !important; height: 60px !important; object-fit: contain; }
body .site-topbar .site-primary-nav { display: flex !important; justify-content: center; gap: 32px !important; margin: 0 !important; white-space: nowrap; }
body .site-topbar .site-primary-nav a { color: #1e293b; font-size: 18px !important; font-weight: 700; }
body .site-topbar .site-primary-nav a:hover,
body .site-topbar .site-primary-nav a.nav-link-active,
body .site-topbar .site-primary-nav a.text-brand-600 { color: #f97316 !important; }
body .site-topbar #nav-auth-section { width: auto !important; min-width: 0; margin: 0 !important; justify-self: end; }
body .site-topbar #nav-auth-section .nav-user-tools { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: center; gap: 8px !important; }
body .site-topbar #nav-auth-section .lang-trigger,
body .site-topbar #nav-auth-section .recharge-btn,
body .site-topbar #nav-auth-section .balance-btn { display: inline-flex !important; align-items: center; gap: 8px; height: 44px !important; min-height: 44px !important; padding: 0 14px !important; border-radius: 999px !important; font-size: 14px !important; white-space: nowrap; }
body .site-topbar #nav-auth-section .lang-trigger { background: #fff7ed !important; border: 1px solid #fdba74 !important; color: #ea580c !important; }
body .site-topbar #nav-auth-section .recharge-btn {
    width: auto !important;
    background: #f97316 !important;
    border: 1px solid #f97316 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgb(249 115 22 / 18%);
}
body .site-topbar #nav-auth-section .recharge-btn:hover {
    background: #ea580c !important;
    border-color: #ea580c !important;
}
body .site-topbar #nav-auth-section .recharge-btn span { display: inline !important; }
body .site-topbar #nav-auth-section .balance-btn { background: #fff !important; border: 1px solid #fed7aa !important; color: #334155 !important; font-variant-numeric: tabular-nums; }
body .site-topbar #nav-auth-section .balance-btn::before { content: ''; display: block; width: 15px; height: 12px; border-radius: 2px; background: linear-gradient(to bottom, #f97316 0 3px, #fff 3px 5px, #f97316 5px); }
body .site-topbar #nav-auth-section .user-trigger { display: inline-flex; justify-content: center; align-items: center; width: 44px !important; height: 44px !important; min-height: 44px !important; padding: 0 !important; background: #fff7ed !important; border: 1px solid #fdba74 !important; border-radius: 999px !important; }
body .site-topbar #nav-auth-section .user-trigger:hover,
body .site-topbar #nav-auth-section .user-trigger.active { background: #ffedd5 !important; border-color: #f97316 !important; }
body .site-topbar #nav-auth-section .user-trigger .avatar-circle { background: transparent !important; color: #c2410c !important; font-size: 14px; box-shadow: none !important; }
body .site-topbar #nav-auth-section .user-email-text,
body .site-topbar #nav-auth-section .user-trigger .chevron-icon { display: none !important; }
body .site-topbar #nav-auth-section .dropdown-menu {
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: #fed7aa !important;
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 160px);
    overflow-y: auto;
    right: 0;
    left: auto;
    box-shadow: 0 22px 54px rgb(124 45 18 / 18%) !important;
}
body .site-topbar #nav-auth-section .dropdown-header {
    border-bottom: 1px solid #ffedd5;
}
body .site-topbar #nav-auth-section .dropdown-header .avatar-circle {
    background: #f97316 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgb(249 115 22 / 20%) !important;
}
body .site-topbar #nav-auth-section .header-label {
    color: #64748b !important;
}
body .site-topbar #nav-auth-section .header-email {
    color: #1e293b !important;
}
body .site-topbar #nav-auth-section .user-menu-card {
    border-color: #fdba74 !important;
    background: #fff7ed !important;
    background-image: none !important;
}
body .site-topbar #nav-auth-section .user-menu-card-label {
    color: #64748b !important;
}
body .site-topbar #nav-auth-section .user-menu-card-value {
    color: #c2410c !important;
    font-variant-numeric: tabular-nums;
}
body .site-topbar #nav-auth-section .user-menu-card-btn {
    background: #f97316 !important;
    color: #ffffff !important;
    border: 1px solid #f97316 !important;
    box-shadow: 0 8px 18px rgb(249 115 22 / 18%);
}
body .site-topbar #nav-auth-section .user-menu-card-btn:hover {
    background: #ea580c !important;
    border-color: #ea580c !important;
}
body .site-topbar #nav-auth-section .menu-item {
    color: #1e293b !important;
}
body .site-topbar #nav-auth-section .menu-item svg {
    color: #475569 !important;
}
body .site-topbar #nav-auth-section .menu-item:hover {
    background: #fff7ed !important;
    color: #c2410c !important;
}
body .site-topbar #nav-auth-section .menu-item:hover svg,
body .site-topbar #nav-auth-section .menu-item.logout:hover,
body .site-topbar #nav-auth-section .menu-item.logout:hover svg {
    color: #ea580c !important;
}
body .site-topbar #nav-auth-section :is(.user-trigger, .user-menu-card-btn, .menu-item):focus-visible {
    outline: 3px solid rgb(249 115 22 / 32%);
    outline-offset: 2px;
}
body.orange-white-page .profile-page-panel,
body.orange-white-page .panel { border-color: #e2e8f0 !important; border-radius: 20px !important; box-shadow: 0 2px 4px rgb(15 23 42 / 4%) !important; }
body.orange-white-page .profile-balance-card .user-menu-card-btn { background: #f97316 !important; color: #ffffff !important; border-radius: 999px !important; }

/* Article highlight panels stay readable in the same orange-and-white system. */
body.orange-white-page .feature-box {
    border: 1px solid #fed7aa !important;
    background: #ffffff !important;
    box-shadow: 0 18px 42px rgb(124 45 18 / 10%) !important;
}
body.orange-white-page .feature-box > div {
    background: #fff7ed !important;
    color: #1e293b !important;
}
body.orange-white-page .feature-box h3 {
    color: #c2410c !important;
}
body.orange-white-page .feature-box li,
body.orange-white-page .feature-box li span {
    color: #334155 !important;
}
body.orange-white-page .feature-box li i {
    color: #f97316 !important;
}
@media (min-width: 1200px) { body .site-topbar .mobile-menu-trigger { display: none !important; } }
@media (max-width: 1199px) {
    body .site-topbar > div { grid-template-columns: 44px minmax(0, 1fr); min-height: 128px !important; gap: 8px 12px !important; padding: 12px 16px; }
    body .site-topbar .mobile-menu-trigger { display: inline-flex !important; justify-content: center; align-items: center; width: 44px; height: 44px; }
    body .site-topbar .site-primary-nav { display: none !important; }
    body .site-topbar .site-image-brand,
    body .site-topbar .reference-header-brand { justify-self: end; max-width: 100%; }
    body .site-topbar #nav-auth-section { grid-column: 1 / -1; max-width: 100%; }
    body .mobile-drawer { top: 128px !important; }
}
@media (max-width: 420px) {
    body .site-topbar #nav-auth-section .lang-trigger-label { display: none !important; }
    body .site-topbar #nav-auth-section .lang-trigger,
    body .site-topbar #nav-auth-section .recharge-btn,
    body .site-topbar #nav-auth-section .balance-btn { padding-inline: 8px !important; }
}

/* Homepage phone header: one calm row from narrow phones through 768px. */
@media (max-width: 768px) {
    body.reference-homepage {
        overflow-x: clip;
    }

    body.reference-homepage .site-topbar > div {
        display: grid !important;
        grid-template-columns: 44px minmax(0, 1fr) 52px !important;
        grid-template-rows: 64px !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        min-height: 84px !important;
        height: 84px !important;
        padding: 10px 12px !important;
    }

    body.reference-homepage .site-topbar .mobile-menu-trigger {
        grid-column: 1 !important;
        grid-row: 1 !important;
        justify-self: start !important;
        width: 44px !important;
        height: 44px !important;
        border: 1px solid #fed7aa !important;
        border-radius: 999px !important;
        background: #fff7ed !important;
        color: #ea580c !important;
    }

    body.reference-homepage .site-topbar .reference-header-brand {
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-self: center !important;
        width: min(220px, 100%) !important;
        height: 54px !important;
        min-height: 54px !important;
        max-width: 220px !important;
    }

    body.reference-homepage .site-topbar .reference-header-logo {
        width: 100% !important;
        height: 52px !important;
        object-fit: contain !important;
        object-position: center !important;
    }

    body.reference-homepage .site-topbar .site-primary-nav {
        display: none !important;
    }

    body.reference-homepage .site-topbar #nav-auth-section {
        grid-column: 3 !important;
        grid-row: 1 !important;
        justify-self: end !important;
        width: 52px !important;
        max-width: 52px !important;
        overflow: visible !important;
    }

    body.reference-homepage .site-topbar #nav-auth-section .nav-user-tools {
        width: 52px !important;
        justify-content: flex-end !important;
        gap: 0 !important;
    }

    body.reference-homepage .site-topbar #nav-auth-section .nav-user-tools > :not(.nav-language-wrap) {
        display: none !important;
    }

    body.reference-homepage .site-topbar #nav-auth-section .lang-trigger {
        display: inline-flex !important;
        width: 48px !important;
        min-width: 48px !important;
        height: 48px !important;
        min-height: 48px !important;
        justify-content: center !important;
        padding: 0 6px !important;
        border-radius: 15px !important;
    }

    body.reference-homepage .site-topbar #nav-auth-section .lang-trigger-label,
    body.reference-homepage .site-topbar #nav-auth-section .lang-trigger .chevron-icon {
        display: none !important;
    }

    body.reference-homepage .homepage-shell {
        padding-top: 100px !important;
    }

    body.reference-homepage .mobile-drawer {
        top: 84px !important;
    }
}
