/* =========================================================
   Register page — conversational AI-style signup
   Page-scoped: loads after main.css + animate.css
   ========================================================= */

.reg-wrap {
  position: relative;
  padding: clamp(2rem, 4vw, 3.2rem) 0 clamp(3rem, 6vw, 4.5rem);
  background:
    radial-gradient(1000px 420px at 12% -8%, rgba(59, 110, 246, 0.09), transparent 60%),
    radial-gradient(820px 400px at 95% 4%, rgba(15, 169, 104, 0.08), transparent 55%),
    linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 46%, var(--paper-2) 100%);
  overflow: hidden;
}

.reg-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.6rem, 3vw, 3rem);
  align-items: start;
}

/* ---------- aside ---------- */

.reg-aside { padding-top: 0.5rem; }

.reg-h1 { font-size: clamp(1.9rem, 1.35rem + 1.9vw, 2.55rem); }

.reg-lede { color: var(--text-muted); max-width: 47ch; }

.reg-points {
  list-style: none;
  padding: 0;
  margin: 1.3rem 0 1.5rem;
  display: grid;
  gap: 0.7rem;
}
.reg-points li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--text-body);
}
.reg-point-ico {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--brand-50);
  color: var(--brand-600);
  border: 1px solid var(--brand-100);
}
.reg-point-ico svg { width: 16px; height: 16px; }
.reg-points li:nth-child(2) .reg-point-ico {
  background: #e7f8f0;
  border-color: #c7eedd;
  color: #0b7d51;
}
.reg-points li:nth-child(3) .reg-point-ico {
  background: #fff4e0;
  border-color: #ffe4b0;
  color: #96610a;
}

.reg-shot {
  margin: 0 0 1.3rem;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.reg-shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.reg-shot-cap {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.7rem;
  display: flex;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1.35;
  color: #fff;
  background: rgba(7, 12, 23, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
}
.reg-shot-cap svg { width: 13px; height: 13px; flex: none; color: var(--accent); }

.reg-signin { font-size: var(--fs-xs); color: var(--text-muted); }

/* ---------- chat panel ---------- */

.reg-chat {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) + 4px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  height: min(760px, calc(100vh - var(--header-h) - 96px));
  height: min(760px, calc(100dvh - var(--header-h) - 96px));
  min-height: 560px;
  position: relative;
}

/* header */

.reg-chat-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  flex: none;
}

.reg-avatar { position: relative; flex: none; width: 44px; height: 44px; }
.reg-avatar img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--brand-100), var(--brand-50));
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 2px var(--brand-500);
}
.reg-avatar-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--success);
  border: 2.5px solid var(--paper);
  animation: reg-pulse 2.4s ease-out infinite;
}
@keyframes reg-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(15, 169, 104, 0.35); }
  50% { box-shadow: 0 0 0 5px rgba(15, 169, 104, 0); }
}

.reg-who {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
  line-height: 1.3;
}
.reg-who-name {
  font-weight: 650;
  color: var(--text);
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.reg-who-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-700);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  padding: 0.16rem 0.5rem;
  border-radius: 99px;
}
.reg-who-tag svg { width: 11px; height: 11px; }
.reg-who-status { font-size: 0.74rem; color: var(--text-muted); }

.reg-prog {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  width: 150px;
}
.reg-prog-text {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.reg-prog-bar {
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: var(--paper-3);
  overflow: hidden;
}
.reg-prog-fill {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-700));
  transition: width 0.5s var(--ease);
}

/* thread */

.reg-thread {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scroll-padding-bottom: 1rem;
  padding: 1.1rem 1.1rem 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@keyframes reg-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.reg-anim { animation: reg-in 0.4s var(--ease) both; }

.chat-row {
  display: flex;
  gap: 0.55rem;
  align-items: flex-end;
  max-width: 92%;
}
.chat-row--a { align-self: flex-start; }
.chat-row--u { align-self: flex-end; flex-direction: row-reverse; }

.chat-mini-ava {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 2px 6px rgba(42, 90, 224, 0.35);
}
.chat-mini-ava svg { width: 14px; height: 14px; }

.bubble {
  padding: 0.68rem 0.9rem;
  font-size: var(--fs-sm);
  line-height: 1.55;
  border-radius: 16px 16px 16px 5px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--text);
  max-width: 100%;
  word-break: break-word;
}
.chat-row--u .bubble {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  border-color: transparent;
  color: #fff;
  border-radius: 16px 16px 5px 16px;
  box-shadow: 0 6px 16px rgba(31, 69, 184, 0.25);
}

.bubble--typing {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 0.8rem 0.95rem;
}
.tdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
  animation: tdot 1.2s ease-in-out infinite;
}
.tdot:nth-child(2) { animation-delay: 0.15s; }
.tdot:nth-child(3) { animation-delay: 0.3s; }
@keyframes tdot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.55; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-sect {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  padding: 0.34rem 0.8rem;
  border-radius: 99px;
  margin: 0.5rem 0 0.2rem;
  text-align: center;
}
.chat-sect svg { width: 13px; height: 13px; color: var(--brand-600); flex: none; }

.reg-noscript {
  margin: auto;
  text-align: center;
  padding: 1.2rem;
  background: var(--paper-2);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
}

/* ---------- dock (composer) ---------- */

.reg-dock {
  flex: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 0.9rem 1.1rem 1.05rem;
}

.reg-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
  letter-spacing: 0.01em;
}
.reg-label svg { width: 15px; height: 15px; color: var(--brand-600); flex: none; }
.reg-label .req { color: var(--danger); font-weight: 800; }
.reg-label .reg-hint {
  margin-left: auto;
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.85;
}

.reg-inputrow { display: flex; gap: 0.5rem; align-items: stretch; }

.reg-fieldwrap {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-width: 0;
}
.reg-fieldwrap .ico-lead {
  position: absolute;
  left: 0.8rem;
  width: 17px;
  height: 17px;
  color: var(--text-muted);
  pointer-events: none;
}

.reg-input {
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--text);
  background: var(--paper-2);
  border: 1.5px solid var(--line);
  border-radius: 13px;
  padding: 0.72rem 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.reg-fieldwrap.has-ico .reg-input { padding-left: 2.5rem; }
.reg-fieldwrap.has-eye .reg-input { padding-right: 2.9rem; }
.reg-input::placeholder { color: var(--text-muted); opacity: 0.75; }
.reg-input:focus {
  outline: none;
  border-color: var(--brand-500);
  background: var(--paper);
  box-shadow: 0 0 0 4px rgba(59, 110, 246, 0.14);
}
.reg-dock.has-err .reg-input,
.reg-dock.has-err .reg-urlbase { border-color: var(--danger); }

/* url slug field */

.reg-urlrow { display: flex; min-width: 0; flex: 1 1 auto; }
.reg-urlbase {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--text-muted);
  background: var(--paper-3);
  border: 1.5px solid var(--line);
  border-right: none;
  border-radius: 13px 0 0 13px;
  padding: 0.72rem 0.55rem 0.72rem 0.8rem;
  white-space: nowrap;
}
.reg-urlbase svg { width: 14px; height: 14px; flex: none; }
.reg-urlrow .reg-input { border-radius: 0 13px 13px 0; }

/* password eye */

.reg-eye {
  position: absolute;
  right: 0.55rem;
  width: 38px;
  height: calc(100% - 10px);
  border: none;
  background: transparent;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 9px;
  transition: color 0.2s, background 0.2s;
}
.reg-eye:hover { color: var(--text); background: var(--paper-3); }
.reg-eye svg { width: 17px; height: 17px; }

/* send */

.reg-send {
  flex: none;
  width: 44px;
  border: none;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(31, 69, 184, 0.28);
  transition: transform 0.2s var(--ease), filter 0.2s;
}
.reg-send:hover { transform: translateY(-1px); filter: brightness(1.07); }
.reg-send:active { transform: none; }
.reg-send svg { width: 18px; height: 18px; }

/* chips */

.reg-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--text-body);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 99px;
  padding: 0.52rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s, transform 0.18s var(--ease);
}
.chip:hover {
  border-color: var(--brand-500);
  color: var(--brand-700);
  background: var(--brand-50);
  transform: translateY(-1px);
}
.chip:active { transform: none; }
.chip svg { width: 14px; height: 14px; }
.chip.is-on {
  border-color: var(--brand-500);
  color: var(--brand-700);
  background: var(--brand-50);
}

/* actions */

.reg-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}
.reg-back {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text-body);
  font-size: 0.78rem;
  font-weight: 650;
  padding: 0.42rem 0.75rem 0.42rem 0.55rem;
  border-radius: 99px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.reg-back:hover { border-color: var(--line-strong); background: var(--paper-2); }
.reg-back svg { width: 14px; height: 14px; }

.reg-skip {
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
  padding: 0.4rem 0.3rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.reg-skip:hover { color: var(--text); }

.reg-entertip {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 0.3rem 0.6rem;
  border-radius: 99px;
}
.reg-entertip kbd {
  font-family: var(--font-mono);
  font-size: 0.95em;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 0 0.35em;
}

/* errors */

.reg-err {
  display: none;
  font-size: 0.76rem;
  font-weight: 650;
  color: var(--danger);
  margin-top: 0.45rem;
}
.reg-dock.has-err .reg-err { display: block; }

/* review + create */

.reg-review-title {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.reg-review-title svg { width: 14px; height: 14px; color: var(--brand-600); }

.reg-review-list {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.3rem 0.9rem;
  font-size: 0.79rem;
  margin: 0 0 0.85rem;
  max-height: 172px;
  overflow-y: auto;
  padding-right: 0.3rem;
}
.reg-review-list .rev-sect {
  grid-column: 1 / -1;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-top: 0.4rem;
}
.reg-review-list dt { color: var(--text-muted); font-weight: 600; }
.reg-review-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 650;
  text-align: right;
  word-break: break-word;
}
.reg-review-list dd.is-empty { color: var(--text-muted); font-weight: 500; font-style: italic; }

.reg-create {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  border: none;
  border-radius: 14px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  padding: 0.85rem 1.2rem;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  box-shadow: 0 12px 26px rgba(31, 69, 184, 0.3);
  transition: transform 0.2s var(--ease), filter 0.2s, box-shadow 0.2s;
}
.reg-create:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow: 0 16px 30px rgba(31, 69, 184, 0.34);
}
.reg-create:active { transform: none; }
.reg-create:disabled { opacity: 0.75; cursor: wait; transform: none; }
.reg-create svg { width: 17px; height: 17px; }

.reg-review-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0.55rem 0 0;
  text-align: center;
}

/* ---------- success ---------- */

.reg-done {
  margin: auto;
  text-align: center;
  padding: 1.4rem 0.6rem 1.8rem;
  animation: reg-in 0.45s var(--ease) both;
}
.reg-done-card { max-width: 390px; margin-inline: auto; }

.reg-done-ico {
  width: 76px;
  height: 76px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #14c98a, var(--success));
  color: #fff;
  box-shadow: 0 14px 34px rgba(15, 169, 104, 0.35);
}
.reg-done-ico svg { width: 36px; height: 36px; }

.reg-done h2 { font-size: 1.45rem; margin-bottom: 0.45rem; outline: none; } /* focused programmatically for screen readers */
.reg-done p { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 1.1rem; }

.reg-done-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}
.reg-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 13px;
  padding: 0.7rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), filter 0.2s, border-color 0.2s, background 0.2s;
}
.reg-btn:hover { text-decoration: none; }
.reg-btn-primary {
  border: none;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  box-shadow: 0 10px 22px rgba(31, 69, 184, 0.28);
}
.reg-btn-primary:hover { transform: translateY(-2px); filter: brightness(1.07); }
.reg-btn-ghost {
  background: var(--paper);
  border: 1.5px solid var(--line);
  color: var(--text-body);
}
.reg-btn-ghost:hover { border-color: var(--line-strong); background: var(--paper-2); }

.reg-done-tip { font-size: 0.74rem; color: var(--text-muted); margin-top: 1.1rem; }

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .reg-grid { grid-template-columns: minmax(0, 1fr); }
  .reg-shot { display: none; }
}

@media (max-width: 640px) {
  .reg-points { display: none; }
  .reg-chat { min-height: 520px; height: min(640px, calc(100dvh - var(--header-h) - 48px)); }
  .reg-chat-head { padding: 0.72rem 0.8rem; gap: 0.55rem; }
  .reg-prog { width: 104px; }
  .reg-thread { padding: 0.9rem 0.8rem 0.3rem; }
  .reg-dock { padding: 0.8rem 0.8rem 0.9rem; }
  .reg-entertip { display: none; }
  .chat-row { max-width: 100%; }
}

@media (max-width: 440px) {
  .reg-who-status { display: none; }
  .reg-urlrow { flex-direction: column; gap: 0.45rem; }
  .reg-urlbase {
    border-right: 1.5px solid var(--line);
    border-radius: 13px;
    justify-content: center;
  }
  .reg-urlrow .reg-input { border-radius: 13px; }
}

@media (max-width: 360px) {
  .reg-who-tag { display: none; }
  .reg-prog { width: 88px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .reg-thread { scroll-behavior: auto; }
  .reg-avatar-dot { animation: none; }
}

/* =========================================================
   Live refresh — orbs, steps, slug check, password meter,
   status card (appended for live API integration)
   ========================================================= */

.reg-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.reg-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; animation: reg-orb 16s ease-in-out infinite alternate; }
.ro-1 { width: 44vmax; height: 44vmax; left: -14vmax; top: -16vmax; background: radial-gradient(circle, rgba(59,110,246,.35), transparent 65%); }
.ro-2 { width: 36vmax; height: 36vmax; right: -10vmax; top: 10%; background: radial-gradient(circle, rgba(109,59,224,.28), transparent 65%); animation-delay: -5s; }
.ro-3 { width: 30vmax; height: 30vmax; right: 24%; bottom: -14vmax; background: radial-gradient(circle, rgba(18,163,123,.26), transparent 65%); animation-delay: -9s; }
@keyframes reg-orb { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(4%,6%,0) scale(1.12); } }
.reg-wrap { position: relative; }
.reg-grid, .reg-aside, .reg-chat { position: relative; z-index: 1; }

.reg-steps { list-style: none; margin: 1.4rem 0; padding: 0; display: grid; gap: 0.8rem; }
.reg-steps li {
  display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 0.8rem; align-items: start;
  background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: 14px; padding: 0.8rem 0.9rem;
  backdrop-filter: blur(6px);
}
.reg-step-n {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand-500), #6d3be0);
  box-shadow: 0 8px 18px rgba(42,90,224,.3);
}
.reg-steps li:nth-child(2) .reg-step-n { background: linear-gradient(135deg, #0b7c63, #12a37b); box-shadow: 0 8px 18px rgba(18,163,123,.3); }
.reg-steps li:nth-child(3) .reg-step-n { background: linear-gradient(135deg, #a66a00, #e0a22d); box-shadow: 0 8px 18px rgba(224,162,45,.3); }
.reg-steps strong { display: block; color: var(--text); font-size: 0.92rem; }
.reg-steps em { display: block; font-style: normal; color: var(--text-muted); font-size: 0.8rem; }
.reg-steps code { font-family: var(--font-mono); background: var(--paper-3); border: 1px solid var(--line); border-radius: 6px; padding: 0 0.35em; font-size: 0.85em; }

.reg-trust { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.3rem; }
.reg-trust-item {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.76rem; font-weight: 700; color: var(--text-body);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.42em 0.85em;
  box-shadow: var(--shadow-sm);
}
.reg-trust-item svg { width: 14px; height: 14px; color: var(--success); }

/* slug live status */
.slug-status { margin-top: 0.55rem; font-size: 0.78rem; font-weight: 650; display: flex; align-items: center; gap: 0.45rem; min-height: 1.5em; }
.slug-status svg { width: 15px; height: 15px; }
.slug-status.is-ok { color: #0b7d51; }
.slug-status.is-ok svg { color: #0b7d51; }
.slug-status.is-taken { color: var(--danger); }
.slug-status.is-checking { color: var(--text-muted); }
.slug-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--brand-600); animation: slug-spin 0.8s linear infinite; display: inline-block; }
@keyframes slug-spin { to { transform: rotate(360deg); } }
.slug-suggest {
  border: 1px solid var(--line-strong); background: #fff; border-radius: 999px;
  font: inherit; font-size: 0.76rem; font-weight: 700; color: var(--brand-700);
  padding: 0.25em 0.7em; cursor: pointer;
}
.slug-suggest:hover { border-color: var(--brand-500); }
.slug-suggest-line {
  margin-top: 0.5rem; border: 1px dashed var(--line-strong); background: var(--brand-50);
  border-radius: 10px; padding: 0.5rem 0.75rem; font-size: 0.8rem; color: var(--brand-700);
  cursor: pointer; width: 100%; text-align: left;
}
.slug-suggest-line:hover { border-color: var(--brand-500); }

/* password meter */
.pw-meter { display: flex; gap: 6px; margin-top: 0.55rem; }
.pw-meter span { height: 6px; flex: 1; border-radius: 999px; background: var(--paper-3); transition: background 0.25s ease; }
.pw-meter span.on.s1 { background: #d93f4c; }
.pw-meter span.on.s2 { background: #e0a22d; }
.pw-meter span.on.s3 { background: #3b6ef6; }
.pw-meter span.on.s4 { background: #12a37b; }

/* review + success status card */
.reg-status-card {
  text-align: left; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 14px; padding: 0.9rem 1rem; margin-bottom: 1.1rem; display: grid; gap: 0.5rem;
}
.reg-status-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.84rem; }
.reg-status-row span:first-child { color: var(--text-muted); font-weight: 600; }
.reg-status-row strong { color: var(--text); }
.reg-status-row code { font-family: var(--font-mono); background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 0.2em 0.55em; font-size: 0.82em; }

/* busy button */
.reg-create.is-busy { position: relative; }
.reg-create.is-busy::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  animation: slug-spin 0.8s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .reg-orb, .slug-spin, .reg-create.is-busy::after { animation: none !important; }
}
