/* ============================================================
   sign.css — Signing Portal Styles
   Positive Light Learning Network — Educator NIL™ Platform
   ============================================================ */

/* ── SIGN PAGE BASE ──────────────────────────────────────── */
.sign-page {
  background: var(--bg-base);
  min-height: 100vh;
}

/* ── SIGN NAVBAR ─────────────────────────────────────────── */
.sign-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 20, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}
.sign-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.sign-nav-inner .nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.sign-nav-right { margin-left: auto; }

.legal-ai-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 99px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  cursor: default;
}
.lai-icon { font-size: 1rem; }
.lai-text strong { color: var(--gold); }

/* ── PROGRESS TRACKER ────────────────────────────────────── */
.progress-tracker {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 60px;
  z-index: 90;
}
.pt-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pt-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  cursor: default;
}
.pt-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition);
}
.pt-step span {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
  text-align: center;
}
.pt-step.active .pt-dot {
  background: var(--gradient-main);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.5);
}
.pt-step.active span { color: var(--purple-light); font-weight: 600; }
.pt-step.completed .pt-dot {
  background: var(--emerald);
  border-color: transparent;
  color: #fff;
}
.pt-step.completed .pt-dot::after { content: '✓'; }
.pt-step.completed .pt-dot { font-size: 0; }
.pt-step.completed .pt-dot::after { font-size: 1rem; }
.pt-step.completed span { color: var(--emerald); }

.pt-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.pt-line::after {
  content: '';
  position: absolute;
  left: -100%;
  top: 0; bottom: 0;
  width: 100%;
  background: var(--gradient-main);
  transition: left 0.6s ease;
}
.pt-line.filled::after { left: 0; }

/* ── SIGN SECTIONS ───────────────────────────────────────── */
.sign-section {
  display: none;
  padding: 4rem 0 6rem;
  animation: fadeSlideIn 0.5s ease;
}
.sign-section.active { display: block; }

.sign-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.sign-container.wide { max-width: 1060px; }

.step-header {
  text-align: center;
  margin-bottom: 3rem;
}
.step-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--purple-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.step-header h1, .step-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.step-header p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── STEP NAV BUTTONS ────────────────────────────────────── */
.step-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.btn-step-next {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: var(--gradient-main);
  color: #fff;
  border-radius: 99px;
  font-size: 1rem;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.4);
}
.btn-step-next:hover:not(.disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.55);
}
.btn-step-next.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-step-back {
  padding: 0.9rem 1.5rem;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}
.btn-step-back:hover { border-color: var(--border-bright); color: var(--text-primary); }

/* ── STEP 1 — SIGNER TYPE ────────────────────────────────── */
.signer-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.signer-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: left;
  transition: var(--transition);
  cursor: pointer;
}
.signer-card:hover {
  border-color: var(--border-bright);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}
.signer-card.selected {
  border-color: var(--purple-mid);
  background: rgba(124, 58, 237, 0.1);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}
.sc-icon { font-size: 2.5rem; }
.signer-card h3 { font-size: 1.1rem; font-weight: 700; }
.signer-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }

.sc-contract-tag {
  margin-top: 0.5rem;
  padding: 0.3rem 0.75rem;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--purple-light);
}
.minor-tag {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--gold);
}
.guardian-tag {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--emerald);
}
.inst-tag {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
  color: var(--cyan);
}

/* Signer info form */
.signer-info-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  animation: fadeSlideIn 0.4s ease;
}

.sif-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.sif-icon { font-size: 2rem; }
.sif-header h3 { font-size: 1.2rem; font-weight: 700; }

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.minor-alert {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}
.ma-icon { font-size: 1.5rem; flex-shrink: 0; }
.ma-text strong { display: block; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--gold); }
.ma-text p { font-size: 0.83rem; color: var(--text-secondary); line-height: 1.6; }

.equity-id-block {
  padding: 1.25rem;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}
.eib-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}
.eib-icon { font-size: 1.2rem; }
.eib-header em { color: var(--text-muted); font-weight: 400; }
.eib-desc { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 0.75rem; }

/* ── STEP 2 — VIDEO + LAWS ───────────────────────────────── */
.video-explainer {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.ve-player {
  position: relative;
  min-height: 280px;
}

.ve-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(6, 182, 212, 0.05));
}
.vep-icon { font-size: 3rem; }
.ve-placeholder h3 { font-size: 1.25rem; font-weight: 700; }
.ve-placeholder p { font-size: 0.9rem; color: var(--text-secondary); max-width: 480px; }
.vep-sub { font-size: 0.78rem; color: var(--text-muted); }

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  background: var(--gradient-main);
  color: #fff;
  border-radius: 99px;
  font-size: 1rem;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.4);
  margin: 0.5rem 0;
}
.btn-play:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(124, 58, 237, 0.55); }

.vep-chapters {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
  max-width: 480px;
  text-align: left;
  margin-top: 0.5rem;
}
.chapter-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.chapter-item:hover { background: rgba(124, 58, 237, 0.1); border-color: var(--border-bright); }
.chap-time { color: var(--purple-light); font-weight: 600; min-width: 36px; }
.chap-title { color: var(--text-secondary); }

/* Simulated video player */
.ve-simulated { background: #000; }
.sim-screen {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 220px;
}
.sim-playing {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex: 1;
}
.sim-avatar { font-size: 4rem; }
.sim-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  font-style: italic;
}
.sim-progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 99px;
  overflow: hidden;
}
.sim-progress-fill {
  height: 100%;
  background: var(--gradient-main);
  border-radius: 99px;
  transition: width 0.5s linear;
  width: 0%;
}
.sim-controls {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.ve-watched-check {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(16, 185, 129, 0.1);
  border-top: 1px solid rgba(16, 185, 129, 0.25);
}
.vwc-icon { font-size: 1.5rem; }
.vwc-text strong { display: block; font-size: 0.9rem; font-weight: 700; color: var(--emerald); }
.vwc-text span { font-size: 0.82rem; color: var(--text-muted); }

/* Laws summary */
.laws-summary { margin-top: 0.5rem; }
.laws-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.laws-intro { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 1.5rem; }

.law-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
.law-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.law-card:hover { border-color: var(--border-bright); }

.lc-num {
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 36px;
  line-height: 1;
}
.lc-body { flex: 1; }
.lc-body h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.6rem; }
.lc-body p { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 0.75rem; }
.lc-body p strong { color: var(--text-primary); }
.lc-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(79, 70, 229, 0.12);
  border: 1px solid rgba(79, 70, 229, 0.25);
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--purple-light);
  letter-spacing: 0.04em;
}

.laws-acknowledgment {
  padding: 1.25rem;
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.checkbox-label.large { font-size: 0.92rem; align-items: flex-start; }

/* ── STEP 3 — QUIZ ───────────────────────────────────────── */
.quiz-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.quiz-progress-bar {
  height: 6px;
  background: var(--bg-card);
  border-radius: 99px;
  overflow: hidden;
}
.qpb-fill {
  height: 100%;
  background: var(--gradient-main);
  border-radius: 99px;
  transition: width 0.5s ease;
}
.quiz-score-display {
  display: flex;
  gap: 2rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.q-correct { color: var(--emerald); }

.quiz-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  animation: fadeSlideIn 0.4s ease;
}

.qc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.qc-num {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.qc-category {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  background: rgba(124, 58, 237, 0.12);
  border-radius: 99px;
  color: var(--purple-light);
}

.qc-question {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.qc-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.qc-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: pointer;
  line-height: 1.5;
}
.qc-option:hover:not([disabled]) {
  border-color: var(--purple-mid);
  background: rgba(124, 58, 237, 0.08);
  color: var(--text-primary);
}
.qc-option.correct {
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.1);
  color: var(--text-primary);
}
.qc-option.incorrect {
  border-color: var(--rose);
  background: rgba(239, 68, 68, 0.08);
  color: var(--text-secondary);
}
.qc-option.selected-correct {
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.15);
  color: #fff;
  font-weight: 700;
}

.qc-feedback {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.65;
}
.qc-feedback.correct-fb {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald);
}
.qc-feedback.incorrect-fb {
  background: rgba(239, 68, 68, 0.07);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: var(--rose);
}

/* Quiz result */
.quiz-result {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  animation: fadeSlideIn 0.5s ease;
}
.qr-icon { font-size: 3rem; margin-bottom: 1rem; }
.quiz-result h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.75rem; }
.quiz-result p { font-size: 1rem; color: var(--text-secondary); max-width: 480px; margin: 0 auto 1rem; }
.qr-score {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 1rem 0 1.5rem;
}

/* ── STEP 4 — INITIALING ─────────────────────────────────── */
.initial-progress-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.ipd-bar {
  width: 300px;
  height: 6px;
  background: var(--bg-card);
  border-radius: 99px;
  overflow: hidden;
}
.ipd-fill {
  height: 100%;
  background: var(--gradient-main);
  border-radius: 99px;
  transition: width 0.4s ease;
}

.initialing-contract {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.ic-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.ic-block.initialed {
  border-color: var(--emerald);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}

.icb-section-tag {
  padding: 0.75rem 1.5rem;
  background: rgba(124, 58, 237, 0.1);
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--purple-light);
}

.icb-summary {
  padding: 1.5rem;
}
.icb-summary h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.icb-summary p {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.icb-summary p strong { color: var(--text-primary); }
.icb-summary p em { color: var(--purple-light); }

.icb-key-point {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  background: rgba(124, 58, 237, 0.07);
  border-left: 3px solid var(--purple-mid);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.icb-key-point strong { color: var(--text-primary); }
.icb-key-point.success { background: rgba(16, 185, 129, 0.07); border-left-color: var(--emerald); }
.icb-key-point.warning { background: rgba(245, 158, 11, 0.07); border-left-color: var(--gold); }
.kp-icon { flex-shrink: 0; }

.icb-prohibited-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.75rem 0;
  padding-left: 0.5rem;
}
.icb-prohibited-list li { font-size: 0.85rem; color: var(--rose); list-style: none; }

.initial-box-wrap {
  padding: 1.25rem 1.5rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}
.initial-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.65rem;
}
.initial-field-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.initial-field {
  width: 160px;
  padding: 0.65rem 1rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1.1rem;
  font-family: 'Dancing Script', cursive;
  text-align: center;
  transition: var(--transition);
  letter-spacing: 0.05em;
}
.initial-field:focus {
  outline: none;
  border-color: var(--purple-mid);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.initial-field.valid {
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.05);
}
.initial-preview {
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
  color: var(--purple-light);
}
.init-check {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--emerald);
}

/* ── STEP 5 — FINAL SIGNATURE ────────────────────────────── */
.signing-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
}
.signing-summary h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--purple-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
}
.ss-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.ss-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.ss-item span { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.ss-item strong { font-size: 0.92rem; color: var(--text-primary); }

/* Final acknowledgments */
.final-acks {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
}
.final-acks h3 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.ack-list { display: flex; flex-direction: column; gap: 1rem; }
.ack-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 400;
  font-size: 0.87rem;
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: 0;
}
.ack-item:hover { border-color: var(--border-bright); }
.ack-item.checked {
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.05);
}
.ack-check { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--emerald); margin-top: 2px; }

/* Signature zone */
.signature-zone {
  background: var(--bg-card);
  border: 1.5px solid var(--border-bright);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 2rem;
}

.sz-instructions {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(124, 58, 237, 0.06);
  border-bottom: 1px solid var(--border);
}
.sz-inst-icon { font-size: 1.75rem; flex-shrink: 0; }
.sz-inst-text strong { display: block; font-size: 1rem; font-weight: 700; margin-bottom: 0.35rem; }
.sz-inst-text p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

.sig-input-area { padding: 1.5rem; }
.sig-field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}
.sig-type-input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1.1rem;
  transition: var(--transition);
}
.sig-type-input:focus {
  outline: none;
  border-color: var(--purple-mid);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.sig-preview-area {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(10,10,20,0.6), rgba(22,22,58,0.4));
}
.sig-preview-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.sig-preview-display {
  min-height: 80px;
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,0.02);
  border-bottom: 2px solid rgba(124, 58, 237, 0.4);
  margin-bottom: 0.75rem;
}
.sig-cursive-text {
  font-family: 'Dancing Script', cursive;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--purple-light);
  transition: all 0.2s ease;
}
.network-cursive { color: var(--cyan); font-size: 1.6rem; }
.sig-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Guardian sig block */
.gsb-divider {
  padding: 0.75rem 1.5rem;
  background: rgba(16, 185, 129, 0.05);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--emerald);
  text-align: center;
}

/* Network sig block */
.nsb-divider {
  padding: 0.75rem 1.5rem;
  background: rgba(79, 70, 229, 0.05);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple-light);
  text-align: center;
}
.network-sig-display {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
}
.nsd-left { flex: 1; }
.nsd-detail { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.35rem; }
.nsd-seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.seal-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(79,70,229,0.2), rgba(6,182,212,0.15));
  border: 2px solid var(--border-bright);
}
.nsd-seal span { font-size: 0.65rem; color: var(--text-muted); text-align: center; line-height: 1.3; }

/* Submit zone */
.submit-zone { text-align: center; }
.btn-submit-final {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 2.5rem;
  background: var(--gradient-main);
  color: #fff;
  border-radius: 99px;
  font-size: 1.1rem;
  font-weight: 800;
  transition: var(--transition);
  box-shadow: 0 4px 32px rgba(124, 58, 237, 0.45);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.btn-submit-final:hover:not(.disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(124, 58, 237, 0.65);
}
.btn-submit-final.disabled { opacity: 0.4; cursor: not-allowed; }
.bsf-icon { font-size: 1.3rem; }
.submit-legal-note { font-size: 0.78rem; color: var(--text-muted); max-width: 480px; margin: 0 auto; line-height: 1.65; }

/* ── STEP 6 — SUCCESS ────────────────────────────────────── */
.success-screen {
  text-align: center;
  padding: 2rem 0;
}
.ss-animation {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem;
}
.ss-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--emerald);
  animation: ringExpand 0.8s ease forwards;
}
@keyframes ringExpand {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.ss-checkmark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--emerald);
  animation: checkAppear 0.5s 0.4s ease both;
}
@keyframes checkAppear {
  from { transform: scale(0) rotate(-20deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}
.success-screen h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.ss-subtitle { font-size: 1rem; color: var(--text-secondary); margin-bottom: 2rem; }

.ss-details {
  display: inline-flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.25rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  text-align: left;
  margin-bottom: 2rem;
  min-width: 320px;
}
.ssd-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
}
.ssd-item span { color: var(--text-muted); min-width: 100px; }
.ssd-item strong { color: var(--text-primary); }
.status-active { color: var(--emerald); }

.ss-next-steps {
  max-width: 520px;
  margin: 0 auto 2.5rem;
  text-align: left;
}
.ss-next-steps h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-align: center;
}
.sns-list { display: flex; flex-direction: column; gap: 1rem; }
.sns-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.sns-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.ss-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── UTILITIES ───────────────────────────────────────────── */
.hidden { display: none !important; }

@media (max-width: 700px) {
  .signer-type-grid { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .ss-grid { grid-template-columns: 1fr; }
  .pt-inner { gap: 0.25rem; }
  .pt-step span { display: none; }
  .sign-nav-right { display: none; }
}
