/* R4 dark visual restoration — based on the supplied 430px black UI reference. */
:root{--bg:#0f1012;--panel:#16191e;--panel-2:#1f2229;--line:#2b2e35;--text:#d9e2ec;--muted:#77828f;--blue:#2777ff;--green:#28b998;--red:#f0495a;--nav:#16191e}
html{background:#090a0c;color-scheme:dark}body.front-body{background:#090a0c;color:var(--text);font-family:Puhui,"Helvetica Neue",Arial,sans-serif}.front-body .app-shell{padding-bottom:86px;background:#0f1012}.front-body .mobile-frame{width:100%;max-width:430px;min-height:100vh;margin:0 auto;background:#0f1012;box-shadow:0 0 0 1px rgba(255,255,255,.02);overflow:hidden}.front-no-shell-header .mobile-frame{padding-top:0}.front-body .page-container{max-width:430px;padding-left:16px;padding-right:16px}.is-up,.positive,.up{color:#28b998!important}.is-down,.negative,.down{color:#f0495a!important}.up-bg{background:#28b998!important;color:#fff!important}.down-bg{background:#f0495a!important;color:#fff!important}

/* Shared header */
.front-body .page-header{position:fixed;z-index:100;top:0;left:50%;transform:translateX(-50%);width:100%;max-width:430px;height:56px;padding:0 18px;background:#0f1012;border:0;display:flex;align-items:center}.front-body .mobile-frame{padding-top:56px}.page-header-home{gap:10px}.home-head-avatar{display:block;width:34px;height:34px;flex:0 0 34px}.home-head-avatar img{width:34px;height:34px;border-radius:50%;object-fit:cover}.home-head-search{height:27px;min-width:0;flex:1;background:#191c21;border-radius:16px;display:flex;align-items:center;gap:6px;padding:0 10px;color:#707987;overflow:hidden}.home-head-search svg{width:18px;height:18px;fill:none;stroke:#b5c2d0;stroke-width:2}.home-head-search span{font-size:14px;white-space:nowrap;overflow:hidden}.home-head-actions{display:flex;align-items:center;gap:10px}.home-head-icon,.home-head-language{position:relative;display:block;width:25px;height:25px;color:#87909b}.home-head-icon svg,.home-head-language svg{width:25px;height:25px;fill:none;stroke:#87909b;stroke-width:1.7}.home-head-language select{position:absolute;inset:0;opacity:0;width:100%}.page-header-sub{justify-content:space-between}.header-side{width:44px}.header-side-right{display:flex;justify-content:flex-end}.header-title{font-size:17px;font-weight:600;text-align:center;flex:1}.header-back{width:40px;height:42px;border:0;background:transparent;color:#dce5ef;font-size:34px;line-height:1;text-align:left}.sub-language{position:relative}.sub-language select{position:absolute;inset:0;opacity:0}

/* Bottom navigation */
.front-body .bottom-nav{position:fixed;z-index:120;left:50%;right:auto;bottom:0;transform:translateX(-50%);width:100%;max-width:430px;height:82px;padding:0 0 env(safe-area-inset-bottom);background:#16191e;border:0;box-shadow:0 -1px 0 rgba(255,255,255,.015)}.front-body .bottom-nav-inner{width:100%;height:100%;display:grid;grid-template-columns:repeat(5,1fr)}.front-body .bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#718092;font-size:11px}.front-body .bottom-nav a.active{color:#2777ff}.front-body .bottom-nav img{width:24px;height:24px;object-fit:contain;filter:none}.route-deposit .bottom-nav{display:none}.route-deposit .app-shell{padding-bottom:0}

/* Home */
.dark-home-page{padding:12px 20px 96px;background:#0f1012}.dark-home-banner{height:153px;border-radius:11px;overflow:hidden;background:#000847}.dark-home-banner img{width:100%;height:100%;object-fit:cover}.dark-home-ticker{height:58px;display:flex;align-items:center;gap:10px;color:#eef4fa}.ticker-gift{font-size:12px}.dark-home-ticker strong{flex:1;font-weight:500;font-size:15px}.ticker-menu{font-size:18px;color:#9ba4ae}.dark-quick-panel{position:relative;background:#16191e;border-radius:12px;padding:16px 8px 30px}.dark-quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px 4px}.dark-quick-grid a{display:flex;flex-direction:column;align-items:center;gap:9px;min-width:0;color:#91a0b2;text-align:center;font-size:12px}.dark-quick-grid img{width:28px;height:28px;object-fit:contain}.dark-quick-grid span{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.quick-buy-dark{height:88px;margin-top:12px;padding:13px 14px;display:flex;align-items:center;background:#1d2733;border-radius:8px}.quick-buy-dark img{width:88px;height:64px;object-fit:contain;margin-right:2px}.quick-buy-dark span{flex:1;display:flex;flex-direction:column}.quick-buy-dark strong{font-size:18px;color:#c9d9e9}.quick-buy-dark small{font-size:12px;color:#7f8ea0;margin-top:2px}.quick-buy-dark b{width:42px;height:42px;display:grid;place-items:center;background:#2b3a4c;border-radius:50%;font-size:28px;color:#fff;font-weight:300}.dark-market-highlights{display:grid;grid-template-columns:repeat(3,1fr);padding:18px 0 25px;border-bottom:1px solid #2b2e35}.dark-market-highlights a{display:flex;flex-direction:column;align-items:center;min-width:0}.dark-market-highlights strong{font-size:17px;font-weight:500;color:#cdd8e3}.dark-market-highlights span{font-family:DIN;font-size:16px;margin-top:2px}.dark-market-highlights b{font-family:DIN;font-size:19px;margin-top:3px}.dark-home-market{padding-bottom:10px}.dark-market-tabs{min-height:42px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;gap:0;border-bottom:1px solid #2d3036}.dark-market-tabs button{min-width:0;height:42px;padding:0 2px;border:0;background:transparent;color:#c6d3df;font-size:13px;line-height:16px;white-space:normal;overflow:hidden;display:flex;align-items:center;justify-content:center;text-align:center}.dark-market-tabs button.active{color:#fff;border-bottom:2px solid #2777ff}.dark-market-head,.market-list-head{display:grid;grid-template-columns:1.25fr .85fr .8fr;align-items:center;color:#9aa5b3;font-size:12px;padding:12px 0 7px}.dark-market-head span:nth-child(2),.dark-market-head span:nth-child(3),.market-list-head span:nth-child(2),.market-list-head span:nth-child(3){text-align:right}.dark-home-list a{height:74px;display:grid;grid-template-columns:1.25fr .85fr .8fr;align-items:center;border-bottom:1px solid #2b2e35}.dark-symbol{display:grid;grid-template-columns:26px 1fr;grid-template-rows:auto auto;column-gap:7px}.dark-symbol img{grid-row:1/3;width:24px;height:24px;border-radius:50%;align-self:center}.dark-symbol b{font-size:16px;color:#d6e1eb;font-weight:700}.dark-symbol b small{font-size:10px;color:#7d8995;font-weight:400}.dark-symbol em{font-size:10px;color:#70808e;font-style:normal}.dark-home-list strong{font-family:DIN;font-size:18px;text-align:right}.dark-home-list i{justify-self:end;width:100px;height:40px;border-radius:5px;display:grid;place-items:center;font-style:normal;font-family:DIN;font-size:17px}

/* Market screen */
.dark-market-page{min-height:calc(100vh - 82px);padding:18px 17px 94px;background:#16191e}.market-filter{height:39px;display:grid;grid-template-columns:1fr 1.2fr 0 28px;align-items:center;gap:0;margin-bottom:8px}.market-filter select,.market-quote{height:39px;border:0;background:#2b2e35;color:#8e98a5;text-align:center}.market-filter select{border-radius:4px 0 0 4px;padding:0 8px}.market-quote{display:grid;place-items:center;border-radius:5px;border:4px solid #2b2e35;background:#16191e;color:#dce7f1;font-weight:700}.market-filter input{width:0;height:0;opacity:0;padding:0;border:0}.market-filter button{height:39px;border:0;background:transparent;padding:4px;color:#91a0ae}.market-filter svg{width:25px;height:25px;fill:none;stroke:#91a0ae;stroke-width:2}.market-screen-list a{height:74px;display:grid;grid-template-columns:1.25fr .85fr .8fr;align-items:center;border-bottom:1px solid #30333a}.market-screen-symbol{display:flex;flex-direction:column}.market-screen-symbol b{font-size:18px;color:#d7e4ee;font-weight:700}.market-screen-symbol b small{font-size:10px;color:#87919d;font-weight:400}.market-screen-symbol em{font-size:10px;color:#72808d;font-style:normal}.market-screen-list strong{font-family:DIN;font-size:20px;text-align:right}.market-screen-list i{justify-self:end;min-width:86px;height:44px;padding:0 9px;display:grid;place-items:center;border-radius:5px;font-family:DIN;font-size:17px;font-style:normal}

/* Common trade header */
.trade-screen-header{height:58px;padding:0 16px;display:grid;grid-template-columns:42px 1fr 42px;align-items:center;background:#0f1012}.trade-screen-header button{border:0;background:transparent;color:#d7e1eb;font-size:35px;text-align:left;padding:0}.trade-screen-header>strong{text-align:center;font-size:20px;color:#d5dee8;white-space:nowrap}.trade-screen-header>strong small{display:inline-flex;padding:3px 5px;border-radius:2px;font-size:10px;vertical-align:3px;font-family:DIN}.trade-screen-header>span,.trade-screen-header>a{text-align:right;font-size:28px;color:#d5dee8}

/* Options / delivery */
.options-trade-page{min-height:calc(100vh - 82px);padding-bottom:84px;background:#15181d}.options-title-bar{height:31px;margin:3px 18px 7px;border:4px solid #181b20;border-radius:6px;display:grid;place-items:center;color:#c8d1dc;font-weight:600}.options-quote{height:81px;padding:12px 18px;display:flex;justify-content:space-between;border-bottom:1px solid #252830}.options-quote>div{display:flex;flex-direction:column}.options-quote>div strong{font-family:DIN;font-size:25px}.options-quote>div span{color:#667382;font-size:11px;margin-top:4px}.options-quote>div i{font-style:normal}.options-quote dl{display:grid;grid-template-columns:auto auto;gap:5px 10px;margin:0;font-family:DIN;font-size:11px}.options-quote dt{color:#657282}.options-quote dd{margin:0;color:#b9c7d5;text-align:right}.chart-time-tabs{height:34px;display:flex;align-items:center;gap:0;padding:0 5px;border-bottom:1px solid #262931;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch}.chart-time-tabs::-webkit-scrollbar{display:none}.chart-time-tabs .chart-time-label{flex:0 0 auto;padding:0 7px 0 0;color:#2777ff;font-size:14px;font-weight:700;white-space:nowrap}.chart-time-tabs button{flex:0 0 auto;height:34px;border:0;background:transparent;color:#8994a1;padding:0 7px;font-size:14px;white-space:nowrap;cursor:pointer}.chart-time-tabs button.active{color:#2777ff;font-weight:700}.chart-time-tabs button:disabled{opacity:.65;cursor:wait}.indicator-line{height:32px;padding:5px 8px;color:#646f7c;font:10px DIN;display:flex;gap:16px;overflow:hidden}.indicator-line b{color:#eead34}.indicator-line i{color:#9a5ac5;font-style:normal}.indicator-line em{color:#2997e8;font-style:normal}.options-chart{height:360px;background:#15181d}.fake-indicators{height:202px;border-top:1px solid #353841;color:#6e7884;font:10px DIN}.fake-indicators>div:first-child,.fake-indicators>div:last-child{height:30px;padding:6px 8px;display:flex;gap:16px}.fake-indicators b{color:#eead34}.fake-indicators i{color:#a164ce;font-style:normal}.fake-indicators em{color:#b64949;font-style:normal}.volume-bars{height:70px;display:flex;align-items:flex-end;gap:5px;padding:0 8px;border-bottom:1px solid #353841}.volume-bars i{display:block;width:8px;background:#28b998}.volume-bars i:nth-child(2n){height:34px;background:#f0495a}.volume-bars i:nth-child(3n){height:62px}.volume-bars i:nth-child(4n){height:22px}.volume-bars i:nth-child(5n){height:53px}.options-actions{position:fixed;z-index:85;bottom:82px;left:50%;transform:translateX(-50%);width:100%;max-width:430px;height:88px;padding:10px;display:grid;grid-template-columns:1fr 1fr 42px;gap:9px;background:#202329;border-radius:14px 14px 0 0}.options-actions button,.options-actions>a{border:0;border-radius:10px;color:#fff;font-size:15px;display:grid;place-items:center}.options-actions .buy-more{background:#28b998}.options-actions .buy-less{background:#f0495a}.options-actions>a:last-child{background:transparent;font-size:31px;color:#d8e0e8}.order-sheet{position:fixed;z-index:200;inset:0;display:none;justify-content:center;align-items:flex-start}.order-sheet.open{display:flex}.order-sheet-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.63)}.order-confirm-card{position:relative;z-index:1;width:min(430px,100%);min-height:calc(100vh - 93px);margin-top:93px;padding:14px 16px 30px;background:#16191e;border-radius:14px 14px 0 0;color:#9aa6b3}.order-confirm-card:before{content:"";position:absolute;inset:0;background:linear-gradient(140deg,rgba(240,73,90,.13),transparent 43%),linear-gradient(315deg,rgba(40,185,152,.18),transparent 42%);pointer-events:none}.order-confirm-card>*{position:relative}.order-confirm-card h2{margin:0 0 12px;text-align:center;color:#d7e1eb;font-size:18px}.confirm-row{height:42px;display:flex;justify-content:space-between;align-items:center}.confirm-row strong{font-size:17px;color:#d9e4ed}.expiration-label,.amount-label{display:block;margin:8px 0 10px}.expiration-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.expiration-grid label:last-child{grid-column:3}.expiration-grid input{display:none}.expiration-grid span{height:43px;border:1px solid #596270;display:grid;place-items:center;border-radius:3px;color:#c5d1dc}.expiration-grid input:checked+span{background:#28b998;border-color:#28b998;color:#fff}.expiration-grid i{font-style:normal;color:#87929e}.confirm-amount{width:100%;height:43px;background:#16191e;border:1px solid #d9e2ec;border-radius:5px;color:#fff;padding:0 10px}.order-confirm-card p{color:#d9e2ec;font-size:15px;margin:12px 0 6px}.order-confirm-card small{display:block;color:#7f8b98;margin:6px 0}.order-confirm-card small:first-of-type{color:#28b998}.confirm-buttons{position:absolute;left:20px;right:20px;bottom:24px;display:grid;grid-template-columns:1fr 1fr;gap:9px}.confirm-buttons button{height:44px;border:0;border-radius:5px;background:linear-gradient(#fff,#d9dde1);color:#aab1b8;font-size:15px}.confirm-buttons button:last-child{background:#28b998;color:#fff}

/* Perpetual */
.perpetual-page{min-height:calc(100vh - 82px);padding-bottom:92px;background:#0f1012}.perpetual-header{background:#0f1012}.risk-card{height:74px;padding:12px 16px;display:flex;justify-content:space-between;align-items:center;background:#16191e;border-radius:12px;margin-bottom:16px}.risk-card span{font-size:11px;color:#83909d}.risk-card span strong{font-size:17px;color:#d8e2eb}.risk-card span small{display:block;margin-top:7px}.risk-card a{width:165px;height:31px;display:grid;place-items:center;border-radius:4px;background:linear-gradient(90deg,#ff7589,#f04972);color:#fff;font-size:11px}.perpetual-trade-card{padding:14px 11px 12px;background:#16191e;border-radius:12px}.perpetual-price-line{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto}.perpetual-price-line strong{font:700 28px DIN}.perpetual-price-line strong small{font-size:10px;padding:3px 5px;border-radius:2px;color:#fff}.perpetual-price-line span{font-size:25px}.perpetual-price-line em{font-style:normal;color:#aab6c1}.perpetual-grid{display:grid;grid-template-columns:1.75fr .92fr;gap:10px;margin-top:12px}.perp-side-tabs{height:39px;display:grid;grid-template-columns:1fr 1fr;gap:4px}.perp-side-tabs button{border:0;background:#1f2229;color:#cbd5df;font-size:15px}.perp-side-tabs button.active{background:#49b996;color:#fff;clip-path:polygon(0 0,100% 0,88% 100%,0 100%)}.perp-side-tabs button:nth-child(2).active{background:#f0495a;clip-path:polygon(12% 0,100% 0,100% 100%,0 100%)}.perp-selects{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:8px}.perp-selects select{height:34px;border:1px solid #606a77;border-radius:12px;background:#16191e;color:#dce6ef;text-align:center}.perp-current{height:37px;margin-top:10px;border-radius:12px;background:#1f2229;display:grid;place-items:center;font:16px DIN}.perpetual-form>label{display:block;margin:11px 0 8px;color:#e0e7ed}.quantity-step{height:37px;display:grid;grid-template-columns:45px 1fr 45px;border:1px solid #59626f;border-radius:4px;overflow:hidden}.quantity-step button,.quantity-step input{border:0;background:#16191e;color:#dce4ec;text-align:center}.quantity-step button{font-size:23px}.quantity-step input{border-left:1px solid #59626f;border-right:1px solid #59626f}.percent-row{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-top:15px}.percent-row button{height:23px;border:1px solid #626b77;background:#16191e;color:#d8e1ea}.take-profit{display:flex!important;align-items:center;gap:7px}.perp-summary{display:grid;grid-template-columns:1fr auto;gap:8px;margin:14px 0;color:#e1e7ec}.perp-summary dd{margin:0;text-align:right}.perp-submit{width:100%;height:42px;border:0;border-radius:4px;background:#28ad91;color:#fff;display:grid;place-items:center;font-size:15px}.order-book header,.order-book div{height:23px;display:grid;grid-template-columns:1fr 1fr;align-items:center;font:11px DIN}.order-book header{color:#8793a0}.order-book div span:last-child{text-align:right}.order-book .sell{color:#c94a58;background:linear-gradient(90deg,transparent 60%,rgba(240,73,90,.22) 60%)}.order-book .buy{color:#29a783;background:linear-gradient(90deg,transparent 60%,rgba(40,185,152,.18) 60%)}.position-tabs{margin-top:12px;background:#16191e}.position-tabs nav{height:78px;display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid #4a4d53}.position-tabs nav a{display:grid;place-items:center;text-align:center;color:#d5e0ea;font-size:15px}.position-tabs nav a.active{color:#fff;text-decoration:underline;text-decoration-color:#d6e15b;text-underline-offset:8px}.perp-position-list{min-height:210px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#74808c}.perp-position-list img{width:90px;max-height:90px;opacity:.8}.perp-position-list div{width:100%;padding:12px 18px;display:flex;justify-content:space-between;border-bottom:1px solid #2b2e35}

/* Assets */
.dark-assets-page{min-height:calc(100vh - 82px);padding:18px 17px 100px;background:#0f1012}.assets-total-card{height:136px;padding:20px 16px;display:flex;justify-content:space-between;background:url('../images/original/icon/zc-bg.png') center/cover no-repeat,#06399e;border-radius:10px;color:#fff}.assets-total-card div{display:flex;flex-direction:column}.assets-total-card div>span{font-size:15px}.assets-total-card strong{font:700 24px DIN;margin-top:18px}.assets-total-card strong small{font-size:10px}.assets-total-card>a{height:41px;padding:0 24px;display:grid;place-items:center;background:rgba(100,150,230,.45);border-radius:22px;font-size:15px}.assets-actions{height:104px;display:grid;grid-template-columns:repeat(3,1fr);align-items:center}.assets-actions a{display:flex;flex-direction:column;align-items:center;gap:10px;color:#d9e4ed;font-size:11px}.assets-actions b{font-size:31px;font-weight:300}.asset-type-tabs{height:40px;display:grid;grid-template-columns:repeat(4,1fr);padding:3px;background:#2b2e35;border-radius:5px}.asset-type-tabs button{border:0;background:transparent;color:#8a929d}.asset-type-tabs button.active{background:#16191e;border-radius:4px;color:#d9e5ee;font-weight:700}.asset-tools{height:69px;display:flex;justify-content:space-between;align-items:center;color:#697581}.asset-tools label{font-size:15px}.asset-tools button{height:38px;padding:0 17px;border:1px solid #343840;border-radius:20px;background:#0f1012;color:#697581}.wallet-card-list{display:grid;gap:17px}.wallet-card-list>a,.wallet-placeholder{min-height:118px;padding:14px 17px;background:#16191e;border-radius:11px}.wallet-card-list header{display:flex;justify-content:space-between;align-items:center}.wallet-card-list header strong{font-size:19px;color:#d8e5ef}.wallet-card-list header span{font-size:31px;color:#8b96a1}.wallet-card-list>*>div{display:grid;grid-template-columns:repeat(3,1fr);margin-top:13px;color:#71808c}.wallet-card-list>*>div span{display:flex;flex-direction:column}.wallet-card-list>*>div b{margin-top:5px;color:#d8e4ed;font:700 17px DIN}

/* Deposit currency selection */
.deposit-currency-page{min-height:100vh;background:#0f1012;padding:0 10px 30px}.deposit-header{height:58px;display:grid;grid-template-columns:42px 1fr 42px;align-items:center}.deposit-header button{border:0;background:transparent;color:#d8e3ed;font-size:34px;text-align:left}.deposit-header strong{text-align:center;font-size:18px}.currency-search{height:38px;margin-top:3px;display:flex;align-items:center;gap:8px;padding:0 11px;background:#16191e;border-radius:20px}.currency-search svg{width:20px;height:20px;fill:none;stroke:#72808c;stroke-width:2}.currency-search input{flex:1;background:transparent;border:0;color:#fff;outline:0}.currency-list{margin-top:20px}.currency-list a{height:51px;display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:8px}.currency-list img{width:33px;height:33px;border-radius:50%;object-fit:cover}.currency-list strong{font-size:17px;color:#dbe5ef}.currency-list span{padding:5px 11px;background:#28b998;border-radius:15px;color:#fff;font-size:10px}.deposit-form-dark{padding:15px 6px}.deposit-method-card{display:flex;align-items:center;gap:12px;padding:14px;background:#16191e;border-radius:10px;margin-bottom:16px}.deposit-method-card img{width:42px;height:42px;border-radius:50%}.deposit-method-card div{display:flex;flex-direction:column}.deposit-method-card span{color:#75818d;margin-top:3px}.deposit-form-dark>label{display:block;margin:15px 0 7px;color:#8e99a5}.deposit-address{padding:12px;background:#16191e;border:1px solid #30343a;border-radius:6px;word-break:break-all}.deposit-form-dark input{width:100%;height:43px;background:#16191e;border:1px solid #59626e;border-radius:6px;color:#fff;padding:0 10px}.deposit-form-dark small{display:block;margin-top:6px;color:#6f7b87}.deposit-form-dark p{color:#83909c;line-height:1.6}.deposit-form-dark>button{width:100%;height:45px;margin-top:20px;border:0;border-radius:5px;background:#28b998;color:#fff;font-size:16px}

/* Existing generic pages remain dark */
.front-body .card,.front-body .list-card,.front-body .panel-card,.front-body .soft-card,.front-body .menu-list,.front-body .record-card,.front-body .service-card{background:#16191e;border-color:#2b2e35;color:#d9e2ec}.front-body .input,.front-body .select,.front-body .textarea{background:#111316;color:#fff;border-color:#343840}.front-body .btn-primary{background:#2777ff;color:#fff}.front-body .btn-dark{background:#252930;color:#fff}.front-body .muted,.front-body .symbol-name,.front-body .news-meta,.front-body .list-row-sub{color:#77828f!important}
@media(min-width:431px){body.front-body{background:#090a0c}.front-body .mobile-frame{box-shadow:0 0 38px rgba(0,0,0,.5)}}
@media(max-width:360px){.dark-home-page{padding-left:12px;padding-right:12px}.dark-quick-grid{gap:18px 2px}.quick-buy-dark img{width:72px}.dark-market-highlights strong{font-size:14px}.market-screen-list a,.dark-home-list a{grid-template-columns:1.15fr .8fr .85fr}.market-screen-list i,.dark-home-list i{min-width:78px;width:78px}.perpetual-grid{grid-template-columns:1.6fr .9fr}.asset-type-tabs button{font-size:11px}}
.front-body.front-no-shell-header .mobile-frame{padding-top:0}

/* R5: visible dark navigation + four market categories */
.front-body .bottom-nav{
  z-index:999!important;
  background:#111318!important;
  border-top:1px solid #252a31!important;
  box-shadow:0 -6px 20px rgba(0,0,0,.28)!important;
  pointer-events:auto!important;
}
.front-body .bottom-nav-inner{background:#111318!important;pointer-events:auto!important}
.front-body .bottom-nav a{
  position:relative!important;
  z-index:2!important;
  color:#8b98a8!important;
  opacity:1!important;
  pointer-events:auto!important;
  -webkit-tap-highlight-color:transparent;
}
.front-body .bottom-nav a span{color:inherit!important;font-weight:500!important}
.front-body .bottom-nav a.active,.front-body .bottom-nav a:active{color:#2f7fff!important}
.front-body .bottom-nav img{opacity:1!important;filter:none!important}
.front-body .app-shell{padding-bottom:94px!important}
.route-deposit .app-shell{padding-bottom:0!important}

.market-category-tabs{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:0!important;
  width:100%!important;
  border-bottom:1px solid #2d3036!important;
}
.market-category-tabs button{
  min-width:0!important;
  height:42px!important;
  padding:0 3px!important;
  border:0!important;
  border-bottom:2px solid transparent!important;
  border-radius:0!important;
  background:transparent!important;
  color:#8996a5!important;
  font-size:13px!important;
  white-space:nowrap!important;
}
.market-category-tabs button.active{
  color:#fff!important;
  border-bottom-color:#2f7fff!important;
  background:transparent!important;
}
.market-page-tabs{margin:0 0 10px!important}
.market-search-bar{
  height:40px;
  display:grid;
  grid-template-columns:1fr 42px;
  align-items:center;
  margin:0 0 9px;
  border:1px solid #30343b;
  border-radius:6px;
  background:#111318;
  overflow:hidden;
}
.market-search-bar input{height:100%;border:0;background:transparent;color:#dce6ef;padding:0 12px;outline:0}
.market-search-bar button{height:100%;border:0;background:transparent;color:#8996a5;padding:8px}
.market-search-bar svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2}
.dark-home-list,.market-screen-list{min-height:80px}
.dark-home-list a,.market-screen-list a{cursor:pointer;pointer-events:auto}
.dark-home-list a:active,.market-screen-list a:active{background:#1b1f25}
.route-assets .dark-assets-page{position:relative;z-index:1}
.route-assets .wallet-card-list a,.route-assets .assets-actions a,.route-assets .assets-total-card a{pointer-events:auto;position:relative;z-index:2}
@media(max-width:360px){.market-category-tabs button{font-size:11px!important}}
/* R8 product icons and live chart polish */
.market-screen-symbol{flex-direction:row;align-items:center;gap:10px;min-width:0}
.market-screen-symbol>img{width:36px;height:36px;border-radius:50%;object-fit:contain;flex:0 0 36px;background:#20242a;box-shadow:0 0 0 1px rgba(255,255,255,.06)}
.market-screen-symbol>span{display:flex;flex-direction:column;min-width:0}
.dark-symbol img{object-fit:contain;background:#20242a;box-shadow:0 0 0 1px rgba(255,255,255,.06)}
.trade-product-title{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;min-width:0}
.trade-product-title>img{width:24px;height:24px;border-radius:50%;object-fit:contain;background:#20242a;flex:0 0 24px}
.trade-product-title>span{overflow:hidden;text-overflow:ellipsis}
.options-chart{position:relative;min-height:360px;background:#15181d}
.options-chart:empty:before{content:'Loading chart…';position:absolute;inset:0;display:grid;place-items:center;color:#69727e;font-size:13px}
.product-history-main{display:flex;align-items:flex-start;gap:10px}
.product-history-icon{width:36px;height:36px;border-radius:50%;object-fit:contain;background:#20242a;flex:0 0 36px}
.dark-market-highlights a{position:relative;padding-top:2px}
.highlight-product-icon{width:24px;height:24px;border-radius:50%;object-fit:contain;background:#20242a;margin:0 auto 4px;display:block}
.wallet-card-list header strong{display:flex;align-items:center;gap:9px}
.wallet-currency-icon{width:28px;height:28px;border-radius:50%;object-fit:contain;background:#20242a}
/* R9 multilingual language selector */
.language-open{overflow:hidden}.language-modal[hidden]{display:none}.language-modal{position:fixed;inset:0;z-index:99999}.language-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.64)}.language-sheet{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(100%,450px);max-height:min(92vh,900px);overflow:hidden;background:#101113;color:#f7f7f7;border:1px solid #22262b;box-shadow:0 24px 80px rgba(0,0,0,.65)}.language-sheet header{height:66px;display:flex;align-items:center;justify-content:center;border-bottom:1px solid #23272c;position:relative}.language-sheet header strong{font-size:20px;font-weight:500}.language-sheet header button{position:absolute;right:13px;top:3px;border:0;background:transparent;color:#98a4b4;font-size:38px;line-height:52px;font-weight:200}.language-list{overflow:auto;max-height:calc(min(92vh,900px) - 66px)}.language-list a{height:61px;display:flex;align-items:center;gap:13px;padding:0 10px;border-bottom:1px solid #2a2e34;color:#f4f7fb;text-decoration:none;font-size:20px}.language-list a.active{background:#202328}.language-list a b{margin-left:auto;color:#00d7d7;font-size:28px;font-weight:400}.language-flag{width:24px;height:24px;display:inline-grid;place-items:center;overflow:hidden;border-radius:50%;flex:0 0 24px;border:1px solid rgba(255,255,255,.45)}.language-flag img{width:100%;height:100%;display:block;object-fit:cover}.home-head-language,.sub-language{border:0;background:transparent;color:inherit;padding:0;cursor:pointer}.auth-language{position:absolute;right:18px;top:18px;border:1px solid #2b3036;background:#17191d;color:#fff;border-radius:18px;padding:7px 12px;z-index:3}[dir="rtl"] body{text-align:right}[dir="rtl"] .language-list a b{margin-left:0;margin-right:auto}[dir="rtl"] .language-sheet header button{right:auto;left:13px}

.auth-language img{width:20px;height:20px;border-radius:50%;object-fit:cover;vertical-align:-5px;margin-right:6px;border:1px solid rgba(255,255,255,.45)}
/* R10 auth screenshot layout */
.auth-page{background:#0d0f11!important;color:#f4f7fb!important;min-height:100vh}.auth-page:before{display:none!important}.auth-language{left:22px!important;right:auto!important;top:18px!important;background:transparent!important;border:0!important;color:#9aa3af!important;font-size:18px}.auth-shot{max-width:475px!important;padding:49px 0 0!important}.auth-shot .auth-logo{display:block;width:207px!important;height:207px!important;border-radius:16px;margin:0 auto -6px!important;object-fit:cover}.auth-shot .auth-card{position:relative;background:#15181c!important;border-radius:31px 31px 0 0!important;box-shadow:none!important;min-height:650px;padding:69px 31px 35px!important;color:#fff}.auth-line{height:76px;display:flex;align-items:center;border-bottom:1px solid #171a1f;gap:12px}.auth-line span{font-size:22px;color:#e8edf3;width:26px;text-align:center}.auth-line input{flex:1;min-width:0;border:0!important;background:transparent!important;color:#f5f7fb!important;font-size:20px;outline:0}.auth-line input::placeholder{color:#657083}.auth-options{display:flex;justify-content:space-between;align-items:center;margin:17px 0 24px;font-size:16px}.auth-options a,.auth-bottom a{color:#12e5a2}.auth-submit{height:55px;border-radius:6px!important;font-size:20px}.auth-bottom{text-align:center;margin-top:22px;font-size:16px}.auth-tab{height:48px;background:#0e1013;border-radius:6px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:18px;margin-bottom:20px}.code-line{position:relative}.code-line input{padding-right:96px}.code-btn{position:absolute;right:0;border:2px solid #2767ff;background:transparent;color:#fff;border-radius:24px;padding:7px 22px;font-size:16px}.code-btn:disabled{opacity:.55}.auth-language img{display:none!important}@media(max-width:520px){.auth-shot{padding-top:49px!important}.auth-shot .auth-card{min-height:calc(100vh - 230px)}}
body.order-open{overflow:hidden}.order-confirm-card{display:flex;flex-direction:column;max-height:calc(100vh - 72px);min-height:calc(100vh - 72px);margin-top:72px;overflow-y:auto;padding-bottom:18px}.confirm-buttons{position:sticky;left:auto;right:auto;bottom:0;margin-top:auto;padding-top:20px;background:#16191e;z-index:4}.confirm-buttons button:disabled{opacity:.65}.option-result-page{min-height:calc(100vh - 82px);padding:19px 18px 96px;background:#15181d;color:#91a0af}.option-countdown{width:127px;height:127px;margin:0 auto 42px;border-radius:50%;display:grid;place-items:center;background:#2878f6;color:#fff;font:42px DIN,Arial}.option-result-list{display:grid;gap:31px}.option-result-list>div{display:flex;justify-content:space-between;align-items:center;font-size:17px}.option-result-list strong{color:#dbe8f2;font-size:16px}.continue-trading-btn{position:fixed;left:18px;right:18px;bottom:96px;max-width:440px;margin:auto;height:43px;border-radius:6px;display:grid;place-items:center;background:linear-gradient(#13c8ed,#0759ed);color:#fff;font-size:16px;text-decoration:none}
/* R15 metals, single account and real-price conversion */
.front-body .bottom-nav a{color:#a9b5c3!important;opacity:1!important}.front-body .bottom-nav a img{opacity:.82;filter:brightness(1.45) contrast(1.08)}.front-body .bottom-nav a.active{color:#2f7dff!important;font-weight:700}.front-body .bottom-nav a.active img{opacity:1;filter:none}
.market-category-tabs{overflow-x:auto;scrollbar-width:none}.market-category-tabs::-webkit-scrollbar{display:none}.market-category-tabs button{white-space:nowrap}
.asset-exchange-page{min-height:calc(100vh - 82px);padding-bottom:100px;background:#101318;color:#dce7f2}.exchange-head{height:58px;display:grid;grid-template-columns:42px 1fr 42px;align-items:center;padding:0 14px}.exchange-head a{font-size:36px;color:#dce7f2}.exchange-head strong{text-align:center;font-size:19px}.exchange-card{margin:12px 16px;padding:18px;background:#191d23;border-radius:14px}.exchange-row{display:flex;justify-content:space-between;align-items:center}.exchange-row label{color:#8e9aaa}.exchange-row select{min-width:130px;height:42px;border:1px solid #3c4654;border-radius:8px;background:#11151a;color:#fff;padding:0 12px}.exchange-balance,.exchange-rate,.exchange-receive{display:flex;justify-content:space-between;margin-top:14px;color:#8e9aaa}.exchange-balance button{border:0;background:transparent;color:#347fff}.exchange-card>input{width:100%;height:56px;margin-top:10px;padding:0 14px;border:1px solid #3c4654;border-radius:8px;background:#11151a;color:#fff;font:22px DIN}.exchange-swap{display:block;width:42px;height:42px;margin:15px auto;border:0;border-radius:50%;background:#2878f6;color:#fff;font-size:22px}.exchange-receive strong,.exchange-rate b{color:#1ed0a1}.exchange-submit{width:100%;height:50px;margin-top:24px;border:0;border-radius:7px;background:#2878f6;color:#fff;font-size:17px}.exchange-history{margin:14px 16px}.exchange-history h3{font-size:16px}.exchange-history>div{padding:14px 0;border-bottom:1px solid #282e36;display:flex;flex-direction:column;gap:6px}.exchange-history span{color:#748292;font-size:12px}.exchange-history strong{font-size:14px}
/* R16 deposit/receipt redesign */
.deposit-record-link{display:grid;place-items:center;color:#dce8f3;font-size:23px}.deposit-receipt-wrap{padding:0 12px 32px}.deposit-selected-card{height:46px;display:grid;grid-template-columns:1fr auto 18px;align-items:center;gap:9px;padding:0 13px;background:#171a1f;border-radius:6px;color:#dce7f0}.deposit-selected-card>span{display:flex;align-items:center;gap:10px}.deposit-selected-card img{width:22px;height:22px;border-radius:50%;object-fit:cover}.deposit-selected-card strong{font-size:18px}.deposit-selected-card em{font-style:normal;padding:5px 10px;background:#28b998;border-radius:14px;color:#fff;font-size:10px}.deposit-selected-card b{font-size:26px;font-weight:300}.deposit-network-tabs{display:flex;gap:8px;margin:7px 0 0}.deposit-network-tabs a{min-width:94px;height:46px;padding:0 12px;display:grid;place-items:center;background:#f2f2f4;border:1px solid #dfe1e4;border-radius:4px;color:#c4c9d0;font-size:15px}.deposit-network-tabs a.active{background:#fff;color:#65d2ef;border-color:#65d2ef}.deposit-qr-box{width:220px;height:220px;margin:38px auto 13px;background:#fff;padding:0;display:grid;place-items:center}.deposit-qr-box img{width:220px;height:220px;display:block}.deposit-save-qr{display:block;width:216px;height:36px;margin:0 auto 34px;border:0;border-radius:5px;background:#171a1f;color:#dce7f0;font-size:14px}.deposit-address-title{margin:0 0 10px;color:#e4edf5;font-size:15px}.deposit-address-title strong{color:#2b6fff}.deposit-address-copy{min-height:64px;display:grid;grid-template-columns:1fr 42px;align-items:center;padding:0 8px 0 18px;background:#171a1f;border-radius:12px;color:#eef4fa;font:700 18px DIN;word-break:break-all}.deposit-address-copy button{border:0;background:transparent;color:#dce8f3;font-size:29px}.deposit-next-btn{width:100%;height:56px;margin-top:44px;border:0;border-radius:5px;background:#2f67f4;color:#fff;font-size:18px}.deposit-second-step{display:none;padding:20px 0 10px}.deposit-second-step.show{display:block}.deposit-second-step>button{background:#2f67f4;height:52px;font-size:18px}.route-deposit .bottom-nav{display:none}

/* R19: restore legacy order confirmation sheet and force footer actions visible */
body.order-open{overflow:hidden!important}
.order-sheet{position:fixed!important;z-index:9999!important;inset:0!important;display:none!important;justify-content:center!important;align-items:flex-start!important;background:transparent!important}
.order-sheet.open{display:flex!important}
.order-sheet-backdrop{position:absolute!important;inset:0!important;background:rgba(0,0,0,.72)!important}
.order-confirm-card{position:relative!important;z-index:2!important;width:min(470px,100%)!important;height:calc(100dvh - 108px)!important;max-height:calc(100dvh - 108px)!important;min-height:0!important;margin:108px 0 0!important;padding:16px 16px 96px!important;overflow-y:auto!important;overflow-x:hidden!important;background:#16191e!important;border-radius:12px 12px 0 0!important;color:#91a0af!important;display:block!important;box-sizing:border-box!important;-webkit-overflow-scrolling:touch!important}
.order-confirm-card:before{content:"";position:absolute;inset:0;background:linear-gradient(140deg,rgba(240,73,90,.13),transparent 43%),linear-gradient(315deg,rgba(40,185,152,.18),transparent 42%);pointer-events:none}
.order-confirm-card>*{position:relative;z-index:1}
.order-confirm-card h2{margin:0 0 12px!important;text-align:center!important;color:#dce8f2!important;font-size:20px!important}
.order-confirm-card .confirm-row{height:47px!important;display:flex!important;align-items:center!important;justify-content:space-between!important}
.order-confirm-card .confirm-row strong{font-size:17px!important;color:#dce8f2!important}
.order-confirm-card .expiration-label,.order-confirm-card .amount-label{display:block!important;margin:8px 0 10px!important}
.order-confirm-card .expiration-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px 22px!important;margin-bottom:12px!important}
.order-confirm-card .expiration-grid label{min-width:0!important}
.order-confirm-card .expiration-grid label:last-child{grid-column:auto!important}
.order-confirm-card .expiration-grid input{display:none!important}
.order-confirm-card .expiration-grid span{height:49px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;border:1px solid #596270!important;border-radius:4px!important;color:#d7e1eb!important;white-space:nowrap!important;box-sizing:border-box!important}
.order-confirm-card .expiration-grid input:checked+span{background:#28b998!important;border-color:#28b998!important;color:#fff!important}
.order-confirm-card .expiration-grid b{font-weight:500!important;color:inherit!important}
.order-confirm-card .expiration-grid i{font-size:14px!important;font-style:normal!important;color:#83909e!important}
.order-confirm-card .expiration-grid input:checked+span i{color:#d9fff5!important}
.order-confirm-card .confirm-amount{width:100%!important;height:43px!important;background:#16191e!important;border:1px solid #d9e2ec!important;border-radius:5px!important;color:#fff!important;padding:0 10px!important;box-sizing:border-box!important}
.order-confirm-card p{margin:12px 0 6px!important;color:#e7eef5!important;font-size:15px!important}
.order-confirm-card small{display:block!important;margin:7px 0!important;color:#8593a2!important}
.order-confirm-card small:first-of-type{color:#28d0aa!important}
.order-confirm-card .confirm-buttons{position:fixed!important;z-index:10001!important;left:50%!important;bottom:max(18px,env(safe-area-inset-bottom))!important;transform:translateX(-50%)!important;width:min(438px,calc(100% - 32px))!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin:0!important;padding:0!important;background:transparent!important;visibility:visible!important;opacity:1!important}
.order-confirm-card .confirm-buttons button{display:block!important;height:48px!important;border:0!important;border-radius:5px!important;font-size:16px!important;visibility:visible!important;opacity:1!important}
.order-confirm-card .confirm-buttons button:first-child{background:linear-gradient(#fff,#d9dde1)!important;color:#aab1b8!important}
.order-confirm-card .confirm-buttons button:last-child{background:#28b998!important;color:#fff!important}
.order-confirm-card .confirm-buttons button:disabled{opacity:.65!important}
@media (max-width:420px){.order-confirm-card{padding-left:12px!important;padding-right:12px!important}.order-confirm-card .expiration-grid{gap:9px 9px!important}.order-confirm-card .expiration-grid span{font-size:14px!important}.order-confirm-card .confirm-buttons{width:calc(100% - 24px)!important}}
@media (max-height:690px){.order-confirm-card{margin-top:72px!important;height:calc(100dvh - 72px)!important;max-height:calc(100dvh - 72px)!important;padding-bottom:88px!important}.order-confirm-card .confirm-row{height:38px!important}.order-confirm-card .expiration-grid span{height:43px!important}.order-confirm-card .expiration-label,.order-confirm-card .amount-label{margin:5px 0 7px!important}.order-confirm-card p{margin:7px 0 4px!important}.order-confirm-card small{margin:4px 0!important}.order-confirm-card .confirm-buttons{bottom:max(10px,env(safe-area-inset-bottom))!important}}

/* R20 profile/settings cleanup */
.profile-hero-clean{padding-bottom:22px}.profile-hero-clean .profile-head{padding-top:8px}.account-settings-block{margin:24px 0 0}.account-settings-block>h3{margin:0 0 10px;padding:0 5px;color:#dbe5ee;font-size:16px}.menu-link-button{width:100%;border:0;background:transparent;color:inherit;text-align:left;font:inherit;appearance:none;-webkit-appearance:none}.menu-link-button:hover,.menu-link-button:focus,.menu-link-button:active{background:transparent;color:inherit}.menu-link-button span{font:inherit}.security-page{min-height:calc(100vh - 130px)}.security-list{overflow:hidden;background:#16191e;border:1px solid #282d34;border-radius:13px}.security-list>a,.security-list>div{min-height:62px;padding:0 15px;display:flex;align-items:center;gap:14px;border-bottom:1px solid #282d34;color:#e5edf4;font-size:16px}.security-list>*:last-child{border-bottom:0}.security-list span{flex:1}.security-list b{color:#9ba6b0;font-size:28px;font-weight:300}.security-list em{max-width:60%;font-style:normal;color:#7f8b98;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.security-password-form{margin-top:6px}.security-password-form .btn{height:48px;margin-top:6px}

/* R20 basic KYC page */
.route-kyc .bottom-nav{display:none}.route-kyc .app-shell{padding-bottom:0}.kyc-basic-page{min-height:100vh;background:#0f1012;padding-bottom:28px}.kyc-basic-header{height:58px;display:grid;grid-template-columns:44px 1fr 44px;align-items:center;padding:0 12px;position:sticky;top:0;z-index:30;background:rgba(15,16,18,.97);backdrop-filter:blur(10px)}.kyc-basic-header button{height:44px;border:0;background:transparent;color:#dbe5ed;text-align:left;font-size:36px;line-height:1}.kyc-basic-header strong{text-align:center;font-size:18px}.kyc-basic-body{padding:3px 19px 28px}.kyc-current-status{margin:8px 0 14px;padding:14px 16px;border:1px solid #293039;border-radius:12px;background:#16191e}.kyc-current-status>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.kyc-current-status small{display:block;margin-top:8px;color:#7f8b97}.kyc-current-status p{margin:10px 0 0;color:#c9d2da}.kyc-info-card{padding:18px 19px 16px;background:#16191e;border-radius:12px}.kyc-info-card h2{font-size:17px;margin:0 0 32px}.kyc-info-card label{display:block;margin:0 0 10px;color:#dbe4eb;font-size:16px;font-weight:650}.kyc-info-card select,.kyc-info-card input{width:100%;height:47px;margin:0 0 26px;padding:0 30px;border:1px solid #303640;border-radius:6px;background:#16191e;color:#e7eef4;outline:0;font-size:16px}.kyc-info-card select{appearance:auto}.kyc-info-card input:last-child{margin-bottom:0}.kyc-document-heading{margin:39px 0 18px;color:#dce5ed;font-size:16px}.kyc-upload-card{position:relative;width:100%;height:186px;display:block;overflow:hidden;border-radius:12px;border:1px solid #d5d8dc;background:#fafafa;cursor:pointer}.kyc-upload-card input{position:absolute;width:1px;height:1px;opacity:0}.kyc-upload-card>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fff;z-index:2}.kyc-card-placeholder{position:absolute;inset:20px 55px;border:1px dashed #eceff1;border-radius:9px}.kyc-card-placeholder i,.kyc-card-placeholder b,.kyc-card-placeholder em{position:absolute;display:block;background:#d8dade}.kyc-card-placeholder.front i{left:16px;right:98px;top:13px;height:13px;box-shadow:0 31px 0 #d8dade,0 62px 0 #d8dade,0 93px 0 #d8dade}.kyc-card-placeholder.front b{right:21px;top:13px;width:60px;height:60px;border-radius:50%;background:#cbd2df}.kyc-card-placeholder.front em{left:16px;right:16px;bottom:14px;height:13px}.kyc-card-placeholder.back i{left:15px;top:12px;width:66px;height:66px;border-radius:50%}.kyc-card-placeholder.back b{left:95px;right:15px;top:16px;height:13px;box-shadow:0 30px 0 #d8dade,0 82px 0 #d8dade}.kyc-card-placeholder.back em{left:15px;bottom:13px;width:78px;height:13px;box-shadow:96px 0 0 #d8dade}.kyc-upload-label{text-align:center;margin:13px 0 18px;color:#dce5ed;font-size:15px}.kyc-submit-button{width:100%;height:51px;margin-top:2px;border:0;border-radius:5px;background:#49be9d;color:#fff;font-size:17px;font-weight:650}.kyc-basic-form select:focus,.kyc-basic-form input:focus{border-color:#4cbf9e}

/* R20 perpetual pair switch and 2-second orderbook */
.trade-product-switch{border:0;background:transparent;color:#e1eaf2;display:flex;align-items:center;justify-content:center;gap:7px;min-width:0}.trade-product-switch img{width:25px;height:25px;border-radius:50%;object-fit:cover}.trade-product-switch span{font-size:18px;font-weight:750}.trade-product-switch i{font-style:normal;color:#778490;font-size:14px}.pair-modal-open{overflow:hidden}.perp-pair-modal[hidden]{display:none}.perp-pair-modal{position:fixed;inset:0;z-index:10010}.perp-pair-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.68)}.perp-pair-sheet{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:min(100%,760px);max-height:82vh;overflow:hidden;border-radius:18px 18px 0 0;background:#121418;border:1px solid #2b3037;box-shadow:0 -16px 50px rgba(0,0,0,.48)}.perp-pair-sheet>header{height:58px;display:grid;grid-template-columns:44px 1fr 44px;align-items:center;border-bottom:1px solid #272c33}.perp-pair-sheet>header strong{grid-column:2;text-align:center;font-size:17px}.perp-pair-sheet>header button{grid-column:3;border:0;background:transparent;color:#9ca8b3;font-size:32px}.perp-pair-sheet>input{width:calc(100% - 28px);height:40px;margin:13px 14px 8px;padding:0 14px;border:1px solid #30363e;border-radius:20px;background:#1a1d22;color:#eef3f7;outline:0}.perp-pair-list{max-height:calc(82vh - 120px);overflow:auto;padding:0 8px 16px}.perp-pair-list a{height:63px;padding:0 10px;display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;border-bottom:1px solid #242930}.perp-pair-list a.active{background:#1c2026;border-radius:8px}.perp-pair-list img{width:33px;height:33px;border-radius:50%;object-fit:cover}.perp-pair-list span{min-width:0}.perp-pair-list strong{display:block;color:#e2ebf2;font-size:15px}.perp-pair-list small{display:block;margin-top:3px;color:#75818c;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.perp-pair-list em{font-style:normal;font:13px DIN}.order-book #perpOrderRows{display:block;height:auto}.order-book #perpOrderRows>div{height:23px;display:grid;grid-template-columns:1fr 1fr;align-items:center;font:11px DIN}.order-book #perpOrderRows>div span:last-child{text-align:right}
@media(max-width:390px){.kyc-basic-body{padding-left:14px;padding-right:14px}.kyc-info-card{padding-left:15px;padding-right:15px}.kyc-upload-card{height:174px}.kyc-card-placeholder{inset:18px 38px}.perp-pair-sheet{max-height:88vh}.perp-pair-list{max-height:calc(88vh - 120px)}}

/* R20 localized About Us */
.about-us-page{padding-top:8px;padding-bottom:105px}.about-us-article{padding:2px 2px 24px}.about-us-article>.article-title{text-align:center;margin:0 0 58px;font-size:19px}.about-us-article .article-content{color:#dce6ee;font-size:15px;line-height:1.85;word-break:break-word}.about-us-article .article-content h2,.about-us-article .article-content h3{margin:24px 0 10px;color:#e8f0f6;font-size:16px}.about-us-article .article-content h2:first-child{margin-top:0}.about-us-article .article-content p{margin:0 0 16px}[dir="rtl"] .about-us-article .article-content{text-align:right}

/* R21 withdrawal pages and VIP center */
.route-withdraw,.route-withdraw-addresses,.route-vip{background:#0d0f12!important}
.withdraw-screen,.withdraw-address-page,.vip-center-page{width:100%;max-width:475px;min-height:100vh;margin:0 auto;background:#0d0f12;color:#e8edf3;position:relative}
.withdraw-screen-head,.vip-page-head{height:56px;display:grid;grid-template-columns:52px 1fr 52px;align-items:center;border-bottom:1px solid rgba(255,255,255,.025);background:#0d0f12;position:sticky;top:0;z-index:30}
.withdraw-screen-head button,.vip-page-head button{border:0;background:transparent;color:#dce7f1;font-size:38px;line-height:1;height:56px;padding:0;cursor:pointer}
.withdraw-screen-head h1,.vip-page-head h1{margin:0;text-align:center;font-size:19px;font-weight:700;color:#eef3f7}
.withdraw-screen-head>a{height:56px;display:grid;place-items:center;color:#dce7f1;text-decoration:none;font-size:24px}
.withdraw-fields{padding:16px 20px 132px}.withdraw-field{margin-bottom:20px}.withdraw-field>label{display:block;margin:0 0 10px;color:#dfe6ed;font-size:15px;font-weight:600}
.withdraw-select-card,.withdraw-address-input,.withdraw-readonly-box,.withdraw-password-input,.withdraw-amount-box{min-height:58px;border:1px solid #1d2229;border-radius:7px;background:#15191e;color:#e8eef5}
.withdraw-select-card{display:flex;align-items:center;position:relative;padding:0 16px;overflow:hidden}.withdraw-select-card select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.withdraw-select-card span{font-size:16px;flex:1}.withdraw-select-card i{font-style:normal;color:#dbe5ef;font-size:24px}.withdraw-select-card img{width:34px;height:34px;border-radius:50%;object-fit:contain;margin-right:12px}.withdraw-coin-card span{font-weight:650}
.withdraw-address-input{width:100%;padding:0 16px;display:flex;align-items:center;justify-content:space-between;text-align:left;border:1px solid #1d2229;cursor:pointer}.withdraw-address-input span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8b98a6}.withdraw-address-input i{font-style:normal;color:#8c96a2;font-size:21px}.withdraw-address-input.has-value span{color:#edf2f7}
.withdraw-amount-box{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;padding:0 14px;gap:8px}.withdraw-amount-box input{width:100%;min-width:0;border:0;background:transparent;color:#fff;font-size:18px;outline:0}.withdraw-amount-box input::placeholder{color:#5f6a78}.withdraw-amount-box strong{font-size:15px;color:#e9eef4}.withdraw-amount-box button{border:0;background:transparent;color:#e9eef4;font-size:15px;padding:8px 0 8px 8px}.withdraw-balance-line{margin:9px 8px 0;display:flex;align-items:center;gap:12px;color:#8d99a6;font-size:14px}.withdraw-balance-line b{font-weight:500;color:#cbd4dd}
.withdraw-readonly-box{display:flex;align-items:center;padding:0 16px;color:#cbd4dd;font-size:16px}.withdraw-password-input{width:100%;padding:0 16px;outline:0;font-size:16px}.withdraw-password-input:focus{border-color:#59636f}
.withdraw-notice-field{margin-top:2px}.withdraw-notice-box{padding:15px 17px;border:1px solid #1d2229;border-radius:7px;background:#15191e;color:#8d98a5;font-size:14px;line-height:1.65}.withdraw-notice-box p{margin:0 0 4px}.withdraw-notice-box p:last-child{margin-bottom:0}
.withdraw-submit-bar{position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:min(100%,475px);padding:10px 12px 14px;background:#11151a;border-top:1px solid #20252c;z-index:35}.withdraw-submit-bar>div{height:26px;display:flex;align-items:center;justify-content:space-between;font-size:14px;color:#c9d2dc}.withdraw-submit-bar>div b{font-weight:500}.withdraw-submit-bar button,.withdraw-address-save-button,.withdraw-add-address-btn,.withdraw-address-fixed-footer a{height:49px;border:0;border-radius:6px;background:#2f69f6;color:#fff;font-size:18px;font-weight:650;display:grid;place-items:center;text-decoration:none;width:100%}
.withdraw-empty-state{padding:80px 20px}.withdraw-address-sheet[hidden]{display:none}.withdraw-address-sheet{position:fixed;inset:0;z-index:120}.withdraw-sheet-backdrop{position:absolute;inset:0;border:0;background:rgba(0,0,0,.72)}.withdraw-sheet-panel{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:min(100%,475px);max-height:76vh;padding:7px 20px 25px;background:#171b20;border-radius:24px 24px 0 0;display:flex;flex-direction:column}.withdraw-sheet-handle{width:60px;height:5px;border-radius:3px;background:#7f8389;margin:4px auto 20px}.withdraw-sheet-panel h2{text-align:center;margin:0 0 20px;font-size:19px}.withdraw-sheet-list{overflow:auto;display:grid;gap:9px;min-height:80px}.withdraw-sheet-address{width:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 14px;border:1px solid #292e35;border-radius:10px;background:#11151a;color:#eef3f7;text-align:left}.withdraw-sheet-address span{min-width:0;display:block}.withdraw-sheet-address strong{display:block;font-size:15px}.withdraw-sheet-address small{display:block;margin-top:6px;color:#8c98a6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.withdraw-sheet-address em{font-style:normal;font-size:11px;color:#c4cbd3;border:1px solid #39414b;border-radius:11px;padding:3px 7px}.withdraw-sheet-empty{display:grid;place-items:center;color:#8994a0;min-height:130px}.withdraw-add-address-btn{margin-top:18px}.withdraw-sheet-open{overflow:hidden}
.withdraw-address-list-page{padding:14px 18px 100px}.withdraw-address-empty-page{min-height:55vh;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#8e99a5}.withdraw-address-empty-icon{font-size:65px;color:#5e7188;margin-bottom:20px}.withdraw-address-card{padding:15px;border:1px solid #242a31;border-radius:12px;background:#15191e;display:flex;gap:12px;align-items:center;margin-bottom:12px}.withdraw-address-card-main{min-width:0;flex:1}.withdraw-address-card-title{display:flex;align-items:center;gap:9px}.withdraw-address-card-title img{width:28px;height:28px;border-radius:50%;object-fit:contain}.withdraw-address-card-title strong{font-size:16px}.withdraw-address-card-title em{font-style:normal;font-size:10px;color:#cbd3dc;border:1px solid #3a424d;border-radius:10px;padding:2px 6px}.withdraw-address-card small{display:block;margin:8px 0 5px;color:#8d98a5}.withdraw-address-card p{margin:0;color:#dce4ec;font:13px/1.5 DIN,monospace;word-break:break-all}.withdraw-address-card form button{border:0;background:transparent;color:#b8c1cb;padding:8px;font-size:13px}.withdraw-address-fixed-footer{position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:min(100%,475px);padding:12px;background:#11151a;border-top:1px solid #20252c}.withdraw-address-form{padding:18px 19px 40px}.withdraw-default-check{display:flex;align-items:center;gap:9px;color:#dce4ec;margin:4px 0 22px}.withdraw-default-check input{width:18px;height:18px}.withdraw-address-save-button{margin-top:8px}
[dir="rtl"] .withdraw-address-input,[dir="rtl"] .withdraw-sheet-address{text-align:right}[dir="rtl"] .withdraw-select-card img{margin-right:0;margin-left:12px}

.vip-center-page{padding-bottom:92px;background:#151719}.vip-page-head{background:#211f2a}.vip-hero{padding:28px 22px 14px;text-align:center}.vip-hero-card{width:min(382px,100%);height:210px;margin:0 auto 14px;border:1px solid rgba(255,255,255,.35);border-radius:13px;background:radial-gradient(circle at 86% 50%,rgba(50,105,234,.6),transparent 43%),linear-gradient(135deg,#4b4d4f,#181b21 70%);position:relative;overflow:hidden;box-shadow:0 18px 48px rgba(0,0,0,.24)}.vip-hero-mark{position:absolute;inset:44px 0 auto;font-size:76px;font-weight:900;font-style:italic;color:rgba(235,230,217,.72);letter-spacing:-7px}.vip-hero-chip{position:absolute;left:18px;top:18px;width:18px;height:11px;border-radius:2px;background:linear-gradient(#a9acac,#626566)}.vip-hero-card strong{position:absolute;left:0;right:0;bottom:17px;color:#ddd;font-size:18px}.vip-hero h2{font-size:18px;margin:0 0 8px}.vip-hero p{margin:0;color:#aab2bb}.vip-hero p b{color:#eef3f7}
.vip-level-scroller{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;padding:20px 35px 18px;scrollbar-width:none}.vip-level-scroller::-webkit-scrollbar{display:none}.vip-level-card{--vip-accent:#6f8fd8;--vip-card-image:none;flex:0 0 min(407px,calc(100vw - 70px));min-height:545px;padding:28px 18px 22px;border-radius:18px;background-image:linear-gradient(135deg,rgba(255,255,255,.38),rgba(255,255,255,.06)),var(--vip-card-image);background-color:var(--vip-accent);background-size:cover;background-position:center;color:#283345;scroll-snap-align:center;position:relative;box-shadow:0 14px 32px rgba(0,0,0,.22)}.vip-level-card.is-current:after{content:'✓';position:absolute;right:16px;top:15px;width:28px;height:28px;border:2px solid rgba(255,255,255,.8);border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:800}.vip-level-card-top{display:flex;align-items:center;justify-content:space-between;min-height:78px}.vip-level-orb{width:76px;height:76px;border-radius:50%;display:grid;place-items:center;background:#ff981d;color:#fff;font-size:20px;font-weight:800}.vip-level-card-top>b{font-size:64px;font-style:italic;color:rgba(255,255,255,.35);letter-spacing:-7px}.vip-level-card h3{text-align:center;margin:0 0 18px;font-size:20px}.vip-level-summary{min-height:42px;margin:0 0 20px;line-height:1.5}.vip-progress-copy{display:flex;justify-content:space-between;gap:10px;font-size:13px}.vip-progress-copy b{font-weight:500}.vip-progress-bar{height:7px;border-radius:4px;background:rgba(255,255,255,.5);overflow:hidden;margin:8px 0}.vip-progress-bar i{display:block;height:100%;background:#2e6cff}.vip-level-card>small{display:block;color:#43516a;min-height:20px}.vip-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:20px 0}.vip-card-actions a{height:43px;border-radius:10px;background:#2d6bff;color:#fff;display:grid;place-items:center;text-decoration:none;font-size:15px}.vip-card-actions a+ a{background:#fff;color:#293346}.vip-benefit-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 13px}.vip-benefit-grid>div{display:grid;grid-template-columns:28px 1fr;gap:6px;align-items:start}.vip-benefit-grid span{font-size:25px;color:#526d9b}.vip-benefit-grid p{margin:2px 0 0;line-height:1.35;font-size:13px}
.vip-standard-section{padding:16px 24px}.vip-standard-section h2{font-size:18px;margin:0 0 12px;font-weight:500}.vip-standard-table-wrap{overflow:auto}.vip-standard-table{width:100%;border-collapse:collapse;min-width:390px}.vip-standard-table th,.vip-standard-table td{height:76px;padding:10px;text-align:center;border:1px solid #343431}.vip-standard-table th{height:62px;background:#292a28;color:#c8b895;font-weight:500}.vip-standard-table tbody tr:nth-child(odd){background:#171919}.vip-standard-table tbody tr:nth-child(even){background:#2b2c2a}.vip-standard-table td{color:#f2e6c8;font-size:16px}.vip-description{padding:14px 24px 24px;color:#9d9a88;line-height:1.55;font-size:15px}.vip-empty{margin:40px 24px;padding:50px 20px;text-align:center;color:#9099a3;border:1px solid #2a2d31;border-radius:13px}.vip-contact-footer{position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:min(100%,475px);padding:11px 18px;background:#16191d;border-top:1px solid #26302e;z-index:35}.vip-contact-footer a{height:45px;border-radius:7px;background:#2f70ff;color:#fff;display:grid;place-items:center;text-decoration:none;font-size:16px}
@media(max-width:360px){.withdraw-fields{padding-left:14px;padding-right:14px}.vip-level-scroller{padding-left:18px;padding-right:18px}.vip-level-card{flex-basis:calc(100vw - 36px)}.vip-benefit-grid{grid-template-columns:1fr}}
/* R22 email verification feedback */
.auth-code-status{display:block;min-height:20px;margin:7px 2px 2px;font-size:13px;line-height:1.45;color:#8f9bad}.auth-code-status.is-success{color:#20d79b}.auth-code-status.is-error{color:#ff6b78}.auth-code-status.is-loading:after{content:'...';color:#8f9bad}.code-btn{min-width:88px;text-align:center;touch-action:manipulation}.code-btn:disabled{cursor:not-allowed}

/* R24: five market categories stay on one row and bottom navigation remains legible. */
.front-body .market-category-tabs{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;min-height:44px!important;overflow:visible!important;white-space:nowrap!important}
.front-body .market-category-tabs button{min-width:0!important;height:44px!important;padding:0 1px!important;font-size:12px!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:clip!important;letter-spacing:-.25px!important}
.front-body .bottom-nav a{color:#a4afbd!important;font-weight:500}
.front-body .bottom-nav a.active{color:#2f80ff!important;font-weight:700}
.front-body .bottom-nav a:not(.active) img{opacity:.82;filter:brightness(1.3) saturate(.8)!important}
.front-body .bottom-nav a.active img{opacity:1;filter:none!important}
@media(max-width:360px){.front-body .market-category-tabs button{font-size:11px!important;letter-spacing:-.45px!important}}

/* R26 deposit form, network tabs and localized fund records */
.deposit-currency-page{width:100%;max-width:480px;margin:0 auto;padding:0 12px 32px;background:#0f1012;overflow-x:hidden}
.deposit-currency-page .deposit-header{margin:0 -2px}
.deposit-currency-page .currency-search{height:42px;margin-top:4px;border:1px solid #20242b;background:#15181d}
.deposit-currency-page .currency-search input::placeholder{color:#66717e}
.deposit-currency-page .currency-list{margin-top:16px;display:grid;gap:4px}
.deposit-currency-page .currency-list a{min-height:54px;height:auto;padding:7px 2px;border-bottom:1px solid rgba(255,255,255,.025)}
.deposit-currency-page .currency-list strong{font-size:16px;letter-spacing:.1px}
.deposit-receipt-wrap{padding:0 0 28px}
.deposit-selected-card{height:48px;border:1px solid #20242b;background:#171a1f;border-radius:7px}
.deposit-selected-card em{font-size:10px;font-weight:700;background:#28b998;color:#fff}
.deposit-network-tabs{display:flex;flex-wrap:nowrap;gap:10px;margin:8px 0 14px;overflow-x:auto;padding:0 0 2px;scrollbar-width:none}
.deposit-network-tabs::-webkit-scrollbar{display:none}
.deposit-network-tabs a{flex:0 0 auto;min-width:92px;height:46px;padding:0 18px;border:1px solid #39414d;border-radius:6px;background:#171a1f;color:#d9e0e8;font-weight:700;font-size:14px;box-shadow:none;transition:background .15s,border-color .15s,color .15s}
.deposit-network-tabs a:hover{border-color:#5a6675;color:#fff}
.deposit-network-tabs a.active{background:#2f6df6;border-color:#2f6df6;color:#fff;box-shadow:0 6px 18px rgba(47,109,246,.24)}
.deposit-upload-card{position:relative;min-height:460px;padding:46px 15px 14px;border:1px solid #20242b;border-radius:10px;background:#171a1f}
.deposit-card-back{position:absolute;left:14px;top:10px}
.deposit-card-back a{display:grid;place-items:center;width:34px;height:34px;color:#e9f0f7;font-size:34px;line-height:1}
.deposit-upload-card>label{display:block;margin:0 0 9px;color:#eef3f8;font-weight:700;font-size:14px}
.deposit-upload-card>input[type=number]{width:100%;height:44px;padding:0 12px;border:1px solid #323844;border-radius:6px;background:#15181d;color:#fff;outline:none}
.deposit-upload-card>input[type=number]:focus{border-color:#2f6df6;box-shadow:0 0 0 2px rgba(47,109,246,.12)}
.deposit-upload-card>input[type=number]::placeholder{color:#66717e}
.deposit-upload-card>small{display:block;margin:7px 0 16px;color:#7c8794}
.deposit-proof-label{margin-top:16px!important}
.deposit-proof-upload{position:relative;min-height:220px;border:1px dashed transparent;border-radius:8px;background:#171a1f;overflow:hidden}
.deposit-proof-upload>input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.deposit-proof-picker{width:100%;min-height:220px;border:0;background:transparent;color:#727e8b;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px}
.deposit-proof-plus{font-size:38px;font-weight:300;line-height:1;color:#7b8794}
.deposit-proof-hint{font-size:12px;color:#64707c}
.deposit-proof-preview{position:relative;min-height:220px;display:grid;place-items:center;padding:8px}
.deposit-proof-preview[hidden]{display:none}
.deposit-proof-preview img{max-width:100%;max-height:260px;border-radius:7px;object-fit:contain}
.deposit-proof-preview button{position:absolute;right:10px;top:10px;border:0;border-radius:15px;padding:6px 10px;background:rgba(0,0,0,.72);color:#fff;font-size:11px}
.deposit-method-instructions{margin:12px 0 0;color:#8c97a3;line-height:1.65;font-size:12px}
.deposit-submit-btn{width:100%;height:48px;margin-top:18px;border:0;border-radius:5px;background:#2f67f4;color:#fff;font-size:17px;font-weight:700}
.deposit-submit-btn:active{transform:translateY(1px)}
.fund-records-page{max-width:760px}
.fund-record-filter{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin:14px 0}
.fund-record-filter .select{height:44px;background:#171a1f;color:#e7edf4;border:1px solid #2b3039;border-radius:9px;padding:0 12px}
.fund-record-list{overflow:hidden}
.fund-record-row{align-items:flex-start;gap:12px}
.fund-record-main{min-width:0;flex:1}
.fund-record-row .list-row-title{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-weight:700}
.fund-record-row .list-row-sub{line-height:1.45;word-break:break-word}
@media(max-width:520px){
  .deposit-currency-page{max-width:none;padding-left:12px;padding-right:12px}
  .deposit-network-tabs a{min-width:88px;height:44px;padding:0 14px}
  .deposit-upload-card{min-height:455px;padding-left:14px;padding-right:14px}
  .fund-record-row .list-row-value{font-size:13px;white-space:nowrap}
}

/* R27: clearer bottom navigation, seconds favorites, selector and history */
.front-body .bottom-nav a:not(.active){color:#fff!important;opacity:1!important}
.front-body .bottom-nav a:not(.active) img{opacity:1!important;filter:grayscale(1) brightness(4.2) contrast(1.2)!important}
.front-body .bottom-nav a.active{color:#2f80ff!important}
.front-body .bottom-nav a.active img{filter:none!important}

.trade-product-switch{border:0;background:transparent;display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;color:#d5dee8;cursor:pointer;padding:0 4px}
.trade-product-switch img{width:25px;height:25px;border-radius:50%;object-fit:cover;flex:0 0 auto}
.trade-product-switch span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.trade-product-switch i{font-style:normal;color:#788697;font-size:13px}
.seconds-favorite-button{border:0;background:transparent;color:#e7edf4!important;font-size:31px!important;line-height:1;text-align:right;padding:0;cursor:pointer;text-decoration:none}
.seconds-favorite-button.active{color:#ffc83d!important}
.seconds-favorite-button:disabled{opacity:.55}

.seconds-history-panel{margin:8px 10px 112px;border:1px solid #2a2e36;border-radius:12px;background:#171a1f;overflow:hidden}
.seconds-history-panel>header{height:48px;padding:0 14px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #2a2e36}
.seconds-history-panel>header strong{font-size:16px;color:#e3ebf3}
.seconds-history-panel>header a{color:#7ea8ff;font-size:13px}
.seconds-history-list article{min-height:82px;padding:11px 13px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px;border-bottom:1px solid #292d34}
.seconds-history-list article:last-child{border-bottom:0}
.seconds-history-main{min-width:0;display:flex;flex-direction:column;gap:5px}
.seconds-history-main>strong{font-size:14px;color:#e5edf4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.seconds-history-main>strong span{margin-left:6px;font-size:12px}
.seconds-history-main small{color:#8693a1;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.seconds-history-result{display:flex;flex-direction:column;align-items:flex-end;gap:7px}
.seconds-history-result b{font:700 14px DIN}
.seconds-history-result em{font-style:normal;font-size:11px;padding:4px 8px;border-radius:12px;background:#2a2f36;color:#c8d2dc}
.seconds-history-result em.status-win{background:rgba(40,185,152,.15);color:#28b998}
.seconds-history-result em.status-loss{background:rgba(240,73,90,.14);color:#f0495a}
.seconds-history-result em.status-draw{background:rgba(76,132,255,.16);color:#73a0ff}
.seconds-history-result em.status-pending{background:rgba(255,190,56,.14);color:#f5bd47}
.seconds-history-empty{padding:30px 12px;text-align:center;color:#7d8995;font-size:13px}
.options-trade-page{padding-bottom:174px}
.fake-indicators{height:150px}

.market-screen-symbol{flex-direction:row!important;align-items:center;gap:10px}
.market-symbol-icon-wrap{position:relative;width:27px;height:27px;flex:0 0 27px}
.market-symbol-icon-wrap>img{width:27px;height:27px;border-radius:50%;object-fit:cover}
.market-favorite-mark{position:absolute;right:-5px;top:-7px;color:#ffc83d;font-size:12px;font-style:normal;text-shadow:0 1px 2px #000}
.perp-pair-list a>i{margin-left:4px;color:#ffc83d;font-style:normal}

.admin-totp-card{width:min(440px,calc(100% - 28px));padding:28px;border-radius:16px;background:#fff;box-shadow:0 18px 60px rgba(0,0,0,.18)}
.admin-totp-card h1{text-align:center;margin:12px 0 8px}
.admin-totp-card>.muted{text-align:center;line-height:1.65}
.admin-totp-qr{width:230px;height:230px;margin:22px auto 16px;padding:5px;background:#fff;border:1px solid #dde2e8;border-radius:10px;display:grid;place-items:center}
.admin-totp-secret{margin:0 0 20px;padding:12px;border:1px dashed #bfc8d4;border-radius:8px;display:grid;grid-template-columns:1fr auto;gap:7px 10px;align-items:center}
.admin-totp-secret span{grid-column:1/-1;color:#677281;font-size:13px}
.admin-totp-secret strong{font-family:monospace;letter-spacing:1.5px;word-break:break-all}
.admin-totp-secret button{border:0;border-radius:6px;background:#eef2f7;padding:8px 10px;cursor:pointer}
.admin-totp-cancel{margin-top:10px}

@media(max-width:370px){
  .trade-screen-header{grid-template-columns:34px 1fr 34px;padding:0 10px}
  .trade-product-switch{font-size:17px!important}
  .seconds-history-panel{margin-left:7px;margin-right:7px}
}

/* R28: player profile icon and compact live percentage */
.page-header-home .home-head-avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;overflow:hidden;background:transparent}
.page-header-home .home-head-avatar img{width:34px;height:34px;display:block;object-fit:contain;border-radius:50%}
.perpetual-price-line strong small#perpLiveChange{display:inline-flex;align-items:center;justify-content:center;min-width:0;height:22px;margin-left:4px;padding:0 5px!important;font:700 12px/1 DIN!important;vertical-align:middle;white-space:nowrap}
.trade-product-switch #tradeLiveChange{display:inline-flex;align-items:center;justify-content:center;height:18px;min-width:0;margin-left:0;padding:0 3px!important;font:700 10px/1 DIN!important;letter-spacing:0;white-space:nowrap;vertical-align:middle}

/* Banner detail page r29 */
.route-banner-detail .app-shell{padding-bottom:0!important}.route-banner-detail .mobile-frame{padding-top:0!important;max-width:760px}.banner-detail-page{min-height:100vh;background:#0f1012;color:#dfe7ee;padding-bottom:32px}.banner-detail-header{position:sticky;top:0;z-index:30;height:56px;display:grid;grid-template-columns:42px 1fr 42px;align-items:center;padding:0 10px;background:rgba(15,16,18,.97);backdrop-filter:blur(10px);border-bottom:1px solid rgba(255,255,255,.05)}.banner-detail-header strong{text-align:center;font-size:16px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.banner-detail-back{width:42px;height:42px;border:0;background:transparent;color:#dce5ed;font-size:34px;line-height:1;text-align:left}.banner-detail-card{margin:14px 14px 0;padding:0 0 24px;border-radius:16px;background:#171a1f;overflow:hidden;box-shadow:0 8px 28px rgba(0,0,0,.22)}.banner-detail-cover{display:block;width:100%;aspect-ratio:2.1/1;object-fit:cover;background:#111}.banner-detail-body{padding:22px 20px 6px;color:#d7e0e8;font-size:14px;line-height:1.9;word-break:break-word}.banner-detail-body h1,.banner-detail-body h2,.banner-detail-body h3{margin:26px 0 12px;color:#fff;line-height:1.45}.banner-detail-body h1:first-child,.banner-detail-body h2:first-child,.banner-detail-body h3:first-child{margin-top:0}.banner-detail-body p{margin:0 0 18px}.banner-detail-body ul,.banner-detail-body ol{padding-left:22px;margin:0 0 18px}.banner-detail-body img{display:block;max-width:100%;height:auto;margin:18px auto;border-radius:12px}.banner-detail-body a{color:#45c8aa;overflow-wrap:anywhere}.banner-coming-soon{min-height:320px;display:grid;place-items:center;text-align:center;color:#fff;font-size:26px;font-weight:700;letter-spacing:.4px}@media(min-width:431px){.route-banner-detail .mobile-frame{max-width:760px}.banner-detail-card{margin:24px auto 0;max-width:700px}.banner-detail-body{padding:30px 34px 14px;font-size:15px}.banner-detail-header{max-width:760px;margin:0 auto}}[dir="rtl"] .banner-detail-body{text-align:right}[dir="rtl"] .banner-detail-body ul,[dir="rtl"] .banner-detail-body ol{padding-left:0;padding-right:22px}
/* R30 functional icon system */
.quick-icon img,.menu-link>img,.assets-actions img{width:24px;height:24px;object-fit:contain;filter:brightness(0) saturate(100%) invert(45%) sepia(98%) saturate(4121%) hue-rotate(211deg) brightness(102%) contrast(103%)}
.quick-item .quick-icon{display:flex;align-items:center;justify-content:center}
.menu-link>img{width:22px;height:22px;margin-right:12px}
.assets-actions b{display:flex;align-items:center;justify-content:center}
.assets-actions img{width:31px;height:31px;filter:brightness(0) invert(1)}
.bottom-nav-inner img{width:23px;height:23px;opacity:.82;filter:brightness(0) invert(1)}
.bottom-nav-inner a.active img{opacity:1;filter:brightness(0) saturate(100%) invert(42%) sepia(98%) saturate(4465%) hue-rotate(214deg) brightness(104%) contrast(103%)}
.vip-entry-card{display:flex;align-items:center;justify-content:space-between;margin:0 0 14px;padding:14px 16px;border-radius:12px;background:linear-gradient(105deg,#071625,#0b2947);color:#fff;text-decoration:none}
.vip-entry-main{display:flex;align-items:center;gap:9px}.vip-gem{color:#6ef0e4;font-size:22px}.vip-entry-card>span{font-size:13px;color:#fff}
.vip-order-badge{display:inline-flex;align-items:center;margin-left:6px;padding:2px 8px;border-radius:999px;background:#f0f1f3;color:#474b52;font-size:11px;font-weight:600;vertical-align:middle}
.asset-privacy-toggle{display:inline-flex!important;align-items:center;gap:7px;background:none!important;border:0!important;color:inherit!important;padding:0!important}
.asset-privacy-toggle img{width:18px;height:18px;filter:brightness(0) invert(1);opacity:.9}
.asset-privacy-toggle.active img{opacity:.65}

/* R31: restore original bottom navigation artwork; enlarge the supplied player profile icon. */
.front-body .bottom-nav img,
.bottom-nav-inner img{
  width:24px!important;
  height:24px!important;
  opacity:1!important;
  filter:none!important;
  object-fit:contain!important;
}
.page-header-home .home-head-avatar{
  width:42px!important;
  height:42px!important;
  flex:0 0 42px!important;
  overflow:visible!important;
}
.page-header-home .home-head-avatar img{
  width:42px!important;
  height:42px!important;
  object-fit:contain!important;
  border-radius:50%!important;
}

/* R37 in-page multilingual confirmation dialog */
.app-confirm-open{overflow:hidden}.app-confirm-modal{position:fixed;inset:0;z-index:120000;display:none;align-items:center;justify-content:center;padding:20px}.app-confirm-modal.open{display:flex}.app-confirm-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.72);backdrop-filter:blur(2px)}.app-confirm-box{position:relative;width:min(88vw,360px);padding:22px 18px 16px;border:1px solid #2b3139;border-radius:16px;background:#171a1f;color:#f4f7fb;box-shadow:0 22px 70px rgba(0,0,0,.6)}.app-confirm-message{min-height:52px;display:flex;align-items:center;justify-content:center;text-align:center;font-size:16px;line-height:1.55;word-break:break-word}.app-confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.app-confirm-actions button{height:44px;border-radius:10px;font-size:15px;font-weight:650;cursor:pointer}.app-confirm-cancel{border:1px solid #343b45;background:#23272e;color:#d4dbe4}.app-confirm-ok{border:0;background:#2878ff;color:#fff}.app-confirm-actions button:active{transform:scale(.98)}[dir=rtl] .app-confirm-actions{direction:rtl}

/* R38 option countdown refresh */
.option-result-page{padding-top:26px!important}
.option-countdown-shell{position:relative;width:168px;height:168px;margin:0 auto 34px;padding:10px;border-radius:50%;background:conic-gradient(from 180deg,#53a8ff,#2f6df6,#39d1ff,#53a8ff);box-shadow:0 18px 44px rgba(23,88,214,.28)}
.option-countdown-shell:before{content:"";position:absolute;inset:8px;border-radius:50%;background:radial-gradient(circle at top,#223d71,#131820 66%)}
.option-countdown{position:relative;z-index:1;width:100%;height:100%;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#fff;text-align:center;background:transparent!important}
.option-countdown small{font-size:12px;letter-spacing:.5px;color:#bfd7ff}
.option-countdown strong{font:700 44px/1 DIN,Arial}
.option-countdown.is-result strong{font-size:26px;padding:0 18px;line-height:1.2;word-break:break-word}
.option-countdown.is-result small{color:#d7dde7}
.option-settlement-status{text-align:center;margin:-14px 0 26px;font-size:13px}

/* R38 perpetual order type selector */
.perp-order-type-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.perp-order-type-tabs button{height:34px;border:1px solid #606a77;border-radius:12px;background:#16191e;color:#dce6ef;text-align:center}
.perp-order-type-tabs button.active{border-color:#2f84ff;background:rgba(47,132,255,.14);color:#fff}

/* R39 perpetual record tabs + list layout */
.position-tabs{margin-top:14px;background:transparent!important}
.position-tabs .perp-record-tabs{display:flex;align-items:center;gap:8px;padding:4px;border:1px solid #313743;border-radius:16px;background:#16191e}
.position-tabs .perp-record-tabs a{flex:1;min-width:0;height:32px;border-radius:12px;display:flex;align-items:center;justify-content:center;color:#c6d0da;font-size:14px;font-weight:600;white-space:nowrap}
.position-tabs .perp-record-tabs a.active{background:linear-gradient(180deg,#2f85ff,#2266ff);color:#fff;box-shadow:0 8px 18px rgba(34,102,255,.22)}
.perp-position-list{min-height:0!important;display:block!important;background:#16191e;border:1px solid #262c34;border-radius:18px;overflow:hidden;color:#d9e2ec}
.perp-position-list .list-row{display:flex!important;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid #272d35}
.perp-position-list .list-row:last-child{border-bottom:0}
.perp-position-list .list-row div{width:auto!important;padding:0!important;border:0!important;display:block!important}
.perp-position-list .list-row .list-row-main{flex:1;min-width:0;display:flex!important;align-items:flex-start;gap:12px}
.perp-position-list .list-row .product-history-icon{width:38px;height:38px;flex:0 0 38px;border-radius:50%;background:#20242a;object-fit:contain}
.perp-position-list .list-row .list-row-title{display:flex!important;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:6px;color:#f2f6fb;font-size:15px;font-weight:700}
.perp-position-list .list-row .list-row-sub{display:block!important;line-height:1.5;color:#7d8997!important;font-size:12px}
.perp-position-list .list-row .list-row-value{flex:0 0 auto;display:flex!important;flex-direction:column;align-items:flex-end;justify-content:center;gap:12px;margin-left:12px;text-align:right}
.perp-position-list .list-row [data-profit-text],.perp-position-list .list-row .positive,.perp-position-list .list-row .negative{font:500 14px/1.2 DIN,Arial}
.perp-position-list .btn.btn-danger.btn-sm{min-width:54px;height:38px;padding:0 14px;border:0;border-radius:12px;background:#ff4c67;color:#fff;font-size:14px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}
.perp-position-list .status-pill{display:inline-flex;align-items:center;justify-content:center;min-width:64px;height:30px;padding:0 12px;border-radius:999px;font-size:12px}
@media(max-width:360px){
  .position-tabs .perp-record-tabs a{font-size:13px}
  .perp-position-list .list-row{padding:14px 14px}
  .perp-position-list .list-row .list-row-value{margin-left:8px}
}
