/*
 * ZEPARI — accounts, paywall and checkout.
 *
 * Hand-written (not part of the Tailwind build) so it works without a rebuild.
 * Uses the theme's colour variables from theme.css. Loaded only on
 * publications and /account/ pages (inc/accounts.php).
 */

:root {
	--zp-radius: 20px;
	--zp-radius-sm: 12px;
	--zp-ease: cubic-bezier(.22, 1, .36, 1);
	--zp-ink: var(--ink, oklch(0.22 0.045 245));
	--zp-ink-fg: var(--ink-foreground, oklch(0.96 0.01 85));
	--zp-accent: var(--accent, oklch(0.58 0.14 45));
	--zp-gold: var(--gold, oklch(0.76 0.13 78));
	--zp-muted: var(--muted-foreground, oklch(0.48 0.025 245));
	--zp-line: color-mix(in oklch, var(--border, oklch(0.88 0.015 82)) 85%, transparent);
	--zp-surface: var(--card, #fff);
	--zp-paper: var(--paper, oklch(0.975 0.01 85));
	--zp-success: var(--success, oklch(0.55 0.12 155));
	--zp-danger: var(--destructive, oklch(0.55 0.2 27));
	--zp-shadow: 0 1px 1px oklch(0.2 0.03 245 / 4%), 0 2px 6px -2px oklch(0.2 0.03 245 / 6%), 0 24px 60px -24px oklch(0.2 0.03 245 / 22%);
	--zp-display: "Source Serif 4", Georgia, serif;
}

/* ---------- Shared bits ---------- */

.zp-ico { width: 1em; height: 1em; flex: none; }
.zp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.zp-kicker {
	display: inline-flex; align-items: center; gap: .5rem;
	padding: .35rem .8rem; border-radius: 999px;
	background: color-mix(in oklch, var(--zp-accent) 9%, transparent);
	color: var(--zp-accent);
	font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.zp-kicker--light { background: oklch(1 0 0 / 8%); color: var(--zp-gold); border: 1px solid oklch(1 0 0 / 10%); }

.zp-title {
	margin-top: 1rem;
	font-family: var(--zp-display); font-weight: 500;
	font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); line-height: 1.08; letter-spacing: -.025em;
	text-wrap: balance;
}
.zp-lead { margin-top: .75rem; color: var(--zp-muted); line-height: 1.6; text-wrap: pretty; }
.zp-hint { font-size: .8rem; color: var(--zp-muted); line-height: 1.5; }

.zp-link {
	display: inline-flex; align-items: center; gap: .3rem;
	color: var(--zp-accent); font-weight: 600; font-size: .875rem;
	text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px;
	transition: text-decoration-color .2s;
}
.zp-link:hover { text-decoration-color: currentColor; }
.zp-link--muted { color: var(--zp-muted); font-weight: 500; }

.zp-badge-icon {
	display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 16px;
	background: linear-gradient(145deg, color-mix(in oklch, var(--zp-accent) 14%, white), color-mix(in oklch, var(--zp-gold) 18%, white));
	color: var(--zp-ink); font-size: 1.25rem;
	box-shadow: inset 0 1px 0 oklch(1 0 0 / 70%), 0 8px 20px -10px color-mix(in oklch, var(--zp-accent) 60%, transparent);
}
.zp-badge-icon--dark { background: linear-gradient(145deg, var(--zp-ink), color-mix(in oklch, var(--zp-ink) 70%, var(--zp-accent))); color: var(--zp-ink-fg); box-shadow: 0 10px 24px -12px var(--zp-ink); }

.zp-ticks { display: grid; gap: .8rem; list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.zp-ticks li { display: flex; gap: .7rem; align-items: flex-start; }
.zp-ticks .zp-ico { margin-top: .2em; padding: .2rem; width: 1.3rem; height: 1.3rem; border-radius: 999px; background: color-mix(in oklch, var(--zp-gold) 22%, transparent); color: var(--zp-gold); }
.zp-ticks--light { color: oklch(1 0 0 / 82%); }

/* ---------- Buttons ---------- */

.zp-btn {
	position: relative; isolation: isolate; overflow: hidden;
	display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
	min-height: 3rem; padding: .8rem 1.4rem; border-radius: 14px;
	font-weight: 600; font-size: .925rem; line-height: 1.2; text-decoration: none;
	border: 1px solid transparent; cursor: pointer;
	transition: transform .35s var(--zp-ease), box-shadow .35s var(--zp-ease), background-color .2s, border-color .2s, color .2s;
}
.zp-btn--primary {
	color: var(--zp-ink-fg);
	background: linear-gradient(180deg, color-mix(in oklch, var(--zp-ink) 88%, white), var(--zp-ink));
	box-shadow: inset 0 1px 0 oklch(1 0 0 / 14%), 0 1px 2px oklch(0 0 0 / 12%), 0 12px 28px -14px var(--zp-ink);
}
.zp-btn--primary::after { /* soft light sweep */
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(110deg, transparent 30%, oklch(1 0 0 / 16%) 50%, transparent 70%);
	transform: translateX(-120%); transition: transform .9s var(--zp-ease);
}
.zp-btn--primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 oklch(1 0 0 / 14%), 0 2px 4px oklch(0 0 0 / 12%), 0 18px 36px -14px var(--zp-ink); }
.zp-btn--primary:hover::after { transform: translateX(120%); }
.zp-btn--primary:active { transform: translateY(0) scale(.99); }
.zp-btn--ghost { color: var(--zp-ink); background: var(--zp-surface); border-color: var(--zp-line); }
.zp-btn--ghost:hover { border-color: var(--zp-accent); color: var(--zp-accent); }
.zp-btn--block { width: 100%; }
.zp-btn--lg { min-height: 3.5rem; font-size: 1rem; }
.zp-btn__arrow { transition: transform .35s var(--zp-ease); }
.zp-btn:hover .zp-btn__arrow { transform: translateX(4px); }
.zp-btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.zp-btn:focus-visible { outline: 3px solid color-mix(in oklch, var(--zp-accent) 45%, transparent); outline-offset: 3px; }

.zp-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------- Alerts and states ---------- */

.zp-alert {
	display: flex; gap: .75rem; align-items: flex-start;
	margin: 1.25rem 0; padding: .9rem 1rem; border-radius: var(--zp-radius-sm);
	font-size: .875rem; line-height: 1.5; border: 1px solid;
	animation: zp-rise .5s var(--zp-ease) both;
}
.zp-alert .zp-ico { margin-top: .15em; font-size: 1.05rem; }
.zp-alert--error { color: color-mix(in oklch, var(--zp-danger) 80%, black); background: color-mix(in oklch, var(--zp-danger) 7%, white); border-color: color-mix(in oklch, var(--zp-danger) 22%, transparent); }
.zp-alert--success { color: color-mix(in oklch, var(--zp-success) 75%, black); background: color-mix(in oklch, var(--zp-success) 8%, white); border-color: color-mix(in oklch, var(--zp-success) 25%, transparent); }

.zp-state { display: flex; gap: 1rem; align-items: flex-start; color: var(--zp-muted); line-height: 1.6; }
.zp-state__icon { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 14px; font-size: 1.2rem; }
.zp-state--success .zp-state__icon { background: color-mix(in oklch, var(--zp-success) 14%, white); color: var(--zp-success); }
.zp-state--error .zp-state__icon { background: color-mix(in oklch, var(--zp-danger) 10%, white); color: var(--zp-danger); }
.zp-state--wait .zp-state__icon { background: color-mix(in oklch, var(--zp-gold) 22%, white); color: var(--zp-ink); }
.zp-ref { margin-top: .5rem; font-size: .75rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--zp-muted); }
.zp-pulse { animation: zp-pulse 2s ease-in-out infinite; }

/* ---------- Form fields (floating labels) ---------- */

.zp-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.zp-field { position: relative; }
.zp-field input {
	width: 100%; height: 3.6rem; padding: 1.35rem 1rem .45rem;
	border: 1px solid var(--zp-line); border-radius: 14px;
	background: color-mix(in oklch, var(--zp-paper) 55%, white);
	font: inherit; font-size: .95rem; color: inherit;
	transition: border-color .2s, box-shadow .25s var(--zp-ease), background-color .2s;
}
.zp-field input:hover { border-color: color-mix(in oklch, var(--zp-ink) 25%, var(--zp-line)); }
.zp-field input:focus { outline: none; background: white; border-color: var(--zp-accent); box-shadow: 0 0 0 4px color-mix(in oklch, var(--zp-accent) 16%, transparent); }
.zp-field label {
	position: absolute; left: 1rem; top: 1.15rem; pointer-events: none;
	font-size: .95rem; color: var(--zp-muted); transform-origin: left top;
	transition: transform .25s var(--zp-ease), color .2s;
}
.zp-field input:focus + label,
.zp-field input:not(:placeholder-shown) + label { transform: translateY(-.62rem) scale(.76); color: var(--zp-ink); font-weight: 600; }
.zp-field input:focus + label { color: var(--zp-accent); }
.zp-field--password input { padding-right: 3.25rem; }
.zp-reveal {
	position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
	display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 10px;
	color: var(--zp-muted); background: transparent; border: 0; cursor: pointer; font-size: 1.1rem;
	transition: background-color .2s, color .2s;
}
.zp-reveal:hover, .zp-reveal[aria-pressed="true"] { background: color-mix(in oklch, var(--zp-ink) 6%, transparent); color: var(--zp-ink); }

.zp-form__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .875rem; }
.zp-check { display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; }
.zp-check input { width: 1.1rem; height: 1.1rem; accent-color: var(--zp-ink); }

.zp-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; margin-top: -.25rem; }
.zp-meter span { height: 4px; border-radius: 99px; background: var(--zp-line); transition: background-color .3s; }
.zp-meter[data-score="1"] span:nth-child(-n+1) { background: var(--zp-danger); }
.zp-meter[data-score="2"] span:nth-child(-n+2) { background: var(--zp-gold); }
.zp-meter[data-score="3"] span:nth-child(-n+3) { background: color-mix(in oklch, var(--zp-success) 70%, var(--zp-gold)); }
.zp-meter[data-score="4"] span { background: var(--zp-success); }
.zp-hint.is-ok { color: var(--zp-success); }
.zp-hint.is-bad { color: var(--zp-danger); }

/* ---------- Segmented switch (Sign in / Create account) ---------- */

.zp-seg {
	position: relative; display: grid; grid-template-columns: 1fr 1fr;
	padding: .3rem; border-radius: 14px; margin-top: 1.5rem;
	background: color-mix(in oklch, var(--zp-ink) 5%, transparent);
	border: 1px solid var(--zp-line);
}
.zp-seg__thumb {
	position: absolute; top: .3rem; bottom: .3rem; left: .3rem; width: calc(50% - .3rem);
	border-radius: 10px; background: var(--zp-surface);
	box-shadow: 0 1px 2px oklch(0 0 0 / 8%), 0 6px 16px -8px oklch(0.2 0.03 245 / 30%);
	transition: transform .45s var(--zp-ease);
}
.zp-seg[data-active="register"] .zp-seg__thumb { transform: translateX(100%); }
.zp-seg__btn { position: relative; z-index: 1; padding: .7rem 1rem; border: 0; background: none; font: inherit; font-size: .9rem; font-weight: 600; color: var(--zp-muted); cursor: pointer; border-radius: 10px; transition: color .25s; }
.zp-seg__btn[aria-selected="true"] { color: var(--zp-ink); }
.zp-auth form[hidden] { display: none; }

/* ---------- Cards ---------- */

.zp-card {
	position: relative; padding: clamp(1.75rem, 1rem + 3vw, 3rem);
	border-radius: calc(var(--zp-radius) + 8px); background: var(--zp-surface);
	border: 1px solid var(--zp-line); box-shadow: var(--zp-shadow);
}
.zp-card--form { width: 100%; max-width: 30rem; }
.zp-foot { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px dashed var(--zp-line); text-align: center; }

/* ---------- Account pages ---------- */

.zp-account {
	padding: clamp(2rem, 1rem + 4vw, 5rem) 1rem;
	background:
		radial-gradient(60rem 30rem at 100% 0%, color-mix(in oklch, var(--zp-gold) 14%, transparent), transparent 60%),
		radial-gradient(50rem 30rem at 0% 100%, color-mix(in oklch, var(--zp-accent) 9%, transparent), transparent 60%),
		var(--zp-paper);
}
.zp-account__shell { max-width: 72rem; margin: 0 auto; display: grid; gap: 1.5rem; align-items: stretch; }
@media (min-width: 960px) { .zp-account__shell { grid-template-columns: 1fr 1.1fr; } }
.zp-account__brand {
	position: relative; overflow: hidden; display: none; flex-direction: column; justify-content: flex-end; gap: 1.75rem;
	min-height: 36rem; padding: 3rem; border-radius: calc(var(--zp-radius) + 8px);
	background: linear-gradient(160deg, color-mix(in oklch, var(--zp-ink) 92%, var(--zp-accent)), var(--zp-ink) 60%);
	color: var(--zp-ink-fg); box-shadow: var(--zp-shadow);
}
@media (min-width: 960px) { .zp-account__brand { display: flex; } }
.zp-account__glow, .zp-co__glow {
	position: absolute; inset: auto -20% -40% auto; width: 32rem; height: 32rem; border-radius: 50%;
	background: radial-gradient(closest-side, color-mix(in oklch, var(--zp-gold) 45%, transparent), transparent);
	filter: blur(20px); opacity: .55; pointer-events: none;
	animation: zp-drift 14s ease-in-out infinite alternate;
}
.zp-account__brand::before { /* fine grid texture */
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
	background-image: linear-gradient(oklch(1 0 0 / 5%) 1px, transparent 1px), linear-gradient(90deg, oklch(1 0 0 / 5%) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: linear-gradient(to bottom, black, transparent 75%);
}
.zp-account__brand > *:not(.zp-account__glow) { position: relative; }
.zp-account__brand .zp-kicker { align-self: flex-start; }
.zp-account__quote { font-family: var(--zp-display); font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.zp-account__panel { display: grid; place-items: center; }
.zp-account .zp-badge-icon { margin-bottom: .25rem; }

/* ---------- Paywall (publication page) ---------- */

.zp-lock {
	position: relative; overflow: hidden; padding: 1.75rem;
	border-radius: calc(var(--zp-radius) + 4px); background: var(--zp-surface);
	border: 1px solid var(--zp-line); box-shadow: var(--zp-shadow);
}
.zp-lock::before { /* gradient hairline */
	content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
	background: linear-gradient(140deg, color-mix(in oklch, var(--zp-accent) 55%, transparent), transparent 35%, transparent 65%, color-mix(in oklch, var(--zp-gold) 60%, transparent));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.zp-lock__head { display: flex; align-items: center; justify-content: space-between; }
.zp-lock__price { font-family: var(--zp-display); font-size: 2.25rem; letter-spacing: -.03em; }
.zp-lock__title { margin-top: 1.25rem; font-family: var(--zp-display); font-size: 1.3rem; line-height: 1.25; }
.zp-lock__text { margin: .5rem 0 1.5rem; font-size: .875rem; color: var(--zp-muted); line-height: 1.6; }
.zp-lock__foot { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px dashed var(--zp-line); font-size: .8rem; color: var(--zp-muted); text-align: center; }
.zp-lock__foot .zp-link { font-size: .8rem; }
.zp-secure { display: flex; align-items: center; gap: .45rem; margin-top: .9rem; font-size: .75rem; color: var(--zp-muted); }
.zp-secure--center { justify-content: center; }
.zp-owned {
	display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1rem; padding: .35rem .75rem; border-radius: 999px;
	background: color-mix(in oklch, var(--zp-success) 12%, white); color: var(--zp-success);
	font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}

.zp-teaser { position: relative; min-height: 21rem; margin-top: 3rem; overflow: hidden; border-radius: calc(var(--zp-radius) + 4px); border: 1px solid var(--zp-line); background: var(--zp-paper); }
.zp-teaser__ghost { display: grid; gap: .8rem; padding: 2.25rem; filter: blur(3px); user-select: none; }
.zp-teaser__ghost i { display: block; height: .7rem; border-radius: 99px; background: color-mix(in oklch, var(--zp-ink) 10%, transparent); }
.zp-teaser__ghost i:nth-child(1), .zp-teaser__ghost i:nth-child(5) { height: 1.1rem; width: 38%; background: color-mix(in oklch, var(--zp-ink) 18%, transparent); }
.zp-teaser__ghost i:nth-child(5) { margin-top: 1rem; }
.zp-teaser__ghost i:nth-child(3) { width: 92%; } .zp-teaser__ghost i:nth-child(4) { width: 78%; } .zp-teaser__ghost i:nth-child(7) { width: 70%; }
.zp-teaser__veil {
	position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; padding: 1.5rem; text-align: center;
	background: linear-gradient(180deg, color-mix(in oklch, var(--zp-paper) 30%, transparent), color-mix(in oklch, var(--zp-paper) 88%, transparent) 45%, var(--zp-paper));
	backdrop-filter: blur(2px);
}
.zp-teaser__veil > * { flex-shrink: 0; margin: 0; }
.zp-teaser__title { margin-top: .75rem; font-family: var(--zp-display); font-size: 1.3rem; line-height: 1.25; max-width: 28rem; }
.zp-teaser__text { margin-bottom: 1rem; font-size: .875rem; color: var(--zp-muted); }

/* ---------- Checkout ---------- */

.zp-co {
	scroll-margin-top: 6rem; padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) 0;
	background:
		radial-gradient(50rem 24rem at 10% 0%, color-mix(in oklch, var(--zp-accent) 8%, transparent), transparent 60%),
		var(--zp-paper);
	border-bottom: 1px solid var(--zp-line);
}
.zp-co__shell {
	max-width: 72rem; margin: 0 auto; display: grid; overflow: hidden;
	border-radius: calc(var(--zp-radius) + 8px); background: var(--zp-surface);
	border: 1px solid var(--zp-line); box-shadow: var(--zp-shadow);
}
@media (min-width: 1024px) { .zp-co__shell { grid-template-columns: 1.55fr 1fr; } }
.zp-co__main { padding: clamp(1.75rem, 1rem + 3vw, 3.25rem); }
.zp-co__body { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--zp-line); }
.zp-co__body > .zp-alert:first-child { margin-top: 0; }
.zp-co__body .zp-auth .zp-seg { margin-top: 0; }

.zp-steps {
	--zp-progress: 0;
	position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
	margin: 2.25rem 0 0; padding: 0; list-style: none;
}
.zp-steps::before, .zp-steps::after { /* track and progress line through the dots */
	content: ""; position: absolute; top: 1.1rem; left: 1.1rem; right: calc(33.333% - 1.1rem); height: 2px; border-radius: 2px;
	background: var(--zp-line);
}
.zp-steps::after {
	right: auto; width: calc(66.666% * var(--zp-progress));
	background: linear-gradient(90deg, var(--zp-ink), var(--zp-accent));
	transition: width .8s var(--zp-ease);
}
.zp-step { position: relative; z-index: 1; display: flex; flex-direction: column; gap: .7rem; }
.zp-step__dot {
	display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 999px;
	font-size: .8rem; font-weight: 700; background: var(--zp-surface); color: var(--zp-muted);
	border: 2px solid var(--zp-line);
	transition: all .4s var(--zp-ease);
}
.zp-step__text { display: grid; gap: .1rem; }
.zp-step__text strong { font-size: .9rem; font-weight: 600; color: var(--zp-muted); }
.zp-step__text small { font-size: .75rem; color: var(--zp-muted); opacity: .85; }
.zp-step.is-done .zp-step__dot { background: var(--zp-ink); border-color: var(--zp-ink); color: var(--zp-ink-fg); }
.zp-step.is-current .zp-step__dot { background: var(--zp-accent); border-color: var(--zp-accent); color: white; box-shadow: 0 0 0 6px color-mix(in oklch, var(--zp-accent) 16%, transparent); }
.zp-step.is-failed .zp-step__dot { background: var(--zp-danger); border-color: var(--zp-danger); color: white; box-shadow: 0 0 0 6px color-mix(in oklch, var(--zp-danger) 14%, transparent); }
.zp-step.is-done strong, .zp-step.is-current strong, .zp-step.is-failed strong { color: var(--zp-ink); }
@media (max-width: 520px) { .zp-step__text small { display: none; } }

.zp-who {
	display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem;
	border-radius: 16px; border: 1px solid var(--zp-line); background: color-mix(in oklch, var(--zp-paper) 60%, white);
}
.zp-who__text { display: grid; flex: 1; min-width: 0; }
.zp-who__text strong { font-size: .925rem; }
.zp-who__text small { font-size: .8rem; color: var(--zp-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zp-avatar {
	display: grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; border-radius: 999px;
	background: linear-gradient(145deg, var(--zp-ink), color-mix(in oklch, var(--zp-ink) 60%, var(--zp-accent)));
	color: var(--zp-ink-fg); font-weight: 700;
}
.zp-methods { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.25rem; }
.zp-methods span {
	padding: .3rem .65rem; border-radius: 8px; border: 1px solid var(--zp-line);
	font-size: .72rem; font-weight: 600; color: var(--zp-muted); background: var(--zp-surface);
}
.zp-co .zp-hint { margin-top: .75rem; }

.zp-co__summary {
	position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 1.75rem;
	padding: clamp(1.75rem, 1rem + 3vw, 3rem);
	background: linear-gradient(165deg, color-mix(in oklch, var(--zp-ink) 90%, var(--zp-accent)), var(--zp-ink) 55%);
	color: var(--zp-ink-fg);
}
.zp-co__summary > *:not(.zp-co__glow) { position: relative; }
.zp-co__summary .zp-kicker { align-self: flex-start; }
.zp-item { display: flex; gap: 1rem; align-items: flex-start; }
.zp-item__cover { width: 4.75rem; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; flex: none; box-shadow: 0 14px 30px -12px oklch(0 0 0 / 60%); }
.zp-item__cover--blank { display: grid; place-items: center; background: oklch(1 0 0 / 8%); border: 1px solid oklch(1 0 0 / 12%); font-size: 1.5rem; color: var(--zp-gold); }
.zp-item small { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: oklch(1 0 0 / 55%); }
.zp-item p { margin-top: .3rem; font-family: var(--zp-display); font-size: 1.15rem; line-height: 1.3; }
.zp-total {
	display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto;
	padding: 1.25rem 1.25rem; border-radius: 16px;
	background: oklch(1 0 0 / 6%); border: 1px solid oklch(1 0 0 / 10%);
	backdrop-filter: blur(8px);
}
.zp-total span { font-size: .85rem; color: oklch(1 0 0 / 65%); }
.zp-total strong { font-family: var(--zp-display); font-weight: 500; font-size: 2.4rem; line-height: 1; letter-spacing: -.03em; }
.zp-co__summary .zp-secure { margin: 0; color: oklch(1 0 0 / 55%); }

/* Inside article text (.prose-z), keep component styling. */
.prose-z .zp-teaser a.zp-btn, .entry-content .zp-teaser a.zp-btn { color: var(--zp-ink-fg); text-decoration: none; }
.prose-z .zp-teaser p, .entry-content .zp-teaser p { margin: 0; }
.prose-z .zp-teaser .zp-teaser__title { margin-top: .75rem; }
.prose-z .zp-teaser .zp-teaser__text { margin-bottom: 1rem; }
a.zp-btn--primary, a.zp-btn--primary:hover { color: var(--zp-ink-fg); }

/* ---------- Motion ---------- */

.zp-rise { animation: zp-rise .7s var(--zp-ease) both; }
@keyframes zp-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes zp-pulse { 50% { transform: scale(1.06); opacity: .75; } }
@keyframes zp-drift { to { transform: translate(-3rem, -2rem) scale(1.1); } }
@media (prefers-reduced-motion: reduce) {
	.zp-rise, .zp-alert, .zp-pulse, .zp-account__glow, .zp-co__glow { animation: none; }
	.zp-btn, .zp-seg__thumb, .zp-steps::after, .zp-field label { transition: none; }
}

/* ---------- Free download: sign-in prompt (publication sidebar) ---------- */

.zp-gate { display: grid; gap: .5rem; }
.zp-gate .zp-badge-icon { width: 2.75rem; height: 2.75rem; border-radius: 14px; font-size: 1.1rem; margin-bottom: .5rem; }
.zp-gate__title { font-family: var(--zp-display); font-size: 1.3rem; line-height: 1.25; }
.zp-gate__text { margin-bottom: 1rem; font-size: .875rem; color: var(--zp-muted); line-height: 1.6; }
.zp-gate__foot { margin-top: .75rem; font-size: .8rem; color: var(--zp-muted); text-align: center; }
.zp-gate__foot .zp-link { font-size: .8rem; }

/* ---------- Account bar (publication pages) ---------- */

.zp-bar {
	border-bottom: 1px solid var(--zp-line);
	background: linear-gradient(90deg, color-mix(in oklch, var(--zp-gold) 10%, var(--zp-surface)), var(--zp-surface) 55%);
}
.zp-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; flex-wrap: wrap; padding-block: .8rem; }
.zp-bar__who { display: flex; align-items: center; gap: .7rem; margin: 0; font-size: .875rem; color: var(--zp-muted); }
.zp-bar__who strong { color: var(--zp-ink); font-weight: 600; }
.zp-bar__icon { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px; background: color-mix(in oklch, var(--zp-accent) 10%, white); color: var(--zp-accent); }
.zp-bar__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.zp-btn--sm { min-height: 2.4rem; padding: .5rem 1rem; border-radius: 11px; font-size: .825rem; gap: .45rem; }
.zp-avatar--sm { width: 2rem; height: 2rem; font-size: .8rem; }
.zp-avatar--lg { width: 4rem; height: 4rem; font-size: 1.5rem; border-radius: 20px; }

/* ---------- Dashboard (/account/dashboard/) ---------- */

.zp-dash__hero {
	padding: clamp(2.5rem, 1.5rem + 3vw, 4rem) 0 0;
	border-bottom: 1px solid var(--zp-line);
	background:
		radial-gradient(50rem 22rem at 100% 0%, color-mix(in oklch, var(--zp-gold) 16%, transparent), transparent 60%),
		radial-gradient(40rem 20rem at 0% 100%, color-mix(in oklch, var(--zp-accent) 8%, transparent), transparent 60%),
		var(--zp-paper);
}
.zp-dash__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.zp-dash__who { display: flex; align-items: center; gap: 1.25rem; }
.zp-dash__who .zp-title { margin-top: .6rem; }
.zp-dash__who .zp-lead { margin-top: .35rem; font-size: .9rem; }
.zp-dash__actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.zp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 2.25rem 0 0; transform: translateY(50%); }
.zp-stats > div {
	padding: 1.1rem 1.25rem; border-radius: 18px; background: var(--zp-surface);
	border: 1px solid var(--zp-line); box-shadow: var(--zp-shadow);
}
.zp-stats dt { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--zp-muted); }
.zp-stats dd { margin: .3rem 0 0; font-family: var(--zp-display); font-size: 2.1rem; line-height: 1; letter-spacing: -.02em; }
.zp-dash__body { padding-block: clamp(4.5rem, 3rem + 4vw, 6rem) clamp(3rem, 2rem + 3vw, 5rem); }
.zp-dash__h2 { font-family: var(--zp-display); font-size: 1.6rem; letter-spacing: -.015em; margin-bottom: 1.5rem; }

.zp-lib { display: grid; gap: 1rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px) { .zp-lib { grid-template-columns: 1fr 1fr; } }
.zp-lib__item {
	display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.25rem; align-items: start;
	padding: 1.1rem; border-radius: 20px; background: var(--zp-surface);
	border: 1px solid var(--zp-line);
	transition: transform .4s var(--zp-ease), box-shadow .4s var(--zp-ease), border-color .2s;
}
.zp-lib__item:hover { transform: translateY(-2px); box-shadow: var(--zp-shadow); border-color: color-mix(in oklch, var(--zp-accent) 30%, var(--zp-line)); }
.zp-lib__cover { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 12px; background: var(--zp-paper); }
.zp-lib__cover img { width: 100%; height: 100%; object-fit: cover; }
.zp-lib__cover span { display: grid; place-items: center; height: 100%; font-size: 1.6rem; color: var(--zp-muted); }
.zp-lib__meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: 0; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--zp-accent); }
.zp-lib__title { margin-top: .4rem; font-family: var(--zp-display); font-size: 1.1rem; line-height: 1.3; }
.zp-lib__title a { color: inherit; text-decoration: none; }
.zp-lib__title a:hover { color: var(--zp-accent); }
.zp-lib__date { margin-top: .35rem; font-size: .8rem; color: var(--zp-muted); }
.zp-lib__actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .9rem; }
.zp-tag { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: 999px; letter-spacing: .06em; }
.zp-tag--gold { background: color-mix(in oklch, var(--zp-gold) 22%, white); color: var(--zp-ink); }

.zp-empty { max-width: 34rem; margin: 0 auto; padding: 3rem 2rem; text-align: center; border-radius: 24px; border: 1px dashed var(--zp-line); background: var(--zp-surface); display: grid; justify-items: center; gap: .6rem; }
.zp-empty__title { margin-top: .5rem; font-family: var(--zp-display); font-size: 1.5rem; }
.zp-empty__text { margin-bottom: 1rem; color: var(--zp-muted); line-height: 1.6; }

@media (max-width: 640px) {
	.zp-stats { grid-template-columns: 1fr 1fr 1fr; gap: .5rem; }
	.zp-stats > div { padding: .8rem; }
	.zp-stats dd { font-size: 1.5rem; }
	.zp-lib__item { grid-template-columns: 4.25rem 1fr; }
}
