.profile-trigger{position:relative;flex:0 0 44px;width:44px;height:44px;padding:0;border:1px solid #735190;border-radius:50%;background:#2b1840;overflow:hidden;touch-action:manipulation}
.profile-avatar{display:inline-grid;place-items:center;position:relative;width:44px;height:44px;flex-shrink:0;overflow:hidden;border-radius:50%;background:linear-gradient(135deg,#694192,#332148);color:#f4eaff;font:600 18px/1 Arial,sans-serif}
.profile-avatar>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.profile-trigger .profile-avatar{width:100%;height:100%}
#account-dialog .profile-heading{display:flex;align-items:center;gap:14px;margin:10px 0 20px;min-width:0}
.profile-heading>div:last-child{min-width:0}
.profile-heading .profile-avatar{width:60px;height:60px;font-size:25px}
#account-dialog #account-name{margin:0;color:#f0e3ff;font-size:18px;line-height:1.4;overflow-wrap:anywhere}
#account-dialog #profile-username{color:#b69aca;margin:3px 0 0;font-size:13px}
.profile-wallet{padding:16px 18px;border:1px solid #4a2c60;border-radius:13px;background:#251535;margin-bottom:16px}
.profile-wallet>span{display:block;font-size:12px;color:#bda3cf;margin-bottom:6px}
.profile-wallet>strong{font-size:28px;letter-spacing:-.7px;color:#f2dfff;overflow-wrap:anywhere}
#profile-new-request,#topup-submit{width:100%;min-height:48px;justify-content:space-between;padding:12px 16px;font-size:14px;border-radius:10px;touch-action:manipulation}
.profile-feedback:empty,.profile-error:empty{display:none}
#account-dialog .profile-feedback{font-size:12px;color:#c6e5c2;line-height:1.6}
.profile-section-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:22px 0 12px}
.profile-section-title h3{margin:0;font-size:15px;color:#e7d7f7}
.profile-section-title button,.profile-paging button{min-height:40px;padding:8px 10px;font-size:12px;border-radius:8px;background:#281934;border:1px solid #4b325e;color:#d9c2ee}
#profile-requests-list{display:grid;gap:9px;max-height:310px;overflow-y:auto;overscroll-behavior:contain;scroll-padding-block:12px}
.profile-request{padding:13px;border:1px solid #3e2a50;border-radius:10px;background:#1c1228;min-width:0}
.profile-request-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;flex-wrap:wrap}
.profile-request strong{font-size:12px;line-height:1.5;color:#eadcf7;overflow-wrap:anywhere}
.profile-request .topup-trade-instruction strong{font:inherit}
#topup-continue{width:100%;margin:12px 0 0}
.profile-request strong>span{color:#aa8dbd;white-space:nowrap}
.profile-request>small{font-size:11px;color:#9f87b1;display:block;margin-top:6px}
#account-dialog .profile-request p{font-size:12px;margin:7px 0 0;line-height:1.5;overflow-wrap:anywhere}
#account-dialog .profile-request .request-approved{color:#9bd6ae}
.request-status{display:inline-block;padding:4px 7px;border-radius:6px;font-size:10px;line-height:1.4;background:#38254c;color:#d5b8ed;white-space:nowrap}
.request-status.approved{background:#193828;color:#b0e2bf}.request-status.rejected{background:#482439;color:#ecc1d4}
.profile-paging{display:flex;justify-content:space-between;gap:10px;margin-top:12px}
.profile-logout{display:block;width:100%;min-height:44px;margin-top:18px;padding:10px;border-top:1px solid #3b284b;color:#bda2cf;font-size:12px}
#topup-dialog{max-width:720px;width:calc(100% - 32px);padding:28px;max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;border:1px solid #59356f;border-radius:18px;background:#191023;color:#eee2fa}
#topup-dialog h2{font:600 23px/1.3 Arial,sans-serif;letter-spacing:-.5px;margin:0 30px 10px 0}
.profile-muted{font-size:13px;line-height:1.6;color:#b9a1cc;margin:0 0 18px}
.profile-field{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#ccb6db}
#topup-dialog .topup-promo-field{display:grid;gap:12px;margin-top:18px;padding-top:16px;border-top:1px solid #453055}#topup-referral-field[hidden],#topup-dialog .topup-promo-field[hidden],.topup-tab-bar[hidden]{display:none}#topup-dialog .topup-promo-field small{line-height:1.5;color:#b69aca}
.profile-field input{width:100%;min-height:44px;border-radius:8px;border:1px solid #58396d;background:#110b1c;color:#efddff;padding:10px 12px;font-size:16px;min-width:0}
.topup-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}
.topup-choice{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;padding:12px 9px;border:1px solid #453055;border-radius:11px;background:#241632;color:#d9c4ea;text-align:center;touch-action:manipulation}
.topup-choice[aria-pressed=true]{border-color:#c28ff4;background:#3b2053;box-shadow:inset 0 0 0 1px #c28ff4}
.topup-choice[data-selected=true]{border-color:#c28ff4;background:#3b2053;box-shadow:inset 0 0 0 1px #c28ff4}
.topup-choice img{width:100%;height:90px;object-fit:contain;filter:drop-shadow(0 6px 7px #0005)}
.topup-choice strong{font-size:12px;line-height:1.4;min-height:34px;overflow-wrap:anywhere}
.topup-choice>span{font-size:10px;color:#a98bbd}
.topup-confirm{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0;padding:14px;background:#251635;border:1px solid #4a2c60;border-radius:10px}
.topup-confirm>div{min-width:0}.topup-confirm small{display:block;font-size:11px;color:#ab8ec1;margin-bottom:5px}.topup-confirm strong{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.topup-confirm .profile-field{flex:0 0 100px}.topup-confirm input{text-align:center}
.profile-error{font-size:12px;line-height:1.6;color:#f0b8cd;margin:10px 0 14px}
.profile-fineprint{font-size:11px;line-height:1.6;color:#9d83af;margin:12px 0 0}
.profile-empty{font-size:12px;line-height:1.6;color:#b7a0c9;margin:0;padding:16px;text-align:center;grid-column:1/-1}
#topup-close,#account-close{min-width:44px;min-height:44px}
@media(max-width:480px){#topup-dialog{width:calc(100% - 20px);padding:24px 16px 18px;border-radius:14px}.topup-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.topup-choice img{height:82px}#account-dialog{padding:26px 18px}.profile-request-top{gap:6px}.topup-confirm{gap:10px;padding:12px}.profile-section-title button,.profile-paging button{min-height:44px}}
.telegram-miniapp #account-dialog,.telegram-miniapp #topup-dialog{max-height:calc(var(--brainlab-viewport-height,100dvh) - var(--brainlab-safe-top,0px) - var(--brainlab-safe-bottom,0px) - 24px)}
.telegram-miniapp #topup-dialog{top:calc(var(--brainlab-safe-top,0px) + 12px);bottom:auto;margin-block:0}
#account-button.profile-trigger{padding:0;min-width:44px;min-height:44px}

.topup-choice .topup-item-price{display:block;color:#ddb2fc;font-size:13px;margin-top:5px}.topup-quote{color:#e0baf8;font-weight:700;font-size:14px;line-height:1.6;padding:13px;background:#2b193b;border:1px solid #5b3673;border-radius:9px}.topup-quote:empty{display:none}
/* Hide native number steppers across the site and admin forms. */
input[type="number"]{-moz-appearance:textfield;appearance:textfield}
input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}

body{isolation:isolate}.ambient-stars{position:fixed;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none;opacity:.45}

.market-card.is-withdrawing{background:#15101e;border-color:#43334e}
.market-card.is-withdrawing .market-art img{opacity:.45;filter:grayscale(.3)}
.market-card.is-withdrawing h2{color:#b7a4c7}
.market-card-bottom .withdraw-reserved-label{grid-column:1/-1;white-space:nowrap;display:flex;align-items:center;justify-content:center;min-height:38px;border:1px solid #51415f;border-radius:8px;background:#21192b;color:#bda6cf;font-size:12px;font-weight:800}
.market-card-bottom .withdraw-cancel{grid-column:1/-1;width:100%;min-height:40px;border:1px solid #8550ac;border-radius:8px;background:#352044;color:#ead2fb;font-size:12px;cursor:pointer}
.profile-request .withdraw-cancel{margin-top:8px;min-height:38px;padding:8px 14px;border:1px solid #8550ac;border-radius:8px;background:#352044;color:#ead2fb;cursor:pointer}
.withdraw-cancel:hover{background:#4a2a60}.withdraw-cancel:disabled{opacity:.5;cursor:wait}

#topup-progress .topup-trade-instruction,
#account-dialog .profile-request .topup-trade-instruction,
#page-profile .profile-request .topup-trade-instruction,
#topup-progress .request-approved,
#account-dialog .profile-request .request-approved,
#page-profile .profile-request .request-approved{
 font-size:clamp(17px,3.9vw,21px);font-weight:700;line-height:1.4;
}
.profile-request [data-trading="true"]{font-size:clamp(16px,3.5vw,19px);font-weight:700;font-variant-numeric:tabular-nums}
.topup-tab-bar{display:flex;gap:6px;margin:0 0 12px;align-items:stretch}
.topup-tab-bar button{flex:1;min-width:0;padding:8px 4px;border:1px solid #453055;border-radius:8px;background:#241632;font-size:clamp(10px,3vw,13px);font-weight:700}
.topup-tab-bar button[aria-pressed=true]{background:#3b2053;border-color:#c28ff4;color:#f3e5ff}
#topup-buffs{flex:0 0 auto;padding-inline:8px}
#topup-stars-form{display:grid;gap:10px;padding:12px;border:1px solid #453055;border-radius:12px}
#topup-stars-form p{margin:0}
#topup-stars-quote{font-size:18px;font-weight:700}
.topup-gear-count{display:flex;align-items:center;gap:4px}
.topup-gear-count button,.topup-choice>[data-brainrot]{padding:4px 6px;border-radius:5px;background:#3b2053}
.topup-gear-count output{min-width:2ch}
#topup-dialog.has-buffs{overflow:hidden}
.topup-buffs-panel{position:relative;min-width:0;padding:18px;overflow:auto;overscroll-behavior:contain;background:#1b1227;border-left:1px solid #5c3a72;scrollbar-color:#724b8d transparent}
.topup-buffs-panel .close-dialog{right:12px;top:12px}
#topup-dialog.has-buffs .topup-main{position:relative;min-width:0;overflow:auto;overscroll-behavior:contain}
@media(min-width:820px){
 #topup-dialog.has-buffs{display:grid;grid-template-columns:minmax(0,1fr) minmax(290px,340px);width:min(1050px,calc(100% - 32px));max-width:none;padding:0}
 #topup-dialog.has-buffs .topup-main{padding:28px}
}
@media(max-width:819px){
 #topup-dialog.has-buffs{position:fixed}
 #topup-dialog.has-buffs .topup-main{max-height:calc(var(--brainlab-viewport-height,100dvh) - var(--brainlab-safe-top,0px) - var(--brainlab-safe-bottom,0px) - 80px)}
 .topup-buffs-panel{position:absolute;z-index:5;inset:0 0 0 auto;width:min(340px,100%);box-shadow:-12px 0 30px #0007}
}
@media(prefers-reduced-motion:no-preference){
 .topup-buffs-panel:not([hidden]){animation:topup-buffs-enter .32s cubic-bezier(.2,.75,.25,1)}
 @keyframes topup-buffs-enter{from{transform:translateX(100%);opacity:.4}to{transform:translateX(0);opacity:1}}
}
.topup-buffs-panel h2{margin:0 40px 8px 0;font-size:24px}
.topup-buffs-panel details{margin-top:12px}
.topup-buffs-panel summary{cursor:pointer;padding:5px 0;font-weight:700}
.topup-buff-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.topup-buff-grid>div{display:flex;align-items:center;justify-content:space-between;gap:4px;padding:7px;border:1px solid #453055;border-radius:5px;font-size:12px}
.topup-buff-grid b{color:#75df9d;white-space:nowrap}
.topup-buff-grid b.negative{color:#ff8c9e}

.topup-buff-label{display:flex;align-items:center;gap:6px;min-width:0}
.topup-buff-label img{width:24px;height:24px;object-fit:contain;flex:0 0 24px}
.topup-buff-label>span{min-width:0;overflow-wrap:normal}
.topup-buff-grid>div{font-size:11px;padding:7px 6px}

.topup-status-chip {
 position:fixed;
 right:calc(16px + max(env(safe-area-inset-right,0px),var(--brainlab-safe-right,0px)));
 bottom:calc(16px + max(env(safe-area-inset-bottom,0px),var(--brainlab-safe-bottom,0px)));
 z-index:45;
 min-height:42px;
 padding:10px 14px;
 border:1px solid #704996;
 border-radius:10px;
 background:#241831;
 color:#ebd5fa;
 box-shadow:0 6px 24px #0008;
 font-size:12px;
 font-weight:700;
}
.topup-status-chip:not([hidden]):hover {background:#38224a}
.topup-status-chip[hidden] {display:none}
#page-profile #partner-application-open {width:100%;max-width:none;justify-content:center;margin-block:8px}
#partner-application {width:min(540px,calc(100% - 26px));padding:20px}
#partner-application h2 {margin:0 34px 8px 0;font-size:20px}
#partner-application .partner-muted {margin:0 0 14px}
.partner-application textarea {
 width:100%;
 resize:vertical;
 padding:10px 12px;
 border:1px solid #5c3d75;
 border-radius:8px;
 background:#130d1c;
 color:inherit;
 font:inherit;
}

#account-signed .profile-demo-link {
 margin-top: 16px;
 display: flex;
 align-items: center;
 justify-content: center;
 min-height: 44px;
 background: #281736;
 color: #ead7ff;
 border: 1px solid #714995;
 text-decoration: none;
}
#account-signed .profile-demo-link:is(:hover,:focus-visible) {
 background: #39204d;
 color: #fff;
 border-color: #bc86ec;
}
#account-signed .profile-demo-link[hidden] { display: none; }
