/* Thank-you page after the on-site PayPal checkout (welcome.html / welcome-jp.html).
   Same palette as mainpage.html. */
:root {
  --bg-primary: #0b0f1a;
  --bg-card: rgba(17, 24, 39, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #8b5cf6;
  --accent-glow: rgba(139, 92, 246, 0.4);
  --ok: #34d399;
  --warn: #fbbf24;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at top, #1e1b4b 0%, var(--bg-primary) 60%);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1rem;
}
.card {
  width: 100%;
  max-width: 560px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2.25rem 1.75rem;
  backdrop-filter: blur(12px);
  text-align: center;
}
.logo { width: 72px; height: 72px; border-radius: 50%; margin-bottom: 1rem; }
h1 { font-size: 1.6rem; margin: 0 0 0.5rem; line-height: 1.3; }
.lead { color: var(--text-secondary); margin: 0 0 1.5rem; }
.lead b, .steps b { color: var(--text-primary); }
.steps {
  text-align: left;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0.75rem 0 0.75rem 2.75rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0.75rem;
  width: 1.9rem; height: 1.9rem;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.18);
  color: #c4b5fd;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.buttons { display: flex; flex-direction: column; gap: 0.65rem; }
.btn {
  display: block;
  padding: 0.9rem 1.5rem;
  border-radius: 14px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #6d28d9);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow); }
.btn--ghost { background: transparent; border: 1px solid var(--border-subtle); color: var(--text-secondary); }
.btn--ghost:hover { box-shadow: none; color: var(--text-primary); }
.btn[disabled] { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }
.resend-msg { min-height: 1.4em; font-size: 0.9rem; color: var(--text-secondary); margin: 0.25rem 0 0; }
.note {
  margin: 1.5rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: #a7f3d0;
  font-size: 0.9rem;
}
.spinner {
  width: 42px; height: 42px;
  margin: 0.5rem auto 1.25rem;
  border: 4px solid rgba(139, 92, 246, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.icon { font-size: 2.6rem; margin: 0.25rem 0 0.5rem; }
.help { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--border-subtle); color: var(--text-muted); font-size: 0.9rem; }
.help a { color: #c4b5fd; margin: 0 0.4rem; }
.back { margin-top: 1.25rem; font-size: 0.9rem; }
.back a { color: var(--text-muted); }
.preview-bar {
  width: 100%; max-width: 560px;
  margin-bottom: 1rem;
  padding: 0.6rem 0.9rem;
  border: 1px dashed var(--warn);
  border-radius: 12px;
  color: var(--warn);
  font-size: 0.85rem;
  text-align: center;
}
.preview-bar button {
  margin: 0.3rem 0.2rem 0;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--warn);
  background: transparent;
  color: var(--warn);
  font: inherit;
  cursor: pointer;
}
.instant {
  margin: 0 0 1.5rem;
  padding: 1.1rem;
  border-radius: 16px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.3);
  text-align: left;
}
.instant-title { margin: 0 0 0.75rem; font-weight: 700; color: var(--text-primary); }
.pw-box {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  padding: 0.7rem 0.85rem; margin-bottom: 0.75rem;
  border-radius: 12px; background: rgba(0, 0, 0, 0.25);
}
.pw-label { font-size: 0.8rem; color: var(--text-muted); width: 100%; }
.pw-value { font-size: 1.05rem; color: #fde68a; word-break: break-all; flex: 1; }
.pw-copy {
  padding: 0.35rem 0.8rem; border-radius: 8px; cursor: pointer; font: inherit; font-size: 0.85rem;
  background: rgba(139, 92, 246, 0.15); border: 1px solid rgba(139, 92, 246, 0.4); color: #c4b5fd;
}
.instant-links { display: flex; flex-direction: column; gap: 0.5rem; }
.instant-links a {
  display: block; padding: 0.75rem 1rem; border-radius: 12px; text-decoration: none; font-weight: 600;
  color: #fff; background: linear-gradient(135deg, var(--accent), #6d28d9);
}
.instant-links a.cloud { background: linear-gradient(135deg, #06b6d4, #0e7490); }
.instant-note { margin: 0.75rem 0 0; font-size: 0.82rem; color: var(--text-secondary); }
[hidden] { display: none !important; }
