:root {
  --bg: #FAFBFD;
  --bg-subtle: #F1F5F9;
  --surface: #FFFFFF;
  --surface-hover: #F8FAFC;
  --border: #E2E8F0;
  --border-focus: rgba(66,165,245,0.5);
  --primary: #2196F3;
  --primary-light: #42A5F5;
  --primary-dark: #1976D2;
  --primary-glow: rgba(33,150,243,0.12);
  --primary-glow-strong: rgba(33,150,243,0.2);
  --navy: #0A1F44;
  --navy-light: #1A3A6B;
  --text: #1E293B;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --success: #16A34A;
  --success-bg: rgba(22,163,74,0.06);
  --error: #DC2626;
  --error-bg: rgba(220,38,38,0.06);
  --warning: #D97706;
  --warning-bg: rgba(217,119,6,0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.05);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ═══ AMBIENT BACKGROUND ═══ */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(33,150,243,0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: ambientDrift 20s ease-in-out infinite alternate;
}
body::after {
  content: '';
  position: fixed;
  bottom: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(33,150,243,0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: ambientDrift 25s ease-in-out infinite alternate-reverse;
}
@keyframes ambientDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(80px, 60px); }
}

/* ═══ NOISE TEXTURE OVERLAY ═══ */
.noise-overlay { display: none; }

/* ═══ HEADER ═══ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}
.logo-mark {
  display: none;
}
.header-logo {
  height: 52px;
  width: auto;
}
.brand-text {
  font-family: var(--font);
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.brand-text span { color: var(--primary); }
.header-tag {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 99px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ═══ LAYOUT ═══ */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 16px 80px;
  position: relative;
  z-index: 1;
}

/* ═══ PROGRESS BAR ═══ */
.progress-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.progress-meta #step-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.progress-meta #step-pct {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.progress-track {
  background: var(--bg-subtle);
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-light));
  border-radius: 99px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.step-dots {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  gap: 4px;
}
.step-dot {
  flex: 1;
  text-align: center;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  letter-spacing: 0.02em;
}
.step-dot.active { color: var(--primary); font-weight: 600; }
.step-dot.done { color: var(--success); }

/* ═══ CARD / STEP ═══ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  animation: cardIn 0.4s ease both;
  box-shadow: var(--shadow);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.step-exit {
  animation: cardOut 0.25s ease both;
}
@keyframes cardOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-10px) scale(0.98); }
}
.step-enter {
  animation: cardIn 0.4s ease both;
}

/* ═══ STEP HEADER ═══ */
.step-header { margin-bottom: 28px; }
.step-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-glow);
  border: 1px solid rgba(33,150,243,0.15);
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 14px;
}
.step-title {
  font-family: var(--font);
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.step-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}

/* ═══ GUIDANCE BOXES ═══ */
.guidance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.guidance-box {
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 13px;
  line-height: 1.7;
  border-left: 3px solid;
  border-top: none;
  border-right: none;
  border-bottom: none;
}
.guidance-box h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.guidance-box ul { padding-left: 16px; }
.guidance-box li { margin-bottom: 4px; color: var(--text-secondary); }
.guidance-box.what { background: rgba(33,150,243,0.04); border-left-color: var(--primary); }
.guidance-box.what h4 { color: var(--primary); }
.guidance-box.dos { background: rgba(22,163,74,0.04); border-left-color: var(--success); }
.guidance-box.dos h4 { color: var(--success); }
.guidance-box.donts { background: rgba(217,119,6,0.04); border-left-color: var(--warning); }
.guidance-box.donts h4 { color: var(--warning); }
.guidance-box.mistakes { background: rgba(220,38,38,0.04); border-left-color: var(--error); }
.guidance-box.mistakes h4 { color: var(--error); }

/* ═══ DIVIDER ═══ */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

/* ═══ FORM FIELDS ═══ */
.field-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.field-group.full { grid-template-columns: 1fr; }
@media (max-width: 560px) { .field-group { grid-template-columns: 1fr; } }

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}
.field label .req { color: var(--error); margin-left: 3px; }
.field label .optional {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 400;
}
.field input, .field select {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  transition: all var(--transition);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394A3B8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.field input::placeholder { color: var(--text-muted); }
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: var(--surface);
}
.field .hint {
  font-size: 11px;
  color: var(--text-muted);
}
.field .error-msg {
  font-size: 11px;
  color: var(--error);
  display: none;
}
.field.has-error input, .field.has-error select {
  border-color: var(--error);
  box-shadow: 0 0 0 3px var(--error-bg);
}
.field.has-error .error-msg { display: block; }

/* ═══ UPLOAD ZONES ═══ */
.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 580px) { .upload-grid { grid-template-columns: 1fr; } }

.upload-zone {
  position: relative;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--surface);
  overflow: hidden;
}
.upload-zone:hover {
  border-color: var(--primary-light);
  background: rgba(33,150,243,0.02);
}
.upload-zone.drag-over {
  border-color: var(--primary);
  background: var(--primary-glow);
  box-shadow: 0 0 20px var(--primary-glow);
}
.upload-zone.has-file {
  border-style: solid;
  border-color: rgba(22,163,74,0.3);
  background: rgba(22,163,74,0.03);
}
.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.upload-icon-area {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  color: var(--text-muted);
}
.upload-preview {
  display: none;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  margin: 0 auto 10px;
  border: 2px solid var(--border);
}
.upload-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.upload-hint {
  font-size: 11px;
  color: var(--text-muted);
}
.upload-hint strong { color: var(--primary); }
.upload-filename {
  font-size: 12px;
  color: var(--success);
  font-weight: 600;
  margin-top: 8px;
  word-break: break-all;
}
.upload-filesize {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.upload-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(220,38,38,0.1);
  border: none;
  color: var(--error);
  cursor: pointer;
  font-size: 14px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background var(--transition);
}
.upload-remove:hover { background: rgba(220,38,38,0.2); }
.upload-zone.has-file .upload-remove { display: flex; }

/* ═══ SAMPLE / TIP BOX ═══ */
.sample-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}
.sample-box-header {
  background: var(--primary-glow);
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sample-tips {
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.sample-tips strong { color: var(--success); }
.sample-tips .bad { color: var(--error); }

/* ═══ CHECKBOXES ═══ */
.check-field {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  cursor: pointer;
  transition: all var(--transition);
}
.check-field:hover {
  border-color: rgba(33,150,243,0.2);
  background: rgba(33,150,243,0.03);
}
.check-field input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}
.check-field span {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ═══ BUTTONS ═══ */
.nav-btns {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  gap: 12px;
}
.btn {
  padding: 14px 28px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(33,150,243,0.25);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(33,150,243,0.35);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-subtle);
  color: var(--primary-dark);
  border-color: var(--primary-light);
}

/* ═══ SUBMIT BUTTON ═══ */
.btn-submit {
  width: 100%;
  padding: 18px;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(33,150,243,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(33,150,243,0.4);
}
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.submit-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══ BANNERS ═══ */
.info-banner {
  background: var(--primary-glow);
  border: 1px solid rgba(33,150,243,0.12);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.7;
}
.info-banner strong { color: var(--primary); }
.info-banner.success-banner {
  background: var(--success-bg);
  border-color: rgba(22,163,74,0.12);
}
.info-banner.success-banner strong { color: var(--success); }

/* ═══ WELCOME ═══ */
.welcome-hero { text-align: center; padding: 10px 0 24px; }
.welcome-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary-glow), rgba(33,150,243,0.06));
  border: 1px solid rgba(33,150,243,0.15);
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 36px;
}
.welcome-hero h1 {
  font-family: var(--font);
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.2;
}
.welcome-hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.welcome-hero > p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.steps-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 20px 0;
}
@media (max-width: 560px) { .steps-preview { grid-template-columns: 1fr 1fr; } }
.step-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 12px 8px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
  transition: all var(--transition);
}
.step-pill:hover {
  border-color: rgba(33,150,243,0.25);
  background: var(--primary-glow);
}
.step-pill .sp-num {
  display: block;
  font-size: 9px;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* ═══ CHECKLIST ═══ */
.checklist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}
@media (max-width: 560px) { .checklist-grid { grid-template-columns: 1fr; } }
.checklist-card {
  border-radius: var(--radius-sm);
  padding: 18px;
  border: 1px solid;
}
.checklist-card.docs-card {
  background: rgba(217,119,6,0.04);
  border-color: rgba(217,119,6,0.15);
}
.checklist-card.info-card {
  background: rgba(22,163,74,0.04);
  border-color: rgba(22,163,74,0.15);
}
.checklist-card h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.checklist-card.docs-card h4 { color: var(--warning); }
.checklist-card.info-card h4 { color: var(--success); }
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.checklist-item .ci-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.docs-card .ci-dot { background: rgba(217,119,6,0.1); color: var(--warning); }
.info-card .ci-dot { background: rgba(22,163,74,0.1); color: var(--success); }

/* ═══ LOGIN PANEL ═══ */
.login-panel {
  background: linear-gradient(135deg, rgba(33,150,243,0.06), rgba(33,150,243,0.02));
  border: 1px solid rgba(33,150,243,0.15);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.login-panel::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(33,150,243,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.login-panel h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.login-panel > p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}
.login-row { display: flex; gap: 10px; }
.login-row input {
  flex: 1;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 15px;
  font-family: var(--font);
  background: var(--surface);
  color: var(--text);
  transition: all var(--transition);
}
.login-row input::placeholder { color: var(--text-muted); }
.login-row input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.login-row button {
  padding: 13px 22px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-xs);
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(33,150,243,0.2);
}
.login-row button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(33,150,243,0.3);
}
.login-status { font-size: 12px; margin-top: 10px; min-height: 18px; font-weight: 500; }
.login-status.ok { color: var(--success); }
.login-status.err { color: var(--error); }
@media (max-width: 520px) { .login-row { flex-direction: column; } }

/* ═══ AUTOSAVE BADGE ═══ */
.autosave-indicator {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--success);
  margin-bottom: 16px;
  font-weight: 500;
}
.autosave-indicator.visible { display: flex; }
.autosave-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ═══ PLATFORM CARDS ═══ */
.platform-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.platform-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  transition: all var(--transition);
}
.platform-card:hover {
  border-color: rgba(33,150,243,0.2);
  background: var(--bg-subtle);
  box-shadow: var(--shadow);
}
.platform-card .p-icon { font-size: 30px; margin-bottom: 10px; }
.platform-card h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--navy);
}
.platform-card p { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ═══ TERMS ═══ */
.terms-link-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin-bottom: 18px;
  text-align: center;
}
.terms-link-box p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.terms-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #FFFFFF;
  padding: 14px 24px;
  border-radius: var(--radius-xs);
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(33,150,243,0.2);
}
.terms-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(33,150,243,0.3);
}

/* ═══ SUMMARY ═══ */
.summary-section { margin-bottom: 24px; }
.summary-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.summary-icon { color: var(--primary); display: flex; }
.summary-section h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  gap: 16px;
}
.summary-row:last-child { border-bottom: none; }
.summary-row .s-label { color: var(--text-muted); flex-shrink: 0; }
.summary-row .s-value { color: var(--text); font-weight: 500; text-align: right; }
.summary-row .s-value.uploaded { color: var(--success); }
.summary-row .s-value.missing { color: var(--text-muted); font-style: italic; }

/* ═══ SUCCESS SCREEN ═══ */
.success-screen { text-align: center; padding: 48px 20px; display: none; }
.success-check {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--success-bg), rgba(22,163,74,0.12));
  border: 2px solid rgba(22,163,74,0.3);
  border-radius: 50%;
  display: grid;
  place-items: center;
  animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
@keyframes successPop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.success-check svg { color: var(--success); }
.success-screen h2 {
  font-family: var(--font);
  font-size: 28px;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 10px;
}
.success-screen > p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 28px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}
.next-steps {
  text-align: left;
  background: var(--success-bg);
  border: 1px solid rgba(22,163,74,0.12);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-top: 20px;
}
.next-steps h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--success);
  margin-bottom: 12px;
}
.next-steps ol {
  padding-left: 18px;
  font-size: 13px;
  line-height: 2.2;
  color: var(--text-secondary);
}
.next-steps a { color: var(--primary); font-weight: 600; text-decoration: none; }
.next-steps a:hover { text-decoration: underline; }
.empathy-box {
  background: var(--primary-glow);
  border: 1px solid rgba(33,150,243,0.12);
  border-radius: var(--radius-xs);
  padding: 16px 20px;
  margin-top: 16px;
  font-weight: 600;
  font-size: 14px;
  color: var(--primary-dark);
  line-height: 1.7;
}

/* ═══ SUPPORT BANNER ═══ */
.support-banner {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-top: 24px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 13px;
}
.support-banner .sb-icon { font-size: 24px; flex-shrink: 0; }
.support-banner h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--navy);
}
.support-banner p { color: var(--text-secondary); line-height: 1.6; margin-top: 4px; }
.support-banner a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.support-banner a:hover { text-decoration: underline; }

/* ═══ TOAST ═══ */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 14px 20px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  z-index: 9999;
  transform: translateX(120%);
  transition: transform 0.3s ease;
  max-width: 360px;
  box-shadow: var(--shadow-md);
}
.toast.show { transform: translateX(0); }
.toast-error {
  background: #FEF2F2;
  border: 1px solid rgba(220,38,38,0.2);
  color: var(--error);
}
.toast-warning {
  background: #FFFBEB;
  border: 1px solid rgba(217,119,6,0.2);
  color: var(--warning);
}
.toast-success {
  background: #F0FDF4;
  border: 1px solid rgba(22,163,74,0.2);
  color: var(--success);
}
.toast-info {
  background: #EFF6FF;
  border: 1px solid rgba(33,150,243,0.2);
  color: var(--primary);
}

/* ═══ VIDEO PLACEHOLDER ═══ */
.video-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 56.25%;
}
.video-box iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 520px) {
  .card { padding: 24px 18px; }
  .btn { padding: 12px 20px; font-size: 13px; }
  .step-title { font-size: 24px; }
  .step-dots { display: none; }
  .header-tag { display: none; }
  .welcome-hero h1 { font-size: 26px; }
}

/* ═══ SELECTION STYLES ═══ */
::selection {
  background: rgba(33,150,243,0.2);
  color: var(--text);
}

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }
