:root{
  --bg:#0f1115;
  --panel:#151922;
  --panel2:#1b2130;
  --line:rgba(255,255,255,.10);
  --text:#e9eef8;
  --muted:rgba(233,238,248,.72);
  --accent:#f47521;
  --radius:16px;
  --shadow:0 10px 30px rgba(0,0,0,.35);
}

/* =========================
   BASE
========================= */
.planos-wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 18px;
}

.planos-title{
  margin: 0 0 6px 0;
  font-size: 40px;
  font-weight: 900;
}

.planos-sub{
  margin: 0 0 18px 0;
  color: var(--muted);
  font-weight: 700;
}


/* =========================
   CARDS
========================= */
.plano-card{
  width: 100%;
  max-width: none;   /* <- IMPORTANTÍSSIMO */
  min-width: 0;      /* <- evita “empurrar” coluna */
  display: flex;
  flex-direction: column;
}

  /* ✅ IMPORTANTÍSSIMO:
     não use max-width aqui, senão quebra a 3ª coluna */
  width: 100%;

  display: flex;
  flex-direction: column;
}

.plano-card h2{
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 900;
}

.plano-card p{
  margin: 0 0 10px 0;
  color: var(--muted);
  font-weight: 700;
}

.plano-card ul{
  margin: 0 0 12px 18px;
  padding: 0;
  color: var(--text);
  font-weight: 700;
}

.plano-preco{
  margin-top: 10px;
  font-size: 22px;
  font-weight: 900;
}

/* =========================
   BLOCO DE ESCOLHA DE LIVROS / CHECKOUT
========================= */
.pix-title{
  margin: 0 0 6px 0;
  font-size: 18px;
  font-weight: 900;
}

.pix-box{
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0,0,0,.14);
  padding: 12px;
}

/* ✅ lista com scroll para não estourar o card */
.livros-list{
  max-height: 180px;
  overflow: auto;
  padding-right: 6px;
}

.livros-list::-webkit-scrollbar{ width: 6px; }
.livros-list::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.25);
  border-radius: 6px;
}
.livros-list::-webkit-scrollbar-track{ background: transparent; }

/* item do livro */
.livro-item{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  margin-bottom: 10px;
}

.livro-item:last-child{ margin-bottom: 0; }
.livro-item input{ margin-top: 2px; }
.livro-info{ min-width: 0; }

.livro-titulo{
  margin: 0;
  font-weight: 900;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ✅ SINOPSE COMO "BOX" COM SCROLL (estilo admin) */
.livro-desc{
  margin: 6px 0 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;

  max-height: 92px;
  overflow: auto;

  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  line-height: 1.35;
}

.livro-desc::-webkit-scrollbar{ width: 6px; }
.livro-desc::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.25);
  border-radius: 6px;
}
.livro-desc::-webkit-scrollbar-track{ background: transparent; }

/* botão */
.btn-primary{
  margin-top: 12px;
  display: inline-block;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--accent);
  color: #0f1115;
  border: 1px solid rgba(0,0,0,.18);
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover{ filter: brightness(1.05); }

.btn-primary:disabled{
  opacity: .55;
  cursor: not-allowed;
  filter: none;
}

/* ✅ GRID RESPONSIVO:
   - cria 2 ou 3 colunas quando houver espaço
   - sem travar "2 colunas" fixas
*/
.planos-grid{
  display: grid;
  grid-template-columns: 0.7fr 1.15fr 1.15fr; /* Gratuito menor, pagos maiores */
  gap: 16px;
  align-items: start;
}

  .livros-list{
    max-height: 220px;
  }

  .livro-desc{
    max-height: 120px;
  }
}
