/* 24/05/2026 - Plans page redesign. 2 planos (Free + Zero Loss) com
   toggle mensal/trimestral/semestral/anual e badges de desconto. */

.plans-page-shell {
  margin-left: var(--sb-width-expanded);
  transition: margin-left 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 100vh;
  background: linear-gradient(180deg, #0f172a 0%, #0a0f1f 100%);
}
body[data-app-sidebar-collapsed="true"] .plans-page-shell {
  margin-left: var(--sb-width-collapsed);
}

.plans-hero {
  text-align: center;
  padding: 48px 24px 24px;
  max-width: 920px;
  margin: 0 auto;
}
.plans-hero h1 {
  font-size: 38px;
  font-weight: 800;
  margin: 0 0 12px;
  background: linear-gradient(90deg, #60a5fa 0%, #22c55e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.5px;
}
.plans-hero .subtitle {
  font-size: 16px;
  color: #9ca3af;
  margin: 0 auto;
  max-width: 720px;
  line-height: 1.55;
}
.plans-hero .pill-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-top: 14px;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

/* ─── Toggle período ─────────────────────────────────────────────────── */
.plans-period-toggle {
  display: flex;
  justify-content: center;
  margin: 32px auto 28px;
  max-width: 720px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
  flex-wrap: wrap;
}
.plans-period-btn {
  flex: 1;
  min-width: 110px;
  padding: 12px 16px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s ease, color 0.15s ease;
  font-family: inherit;
  position: relative;
}
.plans-period-btn:hover {
  background: rgba(255,255,255,0.04);
  color: #e5e7eb;
}
.plans-period-btn.active {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.plans-period-discount {
  font-size: 10px;
  background: #22c55e;
  color: #0a0f1f;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 8px;
  letter-spacing: 0.4px;
}
.plans-period-btn.active .plans-period-discount {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

/* ─── Cards ─────────────────────────────────────────────────────────── */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.plan-card {
  position: relative;
  background: linear-gradient(180deg, #1a1d2e 0%, #14172a 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.plan-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.14);
}

.plan-card.premium {
  background:
    radial-gradient(ellipse at top, rgba(59, 130, 246, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, #1a1d2e 0%, #14172a 100%);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15), 0 0 0 1px rgba(59, 130, 246, 0.2);
}
.plan-card.premium::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, #3b82f6 0%, #22c55e 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.4;
}

.plan-badge {
  position: absolute;
  top: -10px;
  right: 24px;
  background: linear-gradient(135deg, #3b82f6 0%, #22c55e 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

.plan-name {
  font-size: 13px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 6px;
}
.plan-card.premium .plan-name {
  color: #60a5fa;
}

.plan-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: -0.3px;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0 4px;
}
.plan-price {
  font-size: 44px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1;
}
.plan-price-currency {
  font-size: 18px;
  font-weight: 700;
  color: #9ca3af;
  align-self: flex-start;
  margin-top: 6px;
}
.plan-price-period {
  font-size: 14px;
  color: #9ca3af;
}
.plan-price-original {
  display: block;
  font-size: 12px;
  color: #6b7280;
  text-decoration: line-through;
  margin-top: 4px;
  min-height: 16px;
}
.plan-price-savings {
  display: inline-block;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 6px;
}

.plan-description {
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.5;
  margin: 16px 0 22px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: #e5e7eb;
  line-height: 1.4;
}
.plan-features li.disabled {
  color: #6b7280;
  text-decoration: line-through;
}
.plan-features .feat-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 800;
  margin-top: 1px;
}
.plan-features li.disabled .feat-icon {
  background: rgba(107,114,128,0.15);
  color: #6b7280;
}

.plan-cta {
  margin-top: auto;
  display: block;
  width: 100%;
  padding: 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  font-family: inherit;
}
.plan-cta.cta-secondary {
  background: rgba(255,255,255,0.06);
  color: #e5e7eb;
  border: 1px solid rgba(255,255,255,0.1);
}
.plan-cta.cta-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.18);
}
.plan-cta.cta-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #22c55e 100%);
  color: #fff;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}
.plan-cta.cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
  filter: brightness(1.05);
}
.plan-cta.is-current {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.35);
  cursor: default;
}

.plan-trust {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  color: #6b7280;
}
.plan-trust::before {
  content: '🔒';
  font-size: 12px;
}

.plans-faq {
  max-width: 720px;
  margin: 48px auto;
  padding: 0 24px 48px;
}
.plans-faq h2 {
  font-size: 22px;
  font-weight: 700;
  color: #e5e7eb;
  margin: 0 0 18px;
}
.plans-faq-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
.plans-faq-item summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #e5e7eb;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.plans-faq-item summary::after { content: '+'; font-size: 18px; color: #6b7280; transition: transform 0.15s ease; }
.plans-faq-item[open] summary::after { transform: rotate(45deg); }
.plans-faq-item p {
  margin: 10px 0 0;
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .plans-page-shell { margin-left: 0 !important; }
  .plans-hero h1 { font-size: 28px; }
  .plan-price { font-size: 36px; }
}
