.hidden {
  display: none !important;
}

.landing-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin: 4px 0 8px;
}

.landing-actions-guest,
.landing-actions-auth {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-auth-user {
  color: #b8caef;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  margin-right: 2px;
}

.landing-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid rgba(139, 172, 233, 0.38);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.landing-auth-btn:hover {
  transform: translateY(-1px);
}

.landing-auth-btn-secondary {
  color: #d4e2ff;
  background: rgba(10, 23, 52, 0.8);
}

.landing-auth-btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #2d63d9, #1b438f);
  box-shadow: 0 8px 18px rgba(22, 58, 132, 0.35);
}

.landing-auth-link {
  white-space: nowrap;
}

.landing-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(1, 4, 12, 0.64);
  display: grid;
  place-items: center;
  padding: 16px;
}

.landing-popup-modal {
  width: min(520px, 94vw);
  max-height: 92vh;
  overflow: auto;
  background: rgba(6, 14, 36, 0.94);
  border: 1px solid rgba(109, 151, 231, 0.34);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 5, 20, 0.68);
  padding: 20px;
}

.landing-popup-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #b8caef;
}

.landing-popup-progress-bar {
  margin-top: 10px;
  height: 6px;
  border-radius: 999px;
  background: rgba(126, 159, 221, 0.2);
  overflow: hidden;
}

.landing-popup-progress-fill {
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, #2d63d9, #4a83ff);
}

.landing-popup-progress-fill-2 {
  width: 100%;
}

.landing-popup-title-group {
  margin-top: 14px;
}

.landing-popup-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.landing-popup-subtitle {
  margin-top: 4px;
  color: #b7c8ee;
  font-size: 0.9rem;
  line-height: 1.45;
}

.landing-form-error-banner {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(176, 0, 32, 0.35);
  background: rgba(176, 0, 32, 0.08);
  color: #ffb8c2;
  font-size: 0.83rem;
}

.landing-popup-form-group {
  margin-top: 12px;
}

.landing-popup-label {
  display: block;
  margin-bottom: 6px;
  color: #d9e5ff;
  font-size: 0.86rem;
}

.landing-popup-input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(127, 161, 228, 0.38);
  background: rgba(4, 9, 24, 0.95);
  color: #f0f5ff;
}

.landing-popup-input:focus {
  outline: none;
  border-color: #4f86ff;
  box-shadow: 0 0 0 2px rgba(79, 134, 255, 0.22);
}

.landing-popup-form-group.has-error .landing-popup-input {
  border-color: #b00020;
}

.landing-field-error {
  margin-top: 6px;
  font-size: 0.76rem;
  color: #ff9aa8;
}

.landing-popup-terms {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.landing-popup-terms-label {
  display: flex;
  gap: 8px;
  color: #c8d7f8;
  font-size: 0.84rem;
  align-items: flex-start;
}

.landing-popup-terms-label a {
  color: #8bb4ff;
}

.landing-popup-buttons-row {
  margin-top: 16px;
  display: flex;
  gap: 10px;
}

.landing-popup-button {
  flex: 1;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.landing-popup-button-secondary {
  color: #d6e4ff;
  background: rgba(14, 29, 63, 0.92);
  border: 1px solid rgba(125, 160, 228, 0.28);
}

.landing-popup-button-primary {
  color: #fff;
  background: linear-gradient(180deg, #2d63d9, #1b438f);
}

.landing-popup-button.is-loading,
.landing-auth-btn.is-loading {
  opacity: 0.8;
  pointer-events: none;
}

.landing-popup-button.is-loading::after,
.landing-auth-btn.is-loading::after {
  content: "";
  width: 12px;
  height: 12px;
  margin-left: 8px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: rgba(255, 255, 255, 1);
  display: inline-block;
  animation: landingSpin 0.8s linear infinite;
}

.landing-popup-bottom-text {
  margin-top: 12px;
  color: #b8caef;
  font-size: 0.83rem;
}

.landing-popup-bottom-link {
  border: 0;
  background: none;
  color: #8bb4ff;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
}

@media (max-width: 640px) {
  .landing-actions {
    justify-content: center;
    flex-direction: column;
    align-items: stretch;
    margin-top: 6px;
    position: sticky;
    top: 10px;
    z-index: 25;
    background: rgba(5, 12, 32, 0.72);
    border: 1px solid rgba(109, 151, 231, 0.22);
    border-radius: 14px;
    padding: 8px;
    backdrop-filter: blur(8px);
  }

  .landing-actions-guest,
  .landing-actions-auth {
    justify-content: center;
    flex-wrap: wrap;
  }

  .landing-auth-btn {
    flex: 1;
    max-width: 220px;
  }

  .landing-popup-buttons-row {
    flex-direction: column;
  }
}

@keyframes landingSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
