:root {
  --bg: #000000;
  --bg-mid: #06150f;
  --card: #141414;
  --card-2: #1c1c1c;
  --border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.64);
  --faint: rgba(255, 255, 255, 0.42);
  --accent: #00e68c;
  --accent-dim: rgba(0, 230, 140, 0.16);
  --danger: #ffb086;
  --radius: 16px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px 36px;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(0, 230, 140, 0.16), transparent 58%),
    radial-gradient(700px 480px at 110% 110%, rgba(0, 230, 140, 0.08), transparent 52%),
    linear-gradient(180deg, #000 0%, #06150f 100%);
  pointer-events: none;
  z-index: 0;
}

.wrap {
  width: min(440px, 100%);
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 22px;
}

.logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  margin: 0 0 12px;
  display: block;
}

.card-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand h1 {
  margin: 0 0 6px;
  font-size: 34px;
  letter-spacing: -0.04em;
  font-weight: 750;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  max-width: 34ch;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.panel {
  display: none;
}

.panel.on {
  display: block;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  color: var(--faint);
  margin: 0 0 6px;
}

.field {
  position: relative;
  margin-bottom: 12px;
}

input {
  width: 100%;
  height: 50px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 52px 0 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 16px;
  outline: none;
}

input:focus {
  border-color: rgba(0, 230, 140, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 230, 140, 0.16);
}

.toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  padding: 8px;
}

button.primary,
a.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 16px 14px;
  margin-top: 8px;
  background: var(--accent);
  color: #000;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

button.primary:hover,
a.primary:hover { filter: brightness(1.04); }

button.primary:disabled { opacity: 0.5; cursor: default; }

button.ghost,
a.ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
  padding: 15px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
}

.msg {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}

.msg.error { color: var(--danger); }
.msg.ok { color: var(--accent); }

.result {
  display: none;
  text-align: center;
  padding: 8px 4px 2px;
}

.result.on { display: block; }

.badge {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.badge.ok { background: var(--accent-dim); }
.badge.err { background: rgba(255, 176, 134, 0.14); }
.badge svg { width: 32px; height: 32px; }
.badge.ok svg { fill: var(--accent); }
.badge.err svg { fill: var(--danger); }

.features {
  display: grid;
  gap: 10px;
  margin: 22px 0 4px;
}

.feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature i {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.feature i svg { width: 18px; height: 18px; fill: var(--accent); }

.feature strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.feature span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.dots {
  display: none;
  gap: 6px;
  justify-content: center;
  align-items: center;
  height: 18px;
}

.dots.on { display: flex; }

.dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #000;
  animation: pulse 0.84s ease-in-out infinite;
}

.dots span:nth-child(2) { animation-delay: 0.14s; }
.dots span:nth-child(3) { animation-delay: 0.28s; }

@keyframes pulse {
  0%, 100% { opacity: 0.28; transform: scale(0.72); }
  50% { opacity: 1; transform: scale(1); }
}

.hidden { display: none !important; }

.foot {
  margin-top: 22px;
  text-align: center;
  color: var(--faint);
  font-size: 12px;
}

.foot a { color: var(--accent); text-decoration: none; }
