.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
}

.shell__bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--grad-1) 0%, var(--grad-2) 45%, var(--grad-3) 100%);
}

.shell__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
}

/* top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--bar-h-sm);
  display: flex;
  align-items: center;
  background: rgba(10, 8, 20, 0.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--fg-7);
}

.topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gp-3);
  height: 100%;
}

.topbar__brand img {
  height: 22px;
  width: auto;
}

.topbar__nav {
  display: none;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: var(--gp-3);
}

/* mobile tab pills */
.tabs {
  display: flex;
  gap: var(--gp-0);
  padding: var(--gp-1) var(--gp-3);
  background: rgba(8, 6, 18, 0.55);
}

.tabs__pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gp-0);
  padding: 10px var(--gp-3);
  border-radius: var(--rd-p);
  background: var(--fg-7);
  font-size: var(--fz-2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-2);
  color: var(--fg-3);
}

.tabs__pill.on {
  background: linear-gradient(180deg, var(--pri-l), var(--pri-d));
  color: var(--bk-1);
}

/* footer */
.ftr {
  margin-top: auto;
  padding: var(--gp-5) var(--gp-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gp-3);
  text-align: center;
}

.ftr__brand svg {
  width: 150px;
  height: auto;
}

.ftr__social {
  display: flex;
  gap: var(--gp-3);
}

.ftr__social svg {
  width: 22px;
  height: 22px;
}

.ftr__legal p {
  font-size: var(--fz-1);
  color: var(--fg-4);
  max-width: 560px;
}

.ftr__legal a {
  color: var(--fg-3);
  text-decoration: underline;
}

/* desktop */
@media (min-width: 860px) {
  .topbar {
    height: var(--bar-h);
  }

  .topbar__brand img {
    height: 26px;
  }

  .topbar__nav {
    display: flex;
    align-items: center;
    gap: var(--gp-4);
    margin-left: var(--gp-5);
  }

  .topbar__actions {
    margin-left: auto;
  }

  .tabs {
    display: none;
  }

  .ftr {
    padding: var(--gp-5) var(--gp-3);
  }
}
