/* PLANS PAGE STYLES */

.plans-container {
  background:
    linear-gradient(180deg, rgba(5, 8, 16, 0.18), rgba(5, 8, 16, 0.88)),
    radial-gradient(ellipse at 50% 36%, rgba(139, 92, 246, 0.2), transparent 58%),
    #060A14;
  min-height: 72svh;
  overflow: hidden;
  padding: 6rem 0 4rem;
  position: relative;
}

.plans-container::before {
  background-image:
    repeating-radial-gradient(ellipse at 14% 4%, rgba(255, 255, 255, 0.14) 0 2px, transparent 3px 42px),
    repeating-radial-gradient(ellipse at 84% 96%, rgba(255, 255, 255, 0.09) 0 2px, transparent 3px 56px);
  content: "";
  inset: -18%;
  opacity: 0.38;
  pointer-events: none;
  position: absolute;
  transform: rotate(-7deg) scale(1.08);
}

.plans-container .container {
  position: relative;
  z-index: 1;
}

.plans-header {
  margin: 0 auto 4rem;
  max-width: 820px;
  text-align: center;
}

.plans-header::before {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.36);
  border-radius: 999px;
  color: #D8CCFF;
  content: "PLANO UNICO";
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 1.3rem;
  padding: 0.45rem 0.9rem;
}

.plans-header h1 {
  color: #F8FAFC;
  font-size: 5.2rem;
  line-height: 0.98;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.plans-header p {
  color: #CBD5E1;
  font-size: 1.16rem;
  margin: 0 auto;
  max-width: 640px;
}

.plans-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin-bottom: 4rem;
}

.plan-card {
  background:
    linear-gradient(180deg, rgba(139, 92, 246, 0.14), rgba(15, 23, 42, 0.88)),
    rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 8px;
  box-shadow: 0 32px 88px rgba(0, 0, 0, 0.38);
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem;
  position: relative;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.plan-card:hover {
  border-color: rgba(196, 181, 253, 0.78);
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.48);
  transform: translateY(-8px);
}

.plan-card.featured {
  border-color: rgba(167, 139, 250, 0.72);
  transform: none;
}

.plan-badge {
  background: linear-gradient(135deg, #A78BFA 0%, #7C3AED 100%);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.38);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  left: 50%;
  padding: 0.55rem 1.4rem;
  position: absolute;
  top: -18px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.plan-name {
  color: #F8FAFC;
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.plan-price {
  color: #A78BFA;
  font-size: 3.5rem;
  font-weight: 950;
  margin-bottom: 0.5rem;
}

.plan-price-period {
  color: #CBD5E1;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.plan-description {
  color: #CBD5E1;
  flex-grow: 1;
  margin-bottom: 2rem;
  min-height: 60px;
}

.plan-features {
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  list-style: none;
  margin-bottom: 2rem;
  padding: 1.5rem 0;
  text-align: left;
}

.plan-features li {
  align-items: flex-start;
  color: #E2E8F0;
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
}

.plan-features li::before {
  color: #10B981;
  content: "+";
  font-weight: 900;
  margin-top: 1px;
  min-width: 20px;
}

.plan-features li.unavailable {
  opacity: 0.5;
}

.plan-features li.unavailable::before {
  color: #64748B;
  content: "-";
}

.plan-button {
  margin-top: auto;
  width: 100%;
}

/* COMPARISON TABLE */

.comparison-section,
.plans-faq {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 8px;
  box-shadow: 0 28px 78px rgba(0, 0, 0, 0.32);
  margin-bottom: 3rem;
  padding: 3rem;
}

.comparison-section h2,
.plans-faq h2 {
  color: #F8FAFC;
  margin-bottom: 2rem;
  text-align: center;
}

.comparison-table {
  border-collapse: collapse;
  width: 100%;
}

.comparison-table th {
  background-color: rgba(139, 92, 246, 0.12);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  color: #F8FAFC;
  font-weight: 800;
  padding: 1rem;
  text-align: left;
}

.comparison-table th:not(:first-child) {
  text-align: center;
}

.comparison-table td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  color: #E2E8F0;
  padding: 1rem;
}

.comparison-table td:first-child {
  font-weight: 700;
}

.comparison-table td:not(:first-child) {
  text-align: center;
}

.comparison-table tr:hover td {
  background-color: rgba(139, 92, 246, 0.08);
}

.comparison-check {
  color: #10B981;
  font-size: 1.2rem;
  font-weight: 900;
}

.comparison-cross {
  color: #64748B;
  font-size: 1.2rem;
  font-weight: 900;
}

/* FAQ SECTION */

#faq {
  background: #080D1A;
  padding: 5rem 0;
}

.faq-item {
  background: rgba(8, 13, 28, 0.62);
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: 8px;
  margin-bottom: 0.85rem;
  padding: 1.15rem 1.25rem;
}

.faq-question {
  align-items: center;
  color: #F8FAFC;
  cursor: pointer;
  display: flex;
  font-weight: 800;
  justify-content: space-between;
  user-select: none;
}

.faq-question:hover {
  color: #C4B5FD;
}

.faq-toggle {
  color: #A78BFA;
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  border-top: 1px solid rgba(167, 139, 250, 0.18);
  color: #CBD5E1;
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
}

.faq-item.active .faq-answer {
  animation: slideDown 0.25s ease;
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVO */

@media (max-width: 1024px) {
  .plan-card.featured {
    transform: none;
  }

  .plans-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .plans-container {
    padding: 4rem 0 3rem;
  }

  .plans-header h1 {
    font-size: 3rem;
  }

  .comparison-section,
  .plans-faq {
    padding: 1.5rem;
  }

  .comparison-table {
    font-size: 0.875rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem;
  }

  .plan-price {
    font-size: 2.6rem;
  }

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

/* Cadastro: card do plano compacto para manter o botao visivel */
.register-page .auth-container {
  align-items: center;
}

.register-page .auth-card {
  max-width: 620px;
  padding: clamp(1rem, 2.6vw, 1.8rem);
}

.register-page .auth-header {
  margin-bottom: 1.15rem;
}

.register-page .auth-header::before {
  margin-bottom: 0.55rem;
  padding: 0.28rem 0.65rem;
}

.register-page .auth-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.35rem);
  margin-bottom: 0.35rem;
}

.register-page .auth-header p {
  margin-top: 0.2rem;
}

.register-page .step-indicator {
  margin-bottom: 1.15rem;
}

.register-plan-section {
  margin-bottom: 1rem;
}

.register-plan-section h3 {
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
}

.register-page .register-plan-grid {
  display: block;
}

.register-page .plan-card {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  height: auto;
  margin: 0 auto;
  max-width: 460px;
  padding: 1.35rem 1.45rem 1.15rem;
}

.register-page .plan-badge {
  font-size: 0.74rem;
  padding: 0.38rem 1rem;
  top: -14px;
}

.register-page .plan-name {
  font-size: 1.18rem;
  margin-bottom: 0.45rem;
}

.register-page .plan-description {
  flex-grow: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0 auto 0.8rem;
  max-width: 330px;
  min-height: 0;
}

.register-page .plan-price {
  font-size: clamp(2rem, 6vw, 2.55rem);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.register-page .plan-price-period {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.register-page .plan-features {
  display: grid;
  gap: 0.35rem 1rem;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 0;
  padding: 0.85rem 0 0;
}

.register-page .plan-features li {
  font-size: 0.88rem;
  gap: 0.45rem;
  line-height: 1.25;
  padding: 0.25rem 0;
}

.register-page .plan-features li::before {
  min-width: 14px;
}

.register-page .form-group {
  margin-bottom: 0.85rem;
}

.register-page .register-buttons {
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .register-page .auth-container {
    align-items: flex-start;
    padding: 0.75rem;
  }

  .register-page .auth-card {
    padding: 1rem;
  }

  .register-page .plan-card {
    padding: 1.2rem 1rem 1rem;
  }

  .register-page .plan-features {
    grid-template-columns: 1fr;
  }

  .register-page .register-buttons {
    gap: 0.65rem;
  }
}
