* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; display: flex; flex-direction: column; color: #1e293b; background: #f4f6f9; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 20px; background: #fff; border-bottom: 1px solid #e1e6eb; }
.logo-area { display: flex; align-items: center; gap: 8px; color: #1a202c; font-size: 18px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.logo-area span, .footer-brand span { color: #2563eb; }
.site-navigation, .nav-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.site-navigation a { padding: 8px 10px; border-radius: 7px; color: #475569; font-size: 13px; font-weight: 700; text-decoration: none; }
.site-navigation a:hover, .site-navigation a[aria-current="page"] { color: #1d4ed8; background: #eff6ff; }
.currency-select-label { color: #64748b; font-size: 12px; }
.currency-select { flex: 0 1 132px; width: 132px; min-width: 105px; max-width: 30vw; padding: 6px 7px; border: 1px solid #cbd5e1; border-radius: 6px; color: #334155; background: #fff; font-size: 12px; }
.balance-box { padding: 7px 12px; border: 1px solid #e2e8f0; border-radius: 8px; color: #15803d; background: #f8fafc; font-size: 12px; font-weight: 700; }
.referral-link-box { display: flex; align-items: center; gap: 5px; padding: 4px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; }
.referral-link-box input { width: 140px; padding: 5px; border: 0; background: transparent; color: #1e3a8a; }
button, .btn { cursor: pointer; }
.hidden, [hidden] { display: none !important; }
main, .page-content { width: min(1120px, calc(100% - 32px)); margin: 30px auto; flex: 1; }
.account-card { margin-bottom: 16px; padding: 20px; border: 1px solid #e1e6eb; border-radius: 12px; background: #fff; box-shadow: 0 4px 16px #0f172a0b; }
.account-card h2, .account-card h3 { margin: 0 0 12px; }
.account-table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 11px 12px; border-bottom: 1px solid #e8edf3; font-size: 13px; }
th { color: #64748b; background: #f8fafc; font-size: 11px; text-transform: uppercase; }
.page-notice { margin: 24px auto; padding: 20px; border: 1px solid #dbeafe; border-radius: 12px; color: #1e3a8a; background: #eff6ff; }
.inactive-account-warning { margin: 12px 0; padding: 12px 14px; border: 1px solid #fdba74; border-radius: 9px; color: #9a3412; background: #fff7ed; font-size: 13px; line-height: 1.5; }
.page-footer { margin-top: 40px; padding: 28px 20px; color: #cbd5e1; background: #101827; }
.page-footer-inner { width: min(1120px, 100%); margin: auto; }
.page-footer a { color: #bfdbfe; text-decoration: none; }
.page-footer-links { display: flex; flex-wrap: wrap; gap: 16px; margin: 12px 0; }
.page-footer-bottom { padding-top: 12px; border-top: 1px solid #293548; color: #8290a5; font-size: 12px; }
.page-description { color: #64748b; font-size: 14px; line-height: 1.6; }
.topup-dashboard { max-width: 880px; color: #e2e8f0; }
.topup-dashboard .account-card { color: #e2e8f0; background: #101827; border-color: #253247; }
.topup-dashboard h2, .topup-dashboard h3 { color: #f8fafc; }
.topup-heading { display: flex; justify-content: space-between; gap: 14px; }
.topup-muted, .topup-rate { color: #94a3b8; font-size: 13px; line-height: 1.6; }
.topup-balance-card { margin: 18px 0; padding: 18px; border: 1px solid #27435c; border-radius: 14px; background: #102033; }
.topup-balance-value { display: block; color: #f8fafc; font-size: 32px; }
.topup-dashboard input, .topup-dashboard select { width: 100%; padding: 11px; border: 1px solid #344256; border-radius: 8px; color: #e2e8f0; background: #0b1220; }
.topup-stepper { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.topup-stepper button, .topup-step-actions button { padding: 10px 14px; border: 1px solid #334155; border-radius: 9px; color: #e2e8f0; background: #111c2c; }
.topup-step-panel[hidden] { display: none !important; }
.topup-step-title { color: #f8fafc; }
.topup-step-intro { color: #94a3b8; font-size: 13px; }
.topup-amount-wrap { display: flex; align-items: center; gap: 10px; }
.topup-amount-wrap input { flex: 1; }
.topup-amount-currency { color: #67e8f9; }
.topup-currency-switch { margin-top: 9px; border: 0; color: #67e8f9; background: transparent; }
.topup-estimate, .topup-allpay-warning { padding: 10px; border-radius: 8px; color: #cbd5e1; background: #0b1725; }
.topup-allpay-warning { border: 1px solid #854d0e; color: #fde68a; background: #42200666; }
.topup-method-grid { display: grid; gap: 10px; margin: 10px 0; }
.topup-method-card { padding: 14px; border: 1px solid #344256; border-radius: 12px; color: #e2e8f0; background: #0b1220; text-align: left; }
.topup-method-card[aria-pressed="true"] { border-color: #22d3ee; background: #08334488; }
.topup-method-icon svg { width: 20px; height: 20px; }
.topup-method-title, .topup-method-description, .topup-payment-brands { display: block; margin-top: 8px; }
.topup-payment-brands span { margin-right: 7px; }
.topup-review { display: grid; gap: 9px; }
.topup-review-row { display: flex; justify-content: space-between; gap: 10px; }
.topup-error { color: #fca5a5; }
.topup-step-actions { display: flex; justify-content: space-between; margin-top: 18px; }
.topup-step-actions .topup-next { color: #06202b; background: #67e8f9; font-weight: 800; }
.topup-progress { display: flex; gap: 9px; padding: 12px; color: #a5f3fc; }
.topup-checkout-fallback { display: block; margin: 10px 0; color: #67e8f9; }
.topup-history { margin-top: 16px; }
.topup-history summary { cursor: pointer; font-weight: 750; }
.crypto-payment-dialog { max-width: min(560px, calc(100% - 24px)); margin: auto; padding: 20px; border: 1px solid #334155; border-radius: 14px; }
.auth-dialog { width: min(440px, calc(100% - 28px)); max-width: calc(100% - 28px); max-height: min(90vh, 680px); margin: auto; padding: 0; overflow: auto; border: 1px solid #dbe3ee; border-radius: 16px; color: #1e293b; background: #fff; box-shadow: 0 24px 80px #0f172a44; }
.auth-dialog::backdrop { background: #0f172a99; backdrop-filter: blur(3px); }
.auth-dialog-content { display: grid; gap: 14px; padding: 24px; }
.auth-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-dialog-heading h2 { margin: 0; color: #0f172a; font-size: 21px; }
.auth-dialog-heading > button { display: grid; width: 36px; height: 36px; place-items: center; padding: 0; border: 0; border-radius: 9px; color: #475569; background: #f1f5f9; font-size: 21px; }
.auth-dialog form { display: grid; gap: 8px; }
.auth-dialog form label { display: block; margin-top: 3px; color: #334155; font-size: 13px; font-weight: 700; }
.auth-dialog form input { width: 100%; min-height: 43px; margin: 0; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; color: #0f172a; background: #fff; font: inherit; font-size: 14px; }
.auth-dialog form input:focus { border-color: #2563eb; outline: 3px solid #2563eb22; }
.auth-dialog form [role="alert"] { min-height: 1.2em; margin: 0; color: #b91c1c; font-size: 12px; }
.auth-dialog form button[type="submit"] { min-height: 44px; margin-top: 3px; padding: 10px 14px; border: 0; border-radius: 8px; color: #fff; background: #2563eb; font-size: 14px; font-weight: 750; }
.auth-dialog form button[type="submit"]:hover { background: #1d4ed8; }
.auth-dialog-content > p { margin: 0; color: #64748b; font-size: 13px; }
.auth-dialog-content > p button { padding: 0; border: 0; color: #2563eb; background: transparent; font: inherit; font-weight: 700; }
.auth-dialog button:focus-visible { outline: 3px solid #2563eb55; outline-offset: 2px; }
.crypto-payment-header { display: flex; justify-content: space-between; gap: 10px; }
.crypto-payment-summary { display: flex; gap: 20px; flex-wrap: wrap; margin: 16px 0; }
.crypto-payment-summary span, .crypto-payment-summary strong { display: block; }
.crypto-payment-address { display: block; overflow-wrap: anywhere; padding: 12px; background: #f1f5f9; }
.crypto-payment-warning { padding: 10px; color: #92400e; background: #fef3c7; }
.footer-dialog { max-width: min(560px, calc(100% - 24px)); margin: auto; padding: 20px; border: 0; border-radius: 14px; }
.support-launcher { position: fixed; right: 20px; bottom: 20px; z-index: 30; border: 0; border-radius: 50%; padding: 16px; color: #fff; background: #2563eb; }
.support-widget { position: fixed; right: 20px; bottom: 82px; z-index: 29; width: min(370px, calc(100vw - 28px)); padding: 14px; border: 1px solid #cbd5e1; border-radius: 12px; background: #fff; }
.support-thread { max-height: 250px; overflow: auto; }
.support-composer textarea { width: 100%; }
.account-service-tabs { display: flex; gap: 8px; margin: 0 0 14px; }
.account-service-tabs a { padding: 9px 12px; border: 1px solid #bfdbfe; border-radius: 8px; color: #1d4ed8; background: #eff6ff; font-size: 13px; font-weight: 750; text-decoration: none; }
.rental-dashboard { max-width: 860px; }
.rental-form { display: grid; gap: 10px; }
.rental-form > label { color: #334155; font-size: 13px; font-weight: 700; }
.rental-form > select { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #cbd5e1; border-radius: 8px; color: #0f172a; background: #fff; }
.rental-form fieldset { margin: 4px 0; padding: 12px; border: 1px solid #e2e8f0; border-radius: 9px; }
.rental-form legend { padding: 0 5px; color: #334155; font-size: 13px; font-weight: 700; }
.rental-service-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; max-height: 300px; overflow: auto; }
.rental-service-option { display: flex; align-items: flex-start; gap: 9px; padding: 9px; border: 1px solid #e2e8f0; border-radius: 8px; color: #334155; background: #fff; font-size: 13px; }
.rental-service-option input { margin-top: 2px; accent-color: #2563eb; }
.rental-price { min-height: 24px; color: #0f172a; font-weight: 750; }
.password-change-form { display: grid; max-width: 520px; gap: 9px; }
.password-change-form label { color: #334155; font-size: 13px; font-weight: 700; }
.password-change-form input { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #cbd5e1; border-radius: 8px; }
.password-change-form button { justify-self: start; margin-top: 5px; }
.password-change-form [role="status"] { min-height: 1.25em; margin: 0; color: #15803d; font-size: 13px; }
.password-change-form [role="status"].is-error { color: #dc2626; }
.rental-badge { display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.rental-badge-active { color: #166534; background: #dcfce7; }
.rental-badge-pending { color: #92400e; background: #fef3c7; }
.rental-badge-inactive { color: #475569; background: #e2e8f0; }
.rental-action { margin: 2px 4px 2px 0; padding: 6px 9px; font-size: 12px; }
.rental-sms-panel { border-color: #bfdbfe; }
.rental-sms-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.rental-message-list { display: grid; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.rental-message-list li { padding: 12px; border: 1px solid #e2e8f0; border-radius: 9px; background: #f8fafc; overflow-wrap: anywhere; }
.rental-message-list p { margin: 7px 0 0; white-space: pre-wrap; }
.proxy-landing { max-width: 820px; }
.proxy-eyebrow { margin-bottom: 6px; color: #2563eb; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.proxy-service-notice { margin: 18px 0; padding: 16px; border: 1px solid #fde68a; border-radius: 10px; color: #78350f; background: #fffbeb; }
.proxy-service-notice p { margin: 6px 0 0; font-size: 13px; line-height: 1.6; }
@media (max-width: 800px) {
  header { flex-wrap: wrap; }
  .site-navigation { order: 3; width: 100%; justify-content: center; }
  .nav-actions { justify-content: center; }
  main, .page-content { width: min(100% - 20px, 720px); margin-top: 18px; }
}
