/* ===== Base + header (from main.css, trimmed for app pages) ===== */
:root {
	--void: #070708;
	--night: #0c0c0f;
	--gold: #c9a36a;
	--gold-hi: #e8c98a;
	--bone: #f3eee4;
	--mist: #8e877c;
	--line: rgba(201, 163, 106, 0.32);
	--glass: rgba(7, 7, 8, 0.55);
	--panel: rgba(8, 8, 10, 0.28);
	--ice: #8fb4c6;
	--serif: "Cormorant Garamond", "Times New Roman", serif;
	--sans: "Outfit", "Helvetica Neue", sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;
	--space: clamp(1.25rem, 3vw, 2.5rem);
	--wrap: 1180px;
	--wrap-wide: 1340px;
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html.cu-html {
	background: var(--void);
	color: var(--bone);
	scroll-behavior: smooth;
}

body.cu-body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--sans);
	font-weight: 300;
	font-size: 16px;
	line-height: 1.6;
	background: transparent;
	color: var(--bone);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; cursor: pointer; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

.cu-sr,
.screen-reader-text,
.cu-skip:not(:focus) {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.cu-skip:focus {
	position: fixed;
	z-index: 80;
	top: 12px;
	left: 12px;
	padding: 0.6rem 1rem;
	background: var(--gold);
	color: var(--void);
}

:focus-visible {
	outline: 1px solid var(--gold);
	outline-offset: 3px;
}

.cu-wrap {
	width: min(var(--wrap), calc(100% - 2 * var(--space)));
	margin-inline: auto;
}

.cu-wrap--wide {
	width: min(var(--wrap-wide), calc(100% - 2 * var(--space)));
}


.cu-header,
.cu-main,
.cu-footer,
.cu-search {
	position: relative;
	z-index: 2;
}

/* —— Header —— */
.cu-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 20;
	padding: 1.15rem var(--space) 0;
	transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}

.cu-header.is-scrolled {
	background: rgba(7, 7, 8, 0.72);
	backdrop-filter: blur(16px);
	padding-bottom: 0.85rem;
	border-bottom: 1px solid rgba(201, 163, 106, 0.12);
}

.cu-header__bar {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1.5rem;
	width: min(1320px, 100%);
	margin-inline: auto;
}

.cu-logo {
	display: flex;
	flex-direction: column;
	line-height: 0.9;
}

.cu-logo__charly {
	font-family: var(--serif);
	font-size: 1.35rem;
	font-weight: 500;
	color: var(--gold);
	letter-spacing: 0.04em;
}

.cu-logo__universe {
	font-size: 0.62rem;
	letter-spacing: 0.46em;
	text-transform: uppercase;
	color: var(--bone);
	margin-left: 0.08rem;
}

.cu-nav__list {
	display: flex;
	justify-content: center;
	gap: clamp(1.1rem, 2.4vw, 2.4rem);
}

.cu-nav a {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.72rem;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: rgba(243, 238, 228, 0.82);
	transition: color 0.25s;
}

.cu-secure-mark {
	width: 1.15rem;
	height: 1.15rem;
	border-radius: 0.28rem;
	object-fit: cover;
	flex: 0 0 auto;
}

.cu-nav a:hover,
.cu-nav .current-menu-item > a { color: var(--gold-hi); }

.cu-tools {
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.cu-icon-btn {
	position: relative;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	color: var(--bone);
	transition: color 0.25s;
}

.cu-icon-btn:hover { color: var(--gold); }

.cu-cart-count {
	position: absolute;
	top: 6px;
	right: 4px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 99px;
	background: var(--gold);
	color: var(--void);
	font-size: 0.62rem;
	font-weight: 500;
	line-height: 16px;
	text-align: center;
}

.cu-burger {
	display: none;
	width: 44px;
	height: 44px;
	place-items: center;
	gap: 6px;
}

.cu-burger span {
	display: block;
	width: 18px;
	height: 1px;
	background: var(--bone);
}

.cu-search {
	position: fixed;
	inset: 0;
	z-index: 40;
	display: grid;
	place-items: center;
	background: rgba(7, 7, 8, 0.88);
	backdrop-filter: blur(18px);
}

.cu-search[hidden] { display: none; }

.cu-search__form {
	display: grid;
	gap: 1rem;
	width: min(560px, calc(100% - 2 * var(--space)));
}

.cu-search input[type="search"] {
	width: 100%;
	padding: 1rem 0;
	border: 0;
	border-bottom: 1px solid var(--gold);
	background: transparent;
	color: var(--bone);
	font-family: var(--serif);
	font-size: 1.8rem;
	outline: none;
}

.cu-search__close {
	position: absolute;
	top: 1.4rem;
	right: var(--space);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-size: 0.7rem;
	color: var(--mist);
}


.cu-kicker {
	margin: 0 0 0.7rem;
	font-size: 0.68rem;
	letter-spacing: 0.38em;
	text-transform: uppercase;
	color: var(--gold);
}

.cu-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	min-height: 48px;
	padding: 0.85rem 1.35rem;
	border: 1px solid var(--gold);
	font-size: 0.72rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.cu-btn--ghost { color: var(--gold-hi); }
.cu-btn--ghost:hover { background: var(--gold); color: var(--void); }
.cu-btn--solid { background: var(--gold); color: var(--void); border-color: var(--gold); }
.cu-btn--solid:hover { background: var(--gold-hi); }

/* —— Footer / pages —— */
.cu-footer {
	border-top: 1px solid rgba(201, 163, 106, 0.12);
	padding-top: 2.6rem;
}

body:not(.cu-is-home) .cu-footer {
	margin-top: 1rem;
	background: rgba(7, 7, 8, 0.78);
	backdrop-filter: blur(18px);
}

.cu-footer__grid {
	display: flex;
	justify-content: space-between;
	gap: 2rem;
	padding-bottom: 2rem;
}

.cu-footer__tag { color: var(--mist); max-width: 18rem; }
.cu-footer__list { display: grid; gap: 0.45rem; }
.cu-footer__list a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-size: 0.7rem;
	color: var(--mist);
}
.cu-footer__list a:hover { color: var(--gold); }

.cu-footer__legal {
	border-top: 1px solid rgba(201, 163, 106, 0.1);
	padding: 1rem 0 1.3rem;
	color: var(--mist);
	font-size: 0.8rem;
}

.cu-page { padding: 9.5rem 0 6rem; }
.cu-page--center { text-align: left; max-width: 40rem; }
.cu-empty { color: var(--mist); max-width: 28rem; }

.cu-prose :where(h1, h2, h3) { font-family: var(--serif); font-weight: 500; }
.cu-prose a { color: var(--gold); }

body:not(.cu-is-home) .cu-header {
	background: rgba(7, 7, 8, 0.72);
	backdrop-filter: blur(18px);
	padding-bottom: 0.9rem;
	border-bottom: 1px solid rgba(201, 163, 106, 0.12);
}

.cu-hud { display: none; }

@media (max-width: 900px) {
	.cu-nav {
		position: fixed;
		inset: 0 0 0 auto;
		width: min(320px, 86vw);
		padding: 6rem 1.6rem 2rem;
		background: rgba(7, 7, 8, 0.94);
		border-left: 1px solid rgba(201, 163, 106, 0.16);
		transform: translateX(104%);
		transition: transform 0.35s var(--ease);
	}

	.cu-nav.is-open { transform: none; }
	.cu-nav__list { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
}

/* ===================================================================
   Charly Univers — app pages (customer space, cart, checkout)
   Light, quiet, one accent (gold) + ink.
   =================================================================== */

.cu-is-app {
	--ink: #141416;
	--ink-soft: #5b5852;
	--mute: #8a857c;
	--paper: #ffffff;
	--bg: #f6f3ee;
	--line: #ebe5da;
	--gold-ink: #8a6a3a;
	--gold-2: #b08850;
	--ok: #1f6b3a;
	--ok-bg: #e8f3ec;
	--wait: #8a5a12;
	--wait-bg: #fbf1de;
	--r: 18px;
	--shadow: 0 1px 0 rgba(20, 20, 22, 0.03), 0 18px 40px -32px rgba(20, 20, 22, 0.35);
}

@media (max-width: 900px) { .cu-burger { display: grid; } }

html.cu-html--app { background: var(--bg, #f6f3ee); }
body.cu-is-app {
	background: #f6f3ee;
	color: var(--ink);
	font-weight: 400;
}
.ax-main a { color: inherit; }
.cu-is-app .cu-header { background: rgba(9, 9, 11, 0.94) !important; }
.cu-is-app .cu-logo { gap: 0.3rem; line-height: 1; }
.cu-is-app .cu-logo__charly { font-size: 1.32rem; text-transform: uppercase; letter-spacing: 0.26em; }
.cu-is-app .cu-logo__universe { font-family: var(--serif); font-size: 0.86rem; font-weight: 500; letter-spacing: 0.5em; margin-left: 0; }
.cu-is-app .cu-footer { background: #0b0b0c !important; margin-top: 0 !important; color: var(--mist); }

.ax-main {
	min-height: 100vh;
	padding: calc(76px + clamp(2rem, 5vw, 3.5rem)) 0 clamp(4rem, 8vw, 6rem);
}
.ax-wrap { width: min(1200px, calc(100% - 2 * var(--space))); margin-inline: auto; }
.ax-page-head { margin-bottom: 2rem; }
.ax-page-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; color: var(--ink); }

/* —— primitives —— */
.ax-kicker { margin: 0 0 0.5rem; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-ink); }
.ax-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.05; color: var(--ink); }
.ax-head { margin-bottom: 1.8rem; }
.ax-muted { margin: 0; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.55; }
.ax-small { margin: 0; color: var(--mute); font-size: 0.8rem; }
.ax-link { font-size: 0.86rem; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.ax-link:hover { border-color: var(--gold-2); color: var(--gold-ink); }

.ax-btn,
.cu-is-app .hx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	min-height: 46px;
	padding: 0 1.3rem;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--paper);
	color: var(--ink) !important;
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.ax-btn:hover { border-color: var(--ink); }
.ax-btn--ink,
.ax-btn--play,
.cu-is-app .hx-btn--ink { background: var(--ink); border-color: var(--ink); color: #fff !important; }
.ax-btn--ink:hover,
.ax-btn--play:hover,
.cu-is-app .hx-btn--ink:hover { background: #2a2a2e; transform: translateY(-1px); }
.ax-btn--play svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.ax-btn--lg { min-height: 54px; padding: 0 1.7rem; font-size: 0.8rem; }

.ax-progress { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 0.9rem 0 0.45rem; }
.ax-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-2), #d2ab6f); transition: width 0.4s var(--ease); }
.ax-progress--lg { height: 8px; }

.ax-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	padding: 0.28rem 0.7rem;
	border-radius: 99px;
	font-size: 0.72rem;
	font-weight: 500;
	white-space: nowrap;
	background: #efece6;
	color: var(--ink-soft);
}
.ax-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.8; }
.ax-pill--ok { background: var(--ok-bg); color: var(--ok); }
.ax-pill--wait { background: var(--wait-bg); color: var(--wait); }

.ax-empty { display: grid; justify-items: start; gap: 1rem; padding: 1.6rem 0; color: var(--ink-soft); }
.ax-empty p { margin: 0; }
.ax-empty--big { justify-items: center; text-align: center; padding: 4rem 1rem; background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); }
.ax-empty--big > svg { width: 36px; height: 36px; color: var(--gold-2); }

/* —— account layout —— */
.cu-is-app .ax-account .woocommerce-MyAccount-navigation,
.cu-is-app .ax-account .woocommerce-MyAccount-content { float: none; width: auto; margin: 0; }
.cu-is-app .ax-account::before,
.cu-is-app .ax-account::after { display: none; }
.ax-btn { white-space: nowrap; }
.ax-account { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }

.ax-side {
	position: sticky;
	top: 100px;
	padding: 1.1rem;
	border-radius: var(--r);
	background: var(--paper);
	box-shadow: var(--shadow);
}
.ax-user { display: flex; align-items: center; gap: 0.8rem; padding: 0.4rem 0.4rem 1.1rem; margin-bottom: 0.6rem; border-bottom: 1px solid var(--line); }
.ax-user__avatar { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--serif); font-size: 1.2rem; }
.ax-user__meta { display: grid; min-width: 0; }
.ax-user__meta strong { font-size: 0.95rem; font-weight: 500; }
.ax-user__meta span { font-size: 0.78rem; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ax-nav ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ax-nav a {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.7rem 0.75rem;
	border-radius: 12px;
	font-size: 0.92rem;
	color: var(--ink-soft);
	transition: background 0.2s, color 0.2s;
}
.ax-nav a:hover { background: var(--bg); color: var(--ink); }
.ax-nav .is-active a { background: var(--bg); color: var(--ink); font-weight: 500; }
.ax-nav .is-active svg { color: var(--gold-2); }
.ax-nav__item--out { margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--line); }
.ax-nav__item--out a { color: var(--mute); }

/* —— dashboard —— */
.ax-notice {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.6rem 1rem;
	margin-bottom: 1.4rem;
	padding: 0.95rem 1.2rem;
	border-radius: 14px;
	background: var(--wait-bg);
	color: var(--wait);
	font-size: 0.92rem;
}
.ax-notice p { margin: 0; flex: 1; min-width: 220px; }
.ax-notice a { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.ax-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: ax-pulse 2s infinite; }

.ax-resume {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 1.6rem;
	align-items: center;
	margin-bottom: 1.4rem;
	padding: 1.3rem;
	border-radius: var(--r);
	background: var(--paper);
	box-shadow: var(--shadow);
}
.ax-resume__cover { display: block; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: #111; box-shadow: 0 20px 30px -20px rgba(0, 0, 0, 0.6); }
.ax-resume__cover img { width: 100%; height: 100%; object-fit: cover; }
.ax-resume__title { margin: 0 0 0.35rem; font-family: var(--serif); font-weight: 500; font-size: 1.7rem; line-height: 1.1; }
.ax-resume .ax-btn { margin-top: 1rem; }

.ax-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.4rem; }
.ax-tile {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	column-gap: 0.9rem;
	align-items: center;
	padding: 1.1rem 1.2rem;
	border-radius: var(--r);
	background: var(--paper);
	box-shadow: var(--shadow);
	transition: transform 0.3s var(--ease);
}
.ax-tile:hover { transform: translateY(-2px); }
.ax-tile svg { grid-row: 1 / 3; width: 26px; height: 26px; color: var(--gold-2); }
.ax-tile strong { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; line-height: 1; }
.ax-tile span { font-size: 0.82rem; color: var(--ink-soft); }

.ax-block { margin-top: 1.4rem; padding: 1.3rem 1.4rem; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); }
.ax-block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.6rem; }
.ax-block__head h3 { margin: 0; font-family: var(--serif); font-size: 1.4rem; font-weight: 500; }
.ax-block__head a { font-size: 0.84rem; color: var(--gold-ink); }

.ax-list { margin: 0; padding: 0; list-style: none; }
.ax-list li + li { border-top: 1px solid var(--line); }
.ax-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 1rem; padding: 0.9rem 0.3rem; border-radius: 10px; transition: background 0.2s; }
.ax-list a:hover { background: var(--bg); }
.ax-list__main { display: grid; min-width: 0; }
.ax-list__main strong { font-weight: 500; font-size: 0.95rem; }
.ax-list__main .ax-muted { font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-list__amount { font-weight: 500; font-size: 0.95rem; }

/* —— library —— */
.ax-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.2rem; margin: 0; padding: 0; list-style: none; }
.ax-book { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r); overflow: hidden; background: var(--paper); box-shadow: var(--shadow); }
.ax-book__cover { position: relative; display: block; aspect-ratio: 4 / 5; background: #111; overflow: hidden; }
.ax-book__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.ax-book:hover .ax-book__cover img { transform: scale(1.04); }
.ax-book__play {
	position: absolute;
	right: 14px;
	bottom: 14px;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #fff;
	color: var(--ink);
	box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.6);
	transition: transform 0.3s var(--ease);
}
.ax-book__play svg { width: 20px; height: 20px; fill: currentColor; stroke: none; margin-left: 2px; }
.ax-book:hover .ax-book__play { transform: scale(1.08); }
.ax-book.is-locked .ax-book__cover img { filter: grayscale(0.7) brightness(0.6); }
.ax-book__body { display: grid; align-content: start; gap: 0.3rem; padding: 1.1rem 1.2rem 1.3rem; }
.ax-book__title { margin: 0; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; line-height: 1.15; }
.ax-book .ax-btn { justify-self: start; margin-top: 0.7rem; }
.ax-book .ax-pill { justify-self: start; margin-top: 0.6rem; }

/* —— offers —— */
.ax-offers { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.ax-offer { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 1.2rem; padding: 1.2rem; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); }
.ax-offer__img { width: 72px; height: 72px; border-radius: 14px; overflow: hidden; background: #111; }
.ax-offer__img.is-logo { background: #fff; border: 1px solid var(--line); padding: 10px; }
.ax-offer__img img { width: 100%; height: 100%; object-fit: cover; }
.ax-offer__img.is-logo img { object-fit: contain; }
.ax-offer__top { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 0.8rem; margin-bottom: 0.3rem; }
.ax-offer__top h3 { margin: 0; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.ax-offer__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.8rem 1.2rem; margin-top: 0.9rem; }

.ax-suggest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0.4rem 0 0; padding: 0; list-style: none; }
.ax-suggest a { display: grid; gap: 0.3rem; }
.ax-suggest__img { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #111; margin-bottom: 0.4rem; }
.ax-suggest__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.ax-suggest a:hover img { transform: scale(1.04); }
.ax-suggest strong { font-weight: 500; font-size: 0.92rem; }

/* —— player —— */
.ax-back { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1.2rem; font-size: 0.86rem; color: var(--ink-soft); }
.ax-back:hover { color: var(--ink); }

.ax-player__hero {
	display: grid;
	grid-template-columns: minmax(180px, 250px) minmax(0, 1fr);
	gap: clamp(1.4rem, 3vw, 2.6rem);
	align-items: center;
	padding: clamp(1.2rem, 2.5vw, 2rem);
	border-radius: 24px;
	background: var(--paper);
	box-shadow: var(--shadow);
}
.ax-player__cover { aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: #111; box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.7); }
.ax-player__cover img { width: 100%; height: 100%; object-fit: cover; }
.ax-player__title { margin: 0 0 0.5rem; font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.02; }
.ax-player__info .ax-btn { margin-top: 1.3rem; }
.ax-player.is-playing [data-cu-main] { background: var(--gold-2); border-color: var(--gold-2); }

.ax-chapters { margin: 0; padding: 0; list-style: none; counter-reset: ch; }
.ax-ch + .ax-ch { border-top: 1px solid var(--line); }
.ax-ch__btn {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) auto;
	align-items: center;
	gap: 1rem;
	width: 100%;
	padding: 0.85rem 0.5rem;
	border: 0;
	border-radius: 12px;
	background: none;
	text-align: left;
	color: var(--ink);
	cursor: pointer;
	font: inherit;
	transition: background 0.2s;
}
.ax-ch__btn:hover { background: var(--bg); }
.ax-ch__num { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); font-size: 0.85rem; color: var(--ink-soft); }
.ax-ch__icon, .ax-ch__eq { position: absolute; inset: 0; display: none; place-items: center; }
.ax-ch__icon svg { width: 14px; height: 14px; fill: currentColor; stroke: none; margin-left: 2px; }
.ax-ch__btn:hover .ax-ch__n { display: none; }
.ax-ch__btn:hover .ax-ch__icon { display: grid; }
.ax-ch__text { display: grid; gap: 0.4rem; min-width: 0; }
.ax-ch__title { font-size: 0.98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-ch__bar { height: 3px; border-radius: 99px; background: var(--line); overflow: hidden; }
.ax-ch__bar span { display: block; height: 100%; background: var(--gold-2); }
.ax-ch__meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.ax-ch__check { display: none; color: var(--ok); }
.ax-ch.is-done .ax-ch__check { display: inline-flex; }
.ax-ch.is-done .ax-ch__title { color: var(--ink-soft); }
.ax-ch.is-current .ax-ch__btn { background: var(--bg); }
.ax-ch.is-current .ax-ch__num { background: var(--ink); border-color: var(--ink); color: #fff; }
.ax-ch.is-current .ax-ch__title { font-weight: 500; }
.ax-ch.is-playing .ax-ch__n,
.ax-ch.is-playing .ax-ch__btn:hover .ax-ch__icon { display: none; }
.ax-ch.is-playing .ax-ch__eq { display: flex; align-items: flex-end; justify-content: center; gap: 2px; padding-bottom: 12px; }
.ax-ch__eq i { width: 3px; height: 12px; border-radius: 2px; background: #fff; animation: ax-eq 0.9s ease-in-out infinite; transform-origin: bottom; }
.ax-ch__eq i:nth-child(2) { animation-delay: 0.2s; }
.ax-ch__eq i:nth-child(3) { animation-delay: 0.4s; }

/* sticky playback bar */
.ax-player.has-bar { padding-bottom: 120px; }
.ax-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 30;
	padding: 0.7rem var(--space) calc(0.7rem + env(safe-area-inset-bottom));
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border-top: 1px solid var(--line);
	box-shadow: 0 -20px 40px -30px rgba(20, 20, 22, 0.4);
	animation: ax-up 0.4s var(--ease);
}
.ax-bar[hidden] { display: none; }
.ax-bar__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; gap: 1.2rem; width: min(1200px, 100%); margin-inline: auto; }
.ax-bar__now { display: flex; align-items: center; gap: 0.8rem; min-width: 0; }
.ax-bar__now img { width: 44px; height: 60px; border-radius: 6px; object-fit: cover; flex: 0 0 auto; }
.ax-bar__now > span { display: grid; min-width: 0; }
.ax-bar__now strong { font-weight: 500; font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-bar__center { display: grid; gap: 0.2rem; }
.ax-bar__controls { display: flex; align-items: center; justify-content: center; gap: 0.6rem; }
.ax-bar__seek { display: grid; grid-template-columns: 3.4rem 1fr 3.4rem; align-items: center; gap: 0.6rem; font-variant-numeric: tabular-nums; }
.ax-bar__seek span:last-child { text-align: right; }
.ax-bar__right { display: flex; justify-content: flex-end; }

.ax-ic {
	position: relative;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--ink);
	cursor: pointer;
	transition: background 0.2s;
}
.ax-ic:hover { background: var(--bg); }
.ax-ic--skip span { position: absolute; font-size: 0.55rem; font-weight: 600; top: 50%; left: 50%; transform: translate(-50%, -38%); }
.ax-ic--main { width: 50px; height: 50px; background: var(--ink); color: #fff; }
.ax-ic--main:hover { background: #2a2a2e; }
.ax-ic--main .ax-i-pause { display: none; }
.ax-player.is-playing .ax-ic--main .ax-i-play { display: none; }
.ax-player.is-playing .ax-ic--main .ax-i-pause { display: block; }

.ax-speed { min-width: 52px; height: 34px; padding: 0 0.7rem; border: 1px solid var(--line); border-radius: 99px; background: var(--paper); font: inherit; font-size: 0.82rem; font-weight: 500; color: var(--ink); cursor: pointer; }
.ax-speed:hover { border-color: var(--ink); }

.ax-bar input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 99px; background: var(--line); outline: none; cursor: pointer; }
.ax-bar input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--ink); }
.ax-bar input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); border: 2px solid #fff; }

/* —— WooCommerce defaults inside the app —— */
.cu-is-app .woocommerce-message,
.cu-is-app .woocommerce-info,
.cu-is-app .woocommerce-error {
	margin: 0 0 1.2rem;
	padding: 0.95rem 1.2rem;
	border: 0;
	border-radius: 14px;
	background: var(--paper);
	box-shadow: var(--shadow);
	color: var(--ink);
	list-style: none;
}
.cu-is-app .woocommerce-message::before,
.cu-is-app .woocommerce-info::before,
.cu-is-app .woocommerce-error::before { display: none; }
.cu-is-app .woocommerce-error { background: #fdeceb; color: #8d231c; }

.cu-is-app .woocommerce-MyAccount-content > .woocommerce-orders-table,
.cu-is-app .woocommerce-MyAccount-content .woocommerce-table,
.cu-is-app .woocommerce-MyAccount-content .shop_table {
	width: 100%;
	border-collapse: collapse;
	border-radius: var(--r);
	background: var(--paper);
	box-shadow: var(--shadow);
	overflow: hidden;
}
.cu-is-app .shop_table th,
.cu-is-app .shop_table td { padding: 0.95rem 1rem; border-bottom: 1px solid var(--line); text-align: left; font-size: 0.92rem; }
.cu-is-app .shop_table thead th { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); background: #fbfaf7; }
.cu-is-app .shop_table tr:last-child td { border-bottom: 0; }

.cu-is-app .woocommerce-Button,
.cu-is-app .woocommerce-button,
.cu-is-app button.button,
.cu-is-app a.button,
.cu-is-app .woocommerce-form-login__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 1.1rem;
	border: 1px solid var(--ink);
	border-radius: 999px;
	background: var(--ink);
	color: #fff !important;
	font-size: 0.74rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
}
.cu-is-app .woocommerce-orders-table .button + .button { margin-left: 0.4rem; }

.cu-is-app .woocommerce form .form-row,
.cu-is-app .woocommerce-EditAccountForm .form-row { display: grid; gap: 0.35rem; margin: 0 0 1rem; }
.cu-is-app .woocommerce form label { font-size: 0.84rem; color: var(--ink-soft); }
.cu-is-app .woocommerce input.input-text,
.cu-is-app .woocommerce select,
.cu-is-app .woocommerce textarea {
	width: 100%;
	min-height: 46px;
	padding: 0 0.9rem;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--paper);
	color: var(--ink);
	font: inherit;
}
.cu-is-app .woocommerce input.input-text:focus { outline: 2px solid var(--gold-2); outline-offset: 1px; border-color: transparent; }
.cu-is-app .woocommerce-EditAccountForm,
.cu-is-app .woocommerce-form-login,
.cu-is-app .woocommerce-form-register { padding: 1.5rem; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); }
.cu-is-app .woocommerce-EditAccountForm fieldset { margin: 1rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; }
.cu-is-app .woocommerce-MyAccount-content h2:not([class*="ax-"]),
.cu-is-app .woocommerce-order-details__title,
.cu-is-app .woocommerce-column__title,
.cu-is-app .wc-bacs-bank-details-heading { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin: 1.6rem 0 0.8rem; }
.cu-is-app .woocommerce-customer-details address { padding: 1rem 1.2rem; border-radius: 14px; background: var(--paper); font-style: normal; line-height: 1.7; }

/* login page (logged out) */
.cu-is-app .ax-main--account .woocommerce:not(:has(.ax-account)) { max-width: 460px; margin-inline: auto; }
.cu-is-app .woocommerce-form-login .woocommerce-form__label-for-checkbox { display: flex; align-items: center; gap: 0.5rem; margin: 0.5rem 0 1rem; }

/* order received + bank details */
.cu-is-app .woocommerce-order { display: grid; gap: 1.2rem; }
.cu-is-app .woocommerce-order-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.8rem; margin: 0; padding: 0; list-style: none; }
.cu-is-app .woocommerce-order-overview li { padding: 1rem 1.1rem; border-radius: 14px; background: var(--paper); box-shadow: var(--shadow); font-size: 0.8rem; color: var(--mute); }
.cu-is-app .woocommerce-order-overview li strong { display: block; margin-top: 0.2rem; font-size: 1rem; color: var(--ink); font-weight: 500; }
.cu-is-app .woocommerce-bacs-bank-details { padding: 1.2rem 1.4rem; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); }
.cu-is-app .wc-bacs-bank-details { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.4rem; }
.cu-ab-next { display: grid; justify-items: start; gap: 0.9rem; padding: 1.3rem 1.4rem; border-radius: var(--r); background: var(--ink); color: #fff; }
.cu-ab-next p { margin: 0; line-height: 1.6; }
.cu-ab-next .hx-btn { background: #fff; border-color: #fff; color: var(--ink) !important; }

/* block cart / checkout */
.cu-is-app .wp-block-woocommerce-cart,
.cu-is-app .wp-block-woocommerce-checkout { font-family: var(--sans); color: var(--ink); }
.cu-is-app .wc-block-components-button:not(.is-link) { border-radius: 999px !important; background: var(--ink) !important; color: #fff !important; min-height: 52px; font-weight: 500; letter-spacing: 0.08em; }
.cu-is-app .wc-block-components-button:not(.is-link):hover { background: #2a2a2e !important; }
.cu-is-app .wc-block-components-text-input input,
.cu-is-app .wc-block-components-select select,
.cu-is-app .wc-block-components-combobox input { border-radius: 12px !important; }
.cu-is-app .wc-block-cart__sidebar,
.cu-is-app .wc-block-checkout__sidebar { padding: 1.2rem; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); }
.cu-is-app .wc-block-cart__main,
.cu-is-app .wc-block-checkout__main { padding: 1.2rem 1.4rem; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); }
.cu-is-app .wc-block-components-product-name { font-weight: 500; color: var(--ink); }
.cu-is-app .wc-block-components-radio-control__option { border-radius: 12px; }

@keyframes ax-pulse { 0% { box-shadow: 0 0 0 0 rgba(138, 90, 18, 0.45); } 100% { box-shadow: 0 0 0 8px rgba(138, 90, 18, 0); } }
@keyframes ax-eq { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
@keyframes ax-up { from { transform: translateY(100%); } to { transform: none; } }

/* —— responsive —— */
@media (max-width: 960px) {
	.ax-account { grid-template-columns: 1fr; }
	.ax-side { position: static; padding: 0.6rem; }
	.ax-user { display: none; }
	.ax-nav ul { display: flex; gap: 0.3rem; overflow-x: auto; scrollbar-width: none; }
	.ax-nav ul::-webkit-scrollbar { display: none; }
	.ax-nav a { white-space: nowrap; padding: 0.55rem 0.8rem; font-size: 0.86rem; }
	.ax-nav__item--out { margin: 0; padding: 0; border: 0; }
	.ax-bar__inner { grid-template-columns: minmax(0, 1fr) auto; }
	.ax-bar__center { grid-column: 1 / -1; grid-row: 2; }
	.ax-bar__right { grid-column: 2; grid-row: 1; }
}

@media (max-width: 640px) {
	.ax-resume { grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; padding: 1rem; }
	.ax-resume__title { font-size: 1.35rem; }
	.ax-tiles { grid-template-columns: 1fr 1fr 1fr; gap: 0.6rem; }
	.ax-tile { grid-template-columns: 1fr; padding: 0.9rem; }
	.ax-tile svg { grid-row: auto; margin-bottom: 0.4rem; }
	.ax-tile strong { font-size: 1.5rem; }
	.ax-list a { grid-template-columns: minmax(0, 1fr) auto; }
	.ax-list .ax-pill { grid-column: 1; grid-row: 2; justify-self: start; }
	.ax-list__amount { grid-row: 1; grid-column: 2; }
	.ax-player__hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
	.ax-player__cover { width: 180px; }
	.ax-player__info { width: 100%; }
	.ax-suggest { grid-template-columns: 1fr 1fr; }
	.ax-offer { grid-template-columns: 56px minmax(0, 1fr); }
	.ax-offer__img { width: 56px; height: 56px; }
	.ax-bar__now img { width: 36px; height: 48px; }
	.ax-ic { width: 36px; height: 36px; }
	.cu-is-app .shop_table thead { display: none; }
	.cu-is-app .woocommerce-orders-table tr { display: grid; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
	.cu-is-app .woocommerce-orders-table td { border: 0 !important; padding: 0.3rem 1rem !important; }
	.cu-is-app .woocommerce-orders-table td::before { content: attr(data-title) " : "; color: var(--mute); }
}

@media (prefers-reduced-motion: reduce) {
	.ax-dot, .ax-ch__eq i, .ax-bar { animation: none; }
}

/* ===================================================================
   v2 — external access, app-style mobile, responsive purchase path
   =================================================================== */
.ax-btn--sm { min-height: 34px; padding: 0 0.9rem; font-size: 0.7rem; }
.ax-note { margin: 0.6rem 0 0; padding: 0.7rem 0.9rem; border-radius: 12px; background: var(--bg); font-size: 0.88rem; color: var(--ink-soft); }
.ax-facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; margin: 0.8rem 0 0; }
.ax-facts div { display: grid; gap: 0.1rem; }
.ax-facts dt { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.ax-facts dd { margin: 0; font-size: 0.92rem; font-weight: 500; }
.ax-suggest__img.is-logo { background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.ax-suggest__img.is-logo img { width: 55%; height: auto; object-fit: contain; }

.ax-access { margin: 0; padding: 0; list-style: none; }
.ax-access li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 0.9rem; padding: 0.75rem 0; }
.ax-access li + li { border-top: 1px solid var(--line); }
.ax-access__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--bg); color: var(--gold-2); }
.ax-access__icon.is-logo { background: #fff; border: 1px solid var(--line); padding: 6px; }
.ax-access__icon img { width: 100%; height: 100%; object-fit: contain; }
.ax-access__main { display: grid; min-width: 0; }
.ax-access__main strong { font-weight: 500; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ax-logout { margin-top: 1.4rem; }

/* bottom tab bar: mobile only */
.ax-tabbar { display: none; }

@media (max-width: 960px) {
	body.woocommerce-account.logged-in .cu-footer { display: none; }
	body.woocommerce-account.logged-in .ax-main { padding-top: calc(70px + 1.2rem); padding-bottom: calc(96px + env(safe-area-inset-bottom)); min-height: 100svh; }
	body.woocommerce-account .ax-side { display: none; }
	.ax-account { display: block; }

	.ax-tabbar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 40;
		display: grid;
		grid-template-columns: repeat(5, 1fr);
		padding: 0.35rem 0.4rem calc(0.35rem + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, 0.94);
		backdrop-filter: blur(18px);
		-webkit-backdrop-filter: blur(18px);
		border-top: 1px solid var(--line);
	}
	.ax-tabbar__item {
		display: grid;
		justify-items: center;
		gap: 0.2rem;
		padding: 0.45rem 0 0.35rem;
		border-radius: 12px;
		font-size: 0.66rem;
		font-weight: 500;
		color: var(--mute);
		-webkit-tap-highlight-color: transparent;
	}
	.ax-tabbar__item svg { width: 22px; height: 22px; }
	.ax-tabbar__item.is-active { color: var(--ink); }
	.ax-tabbar__item.is-active svg { color: var(--gold-2); }

	/* player: full-screen, the playback bar replaces the tab bar */
	body.cu-is-player .ax-tabbar { display: none; }
	body.cu-is-player .ax-main { padding-bottom: 2rem; }

	.ax-head { margin-bottom: 1.2rem; }
	.ax-title { font-size: 2rem; }
	.ax-block { padding: 1.1rem; margin-top: 1rem; border-radius: 16px; }
	.ax-resume, .ax-tiles, .ax-notice { margin-bottom: 1rem; }
	.cu-is-app .woocommerce-MyAccount-content > .woocommerce-orders-table { box-shadow: none; }
}

@media (max-width: 640px) {
	.ax-wrap { width: calc(100% - 2rem); }
	.ax-page-title { font-size: 2rem; }

	/* home: big resume card like a player app */
	.ax-resume { grid-template-columns: 1fr; text-align: left; padding: 0; overflow: hidden; }
	.ax-resume__cover { aspect-ratio: 16 / 10; border-radius: 0; box-shadow: none; }
	.ax-resume__cover img { object-position: center 25%; }
	.ax-resume__body { padding: 0 1.1rem 1.2rem; }
	.ax-resume .ax-btn { width: 100%; }

	.ax-books { grid-template-columns: 1fr; gap: 0.8rem; }
	.ax-book { grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: none; }
	.ax-book__cover { aspect-ratio: 2 / 3; }
	.ax-book__play { display: none; }
	.ax-book__body { padding: 0.9rem 1rem 1rem; }
	.ax-book__title { font-size: 1.1rem; }
	.ax-book .ax-btn { min-height: 38px; padding: 0 1rem; font-size: 0.68rem; margin-top: 0.4rem; }

	.ax-offer { grid-template-columns: 48px minmax(0, 1fr); gap: 0.9rem; padding: 1rem; }
	.ax-offer__img { width: 48px; height: 48px; border-radius: 12px; }
	.ax-offer__top h3 { font-size: 1.15rem; }
	.ax-offer__actions .ax-btn { flex: 1 1 100%; }

	.ax-player__hero { padding: 1.2rem 1rem; border-radius: 20px; }
	.ax-player__cover { width: 58%; max-width: 220px; }
	.ax-player__title { font-size: 1.8rem; }
	.ax-player__info .ax-btn { width: 100%; }
	.ax-ch__btn { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 0.7rem; padding: 0.75rem 0.25rem; }
	.ax-ch__num { width: 34px; height: 34px; }
	.ax-bar { padding: 0.6rem 0.8rem calc(0.6rem + env(safe-area-inset-bottom)); }
	.ax-bar__inner { gap: 0.5rem 0.8rem; }
	.ax-player.has-bar { padding-bottom: 150px; }

	.cu-is-app .woocommerce-EditAccountForm,
	.cu-is-app .woocommerce-form-login,
	.cu-is-app .woocommerce-form-register { padding: 1.1rem; }
	.cu-is-app .woocommerce-EditAccountForm .form-row-first,
	.cu-is-app .woocommerce-EditAccountForm .form-row-last { width: 100%; float: none; }
	.cu-is-app .woocommerce-Button,
	.cu-is-app .woocommerce-form-login__submit { width: 100%; min-height: 48px; }

	/* order view / thank you */
	.cu-is-app .woocommerce-table--order-details th,
	.cu-is-app .woocommerce-table--order-details td { padding: 0.7rem 0.8rem; }
	.cu-is-app .woocommerce-order-overview { grid-template-columns: 1fr 1fr; }
	.cu-ab-next .hx-btn { width: 100%; }

	/* block cart / checkout */
	.cu-is-app .wc-block-cart__main,
	.cu-is-app .wc-block-checkout__main,
	.cu-is-app .wc-block-cart__sidebar,
	.cu-is-app .wc-block-checkout__sidebar { padding: 1rem; border-radius: 16px; }
	.cu-is-app .ax-main:not(.ax-main--account) { padding-top: calc(70px + 1.4rem); }
}

/* ===== Mobile: off-canvas menu must never widen the page ===== */
html.cu-html, html.cu-html body { overflow-x: clip; }
@media (max-width: 900px) {
	.cu-nav { transform: translateY(-8px) !important; opacity: 0; visibility: hidden; pointer-events: none; transition: transform 0.35s var(--ease), opacity 0.3s, visibility 0s linear 0.35s; }
	.cu-nav.is-open { transform: none !important; opacity: 1; visibility: visible; pointer-events: auto; transition: transform 0.35s var(--ease), opacity 0.3s, visibility 0s; }
}

/* ===================================================================
   v3 — subscriptions: virtual member card + management panel
   =================================================================== */
.ax-mono { font-family: var(--mono); letter-spacing: 0.06em; }
.ax-btn--danger { color: #8d231c !important; border-color: #f0c9c5; }
.ax-btn--danger:hover { background: #fdeceb; border-color: #8d231c; }

/* management */
.ax-sub {
	display: grid;
	grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
	gap: clamp(1.2rem, 3vw, 2.4rem);
	align-items: start;
	margin-bottom: 1.4rem;
	padding: clamp(1rem, 2.4vw, 1.6rem);
	border-radius: 24px;
	background: var(--paper);
	box-shadow: var(--shadow);
}
.ax-sub__card { position: sticky; top: 100px; }
.ax-sub__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.ax-sub__head h3 { margin: 0; font-family: var(--serif); font-size: 1.8rem; font-weight: 500; line-height: 1.05; }
.ax-sub__period { margin-top: 0.4rem; }
.ax-sub__rows { display: grid; margin: 1rem 0 0; }
.ax-sub__rows div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-top: 1px solid var(--line); font-size: 0.92rem; }
.ax-sub__rows dt { color: var(--mute); }
.ax-sub__rows dd { margin: 0; font-weight: 500; text-align: right; }
.ax-sub__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }
.ax-sub__more { margin-top: 1.2rem; border-top: 1px solid var(--line); }
.ax-sub__more summary { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 0 0.2rem; list-style: none; cursor: pointer; font-size: 0.9rem; font-weight: 500; }
.ax-sub__more summary::-webkit-details-marker { display: none; }
.ax-sub__more summary::after { content: "+"; font-size: 1.2rem; color: var(--mute); transition: transform 0.3s; }
.ax-sub__more[open] summary::after { transform: rotate(45deg); }
.ax-sub__more-body { padding-top: 0.6rem; }
.ax-sub__more h4 { margin: 0.4rem 0 0.4rem; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); font-weight: 500; }
.ax-sub__history { margin: 0 0 1rem; padding: 0; list-style: none; }
.ax-sub__history a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 0.8rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); font-size: 0.86rem; }
.ax-sub__cancel { display: grid; justify-items: start; gap: 0.6rem; padding: 0.9rem 1rem; border-radius: 14px; background: var(--bg); }

/* dashboard cards row */
.ax-cards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 360px); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.3rem 0.2rem 0.6rem; scrollbar-width: none; }
.ax-cards::-webkit-scrollbar { display: none; }
.ax-cards__item { display: grid; gap: 0.7rem; justify-items: start; scroll-snap-align: start; }
.ax-cards__link { display: block; width: 100%; }

@media (max-width: 960px) {
	.ax-sub { grid-template-columns: 1fr; }
	.ax-sub__card { position: static; justify-self: center; width: 100%; max-width: 420px; }
}
@media (max-width: 640px) {
	.ax-sub { padding: 1rem; border-radius: 20px; }
	.ax-sub__head h3 { font-size: 1.45rem; }
	.ax-sub__actions .ax-btn { flex: 1 1 100%; }
	.ax-cards { grid-auto-columns: 86%; }
}
@media (max-width: 960px) { .ax-sub { grid-template-columns: minmax(0, 1fr); } }
.ax-sub__panel { min-width: 0; }
.ax-sub__rows dd { min-width: 0; overflow-wrap: anywhere; }

/* ===================================================================
   Order received — condensed (.ty)
   =================================================================== */
.woocommerce-order-received .ax-page-head { display: none; }
.ty { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 1.2rem; align-items: start; max-width: 1000px; margin-inline: auto; }
.ty-main { display: grid; gap: 1rem; min-width: 0; }
.ty-card { padding: 1.4rem 1.5rem; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); border: 1px solid var(--line); }
.ty-hero { display: flex; gap: 1.1rem; align-items: flex-start; }
.ty-check { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); }
.ty-hero .ax-kicker { margin-bottom: 0.3rem; }
.ty-title { margin: 0 0 0.35rem; font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.05; color: var(--ink); }
.ty-muted { margin: 0; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.5; }

.ty-steps { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0 0.4rem; list-style: none; counter-reset: ty; }
.ty-steps li { position: relative; display: grid; justify-items: center; gap: 0.45rem; font-size: 0.74rem; letter-spacing: 0.06em; color: var(--mute); text-align: center; }
.ty-steps li::before { content: ""; position: absolute; top: 6px; right: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.ty-steps li:first-child::before { display: none; }
.ty-steps li.is-done::before, .ty-steps li.is-now::before { background: var(--ok); }
.ty-steps li span { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); }
.ty-steps li.is-done { color: var(--ink); }
.ty-steps li.is-done span { background: var(--ok); border-color: var(--ok); }
.ty-steps li.is-now { color: var(--wait); font-weight: 500; }
.ty-steps li.is-now span { border-color: var(--wait); background: var(--wait-bg); box-shadow: 0 0 0 4px var(--wait-bg); }

.ty-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.6rem; }
.ty-card__head h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 1.35rem; color: var(--ink); }
.ty-amount { font-size: 1.3rem; font-weight: 600; color: var(--ink); }
.ty-bank { border-color: #f0e2c4; background: linear-gradient(180deg, #fffaf0, #fff 60%); }
.ty-rows, .ty-totals { margin: 0; }
.ty-rows div, .ty-totals div { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.6rem 0; border-top: 1px solid var(--line); font-size: 0.9rem; }
.ty-rows dt, .ty-totals dt { color: var(--ink-soft); }
.ty-rows dd, .ty-totals dd { margin: 0; text-align: right; color: var(--ink); font-weight: 500; word-break: break-all; }
.ty-ref { padding: 0.2rem 0.5rem; border-radius: 6px; background: var(--bg); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9rem; }
.ty-copy { margin-left: 0.4rem; padding: 0.25rem 0.6rem; border: 1px solid var(--line); border-radius: 99px; background: var(--paper); font: inherit; font-size: 0.72rem; color: var(--ink-soft); cursor: pointer; }
.ty-copy:hover { border-color: var(--ink); color: var(--ink); }
.ty-note { margin: 0.8rem 0 0; font-size: 0.85rem; color: var(--ink-soft); }
.ty-note--admin { padding: 0.6rem 0.8rem; border-radius: 10px; background: var(--wait-bg); color: var(--wait); font-size: 0.8rem; }

.ty-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; padding-top: 0.2rem; }

.ty-summary { position: sticky; top: 96px; }
.ty-items { margin: 0 0 0.4rem; padding: 0; list-style: none; }
.ty-items li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 0.8rem; align-items: center; padding: 0.7rem 0; }
.ty-items li + li { border-top: 1px solid var(--line); }
.ty-thumb { width: 48px; height: 48px; border-radius: 10px; overflow: hidden; background: var(--bg); }
.ty-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ty-thumb.is-logo { background: #fff; border: 1px solid var(--line); padding: 7px; }
.ty-thumb.is-logo img { object-fit: contain; }
.ty-item { display: grid; gap: 0.1rem; min-width: 0; }
.ty-item strong { font-size: 0.9rem; font-weight: 500; line-height: 1.3; color: var(--ink); }
.ty-item .ty-muted { font-size: 0.78rem; }
.ty-price { font-size: 0.9rem; font-weight: 500; white-space: nowrap; }
.ty-price small { color: var(--mute); font-weight: 400; }
.ty-totals div.is-total { padding-top: 0.8rem; font-size: 1rem; }
.ty-totals div.is-total dt { color: var(--ink); font-weight: 500; }
.ty-totals div.is-total dd { font-weight: 600; }
.ty-totals small { display: none; }
.ty-meta { margin: 0.6rem 0 0; font-size: 0.76rem; color: var(--mute); overflow-wrap: anywhere; }

@media (max-width: 860px) {
	.ty { grid-template-columns: 1fr; }
	.ty-summary { position: static; }
}
@media (max-width: 560px) {
	.ty-card { padding: 1.1rem 1.1rem; }
	.ty-check { width: 42px; height: 42px; }
	.ty-hero { gap: 0.8rem; }
	.ty-actions { flex-direction: column; align-items: stretch; text-align: center; }
	.ty-actions .ax-btn { width: 100%; justify-content: center; }
	.ty-actions .ax-link { align-self: center; }
}

/* ===================================================================
   Subscriptions — list item (service icon + time left)
   =================================================================== */
.ax-sub { grid-template-columns: minmax(0, 1fr) !important; gap: 0; }
.ax-sub > .ax-svc { padding: 0 0 1.1rem; box-shadow: none; border: 0; background: none; }
.ax-sub__panel { border-top: 1px solid var(--line); }
.ax-sub__rows { margin-top: 0; }
.ax-sub__rows div:first-child { border-top: 0; }
.ax-svcs { display: grid; gap: 0.8rem; }
.ax-svc { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1.1rem 1.2rem; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); }
.ax-svc__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: var(--bg); color: var(--gold-ink); }
.ax-svc__icon svg { width: 26px; height: 26px; }
.ax-svc__icon.is-logo { background: #fff; border: 1px solid var(--line); padding: 10px; }
.ax-svc__icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ax-svc.is-idle .ax-svc__icon { filter: grayscale(0.6); opacity: 0.8; }
.ax-svc__body { min-width: 0; display: grid; gap: 0.25rem; }
.ax-svc__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8rem; }
.ax-svc__name { min-width: 0; }
.ax-svc__site { margin: 0 0 0.15rem; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-ink); }
.ax-svc__plan { margin: 0; font-family: var(--serif); font-size: 1.4rem; font-weight: 500; line-height: 1.1; color: var(--ink); }
.ax-svc__top .ax-pill { flex: none; }
.ax-svc__price { margin: 0; font-size: 0.92rem; font-weight: 500; color: var(--ink); }
.ax-svc__price span { color: var(--mute); font-weight: 400; }
.ax-svc__time { margin-top: 0.55rem; }
.ax-svc__bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.ax-svc__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1f6b3a, #3aa865); transition: width 0.8s var(--ease); }
.ax-svc.is-soon .ax-svc__bar span { background: linear-gradient(90deg, #b8741a, #e0a03a); }
.ax-svc__dates { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; margin-top: 0.5rem; font-size: 0.76rem; color: var(--mute); }
.ax-svc__dates strong { color: var(--ink); font-weight: 500; }
.ax-svc__left { font-weight: 500; color: var(--ok); }
.ax-svc.is-soon .ax-svc__left { color: var(--wait); }
.ax-svc__actions { display: flex; align-items: center; gap: 1rem; margin-top: 0.8rem; }
@media (max-width: 560px) {
	.ax-svc { grid-template-columns: 48px minmax(0, 1fr); gap: 0.8rem; padding: 1rem; }
	.ax-svc__icon { width: 48px; height: 48px; border-radius: 12px; }
	.ax-svc__icon.is-logo { padding: 7px; }
	.ax-svc__plan { font-size: 1.15rem; }
	.ax-svc__dates { flex-wrap: wrap; }
	.ax-svc__left { order: -1; flex-basis: 100%; }
	.ax-svc__actions .ax-btn { flex: 1; justify-content: center; }
}
.ax-block > .ax-svcs .ax-svc { padding: 0.2rem 0 0; box-shadow: none; background: none; border-radius: 0; }
.ax-block > .ax-svcs .ax-svc + .ax-svc { padding-top: 1.1rem; border-top: 1px solid var(--line); }
.ax-block + .ax-tiles { margin-top: 1.2rem; }
@media (max-width: 640px) { .ax-sub__actions .ax-btn { white-space: normal; text-align: center; min-width: 0; padding-inline: 1rem; } }
