.topbar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: linear-gradient(
    135deg,
    rgba(12, 16, 32, 0.98),
    rgba(6, 10, 20, 0.96)
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  backdrop-filter: blur(14px) saturate(1.3);
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  object-fit: contain;
  background: radial-gradient(circle at top, #fbbf24, #b45309);
  padding: 3px;
}

.brand-text h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #e5e7eb;
}

.brand-text p {
  margin: 0;
  font-size: 11px;
  color: #9ca3af;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  border: 0;
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.45);
  transition: all 0.18s ease-out;
}

.icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.75),
    0 10px 30px rgba(15, 23, 42, 0.45);
}

.icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  position: relative;
}

.icon-search {
  border-radius: 999px;
  border: 2px solid #e5e7eb;
  box-sizing: border-box;
}
.icon-search::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 999px;
  right: -2px;
  bottom: -1px;
  transform: rotate(42deg);
}

.icon-bell {
  border-radius: 0 0 12px 12px;
  border-top-left-radius: 999px;
  border-top-right-radius: 999px;
  border: 2px solid #e5e7eb;
  border-bottom-width: 0;
}
.icon-bell::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 3px;
  background: #e5e7eb;
  border-radius: 999px;
}

.icon-home {
  border-radius: 4px;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  border: 2px solid currentColor;
}
.icon-home::before {
  content: "";
  position: absolute;
  inset-inline: 3px;
  bottom: 7px;
  height: 2px;
  background: currentColor;
}
.icon-home::after {
  content: "";
  position: absolute;
  inset-inline: 4px;
  top: -3px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 7px solid currentColor;
}

.icon-users {
  border-radius: 999px;
  border: 2px solid currentColor;
}
.icon-users::before,
.icon-users::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 2px solid currentColor;
  width: 8px;
  height: 8px;
}
.icon-users::before {
  left: -4px;
  top: 9px;
}
.icon-users::after {
  right: -4px;
  top: 9px;
}

.icon-news {
  border-radius: 3px;
  border: 2px solid currentColor;
}
.icon-news::before,
.icon-news::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  height: 2px;
  background: currentColor;
}
.icon-news::before {
  top: 5px;
}
.icon-news::after {
  top: 11px;
}

.icon-star {
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    69% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    31% 57%,
    2% 35%,
    39% 35%
  );
  background: currentColor;
}

.icon-profile {
  border-radius: 999px;
  border: 2px solid currentColor;
}
.icon-profile::before {
  content: "";
  position: absolute;
  inset-inline: 3px;
  bottom: 3px;
  height: 5px;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-top: 0;
}
.icon-profile::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 2px solid currentColor;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
}

/* bottom nav icon-only */

.bottom-nav {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  height: var(--bottomnav-h);
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(3, 7, 18, 0.94);
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  backdrop-filter: blur(14px) saturate(1.4);
  z-index: 40;
}

.bottom-nav .item {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: rgba(148, 163, 184, 0.75);
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.18s ease-out;
}

.bottom-nav .item .icon {
  transform: scale(1.2);
  opacity: 0.55;
}

.bottom-nav .item small {
  display: none;
}

.bottom-nav .item.active,
.bottom-nav .item:hover {
  color: #facc15;
  transform: translateY(-1px);
}

.bottom-nav .item.active .icon,
.bottom-nav .item:hover .icon {
  opacity: 1;
}

@media (max-width: 640px) {
  .brand-text p {
    display: none;
  }
}
