:root {
  --bg: #0a0a0a;
  --surface: #161616;
  --input: #1a1a1a;
  --tag: #1e1e1e;
  --text: #fff;
  --muted: #777;
  --snap: #fffc00;
  --plus: #ff9500;
  --border: rgba(255, 252, 0, 0.4);
  --r: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 14px;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 40% at 50% -5%, rgba(255, 252, 0, 0.06), transparent 55%),
    var(--bg);
  display: flex;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) 16px 40px;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: in 0.5s ease both;
}

@keyframes in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes glow {
  0%,
  100% {
    border-color: rgba(255, 252, 0, 0.3);
  }
  50% {
    border-color: rgba(255, 252, 0, 0.65);
  }
}

.logo {
  position: relative;
  width: 52px;
  height: 52px;
  margin-top: 4px;
  animation: float 3s ease-in-out infinite;
}

.logo .ghost {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 8px rgba(255, 252, 0, 0.3));
}

.logo .plus-badge {
  position: absolute;
  top: -2px;
  right: -7px;
  width: 16px;
  height: 16px;
  color: #fff;
}

.logo .plus-badge svg {
  width: 100%;
  height: 100%;
}

.brand {
  display: flex;
  align-items: baseline;
  line-height: 1;
}

.brand-name {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-plus {
  font-size: 2rem;
  font-weight: 800;
  color: var(--plus);
  margin-left: 1px;
}

.toast {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.95);
  font-size: 0.75rem;
  font-weight: 700;
  animation: in 0.4s ease 0.1s both, glow 3s ease-in-out 0.6s infinite;
  max-width: 100%;
}

.toast svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--snap);
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  width: 100%;
}

.feature {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 10px;
  background: var(--tag);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15;
  transition: background 0.15s;
}

.feature:hover {
  background: #252525;
}

.feature svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--snap);
}

.form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 2px;
}

.form label {
  font-size: 0.8rem;
  font-weight: 700;
  padding-left: 1px;
}

.field {
  position: relative;
  display: flex;
  align-items: center;
}

.field .icon {
  position: absolute;
  left: 12px;
  width: 15px;
  height: 15px;
  color: #555;
  pointer-events: none;
}

.field input {
  width: 100%;
  padding: 12px 12px 12px 34px;
  background: var(--input);
  border: 1px solid transparent;
  border-radius: var(--r);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  outline: none;
  -webkit-appearance: none;
  transition: border-color 0.15s;
}

.field input::placeholder {
  color: #4a4a4a;
  font-weight: 500;
}

.field input:focus {
  border-color: var(--border);
}

.field-phone .icon {
  left: 12px;
}

.field-phone .phone-prefix {
  position: absolute;
  left: 34px;
  z-index: 1;
  font-size: 0.82rem;
  font-weight: 800;
  color: #8a8a8a;
  pointer-events: none;
  letter-spacing: 0.01em;
}

.field-phone .phone-sep {
  position: absolute;
  left: 88px;
  top: 50%;
  width: 1px;
  height: 18px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.field-phone input {
  padding-left: 100px;
  letter-spacing: 0.02em;
}

.cta {
  width: 100%;
  margin-top: 3px;
  padding: 12px 16px;
  border: none;
  border-radius: var(--r);
  background: linear-gradient(180deg, #fffc00, #ebe000);
  color: #111;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: 0 4px 16px rgba(255, 252, 0, 0.18);
  transition: transform 0.12s, filter 0.15s;
}

.cta svg {
  width: 15px;
  height: 15px;
}

.cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.cta:active {
  transform: none;
}

.cta:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 2px;
}

.hint svg {
  width: 11px;
  height: 11px;
  color: var(--plus);
}

.success {
  display: none;
  width: 100%;
  text-align: center;
  padding: 22px 16px;
  background: var(--surface);
  border-radius: var(--r);
  border: 1px solid rgba(255, 252, 0, 0.18);
  animation: in 0.35s ease both;
}

.success.on {
  display: block;
}

.success svg {
  width: 36px;
  height: 36px;
  color: var(--snap);
  margin-bottom: 10px;
}

.success h2 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 5px;
}

.success p {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.4;
}

.hide {
  display: none !important;
}

.faq-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  transition: color 0.15s;
}

.faq-link svg {
  width: 14px;
  height: 14px;
  color: var(--snap);
}

.faq-link:hover {
  color: #bbb;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-error {
  color: #ff6b6b;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.panel {
  width: 100%;
  text-align: center;
  padding: 22px 16px;
  background: var(--surface);
  border-radius: var(--r);
  border: 1px solid rgba(255, 252, 0, 0.18);
  animation: in 0.35s ease both;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.panel h2 {
  font-size: 1.05rem;
  font-weight: 800;
}

.panel p,
.panel-sub {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.4;
}

.panel svg {
  width: 36px;
  height: 36px;
  color: var(--snap);
}

.panel .field {
  width: 100%;
}

.panel .field input {
  text-align: center;
  padding-left: 12px;
}

.otp-boxes {
  display: flex;
  gap: 10px;
  justify-content: center;
  width: 100%;
  margin: 4px 0 2px;
}

.otp-digit {
  width: 48px;
  height: 52px;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  font-family: inherit;
  color: var(--text);
  background: var(--input);
  border: 1px solid transparent;
  border-radius: 12px;
  outline: none;
  -webkit-appearance: none;
  transition: border-color 0.15s;
}

.otp-digit:focus {
  border-color: var(--border);
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 252, 0, 0.2);
  border-top-color: var(--snap);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
