/* Estilos específicos para a página de painel do usuário */

/* Estilos específicos para painel do usuário - OTIMIZADO */

/* Container principal */
.dashboard-container {
  display: flex;
  min-height: calc(100vh - var(--header-height));
  margin-top: var(--header-height, 70px);
  background: var(--dashboard-bg);
  position: relative;
}

/* Overlay para fechar menu mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 40;
}

.sidebar-overlay.active {
  display: block;
}

/* Sidebar responsivo - Mobile First */
.sidebar {
  width: 280px;
  min-width: 280px;
  max-width: 280px;
  background: linear-gradient(180deg, #1a1a1a 0%, #141414 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--header-height);
  left: 0;
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
  z-index: 50;
  word-wrap: break-word;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}

/* Sidebar visível quando ativa (mobile) */
.sidebar.show {
  transform: translateX(0);
}

/* Header mobile da sidebar (botão fechar) - escondido por padrão */
.sidebar-mobile-header {
  display: none; /* Escondido por padrão em desktop */
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-mobile-header span {
  color: #fff;
  font-weight: 600;
}

.sidebar-close-btn {
  padding: 0.5rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-close-btn i {
  font-size: 1.5rem;
}

.sidebar-header {
  padding: clamp(1rem, 2vw, 1.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Botão hamburguer mobile - escondido por padrão em desktop */
.mobile-menu-btn {
  display: none; /* Escondido por padrão */
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mobile-menu-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn i {
  font-size: 1.5rem;
}

/* Conteúdo principal */
.dashboard-content {
  flex-grow: 1;
  padding: clamp(1rem, 3vw, 2rem);
  overflow-x: hidden;
  min-height: calc(100vh - var(--header-height));
  position: relative;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  width: 100%;
}

/* Para usuários sem sidebar (free) */
.dashboard-content.full-width {
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
  padding: clamp(1rem, 3vw, 2rem);
}

/* Desktop: sidebar visível e fixa */
@media (min-width: 1024px) {
  .sidebar {
    position: fixed;
    transform: translateX(0) !important; /* Forçar visibilidade em desktop */
    transition: none; /* Sem animação em desktop */
  }
  
  .sidebar-mobile-header {
    display: none !important;
  }
  
  .mobile-menu-btn {
    display: none !important;
  }
  
  .sidebar-overlay {
    display: none !important;
  }
  
  /* Para usuários com sidebar (streamer) */
  .dashboard-content:not(.full-width) {
    margin-left: 280px;
    width: calc(100% - 280px);
  }
}

/* Tablet e Mobile */
@media (max-width: 1023px) {
  .sidebar-mobile-header {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .dashboard-content:not(.full-width) {
    margin-left: 0;
    width: 100%;
  }
}

/* ==========================================================================
   Dashboard Header - Padrão alinhado com page-header (comandos/configurações)
   ========================================================================== */
.dashboard-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 640px) {
  .dashboard-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.header-welcome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-welcome > div {
  display: flex;
  flex-direction: column;
}

.header-welcome h1 {
  font-size: 2.0rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(90deg, var(--primary-color), #a864ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
}

.header-welcome h1 i {
  font-size: 1.6rem;
  margin-right: 0.5rem;
  vertical-align: middle;
  color: var(--primary-color);
}

.header-welcome p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.dashboard-header::after {
  content: '';
  position: absolute;
  height: 3px;
  width: 60px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
  bottom: -10px;
  left: 0;
  border-radius: 3px;
}

.stream-status {
  display: flex;
  align-items: center;
  padding: clamp(0.5rem, 1vw, 0.6rem) clamp(1rem, 2vw, 1.2rem);
  border-radius: 100px;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.5rem;
  background-color: #666;
  flex-shrink: 0;
}

.stream-status.online .status-dot {
  background-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(66, 184, 131, 0.2);
}

.stream-status.offline .status-dot {
  background-color: #f44336;
}

.status-text {
  font-weight: 500;
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
}

/* Estilos dos cards */
.dashboard-card {
  background: linear-gradient(145deg, var(--card-bg), var(--bg-secondary));
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: clamp(1.5rem, 2vw, 2rem);
  word-wrap: break-word;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(1rem, 2vw, 1.25rem) clamp(1rem, 2vw, 1.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.15);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.card-header h2 {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  word-break: break-word;
}

.card-header h2 i {
  color: var(--primary-light);
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  flex-shrink: 0;
}

.card-content {
  padding: clamp(1rem, 2vw, 2rem);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  word-wrap: break-word;
}

.view-all {
  display: flex;
  align-items: center;
  color: var(--primary-light);
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.view-all:hover {
  opacity: 0.8;
  transform: translateX(3px);
}

.view-all i {
  font-size: 1rem;
  margin-left: 0.25rem;
}

/* Grade do dashboard - Responsivo Mobile-First */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.main-dashboard {
  grid-template-columns: 1fr;
}

.free-dashboard {
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  }
  
  .main-dashboard {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .free-dashboard {
    grid-template-columns: 2fr 1fr;
  }
}

/* Cards de estatísticas - Responsivo */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .dashboard-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.stat-card {
  background: linear-gradient(145deg, var(--card-bg), var(--bg-tertiary));
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-5px);
  background: linear-gradient(145deg, var(--card-bg-hover), var(--bg-tertiary));
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--primary-light);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Atividades recentes */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.activity-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: linear-gradient(145deg, rgba(25, 25, 35, 0.5), rgba(30, 30, 40, 0.3));
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.activity-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--primary-color);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.activity-item:hover {
  background: linear-gradient(145deg, rgba(138, 43, 226, 0.1), rgba(66, 184, 131, 0.05));
  border-color: rgba(138, 43, 226, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.2);
}

.activity-item:hover::before {
  opacity: 1;
}

.activity-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.activity-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  opacity: 0.1;
  border-radius: inherit;
}

.activity-icon i {
  font-size: 1.4rem;
  color: white;
  position: relative;
  z-index: 1;
}

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.activity-description {
  font-size: 0.9rem;
  color: var(--text-color);
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.activity-prompt {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: block;
  line-height: 1.3;
}

.scene-type-badge {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.command-activity {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.8), rgba(138, 43, 226, 0.6));
  border: 1px solid rgba(138, 43, 226, 0.3);
}

.command-activity i {
  color: var(--primary-light);
}

.generation-activity {
  background: linear-gradient(135deg, rgba(66, 184, 131, 0.8), rgba(66, 184, 131, 0.6));
  border: 1px solid rgba(66, 184, 131, 0.3);
}

.generation-activity i {
  color: var(--secondary-light);
}

.login-activity {
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.8), rgba(0, 191, 255, 0.6));
  border: 1px solid rgba(0, 191, 255, 0.3);
}

.login-activity i {
  color: var(--tertiary-color);
}

.viewer-activity {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.8), rgba(255, 107, 107, 0.6));
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.viewer-activity i {
  color: #ff6b6b;
}

.event-activity {
  background: rgba(255, 153, 0, 0.2);
}

.event-activity i {
  color: #ff9900;
}

.system-activity {
  background: rgba(150, 150, 150, 0.2);
}

.system-activity i {
  color: #aaa;
}

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

.activity-time {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.15rem;
  letter-spacing: 0.01em;
}

.activity-description {
  font-size: 0.95rem;
}

/* Fundos favoritos */
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.favorite-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.favorite-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.favorite-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.favorite-item:hover img {
  transform: scale(1.1);
}

.favorite-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.favorite-item:hover .favorite-overlay {
  opacity: 1;
}

.favorite-overlay h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.favorite-actions {
  display: flex;
  gap: 0.5rem;
}

/* Comandos */
.commands-list {
  display: flex;
  flex-direction: column;
}

.command-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.1);
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
}

.command-item:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: translateX(5px);
}

.command-trigger {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary-color));
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-family: "Consolas", monospace;
  font-weight: 500;
  font-size: 0.9rem;
  margin-right: 1rem;
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.command-description {
  flex-grow: 1;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.command-actions {
  margin-left: 1rem;
}

.btn-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background: var(--primary-color);
}

.btn-icon i {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.btn-icon:hover i {
  color: white;
}

.add-command {
  margin-top: 1rem;
  text-align: center;
}

/* Timeline */
.events-timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 1rem;
}

.events-timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 0;
  left: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-color), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 8px;
  left: -2rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(138, 43, 226, 0.1);
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 0.5rem;
}

.timeline-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Passos rápidos */
.quick-steps {
  list-style: none;
  padding: 0;
}

.quick-steps li {
  position: relative;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.quick-steps li:hover {
  background: rgba(0, 0, 0, 0.15);
}

.quick-steps li.completed {
  background: rgba(66, 184, 131, 0.05);
  border-left: 4px solid var(--secondary-color);
}

.step-number {
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid #444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.quick-steps li.completed .step-number {
  background: var(--secondary-color);
  color: white;
  border-color: var(--secondary-color);
}

.step-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Entradas de cópia */
.copy-input {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 1rem 0;
  transition: all 0.2s ease;
}

.copy-input:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.1);
}

.copy-input input {
  flex-grow: 1;
  background: rgba(0, 0, 0, 0.2);
  border: none;
  color: var(--text-color);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

.copy-btn {
  width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.copy-btn:hover {
  background: var(--primary-light);
}

.copy-btn i {
  color: white;
  font-size: 1.1rem;
}

/* Botão de refresh ao lado do copy */
.copy-input .btn-outline {
  min-width: 42px;
  padding: 0 0.5rem;
  margin: 0;
  border-radius: 0;
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
}

.copy-input .btn-outline:hover {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

.copy-input .btn-outline i {
  font-size: 1.1rem;
}

/* Comandos gratuitos */
.free-commands {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.free-commands .command-item {
  background: rgba(0, 0, 0, 0.1);
  padding: 0.75rem;
  margin-bottom: 0.5rem;
}

.commands-info {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.commands-info p {
  margin-bottom: 0.5rem;
}

.commands-info p:last-child {
  color: var(--primary-light);
}

/* Características do plano */
.plan-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.plan-feature {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.plan-feature:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(5px);
}

.feature-icon {
  width: 42px;
  height: 42px;
  background: rgba(138, 43, 226, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.feature-icon i {
  font-size: 1.5rem;
  color: var(--primary-light);
}

.feature-text h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.feature-text p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Atualização para premium */
.upgrade-now {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  background: rgba(138, 43, 226, 0.05);
  border-radius: 0 0 12px 12px;
}

.upgrade-now p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  border-radius: 6px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  box-shadow: var(--button-shadow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(138, 43, 226, 0.35);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-color);
}

.btn-secondary:hover {
  background: var(--card-bg-hover);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-light);
}

.btn-outline:hover {
  background: rgba(138, 43, 226, 0.1);
}

.btn-upgrade {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(138, 43, 226, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(138, 43, 226, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(138, 43, 226, 0);
  }
}

/* Cards específicos */
.premium-upsell {
  position: relative;
  overflow: hidden;
}

.premium-upsell::before {
  content: "Free";
  position: absolute;
  top: 30px;
  right: -35px;
  background: var(--primary-color);
  color: white;
  padding: 5px 40px;
  font-size: 0.8rem;
  font-weight: 600;
  transform: rotate(45deg);
  z-index: 10;
}

.future-features {
  background: linear-gradient(145deg, var(--card-bg), var(--bg-tertiary));
}

/* Estilos para o painel gratuito */
.free-user-panel {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.bot-activation-card {
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.card-header {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(66, 184, 131, 0.05));
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
}

.card-header h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-color);
}

.card-header h2 i {
  color: var(--primary-color);
  font-size: 1.6rem;
}

.card-header p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.95rem;
}

.card-content {
  padding: 2rem;
}

/* Toggle principal redesenhado */
.bot-main-toggle {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.bot-main-toggle.active {
  border-color: var(--primary-color);
  background: rgba(138, 43, 226, 0.05);
}

.toggle-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Toggle switch compacto */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
  border-radius: 13px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background: white;
  transition: all 0.3s ease;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(22px);
}

.toggle-label h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  color: var(--text-color);
  font-weight: 600;
}

.toggle-label p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Seção de configurações melhorada */
.bot-settings {
  display: none;
  animation: fadeInUp 0.3s ease;
}

.bot-settings.visible {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card de comando redesenhado */
.command-preview-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.command-header {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(66, 184, 131, 0.05));
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.command-header h3 {
  font-size: 1.1rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
}

.command-header h3 i {
  color: var(--primary-color);
}

.command-badge {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: monospace;
}

.command-content {
  padding: 1.5rem;
}

.command-content p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.command-content code {
  background: rgba(138, 43, 226, 0.1);
  color: var(--primary-light);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9rem;
}

/* Configurações de permissão */
.permission-settings {
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.permission-settings h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.permission-settings h4:before {
  content: "👥";
  font-size: 1.2rem;
}

.permission-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.permission-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--bg-tertiary);
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.permission-option:hover {
  border-color: var(--primary-color);
  background: rgba(138, 43, 226, 0.05);
}

.permission-option input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary-color);
}

.permission-option span {
  font-size: 0.9rem;
  color: var(--text-color);
  font-weight: 500;
}

.permission-option:has(input:checked) {
  border-color: var(--primary-color);
  background: rgba(138, 43, 226, 0.1);
}

/* Limite diário */
.daily-limit-setting {
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.daily-limit-setting label {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--text-color);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.daily-limit-setting label:before {
  content: "📊";
  font-size: 1.2rem;
}

.daily-limit-setting select {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.daily-limit-setting select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.1);
}

/* Card de overlay */
.overlay-info-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.overlay-info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
}

.overlay-info-card h3 i {
  color: var(--secondary-color);
}

.overlay-info-card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.url-container {
  display: flex;
  gap: 0.5rem;
}

.url-container input {
  flex: 1;
  padding: 0.75rem;
  border-radius: 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  font-family: monospace;
  font-size: 0.85rem;
}

.copy-btn {
  padding: 0.75rem 1rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Botão de salvar */
.form-actions {
  text-align: center;
  margin-top: 2rem;
}

.form-actions .btn {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  border-radius: 8px;
  font-weight: 600;
}

/* Promoção de upgrade */
.bot-disabled-message {
  text-align: center;
  padding: 2rem;
}

.upgrade-promotion {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.05), rgba(66, 184, 131, 0.05));
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(138, 43, 226, 0.2);
}

.upgrade-promotion h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.upgrade-promotion p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.upgrade-promotion ul {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.upgrade-promotion li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-color);
  font-size: 0.95rem;
}

.upgrade-promotion li i {
  color: var(--secondary-color);
  font-size: 1.1rem;
}

/* ✅ NOTIFICAÇÕES */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  border-left: 4px solid var(--success-color, #4caf50);
}

.notification.error {
  border-left: 4px solid var(--error-color, #f44336);
}

.notification-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  margin-left: 10px;
}

.notification-close:hover {
  color: var(--text-primary);
}

/* ✅ MODAL DE CONFIRMAÇÃO CUSTOMIZADO */
.confirmation-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.confirmation-modal.show {
  opacity: 1;
  visibility: visible;
}

.confirmation-modal-content {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 0;
  max-width: 480px;
  width: 90%;
  border: 1px solid var(--border-color);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  transform: scale(0.9) translateY(40px);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}

.confirmation-modal.show .confirmation-modal-content {
  transform: scale(1) translateY(0);
}

.confirmation-modal-header {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(66, 184, 131, 0.05));
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.confirmation-modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 193, 7, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffc107;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.confirmation-modal-icon.danger {
  background: rgba(220, 53, 69, 0.15);
  color: #dc3545;
}

.confirmation-modal-icon.info {
  background: rgba(23, 162, 184, 0.15);
  color: #17a2b8;
}

.confirmation-modal-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
  line-height: 1.3;
}

.confirmation-modal-body {
  padding: 1.5rem;
}

.confirmation-modal-message {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
  font-size: 1rem;
}

.confirmation-modal-actions {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.confirmation-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 120px;
  justify-content: center;
}

.confirmation-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.confirmation-btn-cancel {
  background: var(--bg-tertiary);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.confirmation-btn-cancel:hover:not(:disabled) {
  background: var(--bg-secondary);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.confirmation-btn-confirm {
  background: linear-gradient(135deg, #ffc107, #e0a800);
  color: #000;
  font-weight: 700;
}

.confirmation-btn-confirm:hover:not(:disabled) {
  background: linear-gradient(135deg, #e0a800, #d39e00);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.confirmation-btn-danger {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  font-weight: 700;
}

.confirmation-btn-danger:hover:not(:disabled) {
  background: linear-gradient(135deg, #c82333, #bd2130);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Animação de loading */
.confirmation-btn i.bx-loader-alt {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Responsividade do modal */
@media (max-width: 576px) {
  .confirmation-modal-content {
    max-width: 95%;
    margin: 1rem;
  }

  .confirmation-modal-actions {
    flex-direction: column;
  }

  .confirmation-btn {
    width: 100%;
  }
}

/* === MODAL DE IMAGEM FAVORITA === */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: linear-gradient(145deg, rgba(25, 25, 35, 0.95), rgba(30, 30, 40, 0.9));
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 90vw;
  max-height: 90vh;
  width: 800px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(138, 43, 226, 0.1);
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-title::before {
  content: "⭐";
  font-size: 1.1rem;
}

.modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 107, 107, 0.8);
  transform: scale(1.1);
}

.modal-close i {
  font-size: 1.2rem;
}

.modal-body {
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.favorite-image-container {
  position: relative;
  width: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  max-height: 60vh;
  overflow: hidden;
}

.favorite-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.favorite-image-info {
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-label i {
  font-size: 0.9rem;
  color: var(--primary-color);
}

.info-text {
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.4;
  margin: 0;
  word-wrap: break-word;
}

/* Responsividade do modal */
@media (max-width: 768px) {
  .modal-content {
    width: 95vw;
    max-width: 95vw;
    margin: 1rem;
  }

  .modal-header {
    padding: 1rem;
  }

  .modal-title {
    font-size: 1.1rem;
  }

  .favorite-image-container {
    min-height: 250px;
    max-height: 50vh;
  }

  .favorite-image-info {
    padding: 1rem;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .modal-content {
    width: 98vw;
    margin: 0.5rem;
    border-radius: 16px;
  }

  .modal-header {
    padding: 0.75rem;
  }

  .modal-title {
    font-size: 1rem;
  }

  .favorite-image-container {
    min-height: 200px;
    max-height: 40vh;
  }

  .favorite-image-info {
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .info-label {
    font-size: 0.75rem;
  }

  .info-text {
    font-size: 0.9rem;
  }
}

/* ===================================================================
   CARROSSEL MODERNO DE FUNDOS FAVORITOS - ESTILO PAINEL_TEMP
   =================================================================== */

.favorites-carousel-modern {
  position: relative;
  width: 100%;
  background: linear-gradient(145deg, rgba(20, 20, 30, 0.6), rgba(25, 25, 35, 0.4));
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  padding: 1rem;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform;
}

/* Desktop: 3 cards por vez */
.carousel-slide {
  flex: 0 0 calc(33.333% - 0.67rem);
  min-width: calc(33.333% - 0.67rem);
  box-sizing: border-box;
}

/* Tablet: 2 cards por vez */
@media (max-width: 992px) {
  .carousel-slide {
    flex: 0 0 calc(50% - 0.5rem);
    min-width: calc(50% - 0.5rem);
  }
}

/* Mobile: 1 card por vez */
@media (max-width: 576px) {
  .carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
  }
}

.favorite-card {
  width: 100%;
  background: linear-gradient(145deg, rgba(30, 30, 40, 0.9), rgba(25, 25, 35, 0.7));
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.favorite-card:hover {
  transform: translateY(-4px);
  border-color: rgba(138, 43, 226, 0.4);
  box-shadow: 0 8px 30px rgba(138, 43, 226, 0.2);
}

.favorite-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
}

.favorite-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.favorite-card:hover .favorite-img {
  transform: scale(1.05);
}

.favorite-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 50%,
    rgba(0, 0, 0, 0.3) 70%,
    rgba(0, 0, 0, 0.7) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.favorite-card:hover .favorite-overlay {
  opacity: 1;
}

.favorite-view-btn {
  background: rgba(138, 43, 226, 0.9);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: scale(0.8);
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.favorite-view-btn:hover {
  transform: scale(1);
  background: var(--primary-color);
  box-shadow: 0 6px 20px rgba(138, 43, 226, 0.5);
}

.favorite-view-btn i {
  font-size: 1.2rem;
}

.favorite-info {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.favorite-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.favorite-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.favorite-likes {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #ff4757;
  font-weight: 500;
}

.favorite-likes i {
  font-size: 0.9rem;
}

.favorite-date {
  color: var(--text-muted);
  font-weight: 400;
}

/* Botões de navegação do carrossel */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(138, 43, 226, 0.8);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  opacity: 0.7;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.carousel-btn:hover {
  opacity: 1;
  background: var(--primary-color);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(138, 43, 226, 0.4);
}

.carousel-btn i {
  font-size: 1.2rem;
}

.carousel-prev {
  left: 1rem;
}

.carousel-next {
  right: 1rem;
}

/* Indicadores de navegação (dots) */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.2);
}

.carousel-dot.active {
  background: var(--primary-color);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

/* Responsividade do carrossel */
@media (max-width: 768px) {
  .carousel-container {
    padding: 0.75rem;
  }

  .carousel-track {
    gap: 0.75rem;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    opacity: 0.9;
  }

  .carousel-btn i {
    font-size: 1rem;
  }

  .carousel-prev {
    left: 0.5rem;
  }

  .carousel-next {
    right: 0.5rem;
  }

  .favorite-view-btn {
    width: 40px;
    height: 40px;
  }

  .favorite-info {
    padding: 0.75rem;
  }

  .favorite-title {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .carousel-container {
    padding: 0.5rem;
  }

  .carousel-track {
    gap: 0.5rem;
  }

  .favorite-title {
    font-size: 0.85rem;
  }

  .favorite-stats {
    font-size: 0.75rem;
  }

  .carousel-dots {
    padding: 0.75rem;
  }

  .carousel-dot {
    width: 6px;
    height: 6px;
  }
}

/* Estados especiais */
.favorites-carousel-modern[data-single-item="true"] .carousel-btn,
.favorites-carousel-modern[data-single-item="true"] .carousel-dots {
  display: none;
}

/* === INTEGRAÇÃO VISUAL COM O DASHBOARD === */
.dashboard-card.favorite-scenes {
  background: linear-gradient(145deg, rgba(25, 25, 35, 0.8), rgba(30, 30, 40, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.dashboard-card.favorite-scenes:hover {
  border-color: rgba(138, 43, 226, 0.3);
  box-shadow: 0 8px 25px rgba(138, 43, 226, 0.15);
}

.dashboard-card.favorite-scenes .card-header {
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-card.favorite-scenes .card-content {
  padding: 0;
  height: 100%;
}

/* Ajuste para que o carrossel ocupe toda a altura disponível */
.dashboard-card.favorite-scenes .favorites-carousel-modern {
  background: transparent;
  border: none;
  border-radius: 0 0 16px 16px;
  min-height: 320px;
}

/* Garantir que o card tenha altura consistente */
.dashboard-grid .dashboard-card.favorite-scenes {
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.dashboard-grid .dashboard-card.favorite-scenes .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dashboard-grid .dashboard-card.favorite-scenes .favorites-carousel-modern {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dashboard-grid .dashboard-card.favorite-scenes .carousel-container {
  flex: 1;
}

/* Ajustes responsivos para manter consistência */
@media (max-width: 1200px) {
  .dashboard-grid .dashboard-card.favorite-scenes {
    min-height: 380px;
  }
}

@media (max-width: 768px) {
  .dashboard-grid .dashboard-card.favorite-scenes {
    min-height: 320px;
  }

  .dashboard-card.favorite-scenes .card-header {
    padding: 1rem;
  }

  .dashboard-card.favorite-scenes .favorites-carousel-modern {
    min-height: 240px;
  }
}

@media (max-width: 480px) {
  .dashboard-grid .dashboard-card.favorite-scenes {
    min-height: 280px;
  }

  .dashboard-card.favorite-scenes .favorites-carousel-modern {
    min-height: 200px;
  }
}
/* ========================================
   QUOTA CARD STYLES - SISTEMA DE COTAS 2025
   ======================================== */

.quota-section {
  margin: 2rem 0;
  width: 100%;
}

.quota-card {
  background: linear-gradient(135deg, #1e1e1e 0%, #171717 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.quota-card:hover {
  border-color: rgba(102, 51, 153, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(102, 51, 153, 0.2);
}

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

.quota-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: linear-gradient(135deg, #663399 0%, #8b5cf6 100%);
  box-shadow: 0 4px 20px rgba(102, 51, 153, 0.4);
}

.quota-icon-wrapper.demo {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.quota-icon-wrapper.warning {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

.quota-icon-wrapper.depleted {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
}

.quota-icon-wrapper.inactive {
  background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
  box-shadow: 0 4px 20px rgba(75, 85, 99, 0.4);
}

.quota-icon-wrapper i {
  color: white;
}

.quota-title-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.25rem 0;
}

.quota-title-section p {
  font-size: 0.95rem;
  color: #9ca3af;
  margin: 0;
}

.quota-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Barra de progresso */
.quota-bar-container {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1.5rem;
}

.quota-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.quota-labels span:first-child {
  color: #9ca3af;
}

.quota-numbers {
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
}

.quota-progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.quota-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #663399 0%, #8b5cf6 100%);
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.quota-progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.quota-progress-fill.warning {
  background: linear-gradient(90deg, #f59e0b 0%, #ef4444 100%);
}

.quota-progress-fill.depleted {
  background: linear-gradient(90deg, #dc2626 0%, #991b1b 100%);
}

.quota-breakdown {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

.quota-breakdown span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.quota-breakdown i {
  font-size: 1rem;
  color: #8b5cf6;
}

/* Status alerts */
.quota-status {
  padding: 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
}

.status-alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 10px;
}

.status-alert i {
  font-size: 1.5rem;
}

.status-alert.warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.status-alert.depleted {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #f87171;
}

.status-ok {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.status-ok i {
  font-size: 1.5rem;
}

/* Demo info */
.demo-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.demo-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.demo-detail i {
  font-size: 1.5rem;
  color: #f59e0b;
}

.demo-detail span {
  font-size: 0.95rem;
  color: #d1d5db;
}

.demo-detail strong {
  color: #ffffff;
  font-weight: 600;
}

/* CTA Section */
.quota-cta {
  text-align: center;
  padding: 1.5rem;
  background: rgba(102, 51, 153, 0.1);
  border: 1px solid rgba(102, 51, 153, 0.2);
  border-radius: 12px;
}

.cta-text {
  font-size: 1rem;
  color: #d1d5db;
  margin-bottom: 1rem;
}

.btn-upgrade-quota,
.btn-subscribe-now {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #663399 0%, #8b5cf6 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-upgrade-quota:hover,
.btn-subscribe-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 51, 153, 0.4);
}

/* Minha assinatura — gerenciamento INTERNO */
.manage-subscription-section {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.manage-sub-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: #e9e3f7;
}

.manage-sub-title i {
  color: #8b5cf6;
}

.sub-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.1rem;
}

.sub-detail {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sub-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.45);
}

.sub-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f3f0fb;
}

.sub-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.sub-badge.active {
  background: rgba(66, 184, 131, 0.18);
  color: #5fd6a3;
}

.sub-badge.canceling {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
}

.btn-cancel-sub,
.btn-reactivate-sub {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.3rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-cancel-sub {
  background: transparent;
  color: #f7a8a8;
  border: 1px solid rgba(229, 62, 62, 0.45);
}

.btn-cancel-sub:hover {
  background: rgba(229, 62, 62, 0.12);
  border-color: #e53e3e;
  color: #fff;
}

.btn-reactivate-sub {
  background: linear-gradient(135deg, #663399 0%, #8b5cf6 100%);
  color: #fff;
  border: none;
}

.btn-reactivate-sub:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(102, 51, 153, 0.4);
}

.manage-subscription-hint {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.9rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Modal de confirmação de cancelamento */
.sub-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 10, 25, 0.72);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.sub-modal-overlay.open {
  display: flex;
}

.sub-modal {
  background: #1f1830;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.sub-modal-icon {
  font-size: 2.6rem;
  color: #fbbf24;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.sub-modal h3 {
  margin: 0 0 0.6rem;
  color: #fff;
  font-size: 1.25rem;
}

.sub-modal p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  line-height: 1.5;
}

.sub-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-modal-keep,
.btn-modal-confirm {
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.btn-modal-keep {
  background: linear-gradient(135deg, #663399 0%, #8b5cf6 100%);
  color: #fff;
}

.btn-modal-keep:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(102, 51, 153, 0.4);
}

.btn-modal-confirm {
  background: transparent;
  color: #f7a8a8;
  border: 1px solid rgba(229, 62, 62, 0.5);
}

.btn-modal-confirm:hover {
  background: rgba(229, 62, 62, 0.15);
  color: #fff;
}

.btn-modal-confirm:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 540px) {
  .sub-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* Pacotes extras - DESIGN MODERNO */
.extra-packages-section {
  background: transparent;
  border-radius: 0;
  padding: 0;
  border: none;
  margin-top: 2rem;
}

.extra-packages-section h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.extra-packages-section h4 i {
  color: #8b5cf6;
  font-size: 1.4rem;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.package-card {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(102, 51, 153, 0.03) 100%);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.package-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8b5cf6 0%, #663399 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.package-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.25);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(102, 51, 153, 0.05) 100%);
}

.package-card:hover::before {
  transform: scaleX(1);
}

.package-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #8b5cf6 0%, #663399 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: white;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
  transition: all 0.3s ease;
}

.package-card:hover .package-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.4);
}

.package-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.package-info h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
}

.package-quantity {
  font-size: 0.9rem;
  color: #9ca3af;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.package-quantity::before {
  content: "📦";
  font-size: 1rem;
}

.package-price {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0.25rem 0 0 0;
  letter-spacing: -0.03em;
}

.btn-buy-package {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.875rem 1.25rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #663399 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
  position: relative;
  overflow: hidden;
}

.btn-buy-package::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn-buy-package:hover::before {
  left: 100%;
}

.btn-buy-package:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
  background: linear-gradient(135deg, #9d6fff 0%, #7746cc 100%);
}

.btn-buy-package:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-buy-package i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.btn-buy-package:hover i {
  transform: scale(1.1);
}

/* No subscription state */
.no-subscription-message {
  text-align: center;
  padding: 2rem;
}

.no-subscription-message i {
  font-size: 4rem;
  color: #8b5cf6;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-subscription-message p {
  font-size: 1.05rem;
  color: #9ca3af;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .quota-card {
    padding: 1.5rem;
  }

  .quota-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .quota-icon-wrapper {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

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

  .demo-info {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   PROMO SLIDER - BANNER COM IMAGENS DE FUNDO
   ========================================== */

/* Container principal do slider */
.promo-slider {
  position: relative;
  width: 100%;
  height: 140px;
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(139, 92, 246, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Track do slider */
.promo-slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Cada slide */
.promo-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: relative;
  background: linear-gradient(90deg, rgba(18, 18, 18, 0.95) 0%, rgba(18, 18, 18, 0.7) 50%, rgba(18, 18, 18, 0.4) 100%);
}

/* Imagem de fundo do slide - Gradientes abstratos estilo IA */
.promo-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(59, 130, 246, 0.3) 0%, transparent 40%),
    radial-gradient(ellipse at 90% 60%, rgba(236, 72, 153, 0.2) 0%, transparent 35%),
    linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, transparent 60%);
  opacity: 0.8;
  z-index: 0;
  transition: opacity 0.3s ease;
}

.promo-slide:nth-child(2)::before {
  background: radial-gradient(ellipse at 70% 30%, rgba(16, 185, 129, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 70%, rgba(139, 92, 246, 0.3) 0%, transparent 40%),
    radial-gradient(ellipse at 85% 50%, rgba(59, 130, 246, 0.25) 0%, transparent 35%),
    linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, transparent 60%);
}

.promo-slide:nth-child(3)::before {
  background: radial-gradient(ellipse at 75% 25%, rgba(236, 72, 153, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 75%, rgba(245, 158, 11, 0.3) 0%, transparent 40%),
    radial-gradient(ellipse at 90% 55%, rgba(139, 92, 246, 0.25) 0%, transparent 35%),
    linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, transparent 60%);
}

.promo-slide:hover::before {
  opacity: 0.5;
}

.promo-slide.highlight {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.3) 0%, rgba(18, 18, 18, 0.7) 40%, rgba(18, 18, 18, 0.3) 100%);
}

.promo-slide.highlight::before {
  opacity: 0.5;
}

/* Conteúdo do slide */
.promo-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
  z-index: 2;
}

/* Texto principal */
.promo-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.promo-text h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.promo-badge {
  display: inline-block;
  width: fit-content;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

.promo-feature {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

/* Preço */
.promo-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  white-space: nowrap;
}

.price-tag {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 15px rgba(139, 92, 246, 0.6);
}

.promo-price .price-period {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: -4px;
}

/* Botão CTA */
.promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.promo-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5);
}

.promo-cta i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.promo-cta:hover i {
  transform: translateX(4px);
}

/* Acento de fundo removido - agora usamos imagens */
.promo-bg-accent {
  display: none;
}

/* Dots de navegação */
.promo-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.promo-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.promo-dots .dot.active {
  background: #8b5cf6;
  transform: scale(1.3);
}

.promo-dots .dot:hover {
  background: rgba(139, 92, 246, 0.6);
}

/* Barra de progresso */
.promo-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #8b5cf6, #6366f1);
  width: 0%;
  transition: width 0.1s linear;
  z-index: 10;
}

/* Responsivo */
@media (max-width: 992px) {
  .promo-slider {
    height: 130px;
  }

  .promo-slide {
    padding: 0 1.5rem;
  }

  .promo-content {
    gap: 1.5rem;
  }

  .promo-text h3 {
    font-size: 1.2rem;
  }

  .price-tag {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .promo-slider {
    height: 150px;
  }

  .promo-slide {
    padding: 1rem 1.25rem;
  }

  .promo-content {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .promo-text {
    width: 100%;
  }

  .promo-text h3 {
    font-size: 1.1rem;
  }

  .promo-feature {
    font-size: 0.8rem;
  }

  .promo-price {
    flex-direction: row;
    align-items: baseline;
    gap: 0.25rem;
  }

  .price-tag {
    font-size: 1.3rem;
  }

  .promo-cta {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }

  .promo-dots {
    bottom: 10px;
  }
}

@media (max-width: 480px) {
  .promo-slider {
    height: 160px;
    border-radius: 12px;
  }

  .promo-slide {
    padding: 0.75rem 1rem;
  }

  .promo-text h3 {
    font-size: 1rem;
  }

  .promo-badge {
    font-size: 0.55rem;
    padding: 0.15rem 0.4rem;
  }

  .price-tag {
    font-size: 1.2rem;
  }

  .promo-cta {
    width: 100%;
    justify-content: center;
  }
}
/* Alerta de assinatura expirada */
.expired-subscription-alert {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.expired-subscription-alert .alert-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.expired-subscription-alert .alert-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.expired-subscription-alert .alert-icon i {
  font-size: 28px;
  color: white;
}

.expired-subscription-alert .alert-text {
  flex: 1;
  min-width: 250px;
}

.expired-subscription-alert .alert-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ef4444;
  margin-bottom: 0.5rem;
}

.expired-subscription-alert .alert-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.expired-subscription-alert .alert-actions {
  flex-shrink: 0;
}

.btn-renew {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-renew:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

/* Responsive para banners */
@media (max-width: 768px) {
  .upgrade-banner-carousel {
    padding: 1.25rem;
  }

  .upgrade-banner-header {
    flex-direction: column;
    text-align: center;
  }

  .upgrade-banner-header .header-text h3 {
    font-size: 1rem;
  }

  .plan-card-mini {
    min-width: 200px;
    max-width: 200px;
  }

  .carousel-nav {
    width: 32px;
    height: 32px;
  }

  .expired-subscription-alert {
    padding: 1.25rem;
  }

  .expired-subscription-alert .alert-content {
    flex-direction: column;
    text-align: center;
  }

  .btn-renew {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   WIZARD DE ONBOARDING - ESTILOS
   ======================================== */

.onboarding-wizard {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(20, 20, 20, 0.98) 100%);
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.onboarding-wizard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4, #10b981);
}

.wizard-header {
  text-align: center;
  margin-bottom: 2rem;
}

.wizard-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.wizard-header h2 i {
  color: #8b5cf6;
  font-size: 2rem;
}

.wizard-header p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
}

/* ========================================
   NOVA PROGRESS BAR - DESIGN LIMPO
   ======================================== */

.wizard-progress-container {
  padding: 2rem 1rem 2.5rem;
}

.wizard-progress-bar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 500px;
  margin: 0 auto;
}

/* Linha de fundo (track) */
.wizard-progress-bar .progress-track {
  position: absolute;
  top: 25px; /* Centro do círculo de 50px */
  left: 60px;
  right: 60px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  z-index: 1;
}

/* Linha de progresso (fill) */
.wizard-progress-bar .progress-fill {
  position: absolute;
  top: 25px; /* Centro do círculo de 50px */
  left: 60px;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 2px;
  z-index: 2;
  transition: width 0.5s ease;
}

/* Step container */
.wizard-progress-bar .progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
  flex: 1;
}

/* Círculo do step */
.wizard-progress-bar .step-circle {
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  border-radius: 50%;
  background: #2a2a2a;
  border: 3px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  position: relative;
  box-sizing: border-box;
}

.wizard-progress-bar .step-circle .step-number {
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  line-height: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.wizard-progress-bar .step-circle .step-check {
  display: none;
  font-size: 1.5rem;
  color: #fff;
  line-height: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Step texto */
.wizard-progress-bar .step-text {
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  white-space: nowrap;
  transition: color 0.3s ease;
}

/* Estado ATIVO */
.wizard-progress-bar .progress-step.active .step-circle {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border-color: #8b5cf6;
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.5);
}

.wizard-progress-bar .progress-step.active .step-circle .step-number {
  color: #fff;
}

.wizard-progress-bar .progress-step.active .step-text {
  color: #fff;
  font-weight: 600;
}

/* Estado COMPLETADO */
.wizard-progress-bar .progress-step.completed .step-circle {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #10b981;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.wizard-progress-bar .progress-step.completed .step-circle .step-number {
  display: none;
}

.wizard-progress-bar .progress-step.completed .step-circle .step-check {
  display: block;
}

.wizard-progress-bar .progress-step.completed .step-text {
  color: #10b981;
}

/* Responsivo */
@media (max-width: 500px) {
  .wizard-progress-bar .step-circle {
    width: 40px;
    height: 40px;
  }

  .wizard-progress-bar .progress-track,
  .wizard-progress-bar .progress-fill {
    top: 20px;
    left: 40px;
    right: 40px;
  }

  .wizard-progress-bar .step-text {
    font-size: 0.8rem;
  }

  .wizard-progress-bar .step-circle .step-number {
    font-size: 1rem;
  }
}

/* Wizard Steps */
.wizard-step {
  display: none;
  animation: fadeInUp 0.5s ease;
}

.wizard-step.active {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-content {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.step-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border: 2px solid rgba(139, 92, 246, 0.3);
}

.step-icon i {
  font-size: 2.5rem;
  color: #8b5cf6;
}

.step-icon.success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
  border-color: rgba(16, 185, 129, 0.3);
}

.step-icon.success i {
  color: #10b981;
}

.step-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.step-content > p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

/* Activation Toggle */
.activation-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.toggle-switch.large {
  transform: scale(1.3);
}

.toggle-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}

.toggle-text.active {
  color: #10b981;
}

.step-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.step-info i {
  color: #8b5cf6;
  font-size: 1.2rem;
}

/* Permission Instructions */
.permission-instructions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.instruction-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.instruction-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.instruction-card h4 i {
  color: #8b5cf6;
}

.instruction-card p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.command-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.command-box code {
  flex: 1;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 1rem;
  color: #10b981;
}

.copy-small-btn {
  background: rgba(139, 92, 246, 0.2);
  border: none;
  padding: 0.5rem;
  border-radius: 6px;
  color: #8b5cf6;
  cursor: pointer;
  transition: all 0.3s;
}

.copy-small-btn:hover {
  background: rgba(139, 92, 246, 0.4);
}

.instruction-divider {
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Permission Status */
.permission-status {
  padding: 1rem 1.5rem;
  border-radius: 10px;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.status-checking {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}

.status-checking i {
  font-size: 1.25rem;
}

.status-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.status-success i {
  font-size: 1.25rem;
}

.status-pending {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

.status-pending i {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Overlay Setup */
.overlay-setup {
  text-align: left;
}

.overlay-url-box {
  margin-bottom: 1.5rem;
}

.overlay-url-box label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.url-input-group {
  display: flex;
  gap: 0.5rem;
}

.url-input-group input {
  flex: 1;
  padding: 0.875rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  color: #10b981;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
}

.btn-copy {
  padding: 0.875rem 1.25rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-copy:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.obs-instructions {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.obs-instructions h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.obs-instructions h4 i {
  color: #8b5cf6;
}

.obs-instructions ol {
  margin: 0;
  padding-left: 1.25rem;
}

.obs-instructions li {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.8;
}

.obs-instructions li strong {
  color: #fff;
}

.obs-preview {
  margin-top: 1.5rem;
  text-align: center;
}

.obs-preview img {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Step Actions */
.step-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-next,
.btn-back,
.btn-finish {
  padding: 0.875rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.btn-next {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #fff;
}

.btn-next:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.btn-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-back,
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
}

.btn-back:hover,
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-finish,
.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
}

.btn-finish:hover,
.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .onboarding-wizard {
    padding: 1.5rem;
  }

  .wizard-header h2 {
    font-size: 1.35rem;
  }

  .wizard-progress {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .progress-line {
    width: 40px;
    margin: 0 0.5rem;
  }

  .progress-step .step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .step-content {
    padding: 1.5rem;
  }

  .step-icon {
    width: 64px;
    height: 64px;
  }

  .step-icon i {
    font-size: 2rem;
  }

  .step-content h3 {
    font-size: 1.25rem;
  }

  .permission-instructions {
    gap: 0.75rem;
  }

  .url-input-group {
    flex-direction: column;
  }

  .btn-copy {
    justify-content: center;
  }

  .step-actions {
    flex-direction: column;
  }

  .btn-next,
  .btn-back,
  .btn-finish {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   MODAL PERSONALIZADO DO ONBOARDING
   ======================================== */

.onboarding-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.onboarding-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.onboarding-modal {
  background: linear-gradient(135deg, #1e1e1e 0%, #171717 100%);
  border-radius: 16px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 2rem;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.onboarding-modal-overlay.show .onboarding-modal {
  transform: scale(1) translateY(0);
}

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

.onboarding-modal-header .modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.onboarding-modal-header .modal-icon i {
  font-size: 1.5rem;
  color: #fbbf24;
}

.onboarding-modal-header .modal-icon.success {
  background: rgba(16, 185, 129, 0.15);
}

.onboarding-modal-header .modal-icon.success i {
  color: #10b981;
}

.onboarding-modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.onboarding-modal-body {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.onboarding-modal-body code {
  background: rgba(139, 92, 246, 0.2);
  color: #10b981;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: "JetBrains Mono", monospace;
}

.onboarding-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.onboarding-modal-footer .btn-modal {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.onboarding-modal-footer .btn-modal-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.onboarding-modal-footer .btn-modal-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.onboarding-modal-footer .btn-modal-primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #fff;
}

.onboarding-modal-footer .btn-modal-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

/* ========================================
   WIZARD MODAL (Alert Customizado)
   ======================================== */

.wizard-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.wizard-modal {
  background: linear-gradient(145deg, #1f1f1f 0%, #161616 100%);
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.4);
  padding: 0;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(139, 92, 246, 0.15);
  animation: slideIn 0.3s ease;
  overflow: hidden;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.wizard-modal-header {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.1) 100%);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(251, 191, 36, 0.2);
}

.wizard-modal-header i {
  font-size: 2rem;
  color: #fbbf24;
}

.wizard-modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.wizard-modal-body {
  padding: 2rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.7;
}

.wizard-modal-body p {
  margin: 0 0 1.5rem 0;
}

.wizard-modal-body .modal-commands {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.wizard-modal-body .command-option {
  text-align: center;
}

.wizard-modal-body .command-option span {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.wizard-modal-body .command-option code {
  display: block;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(109, 40, 217, 0.2) 100%);
  color: #10b981;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 1.1rem;
  font-weight: 600;
  border: 1px solid rgba(139, 92, 246, 0.3);
  margin: 0.5rem 0;
}

.wizard-modal-body .or-text {
  color: rgba(255, 255, 255, 0.4) !important;
  font-style: italic;
  margin: 0.75rem 0 !important;
}

.wizard-modal-footer {
  padding: 1.25rem 2rem 1.5rem;
  display: flex;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
}

.wizard-modal-footer .btn {
  min-width: 160px;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.wizard-modal-footer .btn-primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.wizard-modal-footer .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

/* ========================================
   MELHORIAS DE DESIGN DO WIZARD
   ======================================== */

/* Ícone de robô no Step 1 */
.step-icon.robot {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(109, 40, 217, 0.15) 100%);
  border-color: rgba(139, 92, 246, 0.4);
}

.step-icon.robot i {
  color: #a78bfa;
}

.step-description {
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 1.05rem !important;
  line-height: 1.7 !important;
}

/* Card de ativação do bot */
.activation-card {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(109, 40, 217, 0.05) 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.activation-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bot-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.bot-avatar i {
  font-size: 2rem;
  color: #fff;
}

.bot-info {
  flex: 1;
}

.bot-info h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem 0;
}

.bot-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.bot-status i {
  font-size: 1.1rem;
}

.activation-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem 1.5rem;
  border-radius: 12px;
}

.toggle-label {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.step-info.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

/* Card de status de permissões */
.permission-status-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  margin: 1.5rem 0;
}

.permission-status-card > div {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.permission-status-card > div[style*="flex"] {
  display: flex;
}

.status-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.status-icon i {
  font-size: 2rem;
}

.status-icon.loading {
  background: rgba(251, 191, 36, 0.15);
  border: 2px solid rgba(251, 191, 36, 0.3);
}

.status-icon.loading i {
  color: #fbbf24;
}

.status-icon.success {
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid rgba(16, 185, 129, 0.3);
}

.status-icon.success i {
  color: #10b981;
}

.status-icon.pending {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.status-icon.pending i {
  color: rgba(255, 255, 255, 0.5);
}

.status-text {
  flex: 1;
}

.status-text h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem 0;
}

.status-text p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.btn-check {
  width: 100%;
  margin-top: 1.5rem;
}

/* Overlay URL Card */
.overlay-url-card {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(109, 40, 217, 0.05) 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.overlay-url-card .card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: #a78bfa;
  font-weight: 600;
}

.overlay-url-card .card-header i {
  font-size: 1.5rem;
}

.url-input {
  background: rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  padding: 0.875rem 1rem !important;
  border-radius: 8px !important;
  font-family: "JetBrains Mono", monospace !important;
  font-size: 0.9rem !important;
}

/* OBS Instructions Card */
.obs-instructions-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
}

.instructions-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.obs-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.obs-icon i {
  font-size: 1.5rem;
  color: #10b981;
}

.instructions-header h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.instructions-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.instruction-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.instruction-step:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(4px);
}

.instruction-step.highlight {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.instruction-step.highlight .step-num {
  background: #8b5cf6;
  color: #fff;
}

.step-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ===== NOVO DESIGN INTUITIVO DOS CARDS DE COMANDO ===== */
.commands-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 colunas fixas, lado a lado */
  gap: 1.5rem;
  margin: 1.5rem 0;
}

/* Responsivo: empilha em telas menores */
@media (max-width: 1024px) {
  .commands-grid {
    grid-template-columns: 1fr; /* 1 coluna em telas menores */
  }
}

.command-card {
  background: var(--bg-secondary);
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 2rem 1.75rem; /* Aumentado de 1.5rem */
  display: flex;
  flex-direction: column; /* MUDANÇA: vertical ao invés de horizontal */
  gap: 1.25rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.command-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.command-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
}

.command-card:hover::before {
  opacity: 1;
}

/* Header do card com ícone e título */
.command-header-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.command-icon-wrapper {
  flex-shrink: 0;
}

.command-icon {
  width: 52px; /* Reduzido de 64px */
  height: 52px; /* Reduzido de 64px */
  border-radius: 12px; /* Reduzido de 14px */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem; /* Reduzido de 2rem */
  position: relative;
}

.command-icon.image-icon {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(168, 85, 247, 0.25));
  color: #a78bfa;
}

.command-icon.gif-icon {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(74, 222, 128, 0.25));
  color: #4ade80;
}

.command-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.command-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.command-title-row h3 {
  font-size: 1.2rem; /* Aumentado de 1.1rem */
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

.command-trigger {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  padding: 0.4rem 0.85rem; /* Aumentado de 0.35rem 0.75rem */
  border-radius: 8px;
  font-family: "Courier New", monospace;
  font-size: 0.9rem; /* Aumentado de 0.85rem */
  font-weight: 600;
  white-space: nowrap;
}

.command-usage {
  flex: 1;
  min-width: 0; /* Permite que o flex funcione corretamente */
  width: 100%; /* Ocupa toda largura disponível */
}

.usage-example {
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* Aumentado de 0.6rem */
}

.usage-example .label {
  font-size: 0.875rem; /* Aumentado de 0.8rem */
  color: var(--text-secondary);
  font-weight: 500;
}

.usage-example code {
  background: rgba(0, 0, 0, 0.3);
  color: #e0e0e0;
  padding: 1rem 1.25rem; /* Aumentado de 0.85rem 1rem */
  border-radius: 8px;
  font-family: "Courier New", monospace;
  font-size: 0.925rem; /* Aumentado de 0.85rem */
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.05);
  word-wrap: break-word;
  white-space: normal; /* Permite quebra de linha se necessário */
  line-height: 1.6; /* Adicionado para melhor espaçamento de linha */
  width: 100%; /* Garante que ocupe toda largura */
}

.command-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem; /* Aumentado de 0.5rem */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%; /* Ocupa toda largura */
}

.limit-info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
}

.limit-info.limited {
  background: rgba(251, 146, 60, 0.1);
  color: #fb923c;
}

.limit-info.unlimited {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
}

.limit-info i {
  font-size: 1rem;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem; /* Aumentado de 0.8rem */
  font-weight: 600;
  padding: 0.35rem 0.75rem; /* Aumentado padding */
  border-radius: 6px;
}

.status-badge.active {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.status-badge.disabled {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

/* ===== SEÇÃO DE PERMISSÕES REDESENHADA ===== */
.permission-section {
  margin: 2rem 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.section-title i {
  font-size: 1.4rem; /* Reduzido de 1.5rem */
  color: var(--primary-light);
}

.section-title h4 {
  font-size: 1.2rem; /* Aumentado de 1.1rem */
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.permission-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-secondary);
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.permission-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.permission-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.05);
  transform: translateX(4px);
}

.permission-card.selected {
  border-color: var(--primary-color);
  background: rgba(139, 92, 246, 0.1);
}

.permission-icon {
  width: 44px; /* Reduzido de 48px */
  height: 44px; /* Reduzido de 48px */
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.permission-icon i {
  font-size: 1.35rem; /* Reduzido de 1.5rem */
  color: #a78bfa;
}

.permission-card.selected .permission-icon {
  background: var(--primary-color);
}

.permission-card.selected .permission-icon i {
  color: white;
}

.permission-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.permission-text strong {
  font-size: 1.05rem; /* Aumentado de 0.95rem */
  color: var(--text-color);
  font-weight: 600;
}

.permission-text span {
  font-size: 0.875rem; /* Aumentado de 0.8rem */
  color: var(--text-secondary);
}

.check-indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.permission-card.selected .check-indicator {
  opacity: 1;
  background: var(--primary-color);
}

.check-indicator i {
  color: white;
  font-size: 0.9rem;
}

/* ===== SEÇÃO DE OVERLAY REDESENHADA ===== */
.overlay-section {
  margin: 2rem 0;
  background: var(--bg-secondary);
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1.75rem;
}

.overlay-title {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.title-icon {
  width: 48px; /* Reduzido de 52px */
  height: 48px; /* Reduzido de 52px */
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(168, 85, 247, 0.25));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.title-icon i {
  font-size: 1.6rem; /* Reduzido de 1.75rem */
  color: #a78bfa;
}

.overlay-title h3 {
  font-size: 1.25rem; /* Aumentado de 1.15rem */
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 0.35rem 0;
}

.overlay-title p {
  font-size: 0.925rem; /* Aumentado de 0.85rem */
  color: var(--text-secondary);
  margin: 0;
}

.overlay-url-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.url-display {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.url-display i {
  font-size: 1.2rem; /* Reduzido de 1.25rem */
  color: var(--primary-light);
  flex-shrink: 0;
}

.url-display input {
  flex: 1;
  background: transparent;
  border: none;
  color: #e0e0e0;
  font-family: "Courier New", monospace;
  font-size: 0.9rem; /* Aumentado de 0.85rem */
  outline: none;
}

.url-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-copy,
.btn-regenerate {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem; /* Aumentado de 0.9rem */
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-copy {
  background: var(--primary-color);
  color: white;
}

.btn-copy:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

.btn-regenerate {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-color);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-regenerate:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-copy i,
.btn-regenerate i {
  font-size: 1.1rem;
}

.obs-config-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  border-left: 3px solid #3b82f6;
  border-radius: 8px;
  margin-top: 1rem;
}

.obs-config-info i {
  font-size: 1.15rem; /* Reduzido de 1.25rem */
  color: #60a5fa;
  flex-shrink: 0;
}

.obs-config-info span {
  font-size: 0.925rem; /* Aumentado de 0.85rem */
  color: rgba(255, 255, 255, 0.9);
}

.obs-config-info strong {
  color: #60a5fa;
}

/* ===== OVERLAY MINI STYLES ===== */
.overlay-type-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(139, 92, 246, 0.1);
  border-left: 3px solid var(--primary-color);
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.overlay-type-header i {
  font-size: 1.3rem;
  color: var(--primary-light);
}

.overlay-type-label {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
}

.badge-new {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.overlay-url-box.overlay-mini {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
}

.url-actions-global {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.url-actions-global .btn-regenerate {
  padding: 0.875rem 1.5rem;
  font-size: 0.95rem;
}

/* ===== PERSONALIZAÇÃO DE OVERLAY PREMIUM ===== */
.overlay-customization-premium {
  margin-top: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(59, 130, 246, 0.08));
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
}

.premium-badge-section {
  margin-bottom: 2rem;
}

.badge-premium {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 12px;
  margin-left: 0.5rem;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.customization-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.customization-controls {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.control-group {
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.control-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.control-label i {
  font-size: 1.2rem;
  color: var(--primary-light);
}

/* Opções de Transição */
.transition-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.transition-option {
  position: relative;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.transition-option:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.transition-option.selected {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.transition-preview {
  width: 50px;
  height: 50px;
  margin: 0 auto 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.2);
  border-radius: 8px;
}

.transition-preview i {
  font-size: 1.8rem;
  color: var(--primary-light);
}

.transition-option span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-color);
  font-weight: 500;
}

.option-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.2rem 0.5rem;
  background: var(--primary-color);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 6px;
}

.option-badge.default {
  background: #10b981;
}

/* Grid de Posições */
.position-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.position-btn {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-secondary);
}

.position-btn:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--primary-color);
}

.position-btn.active {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--primary-color);
  color: var(--primary-light);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.position-btn i {
  font-size: 1.5rem;
}

/* Sliders */
.slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.5);
  transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
  background: var(--primary-light);
  transform: scale(1.2);
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.5);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Preview */
.customization-preview {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-header i {
  font-size: 1.2rem;
  color: var(--primary-light);
}

.preview-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-overlay {
  position: absolute;
  width: 150px;
  height: 150px;
  bottom: 20px;
  right: 20px;
  opacity: 0;
  transition: all 0.3s ease;
}

/* Posições do Preview */
.preview-overlay.pos-top-left {
  top: 20px;
  left: 20px;
  bottom: auto;
  right: auto;
}
.preview-overlay.pos-top-center {
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  bottom: auto;
  right: auto;
}
.preview-overlay.pos-top-right {
  top: 20px;
  right: 20px;
  bottom: auto;
  left: auto;
}
.preview-overlay.pos-middle-left {
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  bottom: auto;
  right: auto;
}
.preview-overlay.pos-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  bottom: auto;
  right: auto;
}
.preview-overlay.pos-middle-right {
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  bottom: auto;
  left: auto;
}
.preview-overlay.pos-bottom-left {
  bottom: 20px;
  left: 20px;
  top: auto;
  right: auto;
}
.preview-overlay.pos-bottom-center {
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  top: auto;
  right: auto;
}
.preview-overlay.pos-bottom-right {
  bottom: 20px;
  right: 20px;
  top: auto;
  left: auto;
}

.preview-overlay.animate {
  opacity: 1;
}

.preview-image {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-test-btn {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.preview-test-btn:hover {
  background: var(--primary-dark);
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.preview-test-btn i {
  font-size: 1.2rem;
}

/* Animações de Preview */
.preview-overlay.leaf-fall {
  animation: previewLeafFall 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.preview-overlay.fade {
  animation: previewFade 0.6s ease forwards;
}

.preview-overlay.slide-left {
  animation: previewSlideLeft 0.6s ease forwards;
}

.preview-overlay.slide-right {
  animation: previewSlideRight 0.6s ease forwards;
}

.preview-overlay.zoom {
  animation: previewZoom 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.preview-overlay.bounce {
  animation: previewBounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes previewLeafFall {
  0% {
    opacity: 0;
    transform: translateY(-150%) rotateZ(25deg) scale(0.3);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateZ(0deg) scale(1);
  }
}

@keyframes previewFade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes previewSlideLeft {
  0% {
    opacity: 0;
    transform: translateX(150%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes previewSlideRight {
  0% {
    opacity: 0;
    transform: translateX(-150%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes previewZoom {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes previewBounce {
  0% {
    opacity: 0;
    transform: translateY(-200%) scale(0.8);
  }
  60% {
    transform: translateY(10%) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsivo */
@media (max-width: 1200px) {
  .customization-grid {
    grid-template-columns: 1fr;
  }

  .transition-options {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================================
 * OVERLAY PRINCIPAL - Simulação Preview
 * ============================================================================ */

.overlay-principal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.overlay-principal-preview .preview-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  font-weight: 500;
  color: var(--text-color);
}

.overlay-principal-preview .preview-header i {
  font-size: 1.2rem;
  color: var(--primary-color);
}

.overlay-principal-preview .preview-screen-principal {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.overlay-principal-preview .preview-screen-principal img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.overlay-principal-preview .preview-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
}

.overlay-principal-preview .preview-controls-principal {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.overlay-principal-preview .preview-controls-principal .btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.overlay-principal-preview .badge {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Responsivo para overlay principal */
@media (max-width: 1200px) {
  .overlay-principal-grid {
    grid-template-columns: 1fr;
  }

  .overlay-principal-preview {
    order: -1;
  }
}

@media (max-width: 768px) {
  .overlay-principal-preview .preview-header {
    flex-wrap: wrap;
  }

  .overlay-principal-preview .preview-info {
    width: 100%;
    justify-content: flex-start;
    margin-top: 10px;
  }
}

/* ============================================================================
 * OVERLAY PRINCIPAL - Preview Fullscreen Style (igual ao Mini)
 * ============================================================================ */

.preview-screen-fullscreen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
  border-radius: 8px;
  overflow: hidden;
}

.preview-fullscreen-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 0.6s ease;
}

.preview-overlay-info {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.preview-badge.transition-badge {
  background: var(--primary-color);
  color: white;
}

.preview-badge.time-badge {
  background: rgba(0, 0, 0, 0.6);
  color: white;
}

.preview-simulation-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

.preview-simulation-controls .btn-sm {
  padding: 6px 16px;
  font-size: 0.85rem;
}

.preview-hint {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Animações de transição para o preview fullscreen */
.preview-fullscreen-image.fade-in {
  animation: previewFadeIn 0.6s ease forwards;
}

.preview-fullscreen-image.fade-out {
  animation: previewFadeOut 0.6s ease forwards;
}

.preview-fullscreen-image.slide-up-in {
  animation: previewSlideUpIn 0.6s ease forwards;
}

.preview-fullscreen-image.slide-up-out {
  animation: previewSlideUpOut 0.6s ease forwards;
}

.preview-fullscreen-image.slide-down-in {
  animation: previewSlideDownIn 0.6s ease forwards;
}

.preview-fullscreen-image.slide-down-out {
  animation: previewSlideDownOut 0.6s ease forwards;
}

.preview-fullscreen-image.zoom-in {
  animation: previewZoomIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.preview-fullscreen-image.zoom-out {
  animation: previewZoomOut 0.6s ease forwards;
}

.preview-fullscreen-image.flip-in {
  animation: previewFlipIn 0.6s ease forwards;
}

.preview-fullscreen-image.flip-out {
  animation: previewFlipOut 0.6s ease forwards;
}

.preview-fullscreen-image.bounce-in {
  animation: previewBounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.preview-fullscreen-image.bounce-out {
  animation: previewBounceOut 0.6s ease forwards;
}

@keyframes previewFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes previewFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes previewSlideUpIn {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes previewSlideUpOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-100%);
  }
}

@keyframes previewSlideDownIn {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes previewSlideDownOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(100%);
  }
}

@keyframes previewZoomIn {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes previewZoomOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0);
  }
}

@keyframes previewFlipIn {
  from {
    opacity: 0;
    transform: perspective(1000px) rotateY(-90deg);
  }
  to {
    opacity: 1;
    transform: perspective(1000px) rotateY(0deg);
  }
}

@keyframes previewFlipOut {
  from {
    opacity: 1;
    transform: perspective(1000px) rotateY(0deg);
  }
  to {
    opacity: 0;
    transform: perspective(1000px) rotateY(90deg);
  }
}

@keyframes previewBounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes previewBounceOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.3);
  }
}

/* Swing transition */
.preview-fullscreen-image.swing-in {
  animation: previewSwingIn 0.8s ease forwards;
  transform-origin: top center;
}

.preview-fullscreen-image.swing-out {
  animation: previewSwingOut 0.6s ease forwards;
  transform-origin: top center;
}

@keyframes previewSwingIn {
  0% {
    opacity: 0;
    transform: rotate3d(0, 0, 1, -60deg);
  }
  20% {
    transform: rotate3d(0, 0, 1, 25deg);
  }
  40% {
    transform: rotate3d(0, 0, 1, -10deg);
  }
  60% {
    transform: rotate3d(0, 0, 1, 5deg);
  }
  80% {
    transform: rotate3d(0, 0, 1, -2deg);
  }
  100% {
    opacity: 1;
    transform: rotate3d(0, 0, 1, 0deg);
  }
}

@keyframes previewSwingOut {
  from {
    opacity: 1;
    transform: rotate3d(0, 0, 1, 0deg);
  }
  to {
    opacity: 0;
    transform: rotate3d(0, 0, 1, 60deg);
  }
}

/* Scale transition */
.preview-fullscreen-image.scale-in {
  animation: previewScaleIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.preview-fullscreen-image.scale-out {
  animation: previewScaleOut 0.5s ease forwards;
}

@keyframes previewScaleIn {
  from {
    opacity: 0;
    transform: scale(1.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes previewScaleOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.5);
  }
}

/* ============================================
   CONFIGURAÇÃO DE SOM DE NOTIFICAÇÃO
   ============================================ */

.sound-config-section {
  background: rgba(138, 43, 226, 0.05);
  border: 1px solid rgba(138, 43, 226, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}

.sound-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sound-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sound-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--text-color);
}

.sound-label i {
  font-size: 1.2rem;
  color: var(--primary-color);
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: 0.3s;
  border-radius: 26px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 2px;
  background-color: #fff;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-color: transparent;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* Sound Options Panel */
.sound-options {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sound-type-selector label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-color-secondary);
}

.sound-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}

.sound-option {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.sound-option:hover {
  background: rgba(138, 43, 226, 0.1);
  border-color: rgba(138, 43, 226, 0.3);
}

.sound-option.selected {
  background: rgba(138, 43, 226, 0.15);
  border-color: var(--primary-color);
}

.sound-option i {
  font-size: 1.5rem;
  color: var(--text-color-secondary);
  display: block;
  margin-bottom: 6px;
}

.sound-option.selected i {
  color: var(--primary-color);
}

.sound-option span {
  font-size: 0.8rem;
  color: var(--text-color-secondary);
  display: block;
}

.sound-option.selected span {
  color: var(--text-color);
}

.btn-preview-sound {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(138, 43, 226, 0.3);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.btn-preview-sound:hover {
  background: var(--primary-color);
  transform: scale(1.1);
}

.btn-preview-sound i {
  font-size: 0.9rem;
  color: #fff;
  margin: 0;
}

/* Volume Control */
.sound-volume-control {
  margin-top: 16px;
}

.sound-volume-control label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-color-secondary);
}

.sound-volume-control label i {
  font-size: 1.1rem;
}

.sound-volume-control #sound-volume-value {
  color: var(--primary-color);
  font-weight: 600;
}

/* Ocultar overflow */
html,
body {
  overflow-x: hidden;
}

.main-content section + section {
  margin-top: 0;
}

/* ===== RESPONSIVIDADE DASHBOARD-STATS ===== */
@media (max-width: 1024px) {
  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .stat-card {
    padding: 1rem;
  }
  
  .stat-icon {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.7rem;
  }
}

/* ================================================================================
   OTIMIZAÇÕES MOBILE - DASHBOARD CARDS
   ================================================================================ */

/* ===== ATIVIDADE RECENTE - MOBILE ===== */
@media (max-width: 768px) {
  /* Reduzir gap e padding para mobile */
  .activity-list {
    gap: 0.375rem;
  }

  /* Activity items mais compactos no mobile */
  .activity-item {
    padding: 0.75rem;
    align-items: flex-start;
  }

  /* Ícone menor em mobile (36px ao invés de 48px) */
  .activity-icon {
    width: 36px;
    height: 36px;
    margin-right: 0.75rem;
    border-radius: 8px;
  }

  /* Texto da atividade menor e mais legível */
  .activity-description {
    font-size: 0.85rem;
    line-height: 1.35;
    gap: 0.25rem;
  }

  .activity-time {
    font-size: 0.7rem;
    margin-bottom: 0.2rem;
  }

  .activity-prompt {
    font-size: 0.8rem;
    margin-top: 0.2rem;
    line-height: 1.25;
  }
}

@media (max-width: 480px) {
  /* Ainda mais compacto em telas pequenas */
  .activity-item {
    padding: 0.625rem;
    gap: 0.625rem;
  }

  .activity-icon {
    width: 32px;
    height: 32px;
    margin-right: 0.5rem;
  }

  .activity-icon i {
    font-size: 1rem;
  }

  .activity-description {
    font-size: 0.8rem;
  }

  .activity-time {
    font-size: 0.65rem;
  }

  .activity-prompt {
    font-size: 0.75rem;
  }
}

/* ===== CARROSSEL FAVORITOS - MOBILE ===== */
@media (max-width: 768px) {
  /* Reduzir altura do carrossel para melhor proporção */
  .carousel-container {
    height: 240px;
  }

  /* Card de favorito mais compacto */
  .favorite-card {
    max-width: 100%;
  }

  .favorite-info {
    padding: 0.875rem;
  }

  .favorite-title {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
  }

  .favorite-stats {
    font-size: 0.75rem;
  }

  /* Botão de visualização menor */
  .favorite-view-btn {
    width: 40px;
    height: 40px;
  }

  .favorite-view-btn i {
    font-size: 1rem;
  }

  /* Reduzir espaçamento dos botões de navegação */
  .carousel-btn {
    width: 36px;
    height: 36px;
  }

  .carousel-btn i {
    font-size: 1rem;
  }

  .carousel-prev {
    left: 0.5rem;
  }

  .carousel-next {
    right: 0.5rem;
  }

  /* Dots menores */
  .carousel-dots {
    gap: 0.375rem;
    padding: 0.75rem;
  }

  .carousel-dot {
    width: 6px;
    height: 6px;
  }

  .carousel-dot.active {
    width: 16px;
  }
}

@media (max-width: 480px) {
  /* Carrossel ainda mais reduzido em mobile pequeno */
  .carousel-container {
    height: 200px;
  }

  .carousel-slide {
    padding: 0.625rem;
  }

  .favorite-card {
    border-radius: 8px;
  }

  .favorite-info {
    padding: 0.75rem;
  }

  .favorite-title {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
  }

  .favorite-stats {
    font-size: 0.7rem;
  }

  .favorite-likes i {
    font-size: 0.75rem;
  }

  .carousel-btn {
    width: 32px;
    height: 32px;
    opacity: 0.8;
  }

  .carousel-btn:hover {
    opacity: 1;
  }

  .carousel-prev {
    left: 0.375rem;
  }

  .carousel-next {
    right: 0.375rem;
  }

  .carousel-dots {
    gap: 0.25rem;
    padding: 0.625rem;
  }

  .carousel-dot {
    width: 5px;
    height: 5px;
  }

  .carousel-dot.active {
    width: 14px;
  }
}

/* ===== COMANDOS PERSONALIZADOS - MOBILE ===== */
@media (max-width: 768px) {
  /* Ajustar layout dos comandos para mobile */
  .commands-list {
    gap: 0.625rem;
  }

  .command-item {
    padding: 0.875rem;
  }

  /* Mudar para layout vertical em mobile */
  .command-trigger {
    padding: 0.375rem 0.625rem;
    font-size: 0.85rem;
    min-width: auto;
    margin-right: 0;
    margin-bottom: 0.5rem;
    word-break: break-word;
  }

  .command-description {
    font-size: 0.85rem;
    order: 2;
  }

  .command-actions {
    margin-left: 0;
    margin-top: 0.625rem;
    justify-content: flex-start;
    order: 3;
  }

  .command-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }

  .command-status i {
    font-size: 0.85rem;
  }

  .command-disabled {
    opacity: 0.65;
  }

  /* Botão de adicionar comando ajustado */
  .add-command {
    margin-top: 0.875rem;
  }

  .btn.btn-outline {
    font-size: 0.85rem;
    padding: 0.625rem 1rem;
  }
}

@media (max-width: 480px) {
  /* Comandos ainda mais compactos em telas muito pequenas */
  .command-item {
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .command-trigger {
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
    margin-bottom: 0.375rem;
  }

  .command-description {
    font-size: 0.8rem;
    line-height: 1.25;
  }

  .command-actions {
    margin-top: 0.5rem;
  }

  .command-status {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }

  .add-command {
    margin-top: 0.75rem;
  }

  .btn.btn-outline {
    font-size: 0.8rem;
    padding: 0.5rem 0.875rem;
  }
}

/* ===== GERAL - MOBILE ===== */
@media (max-width: 768px) {
  /* Card header mais compacto */
  .dashboard-card .card-header {
    padding: 1rem 1rem 0.75rem 1rem;
  }

  .dashboard-card .card-header h2 {
    font-size: 0.95rem;
  }

  .view-all {
    font-size: 0.75rem;
  }

  /* Card content padding reduzido */
  .dashboard-card .card-content {
    padding: 0.75rem;
  }
}

@media (max-width: 480px) {
  /* Ainda mais compacto em mobile pequeno */
  .dashboard-card {
    margin-bottom: 0.875rem;
    border-radius: 10px;
  }

  .dashboard-card .card-header {
    padding: 0.875rem 0.875rem 0.625rem 0.875rem;
  }

  .dashboard-card .card-header h2 {
    font-size: 0.9rem;
    gap: 0.5rem;
  }

  .dashboard-card .card-header h2 i {
    font-size: 0.95rem;
  }

  .view-all {
    font-size: 0.7rem;
    font-weight: 500;
  }

  .dashboard-card .card-content {
    padding: 0.625rem;
  }
}

/* ===== FIX: Evitar que textos fiquem na vertical ===== */
@media (max-width: 768px) {
  /* Garantir word-wrap correto em descrições */
  .activity-description,
  .command-description,
  .favorite-title {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* Flexbox correto para não esticar items */
  .activity-item {
    flex-wrap: nowrap;
  }

  .command-item {
    flex-wrap: wrap;
  }

  /* Garantir que conteúdo não vire vertical */
  .activity-content {
    min-width: 0;
    flex-shrink: 1;
  }

  .command-trigger {
    flex-shrink: 0;
  }
}
