/* ========================================
   REGISTER DEMO — Premium NLS Landing
   X-TALK E-Commerce Registration
   ======================================== */

/* ── Variables ── */
:root {
  --rd-bg: #0a0e14;
  --rd-bg-card: #111820;
  --rd-bg-panel: #f7f8fa;
  --rd-bg-input: #0d1218;
  --rd-border: #1e2a36;
  --rd-border-light: #e2e8f0;
  --rd-accent: #22c55e;
  --rd-accent-hover: #16a34a;
  --rd-accent-glow: rgba(34, 197, 94, 0.2);
  --rd-brand: #0f172a;
  --rd-brand-light: #1e293b;
  --rd-text: #e8ecf1;
  --rd-text-muted: #8196a8;
  --rd-text-dim: #5a6e7e;
  --rd-text-dark: #1a202c;
  --rd-text-dark-muted: #64748b;
  --rd-card-bg: #ffffff;
  --rd-error: #ef4444;
  --rd-error-bg: rgba(239, 68, 68, 0.08);
  --rd-success: #22c55e;
  --rd-success-bg: rgba(34, 197, 94, 0.08);
  --rd-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --rd-radius: 16px;
  --rd-radius-sm: 12px;
  --rd-radius-xs: 8px;
  --rd-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  --rd-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.2);
}


/* ── Reset ── */
.register-page *,
.register-page *::before,
.register-page *::after {
  box-sizing: border-box;
}

.register-page {
  min-height: 100vh;
  font-family: var(--rd-font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ── Keyframes ── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes typing-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes typing-bounce {
  0%, 80%, 100% { opacity: 0.3; }
  40% { opacity: 1; }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes card-enter {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

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


/* ── Step visibility ── */
.step-1, .step-2, .step-3 {
  display: none;
}

.step-1.active { display: flex; animation: fadeIn 0.4s ease-out; }
.step-2.active { display: flex; flex-direction: column; animation: fadeIn 0.4s ease-out; }
.step-3.active { display: block; animation: slideUp 0.4s ease-out; }


/* ========================================
   STEP 1 — URL INPUT
   ======================================== */
.step-1 {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 24px;
  background: var(--rd-bg);
  background-image: radial-gradient(ellipse at 30% 20%, rgba(34, 197, 94, 0.06) 0%, transparent 60%),
                    radial-gradient(ellipse at 70% 80%, rgba(14, 165, 233, 0.04) 0%, transparent 60%);
  color: var(--rd-text);
}

.step-1__card {
  width: 100%;
  max-width: 680px;
  text-align: center;
}

.step-1__logo {
  margin-bottom: 48px;
  opacity: 0.9;
}

.step-1__logo img { height: 28px; width: auto; }

.step-1__title {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 20px;
  color: #fff;
}

.step-1__subtitle {
  font-size: 1.125rem;
  color: var(--rd-text-muted);
  margin: 0 0 48px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}


/* ── URL Form ── */
.url-form {
  display: flex;
  align-items: center;
  max-width: 560px;
  margin: 0 auto 40px;
  background: var(--rd-bg-card);
  border: 1px solid var(--rd-border);
  border-radius: 56px;
  padding: 6px 6px 6px 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.url-form:focus-within {
  border-color: var(--rd-accent);
  box-shadow: 0 0 0 3px var(--rd-accent-glow);
}

.url-form__icon {
  padding: 0 4px 0 20px;
  color: var(--rd-text-dim);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.url-input {
  flex: 1;
  padding: 14px 12px;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--rd-font);
  font-size: 1rem;
  color: var(--rd-text);
  min-width: 0;
}

.url-input::placeholder { color: var(--rd-text-dim); }

.url-submit {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--rd-accent);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--rd-font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}

.url-submit:hover { background: var(--rd-accent-hover); }
.url-submit:active { transform: scale(0.97); }
.url-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.url-error {
  max-width: 560px;
  margin: -24px auto 24px;
  padding: 10px 20px;
  background: var(--rd-error-bg);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--rd-radius-xs);
  color: var(--rd-error);
  font-size: 0.875rem;
  text-align: center;
}


/* ── Social proof ── */
.social-proof {
  color: var(--rd-text-dim);
  font-size: 0.8rem;
  margin-bottom: 32px;
}

.social-proof__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.social-proof__tag {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
}

.social-proof__dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--rd-text-dim);
}

.social-proof__names {
  font-weight: 500;
  color: var(--rd-text-muted);
}


/* ── Login link ── */
.step-1__links {
  font-size: 0.875rem;
  color: var(--rd-text-dim);
}

.step-1__links a {
  color: var(--rd-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.step-1__links a:hover { color: var(--rd-accent); }
.step-1__links a strong { color: var(--rd-accent); font-weight: 600; }


/* ========================================
   LOADING OVERLAY (Step 1 → Step 2)
   ======================================== */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--rd-bg);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.loading-overlay.active { display: flex; }

.loading-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--rd-border);
  border-top-color: var(--rd-accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.loading-text {
  color: var(--rd-text-muted);
  font-size: 0.95rem;
}


/* ========================================
   STEP 2 — NLS DEMO PREVIEW
   ======================================== */
.step-2 {
  min-height: 100vh;
  background: var(--rd-bg);
}


/* ── Top demo bar ── */
.demo-bar {
  height: 40px;
  background: #fff;
  border-bottom: 1px solid var(--rd-border-light);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  z-index: 100;
}

.demo-bar__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-bar__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.demo-bar__logo img { height: 18px; width: auto; }

.demo-bar__sep {
  width: 1px; height: 18px;
  background: var(--rd-border-light);
}

.demo-bar__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: 50px;
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1px solid #e0e7ff;
  font-size: 11px;
  font-weight: 500;
  color: #475569;
}

.demo-bar__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rd-accent);
  animation: pulse-dot 2s infinite;
}

.demo-bar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-bar__hint {
  font-size: 12px;
  color: var(--rd-text-dark-muted);
}

.demo-bar__back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 50px;
  border: 1px solid var(--rd-border-light);
  background: #fff;
  color: var(--rd-text-dark-muted);
  font-family: var(--rd-font);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.demo-bar__back:hover {
  border-color: var(--rd-brand);
  color: var(--rd-brand);
}


/* ── NLS Demo Panel ── */
.nls-demo {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--rd-bg-panel);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.nls-demo.active {
  opacity: 1;
  transform: translateY(0);
}


/* ── NLS Header ── */
.nls-demo__header {
  background: #fff;
  border-bottom: 1px solid var(--rd-border-light);
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 60px;
  flex-shrink: 0;
  gap: 16px;
}

.nls-demo__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 8px;
  flex-shrink: 0;
}

.nls-demo__brand-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--rd-brand), var(--rd-brand-light));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.nls-demo__brand-icon img {
  width: 100%; height: 100%; object-fit: contain;
}

.nls-demo__brand-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--rd-text-dark);
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nls-demo__search-wrap {
  flex: 1;
  max-width: 560px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 9px 16px 9px 40px;
  border: 2px solid var(--rd-border-light);
  border-radius: 50px;
  background: var(--rd-bg-panel);
  transition: border-color 0.2s;
}

.nls-demo__search-icon {
  position: absolute;
  left: 14px;
  color: var(--rd-text-dark-muted);
  pointer-events: none;
}

.nls-demo__search-text {
  font-size: 15px;
  color: var(--rd-text-dark);
  white-space: nowrap;
  overflow: hidden;
  min-height: 1.3em;
}

.nls-demo__search-cursor {
  display: inline-block;
  width: 2px;
  height: 18px;
  background: var(--rd-accent);
  margin-left: 1px;
  animation: typing-blink 0.8s step-end infinite;
  vertical-align: middle;
}

.nls-demo__voice-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 50px;
  border: none;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  font-family: var(--rd-font);
  font-size: 13px;
  font-weight: 600;
  cursor: default;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
  flex-shrink: 0;
}


/* ── Examples bar ── */
.nls-demo__examples {
  background: #fff;
  border-bottom: 1px solid var(--rd-border-light);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  overflow-x: auto;
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

.nls-demo__examples.active { opacity: 1; }

.nls-demo__examples-label {
  font-size: 12px;
  color: var(--rd-text-dark-muted);
  white-space: nowrap;
  margin-right: 4px;
  font-weight: 500;
}

.nls-demo__examples-pills {
  display: flex;
  gap: 6px;
}

.nls-demo__example-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid var(--rd-border-light);
  background: #fff;
  color: var(--rd-text-dark);
  font-size: 13px;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}


/* ── Content area ── */
.nls-demo__content {
  flex: 1;
  display: flex;
  overflow: hidden;
}


/* ── Results column ── */
.nls-demo__results {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

.nls-demo__results.active { opacity: 1; }

.nls-demo__results-header {
  margin-bottom: 14px;
}

.nls-demo__results-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--rd-text-dark);
}

.nls-demo__results-title span {
  color: var(--rd-text-dark-muted);
  font-weight: 400;
}


/* ── Filter badges ── */
.nls-demo__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.nls-demo__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  border-radius: 50px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  font-size: 12px;
  color: var(--rd-accent-hover);
  animation: slideUp 0.3s ease-out both;
}

.nls-demo__badge-label {
  font-weight: 600;
}

.nls-demo__badge-close {
  margin-left: 2px;
  font-size: 14px;
  opacity: 0.5;
  cursor: default;
}


/* ── Quick filters ── */
.nls-demo__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.nls-demo__filter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 50px;
  border: 1px dashed var(--rd-border-light);
  background: #fff;
  color: var(--rd-text-dark-muted);
  font-size: 12px;
  transition: border-color 0.2s;
  animation: slideUp 0.3s ease-out both;
}

.nls-demo__filter::before {
  content: '+';
  font-weight: 600;
  margin-right: 2px;
}


/* ── Product cards grid ── */
.nls-demo__products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.nls-demo__product-card {
  background: var(--rd-card-bg);
  border: 1px solid var(--rd-border-light);
  border-radius: var(--rd-radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  animation: card-enter 0.5s ease-out both;
}

.nls-demo__product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--rd-accent);
}

.nls-demo__product-image {
  position: relative;
  height: 140px;
  background: linear-gradient(135deg, #f0f4f8, #e8ecf1);
  overflow: hidden;
}

.nls-demo__product-image--real {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.nls-demo__product-image--real img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.nls-demo__product-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8ecf1 0%, #f0f4f8 50%, #e8ecf1 100%);
  background-size: 800px 100%;
  animation: shimmer 2s infinite linear;
}

.nls-demo__product-price {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 4px 12px;
  border-radius: var(--rd-radius-xs);
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.nls-demo__product-body {
  padding: 14px 16px;
}

.nls-demo__product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.nls-demo__product-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--rd-accent-hover);
}

.nls-demo__product-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 50px;
  letter-spacing: 0.3px;
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.nls-demo__product-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--rd-text-dark);
  margin-bottom: 8px;
}

.nls-demo__product-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--rd-text-dark-muted);
}

.nls-demo__product-meta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--rd-accent-hover);
}


/* ── Chat panel ── */
.nls-demo__chat {
  width: 360px;
  border-left: 1px solid var(--rd-border-light);
  display: flex;
  flex-direction: column;
  background: #fff;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.nls-demo__chat.active {
  opacity: 1;
  transform: translateX(0);
}

.nls-demo__chat-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rd-border-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nls-demo__chat-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rd-brand), var(--rd-brand-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.nls-demo__chat-info { flex: 1; }

.nls-demo__chat-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--rd-text-dark);
}

.nls-demo__chat-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--rd-accent);
}

.nls-demo__chat-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rd-accent);
}

.nls-demo__chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nls-demo__chat-msg {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.6;
  max-width: 92%;
  word-break: break-word;
}

.nls-demo__chat-msg--bot {
  background: var(--rd-bg-panel);
  color: var(--rd-text-dark);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.nls-demo__chat-msg--typing {
  align-self: flex-start;
  background: var(--rd-bg-panel);
  padding: 14px 20px;
  border-bottom-left-radius: 4px;
}

.nls-demo__typing-dot {
  display: inline-block;
  animation: typing-bounce 1.4s infinite ease-in-out;
  color: var(--rd-text-dark-muted);
  font-size: 18px;
  line-height: 1;
}

.nls-demo__typing-dot:nth-child(2) { animation-delay: 0.2s; }
.nls-demo__typing-dot:nth-child(3) { animation-delay: 0.4s; }

.nls-demo__chat-input-wrap {
  padding: 12px 16px;
  border-top: 1px solid var(--rd-border-light);
  display: flex;
  gap: 8px;
}

.nls-demo__chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--rd-border-light);
  border-radius: 50px;
  font-family: var(--rd-font);
  font-size: 14px;
  background: var(--rd-bg-panel);
  color: var(--rd-text-dark);
  outline: none;
}

.nls-demo__chat-send {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--rd-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: default;
  opacity: 0.5;
}


/* ========================================
   DEMO CTA BANNER
   ======================================== */
.demo-cta-banner {
  background: var(--rd-bg);
  border-top: 1px solid var(--rd-border);
  padding: 16px 24px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

.demo-cta-banner.active { opacity: 1; }

.demo-cta-banner__content {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.demo-cta-banner__text {
  font-size: 0.875rem;
  color: var(--rd-text-muted);
  line-height: 1.5;
}

.demo-cta-banner__text strong {
  color: var(--rd-text);
}

.demo-cta-banner__action {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.demo-cta-banner__credits {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--rd-accent);
  white-space: nowrap;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.demo-cta-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 50px;
  border: none;
  background: var(--rd-accent);
  color: #fff;
  font-family: var(--rd-font);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.1s;
}

.demo-cta-banner__btn:hover { background: var(--rd-accent-hover); }
.demo-cta-banner__btn:active { transform: scale(0.97); }


/* ========================================
   STEP 3 — REGISTRATION FORM
   ======================================== */
.step-3 {
  padding: 0 24px 60px;
  background: var(--rd-bg);
}

.register-form {
  max-width: 480px;
  margin: 0 auto;
  background: var(--rd-bg-card);
  border: 1px solid var(--rd-border);
  border-radius: var(--rd-radius);
  padding: 40px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.register-form::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rd-accent), transparent);
}

.register-form__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
}

.register-form__subtitle {
  font-size: 0.9rem;
  color: var(--rd-text-muted);
  margin: 0 0 28px;
}

.register-form__row {
  display: flex;
  gap: 0;
  border-radius: var(--rd-radius-xs);
  overflow: hidden;
  border: 1px solid var(--rd-border);
  margin-bottom: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.register-form__row:focus-within {
  border-color: var(--rd-accent);
  box-shadow: 0 0 0 3px var(--rd-accent-glow);
}

.register-form__email {
  flex: 1;
  padding: 14px 16px;
  background: var(--rd-bg-input);
  border: none;
  font-family: var(--rd-font);
  font-size: 0.95rem;
  color: var(--rd-text);
  outline: none;
  min-width: 0;
}

.register-form__email::placeholder { color: var(--rd-text-dim); }

.register-form__submit {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--rd-accent);
  color: #fff;
  border: none;
  font-family: var(--rd-font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.register-form__submit:hover { background: var(--rd-accent-hover); }
.register-form__submit:disabled { opacity: 0.5; cursor: not-allowed; }

.register-form__terms {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  font-size: 0.8rem;
  color: var(--rd-text-dim);
  line-height: 1.5;
}

.register-form__terms input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--rd-accent);
}

.register-form__terms a {
  color: var(--rd-accent);
  text-decoration: none;
}

.register-form__terms a:hover { text-decoration: underline; }

.message {
  display: none;
  padding: 10px 16px;
  border-radius: var(--rd-radius-xs);
  font-size: 0.875rem;
  margin-bottom: 16px;
  text-align: center;
}

.message.error {
  display: block;
  background: var(--rd-error-bg);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--rd-error);
}

.message.success {
  display: block;
  background: var(--rd-success-bg);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--rd-success);
}

.step-3__alt {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
}

.step-3__alt a {
  color: var(--rd-text-muted);
  text-decoration: none;
}

.step-3__alt a:hover { color: var(--rd-accent); }


/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
  .nls-demo__chat { display: none; }
  .demo-bar__hint { display: none; }
}

@media (max-width: 768px) {
  .step-1__title { font-size: 2.2rem; }
  .step-1__subtitle { font-size: 1rem; }

  .url-form {
    flex-direction: column;
    border-radius: var(--rd-radius);
    padding: 8px;
  }

  .url-form__icon { display: none; }

  .url-input {
    padding: 14px 16px;
    text-align: center;
  }

  .url-submit {
    width: 100%;
    justify-content: center;
    padding: 14px;
  }

  .nls-demo__header { padding: 0 16px; height: 52px; }
  .nls-demo__voice-cta { display: none; }

  .nls-demo__results { padding: 16px; }
  .nls-demo__products { grid-template-columns: 1fr; }

  .demo-cta-banner__content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .demo-cta-banner__action { justify-content: center; }

  .register-form { padding: 32px 24px; }

  .register-form__row { flex-direction: column; }
  .register-form__submit { justify-content: center; }
}

@media (max-width: 480px) {
  .step-1 { padding: 24px 16px; }
  .step-1__title { font-size: 1.8rem; }
  .demo-bar__badge { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
