:root {
  --bg-0: #f0f1eb;
  --bg-1: #f7f8f2;
  --ink: #272a33;
  --muted: #626a76;
  --line: #dee1ea;
  --brand: #6f1ef5;
  --brand-2: #8f2aff;
  --ok: #4c1ca9;
  --danger: #b91c1c;
  --surface: rgba(255, 255, 255, 0.96);
  --shadow: 0 26px 60px rgba(24, 19, 39, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, var(--bg-0), var(--bg-1));
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-x: hidden;
}

#bg-particles,
.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-overlay {
  background:
    radial-gradient(500px 320px at 100% 40%, rgba(122, 34, 255, 0.14), transparent 70%),
    radial-gradient(500px 320px at 0% 85%, rgba(122, 34, 255, 0.08), transparent 70%);
}

.app {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  border: 1px solid #d8dce8;
  border-radius: 26px;
  padding: 82px 34px 30px;
  background: var(--surface);
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow);
}

.brand-badge {
  position: absolute;
  top: -42px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 340px;
  text-align: center;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #12131a;
  border: 4px solid rgba(111, 30, 245, 0.92);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(111, 30, 245, 0.24);
  padding: 10px 18px;
}

.app-header h1,
.panel h2,
.modal-head h3 {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
}

.subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  text-align: center;
}

.app-header h1 {
  text-align: center;
  font-size: 3rem;
  line-height: 1;
}

.panel {
  margin-top: 24px;
  padding: 0;
  border: 0;
  background: #ffffff;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.panel.is-active {
  opacity: 1;
  transform: translateY(0);
}

.panel-text {
  margin: 8px 0 18px;
  color: var(--muted);
}

.status-verified {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #b9e7cf;
  background: #eefaf4;
  color: #1f7a52;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-verified::before {
  content: "\2713";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2faf75;
  color: #fff;
  font-size: 0.72rem;
  display: grid;
  place-items: center;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.74rem;
  color: #767d88;
}

.field-row {
  display: flex;
  gap: 10px;
}

.input-combo {
  align-items: center;
  border: 1px solid #d9dde9;
  border-radius: 14px;
  padding: 6px;
  box-shadow: inset 0 1px 2px rgba(22, 24, 31, 0.05);
}

.input-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--brand-2), var(--brand));
  color: #fff;
  font-size: 1.3rem;
  display: grid;
  place-items: center;
}

input[type="text"] {
  flex: 1;
  min-width: 120px;
  border: 0;
  border-radius: 10px;
  padding: 12px 12px;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
}

input[type="text"]:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(22, 96, 136, 0.35);
  outline-offset: 2px;
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-hero {
  width: 100%;
  margin-top: 20px;
  font-size: 2.05rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(90deg, #7d14ff 0%, #9d31ff 100%);
  border: 2px solid #aa57ff;
  border-radius: 14px;
  box-shadow: 0 10px 20px rgba(125, 20, 255, 0.28);
}

.btn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  filter: grayscale(0.15);
}

.error {
  min-height: 1.3em;
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 0.92rem;
}

.platform-label {
  margin-top: 18px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.platform-btn {
  border: 1px solid #d9dde8;
  border-radius: 12px;
  background: #f9fafc;
  color: #414a57;
  font-family: inherit;
  font-weight: 700;
  min-height: 58px;
  cursor: pointer;
}

.platform-btn:hover,
.platform-btn[aria-pressed="true"] {
  border-color: #9d62ff;
  background: #f3eaff;
}

.loader {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 5px solid #dce9f3;
  border-top-color: var(--ok);
  animation: spin 900ms linear infinite;
}

.app-footer {
  margin-top: 24px;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
  color: #7a828f;
  font-size: 0.68rem;
  line-height: 1.35;
}

.app-footer p {
  margin: 3px 0;
}

.privacy-mini {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.58rem;
  letter-spacing: 0.03em;
  color: #6c56a8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.app-policy {
  width: min(760px, 100%);
  padding-top: 36px;
}

.policy-header h1,
.policy-header .subtitle {
  text-align: left;
}

.policy-header h1 {
  font-size: 2rem;
}

.policy-content {
  margin-top: 16px;
}

.policy-content h2 {
  margin: 16px 0 8px;
  font-size: 1.04rem;
}

.policy-content p {
  margin: 0 0 10px;
  color: #434c59;
  line-height: 1.5;
}

.policy-disclaimer {
  margin-top: 14px;
  font-size: 0.9rem;
}

.policy-back {
  margin-top: 10px;
  display: inline-flex;
  font-size: 0.96rem;
  padding: 10px 14px;
  border-radius: 10px;
  width: auto;
}

.captcha-shell {
  border: 1px dashed #c8d7e7;
  border-radius: 12px;
  min-height: 180px;
  padding: 14px;
  background: #fbfdff;
}

[hidden] {
  display: none !important;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes floatA {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes floatB {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(9px);
  }
}

@media (max-width: 720px) {
  body {
    padding: 70px 14px 14px;
  }

  .app {
    width: 100%;
    padding: 76px 18px 20px;
    border-radius: 20px;
  }

  .app-policy {
    padding-top: 22px;
  }

  .app-header h1 {
    font-size: 2.1rem;
  }

  .brand-badge {
    min-width: 250px;
    font-size: 1.4rem;
    top: -34px;
    border-width: 3px;
  }

  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .btn-hero {
    font-size: 1.5rem;
  }
}
