/* OpenAds — Popup público */
#oa-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 0;
  transition: opacity 0.25s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
#oa-overlay.oa-visible { opacity: 1; }

#oa-box {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
  width: min(380px, calc(100vw - 32px));
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
}
#oa-overlay.oa-visible #oa-box { transform: translateY(0) scale(1); }

/* Cabecera */
#oa-header {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  padding: 16px 20px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
#oa-header svg { flex-shrink: 0; }
#oa-title { margin: 0; font-size: 15px; font-weight: 700; color: #fff; }
#oa-subtitle { margin: 2px 0 0; font-size: 11px; color: rgba(255,255,255,.5); }

/* Zona anuncio */
#oa-ad-zone {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
}
#oa-ad-label {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 9px;
  color: #94a3b8;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
#oa-ad-slot { display: flex; align-items: center; justify-content: center; }

/* Cuerpo */
#oa-body { padding: 18px 20px 20px; }

#oa-dest {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
}
#oa-dest svg { flex-shrink: 0; color: #94a3b8; margin-top: 1px; }
#oa-dest-label { font-size: 10px; color: #94a3b8; display: block; margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.4px; }
#oa-dest-url { font-size: 12px; color: #475569; word-break: break-all; line-height: 1.4; }

/* Barra progreso */
#oa-bar-wrap {
  height: 5px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 14px;
}
#oa-bar {
  height: 100%;
  width: 100%;
  border-radius: 99px;
  transform-origin: left;
}

/* Footer */
#oa-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
#oa-countdown {
  font-size: 13px;
  color: #64748b;
}
#oa-countdown strong {
  color: #1e293b;
  font-variant-numeric: tabular-nums;
}

/* Botones */
#oa-actions { display: flex; gap: 8px; align-items: center; }
#oa-btn-cancel {
  padding: 7px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  cursor: pointer;
  transition: background .15s;
  font-family: inherit;
}
#oa-btn-cancel:hover { background: #f1f5f9; }
#oa-btn-go {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border: none;
  border-radius: 7px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .15s, transform .1s;
}
#oa-btn-go:hover { opacity: .88; transform: translateY(-1px); }
#oa-btn-go:active { transform: translateY(0); }

@media (prefers-color-scheme: dark) {
  #oa-box { background: #1e293b; }
  #oa-ad-zone { background: #0f172a; border-color: #334155; }
  #oa-dest { background: #334155; border-color: #475569; }
  #oa-dest-url { color: #94a3b8; }
  #oa-bar-wrap { background: #334155; }
  #oa-countdown { color: #94a3b8; }
  #oa-countdown strong { color: #f8fafc; }
  #oa-btn-cancel { border-color: #475569; color: #94a3b8; }
  #oa-btn-cancel:hover { background: #334155; }
}
