:root {
  color-scheme: dark;
  font-family:
    Inter, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI",
    sans-serif;

  background: #050816;
  color: #f8fafc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(
      circle at top left,
      rgba(37, 99, 235, 0.28),
      transparent 35%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(124, 58, 237, 0.22),
      transparent 35%
    ),
    #050816;
}

button,
input {
  font: inherit;
}

.container {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(760px, 100%);
  padding: clamp(22px, 5vw, 42px);
  border: 1px solid #1e293b;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.92);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
}

.badge {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid #334155;
  border-radius: 999px;
  color: #93c5fd;
  background: #172554;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1 {
  margin: 18px 0 8px;
  font-size: clamp(28px, 6vw, 45px);
  line-height: 1.1;
}

h2 {
  margin-top: 0;
}

.description {
  margin-bottom: 28px;
  color: #94a3b8;
  line-height: 1.7;
}

form {
  display: grid;
  gap: 17px;
}

label {
  display: grid;
  gap: 8px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid #334155;
  border-radius: 10px;
  outline: none;
  color: #f8fafc;
  background: #020617;
}

input:focus {
  border-color: #3b82f6;
  box-shadow:
    0 0 0 3px rgba(59, 130, 246, .18);
}

button,
.open-buttons a {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  color: white;
  background: #2563eb;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button:hover,
.open-buttons a:hover {
  background: #1d4ed8;
}

button:disabled {
  opacity: .65;
  cursor: wait;
}

.status {
  margin-top: 20px;
  border-radius: 10px;
  padding: 13px 15px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.status.info,
.status.loading {
  color: #bfdbfe;
  background: #172554;
}

.status.success {
  color: #bbf7d0;
  background: #052e16;
}

.status.error {
  color: #fecaca;
  background: #450a0a;
}

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

.link-row {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-top: 15px;
}

.link-info {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 7px;
}

.link-info strong {
  color: #cbd5e1;
  font-size: 13px;
}

.open-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.open-buttons a:last-child {
  background: #7c3aed;
}

.hidden {
  display: none;
}

@media (max-width: 620px) {
  .container {
    padding: 12px;
  }

  .link-row {
    align-items: stretch;
    flex-direction: column;
  }

  .link-row button,
  .open-buttons a {
    width: 100%;
  }
}
