* { box-sizing: border-box; font-family: inherit; }
body {
  font-family: 'Google Sans', 'Sarabun', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  margin: 0;
  min-height: 100vh;
  background: #f4f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.wrap { width: 100%; max-width: 380px; }
.panel {
  background: #fff;
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  animation: rise 0.35s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  border: 4px solid #fbe4d5;
  border-top-color: #e0690d;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
#status {
  color: #555;
  font-size: 15px;
}
#status .dots span {
  animation: blink 1.4s infinite;
  animation-fill-mode: both;
}
#status .dots span:nth-child(2) { animation-delay: 0.2s; }
#status .dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink {
  0%, 80%, 100% { opacity: 0.2; }
  40% { opacity: 1; }
}
#bind-form { display: none; text-align: left; }
#bind-form p {
  text-align: center;
  color: #444;
  font-size: 14px;
  margin: 0 0 20px;
}
#bind-form input {
  width: 100%;
  padding: 12px 14px;
  margin: 0 0 12px;
  box-sizing: border-box;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s;
}
#bind-form input:focus { border-color: #e0690d; }
#bind-form label {
  display: block;
  font-size: 13px;
  color: #444;
  margin: 0 0 8px;
}
.pin-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 0 0 16px;
}
.pin-box {
  width: 48px;
  height: 56px;
  padding: 0;
  margin: 0;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
}
#bind-form button {
  width: 100%;
  padding: 13px;
  background: #e0690d;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
#bind-form button:active { opacity: 0.8; }
#bind-form button:disabled { opacity: 0.6; cursor: default; }
#error { display: none; }
#error.show { display: block; }
.error-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  color: #e0690d;
}
.error-text {
  color: #555;
  font-size: 15px;
}
#success { display: none; }
#success.show { display: block; }
.success-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  color: #16a34a;
}
.success-text {
  color: #555;
  font-size: 15px;
}
