:root {
  --sb-bg-0: #050b17;
  --sb-bg-1: #0b1428;
  --sb-bg-2: #0f1b34;
  --sb-panel: rgba(14, 25, 49, 0.72);
  --sb-panel-strong: rgba(17, 30, 57, 0.9);
  --sb-border: rgba(137, 166, 219, 0.2);
  --sb-text: #e8f0ff;
  --sb-muted: #a8b7d5;
  --sb-accent: #5b8cff;
  --sb-accent-soft: rgba(91, 140, 255, 0.2);
  --sb-danger: #ff4d63;
}

html,
body {
  background:
    radial-gradient(1200px 520px at 92% -8%, rgba(86, 137, 255, 0.2), transparent 55%),
    radial-gradient(900px 420px at -10% -12%, rgba(66, 184, 255, 0.12), transparent 60%),
    linear-gradient(180deg, var(--sb-bg-1), var(--sb-bg-0) 55%);
  color: var(--sb-text);
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.sb-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(143, 171, 222, 0.18);
  background: linear-gradient(180deg, rgba(9, 16, 31, 0.92), rgba(9, 16, 31, 0.82));
  backdrop-filter: blur(14px) saturate(140%);
}

.sb-nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.6rem 1rem 0.66rem;
}

.sb-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.sb-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  color: var(--sb-text);
  text-decoration: none;
  min-width: 0;
}

.sb-brand-icon {
  width: 2.12rem;
  height: 2.12rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(109, 151, 231, 0.45);
  box-shadow:
    0 0 0 1px rgba(6, 13, 26, 0.65) inset,
    0 8px 20px rgba(23, 58, 119, 0.28);
}

.sb-brand-text {
  font-size: 1.78rem;
  font-weight: 800;
  letter-spacing: 0.005em;
  line-height: 1;
}

.sb-scroll-row {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  white-space: nowrap;
}

.sb-scroll-row::-webkit-scrollbar {
  display: none;
}

.sb-nav-actions {
  justify-content: flex-end;
  flex: 1;
}

.sb-nav-primary {
  margin-top: 0.58rem;
  padding: 0.27rem;
  border: 1px solid rgba(135, 168, 222, 0.18);
  border-radius: 0.9rem;
  background: linear-gradient(180deg, rgba(18, 31, 58, 0.54), rgba(15, 26, 49, 0.52));
}

.sb-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  padding: 0.5rem 0.74rem;
  border-radius: 0.68rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--sb-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.sb-nav-link:hover {
  color: #f4f8ff;
  background: rgba(73, 110, 183, 0.18);
  border-color: rgba(125, 163, 239, 0.34);
}

.sb-nav-link.sb-active {
  color: #f4f8ff;
  background: linear-gradient(180deg, rgba(58, 101, 189, 0.5), rgba(50, 87, 161, 0.42));
  border-color: rgba(132, 173, 255, 0.52);
  box-shadow: 0 10px 24px rgba(9, 27, 63, 0.42);
}

.sb-chip {
  background: rgba(20, 33, 61, 0.72);
  border-color: rgba(130, 157, 208, 0.25);
}

.sb-signup {
  background: linear-gradient(180deg, #5d8fff, #4e7ce5);
  color: #fff;
  border-color: rgba(33, 67, 138, 0.8);
}

.sb-signup:hover {
  background: linear-gradient(180deg, #6c9aff, #557fe5);
  border-color: rgba(33, 67, 138, 0.95);
}

.sb-signout {
  color: #ffb9c3;
}

.sb-signout:hover {
  color: #ffd8df;
  background: rgba(255, 77, 99, 0.16);
  border-color: rgba(255, 108, 127, 0.4);
}

.sb-inline-form {
  display: inline;
  margin: 0;
  padding: 0;
}

.sb-icon-link {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
}

.sb-bell {
  width: 1.2rem;
  height: 1.2rem;
}

.sb-count {
  position: absolute;
  top: -0.22rem;
  right: -0.22rem;
  min-width: 1.1rem;
  height: 1.1rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.2rem;
  background: var(--sb-danger);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(9, 16, 31, 0.8);
}

.sb-profile-link {
  max-width: 13rem;
}

.sb-profile-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.sb-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
}

.sb-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.36rem;
  border-radius: 9999px;
  background: rgba(255, 77, 99, 0.17);
  color: #ffb8c2;
  border: 1px solid rgba(255, 113, 130, 0.44);
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
}

main.max-w-7xl {
  margin-top: 1.1rem !important;
}

.rounded-xl.border.border-gray-800.bg-gray-900 {
  border-color: rgba(134, 165, 216, 0.2) !important;
  background: linear-gradient(180deg, rgba(16, 29, 54, 0.76), rgba(12, 22, 43, 0.82)) !important;
  box-shadow:
    0 1px 0 rgba(173, 195, 231, 0.06) inset,
    0 14px 40px rgba(4, 10, 25, 0.46);
}

@media (max-width: 640px) {
  .sb-nav-inner {
    padding: 0.52rem 0.78rem 0.58rem;
  }

  .sb-brand-text {
    font-size: 1.55rem;
  }

  .sb-nav-head {
    gap: 0.48rem;
  }

  .sb-nav-actions {
    flex: 0 1 auto;
    max-width: 62vw;
  }

  .sb-profile-name {
    display: none;
  }

  .sb-nav-link {
    padding: 0.45rem 0.62rem;
    font-size: 0.84rem;
  }

  .sb-signout {
    width: 2.25rem;
    font-size: 0;
    padding: 0;
  }

  .sb-signout::before {
    content: "\23FB";
    font-size: 0.98rem;
    line-height: 1;
  }

  .sb-nav-primary {
    margin-top: 0.5rem;
    padding: 0.22rem;
    border-radius: 0.78rem;
  }

  main.max-w-7xl {
    margin-top: 0.82rem !important;
  }
}

@media (min-width: 900px) {
  .sb-nav-inner {
    padding: 0.66rem 1.3rem 0.74rem;
  }

  .sb-brand-text {
    font-size: 1.92rem;
  }

  .sb-nav-link {
    font-size: 0.94rem;
  }

  .sb-profile-link {
    max-width: 18rem;
  }
}
