:root {
  --account-navy: #0b1930;
  --account-navy-soft: #132743;
  --account-blue: #246bfd;
  --account-blue-dark: #1555d6;
  --account-teal: #12a594;
  --account-bg: #f3f6fa;
  --account-line: #dfe6ef;
  --account-text: #132238;
  --account-muted: #718096;
}

html { height: auto !important; min-height: 100%; overflow-x: hidden; overflow-y: auto !important; }
.account-body { min-height: 100vh; height: auto; overflow-x: hidden; overflow-y: visible !important; background: var(--account-bg); color: var(--account-text); font-family: Inter, "Microsoft YaHei", Arial, sans-serif; }
.account-topbar { height: 68px; display: flex; align-items: center; padding: 0 max(28px, calc((100vw - 1240px) / 2)); background: var(--account-navy); border: 0; box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.account-brand { gap: 11px; }
.account-brand .brand-mark.small { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(145deg, #3a8cff, #1d5ee2); box-shadow: 0 8px 22px rgba(28,101,231,.3); font-size: 19px; }
.account-brand strong { font-size: 14px; letter-spacing: .2px; }
.account-brand small { margin-top: 2px; color: #9eb0c7; font-size: 10px; opacity: 1; }
.account-nav { height: 100%; gap: 8px; margin-left: 42px; }
.account-nav a { height: 100%; display: inline-flex; align-items: center; padding: 0 14px; color: #aebed1; font-size: 13px; font-weight: 700; border: 0; }
.account-nav a.active { color: #fff; border: 0; box-shadow: inset 0 -2px 0 #4c91ff; }
.top-account { gap: 14px; color: #fff; }
.top-account strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.account-secure-dot { display: inline-flex; align-items: center; gap: 7px; color: #9eb0c7; font-size: 11px; }
.account-secure-dot::before { width: 7px; height: 7px; border-radius: 50%; background: #22c79a; box-shadow: 0 0 0 4px rgba(34,199,154,.12); content: ""; }
.account-page { width: min(1160px, calc(100% - 40px)); margin: 40px auto; }

.auth-view { min-height: calc(100dvh - 150px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(400px, .75fr); place-items: stretch; overflow: hidden; border: 1px solid var(--account-line); border-radius: 24px; background: #fff; box-shadow: 0 24px 70px rgba(17,39,72,.1); }
.auth-showcase { position: relative; overflow: hidden; padding: 68px 64px; background: linear-gradient(145deg, #0a1930 0%, #102c50 62%, #174170 100%); color: #fff; }
.auth-showcase::before, .auth-showcase::after { position: absolute; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; content: ""; }
.auth-showcase::before { width: 380px; height: 380px; right: -180px; top: -160px; }
.auth-showcase::after { width: 260px; height: 260px; right: -80px; bottom: -140px; }
.auth-eyebrow { color: #72aaff; font-size: 11px; font-weight: 800; letter-spacing: 1.8px; }
.auth-showcase h1 { max-width: 520px; margin: 18px 0 18px; font-size: clamp(30px, 3vw, 43px); line-height: 1.28; letter-spacing: -.8px; }
.auth-showcase > p { max-width: 500px; margin: 0; color: #b7c7d9; font-size: 14px; line-height: 1.8; }
.auth-benefits { display: grid; gap: 17px; margin-top: 46px; }
.auth-benefits > div { display: flex; align-items: center; gap: 13px; }
.auth-benefits i { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(83,166,255,.4); border-radius: 50%; background: rgba(52,130,235,.13); color: #79b5ff; font-style: normal; }
.auth-benefits strong, .auth-benefits small { display: block; }
.auth-benefits strong { font-size: 13px; }
.auth-benefits small { margin-top: 3px; color: #93a9c1; font-size: 11px; }
.auth-panel { width: auto; padding: 64px 54px; border-radius: 0; box-shadow: none; }
.single-auth-panel { margin: 0; }
.auth-heading { margin-bottom: 30px; text-align: left; }
.auth-heading > span { color: var(--account-blue); font-size: 11px; font-weight: 800; letter-spacing: 1px; }
.auth-heading h1 { margin: 8px 0 8px; color: var(--account-text); font-size: 28px; }
.auth-heading p { color: var(--account-muted); font-size: 13px; }
.auth-form { gap: 18px; }
.auth-form label, .recharge-form label { color: #34445a; font-size: 12px; font-weight: 700; }
.auth-form input { height: 46px; margin-top: 8px; padding: 0 13px; border: 1px solid #cfd9e6; border-radius: 9px; background: #fbfcfe; font-size: 13px; transition: .18s ease; }
.auth-form input:focus, .money-input:focus-within { border-color: #6ba0ff; box-shadow: 0 0 0 3px rgba(36,107,253,.1); outline: none; }
.auth-form button, .recharge-form > button { height: 46px; border-radius: 9px; background: var(--account-blue); box-shadow: 0 8px 20px rgba(36,107,253,.2); color: #fff; font-size: 13px; font-weight: 800; }
.auth-form button:hover, .recharge-form > button:hover { background: var(--account-blue-dark); }
.auth-switch { margin-top: 24px; color: var(--account-muted); font-size: 12px; }

.wallet-view { grid-template-columns: 270px minmax(0, 1fr); gap: 22px; }
.wallet-sidebar { top: 92px; gap: 14px; }
.wallet-user-card, .wallet-help-card, .wallet-panel { border: 1px solid var(--account-line); background: #fff; box-shadow: 0 14px 38px rgba(20,42,80,.06); }
.wallet-user-card { gap: 7px; padding: 24px; border-radius: 16px; }
.wallet-avatar { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 8px; border-radius: 12px; background: #e9f1ff; color: var(--account-blue); font-size: 17px; font-weight: 900; }
.wallet-user-card > span, .wallet-user-card > small { color: var(--account-muted); font-size: 11px; }
.wallet-user-card > strong { overflow: hidden; color: #203149; font-size: 14px; text-overflow: ellipsis; }
.wallet-user-card > b { margin: 3px 0 5px; color: var(--account-navy); font-size: 25px; font-variant-numeric: tabular-nums; letter-spacing: -.4px; }
.wallet-account-state { display: flex; align-items: center; gap: 7px; color: #43806e; font-size: 11px; }
.wallet-account-state i, .pay-method-status i { width: 7px; height: 7px; border-radius: 50%; background: #1eb68c; }
.logout-small { min-width: 0; height: 32px; margin-top: 12px; padding: 0 13px; border: 1px solid #dbe3ed; border-radius: 7px; background: #fff; box-shadow: none; color: #52647a; font-size: 11px; font-weight: 700; }
.logout-small:hover { border-color: #bfcbd9; background: #f8fafc; }
.wallet-help-card { padding: 17px 18px; border-radius: 14px; }
.wallet-help-card strong { font-size: 12px; }
.wallet-help-card p { margin: 7px 0 0; color: var(--account-muted); font-size: 10px; line-height: 1.65; }
.wallet-panel { padding: 28px 32px 34px; border-radius: 16px; }
.wallet-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid #edf1f5; }
.wallet-panel-heading span { color: var(--account-blue); font-size: 10px; font-weight: 800; letter-spacing: 1.2px; }
.wallet-panel-heading h1 { margin: 5px 0 4px; font-size: 22px; }
.wallet-panel-heading p { margin: 0; color: var(--account-muted); font-size: 11px; }
.wallet-currency { min-width: 92px; padding: 10px 13px; border: 1px solid #e1e7ef; border-radius: 10px; background: #f8fafc; text-align: right; }
.wallet-currency small, .wallet-currency strong { display: block; }
.wallet-currency small { color: var(--account-muted); font-size: 9px; }
.wallet-currency strong { margin-top: 3px; font-size: 13px; }
.wallet-tabs { display: flex; gap: 24px; margin: 6px 0 22px; border-bottom: 1px solid #e8edf3; }
.wallet-tab { width: auto; height: 48px; padding: 0 3px; border: 0; color: #718096; font-size: 12px; font-weight: 700; }
.wallet-tab.active { color: var(--account-blue); border: 0; box-shadow: inset 0 -2px 0 var(--account-blue); }
.referral-earn-tab { display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: #245fc6; }
.referral-earn-tab em { padding: 4px 7px; border-radius: 5px; background: #fff0a6; color: #9b3c05; font-size: 9px; font-style: normal; font-weight: 900; line-height: 1; }
.referral-earn-tab.active em { background: #246bfd; color: #fff; }
#referral-tab { flex: 0 0 auto; align-self: center; height: 46px; margin-left: 14px; padding: 0 14px 0 17px; border: 1px solid #1658d5; border-radius: 10px; background: linear-gradient(135deg,#2e78ff,#1d5fdf); box-shadow: 0 8px 20px rgba(36,107,253,.27); color: #fff; cursor: pointer; font-size: 14px; font-weight: 900; transition: box-shadow .16s ease, transform .16s ease, filter .16s ease; }
#referral-tab::before { display: none; content: none; }
#referral-tab span { font-style: normal; white-space: nowrap; }
#referral-tab em { margin-left: 10px; padding: 5px 10px; border-radius: 6px; background: #ffef9f; color: #9b3c05; font-size: 12px; font-style: normal; font-weight: 900; line-height: 1; white-space: nowrap; }
#referral-tab > i { width: 32px; height: 32px; display: inline-grid; flex: 0 0 32px; place-items: center; margin-left: 11px; padding: 0; border: 2px solid #ffe788; border-radius: 50%; background: linear-gradient(180deg,#ffbd2f 0%,#ff8b20 58%,#ffb322 100%); box-shadow: inset 0 0 0 2px rgba(255,224,87,.72), inset 0 3px 5px rgba(255,255,255,.45), 0 2px 5px rgba(104,47,0,.22); color: #fff; font-size: 11px; font-style: normal; font-weight: 950; letter-spacing: -.3px; line-height: 1; text-shadow: 0 1px 1px rgba(126,54,0,.35); }
#referral-tab:hover { filter: brightness(1.06); box-shadow: 0 10px 24px rgba(36,107,253,.34); transform: translateY(-1px); }
#referral-tab:active { box-shadow: 0 5px 13px rgba(36,107,253,.22); transform: translateY(0); }
#referral-tab.active { border-color: #124ebd; background: linear-gradient(135deg,#246bfd,#174db8); box-shadow: 0 8px 20px rgba(36,107,253,.3); color: #fff; }
.pay-method-card { gap: 22px; padding: 22px; border: 1px solid #dfe6ef; border-radius: 14px; background: #fff; }
.pay-method-head { gap: 13px; padding-bottom: 18px; border-bottom: 1px solid #edf1f5; }
.pay-method-card > .pay-method-head { display: none; }
.pay-icon { width: 40px; height: 40px; border-radius: 10px; background: #1677ff; font-size: 19px; }
.pay-method-head > div { min-width: 0; }
.pay-method-label { display: block; margin-bottom: 2px; color: var(--account-blue); font-size: 9px; font-weight: 800; }
.pay-method-head strong { font-size: 14px; }
.pay-method-head small { margin-top: 3px; color: var(--account-muted); font-size: 10px; }
.pay-method-status { margin-left: auto; display: flex; align-items: center; gap: 6px; color: #43806e; font-size: 10px; }
.recharge-form { grid-template-columns: minmax(0, 1fr) minmax(220px, .72fr); gap: 16px 18px; align-items: end; }
.payment-provider-grid { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-start; gap: 8px; }
.payment-provider { width: 176px !important; height: 44px !important; display: flex; align-items: center; justify-content: flex-start; gap: 8px; padding: 6px 9px !important; border: 1px solid #dbe4ef !important; border-radius: 9px !important; background: #fff !important; box-shadow: none !important; color: #253b57 !important; text-align: left; }
.payment-provider > i { width: 28px; height: 28px; display: grid; flex: 0 0 28px; place-items: center; border-radius: 8px; background: #1677ff; color: #fff; font-size: 14px; font-style: normal; font-weight: 900; }
.payment-provider > i.usdt-icon { overflow: visible; background: transparent; }
.payment-provider > i.usdt-icon img { width: 31px; height: 31px; display: block; }
.payment-provider span,.payment-provider b,.payment-provider small { display: block; }
.payment-provider b { font-size: 11px; }
.payment-provider small { margin-top: 2px; color: #7a899c; font-size: 8px; }
.payment-provider.active { border-color: #246bfd !important; background: #f3f7ff !important; box-shadow: 0 0 0 2px rgba(36,107,253,.1) !important; }
.payment-referral-shortcut { width: 240px !important; height: 44px !important; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 12px !important; border: 1px solid #1658d5 !important; border-radius: 9px !important; background: linear-gradient(135deg,#2e78ff,#1d5fdf) !important; box-shadow: 0 7px 16px rgba(36,107,253,.22) !important; color: #fff !important; font-size: 11px; font-weight: 900; }
.payment-referral-shortcut em { padding: 5px 9px; border-radius: 6px; background: #ffef9f; color: #9b3c05; font-size: 10px; font-style: normal; font-weight: 900; line-height: 1; }
.payment-referral-shortcut i { width: 27px; height: 27px; display: grid; place-items: center; border: 2px solid #ffe788; border-radius: 50%; background: linear-gradient(180deg,#ffbd2f,#ff8b20); color: #fff; font-size: 9px; font-style: normal; font-weight: 950; }
.quick-amount-section { grid-column: 1 / -1; }
.quick-amount-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.quick-amount-heading span { color: #34445a; font-size: 12px; font-weight: 800; }
.quick-amount-heading small { color: var(--account-muted); font-size: 9px; font-weight: 700; }
.quick-amount-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; }
.quick-amount { appearance: none; position: relative; min-width: 0; height: 60px; display: flex; align-items: center; justify-content: center; gap: 3px; border: 1px solid #d8e1ec !important; border-radius: 10px; background: #fff !important; box-shadow: none !important; color: #263b57 !important; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease; }
.quick-amount:hover { border-color: #91b4f7 !important; background: #f6f9ff !important; transform: translateY(-1px); }
.quick-amount.active { border-color: var(--account-blue) !important; background: linear-gradient(145deg, #3179ff, #246bfd) !important; box-shadow: 0 7px 18px rgba(36,107,253,.18) !important; color: #fff !important; }
.quick-amount span { font-size: 11px; font-weight: 800; line-height: 1; }
.quick-amount b { font-size: 19px; font-variant-numeric: tabular-nums; line-height: 1; }
.quick-amount-bonus > span, .quick-amount-bonus > b { transform: translateX(-30px); }
.quick-amount em { position: absolute; top: 50%; right: 9px; min-width: 86px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.78); border-radius: 999px; background: linear-gradient(135deg, #ff7a18, #f04438); box-shadow: 0 5px 13px rgba(240,68,56,.3); color: #fff; font-family: "Microsoft YaHei", Arial, sans-serif; font-size: 15px; line-height: 1; font-style: normal; font-weight: 600; letter-spacing: 0; white-space: nowrap; transform: translateY(-50%); }
.quick-amount em.bonus-none { border-color: #dce3eb; background: #eef2f6; box-shadow: none; color: #7b899b; font-size: 12px; }
.quick-amount.active em { border-color: rgba(255,255,255,.9); box-shadow: 0 4px 12px rgba(132,31,20,.3); }
.quick-amount-custom { flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0 !important; text-align: center; }
.quick-amount-custom:not(.active) { border-style: dashed !important; background: #f8fafc !important; }
.quick-amount-custom b { display: block; margin: 0; font-size: 12px; line-height: 1.15; transform: none; }
.quick-amount-custom small { display: block; margin: 0; color: var(--account-muted); font-size: 8px; line-height: 1.15; }
.quick-amount-custom.active small { color: rgba(255,255,255,.78); }
.custom-amount-field[hidden] { display: none !important; }
.custom-amount-field:not([hidden]) { animation: customAmountReveal .16s ease-out; }
@keyframes customAmountReveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.custom-amount-field[hidden] + .rate-hint { grid-column: 1 / -1; grid-template-columns: 1fr auto 1fr auto; min-height: 56px; align-items: center; }
.recharge-form label > span { display: block; margin-bottom: 8px; }
.money-input { height: 48px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid #cad5e2; border-radius: 9px; background: #fbfcfe; }
.money-input b { color: #1c2f48; font-size: 17px; }
.money-input input { width: 100%; height: auto; padding: 0; border: 0; outline: 0; background: transparent; font-size: 16px; font-weight: 700; }
.money-input em { color: var(--account-muted); font-size: 10px; font-style: normal; font-weight: 700; }
.rate-hint { min-height: 70px; grid-template-columns: 1fr auto; gap: 5px 12px; padding: 11px 13px; border: 1px solid #e0e7ef; border-radius: 9px; background: #f7f9fc; }
.rate-hint span, .rate-hint small { color: var(--account-muted); font-size: 9px; }
.rate-hint b { font-size: 11px; }
.rate-hint strong { justify-self: end; color: var(--account-teal); font-size: 16px; font-variant-numeric: tabular-nums; }
.recharge-form > button { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 10px; }
.recharge-form > button span { font-size: 16px; }
.payment-assurance { display: flex; flex-wrap: wrap; gap: 10px 18px; padding-top: 3px; color: #7d8da1; font-size: 9px; }
.payment-assurance span { display: flex; align-items: center; gap: 6px; }
.payment-assurance span::before { color: var(--account-teal); content: "✓"; font-weight: 900; }
.empty-history { min-height: 260px; border: 1px dashed #cfd9e6; border-radius: 14px; background: #fbfcfe; }
.empty-history strong { font-size: 16px; }
.wallet-history-list { display: grid; gap: 9px; }
.wallet-history-item { min-height: 74px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #e1e7ef; border-radius: 11px; background: #fff; }
.history-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #edf4ff; color: #246bfd; font-size: 12px; font-weight: 900; }
.history-refund .history-icon { background: #e9f9f3; color: #0b8b64; }
.history-purchase .history-icon { background: #f2f4f7; color: #5f6f83; }
.history-adjustment .history-icon { background: #fff5e8; color: #bf6b14; }
.history-main, .history-side { min-width: 0; display: flex; flex-direction: column; }
.history-main { gap: 3px; }
.history-main strong { color: #203149; font-size: 12px; }
.history-main small, .history-main time, .history-side small { color: var(--account-muted); font-size: 9px; }
.history-main time { font-variant-numeric: tabular-nums; }
.history-side { align-items: flex-end; gap: 5px; }
.history-side b { font-size: 13px; font-variant-numeric: tabular-nums; }
.history-side b.positive { color: #0b996f; }
.history-side b.negative { color: #273b56; }
.referral-pane { padding-top: 22px; }
.referral-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 28px; border-radius: 16px; background: linear-gradient(125deg,#102a52,#1f65d8); color: #fff; box-shadow: 0 14px 32px rgba(24,78,169,.18); }
.referral-hero span { color: #8fc6ff; font-size: 10px; font-weight: 800; letter-spacing: .8px; }
.referral-hero h2 { margin: 7px 0 6px; font-size: 21px; }
.referral-hero p { margin: 0; color: #edf5ff; font-size: 14px; font-weight: 600; line-height: 1.65; }
.withdrawal-demo { width: 360px; flex: 0 0 360px; padding: 2px 22px; border-left: 1px solid rgba(255,255,255,.16); border-right: 1px solid rgba(255,255,255,.16); box-sizing: border-box; }
.withdrawal-demo-title { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; color: #cfe2ff; font-size: 11px; font-weight: 800; }
.withdrawal-demo-title i { width: 6px; height: 6px; border-radius: 50%; background: #50e0a9; box-shadow: 0 0 0 4px rgba(80,224,169,.12); }
.withdrawal-demo-window { height: 128px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom,transparent 0,#000 10%,#000 90%,transparent 100%); mask-image: linear-gradient(to bottom,transparent 0,#000 10%,#000 90%,transparent 100%); }
.withdrawal-demo-track { animation: withdrawal-demo-scroll 340s linear infinite; will-change: transform; }
.withdrawal-demo-item { height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 14px; white-space: nowrap; }
.withdrawal-demo-item span { max-width: 175px; overflow: hidden; color: #fff; font-size: 12px; font-weight: 750; text-overflow: ellipsis; }
.withdrawal-demo-item b { color: #7bf0bd; font-size: 13px; font-variant-numeric: tabular-nums; }
@keyframes withdrawal-demo-scroll { to { transform: translateY(-3200px); } }
.referral-balance { min-width: 190px; padding-left: 24px; border-left: 1px solid rgba(255,255,255,.18); text-align: right; }
.referral-balance small { display: block; color: #c8daf2; font-size: 10px; }
.referral-balance strong { display: block; margin: 5px 0 10px; font-size: 27px; font-variant-numeric: tabular-nums; }
.referral-balance button,.invite-link-card button,.referral-withdraw-form button { border: 0; border-radius: 8px; font-size: 11px; font-weight: 800; cursor: pointer; }
.referral-balance button { height: 32px; padding: 0 16px; background: #fff; color: #1759c6; }
.referral-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 14px 0; }
.referral-stats > div { padding: 17px 20px; border: 1px solid var(--account-line); border-radius: 12px; background: #fff; }
.referral-stats small { display: block; color: var(--account-muted); font-size: 10px; }
.referral-stats strong { margin-right: 4px; color: var(--account-navy); font-size: 21px; }
.referral-stats span { color: var(--account-muted); font-size: 10px; }
.invite-link-card,.referral-withdraw-form { padding: 18px 20px; border: 1px solid var(--account-line); border-radius: 12px; background: #f8faff; }
.invite-link-card label,.referral-withdraw-form h3,.referral-records h3 { display: block; margin: 0 0 9px; color: var(--account-navy); font-size: 12px; font-weight: 800; }
.invite-link-card > div { display: flex; gap: 8px; }
.invite-link-card input { min-width: 0; flex: 1; height: 38px; padding: 0 12px; border: 1px solid #d9e3f1; border-radius: 8px; background: #fff; color: #40516a; font-size: 11px; }
.invite-link-card button { width: 88px; background: var(--account-blue); color: #fff; }
.invite-link-card small,.referral-withdraw-form p { color: var(--account-muted); font-size: 9px; }
.referral-withdraw-form { margin-top: 12px; }
.withdraw-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.withdraw-fields label { color: #34445a; font-size: 10px; font-weight: 700; }
.withdraw-fields input { width: 100%; height: 38px; margin-top: 6px; padding: 0 10px; border: 1px solid #d9e3f1; border-radius: 8px; background: #fff; box-sizing: border-box; }
.referral-withdraw-form button { height: 36px; padding: 0 18px; background: var(--account-blue); color: #fff; }
.withdraw-submit-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.referral-withdraw-message { min-height: 36px; display: flex; align-items: center; padding: 7px 12px; border-radius: 8px; box-sizing: border-box; font-size: 11px; font-weight: 700; }
.referral-withdraw-message[hidden] { display: none; }
.referral-withdraw-message.notice { border: 1px solid #bfe9d2; background: #eefbf4; color: #087443; }
.referral-withdraw-message.error { border: 1px solid #ffc9c9; background: #fff1f1; color: #c52a2a; }
.referral-records { margin-top: 18px; }
.history-referral .history-icon { background: #fff1e8; color: #ff6a2a; }
.referral-welcome-overlay { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(8,22,44,.58); backdrop-filter: blur(5px); }
.referral-welcome-overlay[hidden] { display: none; }
.referral-welcome-card { position: relative; width: min(440px,100%); padding: 31px 32px 28px; border: 1px solid rgba(255,255,255,.7); border-radius: 18px; background: #fff; box-shadow: 0 28px 80px rgba(7,27,61,.28); }
.referral-welcome-close { position: absolute; top: 12px; right: 13px; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: #f1f4f8; color: #607089; cursor: pointer; font-size: 20px; }
.referral-welcome-eyebrow { color: #246bfd; font-size: 10px; font-weight: 900; letter-spacing: 1px; }
.referral-welcome-card h2 { margin: 9px 0 9px; color: #112640; font-size: 23px; line-height: 1.35; }
.referral-welcome-card > p { margin: 0; color: #65758b; font-size: 13px; line-height: 1.75; }
.referral-welcome-points { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 20px 0; }
.referral-welcome-points span { padding: 11px 10px; border: 1px solid #dce8fc; border-radius: 9px; background: #f5f9ff; color: #24518e; font-size: 11px; font-weight: 800; text-align: center; }
.referral-welcome-actions { display: grid; grid-template-columns: .72fr 1.28fr; gap: 10px; }
.referral-welcome-actions button { height: 43px; border-radius: 9px; cursor: pointer; font-size: 12px; font-weight: 800; }
#referral-welcome-later { border: 1px solid #dce3ec; background: #fff; color: #69798e; }
#referral-welcome-open { border: 1px solid #185ad7; background: linear-gradient(135deg,#2f7aff,#1d5edc); box-shadow: 0 8px 18px rgba(36,107,253,.23); color: #fff; }
.crypto-pay-body { background: #eef3f9; }
.crypto-pay-shell { width: min(520px,calc(100% - 28px)); margin: 34px auto 70px; }
.crypto-pay-back { display: inline-flex; margin-bottom: 14px; color: #48627f; font-size: 12px; font-weight: 800; }
.crypto-pay-card { padding: 28px; border: 1px solid #dce5ef; border-radius: 20px; background: #fff; box-shadow: 0 22px 60px rgba(21,48,84,.12); }
.crypto-pay-heading { display: flex; align-items: center; gap: 13px; padding-bottom: 20px; border-bottom: 1px solid #e8edf3; }
.crypto-pay-heading > i { width: 52px; height: 52px; display: grid; flex: 0 0 52px; place-items: center; font-style: normal; }
.crypto-pay-heading > i img { width: 52px; height: 52px; display: block; }
.crypto-pay-heading span { color: #75859a; font-size: 10px; font-weight: 800; }
.crypto-pay-heading h1 { margin: 2px 0; color: #132238; font-size: 21px; }
.crypto-pay-heading p { margin: 0; color: #65758b; font-size: 11px; }
.crypto-pay-summary { padding: 25px 0 18px; text-align: center; }
.crypto-pay-summary span,.crypto-pay-summary em { display: block; color: #76869a; font-size: 11px; font-style: normal; }
.crypto-pay-summary strong { display: block; margin: 7px 0; color: #132238; font-size: 34px; font-variant-numeric: tabular-nums; }
.crypto-pay-summary strong small { color: #26a17b; font-size: 15px; }
.crypto-pay-qr { width: 198px; margin: 0 auto 22px; padding: 10px; border: 1px solid #dfe7ef; border-radius: 15px; background: #fff; }
.crypto-pay-qr img { width: 100%; display: block; }
.crypto-pay-field { position: relative; display: grid; gap: 5px; margin-top: 10px; padding: 12px 70px 12px 13px; border: 1px solid #e0e7ef; border-radius: 10px; background: #f8fafc; }
.crypto-pay-field span { color: #7b899a; font-size: 9px; }
.crypto-pay-field b { overflow-wrap: anywhere; color: #263b57; font-size: 11px; }
.crypto-pay-field button { position: absolute; top: 50%; right: 10px; width: auto; height: 30px; padding: 0 11px; border-radius: 7px; background: #e7f0ff; color: #246bfd; font-size: 10px; font-weight: 800; transform: translateY(-50%); }
.crypto-pay-warning { margin: 16px 0 10px; padding: 11px 12px; border-radius: 9px; background: #fff5ed; color: #b74c18; font-size: 10px; font-weight: 700; line-height: 1.6; }
.crypto-pay-countdown { margin: 14px 0 3px; color: #1a7f64; font-size: 13px; font-weight: 900; text-align: center; }
.crypto-pay-waiting { margin: 4px 0 0; color: #8795a6; font-size: 9px; text-align: center; }
.crypto-pay-success { padding: 48px 12px; text-align: center; }
.crypto-pay-success > b { width: 54px; height: 54px; display: grid; place-items: center; margin: auto; border-radius: 50%; background: #e6f7f1; color: #159570; font-size: 26px; }
.crypto-pay-success h2 { margin: 15px 0 7px; }
.crypto-pay-success p { color: #718096; font-size: 11px; }
.crypto-pay-success a,.crypto-pay-primary { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; margin-top: 12px; padding: 0 20px; border-radius: 9px; background: #246bfd; color: #fff; font-size: 11px; font-weight: 800; }
.crypto-pay-error { margin-top: 20px; padding: 14px; border-radius: 9px; background: #fff0f0; color: #b42318; font-size: 11px; }

@media (max-width: 880px) {
  .account-topbar { padding: 0 18px; }
  .account-page { width: min(100% - 24px, 720px); margin-top: 20px; }
  .auth-view { grid-template-columns: 1fr; }
  .auth-showcase { padding: 38px 30px; }
  .auth-showcase h1 { font-size: 30px; }
  .auth-benefits { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
  .auth-benefits > div { align-items: flex-start; }
  .auth-benefits small { display: none; }
  .auth-panel { padding: 38px 30px; }
  .wallet-view { display: grid; grid-template-columns: 1fr; }
  .wallet-sidebar { position: static; }
  .wallet-user-card { grid-template-columns: auto 1fr auto; align-items: center; column-gap: 12px; }
  .wallet-avatar { grid-row: 1 / 4; margin: 0; }
  .wallet-user-card > span, .wallet-user-card > small, .wallet-account-state { display: none; }
  .wallet-user-card > b { grid-column: 3; grid-row: 1 / 3; margin: 0; font-size: 20px; }
  .logout-small { grid-column: 2; width: max-content; margin: 3px 0 0; }
  .wallet-help-card { display: none; }
  .wallet-panel { margin: 0; padding: 24px 20px; }
}

@media (max-width: 580px) {
  .account-topbar { min-height: 60px; padding: 0 12px; }
  .account-nav { order: initial; width: auto; height: 60px; margin-left: 12px; gap: 0; }
  .account-nav a { padding: 0 8px; }
  .top-account .account-secure-dot { display: none; }
  .account-page { width: calc(100% - 16px); margin: 12px auto 0; padding: 0 0 80px; }
  .auth-showcase { padding: 30px 22px; }
  .auth-showcase h1 { font-size: 25px; }
  .auth-benefits { grid-template-columns: 1fr; }
  .auth-benefits > div:nth-child(n+2) { display: none; }
  .auth-panel { padding: 30px 22px; }
  .wallet-user-card { padding: 16px; }
  .wallet-panel { padding: 20px 15px; }
  .wallet-tabs { gap: 12px; overflow-x: auto; scrollbar-width: none; }
  .wallet-tabs::-webkit-scrollbar { display: none; }
  .wallet-tab { flex: 0 0 auto; }
  .pay-method-head { flex-wrap: wrap; }
  .pay-method-card > .pay-method-head { display: flex; }
  .payment-referral-shortcut { display: none; }
  .pay-method-head #referral-tab { order: 4; width: 100%; margin: 10px 0 0; }
  .wallet-panel-heading h1 { font-size: 19px; }
  .wallet-currency { display: none; }
  .pay-method-card { padding: 16px; }
  .recharge-form { grid-template-columns: 1fr; }
  .payment-provider-grid { grid-column: auto; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .payment-provider { width: 100% !important; }
  .quick-amount-section { grid-column: auto; }
  .quick-amount-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .quick-amount { height: 72px; gap: 4px; border-radius: 12px; }
  .quick-amount span { font-size: 10px; }
  .quick-amount b { font-size: 20px; }
  .quick-amount-bonus > span, .quick-amount-bonus > b { transform: translateY(-12px); }
  .quick-amount em { top: auto; right: 50%; bottom: 8px; min-width: 0; padding: 4px 13px; border: 0; background: #fff1e9; box-shadow: none; color: #e94b2d; font-size: 10px; font-weight: 800; transform: translateX(50%); }
  .quick-amount em.bonus-none { padding-inline: 14px; border: 0; background: #f1f4f8; color: #77869a; font-size: 9px; }
  .quick-amount.active em { border: 0; background: rgba(255,255,255,.92); box-shadow: none; color: #e94b2d; }
  .custom-amount-field[hidden] + .rate-hint { grid-column: auto; grid-template-columns: 1fr auto; min-height: 70px; }
  .recharge-form > button { grid-column: auto; }
  .wallet-history-item { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 9px; padding: 11px 10px; }
  .history-icon { width: 32px; height: 32px; border-radius: 9px; }
  .history-main small { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .referral-hero { align-items: flex-start; flex-direction: column; padding: 20px; }
  .withdrawal-demo { width: 100%; flex-basis: auto; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.18); border-right: 0; border-left: 0; }
  .referral-balance { width: 100%; padding: 14px 0 0; border-top: 1px solid rgba(255,255,255,.18); border-left: 0; text-align: left; }
  .withdraw-fields { grid-template-columns: 1fr; }
  .withdraw-submit-row { align-items: stretch; flex-direction: column; }
  .referral-welcome-card { padding: 27px 21px 22px; }
  .referral-welcome-card h2 { padding-right: 18px; font-size: 20px; }
  .crypto-pay-shell { width: calc(100% - 18px); margin-top: 16px; }
  .crypto-pay-card { padding: 20px 16px; border-radius: 16px; }
  .crypto-pay-summary strong { font-size: 29px; }
  .referral-welcome-points,.referral-welcome-actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .withdrawal-demo-track { animation-duration: 900s; } }
