/* Planos, teste grátis e cards de lucro do Painel */

:root {
  --pl-green: #10b981;
  --pl-green-glow: rgba(16, 185, 129, 0.35);
  --pl-red: #ef4444;
  --pl-red-glow: rgba(239, 68, 68, 0.3);
  --pl-gold: #f59e0b;
  --pl-gold-glow: rgba(245, 158, 11, 0.3);
  --pl-card: rgba(255, 255, 255, 0.035);
  --pl-line: rgba(255, 255, 255, 0.09);
}

/* ---------- chip do teste grátis (cabeçalho) ---------- */
.trial-chip {
  --tc: #f59e0b;
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 6px 5px 6px; border-radius: 999px; cursor: pointer; border: 1px solid color-mix(in srgb, var(--tc) 40%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--tc) 16%, transparent), rgba(255, 255, 255, .03)); color: #fff;
  transition: transform .2s, box-shadow .2s;
}
.trial-chip:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -12px var(--tc); }
.trial-chip.hidden { display: none; }
.trial-chip--urgent { --tc: #ef4444; animation: pl-pulse 1.8s ease-in-out infinite; }
.trial-ring { position: relative; flex: none; width: 34px; height: 34px; display: grid; place-items: center; }
.trial-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.trial-ring circle { fill: none; stroke-width: 3.5; }
.trial-ring__bg { stroke: rgba(255, 255, 255, .12); }
.trial-ring__fg { stroke: var(--tc); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; filter: drop-shadow(0 0 4px var(--tc)); transition: stroke-dashoffset 1s linear, stroke .4s; }
.trial-ring__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tc); box-shadow: 0 0 10px var(--tc); animation: pl-beat 1.6s ease-in-out infinite; }
@keyframes pl-beat { 50% { transform: scale(1.5); opacity: .6; } }
.trial-chip__txt { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.trial-chip__txt small { font-size: 8px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.trial-chip__time { white-space: nowrap; font-size: 14px; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.trial-chip__cta { padding: 6px 12px; border-radius: 999px; font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: #05070b; background: var(--tc); }
@keyframes pl-pulse { 50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); } 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .45); } }
@media (max-width: 640px) { .trial-chip__cta { display: none; } .trial-chip__txt small { display: none; } }

/* itens de menu travados pelo plano */
.nav-locked { opacity: .45; position: relative; }
.nav-locked::after {
  content: ''; width: 12px; height: 12px; margin-left: auto; flex: none;
  background: currentColor; opacity: .7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- botão principal ---------- */
.plans-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--theme-primary, #ef4036), #ff7a45);
  color: #fff; font-weight: 900; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 10px 30px -8px var(--theme-primary-glow, rgba(239, 64, 54, .5));
  transition: transform .2s, box-shadow .2s;
}
.plans-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px var(--theme-primary-glow, rgba(239, 64, 54, .6)); }

/* ---------- tela de teste vencido ---------- */
.trial-expired {
  position: fixed; inset: 0; z-index: 9500; overflow-y: auto; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(2, 3, 4, .97); backdrop-filter: blur(22px);
}
.trial-expired.hidden { display: none; }
.trial-expired__glow {
  position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 28%, rgba(245, 158, 11, .2), transparent 70%), radial-gradient(50% 40% at 80% 90%, rgba(239, 64, 54, .16), transparent 70%);
  animation: te-breathe 6s ease-in-out infinite;
}
@keyframes te-breathe { 50% { opacity: .65; } }
.trial-expired__card { position: relative; width: 100%; max-width: 520px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; animation: te-in .7s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes te-in { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.trial-expired__ring { position: relative; width: 112px; height: 112px; display: grid; place-items: center; color: #fbbf24; filter: drop-shadow(0 0 22px rgba(245, 158, 11, .5)); }
.trial-expired__ring svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.trial-expired__ring circle { fill: none; stroke-width: 5; }
.trial-expired__track { stroke: rgba(255, 255, 255, .1); }
.trial-expired__spent { stroke: #ef4444; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; animation: te-spent 1.6s .3s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes te-spent { to { stroke-dashoffset: 0; } }
.trial-expired__tag { padding: 5px 14px; border-radius: 999px; font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: #fca5a5; background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .4); }
.trial-expired h2 { font-size: clamp(26px, 5vw, 34px); font-weight: 900; line-height: 1.1; letter-spacing: -.02em; color: #fff; }
.trial-expired__card > p { max-width: 42ch; font-size: 14px; line-height: 1.65; color: rgba(255, 255, 255, .58); }
.trial-expired__plans { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0 4px; }
.trial-expired__plan { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.trial-expired__plan b { font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.trial-expired__plan strong { font-size: 24px; font-weight: 900; color: #fff; letter-spacing: -.02em; }
.trial-expired__plan strong small { font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, .45); }
.trial-expired__plan span { font-size: 11px; line-height: 1.5; color: rgba(255, 255, 255, .5); }
.trial-expired__plan.is-top { border-color: rgba(245, 158, 11, .6); background: linear-gradient(180deg, rgba(245, 158, 11, .14), rgba(255, 255, 255, .03)); box-shadow: 0 18px 44px -22px rgba(245, 158, 11, .8); }
.trial-expired__plan.is-top strong { color: #fde68a; }
.trial-expired__plan em { position: absolute; top: -9px; padding: 2px 10px; border-radius: 999px; font-style: normal; font-size: 8px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: #1a1204; background: linear-gradient(135deg, #fde68a, #f59e0b); }
.trial-expired__cta { width: 100%; padding: 17px 28px; font-size: 12px; }
.trial-expired__fine { font-size: 10px; letter-spacing: .04em; color: rgba(255, 255, 255, .35); }
@media (max-width: 480px) { .trial-expired__plans { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .trial-expired__glow, .trial-expired__card, .trial-ring__dot, .trial-chip--urgent { animation: none; } .trial-expired__spent { animation: none; stroke-dashoffset: 0; } }

/* ---------- página de planos ---------- */
.plans-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.plans-eyebrow {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px;
  padding: 5px 12px; border-radius: 999px; font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase;
  color: var(--theme-primary, #ef4036); background: var(--theme-primary-glow, rgba(239, 64, 54, .12)); border: 1px solid rgba(239, 64, 54, .25);
}
.plans-title { font-size: clamp(30px, 4vw, 44px); font-weight: 900; color: #fff; letter-spacing: -.03em; line-height: 1.05; }
.plans-subtitle { margin-top: 10px; max-width: 560px; font-size: 14px; color: rgba(255, 255, 255, .5); line-height: 1.6; }
.plans-ghost-btn {
  padding: 12px 18px; border-radius: 8px; cursor: pointer; font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .65); background: rgba(255, 255, 255, .05); border: 1px solid var(--pl-line); transition: .2s;
}
.plans-ghost-btn:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.plans-ghost-btn--gold { color: var(--pl-gold); background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .25); }
.plans-ghost-btn.hidden { display: none; }

.plans-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plans-summary__item {
  display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 14px;
  background: var(--pl-card); border: 1px solid var(--pl-line);
}
.plans-summary__item span { font-size: 9px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .35); }
.plans-summary__item strong { font-size: 20px; font-weight: 900; color: #fff; }

.plans-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }

.plan-card {
  position: relative; display: flex; flex-direction: column; gap: 18px; padding: 28px 24px 24px;
  border-radius: 20px; background: var(--pl-card); border: 1px solid var(--pl-line); overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.plan-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .2); }
.plan-card--featured {
  border-color: rgba(245, 158, 11, .55);
  background: linear-gradient(180deg, rgba(245, 158, 11, .12), rgba(255, 255, 255, .03) 55%);
  box-shadow: 0 24px 60px -24px var(--pl-gold-glow);
}
.plan-card--featured:hover { border-color: rgba(245, 158, 11, .85); }
.plan-card--free { opacity: .9; }
.plan-card--current { border-color: rgba(16, 185, 129, .55); }
.plan-card__badge {
  position: absolute; top: 16px; right: 16px; padding: 4px 10px; border-radius: 999px;
  font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase;
  color: #1a1204; background: linear-gradient(135deg, #fbbf24, #f59e0b);
}
.plan-card__badge--current { color: var(--pl-green); background: rgba(16, 185, 129, .14); border: 1px solid rgba(16, 185, 129, .35); }
.plan-card__name { font-size: 22px; font-weight: 900; color: #fff; letter-spacing: -.01em; }
.plan-card__tagline { margin-top: 4px; font-size: 12px; color: rgba(255, 255, 255, .45); }
.plan-card__price { display: flex; align-items: baseline; gap: 6px; }
.plan-card__amount { font-size: 42px; font-weight: 900; color: #fff; letter-spacing: -.03em; line-height: 1; }
.plan-card--featured .plan-card__amount { color: #fde68a; text-shadow: 0 0 30px var(--pl-gold-glow); }
.plan-card__unit { font-size: 12px; color: rgba(255, 255, 255, .4); }
.plan-card__desc { font-size: 13px; color: rgba(255, 255, 255, .5); line-height: 1.55; }
.plan-card__features { display: flex; flex-direction: column; gap: 10px; flex: 1; padding-top: 16px; border-top: 1px solid var(--pl-line); list-style: none; margin: 0; }
.plan-card__features li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255, 255, 255, .78); }
.plan-card__features li svg { flex: none; color: var(--pl-green); }
.plan-card__features li.is-off { color: rgba(255, 255, 255, .3); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .15); }
.plan-card__features li.is-off svg { color: rgba(255, 255, 255, .25); }
.plan-card__cta {
  width: 100%; padding: 15px; border-radius: 12px; border: 0; cursor: pointer;
  font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: #fff;
  background: linear-gradient(135deg, var(--theme-primary, #ef4036), #ff7a45);
  box-shadow: 0 12px 28px -10px var(--theme-primary-glow, rgba(239, 64, 54, .6)); transition: transform .2s, box-shadow .2s;
}
.plan-card__cta:hover:not(:disabled) { transform: translateY(-2px); }
.plan-card--featured .plan-card__cta:not(.is-disabled) { color: #1a1204; background: linear-gradient(135deg, #fde68a, #f59e0b); box-shadow: 0 12px 28px -10px var(--pl-gold-glow); }
.plan-card__cta.is-disabled { cursor: not-allowed; color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); box-shadow: none; }

@media (max-width: 1023px) {
  .plans-grid { grid-template-columns: 1fr; }
  .plans-summary { grid-template-columns: 1fr; }
}

/* ---------- cards de lucro do Painel ---------- */
.profit-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.profit-card {
  --tone: rgba(255, 255, 255, .5); --tone-glow: rgba(255, 255, 255, .08);
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 18px;
  border-radius: 20px; border: 1px solid var(--pl-line);
  background: radial-gradient(120% 90% at 0% 0%, var(--tone-glow), transparent 60%), rgba(255, 255, 255, .03);
  transition: transform .25s, border-color .3s, box-shadow .3s;
}
.profit-card:hover { transform: translateY(-4px); border-color: var(--tone); box-shadow: 0 22px 50px -26px var(--tone); }
.profit-card[data-tone="win"] { --tone: var(--pl-green); --tone-glow: rgba(16, 185, 129, .2); border-color: rgba(16, 185, 129, .3); }
.profit-card[data-tone="loss"] { --tone: var(--pl-red); --tone-glow: rgba(239, 68, 68, .18); border-color: rgba(239, 68, 68, .28); }
.profit-card--total[data-tone="win"] { --tone: var(--pl-gold); --tone-glow: rgba(245, 158, 11, .22); border-color: rgba(245, 158, 11, .4); }
.profit-card__top { display: flex; align-items: center; gap: 10px; }
.profit-card__icon {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none;
  color: var(--tone); background: var(--tone-glow); border: 1px solid color-mix(in srgb, var(--tone) 40%, transparent);
}
.profit-card__label { font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.profit-card__badge {
  margin-left: auto; padding: 3px 9px; border-radius: 999px; font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
  color: var(--tone); background: var(--tone-glow);
}
.profit-card__value {
  font-size: clamp(28px, 3.2vw, 40px); font-weight: 900; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums;
  color: var(--tone); text-shadow: 0 0 34px var(--tone-glow);
}
.profit-card[data-tone="neutral"] .profit-card__value { color: #fff; text-shadow: none; }
.profit-card__foot { font-size: 12px; color: rgba(255, 255, 255, .42); }
.profit-card__shine {
  position: absolute; top: 0; left: -60%; width: 40%; height: 100%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .09), transparent); transform: skewX(-18deg);
}
.profit-card[data-tone="win"] .profit-card__shine { animation: pl-shine 5s ease-in-out infinite; }
@keyframes pl-shine { 0%, 55% { left: -60%; } 100% { left: 140%; } }
.profit-card--pop { animation: pl-pop .7s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pl-pop { 0% { transform: scale(1); } 35% { transform: scale(1.035); box-shadow: 0 0 0 10px var(--tone-glow); } 100% { transform: scale(1); } }

@media (max-width: 900px) {
  .profit-cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .profit-card[data-tone="win"] .profit-card__shine, .profit-card--pop, .trial-chip--urgent { animation: none; }
}
