/* ============================================================
   whatsapp.css — Card de conexão + Modal QR
   ============================================================ */

.wa-card {
  border-radius: 18px;
  padding: 22px 24px;
  background:
    radial-gradient(360px 200px at 90% 0%, rgba(37,211,102,0.10), transparent 60%),
    #fff;
  border: 1px solid var(--border-card, #E4E7EC);
}
.wa-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.wa-sub {
  font-size: 13px; color: var(--text-secondary, #475467);
  margin: 6px 0 0; max-width: 520px; line-height: 1.5;
}

/* Pill de status */
.wa-status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
  background: var(--bg-elevated, #F2F4F7);
  color: var(--text-secondary, #475467);
  border: 1px solid var(--border-card, #E4E7EC);
  white-space: nowrap;
  flex-shrink: 0;
}
.wa-status-pill[data-status="ok"]      { background: rgba(16,185,129,.10); color: #059669; border-color: rgba(16,185,129,.30); }
.wa-status-pill[data-status="pending"] { background: rgba(245,158,11,.10); color: #B45309; border-color: rgba(245,158,11,.30); }
.wa-status-pill[data-status="off"]     { background: #F2F4F7; color: #667085; border-color: #E4E7EC; }
.wa-status-pill[data-status="error"]   { background: rgba(239,68,68,.10); color: #DC2626; border-color: rgba(239,68,68,.30); }
.wa-dot {
  width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0;
}
.wa-status-pill[data-status="pending"] .wa-dot {
  animation: waPulse 1.2s ease-in-out infinite;
}
@keyframes waPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}

/* Ações */
.wa-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.wa-actions .btn { flex: 0 0 auto; }
.wa-hint {
  margin-top: 12px; padding: 10px 12px;
  font-size: 12.5px; color: #B45309;
  background: rgba(245,158,11,.08);
  border: 1px solid rgba(245,158,11,.25);
  border-radius: 10px;
}

/* Modal QR */
.wa-qr-body { display: flex; flex-direction: column; gap: 14px; }
.wa-qr-steps {
  list-style: decimal inside;
  padding: 0; margin: 0;
  font-size: 13px; color: var(--text-secondary, #475467);
  line-height: 1.7;
}
.wa-qr-steps strong { color: var(--text-primary, #0B1220); }
.wa-qr-holder {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border: 1px solid var(--border-card, #E4E7EC);
  border-radius: 14px;
  padding: 12px;
  overflow: hidden;
}
.wa-qr-img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.wa-qr-loading { font-size: 13px; color: var(--text-muted, #667085); text-align: center; padding: 30px; }
.wa-qr-error {
  font-size: 13px; color: #DC2626; text-align: center; padding: 20px;
  line-height: 1.5;
}
.wa-qr-error strong { display: block; margin-bottom: 4px; }
.wa-qr-status {
  text-align: center; font-size: 12px; color: var(--text-muted, #667085);
  margin: 0;
}

/* Responsivo */
@media (max-width: 560px) {
  .wa-card { padding: 18px 18px; }
  .wa-head { flex-direction: column; }
  .wa-status-pill { align-self: flex-start; }
  .wa-actions .btn { flex: 1; }
}
