/* Approved dark gold frontend palette. Admin pages retain their own styles. */
body.front-gold,body.front-gold-light{min-height:100vh;position:relative;isolation:isolate;background-attachment:fixed!important;--accent:var(--frontend-accent,#d2b467)!important;--accent-soft:color-mix(in srgb,var(--accent) 14%,var(--card))!important}
body.front-gold{color-scheme:dark;--bg:#101912!important;--card:#19221a!important;--text:#f3ecd9!important;--muted:#beb59c!important;--line:#394334!important;background:#101912!important;color:var(--text)!important}
body.front-gold-light{color-scheme:light;--bg:#f4f1e8!important;--card:#fffefa!important;--text:#293325!important;--muted:#70664d!important;--line:#e0d8c1!important;--accent:var(--frontend-accent,#b19550)!important;background:var(--bg)!important;color:var(--text)!important}
body.front-gold:before,body.front-gold-light:before{content:"";position:fixed;z-index:-1;pointer-events:none;inset:0;background:radial-gradient(ellipse at 12% 10%,#a7803a17,transparent 50%),radial-gradient(ellipse at 92% 65%,#146e4214,transparent 46%)}
body.front-gold:after,body.front-gold-light:after{content:"";position:fixed;right:max(16px,calc((100vw - 700px)/2));top:176px;width:180px;height:132px;z-index:-1;pointer-events:none;opacity:.08;transform:rotate(-11deg);background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 132'%3E%3Crect width='180' height='132' rx='18' fill='%23827638'/%3E%3Cpath d='M90 20 160 66 90 112 20 66Z' fill='%23d2b467'/%3E%3Ccircle cx='90' cy='66' r='25' fill='%232d3624'/%3E%3C/svg%3E") center/contain no-repeat}
body.front-gold .shell,body.front-gold-light .shell{background:transparent!important}
body.front-gold :is(.front-head,.aligned-head,.reference-bottom,.home-checkin,.source-partner,.source-category>span,.aligned-fixed-action,.card,.compact-order,.aligned-ledger,.aligned-method,.grab-identity,.grab-records button,.aligned-help-items details,.aligned-points-balance,.aligned-chat-quick,.home-metrics section,.language-menu){background:var(--card)!important;border-color:var(--line)!important;color:var(--text)}
body:is(.front-gold,.front-gold-light) :is(.front-head,.aligned-head){border-bottom:1px solid var(--line);box-shadow:0 3px 16px #12332307}
body:is(.front-gold,.front-gold-light) .reference-bottom{background:var(--card)!important;border-top:1px solid var(--line);box-shadow:0 -3px 20px #102d2410}
body:is(.front-gold,.front-gold-light) .front-head :is(.iconbtn,.language-trigger),body:is(.front-gold,.front-gold-light) .slide-controls .iconbtn{background:var(--accent-soft)!important;color:var(--text)!important}
body:is(.front-gold,.front-gold-light) .home-checkin{background:var(--card)!important;border:1px solid var(--line);box-shadow:0 6px 24px #1d6e2710}
body:is(.front-gold,.front-gold-light) :is(.home-checkin-button,.btn.primary,.auth-submit>button:first-child,.home-checkin-row>div:last-child>span){background:var(--accent)!important;color:#17251b!important;border-color:var(--accent)!important}
body:is(.front-gold,.front-gold-light) :is(.home-checkin-bottom,.home-checkin>div,.compact-order-head,.aligned-ledger-head,.aligned-notifications>button,.aligned-chat-conversation){border-color:var(--line)!important}
body:is(.front-gold,.front-gold-light) :is(.home-checkin-row>i,.home-checkin-milestones i,.checkin-lock){background:var(--accent-soft)!important;color:var(--accent)!important}
body:is(.front-gold,.front-gold-light) :is(.home-checkin-bottom button,.text-action){color:var(--accent)!important}
body:is(.front-gold,.front-gold-light) .home-notice{background:var(--accent-soft)!important;color:var(--text)!important;border:1px solid var(--line)}
body:is(.front-gold,.front-gold-light) .home-notice>i{background:var(--accent)!important;color:#17251b!important}
body:is(.front-gold,.front-gold-light) .source-partner{background:var(--card)!important;border:1px solid var(--line);box-shadow:0 2px 10px #142a190a}
body:is(.front-gold,.front-gold-light) .source-partner>div{background:#fff!important}
body:is(.front-gold,.front-gold-light) .source-partner img{object-fit:contain!important}
body:is(.front-gold,.front-gold-light) .source-partner h3{color:var(--text)!important;font-size:13px!important}
body:is(.front-gold,.front-gold-light) .source-category>span{background:var(--card)!important;border:1px solid var(--line)}
body:is(.front-gold,.front-gold-light) .source-carousel .slide-dots button{background:var(--line)}
body:is(.front-gold,.front-gold-light) .source-carousel .slide-dots button.active{background:var(--accent)}
body:is(.front-gold,.front-gold-light) .source-carousel[data-carousel=hero] .slide-dots button{background:#ffffffa8}
body:is(.front-gold,.front-gold-light) .source-carousel[data-carousel=hero] .slide-dots button.active{background:#d3b445}
body:is(.front-gold,.front-gold-light) .reference-bottom button{color:var(--text)!important}
body:is(.front-gold,.front-gold-light) .reference-bottom button.active>span:last-child{color:var(--accent)!important}
body:is(.front-gold,.front-gold-light) .reference-bottom button.active .nav-symbol{color:#172217!important;background:var(--accent)!important;border-color:var(--card)!important}
body.front-gold :is(input:not([type=range]):not([type=checkbox]):not([type=radio]),select,textarea,.aligned-chat-search,.aligned-method>div,.pill-filters .btn,.auth-field,.auth-field>span,.auth-tabs button,.auth-tool,.language-trigger){background:var(--card)!important;color:var(--text)!important;border-color:var(--line)!important}
body.front-gold :is(.muted,.home-notice p,.home-notice small,.home-checkin-row small,.home-checkin-milestones small,.home-checkin-title button,.aligned-chat-conversation p,.aligned-chat-conversation>small,.aligned-help-items p,.aligned-privacy p,.aligned-privacy ul,.aligned-notifications p,.aligned-notifications small,.recharge-channel small,.recharge-submit small,.compact-order-breakdown,.auth-welcome,.auth-options){color:var(--muted)!important}
body.front-gold :is(.aligned-notifications b,.aligned-help-items summary){color:var(--text)!important}
body.front-gold :is(.account-cover,.aligned-help-banner,.aligned-recharge-balance,.aligned-points-balance>p){background:linear-gradient(135deg,#dcc483,#a68a45)!important;color:#17251b!important}
body.front-gold .account-cover :is(h1,p,small,b,strong){color:#17251b!important}
body.front-gold .grab-match{background:#e9154e!important;color:white!important}
body.front-gold .btn:focus-visible,body.front-gold input:focus-visible,body.front-gold select:focus-visible,body.front-gold button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
body.front-gold :is(.chatbox,.bubble:not(.self),.aligned-help-items p){border-color:var(--line)!important;background:var(--card)!important}
body.front-gold .bubble.self{background:var(--accent-soft)!important;color:var(--text)!important}
body.front-gold .auth-tabs button.selected{border-color:var(--accent)!important;color:var(--accent)!important}
body.front-gold .auth-submit>button:first-child:disabled,body.front-gold .btn.primary:disabled{opacity:.55}
body.front-gold :is(.profile-panel-head,.profile-detail,.wallet-summary,.wallet-ledger .card,.live-orders-window){background:var(--card)!important;border-color:var(--line)!important}
body.front-gold :is(.wallet-balance,.wallet-actions button){background:var(--accent)!important;color:#17251b!important}
body.front-gold :is(.wallet-name small,.profile-detail small,.live-order-row small){color:var(--muted)!important}
body.front-gold .live-order-row{border-color:var(--line)!important}
body.front-gold .balance-breakdown strong{color:var(--text)!important}
body.front-gold .axk-site-account{background:var(--card)!important;color:var(--text)!important;border-color:var(--line)!important}
body.front-gold .axk-site-account :is(b,strong){color:var(--text)!important}
body.front-gold .axk-site-account small{color:var(--muted)!important}
body.front-gold .axk-account-top button{color:var(--accent)!important}
@media(max-width:600px){body.front-gold:after,body.front-gold-light:after{width:140px;height:102px;right:3px;top:340px}}

/* Embedded trading view shares the frontend palette; market red/green retain meaning. */
html:has(body.front-gold):has(.contract_trade_wrap),body.front-gold:has(.contract_trade_wrap),body.front-gold #app:has(.contract_trade_wrap){background:var(--bg,#101912)!important}
body.front-gold #app .contract_trade_wrap{--trade-ink:#f3ecd9;--trade-muted:#beb59c;--trade-line:#394334;--trade-soft:#222d22;--trade-accent:#d2b467;background:#19221a!important;color:var(--trade-ink)}
body.front-gold #app .contract_trade_wrap :is(.trade_open_input,.market_book_slot,.market_recent_trades,.popup,.van-cell){background:var(--card)!important;border-color:var(--line)!important}
body.front-gold #app .contract_trade_wrap .trade_time_list>div.active{background:#343222!important}
body.front-gold #app .contract_trade_wrap .position_list_wrap .common_btn{background:var(--card)!important;border-color:var(--accent)!important}
body.front-gold #app .contract_trade_wrap .trade_open_input input{color:var(--trade-ink)!important}
body.front-gold #app .contract_trade_wrap .trade_open_input input::placeholder{color:var(--trade-muted)!important;opacity:1}
body.front-gold #app .contract_trade_wrap :is(.trade_sell_info,.market_recent_trades_row) .red_color{color:#ff7996!important}
body.front-gold #app .contract_trade_wrap :is(.trade_buy_info,.market_recent_trades_row) .green_color{color:#4ddcbe!important}
body.front-gold #app .contract_trade_wrap .trade_sell_info p,body.front-gold #app .contract_trade_wrap .trade_buy_info p{color:inherit}
body.front-gold #app .contract_trade_wrap .contract_trade_con .trade_sell_info p:first-child{color:#ff7996!important}
body.front-gold #app .contract_trade_wrap .contract_trade_con .trade_now_price~.trade_sell_info p:first-child{color:#4ddcbe!important}
body.front-gold #app .contract_trade_wrap .info_head :is(.curreny_img,.star_icon img){filter:brightness(0) invert(.9)!important}
body.front-gold #app .contract_trade_wrap .axk-service-unavailable{background:#263027!important;color:var(--muted)!important;border-color:var(--line)!important}
body.front-gold #app .contract_trade_wrap .popup_wrap .popup_list{border-color:var(--line)!important}
body.front-gold .chart-page{--ink:var(--text);--soft:#222d22;--up:#4ddcbe;--down:#ff7996;color:var(--text)}
body.front-gold .chart-page :is(select,.chart-card,.chart-panel,.chart-legend,.quote-status,.intervals button){background:var(--card)!important;color:var(--text);border-color:var(--line)}
body.front-gold .chart-page :is(.chart-message,.retry){background:var(--card)!important;color:var(--muted)}
