/* =========================================================================
   Vivi Membership — stili frontend
   Estetica: naturale, raffinata. Verde foresta + crema, accento caldo.
   Tutto è prefissato .vm- per non entrare in conflitto col tema.
   ========================================================================= */

.vm-paywall,
.vm-pricing,
.vm-account {
	--vm-forest: #1f3d2b;
	--vm-leaf: #2f6b43;
	--vm-leaf-soft: #4c9a68;
	--vm-cream: #f6f3ea;
	--vm-sand: #ece5d3;
	--vm-accent: #c8702d;
	--vm-ink: #20261f;
	--vm-muted: #6b7268;
	--vm-radius: 16px;
	--vm-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--vm-body: ui-sans-serif, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* ---------------------------------------------------------------- Paywall */
.vm-paywall {
	max-width: 560px;
	margin: 2.5rem auto;
	padding: 2.75rem 2.25rem;
	text-align: center;
	background:
		radial-gradient(120% 80% at 50% -10%, rgba(76, 154, 104, 0.10), transparent 60%),
		var(--vm-cream);
	border: 1px solid var(--vm-sand);
	border-radius: var(--vm-radius);
	box-shadow: 0 18px 40px -28px rgba(31, 61, 43, 0.55);
	font-family: var(--vm-body);
	color: var(--vm-ink);
}

.vm-paywall__lock {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	margin-bottom: 1.25rem;
	border-radius: 50%;
	color: var(--vm-leaf);
	background: #fff;
	border: 1px solid var(--vm-sand);
	box-shadow: inset 0 0 0 6px rgba(76, 154, 104, 0.08);
}

.vm-paywall__title {
	margin: 0 0 0.6rem;
	font-family: var(--vm-display);
	font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--vm-forest);
}

.vm-paywall__message {
	margin: 0 auto 1.6rem;
	max-width: 42ch;
	font-size: 1.02rem;
	line-height: 1.6;
	color: var(--vm-muted);
}

.vm-paywall__actions {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	flex-wrap: wrap;
}

.vm-paywall--drip {
	background:
		radial-gradient(120% 80% at 50% -10%, rgba(200, 112, 45, 0.10), transparent 60%),
		var(--vm-cream);
}

/* ---------------------------------------------------------------- Bottoni */
.vm-btn {
	display: inline-block;
	padding: 0.8rem 1.6rem;
	font-family: var(--vm-body);
	font-size: 0.96rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	border-radius: 999px;
	border: 1px solid transparent;
	transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
	cursor: pointer;
}

.vm-btn--primary {
	background: var(--vm-leaf);
	color: #fff;
	box-shadow: 0 10px 22px -12px rgba(47, 107, 67, 0.85);
}

.vm-btn--primary:hover {
	background: var(--vm-forest);
	transform: translateY(-1px);
}

.vm-btn--ghost {
	background: transparent;
	color: var(--vm-forest);
	border-color: var(--vm-leaf-soft);
}

.vm-btn--ghost:hover {
	background: rgba(76, 154, 104, 0.10);
}

/* ---------------------------------------------------------------- Prezzi */
.vm-pricing {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.5rem;
	margin: 2rem 0;
	font-family: var(--vm-body);
}

.vm-plan {
	display: flex;
	flex-direction: column;
	padding: 1.75rem;
	background: #fff;
	border: 1px solid var(--vm-sand);
	border-radius: var(--vm-radius);
	box-shadow: 0 14px 34px -26px rgba(31, 61, 43, 0.45);
	transition: transform 0.18s ease, box-shadow 0.25s ease;
}

.vm-plan:hover {
	transform: translateY(-4px);
	box-shadow: 0 22px 44px -26px rgba(31, 61, 43, 0.55);
}

.vm-plan__media img {
	border-radius: 12px;
	margin-bottom: 1rem;
}

.vm-plan__name {
	margin: 0 0 0.5rem;
	font-family: var(--vm-display);
	font-size: 1.4rem;
	color: var(--vm-forest);
}

.vm-plan__price {
	display: flex;
	align-items: baseline;
	gap: 0.4rem;
	margin-bottom: 1rem;
}

.vm-plan__amount {
	font-size: 2.1rem;
	font-weight: 700;
	color: var(--vm-ink);
	letter-spacing: -0.02em;
}

.vm-plan__suffix {
	font-size: 0.9rem;
	color: var(--vm-muted);
}

.vm-plan__desc {
	flex: 1;
	color: var(--vm-muted);
	line-height: 1.6;
	margin-bottom: 1.25rem;
}

.vm-plan__cta {
	text-align: center;
}

/* ---------------------------------------------------------- Area riservata */
.vm-account {
	font-family: var(--vm-body);
	color: var(--vm-ink);
}

.vm-account h3 {
	font-family: var(--vm-display);
	color: var(--vm-forest);
}

.vm-account__table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 1rem;
}

.vm-account__table th,
.vm-account__table td {
	text-align: left;
	padding: 0.85rem 1rem;
	border-bottom: 1px solid var(--vm-sand);
}

.vm-account__table th {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--vm-muted);
}

.vm-status {
	display: inline-block;
	padding: 0.2rem 0.7rem;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
}

.vm-status--active   { background: rgba(76, 154, 104, 0.16); color: var(--vm-forest); }
.vm-status--expired  { background: rgba(120, 120, 120, 0.16); color: #555; }
.vm-status--cancelled{ background: rgba(200, 112, 45, 0.16); color: var(--vm-accent); }
.vm-status--pending  { background: rgba(214, 188, 90, 0.22); color: #7a6310; }
