.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 1rem;
}

.modal-overlay.ativo {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-secondary);
  border: 1px solid #2e2e35;
  border-radius: 16px;
  max-width: 850px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 2rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.btn-fechar-modal {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: #2e2e35;
  border: none;
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}

.btn-fechar-modal:hover {
  background: #3e3e48;
}

.modal-nav-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn-modal-voltar {
  background: #2e2e35;
  border: none;
  color: var(--text-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-modal-voltar:hover {
  background: #3e3e48;
}

.modal-grid-selecao {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.card-selecao {
  background: var(--bg-primary);
  border: 1px solid #2e2e35;
  border-radius: 10px;
  padding: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card-selecao:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.card-selecao-thumb {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  background-color: #000;
  display: block;
}

.carrossel-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-toggle-view {
  background: var(--bg-primary);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-toggle-view:hover {
  background: var(--accent);
  color: #fff;
}

.feed-swipe-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feed-swipe-container {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: 12px;
  background: #000;
  max-height: 60vh;
  cursor: grab;
  user-select: none;
  scroll-behavior: smooth;
}

.feed-swipe-container:active {
  cursor: grabbing; /* Mãozinha fechada ao segurar */
}

.feed-swipe-container::-webkit-scrollbar {
  display: none;
}

.feed-slide-item {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feed-slide-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.feed-indicadores {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 0.75rem;
}

.feed-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3e3e48;
  transition: background 0.2s;
}

.feed-dot.ativo {
  background: var(--accent);
}

.view-continuo-container {
  display: none;
  overflow-x: auto;
  white-space: nowrap;
  padding: 1rem 0;
  scrollbar-width: thin;
}

.view-continuo-container.ativo {
  display: flex;
}

.view-continuo-container img {
  height: 380px;
  width: auto;
  flex-shrink: 0;
  user-select: none;
}

/* Card de Cliente Enriquecido */
.card-cliente-header {
  position: relative;
  width: 100%;
  height: 120px;
  border-radius: 8px;
  background-color: #2b2d42;
  background-size: cover;
  background-position: center;
  margin-bottom: 2.5rem;
}

.cliente-avatares {
  position: absolute;
  bottom: -1.5rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.avatar-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-secondary);
  background: var(--bg-primary);
}

.logo-badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  border: 2px solid var(--bg-secondary);
  background: var(--bg-primary);
  padding: 2px;
}
