/* CertShield Follow Up — hub button row
   Source: fup-central-2026-11-13-suspfix (live-equivalent).
   Fusion-tube CSS is identical in fusion24 and fusion25.
   Layers: NAVIMG_GLISTER_V1 framed glowing tiles + FUSION_TUBE_V1 active plasma tube.
   No app logic. Icon files live in ./icons/. */

.top-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px;
  background: linear-gradient(130deg, #010319, #010318 60%, #01041b);
  border: 1px solid rgba(125, 211, 252, .28);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .16);
  overflow: visible;
}

.top-tabs .tab-button {
  --plasma-hue: 198;
  --glisten-delay: 0s;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 1 1 150px;
  max-width: 220px;
  padding: 0;
  border: 1px solid rgba(170, 230, 255, .32);
  border-radius: 18px;
  background: #020511;
  line-height: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
  transition: transform .22s, box-shadow .22s, border-color .22s;
  box-shadow:
    inset 0 0 0 1.5px rgba(210, 245, 255, .28),
    inset 0 0 0 3px rgba(16, 32, 64, .45),
    0 0 0 1px rgba(140, 220, 255, .20),
    0 0 10px rgba(80, 180, 255, .12);
}

.tab-button img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.8;
  object-fit: fill;
  pointer-events: none;
}

.tab-button::before,
.tab-button::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  border-radius: inherit;
  mix-blend-mode: screen;
}

.tab-button::before {
  background: linear-gradient(112deg, transparent 38%, #d6ffff0a 43%, #b9faff8c 49%, #fff9 50%, #bcb1ff55 52%, transparent 59%);
  background-size: 350% 100%;
  animation: navimg-sweep 6.5s ease-in-out infinite;
  animation-delay: var(--glisten-delay);
  opacity: .24;
}

.tab-button::after {
  inset: 2px;
  padding: 4.5px;
  background: linear-gradient(115deg, #22d3ee20, #d3feffcc, #8876ff55, #f5b7ffcc, #22d3ee20);
  background-size: 400% 100%;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  animation: navimg-fluid 5.5s ease-in-out infinite;
  animation-delay: var(--glisten-delay);
  opacity: .55;
}

.top-tabs .tab-button:hover {
  transform: translateY(-4px);
  border-color: #84e9ff;
  background: #020511;
  box-shadow:
    inset 0 0 0 1.5px rgba(230, 255, 255, .4),
    inset 0 0 0 3px rgba(16, 32, 64, .4),
    0 0 0 1px rgba(160, 235, 255, .35),
    0 0 22px #58baff66, 0 9px 24px #0009;
}

.top-tabs .tab-button:focus-visible {
  outline: 3px solid #d9faff;
  outline-offset: 4px;
}

.top-tabs .tab-button.active {
  z-index: 5;
  border-color: hsla(var(--plasma-hue), 100%, 90%, .85);
  box-shadow:
    inset 0 0 0 1.5px hsla(var(--plasma-hue), 100%, 96%, .7),
    inset 0 0 0 3px hsla(var(--plasma-hue), 90%, 40%, .35),
    0 0 0 1px hsla(var(--plasma-hue), 100%, 92%, .65),
    0 0 24px 6px hsla(var(--plasma-hue), 100%, 72%, .9),
    0 0 48px 12px hsla(var(--plasma-hue), 95%, 58%, .48),
    0 0 96px 22px hsla(var(--plasma-hue), 90%, 50%, .22),
    0 20px 30px -2px hsla(var(--plasma-hue), 100%, 80%, .5),
    0 40px 54px -6px hsla(var(--plasma-hue), 95%, 60%, .28);
}

.fusion-tube {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
  overflow: visible;
}
.tube-glass-outer { stroke: rgba(210, 245, 255, .55); stroke-width: 3.2; }
.tube-glass-inner { stroke: rgba(8, 16, 40, .5); stroke-width: 1.15; }
.tube-plasma {
  stroke: hsla(var(--plasma-hue), 100%, 82%, .28);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 94;
  opacity: .55;
}
.tube-whoosh {
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 0 100;
  opacity: 0;
  filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 6px hsl(var(--plasma-hue), 100%, 70%));
}

.top-tabs .tab-button.active .tube-plasma {
  stroke: hsla(var(--plasma-hue), 100%, 88%, .95);
  stroke-width: 2.15;
  stroke-dasharray: 32 68;
  opacity: 1;
  filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 7px hsla(var(--plasma-hue), 100%, 70%, .95));
  animation: fusion-flow 4.4s linear infinite;
}
.top-tabs .tab-button.fusion-ignite .tube-whoosh {
  stroke-dasharray: 18 82;
  animation: fusion-whoosh .9s cubic-bezier(.15, .7, .15, 1) 1;
}

@keyframes navimg-sweep {
  0%, 15% { background-position: 100% 0; }
  65%, 100% { background-position: 0 0; }
}
@keyframes navimg-fluid {
  0%, 100% { background-position: 0% 50%; filter: hue-rotate(-12deg) brightness(.8); }
  50% { background-position: 100% 50%; filter: hue-rotate(16deg) brightness(1.3); }
}
@keyframes fusion-flow { to { stroke-dashoffset: -100; } }
@keyframes fusion-whoosh {
  0% { stroke-dashoffset: 8; opacity: 1; }
  80% { stroke-dashoffset: -100; opacity: 1; }
  100% { stroke-dashoffset: -112; opacity: 0; }
}

@media (max-width: 600px) {
  .top-tabs { gap: 9px; padding: 9px; }
  .top-tabs .tab-button { flex: 1 1 calc(50% - 9px); max-width: none; min-width: 0; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .tab-button::before, .tab-button::after { animation: none !important; }
  .tab-button::before { opacity: 0; }
  .top-tabs .tab-button { transition: none; }
  .top-tabs .tab-button:hover { transform: none; }
  .top-tabs .tab-button.active .tube-plasma,
  .top-tabs .tab-button.fusion-ignite .tube-whoosh { animation: none !important; }
  .top-tabs .tab-button.active .tube-plasma { stroke-dasharray: 100 0; }
  .tube-whoosh { opacity: 0 !important; }
}
