/* Confirmação global — pop-up Sim/Não (não navega para outra tela) */
.rex-confirm-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(420px, calc(100vw - 28px));
}
.rex-confirm-dialog::backdrop {
  background: rgba(8, 10, 14, 0.62);
}
.rex-confirm-panel {
  background: #161618;
  color: #f4f4f5;
  border: 1px solid #2e2e33;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  font-family: Manrope, "Segoe UI", system-ui, sans-serif;
}
.rex-confirm-panel h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 800;
}
.rex-confirm-panel p {
  margin: 0 0 16px;
  color: #9b9ba3;
  font-size: 14px;
  line-height: 1.45;
}
.rex-confirm-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.rex-confirm-actions button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid #2e2e33;
  background: #1c1c1f;
  color: #f4f4f5;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.rex-confirm-actions .is-yes {
  background: #e85d4c;
  border-color: transparent;
  color: #fff;
}
.rex-confirm-actions .is-credit-yes {
  background: #2563eb;
}
.rex-confirm-actions .is-no:hover {
  border-color: #f28c18;
}

/* Badge 2FA abaixo da logo */
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.rex-2fa-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
}
.rex-2fa-badge.is-off {
  background: #fff5f5;
  color: #c53030;
}
.rex-2fa-badge.is-on {
  background: #f0fff4;
  color: #22543d;
}
html[data-theme="dark"] .rex-2fa-badge.is-off {
  background: rgba(197, 48, 48, 0.18);
  color: #feb2b2;
}
html[data-theme="dark"] .rex-2fa-badge.is-on {
  background: rgba(34, 84, 61, 0.28);
  color: #9ae6b4;
}

/* Confirmação de créditos (estilo Renovar) */
.rex-credit-dialog {
  max-width: min(480px, calc(100vw - 28px));
}
.rex-credit-panel {
  background: #fff;
  color: #1a1a1a;
  border-color: #d7dde7;
}
.rex-credit-panel h2 {
  color: #111;
}
.rex-credit-summary {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
  color: #1e3a8a;
}
.rex-credit-summary > p {
  margin: 0;
  color: inherit;
  font-size: 14px;
}
.rex-credit-summary > p strong {
  font-weight: 800;
}
.rex-credit-detail {
  margin-top: 8px;
  padding: 10px;
  border-radius: 10px;
  background: #dbeafe;
}
.rex-credit-detail > strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}
.rex-credit-detail-block h3 {
  margin: 0 0 6px;
  font-size: 13px;
  color: #1d4ed8;
}
.rex-credit-detail-block dl {
  margin: 0;
  display: grid;
  gap: 4px;
}
.rex-credit-detail-block dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.rex-credit-detail-block dt {
  color: #334155;
}
.rex-credit-detail-block dd {
  margin: 0;
  font-weight: 750;
  color: #0f172a;
}
.rex-credit-calc {
  margin: 8px 0 0 !important;
  font-size: 12px !important;
  color: #475569 !important;
}
html[data-theme="dark"] .rex-credit-panel {
  background: #161d28;
  color: #f1f4f9;
  border-color: #2c384a;
}
html[data-theme="dark"] .rex-credit-panel h2 { color: #f8fafc; }
html[data-theme="dark"] .rex-credit-summary {
  background: rgba(37, 99, 235, 0.22);
  border-color: #3b82f6;
  color: #e0eaff;
}
html[data-theme="dark"] .rex-credit-detail {
  background: #0f172a;
  border: 1px solid #334155;
  color: #f1f5f9;
}
html[data-theme="dark"] .rex-credit-detail > strong {
  color: #f8fafc;
}
html[data-theme="dark"] .rex-credit-detail-block h3 {
  color: #93c5fd;
}
html[data-theme="dark"] .rex-credit-detail-block dt {
  color: #cbd5e1;
}
html[data-theme="dark"] .rex-credit-detail-block dd {
  color: #f8fafc;
}
html[data-theme="dark"] .rex-credit-calc {
  color: #94a3b8 !important;
}

/* Página / dialog de exclusão */
.rex-removal-page {
  min-height: calc(100vh - 48px);
  display: grid;
  place-items: center;
  padding: 24px 12px;
  background: rgba(8, 10, 14, 0.08);
}
.rex-removal-dialog {
  max-width: min(560px, calc(100vw - 24px));
}
.rex-removal-dialog-inner {
  max-height: min(82vh, 720px);
  overflow: auto;
}
.rex-removal-card {
  width: min(520px, 100%);
  background: #fff;
  border: 1px solid #d7dde7;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(21, 26, 34, 0.12);
  color: #152033;
}
.rex-removal-card h1 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}
.rex-removal-card .row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
html[data-theme="dark"] .rex-removal-card {
  background: #161d28;
  border-color: #2c384a;
  color: #f1f4f9;
}
