:root {
  --bg: #E9E3F8;
  --violet-700: #6B57C8;
  --text-muted: #7B74A8;
  --green-accent: #21C45D;
  --card-bg: #FFFFFF;
  --shadow: 0 6px 18px rgba(62, 42, 124, 0.15);
  --light-shadow: 0 4px 15px rgba(62, 42, 124, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  background: var(--bg);
  color: #2a2347;
}

.wrap {
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.top-icon svg {
  width: 80px;
  height: 80px;
  color: var(--violet-700);
  margin-bottom: 16px;
}

.title {
  font-size: 32px;
  font-weight: 800;
  color: var(--violet-700);
  margin-bottom: 12px;
}

.lead {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* Planos */
*,
*::before,
*::after {
  box-sizing: border-box;
}

.plans-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 60px;
}

.plan-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  width: calc(25% - 18px);
  min-width: 250px;
  display: flex; /* <-- Habilita o Flexbox */
  flex-direction: column; /* <-- Organiza os itens em coluna */
  box-shadow: var(--light-shadow);
  transition: all 0.3s ease;
}

/* Media Queries para responsividade */
@media (max-width: 1200px) {
  .plan-card {
    width: calc(33.333% - 16px);
  }
}

@media (max-width: 992px) {
  .plan-card {
    width: calc(50% - 12px);
  }
}

@media (max-width: 576px) {
  .plan-card {
    width: 100%;
  }
}

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

/* ---- AJUSTE PRINCIPAL AQUI ---- */
.plan-header {
  flex-grow: 1; /* Faz este bloco (nome e descrição) crescer, empurrando o resto para baixo */
}

.plan-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--violet-700);
  margin-bottom: 10px;
}

.plan-description {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
    text-align: left;
    word-wrap: break-word;
}

.plan-description::before {
    content: '';
}

.plan-description br {
    margin-bottom: 8px;
    display: block;
}

.plan-price {
  font-size: 20px;
  font-weight: 600;
  color: var(--green-accent);
  margin-top: 20px; /* Adicionado um margin-top para dar espaço do conteúdo de cima */
  border-top: 1px solid #f0f0f0;
  padding: 16px 0;
  margin-bottom: 20px; /* Movido o margin para o preço */
}

.plan-price strong {
  font-size: 40px;
  font-weight: 800;
}

.plan-price span {
  font-size: 14px;
  color: var(--text-muted);
  margin-left: 4px;
}

.plan-action {
  /* Nenhuma regra de alinhamento necessária aqui agora */
}

.btn-subscribe {
  display: inline-block;
  background: var(--green-accent);
  color: #fff;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-subscribe:hover {
  background: #1ca34d;
}

.error-url {
  font-size: 12px;
  color: red;
  font-weight: bold;
}

/* Contato */
.contact-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.contact-card {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 12px;
  width: 280px;
  box-shadow: var(--light-shadow);
  text-align: left;
}

.contact-head {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.icon-badge {
  margin-right: 12px;
  color: var(--violet-700);
}

.head-title {
  font-weight: 600;
}

.head-sub {
  font-size: 14px;
  color: var(--text-muted);
}

.pill-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 0;
  border-radius: 50px;
  background: #EEE8FF;
  font-weight: 600;
  text-decoration: none;
  color: var(--violet-700);
  transition: background 0.3s;
}

.pill-btn:hover {
  background: #d9ceff;
}

/* --- Responsividade --- */
@media (max-width: 768px) {
  .plans-wrapper, .contact-cards {
    flex-direction: column;
    align-items: center;
  }

  .plan-card, .contact-card {
    width: 90%;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 26px;
  }
  .lead {
    font-size: 14px;
  }
  .plan-price strong {
    font-size: 32px;
  }
}

/* --- Estilos para o Botão de Logout --- */
.logout-container {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: transparent;
  border: 1px solid #d9ceff;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-logout:hover {
  background-color: #EEE8FF;
  color: var(--violet-700);
  border-color: var(--violet-700);
}

.btn-logout svg {
  width: 16px;
  height: 16px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.logo img {
  width: 150px;
  height: auto;
  margin-right: 10px;
  border-radius: 8px;
}

.logo h2 {
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  margin: 0;
}