.ecosystem-header { position: sticky; top: 0; z-index: 40; height: 72px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 0 16px; border-bottom: 1px solid var(--line); background: rgba(7,9,15,.96); backdrop-filter: blur(20px); }
.ecosystem-header .brand img { width: 44px; height: 44px; max-height: none; object-fit: contain; object-position: center; }
.brand-cluster { display: flex; align-items: center; gap: 8px; min-width: max-content; }
.brand-cluster .brand { display: inline-flex; align-items: center; gap: 10px; color: var(--frost); text-decoration: none; }
.brand-cluster .brand-mark { width: 30px; height: 30px; }
.brand-cluster .brand-label { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.main-link { padding: 9px 10px; border: 1px solid transparent; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 12px; }
.main-link:hover, .main-link.active { color: var(--frost); border-color: rgba(0,217,255,.34); background: rgba(0,217,255,.07); }
.ecosystem-nav { justify-self: center; min-width: 0; display: flex; justify-content: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.ecosystem-nav::-webkit-scrollbar { display: none; }
.ecosystem-nav a { flex: 0 0 auto; padding: 9px; border: 1px solid transparent; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 12px; white-space: nowrap; }
.ecosystem-nav a:hover, .ecosystem-nav a.active { color: var(--frost); border-color: rgba(0,217,255,.35); background: rgba(0,217,255,.07); box-shadow: inset 0 -1px 0 rgba(0,217,255,.75); }
.account-menu { position: relative; justify-self: end; }
.guest-signin { display: inline-flex; padding: 9px 12px; border: 1px solid rgba(0,217,255,.4); border-radius: 9px; color: var(--cyan); text-decoration: none; font-size: 12px; }
.guest-signin[hidden], .user-menu-trigger[hidden], .nav-campaigns[hidden], .signin-link[hidden] { display: none!important; }
.user-menu-trigger { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 4px 9px 4px 5px; border: 1px solid transparent; border-radius: 24px; background: transparent; color: var(--frost); }
.user-menu-trigger:hover, .user-menu-trigger[aria-expanded="true"] { border-color: rgba(0,217,255,.32); background: rgba(0,217,255,.07); }
.user-avatar { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--cyan); border-radius: 50%; color: var(--frost); background: radial-gradient(circle at 35% 28%, rgba(200,244,255,.26), rgba(43,70,98,.7) 42%, rgba(7,12,20,.96) 72%); box-shadow: 0 0 14px rgba(0,217,255,.14); font-size: 11px; font-weight: 800; }
.user-name { max-width: 135px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.user-chevron { color: var(--muted); font-size: 14px; transition: transform .16s ease; }
.user-menu-trigger[aria-expanded="true"] .user-chevron { transform: rotate(180deg); }
.user-dropdown { position: absolute; z-index: 50; top: calc(100% + 8px); right: 0; width: 180px; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: rgba(9,13,21,.98); box-shadow: 0 24px 70px rgba(0,0,0,.5); backdrop-filter: blur(18px); }
.user-dropdown[hidden] { display: none; }
.user-dropdown a, .user-dropdown button { width: 100%; display: block; padding: 11px 12px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; text-align: left; text-decoration: none; font-size: 12px; }
.user-dropdown a:hover, .user-dropdown button:hover, .user-dropdown a:focus-visible, .user-dropdown button:focus-visible { color: var(--frost); background: rgba(0,217,255,.08); }
.user-logout { border-top: 1px solid var(--line)!important; border-radius: 0 0 8px 8px!important; color: #ff9caa!important; }
@media (max-width: 1050px) { .user-name { max-width: 90px; } .ecosystem-nav a { padding: 8px 7px; font-size: 11px; } }
@media (max-width: 820px) { .ecosystem-header { grid-template-columns: 1fr auto; } .ecosystem-nav { position: fixed; z-index: 40; left: 8px; right: 8px; bottom: 8px; justify-content: flex-start; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: rgba(7,9,15,.97); box-shadow: 0 15px 50px rgba(0,0,0,.45); } .user-name, .user-chevron { display: none; } }
