/* ===== platform-v2.css ===== */
:root{--v2-shadow:0 20px 60px rgba(0,0,0,.28);--dp-logo:url("../img/dp-logo-header.png?v=20260925-2");}html{background:#02060b!important;color:var(--v2-text)!important}.shell,.app-shell{background:linear-gradient(180deg,rgba(4,11,20,.98),rgba(5,14,25,.98))!important}.shell{border-color:rgba(111,161,214,.08)!important}.top,.topbar{background:rgba(3,9,17,.84)!important;border-color:rgba(125,172,222,.10)!important;backdrop-filter:blur(22px) saturate(140%)!important}.brand{display:flex!important;align-items:center!important;gap:8px!important;color:#eef7ff!important}.top .brand::before{content:"";width:38px;height:32px;display:block;background-image:var(--dp-logo);background-size:contain;background-repeat:no-repeat;background-position:center;filter:drop-shadow(0 4px 12px rgba(0,125,255,.28))}.brand-mark{background-image:var(--dp-logo)!important;background-size:contain!important;background-repeat:no-repeat!important;background-position:center!important;background-color:transparent!important;box-shadow:none!important;color:transparent!important;overflow:visible!important}.brand-mark::before,.brand-mark::after{display:none!important}.brand-copy strong{color:#f7fbff!important}.brand-copy span{color:#7389a1!important}.card,.panel,.home-market-card,.chat-card{background:linear-gradient(180deg,rgba(12,29,49,.96),rgba(6,16,28,.98))!important;border-color:var(--v2-line)!important;box-shadow:var(--v2-shadow)!important}.title,h1,h2,h3{letter-spacing:-.035em}.eyebrow{color:#41d5f2!important}.muted,.lead,.sub,.hint,.customer{color:var(--v2-muted)!important}.btn,.submit,.convert,.send,.primary-btn,.submit-trade,.pledge-btn,.sim-btn{background:linear-gradient(135deg,var(--v2-blue),var(--v2-cyan))!important;color:white!important;border:0!important;box-shadow:0 12px 30px rgba(0,110,255,.18)!important;transition:.18s ease!important}.btn:hover,.submit:hover,.convert:hover,.send:hover,.primary-btn:hover,.submit-trade:hover,.pledge-btn:hover,.sim-btn:hover{transform:translateY(-1px)!important;filter:brightness(1.08)!important}.btn.secondary{background:#101e31!important;border:1px solid var(--v2-line)!important}.field input,.field textarea,.field select,.row input,.row select,.composer textarea{background:#07111e!important;border-color:rgba(111,161,214,.20)!important;color:#fff!important}.field input:focus,.field textarea:focus,.field select:focus,.row input:focus,.row select:focus,.composer textarea:focus{border-color:#168cff!important;box-shadow:0 0 0 3px rgba(22,140,255,.11)!important}.tabs,.method-tabs{border-color:var(--v2-line)!important}.tabs a.active,.method.active{background:linear-gradient(135deg,rgba(10,116,255,.28),rgba(24,217,243,.15))!important;border-color:rgba(36,162,255,.48)!important;color:white!important}.asset-hero,.balance{background:radial-gradient(circle at 0 0,rgba(24,217,243,.12),transparent 34%),linear-gradient(135deg,#0b2848,#0a3546)!important;border-color:rgba(38,161,222,.27)!important}.asset-total{font-size:38px!important}.action-tile{background:#0a1727!important;border-color:var(--v2-line)!important;transition:.18s ease}.action-tile:hover{transform:translateY(-2px);border-color:rgba(43,167,255,.42)!important}.action-icon,.menu-icon{background:linear-gradient(145deg,rgba(12,105,255,.19),rgba(24,217,243,.11))!important;color:#6bdff5!important}.row,.menu-row,.activity-row,.ticket{border-color:rgba(111,161,214,.12)!important}.back,.link{color:#61c8ff!important}.notice{background:#081423!important;border-color:var(--v2-line)!important}.address-box,.upload,.upload-box,.box,.quote{background:#071421!important;border-color:var(--v2-line)!important}.copy,.switch{background:#10253c!important;border-color:rgba(68,150,232,.25)!important;color:#dbeeff!important}.status,.pill{border:1px solid rgba(255,255,255,.05)}.chat-head,.composer{border-color:var(--v2-line)!important}.bubble.agent{background:#0e2238!important}.bubble.user{background:linear-gradient(135deg,#0b72ff,#139fe4)!important}.avatar{background:linear-gradient(135deg,#0b72ff,#18d9f3)!important}.gateway-hero::after{background-image:var(--dp-logo)!important;background-size:contain!important;background-repeat:no-repeat!important;background-position:center!important;color:transparent!important;content:""!important;width:320px;height:250px;right:4%!important;opacity:.88!important;filter:drop-shadow(0 0 24px rgba(0,130,255,.25))}.gateway-hero::before{display:none!important}.gateway-copy{max-width:620px!important}.gateway-copy h1{font-weight:800!important}.hero-trade-btn{background:linear-gradient(135deg,#0b74ff,#18d9f3)!important;border:0!important}.asset-hero-card{background:radial-gradient(circle at 0 0,rgba(24,217,243,.13),transparent 28%),linear-gradient(120deg,#0a294b,#0a3a4f)!important}.six-actions button{background:linear-gradient(180deg,#0d1f34,#081522)!important;border-color:var(--v2-line)!important}.six-actions button:hover{border-color:rgba(45,171,255,.42)!important}.trade-header,.chart-panel,.short-trade-card,.positions-panel{border-radius:20px!important}.home-market-row:hover,.market-row:hover{background:rgba(22,86,143,.12)!important}.pledge-card:hover{border-color:rgba(44,170,255,.38)!important}.mobile-nav{background:rgba(3,9,17,.95)!important;border-top-color:rgba(111,161,214,.16)!important}.mobile-nav .trade-center span{background:linear-gradient(135deg,#0b74ff,#18d9f3)!important}.shell>.top{min-height:64px}.wrap,.content{padding-bottom:92px!important}@media(max-width:720px){.gateway-hero::after{width:150px!important;height:120px!important;right:-1%!important;top:76%!important}.gateway-copy h1{font-size:34px!important}.shell{border:0!important}.top .brand::before{width:34px;height:28px}.card,.panel{border-radius:16px!important}.action-grid{gap:7px!important}}

/* ===== design-system.css ===== */
/* DApps Platform visual system — shared by trading, account, wallet and admin. */
:root{
  color-scheme:dark;
  --dp-ink:#06101e;--dp-bg:#030a15;--dp-surface:#0a1a2d;--dp-surface-raised:#0d223a;
  --dp-border:rgba(89,157,225,.25);--dp-border-strong:rgba(67,183,255,.48);
  --dp-text:#f3f9ff;--dp-muted:#a0b5cc;--dp-blue:#0879f9;--dp-cyan:#22d9ef;
  --dp-positive:#20d6a1;--dp-negative:#ff7282;
  --dp-primary:linear-gradient(105deg,#096df3 0%,#0a9cfa 55%,#16d6eb 100%);
  --dp-card:linear-gradient(155deg,rgba(14,35,59,.98),rgba(6,20,37,.98));
  --dp-shadow:0 18px 48px rgba(0,4,18,.34);
  --bg:var(--dp-bg);--panel:var(--dp-surface);--panel2:var(--dp-surface-raised);
  --line:var(--dp-border);--text:var(--dp-text);--muted:var(--dp-muted);
  --blue:var(--dp-blue);--cyan:var(--dp-cyan);--green:var(--dp-positive);--red:var(--dp-negative);
  --v2-bg:var(--dp-bg);--v2-panel:var(--dp-surface);--v2-panel2:var(--dp-surface-raised);
  --v2-line:var(--dp-border);--v2-text:var(--dp-text);--v2-muted:var(--dp-muted);
  --v2-blue:var(--dp-blue);--v2-cyan:var(--dp-cyan);--v2-green:var(--dp-positive);--v2-red:var(--dp-negative);
}
html{scrollbar-color:#315273 #071525}
body.platform-ui,body.admin-ui{background:radial-gradient(ellipse at 68% -12%,rgba(5,102,228,.15),transparent 36%),#030a15!important;color:var(--dp-text)!important;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;-webkit-font-smoothing:antialiased}
body.platform-ui ::selection,body.admin-ui ::selection{background:rgba(29,187,247,.4);color:#fff}
body.platform-ui :is(button,a,input,select,textarea):focus-visible,body.admin-ui :is(button,a,input,select,textarea):focus-visible{outline:2px solid #4fdcff!important;outline-offset:3px}
body.platform-ui :is(button,a),body.admin-ui :is(button,a){-webkit-tap-highlight-color:transparent}
/* Shared surfaces and copy. */
body.platform-ui :is(.card,.panel,.home-market-card,.balance-card,.chat-card,.short-trade-card),
body.admin-ui :is(.card,.panel,.login-card){background:var(--dp-card)!important;border:1px solid var(--dp-border)!important;box-shadow:var(--dp-shadow)!important;border-radius:18px!important}
body.platform-ui :is(h1,h2,h3,.title),body.admin-ui :is(h1,h2,h3){color:var(--dp-text)!important;letter-spacing:-.035em}
body.platform-ui :is(.muted,.lead,.sub,.hint),body.admin-ui :is(.muted,.sub){color:var(--dp-muted)!important}
body.platform-ui .eyebrow,body.admin-ui .eyebrow{color:#60dff6!important;letter-spacing:.14em!important}
body.platform-ui :is(.positive,.gain),body.admin-ui .positive{color:var(--dp-positive)!important}
body.platform-ui :is(.negative,.loss),body.admin-ui .negative{color:var(--dp-negative)!important}
/* Account and wallet pages keep their compact layout, with the same brand chrome. */
body.platform-ui .shell{background:linear-gradient(180deg,#071526,#06111f)!important;border-color:var(--dp-border)!important}
body.platform-ui .shell>.top{background:rgba(5,17,32,.96)!important;border-bottom:1px solid var(--dp-border)!important;backdrop-filter:blur(16px)!important}
body.platform-ui .shell>.top .brand{font-weight:800!important;letter-spacing:-.035em!important;color:#f4faff!important}
body.platform-ui .shell>.top .brand::before{background-image:url("../img/dp-logo-header.png?v=20260925-2")!important;}
body.platform-ui :is(.back,.link,.foot a){color:#71d6f8!important;text-decoration:none}
body.platform-ui :is(.back,.link,.foot a):hover{color:#b2f4ff!important}
body.platform-ui :is(.field input,.field select,.field textarea,.row input,.row select,.composer textarea),
body.admin-ui :is(.field input,.field select,.field textarea,.search,.setting-row input,select,textarea){background:#07182a!important;border:1px solid rgba(105,163,220,.31)!important;color:#f4faff!important;border-radius:11px!important;box-shadow:none!important}
body.platform-ui :is(.field input,.field select,.field textarea,.row input,.row select,.composer textarea):focus,
body.admin-ui :is(.field input,.field select,.field textarea,.search,.setting-row input,select,textarea):focus{border-color:#28b8f7!important;box-shadow:0 0 0 3px rgba(22,172,245,.14)!important;outline:0!important}
body.platform-ui input::placeholder,body.admin-ui input::placeholder,body.platform-ui textarea::placeholder,body.admin-ui textarea::placeholder{color:#718aa5!important;opacity:1}
body.platform-ui :is(.btn,.submit,.convert,.send,.primary-btn,.submit-trade,.pledge-btn,.sim-btn),
body.admin-ui :is(.primary,.btn.primary){background:var(--dp-primary)!important;color:white!important;border:1px solid rgba(61,206,255,.3)!important;border-radius:11px!important;box-shadow:0 11px 26px rgba(5,105,239,.25)!important;font-weight:750!important}
body.platform-ui :is(.btn,.submit,.convert,.send,.primary-btn,.submit-trade,.pledge-btn,.sim-btn):hover,
body.admin-ui :is(.primary,.btn.primary):hover{filter:brightness(1.12)!important;transform:translateY(-1px)}
body.platform-ui :is(.btn,.submit,.convert,.send,.primary-btn,.submit-trade,.pledge-btn):disabled{opacity:.48!important;cursor:not-allowed;transform:none!important}
body.platform-ui :is(.secondary,.copy,.tabs a,.method,.action-tile,.menu-row),
body.admin-ui :is(.ghost,.quick a,.row-actions button,.setting-row button){background:#0b2035!important;border-color:var(--dp-border)!important;color:#d9eafa!important}
body.platform-ui :is(.tabs a.active,.method.active){background:linear-gradient(110deg,rgba(6,113,248,.35),rgba(14,190,235,.15))!important;border-color:var(--dp-border-strong)!important;color:#fff!important}
body.platform-ui :is(.address-box,.upload,.upload-box,.box,.quote,.notice),body.admin-ui .setting-row{background:#091c30!important;border-color:var(--dp-border)!important}
body.platform-ui :is(.row,.menu-row,.activity-row,.ticket),body.admin-ui :is(th,td){border-bottom-color:rgba(104,164,219,.19)!important}
body.platform-ui :is(.asset-hero,.balance,.asset-hero-card){background:radial-gradient(circle at 12% 10%,rgba(25,201,242,.13),transparent 38%),linear-gradient(135deg,#0c2a4b,#0a3148)!important;border:1px solid rgba(60,173,238,.37)!important}
/* Trading screens: calm panels and consistent controls below the cinematic hero. */
body.platform-ui .topbar{background:rgba(5,16,31,.94)!important;border-bottom:1px solid var(--dp-border)!important}
body.platform-ui :is(.desktop-nav-v3 button,.home-market-tabs button,.filter,.timeframes button){color:#adc2d8!important}
body.platform-ui :is(.desktop-nav-v3 button.active,.home-market-tabs button.active,.filter.active,.timeframes button.active){color:#fff!important;background:rgba(14,119,236,.2)!important;border-color:rgba(61,180,246,.37)!important}
body.platform-ui :is(.market-row,.home-market-row,.positions-table-head,.home-market-head){border-color:rgba(103,164,222,.16)!important}
body.platform-ui .tech-hud{background:#061a35!important;border-color:#287dc0!important;box-shadow:0 12px 30px rgba(0,4,18,.6)!important}
/* Admin uses the same tokens while retaining its denser information layout. */
body.admin-ui .boot{background:#030a15!important}
body.admin-ui .boot-dot{background:var(--dp-cyan)!important}
body.admin-ui .side{background:#061425!important;border-right:1px solid var(--dp-border)!important}
body.admin-ui .side .brand::before,body.admin-ui .login-card .brand::before{background:url("../img/dp-logo-header.png?v=20260925-2") center/contain no-repeat!important}
body.admin-ui :is(.nav button:hover,.nav button.active){background:linear-gradient(110deg,rgba(6,113,248,.25),rgba(14,190,235,.1))!important;border-color:rgba(73,177,244,.3)!important;color:#fff!important}
body.admin-ui :is(.quick a,.card,.panel,.login-card){border-color:var(--dp-border)!important}
body.admin-ui :is(.badge,.status){background:rgba(20,113,232,.18)!important;color:#a9d8ff!important;border:1px solid rgba(67,171,244,.3)!important}
body.admin-ui :is(.top,.bar){border-color:var(--dp-border)!important}
@media(max-width:720px){body.platform-ui :is(.card,.panel,.home-market-card),body.admin-ui :is(.card,.panel){border-radius:15px!important}body.platform-ui .shell>.top{min-height:62px}}
@media(prefers-reduced-motion:reduce){body.platform-ui :is(button,a),body.admin-ui :is(button,a){transition:none!important}}
/* Preserve the hero composition while sharing the rest of the system. */
body.platform-ui .tech-title{letter-spacing:-.068em!important}
body.platform-ui .tech-title .gradient{color:transparent!important}
body.platform-ui .shell>.top .brand::before,
body.admin-ui :is(.side,.login-card) .brand::before{content:""!important;display:block!important;width:40px!important;height:34px!important;flex:none!important;background:url("../img/dp-logo-header.png?v=20260925-2") center/contain no-repeat!important;filter:drop-shadow(0 4px 10px rgba(5,129,255,.36))}
body.admin-ui .login-card .brand{display:flex!important;align-items:center!important;gap:10px!important}
body.platform-ui .shell>.top .brand{display:inline-flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;white-space:nowrap!important}
@media(min-width:901px){body.platform-ui .mobile-nav{display:none!important}body.platform-ui .app-shell{padding-bottom:0!important}}

@media(min-width:1101px){body.platform-ui{overflow-x:clip}body.platform-ui .topbar{width:100vw!important;margin-left:calc(50% - 50vw)!important;padding:0 max(4.5vw,34px)!important}}

/* 2026-09-25: hard-unify compact page logos with homepage header artwork */
body.platform-ui .shell>.top .brand.brand-real-logo::before{display:none!important;content:none!important}
body.platform-ui .shell>.top .brand.brand-real-logo{display:inline-flex!important;align-items:center!important;gap:14px!important;white-space:nowrap!important}
body.platform-ui .shell>.top .brand-real-logo-img{display:block!important;width:62px!important;height:52px!important;object-fit:contain!important;object-position:center!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;filter:drop-shadow(0 6px 14px rgba(0,119,255,.28))!important;flex:0 0 auto!important}
body.platform-ui .shell>.top .brand-real-logo>span{display:inline-block!important}
@media(max-width:620px){
 body.platform-ui .shell>.top .brand.brand-real-logo{gap:9px!important}
 body.platform-ui .shell>.top .brand-real-logo-img{width:54px!important;height:44px!important}
}
/* ===== mobile native-form behavior ===== */
@media(max-width:720px){
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea{
    font-size:16px!important;
    line-height:1.25;
  }
}
