* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6); /* fundo escuro */
  display: none; /* começa escondido */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* animação suave */
.modal-content {
  animation: modalFade 0.25s ease-out;
}

@keyframes modalFade {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-content {
  background: white;
  width: 100%;
  max-width: 420px;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-header-bar {
  width: 40px;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  margin: 12px auto 0;
}

.modal-body {
  padding: 20px 22px 28px;
  text-align: center;
}

.modal-attention {
  color: #c62828;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-transform: uppercase;
}

.modal-attention svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.modal-subtitle {
  font-size: 15px;
  color: #1a1a1a;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.4;
}

.modal-subtitle-main {
  display: inline;
  font-weight: 700;
  color: #111;
}

.modal-subtitle-placa,
.modal-subtitle span.modal-subtitle-placa {
  display: inline;
  color: #9e9e9e;
  font-weight: 400;
  font-size: 14px;
}

.modal-main-text {
  font-size: 14px;
  line-height: 1.55;
  color: #333;
  margin-bottom: 18px;
  text-align: left;
}

.modal-main-text-rest {
  color: #333;
  font-weight: 400;
}

.red-text {
  color: #c62828;
  font-weight: 700;
}

.modal-countdown {
  text-align: center;
  margin-bottom: 18px;
  padding: 16px 12px;
  background: #fff5f5;
  border: 1px solid #ffcdd2;
  border-radius: 12px;
}

.modal-countdown-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #b71c1c;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.modal-countdown-time {
  font-size: 42px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #c62828;
  letter-spacing: 0.06em;
}

.modal-countdown-hint {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #6b6b6b;
}

.modal-countdown.is-urgent .modal-countdown-time {
  color: #b71c1c;
  animation: countdown-pulse 1s ease-in-out infinite;
}

.modal-countdown.is-expired .modal-countdown-time {
  color: #fff;
  background: #c62828;
  border-radius: 8px;
  padding: 6px 12px;
  display: inline-block;
}

.modal-countdown.is-expired .modal-countdown-label {
  color: #c62828;
}

@keyframes countdown-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

.ctb-box {
  background: #faf6f6;
  border-left: 6px solid #c62828;
  border-radius: 10px;
  padding: 16px 14px 16px 16px;
  text-align: left;
  margin-bottom: 22px;
}

.ctb-box-title {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  margin: 0 0 10px 0;
}

.ctb-box-desc {
  font-size: 12px;
  line-height: 1.45;
  color: #5c5c5c;
  margin: 0 0 12px 0;
}

.ctb-details p {
  margin: 0 0 6px 0;
  font-size: 13px;
  line-height: 1.4;
  color: #333;
}

.ctb-details p:last-child {
  margin-bottom: 0;
}

.ctb-label {
  color: #757575;
  font-weight: 400;
}

.modal-continue-btn {
  width: 100%;
  max-width: 100%;
  background: #000;
  color: #eeff41;
  border: none;
  padding: 16px 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-transform: uppercase;
}

.modal-continue-btn:active {
  opacity: 0.92;
}
