/* Central de Comunicação — layout wide, hierarquia clara */
.cc-root {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: none;
}

.cc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.cc-head .an-title {
  margin: 0 0 4px;
}

.cc-head .an-sub {
  margin: 0;
  max-width: 62ch;
}

.cc-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cc-step {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 138, 61, 0.95);
}

.cc-card {
  background: rgba(10, 14, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.cc-wa {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.cc-wa-badge {
  font-weight: 800;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.cc-wa-badge.on {
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
}

.cc-wa-badge.off {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.cc-wa-phone {
  font-size: 13px;
  opacity: 0.88;
}

.cc-hint {
  flex: 1 1 100%;
  margin: 0;
  font-size: 12px;
  opacity: 0.72;
  line-height: 1.4;
}

.cc-qr {
  max-width: 220px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cc-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 800px) {
  .cc-stats {
    grid-template-columns: 1fr;
  }
}

.cc-stat {
  cursor: pointer;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px 18px;
  background: rgba(10, 14, 22, 0.9);
  color: inherit;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}

.cc-stat:hover,
.cc-stat.active {
  border-color: rgba(255, 90, 0, 0.55);
  background: rgba(255, 90, 0, 0.08);
  transform: translateY(-1px);
}

.cc-stat-n {
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.cc-stat-l {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.82;
}

.cc-table-head,
.cc-audience-bar,
.cc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.cc-table-head {
  justify-content: space-between;
  margin-bottom: 10px;
}

.cc-audience-bar {
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.cc-table-wrap {
  overflow: auto;
  max-height: 380px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.cc-table th,
.cc-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.cc-table th {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.65;
  position: sticky;
  top: 0;
  background: rgba(8, 12, 20, 0.96);
  z-index: 1;
}

.cc-table tr.is-selected td {
  background: rgba(255, 90, 0, 0.1);
}

.cc-name {
  font-weight: 700;
}

.cc-muted {
  opacity: 0.65;
  font-size: 12px;
}

.cc-compose-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 14px;
}

@media (max-width: 980px) {
  .cc-compose-grid {
    grid-template-columns: 1fr;
  }
}

.cc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.95;
}

.cc-field span {
  opacity: 0.8;
}

.cc-compose-area {
  min-height: 220px;
  resize: vertical;
  line-height: 1.45;
}

.cc-preview-bubble {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cc-preview-logo-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
}

.cc-preview-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  background: transparent;
}

.cc-preview-logo-missing {
  font-size: 12px;
  color: #fda4af;
  text-align: center;
  padding: 12px;
}

.cc-preview-text {
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.cc-send-target {
  font-size: 13px;
  margin: 8px 0 12px;
}

.cc-billing-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cc-billing-head h3,
.cc-h3 {
  margin: 0;
  font-size: 16px;
}

.cc-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 6px 12px 6px 6px;
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  cursor: pointer;
  min-width: 128px;
}

.cc-switch-knob {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: transform 0.15s, background 0.15s;
}

.cc-switch.on {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.12);
}

.cc-switch.on .cc-switch-knob {
  background: #22c55e;
}

.cc-switch.off .cc-switch-knob {
  background: rgba(255, 255, 255, 0.28);
}

.cc-switch-label {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.cc-identity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin-bottom: 12px;
}

@media (max-width: 800px) {
  .cc-identity-grid {
    grid-template-columns: 1fr;
  }
}

.cc-ok {
  color: #86efac;
  font-size: 13px;
  font-weight: 650;
}

.an-main.an-main--wide {
  max-width: min(1680px, 100%);
}

/* aliases for existing mount class */
.central-revenda-root.cr-root, .cr-root.cc-root { max-width: none; width: 100%; }
.cc-err { color: #ff8b8b; font-size: 13px; }
