/* Estilos de autenticación privada y auditoría de comprobantes con IA */
.admin-auth-gate[hidden],
.layout[hidden] {
  display: none !important;
}
.admin-auth-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 18% 12%, #c5173455, transparent 58%),
    linear-gradient(145deg, #2b0611 0%, #10182f 65%, #0b1124 100%);
}
.admin-auth-card {
  width: min(440px, 100%);
  background: #ffffff;
  border-radius: 18px;
  padding: 32px 28px;
  border: 1px solid #f0cdd3;
  box-shadow: 0 24px 80px rgba(8, 12, 28, 0.55);
}
.admin-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #10182f;
  color: #fff;
  margin-bottom: 18px;
}
.admin-auth-brand .chance-mark {
  color: #d4f500;
}
.admin-auth-card h1 {
  font-size: 26px;
  color: #141c34;
  margin: 4px 0 8px;
}
.admin-auth-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.admin-back-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
  color: #8f1428;
  text-decoration: none;
}
.admin-back-link:hover {
  text-decoration: underline;
}
.receipt-audit-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: #f8f9fc;
  border: 1px solid #dfe4ee;
}
.receipt-audit-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.receipt-preview-img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 10px;
  background: #0f1629;
  border: 1px solid #cfd6e4;
  margin: 10px 0;
}
.ocr-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.ocr-flag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff1db;
  color: #8a4d00;
  border: 1px solid #f2ce93;
}
.wa-notify-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #178042 !important;
  border-color: #178042 !important;
  color: #fff !important;
  text-decoration: none;
}

/* Recuadro de imagen representativa por sorteo y botón de eliminación */
.campaign-media-slot {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: center;
  margin: 16px 0;
  padding: 14px;
  border-radius: 14px;
  background: #faf7f8;
  border: 1px dashed #dec6cd;
}
.campaign-media-preview {
  width: 180px;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  background: #10182f;
  display: grid;
  place-items: center;
  color: #cdd5e6;
  font-size: 12px;
  text-align: center;
  border: 1px solid #d7dce8;
}
.campaign-media-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.campaign-media-info strong {
  display: block;
  font-size: 14px;
  color: #1c2237;
  margin-bottom: 4px;
}
.campaign-media-info p {
  font-size: 12.5px;
  color: #6c7486;
  margin: 0 0 10px;
}
.campaign-media-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 640px) {
  .campaign-media-slot {
    grid-template-columns: 1fr;
  }
  .campaign-media-preview {
    width: 100%;
    height: 165px;
  }
}


/* Compra asistida integrada con LGCBot en el Panel Administrativo */
.lgcbot-admin-avatar {
  background: #d4f500 !important;
  color: #141c34 !important;
  font-weight: 800;
  font-size: 18px;
}
.lgcbot-side-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.lgcbot-side-head .eyebrow {
  margin: 0;
}
.lgcbot-ext-link {
  font-size: 12px;
  font-weight: 700;
  color: #a9132a;
  text-decoration: none;
}
.lgcbot-ext-link:hover {
  text-decoration: underline;
}
.lgcbot-conv-list {
  display: grid;
  gap: 8px;
}
.lgcbot-conv-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #faf7f8;
  border: 1px solid #ead8dd;
}
.lgcbot-conv-meta {
  min-width: 0;
}
.lgcbot-conv-meta strong {
  display: block;
  font-size: 13px;
  color: #1a2138;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lgcbot-conv-meta span {
  display: block;
  font-size: 11px;
  color: #6d7588;
}
.lgcbot-conv-meta p {
  font-size: 11px;
  color: #846a71;
  margin: 3px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lgcbot-qr-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lgcbot-qr-chip {
  font: inherit;
  font-size: 11px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid #e2c7ce;
  background: #fff;
  color: #261b26;
  cursor: pointer;
}
.lgcbot-qr-chip strong {
  color: #a9132a;
}
.lgcbot-qr-chip:hover {
  background: #f9eff2;
  border-color: #c21831;
}
