.hero__topbar,
.auth-hero__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__topbar {
  margin-bottom: 14px;
}

.auth-hero__topbar {
  margin-bottom: 18px;
}

.support-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(37, 211, 102, 0.24);
  background: rgba(37, 211, 102, 0.08);
  color: #166534;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.support-link:hover {
  background: rgba(37, 211, 102, 0.14);
  border-color: rgba(37, 211, 102, 0.36);
  transform: translateY(-1px);
}

.support-link--plans {
  justify-self: end;
  margin-left: auto;
}

.support-link__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  flex-shrink: 0;
}

.support-link__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.support-link[aria-label="Abrir planos do PsicoTarefas"] .support-link__icon {
  position: relative;
}

.support-link[aria-label="Abrir planos do PsicoTarefas"] .support-link__icon svg {
  display: none;
}

.support-link[aria-label="Abrir planos do PsicoTarefas"] .support-link__icon::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(currentColor 0 0) left 1px bottom 1px / 100% 2px no-repeat,
    linear-gradient(currentColor 0 0) left 3px bottom 3px / 3px 7px no-repeat,
    linear-gradient(currentColor 0 0) center bottom 3px / 3px 12px no-repeat,
    linear-gradient(currentColor 0 0) right 3px bottom 3px / 3px 9px no-repeat;
  border-radius: 2px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: #0d46d0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.topbar__meta.topbar__meta--nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-bottom: 10px;
}

.topbar__meta.topbar__meta--nav .back-link {
  margin-right: auto;
}

.topbar__meta.topbar__meta--nav .support-link {
  margin-left: auto;
}

.topbar__meta {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.support-bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 920;
  display: flex;
  justify-content: center;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(35, 48, 70, 0.86);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(14px);
}

.support-bottom-bar__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 180px;
  padding: 12px 18px;
  border-radius: 16px;
  background: rgba(37, 211, 102, 0.14);
  border: 1px solid rgba(37, 211, 102, 0.24);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.support-bottom-bar__button:hover {
  background: rgba(37, 211, 102, 0.22);
  border-color: rgba(37, 211, 102, 0.36);
  transform: translateY(-1px);
}

.bottom-nav__menu {
  min-width: 220px;
  max-height: min(72vh, 560px);
  overflow-y: auto;
}

@media (max-width: 640px) {
  .hero__topbar,
  .auth-hero__topbar {
    align-items: flex-start;
  }

  .support-link {
    padding: 9px 12px;
    font-size: 13px;
  }

  .back-link {
    padding: 8px 0;
    font-size: 13px;
  }

  .topbar__meta.topbar__meta--nav {
    margin-bottom: 8px;
  }

  .topbar__meta {
    margin-bottom: 8px;
  }

  .support-bottom-bar {
    padding-inline: 10px;
  }

  .support-bottom-bar__button {
    width: 100%;
    max-width: 320px;
    min-width: 0;
    font-size: 13px;
  }

  .bottom-nav__menu {
    min-width: min(260px, calc(100vw - 24px));
  }
}
