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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 480px;
}

.card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.header {
  text-align: center;
  margin-bottom: 28px;
}

.lock-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

h1 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.subtitle {
  font-size: 14px;
  color: #8e8ea0;
}

.step {
  margin-bottom: 20px;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #10a37f;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.status-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #f7f7f8;
  border-radius: 12px;
  font-size: 14px;
  color: #555;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #e0e0e0;
  border-top: 2px solid #10a37f;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.status-ok {
  color: #10a37f;
  font-weight: 600;
}

.status-ok::before {
  content: "✅ ";
}

.status-fail {
  color: #e74c3c;
  font-weight: 600;
}

.hidden {
  display: none !important;
}

.token-display {
  margin-bottom: 16px;
}

.token-display label {
  display: block;
  font-size: 13px;
  color: #8e8ea0;
  margin-bottom: 6px;
}

.token-text {
  padding: 14px 16px;
  background: #f7f7f8;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  word-break: break-all;
  line-height: 1.6;
  color: #1a1a2e;
  max-height: 120px;
  overflow-y: auto;
}

.actions {
  display: flex;
  gap: 10px;
}

.btn {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: #10a37f;
  color: #fff;
}

.btn-primary:hover {
  background: #0e8c6b;
}

.btn-secondary {
  background: #f0f0f0;
  color: #333;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

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

.btn-success {
  background: #10a37f;
  color: #fff;
  cursor: default;
}

.result-box {
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

.result-box.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.result-box.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.result-box.warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.result-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.result-detail {
  text-align: left;
  margin-bottom: 12px;
}

.result-detail p {
  margin-bottom: 6px;
  font-size: 14px;
  color: #444;
}

.result-note {
  font-size: 13px;
  color: #10a37f;
  font-weight: 500;
}

.hint {
  font-size: 13px;
  color: #8e8ea0;
  margin: 8px 0 16px;
  line-height: 1.5;
}

.loading-box {
  text-align: center;
  padding: 30px;
}

.spinner-large {
  width: 36px;
  height: 36px;
  border: 3px solid #e0e0e0;
  border-top: 3px solid #10a37f;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

.footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.footer p {
  font-size: 12px;
  color: #8e8ea0;
  line-height: 1.6;
  text-align: center;
}

a {
  color: #10a37f;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}
