.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}
.modal.show { display: flex; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal .box {
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xl);
  padding: 28px;
  width: min(420px, 92vw);
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: pop .25s cubic-bezier(.34,1.56,.64,1);
}
@keyframes pop {
  from { transform: scale(.9); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}

.modal h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.modal p {
  color: var(--ink-dim);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  font-family: var(--mono);
  min-height: 1.4em;
}

.progress {
  height: 10px;
  background: var(--line);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.progress > .bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 0%;
  transition: width .15s ease;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 12px rgba(255,111,168,.5);
}

.modal .modal-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}
