/* Shared app header (Spot, Exchange, Demo, News). Same values as the Exchange header in premium.css and readability.css.
   Each page aligns .topbar-inner with its own content edges. */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500&display=swap');
.svg-defs{position:absolute;width:0;height:0;overflow:hidden}
.topbar svg,.environment-modal svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
:where(.topbar) button{border:0;background:none;font:inherit;cursor:pointer}
.topbar{position:sticky;top:0;z-index:30;height:102px;padding:0 30px;background:rgba(11,14,10,.92);backdrop-filter:blur(20px);border-bottom:1px solid #313b27;isolation:isolate;font-size:16px;color:#f0f4ed}
.topbar-inner{max-width:1380px;margin:auto;height:100%;display:flex;align-items:center;gap:30px}
.exchange-brand{position:relative;display:flex;align-items:center;width:220px;min-height:44px;flex-shrink:0}
.exchange-brand img{display:block;width:100%;max-width:100%;height:auto;object-fit:contain}
.exchange-nav{height:100%;display:flex;align-items:stretch;gap:26px}
.exchange-nav a{display:flex;align-items:center;gap:6px;font-size:15px;color:#b7c8a7;position:relative;transition:color .2s}
.exchange-nav a.active:after{content:'';position:absolute;bottom:0;left:0;right:0;height:2px;background:#c4f568;box-shadow:0 -4px 18px #c4f56844}
.exchange-nav svg{height:12px;width:12px;color:#c4f568}
.header-actions{display:flex;align-items:center;margin-left:auto;gap:16px}
.environment-button{display:flex;align-items:center;gap:8px;font-size:13px;color:#b7cba4;padding:7px 0;min-height:44px}
.environment-button>span:last-child{color:#69795e;margin-left:5px}
.preview-indicator{height:6px;width:6px;border:1px solid #9abf66;border-radius:50%}
.wallet-button{display:flex;align-items:center;padding:12px 16px;gap:9px;font-size:14px;min-height:44px;border:1px solid #c4f568;color:#1d2d0d;background:#c4f568;border-radius:5px;font-weight:600;box-shadow:0 0 25px #c4f56808}
.wallet-button:hover{background:#dcff9d}
.wallet-button svg{height:15px;width:15px}
.wallet-button>svg:last-child{height:13px;width:13px;margin-left:10px}
.environment-modal{width:440px;max-width:calc(100% - 32px);padding:38px;background:#1a2214;border:1px solid #4a5c37;border-radius:13px;box-shadow:0 30px 100px #0009;color:#f0f4ed}
.environment-modal::backdrop{background:rgba(7,10,4,.72);backdrop-filter:blur(8px)}
.environment-modal .modal-close{position:absolute;top:12px;right:15px;font-size:24px;color:#91a37b;border:0;background:none}
.modal-eyebrow{font-size:12px;font-weight:600;letter-spacing:2px;line-height:1.6;color:#9fb78b;margin:0 0 11px}
.environment-modal h2{font-family:Manrope,sans-serif;font-size:28px;font-weight:500;letter-spacing:-1px;margin:14px 0}
.environment-modal>p{font-size:14px;line-height:1.8;color:#a0b18b;margin:0 0 25px}
.environment-details{display:flex;flex-direction:column;margin:24px 0;border-top:1px solid #35482a}
.environment-details>div{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:14px 0;border-bottom:1px solid #35482a;font-size:14px;line-height:1.7;color:#8ea47a}
.environment-details strong{font-weight:400;color:#c1d8aa;text-align:right}
.modal-primary{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:13px 17px;background:#c4f568;color:#17200e;border-radius:5px;font-size:14px;font-weight:600}
.modal-primary svg{width:15px;height:15px}
@media(min-width:651px) and (max-width:1240px){.exchange-nav{min-width:0;overflow-x:auto;scrollbar-width:none}.exchange-nav a{flex-shrink:0}}
@media(min-width:1101px) and (max-width:1240px){.exchange-nav{gap:14px}.exchange-brand{width:170px}.topbar-inner{gap:24px}}
@media(max-width:1100px){.topbar-inner{gap:18px}.exchange-nav{gap:12px}.exchange-nav a{font-size:14px}.exchange-brand{width:150px}.wallet-button{padding:11px 12px}}
@media(max-width:900px){.topbar{padding:0 24px}.exchange-brand{width:155px}.exchange-nav{gap:14px}.exchange-nav a{font-size:13px}.header-actions{gap:10px}.wallet-button{font-size:13px;padding:10px}.wallet-button>svg{display:none}.environment-button{font-size:12px;gap:5px}}
@media(max-width:900px){.topbar{height:136px;padding:0 20px}.topbar-inner{height:82px;position:relative;gap:16px}.exchange-nav{position:absolute;top:82px;left:0;right:0;height:54px;gap:0;justify-content:space-between;border-top:1px solid #2a3821;max-width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}.exchange-nav a{font-size:14px;padding:0 8px;flex-shrink:0}.exchange-nav a:first-child{padding-left:0}.exchange-nav a:last-child{padding-right:0}.exchange-brand{width:180px}.header-actions{gap:12px}.wallet-button{font-size:14px}.environment-button{font-size:13px}}
@media(max-width:650px){.topbar{padding:0 18px}.topbar-inner{gap:10px}.exchange-nav a{padding:0 5px}.exchange-brand{width:145px}.header-actions{gap:9px}.wallet-button{font-size:13px;padding:10px;white-space:nowrap;border-radius:4px}.environment-button{font-size:12px;gap:5px}.environment-button>span:last-child{display:none}.preview-indicator{height:5px;width:5px}.environment-modal{padding:30px 24px}}
@media(max-width:370px){.exchange-brand{width:142px}.wallet-button{font-size:12px;padding:9px}}

/* "SOON" tag next to nav links for features that are not live yet. */
.nav-soon{display:inline-block;margin-left:5px;padding:2px 5px;border-radius:5px;background:#c4f568;color:#10170b;font:700 9px/1.2 'Space Grotesk',system-ui,sans-serif;letter-spacing:.8px;vertical-align:middle}
