:root {
  --fortuna-shell-nav-max: 1280px;
  --fortuna-shell-content-max: var(--fortuna-shell-max, var(--fortuna-max, 1280px));
  --fortuna-shell-border-soft: var(--fortuna-border-soft, rgba(63, 63, 70, 0.52));
  --fortuna-shell-text: var(--fortuna-text, var(--fortuna-text-primary, #fafafa));
  --fortuna-shell-text-secondary: var(--fortuna-text-2, var(--fortuna-text-secondary, #d0d0d9));
  --fortuna-shell-accent: var(--fortuna-accent, #00d084);
}

.fortuna-shell-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--fortuna-shell-border-soft);
  backdrop-filter: blur(16px);
  background: rgba(7, 7, 9, 0.92);
}

.fortuna-shell-wrap,
.fortuna-auth-main {
  width: min(100%, var(--fortuna-shell-content-max));
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.fortuna-shell-footer-inner,
.fortuna-shell-topbar-inner {
  width: min(100%, var(--fortuna-shell-nav-max));
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.fortuna-shell-topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.fortuna-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fortuna-shell-text);
  font-weight: 800;
  flex: 0 0 auto;
}

.fortuna-brand-badge {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
}

.fortuna-brand-name {
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.fortuna-shell-nav,
.fortuna-auth-header-nav {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-left: auto;
  flex: 1 1 auto;
  min-width: 0;
}

.fortuna-shell-nav a,
.fortuna-auth-header-nav a {
  text-decoration: none;
  color: var(--fortuna-shell-text-secondary);
  font-size: 15px;
  font-weight: 600;
}

.fortuna-shell-nav a.active,
.fortuna-auth-header-nav a.active {
  color: var(--fortuna-shell-text);
  font-weight: 700;
}

.fortuna-shell-nav a[aria-disabled="true"],
.fortuna-shell-nav a.is-disabled {
  color: color-mix(in srgb, var(--fortuna-shell-text-secondary) 76%, transparent);
  cursor: default;
  pointer-events: none;
}

.fortuna-shell-nav a:hover,
.fortuna-auth-header-nav a:hover,
.fortuna-shell-footer-links a:hover {
  color: var(--fortuna-shell-text);
}

.fortuna-shell-wrap {
  padding-top: 34px;
  padding-bottom: 52px;
}

.fortuna-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin-bottom: 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 208, 132, 0.28);
  background: rgba(0, 208, 132, 0.08);
  color: var(--fortuna-shell-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-footer,
.review-footer,
.fortuna-shell-footer {
  border-top: 1px solid var(--fortuna-shell-border-soft);
  color: var(--fortuna-shell-text-secondary);
  font-size: 13px;
  padding: 18px 0 30px;
}

.fortuna-shell-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.fortuna-shell-footer-links {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
}

.fortuna-shell-footer-links a {
  color: var(--fortuna-shell-text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.fortuna-auth-main {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding-top: 36px;
  padding-bottom: 52px;
}

@media (max-width: 860px) {
  .fortuna-shell-topbar-inner {
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .fortuna-shell-nav,
  .fortuna-auth-header-nav {
    width: 100%;
    flex: 0 0 100%;
    justify-content: flex-start;
    margin-left: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .fortuna-shell-nav::-webkit-scrollbar,
  .fortuna-auth-header-nav::-webkit-scrollbar {
    display: none;
  }

  .fortuna-shell-nav a,
  .fortuna-auth-header-nav a {
    flex: 0 0 auto;
    font-size: 14px;
  }
}

@media (max-width: 520px) {
  .fortuna-shell-wrap,
  .fortuna-auth-main {
    padding-top: 20px;
    padding-bottom: 36px;
  }
}
