/* Reset & Tema Escuro Geral */
body.bg-dark-theme {
  background-color: #212121;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.bg-dark-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(20, 20, 22, 0.80);
  backdrop-filter: blur(10px);
}

.header-logo {
  max-height: 38px;
  width: auto;
}

.btn-inicio-top {
  border-color: #3f3f46;
  color: #e4e4e7;
  border-radius: 20px;
  padding: 6px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-inicio-top:hover {
  background-color: #27272a;
  border-color: #52525b;
  color: #ffffff;
}

/* Main Spacing */
.main-checkout {
  padding-top: 100px;
  padding-bottom: 60px;
}

/* Stepper / Progressbar */.checkout-stepper {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  padding: 0 10px;
}

/* Linha de Fundo (Cinza escura contínua) */
.stepper-track {
  position: absolute;
  top: 19px; /* Alinhado ao centro vertical dos círculos de 38px */
  left: 28px;
  right: 28px;
  height: 3px;
  background-color: #27272a;
  z-index: 1;
  transform: translateY(-50%);
}

/* Barra de Progresso Gradiente que preenche */
.stepper-bar {
  position: absolute;
  top: 19px;
  left: 28px;
  right: 28px;
  height: 3px;
  z-index: 2;
  transform: translateY(-50%);
  transition: width 0.4s ease-in-out;
  width: 25%; /* Padrão do Passo 1 */
}

/* Gradiente bonito Roxo -> Rosa -> Coral */
.stepper-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #635bff 0%, #a855f7 50%, #f43f5e 100%);
  border-radius: 3px;
}

/* Círculos do Stepper */
.step-item {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  line-height: 1;
}

.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #1c1c20;
  border: 1px solid #3f3f46;
  color: #71717a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

/* Passo Ativo */
.step-item.active .step-circle {
  background: linear-gradient(135deg, #635bff 0%, #a855f7 100%);
  border: none;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.4);
}

/* Passo Concluído (com ícone de Check) */
.step-item.completed .step-circle {
  background: linear-gradient(135deg, #635bff 0%, #f43f5e 100%);
  border: none;
  color: #ffffff;
}

.step-title {
  font-size: 0.8rem;
  color: #71717a;
  margin-top: 8px;
  font-weight: 500;
}

.step-item.active .step-title,
.step-item.completed .step-title {
  color: #ffffff;
  font-weight: 600;
}

/* Cards de Planos */
.plan-card {
  background-color: #18181b;
  border: 1px solid #27272a;
  border-radius: 20px;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  height: 100%;
}

.plan-card:hover {
  transform: translateY(-4px);
  border-color: #52525b;
}

.plan-card.selected {
  border-color: #635bff;
  box-shadow: 0 0 20px rgba(99, 91, 255, 0.35);
}

.plan-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

/* Badge Anual Recomendado */
.recommended-card {
  border-color: #3f3f46;
}

.recommended-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  color: #000000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Caixa Interna de Preço */
.plan-price-box {
  background-color: #22222a;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  margin-top: 8px;
  margin-bottom: 20px;
}

.plan-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #e4e4e7;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.plan-price {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.plan-subprice {
  font-size: 0.8rem;
  color: #a1a1aa;
  margin-top: 6px;
}

.plan-subtitle {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 12px;
}

.plan-divider {
  border-color: #27272a;
  margin: 12px 0 20px 0;
  opacity: 0.6;
}

/* Lista de Recursos */
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  flex-grow: 1;
}

.plan-features li {
  font-size: 0.875rem;
  color: #d4d4d8;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  line-height: 1.4;
}

.plan-features li i {
  color: #a855f7;
  font-weight: bold;
  margin-right: 10px;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Botão Roxo (CTA) */
.btn-purple-cta {
  border-radius: 150px;
  background: #6228E1;
  color: #FFF;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  padding: 12px 20px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(99, 91, 255, 0.3);
}

.btn-purple-cta:hover {
  border: 1px solid rgba(255, 255, 255, 0.50);
  background: #6228E1;
  box-shadow: 0 0 16.6px 0 #6228E1;
  color: #ffffff;
}

.btn-purple-cta.desabilitado,
.btn-purple-cta.desabilitado:hover,
.btn-purple-cta.desabilitado:focus,
.btn-purple-cta.desabilitado:active {
  border: 1px solid rgba(255, 255, 255, 0.50);
  background: rgba(255, 255, 255, 0.10);
  box-shadow: unset;
  color: #FFF;
  cursor: not-allowed;
}

.btn-cancelar {
  border-radius: 150px;
  background: transparent;
  color: #FFF;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  padding: 12px 20px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.btn-cancelar:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
}

.link-channels {
  color: #a1a1aa;
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s;
}

.link-channels:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Caixa de Cupom */
.coupon-box {
  background-color: #18181b;
  border: 1px solid #27272a;
}

.coupon-input {
  background-color: #09090b;
  border: 1px solid #27272a;
  color: #ffffff;
  border-radius: 8px 0 0 8px;
}


.coupon-input::placeholder {
  color: rgba(255, 255, 255, 0.60);
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.coupon-input:focus {
  background-color: #09090b;
  color: #ffffff;
  border-color: #635bff;
  box-shadow: none;
}

.btn-apply {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.20);
  font-weight: 600;
  padding: 0 20px;
  border-radius: 0 20px 20px 0;
  transition: all 0.5s;
}

.btn-apply:hover {
  background-color: #3f3f46;
  color: #ffffff;
}

.coupon-section .coupon-input {
  border-radius: 20px 0 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.05);
}

.coupon-message, .general-message {
  margin-top: 10px;
  font-size: 0.85rem;
}

/* Footer */
.footer-logos {
  border-top: 1px solid #FFF;
}

.footer-dark {
  background-color: #09090b;
  border-top: 1px solid #1f1f23;
}

.footer-logo {
  max-height: 28px;
}

.app-badge {
  height: 36px;
  width: auto;
}

.footer-links a {
  color: #a1a1aa;
  text-decoration: none;
  font-size: 0.85rem;
  margin-right: 15px;
  cursor: pointer;
}

.footer-links a:hover {
  color: #ffffff;
}

.modal-body-scroll {
  max-height: 60vh;
  overflow-y: auto;
  font-size: 0.875rem;
  color: #d4d4d8;
}

.selected-plan-box {
  background-color: #18181b;
  border: 1px solid #27272a;
  transition: all 0.3s ease;
}

#containerGridPlanos, #containerPlanoSelecionado {
  transition: opacity 0.3s ease-in-out;
}

.dark-input-pill {
  background-color: #222226;
  border: 1px solid #333338;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  width: 100%;
}

.dark-input-pill:focus {
  background-color: #222226;
  color: #ffffff;
  border-color: #635bff;
  box-shadow: 0 0 0 0.25rem rgba(99, 91, 255, 0.25);
  outline: none;
}

.dark-input-pill::placeholder {
  color: #71717a;
}

/* Estado desabilitado / somente leitura do e-mail */
.dark-input-pill[readonly] {
  background-color: #8c8c8c;
  color: #121214;
  border-color: #8c8c8c;
  font-weight: 500;
}

/* Ícone de Sucesso dentro do Input de E-mail */
.email-success-badge {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #10b981;
  font-size: 1.1rem;
  display: none;
}

/* Containers Flex sem !important para o jQuery .hide() funcionar corretamente */
.btn-flex-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-flex-gap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Botão de Cancelar / Voltar em texto simples */
.btn-cancelar-link {
  color: #a1a1aa;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
  background: transparent;
  border: none;
  padding: 0;
}

.btn-cancelar-link:hover {
  color: #ffffff;
}

/* Customização do Checkbox */
.form-check-input-custom {
  background-color: transparent;
  border: 1px solid #52525b;
  border-radius: 4px;
  width: 1.1em;
  height: 1.1em;
  margin-top: 0.15em;
  cursor: pointer;
}

.form-check-input-custom:checked {
  background-color: #635bff;
  border-color: #635bff;
}

/* --- ESTILOS PARA O PASSO 3 (PAGAMENTO) --- */

/* Accordions de Método de Pagamento */
.payment-method-box {
  background-color: #222226;
  border: 1px solid #333338;
  border-radius: 30px;
  padding: 16px 22px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.payment-method-box:hover {
  border-color: #52525b;
}

.payment-method-box.active-method {
  border-color: #635bff;
}

.payment-method-box input[type="radio"] {
  accent-color: #635bff;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Card de Resumo (Coluna Direita) */
.summary-card-box {
  background: rgba(0, 0, 0, 0.80);
  border-radius: 24px;
}

.summary-plan-preview {
  background-color: #222226;
  border-radius: 16px;
  padding: 18px 20px;
}

/* Botão Voltar Secundário (Abaixo do botão de pagamento) */
.btn-dark-pill {
  background-color: #27272a;
  color: #e4e4e7;
  font-weight: 600;
  border-radius: 25px;
  padding: 12px 20px;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  display: block;
  text-align: center;
}

.btn-dark-pill:hover {
  background-color: #3f3f46;
  color: #ffffff;
}

/* Inputs de data mês/ano juntos sem quebrar os IDs */
.exp-date-group {
  display: flex;
  align-items: center;
  background-color: #222226;
  border: 1px solid #333338;
  border-radius: 30px;
  padding: 0 16px;
}

.exp-date-group input {
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  text-align: center;
  padding: 12px 0 !important;
  box-shadow: none !important;
}

.exp-date-group span {
  color: #71717a;
  font-weight: bold;
}

.text-muted {
    color: rgb(255 255 255 / 75%) !important;
}

.modal-black .modal-content {
  border-radius: 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.20);
  background: rgba(0, 0, 0, 0.60);
  backdrop-filter: blur(10px);
}

.modal-black .modal-content .modal-title {
  background: linear-gradient(90deg, #FFF 0%, rgba(255, 255, 255, 0.60) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-black .modal-content .modal-header {
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.20);
  justify-content: space-between;
}

.modal-black .modal-content .modal-header button {
  border-radius: 150px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  color: #FFF;
}

.modal-black .modal-content .modal-header button:hover {
  opacity: 0.6;
}

.modal-black ::-webkit-scrollbar {
  width: 5px;
}

.modal-black ::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.modal-black ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.modal-black ::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}
/* --- GRID DOS CANAIS --- */
.modal-black .modal-body {
  padding: 25px;
}

/* DESKTOP: 5 por linha, cards quadrados */
.modal-black .channels-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px; /* espaço entre os cards */
}

.modal-black .channel-card {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;   /* mantém quadrado */
  height: auto;          /* NÃO força altura fixa */
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
  transition: 0.2s;
}

.modal-black .channel-card:hover {
  background: rgba(255, 255, 255, 0.20);
  transform: translateY(-2px);
}

/* logo bem grande dentro do card */
.modal-black .channel-card img {
  width: 82%;
  height: 82%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ===== RESPONSIVO ===== */

/* Tablet: 4 por linha */
@media (max-width: 991.98px) {
  .modal-black .channels-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .modal-black .channel-card {
    padding: 6px;
  }

  .modal-black .channel-card img {
    width: 84%;
    height: 84%;
  }
}

/* Mobile: 3 por linha, logo bem grandão */
@media (max-width: 575.98px) {
    .modal-black .channels-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px; /* menor espaçamento */
    }

    .modal-black .channel-card {
        padding: 8px;
        border-radius: 10px;
        height: 95px; /* Aumenta a área útil */
    }

    .modal-black .channel-card img {
        max-width: 95%;
        max-height: 80px; /* AUMENTA O LIMITE REAL */
        width: 95%;
        height: auto;
    }
}


/* --- LOADER BTN ---- */
@-webkit-keyframes ld {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}
@-moz-keyframes ld {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}
@-o-keyframes ld {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}
@keyframes ld {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

.m-progress {
  position: relative;
  opacity: .8;
  color: transparent !important;
  text-shadow: none !important;
}

.m-progress:hover,
.m-progress:active,
.m-progress:focus {
  cursor: default;
  color: transparent;
  outline: none !important;
  box-shadow: none;
}

.m-progress:before {
  content: '';  
  display: inline-block;   
  position: absolute;
  background: transparent;
  border: 1px solid #fff;
  border-top-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;    
  box-sizing: border-box;   
  top: 50%;
  left: 50%;
  margin-top: -12px;
  margin-left: -12px;    
  width: 24px;
  height: 24px;
  -webkit-animation: ld 1s ease-in-out infinite;
  -moz-animation:    ld 1s ease-in-out infinite;
  -o-animation:      ld 1s ease-in-out infinite;
  animation:         ld 1s ease-in-out infinite;
}
