* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0f172a;
  color: #ffffff;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 560px;
  background: #111827;
  border: 1px solid #253044;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.badge {
  display: inline-block;
  background: #2563eb;
  color: white;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  margin-bottom: 16px;
}

h1 {
  margin: 0 0 12px;
  font-size: 32px;
}

.subtitle {
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 22px;
}

.conditions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.conditions div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #253044;
  border-radius: 14px;
  background: #0b1220;
}

.conditions span {
  color: #94a3b8;
}

.conditions b {
  color: #ffffff;
}

button {
  width: 100%;
  border: none;
  background: #22c55e;
  color: #052e16;
  font-size: 18px;
  font-weight: 700;
  padding: 16px;
  border-radius: 16px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
}

.main-link {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: none;
  background: linear-gradient(120deg, #22c55e, #38bdf8, #a78bfa, #22c55e);
  background-size: 300% 300%;
  color: #ffffff;
  font-size: 19px;
  font-weight: 800;
  padding: 18px 16px;
  border-radius: 18px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.35);
  animation: gradientFlow 4s ease infinite, softPulse 2.4s ease-in-out infinite;
}

.main-link::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.38),
    transparent
  );
  transform: skewX(-20deg);
  animation: shineMove 3.2s ease-in-out infinite;
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes softPulse {
  0% {
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.25);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 32px rgba(56, 189, 248, 0.45);
    transform: scale(1.015);
  }

  100% {
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.25);
    transform: scale(1);
  }
}

@keyframes shineMove {
  0% {
    left: -80%;
  }

  45% {
    left: 130%;
  }

  100% {
    left: 130%;
  }
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

button.secondary {
  background: #334155;
  color: #ffffff;
  margin-top: 12px;
}

.hidden {
  display: none;
}

#loading {
  margin-top: 18px;
  color: #facc15;
}

.error {
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  background: #7f1d1d;
  color: #fecaca;
  line-height: 1.4;
}

.result {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #253044;
}

.result h2 {
  margin: 0 0 10px;
}

.success-text {
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 16px;
}

.result-info {
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  background: #0b1220;
  border: 1px solid #253044;
}

.result-info p {
  margin: 6px 0;
  color: #cbd5e1;
}

.result-info b {
  color: #ffffff;
}

.qr-block {
  margin-top: 22px;
  text-align: center;
}

.qr-block p {
  color: #cbd5e1;
  margin-bottom: 12px;
}

.qr {
  display: block;
  width: 220px;
  height: 220px;
  margin: 0 auto;
  background: white;
  padding: 10px;
  border-radius: 16px;
}

.manual-link {
  margin-top: 22px;
  border: 1px solid #253044;
  border-radius: 14px;
  padding: 14px;
  background: #0b1220;
}

.manual-link summary {
  cursor: pointer;
  color: #cbd5e1;
  font-weight: 700;
}

textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  border-radius: 14px;
  border: 1px solid #334155;
  background: #020617;
  color: #ffffff;
  padding: 12px;
  font-size: 14px;
  margin-top: 14px;
}

.hint {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.5;
}

.contacts {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #253044;
}

.contacts h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.contacts a {
  display: block;
  color: #93c5fd;
  background: #0b1220;
  border: 1px solid #253044;
  border-radius: 14px;
  padding: 12px 14px;
  text-decoration: none;
  margin-top: 10px;
}

.contacts a:hover,
button:hover {
  opacity: 0.9;
}

.main-link:hover {
  transform: scale(1.025);
  box-shadow: 0 0 38px rgba(56, 189, 248, 0.55);
}

@media (max-width: 480px) {
  .card {
    padding: 24px;
  }

  h1 {
    font-size: 28px;
  }
}
