/* =============================================================================
   Club N! – Checkout de Assinatura
   ============================================================================= */

.clubn-checkout-wrap {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 20px 80px;
  color: #0d0d0d;
}

/* ── Barra sandbox ────────────────────────────────────────────────────────── */
.clubn-sandbox-bar {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 24px;
}

/* ── Cabeçalho ────────────────────────────────────────────────────────────── */
.clubn-checkout-header { text-align: center; margin-bottom: 36px; }
.clubn-checkout-back {
  display: inline-block;
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  margin-bottom: 16px;
  transition: color .2s;
  opacity: .85;
}
.clubn-checkout-back:hover { color: #fff; opacity: 1; }
.clubn-checkout-title    { font-size: 32px; font-weight: 800; margin-bottom: 8px; color: #fff; }
.clubn-checkout-subtitle { font-size: 16px; color: rgba(255,255,255,.8); }

/* ── Grid de planos ───────────────────────────────────────────────────────── */
.clubn-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.clubn-plan-card {
  background: #fff;
  border: 2px solid #e5e5f0;
  border-radius: 16px;
  padding: 24px 20px;
  position: relative;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.clubn-plan-card:hover {
  border-color: #9a549b;
  box-shadow: 0 4px 24px rgba(154,84,155,.12);
  transform: translateY(-2px);
}
.clubn-plan-card.selected {
  border-color: #9a549b;
  box-shadow: 0 0 0 4px rgba(154,84,155,.12);
}

.clubn-plan-badge-top {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #9a549b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.clubn-plan-name   { font-size: 18px; font-weight: 800; }
.clubn-plan-price  { display: flex; align-items: baseline; gap: 3px; }
.clubn-plan-currency { font-size: 16px; font-weight: 700; color: #0d0d0d; }
.clubn-plan-amount   { font-size: 36px; font-weight: 800; line-height: 1; color: #0d0d0d; }
.clubn-plan-period   { font-size: 14px; color: #6b6b80; }

.clubn-plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.clubn-plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #3d3d50;
  line-height: 1.4;
}
.clubn-plan-features li svg { flex-shrink: 0; margin-top: 1px; }

.clubn-btn-select {
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  border: 2px solid;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, color .2s;
  margin-top: auto;
}
.clubn-btn-select:hover {
  background: #9a549b;
  color: #fff !important;
  border-color: #9a549b !important;
}

/* ── Box de checkout ──────────────────────────────────────────────────────── */
.clubn-checkout-box {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e5e5f0;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 4px 32px rgba(154,84,155,.08);
}

/* ── Resumo do plano selecionado ──────────────────────────────────────────── */
.clubn-selected-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f5f3ff;
  border-radius: 10px;
  margin-bottom: 24px;
  gap: 12px;
  flex-wrap: wrap;
}
.clubn-back-btn {
  background: none;
  border: none;
  font-size: 13px;
  color: #9a549b;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}
.clubn-back-btn:hover { text-decoration: underline; }
.clubn-selected-info  { display: flex; align-items: center; gap: 12px; }
.clubn-selected-name  { font-size: 15px; font-weight: 700; }
.clubn-selected-price { font-size: 15px; font-weight: 800; color: #9a549b; }

/* ── Seções do formulário ─────────────────────────────────────────────────── */
.clubn-form-section { margin-bottom: 28px; }
.clubn-form-section-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.clubn-step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #9a549b;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.clubn-secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: #1bb97a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 3px 9px;
  border-radius: 20px;
  margin-left: auto;
}

.clubn-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.clubn-form-row-3 { grid-template-columns: 1fr 1fr; }

.clubn-card-number-wrap { position: relative; }
.clubn-card-brand {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #6b6b80;
  white-space: nowrap;
  pointer-events: none;
}

/* ── Botão principal de checkout ──────────────────────────────────────────── */
.clubn-btn-checkout {
  background: linear-gradient(135deg, #9a549b 0%, #b87cb8 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity .2s, transform .15s;
  margin-top: 8px;
}
.clubn-btn-checkout:hover:not(:disabled) { opacity: .92; transform: translateY(-1px); }
.clubn-btn-checkout:disabled { opacity: .7; cursor: not-allowed; }
.clubn-btn-text, .clubn-btn-loading {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Termos ───────────────────────────────────────────────────────────────── */
.clubn-checkout-terms {
  text-align: center;
  font-size: 12px;
  color: #6b6b80;
  margin-top: 14px;
  line-height: 1.5;
}

/* ── Sucesso ──────────────────────────────────────────────────────────────── */
.clubn-success-box {
  max-width: 440px;
  margin: 60px auto;
  text-align: center;
  padding: 40px 28px;
  background: #fff;
  border: 1px solid #e5e5f0;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(154,84,155,.08);
}
.clubn-success-icon  { font-size: 52px; margin-bottom: 16px; }
.clubn-success-title { font-size: 26px; font-weight: 800; margin-bottom: 12px; }
.clubn-success-text  { font-size: 16px; color: #6b6b80; line-height: 1.6; margin-bottom: 28px; }

/* ── Responsivo ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .clubn-plans-grid    { grid-template-columns: 1fr; }
  .clubn-form-row      { grid-template-columns: 1fr; }
  .clubn-checkout-box  { padding: 24px 18px; }
  .clubn-checkout-title { font-size: 24px; }
  .clubn-plan-amount   { font-size: 28px; }
}

/* ── CPF / CNPJ toggle ───────────────────────────────────────────────────── */
.clubn-doc-toggle {
  display: flex;
  gap: 0;
  border: 1.5px solid #e5e5f0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  width: fit-content;
}
.clubn-doc-toggle-btn {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  border: none;
  color: #6b6b80;
  transition: background .15s, color .15s;
}
.clubn-doc-toggle-btn.active {
  background: #9a549b;
  color: #fff;
}

/* ── Termo de aceite ─────────────────────────────────────────────────────── */
.clubn-terms-scroll {
  background: #fafafa;
  border: 1px solid #e5e5f0;
  border-radius: 8px;
  padding: 16px 18px;
  max-height: 220px;
  overflow-y: auto;
  font-size: 13px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 14px;
}
.clubn-terms-scroll h2 {
  font-size: 13px;
  font-weight: 700;
  color: #0d0d0d;
  margin: 16px 0 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.clubn-terms-scroll h2:first-child { margin-top: 0; }
.clubn-terms-scroll p  { margin: 0 0 8px; line-height: 20px; }
.clubn-terms-scroll ul { margin: 0 0 8px 20px; }
.clubn-terms-scroll li { margin-bottom: 4px; }
.clubn-terms-scroll a  { color: #9a549b; }
.clubn-terms-scroll .subtitle { font-size: 12px; color: #888; margin-bottom: 12px; }

.clubn-terms-accept {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}
.clubn-terms-accept input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #9a549b;
  flex-shrink: 0;
}
.clubn-terms-accept label {
  font-size: 14px;
  font-weight: 600;
  color: #0d0d0d;
  cursor: pointer;
  line-height: 1.4;
}
.clubn-terms-sub {
  font-size: 12px;
  color: #888;
  margin: 4px 0 20px 27px;
  line-height: 1.5;
}
