/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --accent: #8b5cf6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --surface: #0f0f1a;
  --surface-2: #16162a;
  --surface-3: #1e1e38;
  --surface-4: #252545;
  --border: rgba(99,102,241,0.2);
  --border-hover: rgba(99,102,241,0.5);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 20px 60px rgba(0,0,0,0.5);
  --glow: 0 0 40px rgba(99,102,241,0.2);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--surface);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ===== BACKGROUND PARTICLES ===== */
.bg-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.particle {
  position: absolute;
  border-radius: 50%;
  animation: floatUp linear infinite;
  opacity: 0;
}
@keyframes floatUp {
  0%   { transform: translateY(110vh) scale(0); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-10vh) scale(1.2); opacity: 0; }
}

/* gradient mesh */
body::before {
  content: '';
  position: fixed;
  top: -30%;
  left: -20%;
  width: 80vw;
  height: 80vw;
  background: radial-gradient(ellipse, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  bottom: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(ellipse, rgba(139,92,246,0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(15,15,26,0.85);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { display: flex; flex-shrink: 0; }
.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}
.logo-accent { color: var(--primary-light); }
.header-tag {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--primary-light);
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.3);
  padding: 4px 12px;
  border-radius: 100px;
}

/* ===== MAIN ===== */
.main {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

/* ===== PROGRESS ===== */
.progress-wrap {
  margin-bottom: 32px;
}
.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 12px;
}
.step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  cursor: default;
  transition: var(--transition);
}
.step-dot-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid var(--surface-4);
  background: var(--surface-3);
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}
.step-dot.done .step-dot-circle {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}
.step-dot.active .step-dot-circle {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 16px rgba(99,102,241,0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 16px rgba(99,102,241,0.6); }
  50%      { box-shadow: 0 0 28px rgba(99,102,241,0.9); }
}
.step-dot-label {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
  max-width: 60px;
  transition: var(--transition);
}
.step-dot.active .step-dot-label { color: var(--primary-light); }
.step-dot.done .step-dot-label  { color: var(--success); }

.progress-track {
  height: 4px;
  background: var(--surface-4);
  border-radius: 100px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 100px;
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 0 12px rgba(99,102,241,0.5);
}

/* ===== CARD ===== */
.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  box-shadow: var(--shadow), var(--glow);
  position: relative;
  overflow: hidden;
  animation: fadeSlideIn 0.5s ease both;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
}
@keyframes fadeSlideIn {
  from { opacity:0; transform: translateY(20px); }
  to   { opacity:1; transform: translateY(0); }
}

/* ===== STEP PANEL ===== */
.step-panel {
  display: none;
  animation: stepEnter 0.4s cubic-bezier(0.4,0,0.2,1) both;
}
.step-panel.active { display: block; }
@keyframes stepEnter {
  from { opacity:0; transform: translateX(30px); }
  to   { opacity:1; transform: translateX(0); }
}
.step-panel.exit {
  animation: stepExit 0.25s ease forwards;
}
@keyframes stepExit {
  to { opacity:0; transform: translateX(-30px); }
}

.step-header { margin-bottom: 28px; }
.step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-light);
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.25);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.step-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary-light);
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.step-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.step-sub {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== FORM ELEMENTS ===== */
.form-group {
  margin-bottom: 20px;
}
.form-row { display: grid; gap: 16px; }
.form-row.col-2 { grid-template-columns: 1fr 1fr; }

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
label .required { color: var(--danger); margin-left: 3px; }
label .optional {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
select, textarea {
  width: 100%;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.92rem;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: var(--transition);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  background: var(--surface-4);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
input.error { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(239,68,68,0.12); }
input.success { border-color: var(--success); }

select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
select option { background: var(--surface-3); color: var(--text-primary); }

textarea { resize: vertical; min-height: 80px; }

.input-with-btn {
  display: flex;
  gap: 10px;
}
.input-with-btn input { flex: 1; }

/* ===== PARTNER TYPE GRID ===== */
.type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.type-card {
  background: var(--surface-3);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.type-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.05), transparent);
  opacity: 0;
  transition: var(--transition);
}
.type-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.type-card:hover::after { opacity: 1; }
.type-card.selected {
  border-color: var(--primary);
  background: rgba(99,102,241,0.08);
  box-shadow: 0 0 0 1px var(--primary), inset 0 0 20px rgba(99,102,241,0.05);
}
.type-card.selected::after { opacity: 1; }
.type-card.selected .type-name { color: var(--primary-light); }
.type-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}
.type-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.type-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.type-check {
  position: absolute;
  top: 10px; right: 10px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.type-card.selected .type-check { opacity: 1; }

/* ===== INFO DISPLAY ===== */
.info-card {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.info-card.success-card {
  border-color: rgba(16,185,129,0.3);
  background: rgba(16,185,129,0.05);
}
.info-card.warning-card {
  border-color: rgba(245,158,11,0.3);
  background: rgba(245,158,11,0.05);
}
.info-row {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.info-row:last-child { border-bottom: none; }
.info-label {
  color: var(--text-muted);
  min-width: 140px;
  flex-shrink: 0;
  font-weight: 500;
}
.info-value { color: var(--text-primary); font-weight: 500; }

/* ===== OTP INPUT ===== */
.otp-wrap {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}
.otp-input {
  width: 52px;
  height: 60px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--surface-3);
  color: var(--text-primary);
  caret-color: var(--primary);
  transition: var(--transition);
}
.otp-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
  background: var(--surface-4);
}
.otp-input.filled { border-color: var(--primary); background: rgba(99,102,241,0.1); }

/* ===== UPLOAD ZONE ===== */
.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--surface-3);
  position: relative;
  overflow: hidden;
}
.upload-zone:hover {
  border-color: var(--primary);
  background: rgba(99,102,241,0.04);
}
.upload-zone.has-file {
  border-color: var(--success);
  background: rgba(16,185,129,0.05);
}
.upload-zone input[type="file"] {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer;
  width: 100%; height: 100%;
  padding: 0;
}
.upload-icon { font-size: 2rem; margin-bottom: 8px; display: block; }
.upload-label-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 4px;
}
.upload-hint { font-size: 0.7rem; color: var(--text-muted); }
.upload-preview {
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-top: 8px;
  display: none;
}

/* ===== OCR RESULT ===== */
.ocr-result {
  display: none;
  background: var(--surface-3);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 14px;
}
.ocr-result.visible { display: block; animation: fadeIn 0.4s ease; }
.ocr-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--success);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== KYCK STATUS ===== */
.cks-status {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 20px;
}
.cks-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.cks-icon.green { background: rgba(16,185,129,0.15); }
.cks-icon.yellow { background: rgba(245,158,11,0.15); }
.cks-info-title { font-size: 0.92rem; font-weight: 600; margin-bottom: 3px; }
.cks-info-sub { font-size: 0.78rem; color: var(--text-muted); }

/* ===== EKYC SELFIE ===== */
.ekyc-cam {
  width: 100%;
  height: 240px;
  background: var(--surface-3);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.ekyc-cam video { width: 100%; height: 100%; object-fit: cover; display: none; }
.ekyc-cam .cam-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.cam-overlay .cam-icon { font-size: 3rem; }
.cam-overlay .cam-text { font-size: 0.85rem; color: var(--text-muted); }
.face-frame {
  width: 120px; height: 150px;
  border: 2px solid var(--primary);
  border-radius: 60px 60px 60px 60px;
  display: none;
  position: absolute;
}
/* ===== SIGN PAD ===== */
.sign-wrap {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}
#signCanvas {
  width: 100%;
  height: 180px;
  cursor: crosshair;
  display: block;
}
.sign-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(99,102,241,0.55);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  background: var(--surface-3);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--surface-4);
}

.btn-success {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  box-shadow: 0 4px 16px rgba(16,185,129,0.35);
}
.btn-success:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(16,185,129,0.45); }

.btn-outline {
  background: transparent;
  color: var(--primary-light);
  border: 1px solid var(--primary);
}
.btn-outline:hover { background: rgba(99,102,241,0.1); }

.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-full { width: 100%; }

.btn-loading { position: relative; }
.btn-loading::after {
  content: '';
  position: absolute;
  right: 12px;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== NAV FOOTER ===== */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  gap: 12px;
}
.step-nav .spacer { flex: 1; }

/* ===== ALERT BANNER ===== */
.alert {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.82rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}
.alert-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.alert-info { background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.3); color: #a5b4fc; }
.alert-warning { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3); color: #fcd34d; }
.alert-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: #6ee7b7; }
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }

/* ===== TOGGLE / CHECKBOX ===== */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  cursor: pointer;
}
.toggle-row:hover { border-color: var(--border-hover); }
.toggle-info .toggle-title { font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.toggle-info .toggle-sub { font-size: 0.75rem; color: var(--text-muted); }
.toggle-switch {
  width: 44px; height: 24px;
  background: var(--surface-4);
  border-radius: 100px;
  position: relative;
  flex-shrink: 0;
  transition: var(--transition);
}
.toggle-switch.on { background: var(--primary); }
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.toggle-switch.on::after { left: calc(100% - 21px); }

/* ===== SUCCESS STATE ===== */
.success-screen {
  text-align: center;
  padding: 20px 0;
}
.success-anim {
  width: 100px; height: 100px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 24px;
  box-shadow: 0 0 0 0 rgba(99,102,241,0.4);
  animation: successPulse 1s ease forwards;
}
@keyframes successPulse {
  0%  { transform: scale(0); opacity:0; }
  60% { transform: scale(1.1); box-shadow: 0 0 0 20px rgba(99,102,241,0); }
  100%{ transform: scale(1); opacity:1; }
}
.success-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}
.success-sub { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; margin-bottom: 30px; }
.account-info-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
  text-align: left;
}
.account-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.875rem;
}
.account-info-item .key { color: var(--text-muted); }
.account-info-item .val { font-weight: 600; color: var(--primary-light); }

/* ===== DIVIDER ===== */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--text-muted);
  font-size: 0.78rem;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ===== HELPER ===== */
.helper-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}
.helper-text.error-text { color: var(--danger); }
.helper-text.success-text { color: var(--success); }

/* ===== SPINNER ===== */
.spinner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  gap: 14px;
}
.spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--surface-4);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.spinner-text { color: var(--text-muted); font-size: 0.85rem; }

/* ===== STEPPER (TAX LOOKUP) ===== */
.lookup-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  transition: var(--transition);
}
.lookup-step.pending { color: var(--text-muted); }
.lookup-step.loading { border-color: var(--primary); color: var(--primary-light); }
.lookup-step.done-ok { border-color: var(--success); color: var(--success); background: rgba(16,185,129,0.05); }
.lookup-step.done-fail { border-color: var(--danger); color: #fca5a5; background: rgba(239,68,68,0.05); }
.lookup-icon { font-size: 1.1rem; flex-shrink: 0; }
.mini-spin {
  width: 16px; height: 16px;
  border: 2px solid rgba(99,102,241,0.3);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .card { padding: 28px 22px; }
  .type-grid { grid-template-columns: 1fr 1fr; }
  .form-row.col-2 { grid-template-columns: 1fr; }
  .upload-grid { grid-template-columns: 1fr; }
  .otp-input { width: 42px; height: 50px; font-size: 1.2rem; }
}
@media (max-width: 420px) {
  .type-grid { grid-template-columns: 1fr; }
  .step-dot-label { display: none; }
}
