.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 10, 26, .94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(91, 171, 255, .15);
  font: 700 13px/1.4 'Be Vietnam Pro', Arial, sans-serif;
}
.topbar .nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  height: 76px;
  width: min(1180px, calc(100% - 44px));
  margin-inline: auto;
}
.topbar .brand { justify-self: start; }
.brand-logo { display: block; position: relative; width: 100px; aspect-ratio: 2.43; overflow: hidden; }
.brand-logo img { position: absolute; width: 106%; height: auto; max-width: none; left: -4%; top: -38%; }
.topbar a { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: clamp(10px, 1.45vw, 22px); }
.nav-links a { color: #f0f5fc; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current] { color: #63dbff; }
.nav-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  color: #07152b;
  background: linear-gradient(100deg,#ff632f,#ff9b3e);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  clip-path: polygon(9px 0,100% 0,100% calc(100% - 9px),calc(100% - 9px) 100%,0 100%,0 9px);
}
.nav-cta:hover { filter: brightness(1.1); }
.menu-toggle, .nav-links .nav-portal-mobile { display: none; }
.topbar :focus-visible { outline: 2px solid #63dbff; outline-offset: 3px; }
@media (max-width: 920px) {
  .topbar .nav { height: 68px; width: calc(100% - 30px); grid-template-columns: 1fr auto; }
  .menu-toggle { display: grid; place-items: center; width: 42px; height: 40px; padding: 0; font: inherit; color: #fff; background: none; border: 1px solid #395473; border-radius: 8px; cursor: pointer; }
  .nav-links { display: none; position: absolute; inset: 100% 0 auto; padding: 12px 15px; background: #08152b; flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100dvh - 69px); overflow: auto; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 9px; }
  .nav-cta { display: none; }
  .nav-links .nav-portal-mobile { display: block; color: #ffad65; }
}
:root {
  --corner-right: max(22px, env(safe-area-inset-right));
  --corner-bottom: max(18px, env(safe-area-inset-bottom));
}
.inc-floating {
  position: fixed;
  z-index: 90;
  right: var(--corner-right);
  bottom: var(--corner-bottom);
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  padding: 7px 14px 7px 7px;
  border: 1px solid #ffd39f;
  border-radius: 999px;
  background: linear-gradient(115deg, #ffae50, #ff8a3d);
  box-shadow: 0 6px 20px #0009, 0 0 18px #ff923a55;
  color: #0b1931;
  font: 850 11px/1.2 'Be Vietnam Pro', Arial, sans-serif;
  letter-spacing: .025em;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease;
  transform-origin: right center;
  animation: inc-zoom 3.8s ease-in-out 3;
}
.backtop {
  right: var(--corner-right);
  bottom: calc(var(--corner-bottom) + 64px);
}
.inc-floating::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, #fff8 48%, transparent 66%);
  transform: translateX(-110%);
  animation: inc-shine 3.8s ease-in-out 3;
  pointer-events: none;
}
.inc-floating img {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #09223f;
  box-shadow: 0 0 0 1px #3dd7ff, 0 0 9px #09599f99;
}
.inc-floating:hover, .inc-floating:focus-visible {
  color: #0b1931;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px #0009, 0 0 20px #ff923a88;
}
.inc-floating:focus-visible { outline: 2px solid #67deff; outline-offset: 3px; }
@keyframes inc-shine {
  0%, 36% { transform: translateX(-110%); }
  68%, 100% { transform: translateX(110%); }
}
@keyframes inc-zoom {
  0%, 30%, 68%, 100% { scale: 1; }
  49% { scale: 1.09; }
}
@media (max-width: 600px) {
  :root {
    --corner-right: max(12px, env(safe-area-inset-right));
    --corner-bottom: max(12px, env(safe-area-inset-bottom));
  }
  .inc-floating { padding: 7px; }
  .inc-floating span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .inc-floating { animation: none; transition: none; }
  .inc-floating::before { animation: none; }
  .inc-floating:hover, .inc-floating:focus-visible { transform: none; }
}
@media print { .topbar, .inc-floating { display: none; } }
