/* ============================================================
   THE SEALED VAULT — Commercial Build
   modals.css — All Modal Styles
   © 2026 The Sealed Vault LLC
   ============================================================ */

/* ── Modal Tab System ──────────────────────────────────────── */
.modal-tabs {
  display: grid;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-lg);
  background: rgba(5,13,26,0.5);
}

.modal-tab {
  padding: 10px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: all var(--transition);
  position: relative;
}
.modal-tab:last-child { border-right: none; }
.modal-tab:hover:not(.active) { background: rgba(255,255,255,0.03); color: var(--cream); }
.modal-tab.active { background: rgba(212,168,67,0.1); color: var(--gold-lt); }
.modal-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ── Modal Actions Row ─────────────────────────────────────── */
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-btn-row .btn { flex: 1; min-width: 130px; }

/* ── Email Preview ─────────────────────────────────────────── */
.email-preview {
  background: rgba(5,13,26,0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--muted);
  white-space: pre-wrap;
  max-height: 200px;
  overflow-y: auto;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

/* ── Two-Person Principle Notice ───────────────────────────── */
.two-person-notice {
  padding: 12px 16px;
  background: rgba(212,168,67,0.06);
  border: 1px solid var(--gold-border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--gold-lt);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

/* ── Delete Confirm ────────────────────────────────────────── */
.delete-warning {
  text-align: center;
  padding: var(--space-lg) 0;
}

.delete-warning-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  display: block;
}

.delete-vault-name {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--cream);
  margin-bottom: var(--space-md);
}

.delete-confirm-input {
  text-align: center;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
}

.delete-notice {
  padding: 10px 14px;
  background: rgba(192,57,43,0.1);
  border: 1px solid rgba(192,57,43,0.3);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: #f1948a;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  text-align: left;
}

/* ── Reseal Modal ──────────────────────────────────────────── */
.reseal-notice {
  padding: 10px 14px;
  background: rgba(212,168,67,0.06);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--gold-lt);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

/* ── Legal Modal ───────────────────────────────────────────── */
#legal-modal-overlay .modal {
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.legal-content {
  overflow-y: auto;
  flex: 1;
  padding-right: 4px;
}

.legal-section-title {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--gold-lt);
  margin: var(--space-md) 0 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold-border);
}

.legal-body {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.legal-body ul { padding-left: 16px; margin-top: 6px; }
.legal-body li { margin-bottom: 4px; }
