:root {
  --bg: #0b1120;
  --bg-soft: #111827;
  --panel: #0f172a;
  --panel-2: #1e293b;
  --panel-3: #334155;
  --border: #243041;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --green: #22c55e;
  --green-dark: #16a34a;
  --blue: #38bdf8;
  --blue-dark: #0ea5e9;
  --red: #ef4444;
  --red-dark: #dc2626;
  --yellow: #facc15;
  --gray: #64748b;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  --radius: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(180deg, #020617 0%, #0b1120 100%);
  color: var(--text);
  min-height: 100%;
}

body {
  padding: 24px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

h1 {
  margin: 0 0 22px;
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

h2,
h3 {
  margin: 0;
}

p {
  color: var(--muted);
}

label {
  display: block;
  margin: 14px 0 6px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #0b1220;
  color: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-size: 16px;
}

input::placeholder,
textarea::placeholder {
  color: #64748b;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

button {
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--green);
  color: #03140a;
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-secondary {
  background: #1d4ed8;
  color: #fff;
}

.btn-secondary:hover {
  background: #1e40af;
}

.btn-danger {
  background: var(--red);
  color: #fff;
}

.btn-danger:hover {
  background: var(--red-dark);
}

.btn-neutral {
  background: #334155;
  color: #fff;
}

.btn-neutral:hover {
  background: #475569;
}

.btn-small {
  padding: 4px 6px; /* 👈 menor */
  font-size: 11px; /* 👈 menor */
  border-radius: 6px;
  white-space: nowrap; /* 👈 evita quebrar texto */
}

.card {
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.card {
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.info-card {
  flex: 1;
  min-width: 180px;
  background: #111b2e;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}

.info-card .label {
  display: block;
  color: var(--muted);
  font-size: 13px; /* 👈 diminui aqui */
  margin-bottom: 6px;
  line-height: 1.2;
}

.info-card .value {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #1e293b;
  gap: 16px;
}

.logo {
  width: 260px;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.bot-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 20px;
  background: #0f172a;
  border: 1px solid #1e293b;
  font-size: 13px;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
  box-shadow: 0 0 8px rgba(100, 116, 139, 0.5);
}

.bot-status.ativo {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
  color: #86efac;
}

.bot-status.ativo .status-dot {
  background: var(--green);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
}

.bot-status.inativo {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
}

.bot-status.inativo .status-dot {
  background: var(--red);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
}

/* NOVO ESTADO: AGUARDANDO QR */
.bot-status.aviso {
  border-color: rgba(250, 204, 21, 0.35);
  background: rgba(250, 204, 21, 0.08);
  color: #fde68a;
}

.bot-status.aviso .status-dot {
  background: var(--yellow);
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.8);
}

.btn-toggle {
  min-width: 110px;
  color: #fff;
}

.btn-toggle.ativo {
  background: var(--red);
}

.btn-toggle.ativo:hover {
  background: var(--red-dark);
}

.btn-toggle.inativo {
  background: var(--green);
  color: #03140a;
}

.btn-toggle.inativo:hover {
  background: var(--green-dark);
}

.btn-logout {
  background: #334155;
  color: #fff;
}

.btn-logout:hover {
  background: #475569;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.tab {
  flex: 1;
  min-width: 0;
  text-align: center;

  border: 1px solid transparent;
  background: #172033;
  color: var(--text);
  padding: 11px 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tab:hover {
  background: #22304a;
}

.tab.active {
  background: var(--green);
  color: #04130a;
}

.aba {
  display: none;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.aba.ativa {
  display: block;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.topbar h2 {
  font-size: 22px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #0b1220;
}

thead th {
  text-align: left;
  font-size: 13px;
  letter-spacing: 0.2px;
  color: #cbd5e1;
  background: #182235;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
}

tbody td {
  padding: 14px 12px;
  border-bottom: 1px solid #1f2b3d;
  font-size: 14px;
  vertical-align: top;
}

tbody tr:hover {
  background: rgba(51, 65, 85, 0.22);
}

.col-acoes {
  display: flex;
  flex-direction: row; /* 👈 lado a lado */
  gap: 6px;
  align-items: center;
  flex-wrap: nowrap; /* 👈 NÃO quebra linha */
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status.ativo {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.status.inativo {
  background: rgba(100, 116, 139, 0.14);
  color: #cbd5e1;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

.status.repost {
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.status.principal {
  background: rgba(250, 204, 21, 0.12);
  color: #fde047;
  border: 1px solid rgba(250, 204, 21, 0.28);
}

.search-row {
  display: grid;
  grid-template-columns: 1.2fr 180px 180px 180px;
  gap: 10px;
  margin-bottom: 16px;
}

.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.filter-chip {
  background: #182235;
  border: 1px solid var(--border);
  color: #cbd5e1;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 13px;
}

.grupos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.grupo-whatsapp {
  background: #111b2e;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  transition: 0.2s ease;
}

.grupo-whatsapp:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
}

.grupo-whatsapp strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
  color: #fff;
}

.grupo-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
  word-break: break-all;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #1e293b;
  border: 1px solid #334155;
  color: #cbd5e1;
}

.badge.ok {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.28);
  color: #4ade80;
}

.badge.info {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.28);
  color: #7dd3fc;
}

.badge.warn {
  background: rgba(250, 204, 21, 0.12);
  border-color: rgba(250, 204, 21, 0.22);
  color: #fde047;
}

.botoes-grupo {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.botoes-grupo button {
  flex: 1;
  min-width: 120px;
}

.empty-state {
  text-align: center;
  padding: 30px 16px;
  border: 1px dashed #334155;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.35);
}

.config-box {
  background: #0b1220;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.config-box pre {
  margin: 0;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 999;
}

.modal-overlay.ativo {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 560px;
  background: #0f172a;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: #111b2e;
}

.modal-header h3 {
  font-size: 18px;
}

.modal-body {
  padding: 18px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 18px;
  border-top: 1px solid var(--border);
  background: #111b2e;
}

.close-modal {
  background: transparent;
  color: #cbd5e1;
  font-size: 20px;
  line-height: 1;
  padding: 4px 8px;
}

.close-modal:hover {
  background: rgba(255, 255, 255, 0.08);
}

hr.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

.hidden {
  display: none !important;
}

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

.mt-10 {
  margin-top: 10px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-20 {
  margin-top: 20px;
}

/* QR CARD */
#qrStatus,
#qrAtualizacao {
  min-height: 22px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #0b1220;
  border: 1px solid #334155;
  color: #e2e8f0;
  font-size: 14px;
}

.resumo-operacional-limpo label {
  display: block;
  margin-bottom: 6px;
}

.resumo-valor-limpo {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  min-height: 24px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

#qrCodeImage {
  background: #fff;
  padding: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

#qrEmptyState {
  background: rgba(11, 18, 32, 0.65);
}

/* LOGIN */
.login-wrapper {
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

.login-card {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid #243041;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.login-header {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.login-logo {
  width: 220px;
  height: auto;
  object-fit: contain;
  display: block;
}

.login-title {
  text-align: center;
  margin: 0 0 8px;
  font-size: 24px;
  color: #fff;
}

.login-subtitle {
  text-align: center;
  margin: 0 0 22px;
  color: #94a3b8;
  font-size: 14px;
}

.login-error {
  display: none;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 14px;
}

.login-error.show {
  display: block;
}

.login-btn {
  width: 100%;
  margin-top: 18px;
}

/* RESPONSIVO */
@media (max-width: 900px) {
  body {
    padding: 14px;
  }

  h1 {
    font-size: 26px;
    margin-bottom: 18px;
  }

  .aba {
    padding: 16px;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: stretch;
  }

  .toolbar {
    width: 100%;
  }

  .toolbar button,
  .toolbar input,
  .toolbar select {
    width: 100%;
  }

  .grupos-grid {
    grid-template-columns: 1fr;
  }

  .modal {
    max-width: 100%;
  }

  .header {
    flex-direction: column;
    align-items: stretch;
  }

  .header-right {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .tabs {
    gap: 10px;
  }

  .tab {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }

  .col-acoes {
    flex-direction: column;
  }

  .botoes-grupo {
    flex-direction: column;
  }

  .status {
    min-width: auto;
  }

  table {
    min-width: 680px;
  }

  .header-right {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-toggle,
  .btn-logout {
    width: 100%;
  }

  .bot-status {
    justify-content: center;
  }
}

/* ------------------- FEEDBACK FORM ------------------- */

.form-feedback {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  border: 1px solid transparent;
}

.form-feedback.erro {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.form-feedback.sucesso {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
  color: #86efac;
}

/* ------------------- TOOLBAR AJUSTES ------------------- */

.toolbar .btn-primary,
.toolbar .btn-secondary,
.toolbar .btn-neutral,
.toolbar .btn-danger {
  white-space: nowrap;
}

/* ------------------- AÇÕES NA TABELA ------------------- */

td .col-acoes {
  justify-content: flex-start;
}

/* melhora responsividade dos botões dentro da tabela */
.col-acoes button {
  white-space: nowrap;
}

/* ------------------- HOVER MELHORADO ------------------- */

tbody tr:hover {
  background: rgba(51, 65, 85, 0.35);
}

/* ------------------- INPUTS CONFIG ------------------- */

#horarioInicio,
#horarioFim,
#delayEnvio,
#margemMinima,
#numeroPessoal {
  background: #0b1220;
}

/* ------------------- MODAL MELHORIAS ------------------- */

.modal {
  animation: modalFade 0.2s ease;
}

@keyframes modalFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.status-blocos {
  display: flex;
  gap: 10px;
}

.status-box {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 8px 12px;
  min-width: 120px;
}

.status-label {
  font-size: 11px;
  color: #94a3b8;
}

.status-value {
  font-weight: 600;
  font-size: 14px;
}

.status-verde {
  color: #22c55e;
}

.status-vermelho {
  color: #ef4444;
}

.status-amarelo {
  color: #f59e0b;
}

.btn-toggle:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-toggle:disabled:hover {
  transform: none;
}

.btn-toggle:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-toggle:disabled:hover {
  transform: none;
}

/* ------------------- PREVIEW DE ESTILO DE ANÚNCIO ------------------- */

.preview-estilos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.preview-card {
  width: 100%;
  text-align: left;
  background: #0b1220;
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 12px;
  color: #fff;
  transition: 0.2s ease;
}

.preview-card:hover {
  border-color: #38bdf8;
  transform: translateY(-2px);
}

.preview-card.ativo {
  border-color: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.18);
  background: rgba(34, 197, 94, 0.06);
}

.preview-card-topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.preview-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #172033;
  border: 1px solid #334155;
  color: #cbd5e1;
}

.preview-anuncio {
  border-radius: 12px;
  background: #111827;
  border: 1px solid #1f2937;
  padding: 12px;
  min-height: 230px;
  font-size: 12px;
  line-height: 1.5;
}

.preview-anuncio .linha {
  margin-bottom: 4px;
  color: #e5e7eb;
}

.preview-anuncio .titulo {
  font-weight: 700;
  color: #ffffff;
}

.preview-anuncio .divisor {
  color: #64748b;
  letter-spacing: 0.5px;
}

.preview-anuncio .preco {
  margin-top: 8px;
  font-weight: 700;
  color: #f8fafc;
}

.preview-classico .titulo {
  color: #ffffff;
}

.preview-moderno .titulo {
  color: #7dd3fc;
}

.preview-chamativo .titulo {
  color: #fde047;
}

@media (max-width: 900px) {
  .preview-estilos {
    grid-template-columns: 1fr;
  }
}

.preview-estilos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.preview-card {
  border: 1px solid #334155;
  border-radius: 12px;
  background: #0f172a;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.55;
}

.preview-card:hover {
  transform: translateY(-2px);
  border-color: #475569;
}

.preview-card.ativo {
  opacity: 1;
  border: 2px solid #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.preview-titulo {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 8px;
}

.preview-box {
  background: #111827;
  border-radius: 10px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #cbd5e1;
  border: 1px solid #1e293b;
  min-height: 170px;
}

.preview-whatsapp {
  margin-top: 14px;
  background: #0b141a;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 14px;
}

.preview-estilos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.preview-card {
  border: 1px solid #334155;
  border-radius: 14px;
  background: #0b1220;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.65;
}

.preview-card:hover {
  transform: translateY(-2px);
  border-color: #475569;
}

.preview-card.ativo {
  opacity: 1;
  border: 2px solid #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
}

.preview-titulo {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 8px;
}

.preview-box {
  background: #1f2c34;
  border-radius: 8px 8px 8px 2px;
  padding: 14px 14px 10px;
  font-size: 13px;
  line-height: 1.55;
  color: #e9edef;
  border: 1px solid rgba(255, 255, 255, 0.04);
  min-height: 340px;
  white-space: normal;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
  position: relative;
}

.preview-box::after {
  content: "09:41";
  display: block;
  text-align: right;
  font-size: 11px;
  color: #8696a0;
  margin-top: 10px;
}

.preview-box b,
.preview-box strong {
  color: #ffffff;
}

.logo-area {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.logo-slogan {
  font-size: 16px;
  color: #94a3b8;
  font-weight: 500;
  margin-left: 4px;
}

.suporte-item {
  background: #0b1220;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 14px;
  color: #e2e8f0;
}.suporte-item a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
}

.suporte-item a:hover {
  text-decoration: underline;
}

.suporte-lista {
  display: flex;
  flex-direction: column;
  gap: 16px;
}


.suporte-bloco {
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  min-height: 220px;
}

.suporte-lista {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.suporte-item {
  display: block;
  background: #0b1220;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 14px;
  color: #e2e8f0;
}

.suporte-item a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
}

.suporte-item a:hover {
  text-decoration: underline;
}

.preview-imagem-info {
  margin-top: 10px;
  margin-bottom: 12px;
  color: #94a3b8;
  font-size: 13px;
}

.preview-imagem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 16px;
  width: 100%;
}

.preview-imagem-card {
  background: #0b1220;
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  transition: 0.2s ease;
}

.preview-imagem-card:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
}

.preview-imagem-card.ativo {
  border: 2px solid #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.preview-imagem-titulo {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 10px;
}

.preview-imagem-foto {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  display: block;
  border: 1px solid #1e293b;
}

@media (max-width: 900px) {
  .preview-imagem-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .preview-imagem-grid {
    flex-direction: column;
  }
}

.preview-imagem-card {
  cursor: pointer;
  transition: 0.2s ease;
}

.preview-imagem-card:hover {
  transform: translateY(-2px);
  border-color: #3b82f6;
}

.preview-imagem-card.ativo {
  border: 2px solid #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.preview-imagem-grid {
  display: flex;
  gap: 16px;
  width: 100%;
}

.preview-imagem-card {
  width: 50%;
}

.preview-whatsapp {
  width: 100%;
}

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  min-width: 260px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #1e293b;
  border: 1px solid #334155;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  animation: slideIn 0.25s ease;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.success {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.toast.error {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.campo-ajuda {
  display: block;
  margin-top: 6px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.4;
}

.input-prefixo {
  display: flex;
  align-items: center;
  border: 1px solid #334155;
  border-radius: 10px;
  background: #0b1220;
  overflow: hidden;
}

.input-prefixo span {
  padding: 12px 14px;
  color: #cbd5e1;
  background: #111827;
  border-right: 1px solid #334155;
  font-size: 14px;
  font-weight: 600;
}

.input-prefixo input {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.input-prefixo input:focus {
  border: none;
  box-shadow: none;
}

.preview-anuncio-box {
  margin-top: 8px;
  background: #0b1220;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 14px;
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  min-height: 220px;
}

.label-com-ajuda {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icone-ajuda {
  cursor: pointer;
  font-size: 13px;
  color: #94a3b8;
  transition: 0.2s;
}

.icone-ajuda:hover {
  color: #e2e8f0;
}

.caixa-ajuda {
  display: none;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #0b1220;
  border: 1px solid #334155;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.5;
}

.caixa-ajuda-topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 12px;
  color: #94a3b8;
}

.fechar-ajuda {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}

.fechar-ajuda:hover {
  color: #e2e8f0;
}


.lista-mobile-origens,
.lista-mobile-destinos {
  display: none;
}

@media (max-width: 768px) {

  /* =========================
     LISTAS MOBILE
  ========================== */
  .table-wrap {
    display: none;
  }

  .lista-mobile-origens,
  .lista-mobile-destinos {
    display: block;
  }

  /* =========================
     CONTAINER GERAL
  ========================== */
  .aba {
    padding: 12px !important;
  }

  .card {
    padding: 12px !important;
  }

  /* =========================
     CARDS MOBILE (ORIGENS/DESTINOS)
  ========================== */
  .card-mobile {
    background: #111b2e;
    border: 1px solid #243041;
    border-radius: 14px;
    padding: 14px;
    margin-top: 12px;
  }

  .card-mobile strong {
    display: block;
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 10px;
  }

  .card-mobile .linha {
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 6px;
    word-break: break-word;
  }

  .card-mobile .acoes {
    margin-top: 12px;
  }

  .card-mobile .acoes button {
    width: 100%;
  }

  /* =========================
     FORMULÁRIO CONFIGURAÇÕES
  ========================== */
  #formConfiguracoes {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  #formConfiguracoes .form-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 14px;
    width: 100%;
  }

  #formConfiguracoes .form-grid > div,
  #formConfiguracoes .form-grid > .full {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  /* =========================
     INPUTS (CORREÇÃO DEFINITIVA)
  ========================== */
  #formConfiguracoes input,
  #formConfiguracoes select,
  #horarioInicio,
  #horarioFim,
  #intervaloAnuncios,
  #margemMinima,
  #estiloAnuncio,
  #numeroPessoal {
    display: block;
    width: calc(100% - 2px);
    max-width: calc(100% - 2px);
    min-width: 0;
    box-sizing: border-box;
  }

  /* ajuste específico do time */
  #horarioInicio,
  #horarioFim {
    padding-left: 12px;
    padding-right: 12px;
  }

  #horarioInicio::-webkit-calendar-picker-indicator,
  #horarioFim::-webkit-calendar-picker-indicator {
    margin-left: 0;
  }

  /* =========================
     LAYOUTS DE ANÚNCIO
  ========================== */
  .preview-estilos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .preview-card {
    padding: 12px;
  }

  .preview-box {
    max-height: 320px;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.45;
    min-height: 260px;
  }

  /* =========================
     IMAGENS
  ========================== */
  .preview-imagem-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .preview-imagem-card {
    width: 100%;
    padding: 12px;
  }

  .preview-imagem-titulo {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .preview-imagem-foto {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
  }

  /* =========================
     BOTÃO SALVAR
  ========================== */
  .modal-footer,
  .config-footer {
    display: flex;
  }

  .modal-footer button,
  .config-footer button,
  #formConfiguracoes .btn-primary {
    width: 100%;
  }
}

.reposts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.repost-card {
  background: #111b2e;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}

.repost-topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.repost-topo strong {
  color: #fff;
  font-size: 15px;
}

.repost-linha {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 6px;
  word-break: break-word;
}

.repost-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.repost-acoes button {
  flex: 1;
  min-width: 120px;
}

@media (max-width: 768px) {
  .reposts-grid {
    grid-template-columns: 1fr;
  }

  .repost-acoes {
    flex-direction: column;
  }

  .repost-acoes button {
    width: 100%;
  }
}

.descricao-repost {
  margin-top: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.5;
}

.status.vendido {
  background: rgba(250, 204, 21, 0.12);
  color: #fde047;
  border: 1px solid rgba(250, 204, 21, 0.28);
}

