/* waves-pro — estilos das experiências transacionais. Reusa wv-btn do account.css. */
.wv-fav-dash, .wv-prefs, .wv-sub, .wv-paywall, .wv-detail {
	--wv-ink: #1a1e2a;
	--wv-mut: #7a8294;
	--wv-line: #eceef2;
	--wv-red: #fe0000;
	color: var(--wv-ink);
	font-family: inherit;
}
.wv-loading { color: var(--wv-mut); padding: 16px 0; }

/* ── Dashboard / Favoritos ── */
.wv-fav-dash__title, .wv-prefs__title, .wv-sub__title { font-size: 22px; font-weight: 800; margin: 0 0 16px; }
.wv-fav-dash__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.wv-fav-dash__cell { display: flex; flex-direction: column; gap: 8px; }
.wv-fav-dash__actions { display: flex; justify-content: flex-end; }
.wv-fav-dash__ismain { font-size: 12px; font-weight: 700; color: var(--wv-red); }
.wv-fav-dash__empty, .wv-fav-dash__guest, .wv-prefs__guest, .wv-sub__guest {
	padding: 24px; border: 1px dashed var(--wv-line); border-radius: 14px; text-align: center; color: var(--wv-mut);
}
.wv-fav-dash__warn { color: var(--wv-mut); }

/* ── Coração solo ── */
.wv-fav-toggle--solo {
	display: inline-flex; align-items: center; gap: 8px; width: auto; height: auto;
	padding: 8px 14px; border-radius: 999px; background: #f4f5f7; -webkit-mask: none; mask: none;
}
.wv-fav-toggle--solo::before {
	content: ""; width: 20px; height: 20px; background-color: #d0d6e3;
	-webkit-mask: center/20px no-repeat; mask: center/20px no-repeat;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-10-9.2C.3 8.4 1.8 4.7 5.3 4.2 7.4 3.9 9.3 5 12 7.6c2.7-2.6 4.6-3.7 6.7-3.4 3.5.5 5 4.2 3.3 7.6C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-10-9.2C.3 8.4 1.8 4.7 5.3 4.2 7.4 3.9 9.3 5 12 7.6c2.7-2.6 4.6-3.7 6.7-3.4 3.5.5 5 4.2 3.3 7.6C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E");
}
.wv-fav-toggle--solo.is-fav::before { background-color: var(--wv-red); }
.wv-fav-toggle__label { font-size: 13px; font-weight: 700; }

/* ── Preferências ── */
.wv-prefs__form { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.wv-prefs__group { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wv-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.wv-field > span { font-weight: 700; color: var(--wv-mut); }
.wv-field input, .wv-field select {
	padding: 10px 12px; border: 1px solid var(--wv-line); border-radius: 10px; font: inherit; background: #fff;
}
.wv-check { display: flex; align-items: center; gap: 8px; font-size: 13px; }

/* ── Assinatura (mesmo card branco da tela de Preferências) ── */
.wv-sub.wv-pf .wv-pf__card { display: flex; flex-direction: column; }
.wv-sub__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--wv-line); }
.wv-sub__head .wv-sub__title { margin: 0 0 4px; }
.wv-sub__subtitle { color: var(--wv-mut); font-size: 14px; margin: 0; }
.wv-sub__badge { flex: 0 0 auto; font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
.wv-sub__badge.is-none { background: #6b7280; color: #fff; }
.wv-sub__badge.is-active { background: #ecfdf5; color: #16a34a; }
/* Cancelada-mas-válida / expirada: âmbar (não vermelho — não é erro). */
.wv-sub__badge.is-canceled { background: #fffbeb; color: #b45309; }
/* Aviso "use até dd/mm" no painel de assinatura cancelada (borda-esquerda âmbar). */
.wv-sub__cancel-note { background: #fffbeb; border-left: 4px solid #f59e0b; border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; color: #92400e; line-height: 1.5; }
.wv-sub__cancel-note strong { color: #78350f; }
.wv-sub__plans-title { font-size: 22px; font-weight: 800; margin: 0 0 16px; }
.wv-sub__muted { color: var(--wv-mut); font-size: 14px; }

/* Badge "Mais escolhido" no card de plano destacado */
.wv-plan { position: relative; }
.wv-plan__badge { align-self: flex-start; display: inline-block; font-size: 12px; font-weight: 800; color: var(--wv-red); background: #fde8e8; padding: 5px 14px; border-radius: 999px; }

/* Assinante: 2 mini-cards (plano atual / próxima cobrança) */
.wv-sub__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.wv-sub__mini { border: 1px solid var(--wv-line); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.wv-sub__label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wv-mut); }
.wv-sub__mini-title { font-size: 17px; font-weight: 800; line-height: 1.3; margin-top: 2px; }
.wv-sub__price { font-size: 16px; font-weight: 700; }
.wv-sub__muted2 { font-size: 13px; color: var(--wv-mut); }

/* Ações */
.wv-sub__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }

/* Histórico de cobranças (tabela) */
.wv-sub__history h3 { font-size: 20px; font-weight: 800; margin: 0 0 14px; }
.wv-sub__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wv-sub__table th { text-align: left; font-weight: 700; color: var(--wv-ink, #1a1e2a); padding: 10px 12px; border-bottom: 1px solid var(--wv-line); }
.wv-sub__table td { padding: 14px 12px; border-bottom: 1px solid var(--wv-line); }
.wv-sub__td-act { text-align: right; }
.wv-sub__pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #ecfdf5; color: #16a34a; }
.wv-sub__pill--pending, .wv-sub__pill--processing { background: #fffbeb; color: #b45309; }
.wv-sub__pill--failed, .wv-sub__pill--canceled, .wv-sub__pill--refunded { background: #fef2f2; color: var(--wv-red); }
.wv-sub__receipt { font-size: 13px; font-weight: 700; color: var(--wv-red); text-decoration: none; border: 1px solid var(--wv-line); padding: 6px 14px; border-radius: 8px; }
.wv-sub__receipt:hover { background: var(--wv-red); color: #fff; border-color: var(--wv-red); }
.wv-sub__receipt.is-off { color: var(--wv-mut); border-color: transparent; cursor: default; }

@media (max-width: 560px) {
	.wv-sub__grid { grid-template-columns: 1fr; }
	.wv-sub__table th:nth-child(4), .wv-sub__table td:nth-child(4) { display: none; }
}

.wv-sub__card { border: 1px solid var(--wv-line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 8px; max-width: 460px; }
.wv-sub__plan { font-size: 18px; font-weight: 800; }
.wv-sub__status { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #ecfdf5; color: #16a34a; }
.wv-sub__status--canceled, .wv-sub__status--past_due, .wv-sub__status--unpaid { background: #fef2f2; color: var(--wv-red); }
.wv-sub__until { font-size: 13px; color: var(--wv-mut); }
.wv-sub__none { padding: 24px; border: 1px dashed var(--wv-line); border-radius: 14px; text-align: center; }
.wv-sub__history { margin-top: 20px; }
.wv-sub__history h3 { font-size: 14px; font-weight: 700; margin: 0 0 8px; }
.wv-sub__history ul { list-style: none; margin: 0; padding: 0; }
.wv-sub__history li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--wv-line); font-size: 13px; }
.wv-sub__pstatus { color: var(--wv-mut); }

/* ── Paywall ── */
.wv-paywall__head { text-align: center; margin-bottom: 18px; }
.wv-paywall__title { font-size: 26px; font-weight: 800; margin: 0 0 6px; }
.wv-paywall__sub { color: var(--wv-mut); margin: 0; }
.wv-paywall__plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.wv-plan { border: 1px solid var(--wv-line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.wv-plan.is-highlight { border-color: var(--wv-red); box-shadow: 0 8px 30px rgba(254,0,0,.08); }
.wv-plan__name { font-size: 16px; font-weight: 800; }
.wv-plan__price { font-size: 30px; font-weight: 800; }
.wv-plan__desc { color: var(--wv-mut); font-size: 13px; margin: 0; }
.wv-plan__feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.wv-plan__feats li { padding-left: 22px; position: relative; }
.wv-plan__feats li::before { content: "✓"; position: absolute; left: 0; color: var(--wv-red); font-weight: 800; }
.wv-plan__cta { margin-top: auto; }

/* ── Detalhe (abas) ── */
.wv-detail__head { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; margin-bottom: 18px; }
.wv-detail__id { display: flex; flex-direction: column; align-items: center; gap: 2px; }

/* Favorito (canto superior direito) estilo Pro: coração + label, com loading. */
.wv-detail-fav { position: absolute; top: 0; right: 0; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 4px; background: transparent !important; border: 0 !important; box-shadow: none !important; cursor: pointer; transition: opacity .15s ease; }
/* Mantém o fundo transparente em hover/active/focus (mata o rosa do tema). */
.wv-detail-fav:hover { opacity: .7; background: transparent !important; }
.wv-detail-fav:active { opacity: .5; background: transparent !important; }
.wv-detail-fav:focus { background: transparent !important; box-shadow: none !important; outline: none; }
.wv-detail-fav:focus-visible { outline: 2px solid var(--wv-red); outline-offset: 3px; border-radius: 10px; }
.wv-detail-fav:disabled { cursor: default; }
.wv-detail-fav__icon { position: relative; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; }
.wv-detail-fav__heart { display: block; fill: none; stroke: var(--wv-red); stroke-width: 2; transition: fill .15s ease; }
.wv-detail-fav.is-fav .wv-detail-fav__heart { fill: var(--wv-red); stroke: var(--wv-red); }
.wv-detail-fav__label { font-size: 11px; font-weight: 600; color: var(--wv-mut); white-space: nowrap; }
.wv-detail-fav__spin { position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border: 2px solid rgba(0, 0, 0, .15); border-top-color: var(--wv-red); border-radius: 50%; display: none; animation: wv-detail-fav-spin .7s linear infinite; }
.wv-detail-fav.is-loading .wv-detail-fav__heart { visibility: hidden; }
.wv-detail-fav.is-loading .wv-detail-fav__spin { display: block; }
@keyframes wv-detail-fav-spin { to { transform: rotate(360deg); } }
.wv-detail__name { font-size: 28px; font-weight: 800; margin: 0; line-height: 1.1; }
.wv-detail__loc { font-size: 14px; color: var(--wv-mut); }
.wv-detail__tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 22px; }
.wv-detail__tab {
	border: 0 !important; background: transparent !important; padding: 10px 24px; cursor: pointer;
	font: inherit; font-size: 15px; font-weight: 700; color: var(--wv-mut);
	border-radius: 999px !important; transition: background-color .15s, color .15s;
}
.wv-detail__tab:hover { background: transparent !important; color: var(--wv-red) !important; }
.wv-detail__tab.is-active { background: var(--wv-red) !important; color: #fff !important; }
.wv-detail__panel { display: none; }
.wv-detail__panel.is-active { display: block; }
.wv-detail__forecast-cta { padding: 24px; border: 1px dashed var(--wv-line); border-radius: 14px; text-align: center; }
.wv-detail__forecast-cta p { color: var(--wv-mut); margin: 0 0 14px; }
.wv-detail__empty { color: var(--wv-mut); }

/* ── Toast ── */
.wv-toast {
	position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
	background: var(--wv-ink, #1a1e2a); color: #fff; padding: 12px 18px; border-radius: 12px;
	font-size: 14px; font-weight: 600; z-index: 99999; opacity: 0; transition: all .3s ease; box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.wv-toast.is-in { opacity: 1; transform: translate(-50%, 0); }
.wv-toast--success { background: #16a34a; }
.wv-toast--error { background: var(--wv-red, #fe0000); }

@media (max-width: 520px) {
	.wv-prefs__group { grid-template-columns: 1fr; }
}

/* Barra "Editar ordem" dos favoritos (drag-drop) */
.wv-fav-rich__bar{display:flex;justify-content:flex-end;margin:0 0 14px}
.wv-fav-reorder.is-active{background:#fe0000 !important;color:#fff !important;border-color:#fe0000 !important}

/* ── Página Pro canônica: comparação Grátis×Pro + toggle Mensal/Anual ── */
.wv-paywall__plans { display: block; }
.wv-plan-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.wv-plan-compare__col { border: 1px solid var(--wv-line); border-radius: 14px; padding: 16px; }
.wv-plan-compare__col.is-pro { border-color: var(--wv-red); background: #fff5f5; }
.wv-plan-compare__col h4 { margin: 0 0 10px; font-size: 15px; }
.wv-plan-compare__col.is-pro h4 { color: var(--wv-red); }
.wv-plan-compare__col ul { margin: 0; padding-left: 18px; color: var(--wv-mut); font-size: 13px; line-height: 1.7; }
.wv-plan-cycle { display: flex; justify-content: center; gap: 0; background: #f3f4f6; border-radius: 999px; padding: 4px; width: fit-content; margin: 0 auto 18px; }
.wv-plan-cycle button { border: 0 !important; background: transparent !important; padding: 8px 22px; border-radius: 999px !important; font-weight: 700; color: var(--wv-mut) !important; cursor: pointer; box-shadow: none !important; }
.wv-plan-cycle button.is-active { background: var(--wv-red) !important; color: #fff !important; box-shadow: 0 1px 4px rgba(0,0,0,.12) !important; }
.wv-plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.wv-plan__trial { display: inline-block; align-self: flex-start; background: #dcfce7; color: #15803d; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
@media (max-width: 560px) { .wv-plan-compare { grid-template-columns: 1fr; } }

/* ── Empty state (guest) do dashboard de favoritos ── */
.wv-fav-dash__guest { max-width: 460px; margin: 0 auto; text-align: center; padding: 40px 20px; }
.wv-fav-dash__guest-title { font-size: 22px; font-weight: 800; margin: 0 0 8px; }
.wv-fav-dash__guest-sub { color: var(--wv-mut); margin: 0 0 18px; }
.wv-fav-dash__guest-list { list-style: none; margin: 0 0 22px; padding: 0; display: inline-flex; flex-direction: column; gap: 8px; text-align: left; }
.wv-fav-dash__guest-list li { padding-left: 24px; position: relative; }
.wv-fav-dash__guest-list li::before { content: "✓"; position: absolute; left: 0; color: var(--wv-red); font-weight: 800; }
.wv-fav-dash__guest-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.wv-fav-dash__guest-pro { margin: 20px 0 0; font-size: 13px; color: var(--wv-mut); }
.wv-fav-dash__guest-pro a { color: var(--wv-red); font-weight: 700; }

.wv-return__countdown { color: var(--wv-mut); font-size: 13px; margin: 12px 0 0; text-align: center; }
