/* ===== PÁGINA DE PLANOS ===== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #343443; border-radius: 999px; }
::-webkit-scrollbar-corner { background: transparent; }
.planos-page {
  overflow-y: auto;
  height: calc(100vh - 72px);
  padding-bottom: 80px;
}

.planos-page::-webkit-scrollbar { width: 7px; }
.planos-page::-webkit-scrollbar-thumb { background: #343443; border-radius: 999px; }

/* ===== HERO ===== */
.planos-hero {
  position: relative;
  text-align: center;
  padding: 70px 24px 50px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,255,0.18) 0%, transparent 70%);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-glow-2 {
  background: radial-gradient(circle, rgba(255,180,68,0.08) 0%, transparent 70%);
  top: 50px;
  left: 30%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(124,92,255,0.15);
  border: 1px solid rgba(124,92,255,0.35);
  color: #bcaeff;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
}

.hero-gradient {
  background: linear-gradient(135deg, #a78bff, #ffd700, #ff9966);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 24px;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.plano-status {
  position: relative;
  z-index: 1;
  min-height: 32px;
}

.status-pro {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,153,0,0.1));
  border: 1px solid rgba(255,215,0,0.35);
  color: #ffd700;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

/* ===== GRID DE PLANOS ===== */
.planos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto 70px;
  padding: 0 24px;
}

.plano-card {
  background: rgba(28,28,36,0.9);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: 0.3s;
}

.plano-card:hover { transform: translateY(-4px); }

/* Card Pro mensal com destaque */
.plano-pro {
  border-color: rgba(124,92,255,0.5);
  background: rgba(28,24,46,0.95);
  box-shadow: 0 0 0 1px rgba(124,92,255,0.3), 0 24px 60px rgba(124,92,255,0.15);
}

/* Card Pro anual */
.plano-anual {
  border-color: rgba(32,211,174,0.4);
  background: rgba(20,36,34,0.95);
  box-shadow: 0 0 0 1px rgba(32,211,174,0.2), 0 24px 60px rgba(32,211,174,0.1);
}

.btn-anual {
  background: linear-gradient(135deg, #20d3ae, #10a47f) !important;
  box-shadow: 0 8px 28px rgba(32,211,174,0.35) !important;
}

.pro-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,255,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.pro-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  background: linear-gradient(135deg, #ffd700, #ff9900);
  color: #1a1000;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.plano-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.plano-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.free-icon {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  color: var(--muted);
}

.pro-icon {
  background: linear-gradient(135deg, #ffd700, #ff9900);
  color: #1a1000;
}

.plano-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.pro-text {
  background: linear-gradient(135deg, #ffd700, #ff9900);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.plano-header p {
  font-size: 0.85rem;
  color: var(--muted);
}

.plano-toggle {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.toggle-btn {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  font-size: 0.92rem;
  cursor: pointer;
  transition: 0.15s;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.toggle-btn.active {
  background: rgba(124,92,255,0.12);
  border-color: rgba(124,92,255,0.5);
  color: #f1f1f5;
  font-weight: 600;
}
.toggle-btn:hover:not(.active) {
  border-color: rgba(124,92,255,0.25);
  color: #c8c8d8;
}
.toggle-badge {
  background: #20d3ae;
  color: #0d0d14;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

.plano-preco {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.preco-valor {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.preco-periodo {
  color: var(--muted);
  font-size: 0.9rem;
}

.preco-anual {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.preco-anual strong { color: #20d3ae; }

/* Features */
.plano-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 28px;
  flex: 1;
}

.plano-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #d0d0de;
}

.plano-features li i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.feat-ok i { color: #20d3ae; }
.feat-no { opacity: 0.38; }
.feat-no i { color: var(--muted); }

.pro-feat i { color: #ffd700; }

/* Botões de plano */
.btn-plano {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: 0.2s;
}

.btn-free {
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  border: 1px solid var(--border);
  cursor: not-allowed;
}

.btn-pro {
  background: linear-gradient(135deg, #8f72ff, #5d3df0);
  color: white;
  box-shadow: 0 4px 20px rgba(124,92,255,0.35);
}

.btn-pro:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124,92,255,0.45);
}

.cancel-text {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 10px;
}

.btn-cancelar-plano {
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 0.78rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: color 0.15s;
  margin-top: 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-cancelar-plano:hover { color: #ff7070; }
.btn-cancelar-plano i { width: 13px; height: 13px; }

/* ===== FEATURES GRID ===== */
.features-section {
  max-width: 900px;
  margin: 0 auto 70px;
  padding: 0 24px;
}

.features-title {
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 36px;
  letter-spacing: -0.01em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-item {
  background: rgba(28,28,36,0.9);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  transition: 0.2s;
}

.feature-item:hover {
  border-color: rgba(124,92,255,0.3);
  transform: translateY(-3px);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: white;
  margin-bottom: 14px;
}

.feature-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== FAQ ===== */
.faq-section {
  max-width: 660px;
  margin: 0 auto;
  padding: 0 24px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: rgba(28,28,36,0.9);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: 0.2s;
}

.faq-item.open {
  border-color: rgba(124,92,255,0.3);
}

.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 16px 20px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: 0.2s;
}

.faq-q:hover { color: #bcaeff; }

.faq-q i {
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--muted);
}

.faq-item.open .faq-q i { transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
  padding: 0 20px;
}

.faq-item.open .faq-a {
  max-height: 200px;
  padding: 0 20px 16px;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-overlay.hidden { display: none; }

.modal-box {
  background: #1a1a24;
  border: 1px solid rgba(124,92,255,0.4);
  border-radius: 24px;
  padding: 36px 32px;
  max-width: 460px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(124,92,255,0.2);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.94) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.06);
  border: none;
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: 0.2s;
}

.modal-close:hover { background: rgba(255,255,255,0.12); color: white; }

.modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffd700, #ff9900);
  display: grid;
  place-items: center;
  color: #1a1000;
  margin: 0 auto 16px;
}

.modal-box h2 {
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 6px;
}

.modal-sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.modal-beneficios {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.modal-beneficios span {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(124,92,255,0.12);
  border: 1px solid rgba(124,92,255,0.25);
  color: #bcaeff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}

.modal-beneficios span i { color: #20d3ae; width: 13px; height: 13px; }

.modal-form { display: flex; flex-direction: column; gap: 14px; }

.modal-field { display: flex; flex-direction: column; gap: 6px; }

.modal-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #c0c0d0;
}

.modal-field input {
  background: #111118;
  border: 1px solid #2e2e3c;
  border-radius: 12px;
  color: var(--text);
  padding: 12px 14px;
  font-size: 0.92rem;
  outline: none;
  transition: 0.2s;
  font-family: inherit;
}

.modal-field input:focus {
  border-color: rgba(124,92,255,0.55);
  box-shadow: 0 0 0 3px rgba(124,92,255,0.1);
}

.modal-field input::placeholder { color: #4a4a60; }

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

.btn-confirmar {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #8f72ff, #5d3df0);
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: 0.2s;
  margin-top: 4px;
  box-shadow: 0 4px 20px rgba(124,92,255,0.35);
}

.btn-confirmar:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124,92,255,0.45);
}

.modal-seguro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}

.modal-seguro i { color: #20d3ae; width: 14px; height: 14px; }

/* ===== BADGE PRO (usado no home e perfil) ===== */
.badge-pro {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #ffd700, #ff9900);
  color: #1a1000;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  vertical-align: middle;
  margin-left: 4px;
}

.checkmark-pro {
  color: #6d8bff;
  display: inline-flex;
  vertical-align: middle;
  margin-left: 3px;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1000px) {
  .planos-grid { grid-template-columns: 1fr 1fr; max-width: 700px; }
}
@media (max-width: 680px) {
  .planos-grid { grid-template-columns: 1fr; max-width: 420px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .modal-box { padding: 28px 20px; }
}