:root {
  --brand: #24ca68;
  --brand-700: #1db75e;
  --overlay: rgba(0, 0, 0, 0.55);
  --card: #fff;
  --radius: 22px;
  --shadow: 0 28px 80px rgba(2, 8, 23, 0.28);
}

.dlg,
.dlg * {
  box-sizing: border-box;
  font-style: normal;
}

.dlg[hidden] {
  display: none;
}

.dlg {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  font-family: Inter, system-ui, sans-serif;
}

.dlg__backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(6px);
}

.dlg__card {
  position: relative;
  z-index: 1;
  width: min(94vw, 500px);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px;
  text-align: center;
}

.dlg__close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: #f1f5f9;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
}

.dlg__close:hover {
  background: #e2e8f0;
}

.dlg__title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
}

.dlg__text {
  margin: 0 0 16px;
  color: #1f2937;
  line-height: 1.6;
}

.dlg__actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.btn {
  flex: 1;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 800;
  border: 1px solid transparent;
  text-align: center;
}

.btn--brand {
  background: #24ca68 !important;
  color: #fff !important;
  border-color: #24ca68 !important;
}

.btn--brand:hover {
  background: #1db75e !important;
}

.btn--ghost {
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
}

.btn--ghost:hover {
  background: #f8f8f8;
}

.dlg__foot {
  margin-top: 10px;
  font-size: 12px;
  color: #666;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #ddd;
  border-top: 3px solid var(--brand);
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.ok-badge {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #ecfdf5;
  display: grid;
  place-items: center;
  color: var(--brand);
  font-size: 22px;
}

/* ======== VÍDEO ======== */
.dlg__media {
  position: relative;
  margin: 14px 0 12px;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 18px 50px rgba(2, 8, 23, 0.18);
}

.dlg__media--emotive::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.38),
    inset 0 -80px 120px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.dlg__media-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.dlg__media-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  color: #fff;
  text-align: left;
}

.dlg__media-line {
  margin: 0 0 4px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.35;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.dlg__media-sub {
  font-size: 11px;
  opacity: 0.85;
}

.dlg__media-skel {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #222, #333, #222);
  background-size: 200% 100%;
  animation: skel 1.2s ease-in-out infinite;
  z-index: 1;
}

@keyframes skel {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.dlg--xl .dlg__card {
  width: min(96vw, 560px);
}
