.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 40;
  padding: 18px 32px 0;
  transition:
    top 0.28s ease,
    padding 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease,
    backdrop-filter 0.28s ease,
    -webkit-backdrop-filter 0.28s ease;
}

.hero {
  padding-top: 134px;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 30px rgba(17, 31, 58, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.flash-stack {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 90;
  width: min(380px, calc(100% - 24px));
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.flash-message {
  padding: 15px 18px;
  border-radius: 20px;
  border: 1px solid rgba(184, 204, 228, 0.86);
  background: rgba(255, 255, 255, 0.94);
  color: #102039;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
  box-shadow: 0 24px 50px rgba(17, 31, 58, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: auto;
  animation: flashSlideIn 0.28s ease;
}

.flash-message--success {
  border-color: rgba(93, 181, 125, 0.34);
  box-shadow:
    inset 4px 0 0 #3fb26d,
    0 24px 50px rgba(17, 31, 58, 0.16);
}

.flash-message--error,
.flash-message--danger {
  border-color: rgba(224, 94, 94, 0.34);
  box-shadow:
    inset 4px 0 0 #d64545,
    0 24px 50px rgba(17, 31, 58, 0.16);
}

.flash-message--warning {
  border-color: rgba(240, 173, 78, 0.34);
  box-shadow:
    inset 4px 0 0 #e5a034,
    0 24px 50px rgba(17, 31, 58, 0.16);
}

.site-header__shell {
  width: min(1280px, 100%);
  margin: 0 auto;
  min-height: 74px;
  position: relative;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 22px;
}

.site-logo,
.site-logo__mark,
.site-logo__text {
  display: none !important;
}

.site-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  justify-self: center;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-nav__item {
  position: relative;
}

.site-nav__link {
  min-height: 42px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: #24314a;
  font-size: 0.95rem;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  box-shadow: 0 0 0 rgba(24, 58, 102, 0);
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease;
}

.site-nav__link:hover {
  color: #0d1728;
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(184, 204, 228, 0.55);
}

.site-nav__link.is-active,
.site-nav__item.is-active .site-nav__link,
.site-nav__item.is-open .site-nav__link {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(19, 47, 90, 0.96) 0%, rgba(79, 142, 211, 0.94) 100%);
  border-color: rgba(114, 170, 230, 0.78);
  box-shadow: 0 14px 26px rgba(41, 88, 151, 0.22);
}

.site-nav__link--button {
  border: 0;
  cursor: pointer;
  font: inherit;
  background: transparent;
}

.site-nav__caret {
  width: 9px;
  height: 9px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.22s ease;
}

.site-nav__item.is-open .site-nav__caret {
  transform: rotate(-135deg) translateY(-1px);
}

.plans-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  width: min(460px, 72vw);
  padding: 14px;
  display: grid;
  gap: 6px;
  border-radius: 28px;
  border: 1px solid rgba(184, 204, 228, 0.82);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(239, 247, 255, 0.92) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px rgba(17, 31, 58, 0.17);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease;
}

.plans-dropdown::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 16px;
  height: 16px;
  transform: translateX(-50%) rotate(45deg);
  border-top: 1px solid rgba(184, 204, 228, 0.82);
  border-left: 1px solid rgba(184, 204, 228, 0.82);
  background: rgba(251, 253, 255, 0.96);
  border-top-left-radius: 4px;
}

.site-nav__item.is-open .plans-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.plans-dropdown__item {
  padding: 16px 18px;
  border-radius: 20px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0);
  border: 1px solid transparent;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.plans-dropdown__item:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(132, 183, 234, 0.44);
  box-shadow: 0 12px 24px rgba(92, 169, 232, 0.1);
}

.plans-dropdown__item strong {
  display: block;
  margin-bottom: 5px;
  color: #0d1728;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.plans-dropdown__item span {
  display: block;
  color: #62738e;
  font-size: 0.88rem;
  line-height: 1.55;
}

.site-header__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.site-header__actions--user {
  position: relative;
}

.site-header__action {
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease;
}

.site-header__action:hover {
  transform: translateY(-1px);
}

.site-header__action--ghost {
  color: #20304b;
  background: transparent;
}

.site-header__action--ghost:hover {
  box-shadow: none;
  color: #0d1728;
}

.site-header__action--primary {
  color: #fff;
  background: linear-gradient(180deg, #101114 0%, #07080a 100%);
  box-shadow: 0 14px 28px rgba(5, 5, 5, 0.18);
}

.site-header__action--primary:hover {
  box-shadow: 0 18px 34px rgba(5, 5, 5, 0.24);
}

.site-user-menu {
  position: relative;
}

.site-user-menu__trigger {
  min-height: 48px;
  padding: 6px 10px 6px 8px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.74);
  color: #13213a;
  font: inherit;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(220, 231, 243, 0.9);
}

.site-user-menu__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #8bc8f6 0%, #5ca9e8 100%);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
}

.site-user-menu__name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-user-menu__caret {
  width: 9px;
  height: 9px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.22s ease;
}

.site-user-menu.is-open .site-user-menu__caret {
  transform: rotate(-135deg) translateY(-1px);
}

.site-user-menu__dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 220px;
  padding: 10px;
  display: grid;
  gap: 6px;
  border-radius: 22px;
  border: 1px solid rgba(184, 204, 228, 0.82);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 50px rgba(17, 31, 58, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.site-user-menu.is-open .site-user-menu__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.site-user-menu__item {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #14233c;
  font-size: 0.94rem;
  font-weight: 700;
  background: rgba(249, 251, 254, 0.8);
  box-shadow: inset 0 0 0 1px rgba(229, 236, 246, 0.9);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.site-user-menu__item:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(203, 217, 235, 0.96),
    0 12px 24px rgba(17, 31, 58, 0.08);
}

.site-user-menu__item--button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.site-user-menu__item--dashboard {
  color: #c53030;
  background: rgba(255, 240, 240, 0.94);
  box-shadow: inset 0 0 0 1px rgba(243, 190, 190, 0.9);
}

.site-user-menu__item--dashboard:hover {
  color: #9b1c1c;
  background: rgba(255, 233, 233, 0.98);
  box-shadow:
    inset 0 0 0 1px rgba(234, 160, 160, 0.95),
    0 12px 24px rgba(197, 48, 48, 0.12);
}

.site-header__toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  place-content: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 26px rgba(18, 30, 54, 0.08);
  cursor: pointer;
}

.site-header__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #16223b;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  justify-content: flex-end;
  background: rgba(6, 12, 24, 0.34);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav__panel {
  width: min(420px, 100%);
  height: 100dvh;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: linear-gradient(180deg, rgba(252, 253, 255, 0.96) 0%, rgba(244, 248, 253, 0.98) 100%);
  box-shadow: -24px 0 54px rgba(11, 24, 49, 0.18);
  transform: translateX(100%);
  transition: transform 0.32s ease;
}

.mobile-nav.is-open .mobile-nav__panel {
  transform: translateX(0);
}

.mobile-nav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav__eyebrow {
  color: #72819b;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mobile-nav__close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(18, 30, 54, 0.06);
  color: #16223b;
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-nav__links {
  display: grid;
  gap: 10px;
}

.mobile-nav__link,
.mobile-nav__sublink {
  text-decoration: none;
  color: #16223b;
  font-weight: 700;
}

.mobile-nav__link {
  min-height: 54px;
  padding: 0 16px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(226, 234, 245, 0.94);
}

.mobile-nav__link--button {
  width: 100%;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.mobile-nav__plus {
  font-size: 1.35rem;
  transition: transform 0.22s ease;
}

.mobile-nav__group.is-open .mobile-nav__plus {
  transform: rotate(45deg);
}

.mobile-nav__submenu {
  display: grid;
  gap: 8px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.24s ease;
}

.mobile-nav__sublink {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  background: rgba(232, 241, 251, 0.7);
  color: #3d5377;
}

.mobile-nav__actions {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.mobile-nav__action {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.mobile-nav__action--ghost {
  color: #1c2a43;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(221, 231, 243, 0.94);
}

.mobile-nav__action--dashboard {
  color: #c53030;
  background: rgba(255, 241, 241, 0.94);
  box-shadow: inset 0 0 0 1px rgba(243, 190, 190, 0.9);
}

.mobile-nav__action--primary {
  color: #fff;
  background: linear-gradient(180deg, #101114 0%, #07080a 100%);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.auth-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 28, 0.56);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.auth-modal__dialog {
  position: relative;
  width: min(100%, 480px);
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 249, 255, 0.98) 100%);
  border: 1px solid rgba(214, 226, 242, 0.9);
  box-shadow: 0 30px 70px rgba(11, 24, 49, 0.24);
  transform: translateY(14px);
  transition: transform 0.28s ease;
}

.auth-modal.is-open .auth-modal__dialog {
  transform: translateY(0);
}

.auth-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 14px;
  background: rgba(18, 30, 54, 0.06);
  color: #16223b;
  font-size: 1.4rem;
  cursor: pointer;
}

.auth-modal__eyebrow {
  margin-bottom: 10px;
  color: #6c7b95;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-modal__title {
  margin: 0 0 20px;
  color: #101828;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-social {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(208, 220, 236, 0.94);
  background: rgba(255, 255, 255, 0.96);
  color: #13213a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.auth-social:hover {
  transform: translateY(-1px);
  border-color: rgba(132, 183, 234, 0.72);
  box-shadow: 0 14px 28px rgba(92, 169, 232, 0.12);
}

.auth-social--disabled,
.auth-social:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
  box-shadow: none;
}

.auth-social__icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.auth-social__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.auth-form__divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.auth-form__divider::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: rgba(216, 227, 240, 0.94);
}

.auth-form__divider span {
  position: relative;
  z-index: 1;
  padding: 0 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 249, 255, 0.98) 100%);
  color: #7a88a0;
  font-size: 0.84rem;
  font-weight: 700;
}

.auth-form__field {
  display: grid;
  gap: 8px;
}

.auth-form__field span {
  color: #65748f;
  font-size: 0.88rem;
  font-weight: 700;
}

.auth-form__field input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(208, 220, 236, 0.94);
  background: rgba(255, 255, 255, 0.94);
  color: #13213a;
  font: inherit;
  outline: none;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.auth-form__field input:focus {
  border-color: rgba(92, 169, 232, 0.84);
  box-shadow: 0 0 0 4px rgba(92, 169, 232, 0.14);
}

.auth-form__helper {
  color: #5a86c9;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.auth-form__submit {
  min-height: 56px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, #111216 0%, #050608 100%);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(5, 6, 8, 0.18);
}

.auth-form__error {
  color: #b42318;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
}

body.is-locked {
  overflow: hidden;
  touch-action: none;
}

@media (max-width: 640px) {
  .flash-stack {
    top: 14px;
    right: 12px;
    left: 12px;
    width: auto;
  }

  .flash-message {
    border-radius: 18px;
    font-size: 0.92rem;
  }
}

@keyframes flashSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
