/* Shared visual layer. No data, authentication, routing or trading changes. */
body>header .brand{display:flex;flex:0 0 auto;align-items:center;min-width:150px}
body>header .brand .mark{position:static;display:block;overflow:visible;width:150px;height:76px;filter:none}
body>header .brand .mark img{position:static;display:block;left:auto;top:auto;width:100%;height:100%;max-width:100%;object-fit:contain}
.join-brand{background:transparent;border:0;box-shadow:none;border-radius:0;overflow:visible;min-height:280px;padding:24px 0 42px}
.join-brand img{display:block;width:100%;max-width:460px;height:auto;mix-blend-mode:normal;filter:drop-shadow(0 8px 16px #00000025)}
.join-brand p{bottom:0;color:#9bc6bf;letter-spacing:3px}
#discover .card,#profile .panel,#account .panel,.network-stats,.join-steps article{background:linear-gradient(145deg,#142225,#0d1719 70%);border:1px solid #2a3f42;border-radius:14px;box-shadow:inset 0 1px #ffffff0c,0 7px 20px #00000025}
#discover .trader-invite{background:linear-gradient(135deg,#15332e,#101e21 75%);border-color:#32544d;box-shadow:inset 0 1px #ffffff10,0 8px 24px #00000024}
#discover .search,#discover select,#account input,#account select{background:#101c1e;border:1px solid #30484a;border-radius:8px}
#account input{padding:11px 12px}
#discover .primary,#account .primary,#profile .primary{background:linear-gradient(145deg,#42e2cb,#18bfae);border-color:#53e5d0;box-shadow:inset 0 1px #ffffff40,0 4px 12px #00000028;color:#06251f}
#discover h1,#account h1,#profile h1{letter-spacing:-1.3px}
body>header nav button.active{background:linear-gradient(0deg,#1b58432b,transparent);color:#7aeed8}
#discover .card strong,#profile .panel strong{font-variant-numeric:tabular-nums}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #86f9df;outline-offset:4px}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 #discover .card,#discover .primary,#account .primary,#profile .primary{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
 #discover .card:hover{transform:translateY(-3px);border-color:#4e7d73;box-shadow:inset 0 1px #ffffff15,0 12px 26px #00000038}
 #discover .primary:hover,#account .primary:hover,#profile .primary:hover{transform:translateY(-1px);box-shadow:0 0 16px #19dccb20}
}
@media(max-width:760px){
 body>header .brand{min-width:120px}
 body>header .brand .mark{width:120px;height:60px}
 body>header nav{max-width:100%;flex-wrap:wrap}
 .join-brand{display:flex;min-height:0;padding:18px 0 30px;margin:12px 0 8px}
 .join-brand img{max-width:240px}
 .join-brand p{font-size:9px;letter-spacing:2px;margin-bottom:0}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Compact phone header; preserve the existing navigation buttons and handlers. */
@media(max-width:760px){
 body>header{height:auto;min-height:0;display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:10px 5% 12px}
 body>header .brand{align-self:center;min-width:0;margin:0}
 body>header .brand .mark{width:112px;height:56px}
 body>header nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;max-width:100%;margin:0;gap:4px}
 body>header nav button{height:auto;min-height:44px;padding:9px 6px;margin:0;font-size:13px;line-height:1.3;border:1px solid transparent;border-radius:7px;white-space:normal}
 body>header nav button.active{border-color:#326258;background:#12322c;box-shadow:inset 0 -2px #39d7bc}
 body>header .demo{align-self:center}
 .topline{flex-wrap:wrap;gap:6px 14px;padding-top:18px;font-size:10px;letter-spacing:.5px}
}
