.auth-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(255, 111, 24, 0.14), transparent 36%),
    rgba(7, 10, 18, 0.84);
  backdrop-filter: blur(8px);
}

.auth-gate-overlay.is-open {
  display: flex;
}

.auth-gate-modal {
  position: relative;
  width: min(92vw, 560px);
  padding: 30px 28px 28px;
  border: 1px solid rgba(255, 111, 24, 0.42);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(24, 28, 41, 0.98) 0%, rgba(13, 16, 25, 0.98) 100%);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #f7f1eb;
}

.auth-gate-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.auth-gate-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 111, 24, 0.48);
  border-radius: 999px;
  color: #ff6f18;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-gate-title {
  margin: 18px 0 10px;
  color: #fff5ee;
  font-size: 34px;
  line-height: 1.08;
  font-weight: 700;
}

.auth-gate-text {
  margin: 0 0 24px;
  color: rgba(255, 235, 222, 0.74);
  font-size: 16px;
  line-height: 1.5;
}

.auth-gate-actions {
  display: flex;
  gap: 12px;
}

.auth-gate-btn {
  flex: 1 1 0;
  min-height: 58px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.auth-gate-btn:hover {
  transform: translateY(-1px);
}

.auth-gate-btn--primary {
  border: 1px solid #ff6f18;
  background: #ff6f18;
  color: #151820;
  box-shadow: 0 12px 28px rgba(255, 111, 24, 0.24);
}

.auth-gate-btn--outline {
  border: 1px solid #ff6f18;
  background: transparent;
  color: #ff7d2f;
}

@media (max-width: 640px) {
  .auth-gate-overlay {
    padding: 16px;
  }

  .auth-gate-modal {
    padding: 24px 20px 20px;
    border-radius: 22px;
  }

  .auth-gate-title {
    font-size: 28px;
  }

  .auth-gate-text {
    font-size: 15px;
  }

  .auth-gate-actions {
    flex-direction: column;
  }
}
