.koe-topbar-wrap{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:1030;
  padding:8px 24px 0;
  pointer-events:none;
}
.koe-topbar{
  display:flex;
  align-items:center;
  gap:22px;
  width:100%;
  max-width:1580px;
  margin:0 auto;
  padding:14px 38px 16px;
  border:1px solid rgba(148,163,184,.22);
  border-radius:18px;
  background:rgb(255 255 255 / 67%);
  box-shadow:0 18px 50px rgba(15,23,42,.10);
  backdrop-filter:blur(14px);
  pointer-events:auto;
}
.koe-topbar__brand{
  display:flex;
  align-items:center;
  flex:0 0 auto;
}
.koe-topbar__brand img{
  height:30px;
  width:auto;
  display:block;
}
.koe-topbar__links{
  display:flex;
  align-items:center;
  gap:10px;
  flex:1;
  min-width:0;
  padding:8px 4px 10px;
  margin:-8px -4px -10px;
  overflow:visible;
  overflow-y:visible;
  scrollbar-width:none;
}
.koe-topbar__links::-webkit-scrollbar{
  display:none;
}
.koe-nav-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:38px;
  padding:0 18px;
  border:1px solid #dbe3ef;
  border-radius:999px;
  background:#fff;
  color:#111827;
  font-size:.88rem;
  font-weight:700;
  white-space:nowrap;
  text-decoration:none;
  box-shadow:0 10px 24px rgba(15,23,42,.05);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease, background .2s ease;
}
.koe-nav-pill:hover{
  transform:translateY(-1px);
  color:#0a66c2;
  border-color:#b9d2f8;
  text-decoration:none;
  box-shadow:0 14px 30px rgba(15,23,42,.08);
}
.koe-nav-pill.is-active{
  background:linear-gradient(135deg,#1d5fd7,#2b77e7);
  color:#fff;
  border-color:#1d5fd7;
  box-shadow:0 14px 30px rgba(37,99,235,.24);
}
.koe-nav-pill svg{
  width:17px;
  height:17px;
  flex:0 0 auto;
  stroke:currentColor;
}
.koe-nav-green{ color:#23a428; }
.koe-nav-purple{ color:#7c4ce6; }
.koe-nav-teal{ color:#0da4b6; }
.koe-nav-orange{ color:#ff8400; }
.koe-nav-amber{ color:#f59e0b; }
.koe-user-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  width:50px;
  height:38px;
  border:0;
  border-radius:999px;
  background:#fff;
  color:#334155;
  box-shadow:0 14px 34px rgba(15,23,42,.10);
}
.koe-user-pill svg{
  width:18px;
  height:18px;
  stroke:currentColor;
}
.koe-view-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:38px;
  padding:0 16px;
  border:1px solid #0f172a;
  border-radius:999px;
  background:#0f172a;
  color:#fff;
  font-size:.82rem;
  font-weight:800;
  white-space:nowrap;
  box-shadow:0 14px 34px rgba(15,23,42,.14);
  cursor:pointer;
}
.koe-view-toggle:hover{
  background:#1f2937;
  color:#fff;
}
.koe-view-toggle svg{
  width:16px;
  height:16px;
  stroke:currentColor;
}
/* Admin dropdown */
.koe-admin-dropdown{
  position:relative;
  display:none;
}
.koe-admin-dropdown-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:38px;
  padding:0 16px;
  border:1px solid #7c3aed;
  border-radius:999px;
  background:linear-gradient(135deg,#7c3aed,#6d28d9);
  color:#fff;
  font-size:.82rem;
  font-weight:800;
  white-space:nowrap;
  cursor:pointer;
  box-shadow:0 8px 24px rgba(124,58,237,.3);
  transition:transform .18s ease, box-shadow .18s ease;
}
.koe-admin-dropdown-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 30px rgba(124,58,237,.4);
}
.koe-admin-dropdown-btn svg{
  width:16px;
  height:16px;
  stroke:currentColor;
}
.koe-admin-dropdown-btn .chevron-icon{
  width:14px;
  height:14px;
  transition:transform .2s ease;
}
.koe-admin-dropdown.is-open .chevron-icon{
  transform:rotate(180deg);
}
.koe-admin-dropdown-menu{
  display:none;
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  min-width:200px;
  padding:8px 0;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:14px;
  box-shadow:0 20px 50px rgba(15,23,42,.18);
  z-index:1060;
}
.koe-admin-dropdown.is-open .koe-admin-dropdown-menu{
  display:block;
}
.koe-admin-menu-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 18px;
  color:#334155;
  font-size:.88rem;
  font-weight:600;
  text-decoration:none;
  transition:background .15s ease, color .15s ease;
}
.koe-admin-menu-item:hover{
  background:#f1f5f9;
  color:#1d4ed8;
  text-decoration:none;
}
.koe-admin-menu-item.is-active{
  background:#ede9fe;
  color:#7c3aed;
}
.koe-admin-menu-item svg{
  width:18px;
  height:18px;
  flex:0 0 auto;
  stroke:currentColor;
}
@media (max-width:991.98px){
  .koe-topbar-wrap{
    padding:6px 10px 0;
  }
  .koe-topbar{
    gap:12px;
    padding:10px 14px 12px;
    border-radius:16px;
  }
  .koe-topbar__brand img{
    height:30px;
  }
  .koe-nav-pill{
    min-height:34px;
    padding:0 13px;
    font-size:.82rem;
  }
  .koe-topbar__links{
    padding:8px 4px 10px;
    margin:-8px -4px -10px;
    overflow-x:auto;
    overflow-y:visible;
  }
  .koe-user-pill{
    width:42px;
    height:34px;
  }
  .koe-view-toggle{
    min-height:34px;
    padding:0 12px;
    font-size:.78rem;
  }
  .koe-admin-dropdown-btn{
    min-height:34px;
    padding:0 12px;
    font-size:.78rem;
  }
  .koe-admin-dropdown-menu{
    right:-10px;
  }
}
