/* ============================================================
   ÁREA DO CLIENTE — SinalVerde
   Estilos exclusivos da página area-cliente.html
   ============================================================ */

/* ── Main ─────────────────────────────────────────────────── */
.ac-main {
  padding-top: 94px; /* 30px ticker + 64px header */
  padding-bottom: 60px;
  min-height: 100vh;
  background: var(--bg);
}

.ac-content {
  padding-top: 32px;
}

/* ================================================================
   HEADER — Area do Cliente Nav Override
   ================================================================ */
.ac-header .header-content {
  height: 64px;
}
.ac-header .logo-svg {
  height: 48px;
}
.ac-header .nav-hamburger {
  display: none !important;
}

.ac-header-nav {
  display: flex !important;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: space-between;
}

.ac-header-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 32px;
  padding: 4px;
  background: rgba(0,0,0,0.03);
  border-radius: var(--radius);
}

.ac-htab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  font-family: inherit;
  position: relative;
}
.ac-htab i {
  font-size: 13px;
}
.ac-htab:hover {
  color: var(--text);
  background: rgba(0,0,0,0.04);
}
.ac-htab.active {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(22,163,74,0.25);
}
.ac-htab.active i {
  color: #fff;
}

/* User section in header */
.ac-header-user {
  display: flex;
  align-items: center;
  position: relative;
  margin-left: auto;
}
.ac-header-user .nav-user-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.ac-header-user .nav-user-toggle:hover {
  background: rgba(0,0,0,0.04);
}
.ac-header-user .nav-user-photo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  display: none;
  border: 2px solid var(--primary);
}
.ac-header-user .nav-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.ac-header-user .nav-user-chevron {
  font-size: 10px;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.ac-header-user .nav-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  display: none;
  z-index: 100;
}
.ac-header-user.open .nav-user-dropdown {
  display: block;
}

/* ── Mobile: header tabs ── */
@media (max-width: 1100px) {
  .ac-header-tabs {
    margin-left: 16px;
    gap: 1px;
    padding: 4px;
  }
  .ac-htab {
    padding: 8px 12px;
    font-size: 11.5px;
  }
  .ac-htab span {
    display: none;
  }
  .ac-htab i {
    font-size: 15px;
  }
  .ac-htab.active span {
    display: inline;
  }
}
@media (max-width: 768px) {
  .ac-header .header-content {
    height: 56px;
  }
  .ac-header .logo-svg {
    height: 38px;
  }
  /* Override mobile sidebar nav from styles.css */
  .ac-header-nav {
    position: static !important;
    flex-direction: row !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    overflow: visible !important;
    right: auto !important;
  }
  .ac-header-tabs {
    margin-left: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex: 1;
    padding: 4px;
  }
  .ac-header-tabs::-webkit-scrollbar { display: none; }
  .ac-htab {
    padding: 6px 8px;
    font-size: 11px;
  }
  .ac-htab span {
    display: none;
  }
  .ac-htab i {
    font-size: 14px;
  }
  .ac-htab.active span {
    display: none;
  }
  .ac-header-user .nav-user-name {
    display: none;
  }
  .ac-header-user .nav-user-toggle {
    padding: 4px 8px;
  }
  .ac-main {
    padding-top: 86px;
  }
}

/* ── Welcome Banner ───────────────────────────────────────── */
.ac-welcome-banner {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  padding: 28px 0 32px;
  position: relative;
  overflow: hidden;
}

/* decorative circles removed — keep it clean */

.ac-breadcrumb-light {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 16px;
}

.ac-breadcrumb-light a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.15s;
}

.ac-breadcrumb-light a:hover { color: #fff; }

.ac-breadcrumb-light i { font-size: 9px; }

.ac-welcome-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.ac-welcome-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.2;
}

.ac-welcome-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.80);
  margin: 0;
  max-width: 480px;
}

.ac-welcome-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.ac-welcome-plan-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}

.ac-welcome-plan-badge.premium {
  background: #fef9c3;
  color: #a16207;
  border-color: transparent;
}

.ac-welcome-upgrade-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  text-decoration: none;
  transition: all 0.2s;
}

.ac-welcome-upgrade-btn:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.6);
}

/* ── Plan Upgrade CTA ─────────────────────────────────────── */
.ac-plan-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--primary);
  border-radius: var(--radius);
  padding: 20px 28px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

/* decorative circle removed */

.ac-plan-cta-icon {
  font-size: 22px;
  color: #fef9c3;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.ac-plan-cta-text {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.ac-plan-cta-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}

.ac-plan-cta-text span {
  font-size: 13px;
  color: rgba(255,255,255,0.80);
  line-height: 1.4;
}

.ac-plan-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 20px;
  background: #fff;
  color: var(--primary-dark);
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s;
  position: relative;
  z-index: 1;
}

.ac-plan-cta-btn:hover {
  background: #f0fdf4;
  transform: translateY(-1px);
}

.ac-plan-cta-btn:hover {
  background: #f0fdf4;
  transform: translateY(-1px);
}

/* ── Jornada Parceiro ─────────────────────────────────────── */
.ac-parceiro-block {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  transition: border-color 0.3s;
}

.ac-parceiro-block.parceiro-ativo {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(22,163,74,0.08);
}

/* Header */
.ac-parceiro-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  position: relative;
  overflow: hidden;
}

/* decorative circle removed */

.ac-parceiro-header-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(22,163,74,0.15);
  border: 1px solid rgba(22,163,74,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #4ade80;
  flex-shrink: 0;
}

.ac-parceiro-header-text {
  flex: 1;
}

.ac-parceiro-header-text h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.ac-parceiro-header-text p {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin: 0;
}

.ac-parceiro-status-pill {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.15);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.3s;
}

.ac-parceiro-status-pill.ready {
  background: rgba(22,163,74,0.2);
  color: #4ade80;
  border-color: rgba(22,163,74,0.4);
}

.ac-parceiro-status-pill.parceiro {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

/* Missions */
.ac-missions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
}

.ac-mission {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color 0.25s, background 0.25s;
}

.ac-mission.mission-done {
  background: #f0fdf4;
  border-color: var(--primary);
}

.ac-mission-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: #e2e8f0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  transition: background 0.25s, color 0.25s;
}

.ac-mission.mission-done .ac-mission-icon-wrap {
  background: var(--primary-light);
  color: var(--primary);
}

.ac-mission-body {
  flex: 1;
  min-width: 0;
}

.ac-mission-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.ac-mission-top strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.ac-mission-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  background: #e2e8f0;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.ac-mission.mission-done .ac-mission-count {
  background: var(--primary);
  color: #fff;
}

.ac-mission-body > p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 10px;
  line-height: 1.45;
}

.ac-mission-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: var(--radius);
  overflow: hidden;
}

.ac-mission-fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.ac-mission-check-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e2e8f0;
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s;
  margin-top: 2px;
}

.ac-mission-check-icon.done {
  background: var(--primary);
  color: #fff;
}

/* Benefits */
.ac-parceiro-benefits {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  background: #fafbfc;
}

.ac-benefits-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ac-benefits-title i {
  color: #f59e0b;
}

.ac-benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ac-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.ac-benefit-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.ac-benefit-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.ac-benefit-text span {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ── Price compare toggle ─────────────────────────────────── */
.ac-preco-compare {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.ac-preco-compare-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: 'Inter', sans-serif;
  transition: color 0.15s;
}

.ac-preco-compare-toggle:hover {
  color: var(--primary-dark);
}

.ac-toggle-chevron {
  font-size: 11px;
  transition: transform 0.25s;
}

.ac-toggle-chevron.open {
  transform: rotate(180deg);
}

.ac-preco-compare-body {
  margin-top: 14px;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

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

.ac-preco-table thead tr {
  background: var(--primary);
  color: #fff;
}

.ac-preco-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.ac-preco-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text);
  vertical-align: middle;
  white-space: nowrap;
}

.ac-preco-table tbody tr:last-child td {
  border-bottom: none;
}

.ac-preco-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.ac-preco-cell-parceiro {
  font-weight: 700;
  color: var(--primary-dark);
}

.ac-preco-cell-simples {
  color: var(--text-secondary);
  text-decoration: line-through;
}

.ac-preco-cell-economia {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: var(--radius);
}

.ac-preco-row-equal .ac-preco-cell-parceiro {
  color: var(--text);
  font-weight: 500;
}

.ac-preco-row-equal .ac-preco-cell-simples {
  text-decoration: none;
}

/* Footer CTA */
.ac-parceiro-footer {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 28px;
}

.ac-parceiro-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  background: #94a3b8;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: not-allowed;
  transition: all 0.25s;
  font-family: 'Inter', sans-serif;
  flex-shrink: 0;
}

.ac-parceiro-btn:not(:disabled) {
  background: var(--primary);
  cursor: pointer;
}

.ac-parceiro-btn:not(:disabled):hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.ac-parceiro-btn.btn-parceiro-ativo {
  background: #0f172a !important;
  cursor: default;
}

.ac-parceiro-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .ac-missions-grid {
    grid-template-columns: 1fr;
  }

  .ac-benefits-grid {
    grid-template-columns: 1fr;
  }

  .ac-parceiro-header {
    flex-wrap: wrap;
    padding: 18px 20px;
  }

  .ac-parceiro-status-pill {
    order: -1;
  }

  .ac-missions-grid,
  .ac-parceiro-benefits,
  .ac-parceiro-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .ac-parceiro-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .ac-parceiro-btn {
    width: 100%;
    justify-content: center;
  }
}
.ac-profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.ac-profile-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ac-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--primary);
}

.ac-avatar i {
  font-size: 28px;
  color: var(--primary);
}

.ac-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ac-profile-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}

.ac-profile-email {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 10px;
}

.ac-badges {
  display: flex;
  gap: 8px;
}

.ac-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.ac-badge-plano {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.ac-badge-categoria {
  background: #f0f4ff;
  color: #3b5bdb;
}

/* ── Profile Stats ────────────────────────────────────────── */
.ac-profile-right {
  display: flex;
  gap: 32px;
}

.ac-profile-stat {
  text-align: center;
}

.ac-stat-value {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.ac-stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Section Title ────────────────────────────────────────── */
.ac-section {
  margin-bottom: 32px;
}

.ac-section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 16px;
}

/* ── Quick Actions Grid ───────────────────────────────────── */
.ac-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ac-quick-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.ac-quick-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

/* Chevron rotation on open */
.ac-quick-card-toggle.open .ac-consulta-chevron {
  transform: rotate(180deg);
}
.ac-consulta-chevron {
  transition: transform 0.3s ease;
}

/* ── Inline Consulta Panel ──────────────────────────────── */
.ac-consulta-panel {
  grid-column: 1 / -1;
  background: var(--bg-card);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  box-shadow: var(--shadow-glow);
  animation: acPanelSlide 0.25s ease;
}
@keyframes acPanelSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ac-consulta-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.ac-consulta-tab {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.ac-consulta-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.ac-consulta-tab:hover:not(.active) {
  border-color: var(--primary);
  color: var(--primary);
}

.ac-consulta-content { display: none; }
.ac-consulta-content.active { display: block; }

.ac-consulta-fields {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}
.ac-consulta-input-wrap {
  flex: 1;
  position: relative;
}
.ac-consulta-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}
.ac-consulta-input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.ac-consulta-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.1);
}
.ac-consulta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.ac-consulta-btn:hover {
  background: var(--primary-dark);
}
.ac-consulta-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* CRLV upload area */
.ac-consulta-crlv-area {
  text-align: center;
  padding: 20px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.ac-consulta-crlv-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 14px;
}
.ac-consulta-crlv-placeholder i {
  font-size: 28px;
  color: var(--primary);
}

@media (max-width: 768px) {
  .ac-consulta-fields {
    flex-direction: column;
  }
  .ac-consulta-panel {
    padding: 16px;
  }
}

.ac-quick-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-xs);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.ac-quick-icon-blue { background: #dbeafe; color: #1e40af; }
.ac-quick-icon-amber { background: #fef3c7; color: #b45309; }
.ac-quick-icon-purple { background: #ede9fe; color: #6d28d9; }
.ac-quick-icon-slate { background: #f1f5f9; color: #475569; }
.ac-quick-icon-gold { background: #fef9c3; color: #a16207; }

.ac-quick-text {
  flex: 1;
  min-width: 0;
}

.ac-quick-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.ac-quick-text span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.ac-quick-arrow {
  color: var(--text-muted);
  font-size: 12px;
  transition: transform var(--transition), color var(--transition);
}

.ac-quick-card:hover .ac-quick-arrow {
  transform: translateX(3px);
  color: var(--primary);
}

/* ── Two Column Layout ────────────────────────────────────── */
.ac-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* ── Cards ─────────────────────────────────────────────────── */
.ac-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.ac-card-full {
  margin-bottom: 32px;
}

.ac-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: #fafbfc;
}

.ac-card-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ac-card-header h3 i {
  font-size: 14px;
  color: var(--primary);
}

.ac-card-link {
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}

.ac-card-link:hover {
  color: var(--primary-dark);
}

.ac-card-body {
  padding: 20px 24px;
}

/* ── Fields (Dados Pessoais) ──────────────────────────────── */
.ac-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.ac-field:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ac-field:first-child {
  padding-top: 0;
}

.ac-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.ac-field-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

/* ── Veículos List ────────────────────────────────────────── */
.ac-veiculo-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.ac-veiculo-item:last-child {
  border-bottom: none;
}

.ac-veiculo-item:first-child {
  padding-top: 0;
}

.ac-veiculo-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xs);
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.ac-veiculo-info {
  flex: 1;
  min-width: 0;
}

.ac-veiculo-placa {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  font-family: 'Courier New', monospace;
}

.ac-veiculo-modelo {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ac-veiculo-multas {
  font-size: 12px;
  font-weight: 600;
  color: var(--danger);
  background: var(--danger-light);
  padding: 4px 12px;
  border-radius: var(--radius);
  white-space: nowrap;
}

.ac-veiculo-multas.zero {
  color: var(--primary);
  background: var(--primary-light);
}

/* ── Monitorar Button / Badge ─────────────────────────────── */
.ac-monit-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
}
.ac-monit-btn:hover { background: var(--primary-dark, #15803d); }
.ac-monit-btn i { font-size: 10px; }

.ac-monit-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
}
.ac-monit-badge--active {
  color: var(--primary);
  background: var(--primary-light);
}
.ac-monit-badge--locked,
.ac-monit-badge--full {
  color: var(--text-muted);
  background: #f1f5f9;
  font-size: 12px;
  padding: 4px 8px;
}

/* ── Veículo Monitorado Item ──────────────────────────────── */
.ac-veiculo-monit .ac-veiculo-icon--monit {
  background: var(--primary-light);
  color: var(--primary);
}

.ac-monit-status {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.ac-monit-status.ativo {
  color: var(--primary);
  background: var(--primary-light);
}
.ac-monit-status.pausado {
  color: var(--text-muted);
  background: #f1f5f9;
}

.ac-monit-remove-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-size: 12px;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.ac-monit-remove-btn:hover {
  background: var(--danger-light, #fef2f2);
  color: var(--danger);
}

.ac-monit-quota {
  font-size: 12px;
  color: var(--text-muted);
  padding-bottom: 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid #f1f5f9;
}

/* ── Clickable Vehicle + Expand ───────────────────────────── */

.ac-monit-quota-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-secondary);
}
.ac-monit-quota-bar i { color: var(--primary); font-size: 13px; }
.ac-monit-quota-bar a { color: var(--primary); font-weight: 600; text-decoration: none; }
.ac-monit-quota-bar a:hover { text-decoration: underline; }

.ac-veiculo-clickable {
  cursor: pointer;
  transition: background 0.15s;
}
.ac-veiculo-clickable:hover {
  background: #f8fafc;
}
.ac-veiculo-clickable.active {
  background: #f1f5f9;
}

.ac-veiculo-chevron {
  font-size: 12px;
  color: var(--text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 4px;
}
.ac-veiculo-clickable.active .ac-veiculo-chevron {
  transform: rotate(180deg);
}

.ac-veiculo-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.ac-veiculo-expand.open {
  max-height: 800px;
}

/* ── Expand Sections ──────────────────────────────────────── */
.ac-expand-section {
  padding: 12px 0;
  border-top: 1px solid #f1f5f9;
}

.ac-expand-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ac-expand-title i { font-size: 11px; }

.ac-expand-empty {
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ac-expand-empty i { color: var(--primary); }

/* ── Multas List ──────────────────────────────────────────── */
.ac-expand-multas {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ac-multa-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.ac-multa-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.ac-multa-grav {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.ac-multa-grav.leve { background: #dbeafe; color: #1d4ed8; }
.ac-multa-grav.media { background: #fef9c3; color: #a16207; }
.ac-multa-grav.grave { background: #fed7aa; color: #c2410c; }
.ac-multa-grav.gravissima { background: #fecaca; color: #b91c1c; }

.ac-multa-desc {
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ac-multa-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.ac-multa-valor {
  font-weight: 600;
  color: var(--text);
}

.ac-multa-pts {
  color: var(--text-muted);
  font-size: 11px;
}

/* ── Monitoramento dentro do expand ───────────────────────── */
.ac-expand-monit-section {
  padding-bottom: 4px;
}

.ac-expand-monit-active {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--primary);
}
.ac-expand-monit-active i:first-child { font-size: 16px; }
.ac-expand-monit-active .ac-monit-remove-btn {
  margin-left: auto;
  width: auto;
  height: auto;
  padding: 4px 10px;
  font-size: 11px;
  gap: 4px;
  display: inline-flex;
  align-items: center;
  color: var(--danger);
  background: #fff;
  border: 1px solid var(--danger-light, #fecaca);
  border-radius: var(--radius-sm);
}

.ac-expand-monit-locked {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
}
.ac-expand-monit-locked i { font-size: 18px; margin-top: 2px; }
.ac-expand-monit-locked strong { color: var(--text); display: block; margin-bottom: 4px; }
.ac-expand-monit-locked p { margin: 0 0 8px; font-size: 12px; }

/* ── Offer (termos + checkbox + concordo) ─────────────────── */
.ac-expand-monit-offer {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.ac-expand-monit-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  font-size: 13px;
}
.ac-expand-monit-header i { color: var(--primary); }
.ac-expand-monit-header strong { flex: 1; }

.ac-monit-quota-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: #e2e8f0;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.ac-expand-monit-terms {
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.ac-expand-monit-terms p { margin: 0 0 6px; font-weight: 600; color: var(--text); }
.ac-expand-monit-terms ul {
  margin: 0;
  padding-left: 18px;
}
.ac-expand-monit-terms li { margin-bottom: 4px; }

.ac-expand-monit-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  border-top: 1px solid #f1f5f9;
  user-select: none;
}
.ac-expand-monit-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.ac-expand-monit-confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border: none;
  border-top: 1px solid rgba(0,0,0,0.05);
  cursor: pointer;
  transition: background 0.15s;
}
.ac-expand-monit-confirm:hover:not(:disabled) { background: var(--primary-dark, #15803d); }
.ac-expand-monit-confirm:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Activity List (minimal) ──────────────────────────────── */
.ac-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

.ac-activity-item:last-child { border-bottom: none; }
.ac-activity-item:first-child { padding-top: 0; }

.ac-activity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
  margin-top: 6px;
  flex-shrink: 0;
}

.ac-activity-dot.ac-dot-blue { background: #64748b; }
.ac-activity-dot.ac-dot-amber { background: #94a3b8; }
.ac-activity-dot.ac-dot-red { background: #94a3b8; }

.ac-activity-content { flex: 1; }

.ac-activity-text {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0 0 2px;
}

.ac-activity-time {
  font-size: 11px;
  color: var(--text-muted);
}

/* ── Empty State ──────────────────────────────────────────── */
.ac-empty-state {
  text-align: center;
  padding: 24px 0;
}

.ac-empty-state i {
  font-size: 28px;
  color: var(--text-muted);
  opacity: 0.4;
  margin-bottom: 10px;
}

.ac-empty-state p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.ac-btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--radius-xs);
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  transition: background var(--transition);
}

.ac-btn-sm:hover {
  background: var(--primary-dark);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 992px) {
  .ac-quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ac-main {
    padding-top: 90px; /* no ticker on mobile */
    padding-bottom: 40px;
  }

  .ac-profile-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
  }

  .ac-profile-right {
    width: 100%;
    justify-content: space-around;
    padding-top: 16px;
    border-top: 1px solid var(--border);
  }

  .ac-columns {
    grid-template-columns: 1fr;
  }

  .ac-quick-grid {
    grid-template-columns: 1fr;
  }

  .ac-welcome-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .ac-welcome-aside {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .ac-welcome-title {
    font-size: 22px;
  }

  .ac-plan-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
  }

  .ac-plan-cta-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ================================================
   TAB BAR — Integrated Dashboard
   ================================================ */
.ac-tab-bar {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 28px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ac-tab-bar::-webkit-scrollbar { display: none; }

.ac-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: none;
  background: transparent;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: inherit;
}
.ac-tab-btn:hover {
  background: var(--bg-card);
  color: var(--text);
}
.ac-tab-btn.active {
  background: var(--bg-card);
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.ac-tab-btn i {
  font-size: 14px;
}

/* Tab content sections */
.ac-tab-content {
  display: none;
}
.ac-tab-content.active {
  display: block;
}

/* Embedded sections need reduced top padding since they're inside ac-main */
.ac-tab-content .monit-section {
  padding-top: 0;
}
.ac-tab-content .mp-main {
  padding-top: 0;
}
.ac-tab-content .mr-main {
  padding-top: 0;
}
.ac-tab-content .doc-section {
  padding-top: 0;
}
.ac-tab-content .as-section {
  padding-top: 0;
}

@media (max-width: 768px) {
  .ac-tab-btn {
    padding: 8px 14px;
    font-size: 12px;
  }
  .ac-tab-btn span {
    display: none;
  }
  .ac-tab-btn i {
    font-size: 16px;
  }
}

/* ── Card Modifiers ───────────────────────────────────────── */
.ac-card-muted {
  opacity: 0.7;
  border-color: var(--border-light, #e2e8f0);
}
.ac-card-muted:hover { opacity: 0.85; }

.ac-card-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
}
.ac-card-link:hover { text-decoration: underline; }

/* ── Status dos Recursos (resumo) ─────────────────────────── */
.ac-recursos-status { display: flex; flex-direction: column; gap: 12px; }

.ac-rs-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-xs, 6px);
  background: var(--bg, #f9fafb);
  border: 1px solid var(--border-light, #e2e8f0);
}

.ac-rs-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ac-rs-dot.aguardando { background: #f59e0b; }
.ac-rs-dot.analise     { background: #3b82f6; }
.ac-rs-dot.protocolado { background: #8b5cf6; }
.ac-rs-dot.concluido   { background: #16a34a; }
.ac-rs-dot.negado      { background: #ef4444; }

.ac-rs-info { flex: 1; min-width: 0; }
.ac-rs-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary, #1e293b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ac-rs-date {
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
}

.ac-rs-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius);
  white-space: nowrap;
}
.ac-rs-badge.aguardando { background: #fef3c7; color: #92400e; }
.ac-rs-badge.analise     { background: #dbeafe; color: #1e40af; }
.ac-rs-badge.protocolado { background: #ede9fe; color: #5b21b6; }
.ac-rs-badge.concluido   { background: #dcfce7; color: #166534; }
.ac-rs-badge.negado      { background: #fee2e2; color: #991b1b; }

.ac-rs-empty {
  text-align: center;
  padding: 16px 0;
  color: var(--text-muted, #94a3b8);
  font-size: 13px;
}

/* ── Suporte / Tickets ────────────────────────────────────── */
.sup-header {
  margin-bottom: 24px;
}
.sup-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary, #1e293b);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sup-header h2 i { color: var(--primary); font-size: 1.1rem; }
.sup-header p {
  font-size: 13px;
  color: var(--text-secondary, #64748b);
  margin: 0;
}

.sup-new-ticket {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: var(--radius, 10px);
  padding: 24px;
  margin-bottom: 28px;
}
.sup-new-ticket h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary, #1e293b);
  margin: 0 0 18px;
}

.sup-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.sup-field-full { grid-column: 1 / -1; }

.sup-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary, #64748b);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.sup-field select,
.sup-field input,
.sup-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: var(--radius-xs, 6px);
  font-size: 14px;
  color: var(--text-primary, #1e293b);
  background: var(--bg, #f9fafb);
  transition: border-color 0.15s;
  box-sizing: border-box;
  font-family: inherit;
}
.sup-field select:focus,
.sup-field input:focus,
.sup-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.08);
}
.sup-field textarea { resize: vertical; min-height: 80px; }

.sup-submit-btn {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-xs, 6px);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  justify-self: start;
}
.sup-submit-btn:hover { background: var(--primary-dark, #15803d); }
.sup-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Tickets list */
.sup-tickets-section {
  margin-top: 8px;
}
.sup-tickets-section h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary, #1e293b);
  margin: 0 0 14px;
}
.sup-tickets-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sup-empty {
  text-align: center;
  padding: 28px 0;
  color: var(--text-muted, #94a3b8);
  font-size: 13px;
}

.sup-ticket-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: var(--radius-xs, 6px);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.sup-ticket-item:hover {
  border-color: var(--primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.sup-ticket-id {
  font-size: 12px;
  font-weight: 700;
  font-family: monospace;
  color: var(--primary);
  min-width: 64px;
}
.sup-ticket-info { flex: 1; min-width: 0; }
.sup-ticket-assunto {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary, #1e293b);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sup-ticket-date {
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
}
.sup-ticket-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius);
  white-space: nowrap;
}
.sup-ticket-badge.aberto    { background: #dbeafe; color: #1e40af; }
.sup-ticket-badge.respondido { background: #dcfce7; color: #166534; }
.sup-ticket-badge.fechado   { background: #f1f5f9; color: #64748b; }

/* ── Header tab notification badge ──────────────── */
.ac-htab-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 9px;
  height: 9px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid #fff;
  pointer-events: none;
}
.ac-htab.active .ac-htab-badge {
  border-color: var(--primary);
}

/* ── Support reply toast ──────────────── */
.sup-reply-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  z-index: 9999;
  max-width: 440px;
  animation: supToastIn 0.3s ease;
}
@keyframes supToastIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sup-reply-toast-icon {
  font-size: 22px;
  color: var(--primary);
  flex-shrink: 0;
}
.sup-reply-toast-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}
.sup-reply-toast-body strong {
  font-size: 13.5px;
}
.sup-reply-toast-body span {
  color: var(--text-secondary);
  font-size: 12.5px;
}
.sup-reply-toast-action {
  flex-shrink: 0;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}
.sup-reply-toast-action:hover { background: var(--primary-dark, #15803d); }
.sup-reply-toast-close {
  flex-shrink: 0;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
}
.sup-reply-toast-close:hover { color: var(--text); }
@media (max-width: 480px) {
  .sup-reply-toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
}

/* Chat overlay */
.sup-chat-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sup-chat-panel {
  background: var(--card-bg, #fff);
  border-radius: var(--radius, 10px);
  width: min(520px, 94vw);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}

.sup-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light, #e2e8f0);
}
.sup-chat-title {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sup-chat-title span:first-child {
  font-size: 13px;
  font-weight: 700;
  font-family: monospace;
  color: var(--primary);
}
.sup-chat-title span:last-child {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary, #1e293b);
}
.sup-chat-status {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius);
  background: #dbeafe;
  color: #1e40af;
}
.sup-chat-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-muted, #94a3b8);
  padding: 4px;
  border-radius: var(--radius-xs);
  transition: color 0.15s;
}
.sup-chat-close:hover { color: var(--text-primary, #1e293b); }

.sup-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
  max-height: 50vh;
}

.sup-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}
.sup-msg.cliente {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 3px;
}
.sup-msg.admin {
  align-self: flex-start;
  background: var(--bg, #f1f5f9);
  color: var(--text-primary, #1e293b);
  border-bottom-left-radius: 3px;
}
.sup-msg-time {
  font-size: 10px;
  opacity: 0.7;
  margin-top: 4px;
}

.sup-chat-input {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--border-light, #e2e8f0);
}
.sup-chat-input textarea {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: var(--radius-xs, 6px);
  font-size: 13px;
  resize: none;
  font-family: inherit;
  background: var(--bg, #f9fafb);
}
.sup-chat-input textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.sup-chat-send {
  background: var(--primary);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs, 6px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: background 0.15s;
  flex-shrink: 0;
}
.sup-chat-send:hover { background: var(--primary-dark, #15803d); }

@media (max-width: 640px) {
  .sup-form { grid-template-columns: 1fr; }
  .sup-ticket-item { flex-wrap: wrap; gap: 8px; }
  .sup-chat-panel { width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; }
}
