/* ==========================================================================
   Fanos Elm — mobile-first styles
   Brand: yellow #FFDD00 + ink. Font: Vazirmatn (self-hosted, variable).
   ========================================================================== */

@font-face {
	font-family: "Vazirmatn";
	src: url("../fonts/Vazirmatn.woff2") format("woff2-variations"), url("../fonts/Vazirmatn.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--y: #FFDD00;
	--y-600: #F2C500;
	--y-200: #FFEE80;
	--y-100: #FFF6BF;
	--y-50: #FFFBE5;
	--ink: #141414;
	--ink-2: #24232E;
	--ink-3: #3B3A45;
	--muted: #6D6D74;
	--line: #ECEBE6;
	--soft: #F6F5F0;
	--bg: #FFFFFF;
	--ok: #1E7F48;
	--ok-bg: #E3F5EA;
	--danger: #C0392B;
	--danger-bg: #FCE9E6;

	--radius-sm: 12px;
	--radius: 18px;
	--radius-lg: 26px;
	--shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 8px 24px rgba(20, 20, 20, .06);
	--shadow-lg: 0 24px 60px rgba(20, 20, 20, .18);

	--font: "Vazirmatn", Tahoma, sans-serif;
	--gutter: 16px;
	--header-h: 60px;
	--bottom-nav-h: 64px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.9; color: var(--ink); background: var(--bg);
	direction: rtl; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
	padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 800; line-height: 1.45; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(1.6rem, 6.4vw, 3rem); }
h2 { font-size: clamp(1.3rem, 4.6vw, 2rem); }
h3 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
.screen-reader-text, .fanos-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; top: -40px; right: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--y); color: var(--ink); }
.icon { flex: none; }
.muted { color: var(--muted); }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--muted); margin-bottom: .35rem; }

/* ---------- Buttons ---------- */
.btn, .button, button.button, input.button, .woocommerce a.button, .woocommerce button.button, #place_order {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 50px; padding: 0 24px; border: 1.5px solid transparent; border-radius: 14px;
	font-weight: 700; font-size: .95rem; line-height: 1.2; cursor: pointer; text-align: center;
	transition: background .2s, color .2s, transform .15s, border-color .2s, box-shadow .2s;
	-webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn:active, .button:active, #place_order:active { transform: scale(.98); }
.btn-primary, .button.alt, .woocommerce .button.alt, .single_add_to_cart_button, .checkout-button, #place_order {
	background: var(--y); color: var(--ink); box-shadow: 0 6px 18px rgba(242, 197, 0, .35);
}
.btn-primary:hover, .button.alt:hover, .single_add_to_cart_button:hover, .checkout-button:hover, #place_order:hover { background: var(--y-600); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-light { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-soft { background: var(--soft); color: var(--ink); }
.btn-soft:hover { background: var(--line); }
.button { background: var(--soft); color: var(--ink); }
.button:hover { background: var(--line); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .85rem; border-radius: 12px; }
.loading { opacity: .6; pointer-events: none; position: relative; }
.button:disabled, .button.disabled, .btn:disabled { opacity: .5; cursor: not-allowed; }

.icon-btn {
	position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px;
	border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { background: var(--soft); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Announcement + header ---------- */
.announce { background: var(--ink); color: var(--y); text-align: center; font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; padding: 7px var(--gutter); line-height: 1.6; }
.announce p { margin: 0; }

.site-header {
	position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92);
	backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); }
.admin-bar .site-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); }
.menu-toggle { justify-self: start; }
.brand { display: flex; align-items: center; color: var(--ink); }
.brand-logo { height: 34px; width: auto; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 2px; }
.primary-nav { display: none; }
.hide-mobile { display: none !important; }

.fanos-cart-count {
	position: absolute; top: 3px; left: 1px; min-width: 18px; height: 18px; padding: 0 4px;
	border-radius: 999px; background: var(--y); color: var(--ink); border: 2px solid #fff;
	font-size: .64rem; font-weight: 800; line-height: 14px; text-align: center; transition: transform .25s var(--ease);
}
.fanos-cart-count.is-empty { display: none; }
.fanos-cart-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

.search-panel { border-top: 1px solid var(--line); background: #fff; }
.search-form { display: flex; align-items: center; gap: 10px; height: 56px; color: var(--muted); }
.search-form input { flex: 1; height: 100%; border: 0; background: transparent; outline: none; font-size: 16px; color: var(--ink); }

.account-chip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 12px; background: var(--soft); font-size: .86rem; font-weight: 700; }

/* ---------- Drawers ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer::before { content: ""; position: absolute; inset: 0; background: rgba(20, 20, 20, .45); opacity: 0; transition: opacity .3s var(--ease); }
.drawer.is-open { visibility: visible; }
.drawer.is-open::before { opacity: 1; }
.drawer-panel { position: absolute; background: #fff; display: flex; flex-direction: column; transition: transform .35s var(--ease); box-shadow: var(--shadow-lg); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 12px 8px; border-bottom: 1px solid var(--line); }
.drawer-head strong { font-weight: 800; }
html.drawer-open, html.modal-open { overflow: hidden; }

.drawer-menu .drawer-panel { top: 0; bottom: 0; right: 0; width: min(86vw, 360px); transform: translateX(100%); }
.drawer-menu.is-open .drawer-panel { transform: none; }
.drawer-logo { height: 30px; width: auto; color: var(--ink); }
.drawer-user { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer-user-link { display: flex; align-items: center; gap: 12px; }
.drawer-user-link small { display: block; color: var(--muted); font-size: .76rem; }
.drawer-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.drawer-quick a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--soft); font-size: .84rem; font-weight: 700; }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--y); color: var(--ink); font-weight: 900; font-size: 1.1rem; flex: none; }
.drawer-nav { flex: 1; overflow-y: auto; padding: 6px 0; }
.drawer-nav .menu { list-style: none; }
.drawer-nav a { display: block; padding: 13px 20px; font-size: 1.02rem; font-weight: 600; border-bottom: 1px solid var(--soft); }
.drawer-nav .current-menu-item > a { color: var(--ink); background: var(--y-50); box-shadow: inset -3px 0 0 var(--y); }
.drawer-foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); background: var(--y-50); }
.drawer-foot p { margin: 0 0 2px; font-size: .78rem; color: var(--muted); }
.drawer-foot a { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }

/* Bottom sheets (phones): cart, login */
.drawer-cart .drawer-panel, .drawer-login .drawer-panel {
	left: 0; right: 0; bottom: 0; max-height: 88vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
	transform: translateY(100%); padding-bottom: env(safe-area-inset-bottom);
}
.drawer-cart .drawer-panel::before, .drawer-login .drawer-panel::before { content: ""; width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 8px auto 0; flex: none; }
.drawer-cart.is-open .drawer-panel, .drawer-login.is-open .drawer-panel { transform: none; }
.drawer-cart .widget_shopping_cart_content { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.drawer-login .drawer-panel { overflow-y: auto; }
.drawer-login .drawer-close { position: absolute; top: 10px; left: 10px; z-index: 2; }
.drawer-login .otp-card { background: transparent; box-shadow: none; padding-top: 18px; }

/* Mini cart */
.woocommerce-mini-cart { list-style: none; overflow-y: auto; padding: 4px 16px; flex: 1; }
.woocommerce-mini-cart-item { position: relative; display: grid; grid-template-columns: 64px 1fr; column-gap: 12px; padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.woocommerce-mini-cart-item > a:not(.remove) { display: contents; font-weight: 700; }
.woocommerce-mini-cart-item img { grid-row: 1 / span 2; width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); background: var(--soft); }
.woocommerce-mini-cart-item .quantity { display: block; grid-column: 2; color: var(--muted); font-size: .84rem; height: auto; border: 0; background: none; }
.woocommerce-mini-cart-item .remove { position: absolute; left: 0; top: 14px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--muted) !important; font-size: 1.1rem; background: var(--soft); }
.woocommerce-mini-cart__total { display: flex; justify-content: space-between; margin: 0; padding: 14px 16px; border-top: 1px solid var(--line); }
.woocommerce-mini-cart__total strong { font-weight: 500; color: var(--muted); }
.woocommerce-mini-cart__total .amount { font-weight: 800; }
.woocommerce-mini-cart__buttons { margin: 0; padding: 0 16px 16px; }
.woocommerce-mini-cart__empty-message { padding: 40px 16px; text-align: center; color: var(--muted); }

/* ---------- Bottom nav (phones) ---------- */
.bottom-nav {
	position: fixed; inset-inline: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr);
	height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
	background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line);
}
.bottom-nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .68rem; font-weight: 600; color: var(--muted); -webkit-tap-highlight-color: transparent; }
.bottom-nav a.is-active { color: var(--ink); font-weight: 800; }
.bottom-nav a.is-active::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--y); }
.bottom-nav .bn-icon { position: relative; }
.bottom-nav .fanos-cart-count { top: -6px; left: -10px; }
.bn-dot { position: absolute; top: -1px; left: -2px; width: 9px; height: 9px; border-radius: 50%; background: var(--danger); border: 2px solid #fff; }

/* ---------- Toast ---------- */
.toast {
	position: fixed; z-index: 120; inset-inline: 16px; bottom: calc(var(--bottom-nav-h) + 16px + env(safe-area-inset-bottom));
	margin-inline: auto; max-width: 420px; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 14px 18px; font-size: .9rem;
	box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
}
.toast.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Home
   ========================================================================== */
.hero { background: var(--y); overflow: hidden; }
.hero-inner { display: grid; gap: 0; padding-top: 26px; }
.hero-copy { text-align: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 14px; border-radius: 999px; background: rgba(255, 255, 255, .55); font-size: .78rem; font-weight: 800; margin-bottom: 12px; }
.hero-mark { width: 16px; height: 16px; color: var(--ink); }
.hero-copy h1 { font-weight: 900; margin-bottom: .35em; font-size: clamp(1.7rem, 7.8vw, 3.2rem); line-height: 1.35; }
.hero-copy p { color: var(--ink-3); max-width: 40ch; margin-inline: auto; font-size: .94rem; }
.hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.hero-cta .btn { padding: 0 12px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-top: 14px; font-size: .78rem; font-weight: 700; color: var(--ink-3); }
.hero-points li { display: inline-flex; align-items: center; gap: 4px; }
.hero-media { position: relative; margin: 14px auto 0; width: min(100%, 360px); }
.hero-media img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center top; }
.hero-media figcaption {
	position: absolute; bottom: 18px; right: 50%; transform: translateX(50%); display: flex; flex-direction: column; align-items: center;
	padding: 8px 16px; border-radius: 14px; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow); line-height: 1.6; white-space: nowrap; text-align: center;
}
.hero-media figcaption strong { font-size: .86rem; }
.hero-media figcaption span { font-size: .72rem; color: var(--muted); }

.kinds { padding: 18px 0 4px; }
.kinds-row {
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 44%); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
	margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scrollbar-width: none;
}
.kinds-row::-webkit-scrollbar { display: none; }
.kind-tile { scroll-snap-align: start; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--radius); background: var(--soft); transition: transform .2s var(--ease), background .2s; }
.kind-tile:hover { background: var(--y-100); transform: translateY(-2px); }
.kind-tile strong { display: block; font-size: .86rem; line-height: 1.5; }
.kind-tile small { display: block; font-size: .72rem; color: var(--muted); }
.kind-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--y); flex: none; }

.section { padding: 36px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--y); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.section-head .eyebrow { margin-bottom: 0; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }

.promo { padding: 8px 0 28px; }
.promo-banner { display: block; border-radius: var(--radius); overflow: hidden; background: var(--y); box-shadow: var(--shadow); }
.promo-banner img { width: 100%; height: auto; }
@media (max-width: 599px) {
	.promo-banner img { height: 118px; object-fit: cover; object-position: 100% 50%; }
}

.features { list-style: none; display: grid; gap: 12px; }
.features li { padding: 20px; border-radius: var(--radius); background: var(--ink-2); }
.features li > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--y); color: var(--ink); margin-bottom: 12px; }
.features h3 { margin-bottom: 4px; }
.features p { margin: 0; color: rgba(255, 255, 255, .7); font-size: .9rem; }

.teacher-inner { display: grid; gap: 22px; align-items: center; }
.teacher-media { margin: 0 auto; width: min(100%, 320px); border-radius: var(--radius-lg); overflow: hidden; background: var(--y); }
.teacher-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.teacher-copy { text-align: center; }
.teacher-role { color: var(--muted); font-weight: 700; margin-top: -6px; }

.faq-teaser { max-width: 820px; }
.faq-cta { text-align: center; margin-top: 18px; }

/* Rails: horizontal on phones */
.rail, .rail-mobile {
	display: grid !important; grid-auto-flow: column; grid-auto-columns: 74%; grid-template-columns: none !important; gap: 12px !important;
	overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1) !important; padding: 4px var(--gutter) 10px !important; scrollbar-width: none;
}
.rail::-webkit-scrollbar, .rail-mobile::-webkit-scrollbar { display: none; }
.rail > *, .rail-mobile > * { scroll-snap-align: start; }

/* ==========================================================================
   Product cards
   ========================================================================== */
ul.products { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; padding: 0; }
ul.products::before, ul.products::after { display: none; }
ul.products li.product.card { display: flex; flex-direction: column; margin: 0; width: auto; float: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s var(--ease); }
ul.products li.product.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--soft); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.kind-book .card-media, .kind-file .card-media { background: var(--y-50); }
.kind-book .card-media img, .kind-file .card-media img { object-fit: contain; padding: 10px; }
.card-play { position: absolute; left: 10px; bottom: 10px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--y); color: var(--ink); box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.onsale { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 2px 10px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .7rem; font-weight: 800; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 10px 12px 12px; }
.card-kind { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; padding: 1px 8px; border-radius: 999px; background: var(--soft); font-size: .68rem; font-weight: 700; color: var(--ink-3); margin-bottom: 6px; }
.kind-course .card-kind { background: var(--y-100); }
.card-kind.is-lg { font-size: .78rem; padding: 3px 10px; margin-bottom: 8px; }
.card-title { font-size: .9rem; font-weight: 800; line-height: 1.6; margin: 0 0 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: .74rem; color: var(--muted); margin: 0 0 8px; line-height: 1.6; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.card .price { font-size: .9rem; font-weight: 800; line-height: 1.4; display: flex; flex-direction: column; }
.price del { color: var(--muted); font-weight: 500; font-size: .78em; opacity: .85; }
.price ins { text-decoration: none; }
.woocommerce-Price-currencySymbol { font-size: .74em; font-weight: 500; color: var(--muted); }
.price-free { color: var(--ok); font-weight: 900; }
.price-soon { color: var(--muted); font-weight: 600; font-size: .82rem; }
.card-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--y); color: var(--ink); transition: background .2s, transform .15s; }
.card-btn:hover { background: var(--y-600); }
.card-btn:active { transform: scale(.94); }
.card-btn.is-go { background: var(--soft); }
.card-btn-plus { position: absolute; top: 4px; left: 5px; font-size: .78rem; font-weight: 900; line-height: 1; }
.card-btn.loading { opacity: .5; }
.card-btn.added, .card-btn.is-added { background: var(--ink); color: var(--y); }
.card-btn.added .card-btn-plus, .card-btn.is-added .card-btn-plus { display: none; }
ul.products li.product .added_to_cart { display: none; }
.card-owned { display: inline-flex; align-items: center; gap: 4px; font-size: .76rem; font-weight: 800; color: var(--ok); }

/* ---------- Shop / archive ---------- */
.wc-wrap { padding-block: 16px 48px; }
.breadcrumb { font-size: .76rem; color: var(--muted); margin-bottom: 10px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { margin: 0 6px; opacity: .5; }
.woocommerce-products-header__title { font-size: clamp(1.4rem, 5vw, 2.1rem); margin-bottom: 4px; }
.term-description { color: var(--muted); font-size: .9rem; }
.cat-pills { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 14px; padding: 4px var(--gutter); scrollbar-width: none; }
.cat-pills::-webkit-scrollbar { display: none; }
.pill { flex: none; padding: 7px 16px; border-radius: 999px; background: var(--soft); font-size: .84rem; font-weight: 700; white-space: nowrap; }
.pill.is-active { background: var(--ink); color: var(--y); }
.woocommerce-ordering { margin: 0 0 14px; display: flex; justify-content: flex-end; }
.woocommerce-ordering select {
	appearance: none; -webkit-appearance: none; height: 40px; padding: 0 14px 0 34px; border: 1px solid var(--line); border-radius: 12px; font-size: .84rem;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat 14px center;
}
.woocommerce-pagination { margin-top: 28px; }
.woocommerce-pagination ul, .nav-links { list-style: none; display: flex; justify-content: center; gap: 6px; }
.woocommerce-pagination .page-numbers, .nav-links .page-numbers { display: grid; place-items: center; min-width: 40px; height: 40px; border-radius: 12px; padding: 0 10px; }
.woocommerce-pagination .current, .nav-links .current { background: var(--ink); color: var(--y); }

/* ==========================================================================
   Single product
   ========================================================================== */
div.product { position: relative; }
.woocommerce-product-gallery { position: relative; margin: 0 calc(var(--gutter) * -1) 18px; opacity: 1 !important; background: var(--y-50); }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image img { width: 100%; max-height: 56vh; object-fit: contain; }
.woocommerce-product-gallery__trigger { position: absolute; top: 12px; left: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, .9); font-size: 0; }
.woocommerce-product-gallery__trigger::before { content: ""; position: absolute; inset: 11px; border: 1.8px solid var(--ink); border-radius: 50%; }
.flex-control-thumbs { list-style: none; display: flex; gap: 8px; padding: 10px var(--gutter); overflow-x: auto; background: #fff; }
.flex-control-thumbs li { flex: 0 0 60px; }
.flex-control-thumbs img { border-radius: 10px; opacity: .5; cursor: pointer; aspect-ratio: 1; object-fit: cover; }
.flex-control-thumbs img.flex-active { opacity: 1; box-shadow: 0 0 0 2px var(--y); }

.course-trailer { position: relative; margin: 0 calc(var(--gutter) * -1) 18px; background: #000; }
.trailer-tag { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--y); font-size: .72rem; font-weight: 800; pointer-events: none; }

.summary .product_title { font-size: clamp(1.35rem, 5.6vw, 2.1rem); font-weight: 900; margin-bottom: 6px; }
.woocommerce-product-details__short-description { color: var(--ink-3); font-size: .93rem; }
.summary > .price { display: flex; align-items: baseline; gap: 8px; font-size: 1.35rem; font-weight: 900; margin: 6px 0 12px; }
.stock { font-size: .84rem; color: var(--ok); font-weight: 700; }
.stock.out-of-stock { color: var(--danger); }

.course-stats { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 4px 0 16px; }
.course-stats li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--soft); font-size: .8rem; font-weight: 700; }
.course-stats svg { color: var(--ink); background: var(--y); border-radius: 8px; padding: 3px; width: 26px; height: 26px; }

form.cart { display: flex; gap: 10px; margin: 16px 0; }
form.cart .single_add_to_cart_button { flex: 1; min-height: 56px; font-size: 1.02rem; }
.quantity { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: #fff; height: 56px; }
.quantity input.qty, .quantity input.qty.input-text, .woocommerce .quantity input.qty {
	width: 44px; min-width: 44px; height: 100%; padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
	text-align: center; font-size: 1rem; font-weight: 800; -moz-appearance: textfield; appearance: textfield;
}
.quantity .qty::-webkit-inner-spin-button, .quantity .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.quantity input.qty:focus { outline: none; }
.qty-btn { width: 40px; height: 100%; border: 0; background: transparent; cursor: pointer; font-size: 1.25rem; }
form.cart .added_to_cart { display: none; }

.course-owned { margin: 10px 0 18px; padding: 16px; border-radius: var(--radius); background: var(--y-50); border: 1.5px solid var(--y); }
.course-owned-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; font-size: .88rem; }
.course-owned-head span { font-weight: 800; }
.course-owned .btn { margin-top: 12px; }
.progress { position: relative; display: block; height: 8px; border-radius: 99px; background: rgba(20, 20, 20, .08); overflow: hidden; flex: 1; }
.progress > span { position: absolute; inset: 0 0 0 auto; width: 0; background: var(--ink); border-radius: inherit; transition: width .4s var(--ease); }

.trust-row { list-style: none; display: grid; gap: 8px; margin: 4px 0 18px; padding: 14px 16px; border-radius: var(--radius); background: var(--soft); }
.trust-row li { display: flex; align-items: center; gap: 10px; font-size: .84rem; font-weight: 600; }

.accordion { border-top: 1px solid var(--line); margin-bottom: 24px; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0; font-weight: 800; cursor: pointer; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.acc-icon { position: relative; width: 14px; height: 14px; flex: none; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; top: 6px; left: 0; width: 14px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease); }
.acc-icon::after { transform: rotate(90deg); }
details[open] > summary .acc-icon::after { transform: rotate(0); }
.acc-body { padding-bottom: 16px; color: var(--ink-3); font-size: .92rem; }
.specs { margin: 0; display: grid; gap: 0; }
.specs div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 700; }

/* Course body */
.course-body, .course-about { clear: both; }
.course-block { margin-top: 28px; }
.course-block > h2 { font-size: 1.25rem; }
.course-block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 12px; }
.course-block-head h2 { margin: 0; font-size: 1.25rem; }
.course-block-head span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.outcomes { list-style: none; display: grid; gap: 10px; padding: 16px; border-radius: var(--radius); background: var(--y-50); }
.outcomes li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; line-height: 1.8; }
.outcomes svg { flex: none; margin-top: 3px; padding: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--y); }
.curriculum { display: grid; gap: 10px; }
.curr-section { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.curr-section > summary { display: flex; align-items: center; gap: 12px; padding: 14px; cursor: pointer; list-style: none; background: var(--soft); }
.curr-section > summary::-webkit-details-marker { display: none; }
.curr-no { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--ink); color: var(--y); font-weight: 900; font-size: .9rem; flex: none; }
.curr-title { flex: 1; display: flex; flex-direction: column; line-height: 1.55; }
.curr-title strong { font-size: .92rem; }
.curr-title small { color: var(--muted); font-size: .74rem; }
.curr-lessons { list-style: none; }
.curr-lessons li + li { border-top: 1px solid var(--line); }
.curr-lesson { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 10px 14px; border: 0; background: none; text-align: right; font-size: .88rem; cursor: pointer; }
a.curr-lesson:hover, button.curr-lesson:hover { background: var(--y-50); }
.curr-lesson.is-locked { cursor: default; color: var(--muted); }
.curr-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--soft); flex: none; }
button.curr-lesson .curr-ico, a.curr-lesson .curr-ico { background: var(--y); }
.is-done .curr-ico { background: var(--ok); color: #fff; }
.curr-name { flex: 1; line-height: 1.6; }
.curr-lesson time { font-size: .76rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tag-free { padding: 1px 8px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-size: .68rem; font-weight: 800; white-space: nowrap; }

.related, .upsells { padding-top: 28px; clear: both; }
.related > h2 { font-size: 1.2rem; margin-bottom: 14px; }

/* Sticky buy bar (phones) */
.sticky-buy {
	position: fixed; inset-inline: 0; bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); z-index: 55; display: flex; align-items: center; gap: 12px;
	padding: 10px var(--gutter); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0, 0, 0, .06);
	transform: translateY(130%); transition: transform .3s var(--ease);
}
.sticky-buy.is-visible { transform: none; }
.sticky-buy .sb-info { flex: 1; min-width: 0; line-height: 1.5; }
.sticky-buy .sb-title { display: block; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.sticky-buy .sb-price { font-weight: 900; font-size: .92rem; }
.sticky-buy .sb-price del { display: none; }
.sticky-buy .btn { min-height: 46px; padding: 0 20px; }

/* ==========================================================================
   Video player
   ========================================================================== */
.fanos-player { position: relative; background: #000; aspect-ratio: 16 / 9; overflow: hidden; user-select: none; -webkit-user-select: none; }
.fanos-player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.fanos-player.is-embed { aspect-ratio: auto; background: transparent; }
.fanos-player.is-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; display: block; }

/* Preview modal */
.video-modal { position: fixed; inset: 0; z-index: 130; display: flex; align-items: flex-end; background: rgba(0, 0, 0, .7); opacity: 0; transition: opacity .2s; }
.video-modal.is-open { opacity: 1; }
.video-modal-box { width: 100%; background: #111; color: #fff; border-radius: 20px 20px 0 0; overflow: hidden; padding-bottom: env(safe-area-inset-bottom); transform: translateY(30px); transition: transform .3s var(--ease); }
.video-modal.is-open .video-modal-box { transform: none; }
.video-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 14px 8px 6px; }
.video-modal-head strong { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-modal-head .icon-btn { color: #fff; }
.video-modal-head .icon-btn:hover { background: rgba(255, 255, 255, .1); }
.video-loading { aspect-ratio: 16 / 9; background: #000 radial-gradient(circle, rgba(255, 221, 0, .25) 0, transparent 60%); animation: pulse 1.2s infinite alternate; }
@keyframes pulse { to { opacity: .4; } }
.video-error { padding: 40px 16px; text-align: center; color: #bbb; }
.video-modal-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--y); color: var(--ink); font-size: .86rem; }
.video-modal-cta b { padding: 6px 14px; border-radius: 10px; background: var(--ink); color: var(--y); flex: none; }

/* ==========================================================================
   Lesson page /learn/
   ========================================================================== */
.fanos-learn .site-main { background: var(--soft); }
.learn-bar { background: var(--ink); color: #fff; }
.learn-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.learn-back { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 700; min-width: 0; }
.learn-back svg { transform: scaleX(-1); }
.learn-back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.learn-pct { display: flex; align-items: center; gap: 8px; width: 120px; flex: none; }
.learn-pct .progress { background: rgba(255, 255, 255, .15); }
.learn-pct .progress > span { background: var(--y); }
.learn-pct b { font-size: .78rem; color: var(--y); }
.learn-grid { display: grid; gap: 16px; padding-block: 0 32px; }
.learn-stage { position: relative; margin: 0 calc(var(--gutter) * -1); background: #000; }
.learn-empty, .learn-locked { display: grid; place-items: center; gap: 6px; aspect-ratio: 16 / 9; padding: 20px; text-align: center; background: var(--ink-2); color: #fff; }
.learn-locked { aspect-ratio: auto; min-height: 260px; }
.learn-locked h2 { color: #fff; font-size: 1.1rem; margin: 6px 0 0; }
.learn-locked p { color: rgba(255, 255, 255, .7); font-size: .88rem; margin: 0; }
.learn-locked svg { color: var(--y); }
.learn-locked-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.learn-locked .btn-ghost { border-color: #fff; color: #fff; }
.learn-head { padding-top: 14px; }
.learn-head h1 { font-size: clamp(1.15rem, 4.6vw, 1.6rem); margin: 0; }
.learn-actions { display: flex; gap: 8px; margin-top: 12px; }
.learn-actions .btn { flex: 1; min-height: 48px; padding: 0 12px; }
.learn-actions .learn-next { flex: 1.6; }
.learn-actions .btn-soft { background: #fff; border-color: var(--line); }
.learn-actions a.btn-soft svg { transform: none; }
.learn-done.is-done { background: var(--ok); color: #fff; border-color: var(--ok); }
.learn-notes { margin-top: 16px; padding: 16px; border-radius: var(--radius); background: #fff; }
.learn-notes .entry { font-size: .92rem; }
.learn-file, .learn-ask { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--y-50); border: 1px solid var(--y-200); }
.learn-file span, .learn-ask span { display: flex; flex-direction: column; line-height: 1.6; min-width: 0; }
.learn-file small, .learn-ask small { font-size: .76rem; color: var(--muted); }
.learn-ask { background: #fff; border-color: var(--line); }
.learn-up-next { position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; gap: 12px; text-align: center; background: rgba(0, 0, 0, .78); color: #fff; }
.learn-up-next p { margin: 0; }
.learn-up-next div { display: flex; gap: 8px; justify-content: center; }
.learn-list { background: #fff; border-radius: var(--radius); overflow: hidden; }
.learn-list > summary { display: flex; align-items: center; gap: 8px; padding: 14px 16px; font-weight: 800; cursor: pointer; list-style: none; border-bottom: 1px solid var(--line); }
.learn-list > summary::-webkit-details-marker { display: none; }
.learn-list > summary small { margin-inline-start: auto; color: var(--muted); font-weight: 600; }
.learn-sec h3 { margin: 0; padding: 10px 16px 4px; font-size: .8rem; color: var(--muted); }
.learn-sec ol { list-style: none; }
.learn-sec li a { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: .86rem; }
.learn-sec li a:hover { background: var(--soft); }
.learn-sec li.is-current a { background: var(--y-50); box-shadow: inset -3px 0 0 var(--y); font-weight: 800; }
.learn-sec li .curr-ico { width: 24px; height: 24px; }
.learn-sec li.is-locked a { color: var(--muted); }
.learn-sec li time { font-size: .72rem; color: var(--muted); }

/* ==========================================================================
   Generic pages, posts, videos
   ========================================================================== */
.page-wrap { padding-block: 22px 48px; }
.page-narrow { max-width: 780px; }
.page-head h1 { font-size: clamp(1.4rem, 5.5vw, 2.2rem); }
.archive-head p { color: var(--muted); max-width: 60ch; }
.archive-head a { text-decoration: underline; text-underline-offset: 3px; }
.entry { font-size: .96rem; }
.entry a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--y-600); text-decoration-thickness: 2px; }
.entry h2 { font-size: 1.25rem; margin: 30px 0 10px; }
.entry h3 { margin: 22px 0 8px; }
.entry ul, .entry ol { padding-inline-start: 1.3em; margin-bottom: 1em; }
.entry li { margin-bottom: 6px; }
.entry img { border-radius: var(--radius); }
.entry .lead { font-size: 1.06rem; color: var(--ink-3); }
.entry details { border-bottom: 1px solid var(--line); }
.entry details summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 0; font-weight: 800; cursor: pointer; list-style: none; }
.entry details summary::-webkit-details-marker { display: none; }
.entry details summary::after { content: "+"; font-size: 1.3rem; line-height: 1; flex: none; }
.entry details[open] summary::after { content: "−"; }
.entry details > div, .entry details > p { padding-bottom: 14px; color: var(--ink-3); }
.entry .faq-group { background: var(--soft); border-radius: var(--radius); padding: 4px 18px; margin-bottom: 16px; }
.entry .faq-group details:last-child { border-bottom: 0; }
.entry .note { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--y-50); border: 1px solid var(--y-200); font-size: .9rem; }
.entry .pillars { list-style: none; display: grid; gap: 12px; padding: 0; margin: 16px 0 24px; }
.entry .pillars li { background: var(--soft); border-radius: var(--radius); padding: 16px 18px; margin: 0; }
.entry .pillars strong { display: block; margin-bottom: 4px; }
.entry a.btn, .entry a.button { text-decoration: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cta-row.center { justify-content: center; }
.empty-state { text-align: center; padding-block: 64px; }
.big-404 { display: block; font-size: 5rem; font-weight: 900; line-height: 1; color: var(--y-600); }
.post-grid { display: grid; gap: 16px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.post-thumb { display: block; aspect-ratio: 16 / 9; background: var(--y-50); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 14px 16px; }
.post-card-body time { font-size: .74rem; color: var(--muted); }
.post-card-body h2 { font-size: 1rem; margin: 2px 0 6px; }
.post-card-body p { color: var(--muted); font-size: .86rem; margin: 0; }
.post-hero { margin: 0 0 20px; border-radius: var(--radius); overflow: hidden; }

.vgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 10px; }
.vcard h3 { font-size: .88rem; margin: 8px 2px 0; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard-media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--ink); }
.vcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.vcard:hover .vcard-media img { transform: scale(1.05); }
.vcard-ph { display: grid; place-items: center; width: 100%; height: 100%; background: var(--y); }
.vcard-mark { width: 40px; height: 40px; color: var(--ink); }
.vcard-play { position: absolute; left: 10px; bottom: 10px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 221, 0, .95); color: var(--ink); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.vcard-media time { position: absolute; left: 8px; top: 8px; padding: 0 7px; border-radius: 6px; background: rgba(0, 0, 0, .7); color: #fff; font-size: .72rem; font-weight: 700; }
.video-page { max-width: 980px; }
.video-stage { margin: -22px calc(var(--gutter) * -1) 0; }
.video-head { padding-top: 14px; }
.video-head h1 { font-size: clamp(1.2rem, 5vw, 1.8rem); }
.related-course { display: flex; align-items: center; gap: 12px; margin: 6px 0 20px; padding: 10px; border-radius: var(--radius); background: var(--y-50); border: 1.5px solid var(--y); }
.related-course img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; }
.related-course > span { flex: 1; display: flex; flex-direction: column; line-height: 1.6; min-width: 0; }
.related-course small { font-size: .74rem; color: var(--muted); }
.related-course .price { font-size: .84rem; font-weight: 800; }
.more-videos { margin-top: 32px; }
.more-videos h2 { font-size: 1.15rem; }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-row { margin: 0 0 14px; padding: 0; border: 0; }
.form-row label, .form-row legend { display: block; margin-bottom: 6px; font-size: .84rem; font-weight: 700; padding: 0; }
.form-row .required { color: var(--danger); text-decoration: none; border: 0; }
.form-row .optional { color: var(--muted); font-weight: 500; font-size: .76rem; }
.input-text, .form-row select, .form-row textarea, .woocommerce form .form-row input.input-text, .ticket-form select, .chat-reply textarea {
	width: 100%; height: 52px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff;
	font-size: 16px; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.form-row textarea, .chat-reply textarea { height: auto; min-height: 110px; padding: 12px 16px; line-height: 1.9; resize: vertical; }
.form-row select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat 16px center; padding-left: 36px; }
.input-text:focus, .form-row select:focus, .form-row textarea:focus, .chat-reply textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 221, 0, .45); }
.form-row.woocommerce-invalid .input-text, .form-row.woocommerce-invalid .select2-selection { border-color: var(--danger); }
input[dir="ltr"] { text-align: left; }
input[dir="ltr"]::placeholder { text-align: right; }
.select2-container { width: 100% !important; }
.select2-container--default .select2-selection--single { height: 52px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 50px; padding: 0 16px 0 36px; color: var(--ink); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 50px; left: 10px; right: auto; }
.select2-dropdown { border-color: var(--line); border-radius: var(--radius-sm); overflow: hidden; font-family: var(--font); }
.select2-search--dropdown .select2-search__field { height: 44px; border-radius: 10px; border-color: var(--line) !important; font-size: 16px; }
.select2-results__option { padding: 10px 14px; }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--y); color: var(--ink); }

/* Notices */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
	list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
	margin: 0 0 16px; padding: 14px 16px; border-radius: var(--radius); background: var(--y-50); border: 1px solid var(--y-200); font-size: .9rem;
}
.woocommerce-message { background: var(--ok-bg); border-color: #bfe6cd; }
.woocommerce-error { background: var(--danger-bg); border-color: #f4c7c0; color: var(--danger); flex-direction: column; align-items: flex-start; gap: 4px; }
.woocommerce-error li { list-style: none; }
.woocommerce-error a { color: inherit; }
.woocommerce-message .button, .woocommerce-info .button { min-height: 38px; padding: 0 16px; font-size: .82rem; order: 2; background: #fff; }

/* ---------- SMS login ---------- */
.otp-card { max-width: 420px; margin: 0 auto; padding: 26px 20px; border-radius: var(--radius-lg); background: #fff; text-align: center; box-shadow: var(--shadow); }
.otp-badge { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 18px; background: var(--y); }
.otp-badge.is-ok { background: var(--ok); color: #fff; }
.otp-card h2 { font-size: 1.25rem; margin-bottom: 2px; }
.otp-hint { color: var(--muted); font-size: .86rem; margin-bottom: 18px; }
.otp-card .input-text { text-align: center; margin-bottom: 12px; }
.otp-phone { font-size: 1.2rem !important; letter-spacing: .06em; font-weight: 700; height: 58px !important; }
.otp-code { font-size: 1.7rem !important; letter-spacing: .55em; padding-inline-start: .55em !important; font-weight: 800; height: 62px !important; }
.otp-name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.otp-name-row .input-text { text-align: right; }
.otp-link { border: 0; background: none; padding: 0; color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--y-600); text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: pointer; font-size: .84rem; }
.otp-skip { margin-top: 12px; }
.otp-resend { margin: 14px 0 0; font-size: .82rem; color: var(--muted); min-height: 1.5em; }
.otp-error { margin: 10px 0 0; color: var(--danger); font-size: .85rem; font-weight: 600; min-height: 1.2em; }
.otp-error:empty { display: none; }
.otp-test { padding: 8px 12px; border-radius: var(--radius-sm); background: var(--y-100); font-size: .85rem; font-weight: 700; }
.otp-terms { margin: 18px 0 0; font-size: .74rem; color: var(--muted); }
.otp-terms a { text-decoration: underline; }
.woocommerce-account:not(.logged-in) .page-head { display: none; }
.woocommerce-account:not(.logged-in) .page-wc { padding-top: 32px; }

/* ==========================================================================
   Checkout & cart
   ========================================================================== */
.page-wc .page-head { text-align: center; }
.woocommerce-checkout .page-head h1, .woocommerce-cart .page-head h1 { font-size: 1.35rem; }
.checkout-steps { list-style: none; display: flex; justify-content: center; gap: 4px; margin: -4px 0 18px; font-size: .74rem; color: var(--muted); }
.checkout-steps li { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.checkout-steps li:not(:last-child)::after { content: ""; width: 16px; height: 1.5px; background: var(--line); margin-inline: 4px; }
.checkout-steps span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); font-size: .7rem; font-weight: 800; }
.checkout-steps .is-done span { background: var(--ok); border-color: var(--ok); color: #fff; }
.checkout-steps .is-active { color: var(--ink); font-weight: 800; }
.checkout-steps .is-active span { background: var(--y); border-color: var(--y); color: var(--ink); }

.checkout-gate { max-width: 460px; margin: 0 auto; }
.gate-summary { margin-top: 16px; padding: 16px; border-radius: var(--radius); background: var(--soft); }
.gate-summary h3 { font-size: .9rem; }
.gate-summary ul { list-style: none; display: grid; gap: 10px; }
.gate-summary li { display: flex; align-items: center; gap: 10px; font-size: .85rem; }
.gate-summary li img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.gate-summary li span { flex: 1; }
.gate-total { display: flex; justify-content: space-between; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }

.woocommerce-form-coupon-toggle .woocommerce-info { background: #fff; border: 1.5px dashed var(--line); }
form.checkout_coupon { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 16px; padding: 14px; border-radius: var(--radius); background: var(--soft); }
form.checkout_coupon p:first-child { width: 100%; font-size: .85rem; color: var(--muted); margin: 0; }
form.checkout_coupon .form-row { margin: 0; }
form.checkout_coupon .form-row-first { flex: 1; }
form.checkout_coupon .button { min-height: 52px; }

form.checkout { display: grid; gap: 16px; }
#customer_details, .woocommerce-checkout-review-order { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 16px; }
#customer_details::before, #customer_details::after, .col2-set::before, .col2-set::after { display: none !important; content: none !important; }
#customer_details .col-1 { width: auto; float: none; }
#customer_details .col-2 { display: none; }
#customer_details h3, #order_review_heading { font-size: 1.02rem; font-weight: 800; margin: 0 0 14px; }
#order_review_heading { margin: 6px 0 -8px; padding-inline: 4px; }
.woocommerce-billing-fields__field-wrapper, .woocommerce-address-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; }
.woocommerce-billing-fields__field-wrapper .form-row:not(.form-row-first):not(.form-row-last),
.woocommerce-address-fields__field-wrapper .form-row:not(.form-row-first):not(.form-row-last) { grid-column: 1 / -1; }
.account-phone, .checkout-virtual-note { display: flex; align-items: center; gap: 8px; margin: -2px 0 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--soft); font-size: .84rem; }
.account-phone strong { margin-inline-start: auto; font-weight: 800; letter-spacing: .03em; }
.checkout-virtual-note { background: var(--ok-bg); color: #155e35; line-height: 1.8; align-items: flex-start; }

table.shop_table { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.shop_table th, table.shop_table td { padding: 12px 0; text-align: right; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.shop_table thead { display: none; }
.woocommerce-checkout-review-order-table .product-name { line-height: 1.7; font-weight: 600; }
.woocommerce-checkout-review-order-table .product-quantity { color: var(--muted); white-space: nowrap; }
.woocommerce-checkout-review-order-table td.product-total, .woocommerce-checkout-review-order-table tfoot td { text-align: left; }
.woocommerce-checkout-review-order-table tfoot th { font-weight: 500; color: var(--muted); }
.woocommerce-checkout-review-order-table .order-total th, .woocommerce-checkout-review-order-table .order-total td { border-bottom: 0; font-size: 1.08rem; font-weight: 900; color: var(--ink); }
.woocommerce-shipping-totals th { white-space: nowrap; }
#shipping_method { list-style: none; margin: 0; padding: 0; text-align: left; }
#shipping_method li { margin: 0 0 6px; }
#shipping_method label { display: inline-flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 2px 8px; font-size: .86rem; }
#shipping_method .ship-cost { font-weight: 800; }
#shipping_method input[type="radio"] { accent-color: var(--ink); margin-inline-end: 6px; }

#payment { margin-top: 16px; }
#payment .payment_methods { list-style: none; display: grid; gap: 10px; margin-bottom: 16px; }
#payment .payment_methods > li { position: relative; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; }
#payment .payment_methods > li:has(input:checked) { border-color: var(--ink); background: var(--y-50); }
#payment .payment_methods > li > input { position: absolute; top: 18px; right: 16px; accent-color: var(--ink); width: 18px; height: 18px; margin: 0; }
#payment .payment_methods > li > label { display: block; padding: 14px 44px 14px 16px; font-weight: 800; cursor: pointer; }
#payment .payment_methods img { display: inline-block; max-height: 26px; vertical-align: middle; margin-inline-start: 6px; }
#payment .payment_box { padding: 0 16px 14px; font-size: .82rem; color: var(--muted); }
#payment .payment_box p:last-child { margin: 0; }
#payment .place-order { margin: 0; padding: 0; }
#place_order { width: 100%; min-height: 58px; font-size: 1.05rem; }
.woocommerce-privacy-policy-text { font-size: .74rem; color: var(--muted); }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; font-size: .76rem; color: var(--muted); text-align: center; }
.blockUI.blockOverlay { background: rgba(255, 255, 255, .6) !important; border-radius: inherit; }

.checkout-sticky, .cart-sticky { display: none; }
@media (max-width: 719px) {
	.woocommerce-checkout .site-main, .woocommerce-cart .site-main { padding-bottom: 80px; }
	.checkout-sticky, .cart-sticky {
		position: fixed; z-index: 55; inset-inline: 0; bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px;
		padding: 10px 16px; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0, 0, 0, .06); transition: transform .25s var(--ease);
	}
	.checkout-sticky.is-hidden { transform: translateY(140%); }
	.checkout-sticky-total, .cart-sticky-total { flex: 1; display: flex; flex-direction: column; line-height: 1.5; }
	.checkout-sticky-total small, .cart-sticky-total small { font-size: .72rem; color: var(--muted); }
	.checkout-sticky-total strong, .cart-sticky-total strong { font-size: 1.02rem; font-weight: 900; }
	.checkout-sticky .btn, .cart-sticky .btn { min-height: 48px; padding: 0 30px; }
	.woocommerce-cart .wc-proceed-to-checkout { display: none; }
}

/* Cart page */
.woocommerce-cart-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 4px 16px; margin-bottom: 16px; }
table.cart, table.cart tbody { display: block; width: 100%; }
table.cart tr.cart_item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "thumb name remove" "thumb price price" "thumb qty subtotal"; column-gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
table.cart tr:not(.cart_item) { display: block; }
table.cart tr.cart_item td { border: 0; padding: 2px 0; }
table.cart td::before { display: none; }
table.cart .product-thumbnail { grid-area: thumb; }
table.cart .product-thumbnail img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); background: var(--soft); }
table.cart .product-name { grid-area: name; font-weight: 700; }
table.cart .product-price { grid-area: price; color: var(--muted); font-size: .82rem; }
table.cart .product-quantity { grid-area: qty; margin-top: 6px; }
table.cart .product-subtotal { grid-area: subtotal; text-align: left; font-weight: 800; align-self: center; }
table.cart .product-remove { grid-area: remove; }
table.cart .product-remove a { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--soft); color: var(--muted); font-size: 1.1rem; }
table.cart .quantity { height: 40px; border-radius: 12px; }
table.cart .quantity input.qty { width: 36px; min-width: 36px; }
table.cart .qty-btn { width: 34px; }
table.cart td.actions { display: block; padding: 14px 0 12px; border: 0; }
table.cart td.actions .coupon { display: flex; gap: 8px; }
table.cart td.actions .coupon .input-text { flex: 1; height: 46px; min-width: 0; }
table.cart td.actions .coupon label { display: none; }
table.cart td.actions .coupon .button { min-height: 46px; padding: 0 18px; }
table.cart td.actions > button[name="update_cart"] { display: none; }
.cart-collaterals .cart_totals { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 16px; }
.cart_totals h2 { font-size: 1.02rem; margin-bottom: 6px; }
.cart_totals table.shop_table th { white-space: nowrap; font-weight: 500; color: var(--muted); padding-inline-end: 12px; }
.cart_totals table.shop_table td { text-align: left; }
.cart_totals .order-total th, .cart_totals .order-total td { color: var(--ink); font-weight: 900; border-bottom: 0; }
.cart_totals .cart-shipping-note td { padding: 0 0 6px; border: 0; text-align: right; font-size: .76rem; color: var(--muted); }
.wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 56px; margin-top: 12px; }
.woocommerce-cart .cart-empty.woocommerce-info { flex-direction: column; justify-content: center; padding: 48px 16px 8px; background: transparent; border: 0; color: var(--muted); }
.return-to-shop { text-align: center; }
.return-to-shop .button { background: var(--y); }

/* Thank you */
.woocommerce-order { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 16px; }
.woocommerce-thankyou-order-received { text-align: center; font-size: 1.05rem; font-weight: 800; padding-top: 70px; position: relative; }
.woocommerce-thankyou-order-received::before {
	content: ""; position: absolute; top: 0; left: 50%; width: 58px; height: 58px; margin-left: -29px; border-radius: 20px;
	background: var(--y) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") no-repeat center;
}
ul.order_details { list-style: none; display: grid; grid-template-columns: 1fr; margin: 16px 0; padding: 2px 14px; border-radius: var(--radius); background: var(--soft); }
ul.order_details li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
ul.order_details li:last-child { border-bottom: 0; }
ul.order_details li strong { color: var(--ink); font-size: .88rem; text-align: left; }
.next-steps { display: grid; gap: 10px; margin: 16px 0; }
.next-step { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--soft); }
.next-step.is-primary { background: var(--y); }
.next-step > span { display: flex; flex-direction: column; line-height: 1.6; }
.next-step small { font-size: .78rem; color: var(--ink-3); }
.woocommerce-order-details, .woocommerce-customer-details { margin-top: 20px; }
.woocommerce-order-details__title, .woocommerce-column__title { font-size: 1rem; }
.woocommerce-order-details table.shop_table td:last-child, .woocommerce-order-details tfoot td { text-align: left; }
.woocommerce-order-details tfoot th { font-weight: 500; color: var(--muted); }
.woocommerce-order-details .wc-item-meta { list-style: none; margin: 2px 0 0; padding: 0; font-size: .78rem; color: var(--muted); }
.woocommerce-customer-details address { font-style: normal; padding: 14px; border-radius: var(--radius-sm); background: var(--soft); font-size: .88rem; line-height: 2; }
.woocommerce-order-downloads table { font-size: .84rem; }

/* ==========================================================================
   My Account
   ========================================================================== */
.woocommerce-account.logged-in .page-head { display: none; }
.woocommerce-account.logged-in .page-wc { padding-top: 14px; }
.woocommerce-account .woocommerce mark { background: none; color: var(--ink); font-weight: 800; padding: 0; }
.woocommerce-MyAccount-navigation { margin: 0 calc(var(--gutter) * -1) 14px; }
.acc-user { display: none; }
.woocommerce-MyAccount-navigation ul { list-style: none; display: flex; gap: 6px; overflow-x: auto; padding: 2px var(--gutter) 6px; scrollbar-width: none; }
.woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
.woocommerce-MyAccount-navigation li { margin: 0; flex: none; }
.woocommerce-MyAccount-navigation a { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 12px; background: var(--soft); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--ink); color: var(--y); }
.woocommerce-MyAccount-navigation-link--customer-logout a { background: transparent; color: var(--muted); }
.menu-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--danger); color: #fff; font-size: .66rem; font-weight: 800; line-height: 1; }
.woocommerce-MyAccount-content { min-width: 0; }
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.acc-head h2 { margin: 0; font-size: 1.25rem; }
.acc-back { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 700; color: var(--muted); width: 100%; }

.account-hello h2 { font-size: 1.35rem; margin: 0; }
.account-hello p { margin: 0 0 14px; color: var(--muted); font-size: .88rem; }
.account-alert { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 12px; border-radius: 14px; background: var(--soft); font-size: .86rem; font-weight: 600; }
.account-alert.is-yellow { background: var(--y); font-weight: 800; }
.continue-card { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 12px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.continue-media { position: relative; width: 104px; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; flex: none; background: #333; }
.continue-media img { width: 100%; height: 100%; object-fit: cover; }
.continue-body { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.6; }
.continue-body small { color: var(--y); font-size: .74rem; font-weight: 800; }
.continue-body strong { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.continue-card .progress { background: rgba(255, 255, 255, .18); }
.continue-card .progress > span { background: var(--y); }
.my-course-play { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--y); color: var(--ink); }
.my-course-progress { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.my-course-progress b { font-size: .76rem; min-width: 32px; }
.account-latest { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; margin-bottom: 12px; border-radius: var(--radius); border: 1px solid var(--line); }
.account-latest > span:first-child { display: flex; flex-direction: column; line-height: 1.7; }
.account-latest small, .account-latest time { color: var(--muted); font-size: .74rem; }
.account-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.account-tiles a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 92px; padding: 8px; border-radius: var(--radius); background: var(--soft); font-size: .78rem; font-weight: 700; text-align: center; transition: background .2s, transform .2s var(--ease); }
.account-tiles a:hover { background: var(--y-100); transform: translateY(-2px); }
.account-tiles svg { padding: 6px; width: 38px; height: 38px; border-radius: 12px; background: #fff; }
.account-tiles b { position: absolute; top: 8px; left: 8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--y); font-size: .68rem; display: grid; place-items: center; }
.account-tiles b.is-alert { background: var(--danger); color: #fff; }
.account-logout { text-align: center; margin: 18px 0 0; font-size: .84rem; }
.account-logout a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.account-empty { text-align: center; padding: 30px 8px; color: var(--muted); }
.account-empty svg { margin: 0 auto 8px; padding: 12px; width: 60px; height: 60px; border-radius: 20px; background: var(--y-50); color: var(--ink); }
.account-empty .btn { margin-top: 4px; }

.order-status, .ticket-status { flex: none; display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800; background: var(--soft); white-space: nowrap; }
.status-processing .order-status, .order-status.status-processing { background: var(--y-100); }
.status-completed .order-status, .order-status.status-completed { background: var(--ok-bg); color: var(--ok); }
.status-on-hold .order-status, .order-status.status-on-hold, .status-pending .order-status, .order-status.status-pending { background: #FFF0D6; color: #8A5A00; }
.status-cancelled .order-status, .order-status.status-cancelled, .status-failed .order-status, .order-status.status-failed, .status-refunded .order-status { background: var(--danger-bg); color: var(--danger); }

.order-cards { list-style: none; display: grid; gap: 12px; }
.order-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.order-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.order-card-no { display: flex; flex-direction: column; font-weight: 800; font-size: .92rem; line-height: 1.6; }
.order-card-no time { font-weight: 500; font-size: .76rem; color: var(--muted); }
.order-card-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.order-thumbs { display: flex; }
.order-thumbs img { width: 42px; height: 42px; object-fit: cover; border-radius: 10px; border: 2px solid #fff; background: var(--soft); margin-inline-start: -10px; }
.order-thumbs img:first-child { margin-inline-start: 0; }
.order-card-total { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.6; }
.order-card-total span { font-size: .74rem; color: var(--muted); }
.order-card-total strong { font-size: .95rem; }
.order-card-actions { display: flex; gap: 8px; padding: 0 14px 14px; }
.order-card-actions .button { flex: 1; min-height: 42px; font-size: .84rem; padding: 0 12px; }
.order-card-actions .button.alt { background: var(--ink); color: var(--y); box-shadow: none; }
.order-pager { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
.woocommerce-view-order .woocommerce-MyAccount-content > p:first-of-type { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--soft); font-size: .86rem; }
.woocommerce-OrderUpdates { list-style: none; padding: 0; }
.woocommerce-OrderUpdate { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--soft); margin-bottom: 8px; font-size: .86rem; }

.my-courses { list-style: none; display: grid; gap: 12px; }
.my-course { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 10px; border-radius: var(--radius); border: 1px solid var(--line); }
.my-course-media { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--soft); align-self: start; }
.my-course-media img { width: 100%; height: 100%; object-fit: cover; }
.my-course-body h3 { font-size: .92rem; margin: 0; line-height: 1.6; }
.my-course-meta { font-size: .74rem; color: var(--muted); margin: 0; }
.my-course .btn { margin-top: 8px; }

.dl-cards { list-style: none; display: grid; gap: 10px; }
.dl-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius); border: 1px solid var(--line); }
.dl-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--y-100); flex: none; }
.dl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.6; }
.dl-body strong { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-body small { font-size: .74rem; color: var(--muted); }

.woocommerce-Addresses { display: grid; gap: 12px; margin-top: 10px; }
.woocommerce-Addresses::before, .woocommerce-Addresses::after { display: none; }
.woocommerce-Address { width: auto !important; float: none !important; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.woocommerce-Address-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.woocommerce-Address-title h2 { font-size: 1rem; margin: 0; }
.woocommerce-Address-title .edit { font-size: .82rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.woocommerce-Address address { font-style: normal; font-size: .88rem; line-height: 2; }
.woocommerce-MyAccount-content form h2, .woocommerce-MyAccount-content form h3 { font-size: 1.05rem; margin-bottom: 14px; }
.woocommerce-address-fields .button, .woocommerce-EditAccountForm .button { width: 100%; min-height: 52px; background: var(--y); color: var(--ink); }
.woocommerce-EditAccountForm { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; }
.woocommerce-EditAccountForm > *:not(.form-row-first):not(.form-row-last) { grid-column: 1 / -1; }
.woocommerce-EditAccountForm .clear { display: none; }
.woocommerce-EditAccountForm #account_display_name_description { display: block; font-size: .74rem; color: var(--muted); margin-top: 4px; }

/* Tickets */
.tickets { list-style: none; display: grid; gap: 8px; }
.ticket-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); }
.ticket-row.is-unread { border-color: var(--y-600); background: var(--y-50); }
.ticket-main { display: flex; flex-direction: column; line-height: 1.6; min-width: 0; }
.ticket-main strong { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-main small { font-size: .74rem; color: var(--muted); }
.ticket-status.is-open { background: #FFF0D6; color: #8A5A00; }
.ticket-status.is-answered { background: var(--ok-bg); color: var(--ok); }
.ticket-status.is-closed { background: var(--soft); color: var(--muted); }
.is-unread .ticket-status { background: var(--ink); color: var(--y); }
.chip-radios { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio span { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 12px; border: 1.5px solid var(--line); font-size: .84rem; font-weight: 600; cursor: pointer; }
.chip-radio input:checked + span { border-color: var(--ink); background: var(--y); font-weight: 800; }
.chip-radio input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.file-pick { position: relative; display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px dashed var(--line); font-size: .84rem; color: var(--muted); cursor: pointer; overflow: hidden; }
.file-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-pick.has-file { border-color: var(--ok); color: var(--ok); font-weight: 700; }
.file-pick.is-icon { width: 48px; height: 48px; padding: 0; justify-content: center; border-radius: 12px; }
.file-pick.is-icon span { display: none; }
.file-pick.is-icon.has-file { background: var(--ok-bg); }
.ticket-top h2 { font-size: 1.15rem; margin-bottom: 4px; }
.ticket-top p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 16px; }
.ticket-top small { color: var(--muted); font-size: .76rem; }
.chat { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.chat-msg { display: flex; flex-direction: column; max-width: 88%; }
.chat-msg.is-me { align-self: flex-start; }
.chat-msg.is-staff { align-self: flex-end; align-items: flex-end; }
.chat-bubble { padding: 10px 14px; border-radius: 18px; font-size: .9rem; line-height: 1.9; }
.chat-bubble p:last-child { margin-bottom: 0; }
.chat-bubble a { text-decoration: underline; }
.is-me .chat-bubble { background: var(--soft); border-start-start-radius: 6px; }
.is-staff .chat-bubble { background: var(--y); border-start-end-radius: 6px; }
.chat-who { display: block; font-size: .74rem; margin-bottom: 2px; }
.chat-msg time { font-size: .7rem; color: var(--muted); margin-top: 3px; padding-inline: 6px; }
.chat-att { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .7); font-size: .78rem; font-weight: 700; text-decoration: none !important; max-width: 100%; }
.chat-att span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-reply { padding: 12px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.chat-reply textarea { min-height: 80px; border: 0; padding: 4px; box-shadow: none !important; resize: none; }
.chat-reply-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.chat-reply-bar .btn { min-height: 48px; padding: 0 28px; }
.chat-closed { margin: 0 0 8px; font-size: .8rem; color: var(--muted); }
.ticket-close { text-align: center; margin-top: 14px; }

/* ==========================================================================
   Support widget
   ========================================================================== */
.assist-launcher {
	position: fixed; z-index: 70; left: 14px; bottom: calc(var(--bottom-nav-h) + 14px + env(safe-area-inset-bottom));
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 54px; height: 54px; padding: 0;
	border: 0; border-radius: 18px; background: var(--ink); color: var(--y); font-size: .86rem; font-weight: 800; cursor: pointer;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .28); transition: transform .3s var(--ease), opacity .2s, bottom .3s var(--ease); -webkit-tap-highlight-color: transparent;
}
.assist-launcher:hover { transform: translateY(-2px); }
.assist-launcher.is-hidden { opacity: 0; pointer-events: none; transform: scale(.9); }
.assist-launcher-icon { display: grid; place-items: center; }
.assist-launcher-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body.sticky-buy-on .assist-launcher, .woocommerce-cart .assist-launcher { bottom: calc(var(--bottom-nav-h) + 86px + env(safe-area-inset-bottom)); }

.assist-panel {
	position: fixed; z-index: 110; inset: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: #fff;
	transform: translateY(100%); transition: transform .3s var(--ease); padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
.assist-panel.is-open { transform: none; }
.assist-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 6px; background: var(--y); }
.assist-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: var(--ink); flex: none; }
.assist-mark { width: 22px; height: 22px; color: var(--y); }
.assist-head > div { flex: 1; display: flex; flex-direction: column; line-height: 1.5; }
.assist-head strong { font-weight: 900; }
.assist-head span { font-size: .72rem; color: var(--ink-3); }
.assist-head .icon-btn:hover { background: rgba(0, 0, 0, .06); }
.assist-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; background: var(--soft); }
.assist-msg { max-width: 88%; padding: 10px 14px; border-radius: 18px; font-size: .9rem; line-height: 1.9; animation: assistIn .25s var(--ease); }
.assist-msg p { margin: 6px 0 0; }
.assist-msg p:first-child { margin-top: 0; }
.assist-bot { align-self: flex-start; background: #fff; border-start-start-radius: 6px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.assist-me { align-self: flex-end; background: var(--ink); color: #fff; border-start-end-radius: 6px; }
.assist-list { margin: 6px 0; padding-inline-start: 1.1em; }
@keyframes assistIn { from { opacity: 0; transform: translateY(6px); } }
.assist-card { display: flex; gap: 12px; align-items: center; margin: 4px 0; }
.assist-card img { width: 76px; height: 56px; object-fit: cover; border-radius: 10px; background: var(--soft); flex: none; }
.assist-card > div { display: flex; flex-direction: column; line-height: 1.6; min-width: 0; }
.assist-card-cat { font-size: .7rem; color: var(--muted); font-weight: 700; }
.assist-card-sub { font-size: .74rem; color: var(--muted); }
.assist-price { margin-top: 2px; }
.assist-choices { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--line); max-height: 46%; overflow-y: auto; background: #fff; }
.assist-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font-size: .85rem; font-weight: 600; line-height: 1.5; cursor: pointer; text-align: right; transition: border-color .2s, background .2s; }
.assist-chip:hover { border-color: var(--ink); }
.assist-chip small { color: var(--muted); font-size: .74rem; font-weight: 500; }
.assist-chip.is-primary { background: var(--y); border-color: var(--y); font-weight: 800; }
.assist-chip.is-primary small { color: var(--ink-3); }
.assist-chip.is-link { background: transparent; border-style: dashed; color: var(--muted); }
.assist-wait { font-size: .84rem; color: var(--muted); padding: 10px 0; }
html.assist-open { overflow: hidden; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .78); padding: 40px 0 0; font-size: .9rem; }
.footer-grid { display: grid; gap: 28px; }
.footer-logo { display: block; height: 52px; width: auto; aspect-ratio: 195 / 89; color: #fff; margin-bottom: 10px; }
.site-footer .footer-logo [fill]:not([fill="none"]) { fill: #fff; }
.footer-brand p { max-width: 42ch; }
.footer-col h3 { color: var(--y); font-size: .95rem; margin-bottom: 10px; }
.footer-col .menu { list-style: none; display: grid; gap: 8px; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: flex-start; gap: 8px; }
.footer-contact li a { display: inline-flex; align-items: center; gap: 8px; }
.footer-contact svg { margin-top: 3px; color: var(--y); }
.socials { display: flex; gap: 8px; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: rgba(255, 255, 255, .08); color: #fff; }
.socials a:hover { background: var(--y); color: var(--ink); }
.trust-badges { display: flex; gap: 10px; margin-top: 14px; }
.trust-badges a { display: block; }
.trust-badges img { display: block; background: #fff; border-radius: 12px; padding: 6px; height: 96px; width: auto; aspect-ratio: 125 / 136; object-fit: contain; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 32px; padding-block: 16px; font-size: .76rem; text-align: center; }
.footer-bottom p { margin: 0; }

/* ==========================================================================
   ≥ 600px
   ========================================================================== */
@media (min-width: 600px) {
	:root { --gutter: 24px; }
	ul.products { grid-template-columns: repeat(3, 1fr); gap: 16px; }
	.kinds-row { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin-inline: auto; padding: 0 var(--gutter); }
	.features { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.vgrid { grid-template-columns: repeat(3, 1fr); gap: 20px 16px; }
	.post-grid { grid-template-columns: repeat(2, 1fr); }
	.rail-mobile { grid-auto-flow: row !important; grid-template-columns: repeat(3, 1fr) !important; overflow: visible; margin-inline: 0 !important; padding: 0 !important; }
	.rail { grid-auto-columns: 42%; }
	.course-stats { grid-template-columns: repeat(3, 1fr); }
	.account-tiles { grid-template-columns: repeat(3, 1fr); }
	.my-course { grid-template-columns: 180px 1fr; }
	ul.order_details { grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0; background: none; }
	ul.order_details li { flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px; border: 0; border-radius: var(--radius-sm); background: var(--soft); }
	.video-modal { align-items: center; justify-content: center; padding: 24px; }
	.video-modal-box { max-width: 900px; border-radius: 20px; }
	.otp-card { padding: 32px 28px; }
}

/* ==========================================================================
   ≥ 720px — tablet: two-column layouts
   ========================================================================== */
@media (min-width: 720px) {
	.hero-inner { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 24px; padding-top: 36px; }
	.hero-copy { text-align: right; padding-bottom: 44px; }
	.hero-copy p { margin-inline: 0; }
	.hero-cta { display: flex; flex-wrap: wrap; }
	.hero-cta .btn { padding: 0 26px; }
	.hero-points { justify-content: flex-start; }
	.hero-media { margin: 0; width: 100%; }
	.teacher-inner { grid-template-columns: 300px 1fr; gap: 40px; }
	.teacher-copy { text-align: right; }

	div.product { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0 32px; align-items: start; }
	div.product > .woocommerce-product-gallery, div.product > .course-trailer { margin: 0; border-radius: var(--radius-lg); overflow: hidden; }
	.flex-control-thumbs { padding: 10px 0 0; }
	div.product > .summary { position: sticky; top: calc(var(--header-h) + 16px); }
	div.product > .course-body, div.product > .course-about, div.product > .related, div.product > .upsells { grid-column: 1; }
	.kind-book div.product > .related, .kind-file div.product > .related { grid-column: 1 / -1; }
	div.product > .related { grid-column: 1 / -1; }
	.sticky-buy { display: none !important; }

	form.checkout { grid-template-columns: 1.15fr 1fr; grid-template-rows: auto 1fr; gap: 16px 20px; align-items: start; }
	#customer_details { grid-column: 1; grid-row: 1 / span 2; }
	#order_review_heading { grid-column: 2; grid-row: 1; margin: 0; }
	.woocommerce-checkout-review-order { grid-column: 2; grid-row: 2; position: sticky; top: calc(var(--header-h) + 16px); }
	.woocommerce-cart .woocommerce { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
	.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper, .woocommerce-cart .woocommerce > .cart-empty, .woocommerce-cart .woocommerce > .return-to-shop { grid-column: 1 / -1; }
	.cart-collaterals .cart_totals { position: sticky; top: calc(var(--header-h) + 24px); }

	.learn-stage { margin: 16px 0 0; border-radius: var(--radius); overflow: hidden; }
	.video-stage { margin: 0 0 4px; border-radius: var(--radius); overflow: hidden; }
}

/* ==========================================================================
   ≥ 960px — desktop
   ========================================================================== */
@media (min-width: 960px) {
	:root { --gutter: 32px; --header-h: 76px; --bottom-nav-h: 0px; }
	body { font-size: 16px; padding-bottom: 0; }
	.bottom-nav, .menu-toggle { display: none !important; }
	.hide-mobile { display: inline-flex !important; }

	.header-inner { grid-template-columns: auto 1fr auto; gap: 36px; }
	.brand-logo { height: 42px; }
	.primary-nav { display: block; justify-self: center; }
	.primary-nav .menu { list-style: none; display: flex; gap: 26px; }
	.primary-nav a { position: relative; font-size: .92rem; font-weight: 700; padding: 6px 0; }
	.primary-nav a::after { content: ""; position: absolute; right: 0; left: 0; bottom: -2px; height: 3px; border-radius: 3px; background: var(--y); transform: scaleX(0); transition: transform .25s var(--ease); }
	.primary-nav a:hover::after, .primary-nav .current-menu-item a::after { transform: scaleX(1); }
	.header-actions { gap: 6px; }

	.toast { bottom: 24px; }
	.drawer-cart .drawer-panel { top: 0; bottom: 0; left: 0; right: auto; width: 420px; max-height: none; border-radius: 0; transform: translateX(-100%); }
	.drawer-cart .drawer-panel::before { display: none; }
	.drawer-login { display: grid; place-items: center; }
	.drawer-login .drawer-panel { position: relative; inset: auto; width: 440px; max-height: 90vh; border-radius: var(--radius-lg); transform: scale(.96); opacity: 0; transition: transform .25s var(--ease), opacity .2s; }
	.drawer-login.is-open .drawer-panel { transform: none; opacity: 1; }
	.drawer-login .drawer-panel::before { display: none; }

	.hero-inner { gap: 48px; padding-top: 48px; }
	.hero-copy { padding-bottom: 72px; }
	.hero-copy p { font-size: 1.06rem; }
	.hero-media { max-width: 480px; justify-self: center; }
	.kinds { padding-top: 28px; }
	.kind-tile { padding: 16px; }
	.section { padding: 64px 0; }
	.section-head { margin-bottom: 26px; }
	.rail { grid-auto-flow: row !important; grid-template-columns: repeat(4, 1fr) !important; overflow: visible; margin-inline: 0 !important; padding: 0 !important; gap: 20px !important; }
	ul.products { grid-template-columns: repeat(4, 1fr); gap: 20px; }
	.vgrid { gap: 24px 20px; }
	.features { grid-template-columns: repeat(4, 1fr); gap: 16px; }
	.footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
	.post-grid { grid-template-columns: repeat(3, 1fr); }

	div.product { grid-template-columns: 1.3fr 1fr; gap: 0 48px; }
	.summary { padding: 4px 0; }

	.learn-grid { grid-template-columns: 1fr 340px; align-items: start; gap: 24px; padding-top: 16px; }
	.learn-stage { margin-top: 0; }
	.learn-side { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; border-radius: var(--radius); }
	.learn-actions .btn { flex: 0 1 auto; padding: 0 22px; }
	.learn-actions .learn-next { margin-inline-start: auto; flex: 0 1 auto; }

	.woocommerce-account.logged-in .page-wc .woocommerce { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
	.woocommerce-account.logged-in .page-wc .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
	.woocommerce-MyAccount-navigation { position: sticky; top: calc(var(--header-h) + 20px); margin: 0; padding: 12px; border-radius: var(--radius-lg); background: var(--soft); }
	.acc-user { display: flex; align-items: center; gap: 10px; padding: 6px 6px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
	.acc-user > span:last-child { display: flex; flex-direction: column; line-height: 1.6; min-width: 0; }
	.acc-user strong { font-size: .9rem; }
	.acc-user small { font-size: .76rem; color: var(--muted); text-align: right; }
	.woocommerce-MyAccount-navigation ul { flex-direction: column; gap: 2px; padding: 0; overflow: visible; }
	.woocommerce-MyAccount-navigation a { background: transparent; padding: 11px 12px; font-size: .9rem; }
	.woocommerce-MyAccount-navigation a:hover { background: #fff; }
	.woocommerce-MyAccount-navigation .menu-badge { margin-inline-start: auto; }
	.woocommerce-MyAccount-content { padding: 4px 0; min-height: 360px; }
	.account-tiles { grid-template-columns: repeat(6, 1fr); }
	.order-cards, .my-courses { grid-template-columns: repeat(2, 1fr); }
	.my-course { grid-template-columns: 1fr; }
	.woocommerce-Addresses { grid-template-columns: repeat(2, 1fr); }
	.woocommerce-address-fields, .woocommerce-EditAccountForm, .ticket-form { max-width: 640px; }
	.woocommerce-address-fields .button, .woocommerce-EditAccountForm .button { width: auto; padding: 0 36px; }
	.ticket-form .btn-block { width: auto; padding: 0 40px; }
	.acc-back { width: auto; }

	.assist-launcher { left: 24px; bottom: 24px; width: auto; height: 52px; padding: 0 18px 0 20px; border-radius: 16px; }
	.assist-launcher-text { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
	body.sticky-buy-on .assist-launcher, .woocommerce-cart .assist-launcher { bottom: 24px; }
	.assist-panel { inset: auto auto 24px 24px; width: 400px; height: min(640px, calc(100vh - 120px)); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); transform: translateY(16px) scale(.98); opacity: 0; transition: transform .25s var(--ease), opacity .2s; padding: 0; }
	.assist-panel.is-open { transform: none; opacity: 1; }
	html.assist-open { overflow: auto; }
}

@media (max-width: 359px) {
	:root { --gutter: 12px; }
	ul.products { gap: 8px; }
	.card-title { font-size: .84rem; }
	.bottom-nav a { font-size: .62rem; }
	.hero-cta { grid-template-columns: 1fr; }
	.account-tiles { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print { .assist-launcher, .assist-panel, .bottom-nav, .site-header, .site-footer { display: none !important; } }

/* Links inside WooCommerce blocks that live in .entry: no text underline */
.entry .next-step, .entry .woocommerce-order-details a, .entry .woocommerce-MyAccount-content a.btn, .entry .account-tiles a, .entry .account-latest,
.entry .order-card a, .entry .continue-card, .entry .ticket-row, .entry .my-course a, .entry .dl-card a, .entry .woocommerce-MyAccount-navigation a,
.entry .acc-back, .entry .account-alert, .entry .chat-att, .entry table.cart a, .entry .gate-summary a, .entry .woocommerce-Address-title a.edit + * { text-decoration: none; }
@media (max-width: 959px) { .admin-bar .assist-panel { top: 46px; height: calc(100dvh - 46px); } }

/* ==========================================================================
   Custom video controls + watermark
   ========================================================================== */
.fanos-player { outline: none; -webkit-touch-callout: none; }
.fanos-player video { pointer-events: auto; }
.fp-ui { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.fp-ui > * { pointer-events: auto; }
.fp-big {
	position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 64px; height: 64px; border: 0; border-radius: 50%;
	background: var(--y); color: var(--ink); cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); transition: opacity .2s, transform .2s;
}
.fp-big svg { width: 30px; height: 30px; margin-left: 3px; }
.fanos-player.is-playing .fp-big { opacity: 0; pointer-events: none; transform: scale(.8); }
.fp-bar {
	position: absolute; inset: auto 0 0 0; display: flex; align-items: center; gap: 4px; padding: 26px 8px 6px;
	background: linear-gradient(transparent, rgba(0, 0, 0, .75)); color: #fff; transition: opacity .25s;
}
.fanos-player.is-playing:not(.show-ui) .fp-bar { opacity: 0; pointer-events: none; }
.fanos-player.is-playing:not(.show-ui) { cursor: none; }
.fp-btn { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 6px; border: 0; border-radius: 10px; background: transparent; color: #fff; font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; }
.fp-btn:hover { background: rgba(255, 255, 255, .14); }
.fp-time, .fp-dur { font-size: .72rem; font-variant-numeric: tabular-nums; min-width: 34px; text-align: center; opacity: .9; }
.fp-seek { --p: 0%; flex: 1; min-width: 40px; height: 22px; margin: 0 4px; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.fp-seek::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--y) var(--p), rgba(255, 255, 255, .3) var(--p)); }
.fp-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: var(--y); border: 0; }
.fp-seek::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .3); }
.fp-seek::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--y); }
.fp-seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--y); border: 0; }
.fp-skip { position: absolute; top: 50%; transform: translateY(-50%); padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .78rem; font-weight: 800; opacity: 0; pointer-events: none; }
.fp-skip-back { left: 12%; }
.fp-skip-fwd { right: 12%; }
.fp-skip.is-on { animation: fpSkip .7s ease; }
@keyframes fpSkip { 20%, 60% { opacity: 1; } }
.fp-msg { position: absolute; inset: auto 12px 56px; margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .75); color: #fff; font-size: .8rem; text-align: center; }
.fanos-player.is-loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: var(--y); animation: fpSpin .8s linear infinite; z-index: 2; pointer-events: none; }
@keyframes fpSpin { to { transform: rotate(360deg); } }
.fp-wm {
	position: absolute; z-index: 2; pointer-events: none; user-select: none;
	font-family: var(--font); font-size: 15px; font-weight: 500; line-height: 1; letter-spacing: .04em; direction: ltr; white-space: nowrap;
	color: rgba(140, 140, 140, .7); /* mid-grey: readable on both dark and light (white board / yellow) slides */
}
.fp-wm.at-tr { top: 4%; right: 3%; }
.fp-wm.at-tl { top: 4%; left: 3%; }
.fp-wm.at-br { bottom: 22%; right: 3%; }
.fp-wm.at-bl { bottom: 22%; left: 3%; }
.fp-wm.at-c { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.fanos-player:fullscreen, .fanos-player:-webkit-full-screen { width: 100%; height: 100%; aspect-ratio: auto; background: #000; }
.fanos-player:fullscreen .fp-wm, .fanos-player.is-pseudo-fs .fp-wm { font-size: 19px; }
@media (min-width: 720px) { .fp-wm { font-size: 17px; } }
.fanos-player.is-pseudo-fs { position: fixed; inset: 0; z-index: 2147483000; width: 100vw; height: 100vh; height: 100dvh; aspect-ratio: auto; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
html.fp-lock, html.fp-lock body { overflow: hidden; }
@media (hover: hover) { .fanos-player:hover .fp-bar { opacity: 1; pointer-events: auto; } }

/* ==========================================================================
   Product photos are square (1:1). Uploaded images are centre-cropped to fill the frame.
   ========================================================================== */
.card-media { aspect-ratio: 1 / 1; }
.card-media img,
.kind-book .card-media img, .kind-file .card-media img { object-fit: cover; padding: 0; }
.woocommerce-product-gallery__image img { aspect-ratio: 1 / 1; max-height: none; object-fit: cover; }
.woocommerce-product-gallery { background: var(--soft); }
@media (max-width: 719px) { .woocommerce-product-gallery__image img { max-height: 100vw; } }
.my-course { grid-template-columns: 96px 1fr; }
.my-course-media, .continue-media { aspect-ratio: 1 / 1; }
.continue-media { width: 76px; }
.assist-card img { width: 64px; height: 64px; }
.related-course img, .gate-summary li img, table.cart .product-thumbnail img, .woocommerce-mini-cart-item img, .order-thumbs img { aspect-ratio: 1 / 1; object-fit: cover; }
@media (min-width: 600px) { .my-course { grid-template-columns: 140px 1fr; } }
@media (min-width: 960px) {
	.my-course { grid-template-columns: 120px 1fr; }
	.rail .card-media, ul.products .card-media { aspect-ratio: 1 / 1; }
}

/* ==========================================================================
   Payment link / event registration page (/pay/…)
   ========================================================================== */
.pl-wrap { max-width: 640px; padding-block: 16px 40px; }
.pl-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.pl-media { margin: 0; aspect-ratio: 1 / 1; background: var(--soft); }
.pl-media img { width: 100%; height: 100%; object-fit: cover; }
.pl-body { padding: 18px 18px 8px; }
.pl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pl-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; background: var(--y); font-size: .74rem; font-weight: 800; }
.pl-tag.is-soft { background: var(--soft); font-weight: 600; }
.pl-body h1 { font-size: clamp(1.3rem, 5.6vw, 1.8rem); margin-bottom: 4px; }
.pl-price { font-size: 1.4rem; font-weight: 900; margin: 0 0 14px; }
.pl-info { list-style: none; display: grid; gap: 8px; margin: 0 0 16px; padding: 14px; border-radius: var(--radius); background: var(--y-50); border: 1px solid var(--y-200); }
.pl-info li { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; font-weight: 600; line-height: 1.8; }
.pl-info svg { margin-top: 4px; }
.pl-info li.is-hot { color: var(--danger); }
.pl-desc { color: var(--ink-3); font-size: .93rem; }
.pl-specs { margin-bottom: 14px; }
.pl-form { margin-top: 16px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.pl-form h2 { font-size: 1.05rem; margin-bottom: 14px; }
.pl-form textarea { width: 100%; }
.pl-coupon { margin: 4px 0 14px; }
.pl-coupon summary { cursor: pointer; font-size: .86rem; font-weight: 700; text-decoration: underline; text-decoration-color: var(--y-600); text-underline-offset: 4px; list-style: none; margin-bottom: 8px; }
.pl-coupon summary::-webkit-details-marker { display: none; }
.pl-pay { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.pl-pay-total { flex: 1; display: flex; flex-direction: column; line-height: 1.5; }
.pl-pay-total small { font-size: .74rem; color: var(--muted); }
.pl-pay-total strong { font-size: 1.1rem; font-weight: 900; }
.pl-pay .btn { min-height: 54px; padding: 0 28px; }
.pl-closed { display: grid; place-items: center; gap: 4px; margin-top: 16px; padding: 28px 16px; border-radius: var(--radius-lg); background: var(--soft); text-align: center; font-weight: 700; }
.pl-closed p { margin: 0; }
@media (max-width: 719px) {
	.fanos-pay .site-main { padding-bottom: 84px; }
	.pl-pay { position: fixed; z-index: 55; inset-inline: 0; bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); margin: 0; padding: 10px 16px; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0, 0, 0, .06); }
	.fanos-pay .assist-launcher { bottom: calc(var(--bottom-nav-h) + 90px + env(safe-area-inset-bottom)); }
}
@media (min-width: 720px) {
	.pl-wrap { max-width: 1040px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: start; padding-top: 28px; }
	.pl-wrap > .woocommerce-error, .pl-wrap > .woocommerce-message, .pl-wrap > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
	.pl-form, .pl-closed { margin-top: 0; position: sticky; top: calc(var(--header-h) + 20px); }
}

/* Receipt on the thank-you page */
.pl-receipt { margin: 16px 0; padding: 16px; border-radius: var(--radius); background: var(--y-50); border: 1.5px solid var(--y); }
.pl-receipt h2 { font-size: 1.05rem; margin-bottom: 8px; }
.pl-receipt dl { margin: 0; }
.pl-receipt dl div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--y-200); font-size: .88rem; }
.pl-receipt dt { color: var(--muted); flex: none; }
.pl-receipt dd { margin: 0; font-weight: 700; text-align: left; }
.pl-receipt-hint { margin: 10px 0 0; font-size: .76rem; color: var(--muted); }

/* /events/ */
.pl-events { display: grid; gap: 12px; }
.pl-event { display: flex; gap: 12px; padding: 10px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.pl-event-media { display: grid; place-items: center; width: 96px; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--y-50); flex: none; }
.pl-event-media img { width: 100%; height: 100%; object-fit: cover; }
.pl-event-body { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.7; font-size: .84rem; }
.pl-event-body small { color: var(--muted); font-weight: 700; }
.pl-event-body strong { font-size: .95rem; }
.pl-event-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.pl-event-foot em { font-style: normal; font-size: .74rem; color: var(--danger); font-weight: 700; }
@media (min-width: 720px) { .pl-events { grid-template-columns: repeat(2, 1fr); } }

/* Out of stock + sub-category pills */
.onsale.is-out { background: var(--ink-3); }
.cat-pills.is-sub { margin-top: -6px; }
.cat-pills.is-sub .pill { background: #fff; border: 1px solid var(--line); font-weight: 600; }
.cat-pills.is-sub .pill.is-active { background: var(--y); border-color: var(--y); color: var(--ink); }
ul.products li.product.outofstock .card-media img { filter: grayscale(.6); opacity: .8; }

/* Contact page */
.contact-cards { display: grid; gap: 10px; margin: 18px 0 26px; }
.entry .contact-card { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--radius); background: var(--soft); text-decoration: none; color: var(--ink); }
.entry a.contact-card:hover { background: var(--y-100); }
.contact-card strong { font-size: .8rem; color: var(--muted); }
.contact-card span { font-size: 1rem; font-weight: 800; line-height: 1.8; }
@media (min-width: 600px) { .contact-cards { grid-template-columns: 1fr 1fr; } }

/* Absolutely positioned bits inside cards (e.g. WooCommerce's screen-reader price text) must stay inside
   the scrolling rail; otherwise they widen the page on phones. */
ul.products, ul.products li.product, .rail, .rail-mobile, .kinds-row, .cat-pills { position: relative; }
html, body { overflow-x: clip; }

/* ==========================================================================
   Intro (home) — white, animated
   ========================================================================== */
.intro { position: relative; overflow: hidden; background: #fff; padding: 22px 0 18px; }
.intro-bg { position: absolute; inset: 0; pointer-events: none; }
.intro-grid { position: absolute; inset: 0; background-image: radial-gradient(rgba(20,20,20,.09) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%); }
.blob { position: absolute; border-radius: 50%; filter: blur(48px); opacity: .55; animation: blob 14s ease-in-out infinite alternate; }
.b1 { width: 260px; height: 260px; background: var(--y); top: -60px; left: -60px; }
.b2 { width: 200px; height: 200px; background: #FFEE80; bottom: -40px; right: -40px; animation-delay: -5s; }
.b3 { width: 140px; height: 140px; background: #FFD0A0; top: 40%; left: 45%; opacity: .35; animation-delay: -9s; }
@keyframes blob { 50% { transform: translate(30px, 20px) scale(1.12); } 100% { transform: translate(-20px, 30px) scale(.95); } }
.intro-inner { position: relative; display: grid; gap: 18px; }
.intro-copy { text-align: center; }
.rise { display: inline-block; opacity: 0; transform: translateY(14px); animation: rise .7s var(--ease) forwards; animation-delay: calc(var(--d, 0) * .09s + .1s); }
.intro-title .rise { display: block; }
@keyframes rise { to { opacity: 1; transform: none; } }
.intro-badge { align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--soft); font-size: .76rem; font-weight: 800; margin-bottom: 10px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #1E7F48; box-shadow: 0 0 0 0 rgba(30,127,72,.5); animation: pulse 1.8s infinite; display: inline-block; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(30,127,72,0); } 100% { box-shadow: 0 0 0 0 rgba(30,127,72,0); } }
.intro-title { font-size: clamp(1.75rem, 8.4vw, 3.4rem); font-weight: 900; line-height: 1.35; margin: 0 0 10px; }
.rotator { position: relative; display: inline-block; padding: 0 6px; }
.rotator::before { content: ""; position: absolute; inset: 55% -2px 6% -2px; background: var(--y); border-radius: 6px; z-index: -1; transform-origin: right; animation: mark .9s .6s var(--ease) both; }
@keyframes mark { from { transform: scaleX(0); } }
.rotator b { display: inline-block; font-weight: 900; }
.rotator b.is-out { animation: wOut .35s ease forwards; }
.rotator b.is-in { animation: wIn .45s var(--ease) both; }
@keyframes wOut { to { opacity: 0; transform: translateY(-60%); } }
@keyframes wIn { from { opacity: 0; transform: translateY(60%); } }
.intro-text { display: block; color: var(--ink-3); font-size: .9rem; max-width: 42ch; margin: 0 auto 14px; }
.intro-cta { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; }
.intro-cta .btn { min-height: 48px; padding: 0 10px; font-size: .88rem; }
.intro-proof { list-style: none; display: flex !important; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin-top: 12px; font-size: .74rem; font-weight: 700; color: var(--ink-3); }
.intro-proof li { display: inline-flex; align-items: center; gap: 3px; }
.intro-proof svg { color: #1E7F48; }
.intro-visual { position: relative; height: 230px; margin: 0 auto; width: 100%; max-width: 380px; }
.iv-card { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 14px 34px rgba(20,20,20,.1); padding: 10px 12px; font-size: .72rem; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.iv-ledger { top: 6px; right: 0; width: 64%; z-index: 2; }
.iv-head { display: flex; justify-content: space-between; font-weight: 800; margin-bottom: 6px; }
.iv-row { display: grid; grid-template-columns: 1fr auto; gap: 0 6px; padding: 5px 0; border-top: 1px dashed var(--line); opacity: 0; animation: rise .5s var(--ease) forwards; }
.iv-row.r1 { animation-delay: 1s; } .iv-row.r2 { animation-delay: 1.6s; }
.iv-row em { grid-column: 1; font-style: normal; color: #1E7F48; font-size: .66rem; }
.iv-row em.is-cr { color: var(--danger); }
.iv-row b { grid-row: 1 / span 2; grid-column: 2; align-self: center; direction: ltr; font-variant-numeric: tabular-nums; }
.iv-foot { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 800; color: #1E7F48; opacity: 0; animation: rise .5s 2.6s forwards; }
.iv-check { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #E3F5EA; }
.iv-plan { bottom: 8px; left: 0; width: 62%; display: flex; align-items: center; gap: 8px; animation-delay: -3s; z-index: 3; }
.iv-plan small { display: block; color: var(--muted); }
.iv-plan strong { display: block; font-size: .8rem; }
.iv-ring { width: 44px; height: 44px; flex: none; transform: rotate(-90deg); }
.iv-ring circle { fill: none; stroke-width: 7; }
.iv-ring .track { stroke: var(--soft); }
.iv-ring .bar { stroke: var(--y-600); stroke-linecap: round; stroke-dasharray: 170; stroke-dashoffset: 170; animation: ring 2.2s 1s var(--ease) forwards; }
@keyframes ring { to { stroke-dashoffset: 24; } }
.iv-weeks { display: flex; gap: 3px; margin-top: 4px; }
.iv-weeks i { width: 10px; height: 6px; border-radius: 3px; background: var(--soft); animation: wk .3s forwards; animation-delay: calc(1s + var(--w) * .25s); }
@keyframes wk { to { background: var(--ink); } }
.iv-book { position: absolute; left: 6%; top: 0; width: 34%; transform: rotate(-8deg); animation: float 7s -2s ease-in-out infinite; z-index: 1; }
.iv-book img { width: 100%; border-radius: 12px; box-shadow: 0 18px 30px rgba(20,20,20,.18); }
.iv-chip { position: absolute; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--y); font-size: .68rem; font-weight: 800; animation: float 5s ease-in-out infinite; z-index: 4; }
.c1 { top: 52%; right: 4%; animation-delay: -1s; } .c2 { bottom: 0; right: 30%; background: var(--y); color: var(--ink); animation-delay: -2s; }
.c3 { top: 44%; left: 30%; background: #fff; color: #1E7F48; border: 1px solid var(--line); animation-delay: -3s; } .c4 { top: -4px; left: 44%; animation-delay: -4s; }
@media (min-width: 720px) {
	.intro { padding: 48px 0 40px; }
	.intro-inner { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 32px; }
	.intro-copy { text-align: right; }
	.intro-text { margin-inline: 0; font-size: 1.02rem; }
	.intro-cta { display: flex !important; }
	.intro-cta .btn { padding: 0 24px; min-height: 52px; }
	.intro-proof { justify-content: flex-start; }
	.intro-visual { height: 380px; max-width: 460px; }
	.iv-card { font-size: .82rem; padding: 14px 16px; }
	.b1 { width: 420px; height: 420px; } .b2 { width: 320px; height: 320px; }
}

/* Promo: image banner on desktop, app-style card on phones */
.promo-card { display: none; }
@media (max-width: 719px) {
	.promo-banner { display: none; }
	.promo-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: var(--y); }
	.promo-card-img { width: 92px; height: 92px; flex: none; border-radius: 12px; overflow: hidden; background: #fff; }
	.promo-card-img img { width: 100%; height: 100%; object-fit: cover; }
	.promo-card-body { display: flex; flex-direction: column; line-height: 1.6; }
	.promo-card-body small { font-size: .72rem; font-weight: 700; color: var(--ink-3); }
	.promo-card-body strong { font-size: 1.05rem; font-weight: 900; }
	.promo-card-body .price { font-weight: 900; font-size: .9rem; display: flex; gap: 6px; align-items: baseline; }
	.promo-card-cta { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-size: .78rem; font-weight: 800; }
}
@media (prefers-reduced-motion: reduce) { .rise, .iv-row, .iv-foot { opacity: 1; transform: none; } }
.assist-price del { color: var(--muted); font-weight: 500; font-size: .85em; }

/* ==========================================================================
   App-style phones (≤ 719px) — compact, dense, thumb-friendly
   ========================================================================== */
@media (max-width: 959px) {
	body.no-bnav { --bottom-nav-h: 0px; }
	body.no-bnav .bottom-nav { display: none; }
}

@media (max-width: 719px) {
	body { font-size: 14px; }
	.announce { font-size: .68rem; padding: 5px 12px; }
	.section { padding: 22px 0; }
	.section-head { margin-bottom: 12px; align-items: center; }
	.section-head h2 { font-size: 1.08rem; }
	.section-head .eyebrow { font-size: .68rem; }
	.link-arrow { font-size: .78rem; }
	.section-head.center h2 { font-size: 1.15rem; }

	/* Shortcuts: one row of app icons */
	.kinds { padding: 6px 0 2px; }
	.kinds-row { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; gap: 6px; overflow: visible; margin: 0 auto; padding: 0 var(--gutter); }
	.kind-tile { flex-direction: column; gap: 6px; padding: 4px 0; background: none; text-align: center; }
	.kind-tile:hover { background: none; transform: none; }
	.kind-ico { width: 54px; height: 54px; border-radius: 18px; background: var(--y-100); }
	.kind-ico svg { width: 24px; height: 24px; }
	.kind-tile strong { font-size: .72rem; line-height: 1.5; }
	.kind-tile small { display: none; }

	/* Cards: two visible in rails, compact everywhere */
	.rail, .rail-mobile { grid-auto-columns: 44% !important; gap: 10px !important; }
	ul.products { gap: 10px; }
	.card-body { padding: 8px 10px 10px; }
	.card-kind { font-size: .62rem; padding: 0 7px; margin-bottom: 4px; }
	.card-title { font-size: .8rem; line-height: 1.55; }
	.card-meta { font-size: .66rem; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.card .price { font-size: .8rem; }
	.card .price del { font-size: .68rem; }
	.card-btn { width: 36px; height: 36px; border-radius: 10px; }
	.card-btn svg { width: 16px; height: 16px; }
	.onsale { font-size: .62rem; padding: 1px 8px; top: 8px; right: 8px; }
	.card-play { width: 30px; height: 30px; left: 8px; bottom: 8px; }
	.vcard h3 { font-size: .8rem; }

	.promo { padding: 4px 0 18px; }

	/* «Why Fanos»: 2 × 2 compact */
	.features { grid-template-columns: 1fr 1fr; gap: 8px; }
	.features li { padding: 12px; border-radius: 14px; }
	.features li > span { width: 36px; height: 36px; border-radius: 10px; margin-bottom: 8px; }
	.features li > span svg { width: 20px; height: 20px; }
	.features h3 { font-size: .82rem; margin-bottom: 2px; }
	.features p { font-size: .7rem; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

	/* Teacher: one horizontal card */
	.teacher-inner { grid-template-columns: 84px 1fr; gap: 14px; align-items: start; padding: 14px; border-radius: var(--radius); background: var(--soft); }
	.teacher-media { width: 84px; border-radius: 50%; margin: 0; }
	.teacher-copy { text-align: right; }
	.teacher-copy .eyebrow { margin: 0; }
	.teacher-copy h2 { font-size: 1.05rem; margin: 0; }
	.teacher-role { font-size: .74rem; margin: 2px 0 6px; }
	.teacher-copy > p:not(.teacher-role) { font-size: .78rem; line-height: 1.85; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; }
	.teacher-copy .btn { min-height: 38px; padding: 0 14px; font-size: .78rem; border-radius: 10px; }

	.accordion summary { padding: 12px 0; font-size: .86rem; }
	.acc-body { font-size: .82rem; }
	.site-footer { padding-top: 28px; font-size: .82rem; }
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
	.footer-brand, .footer-contact { grid-column: 1 / -1; }
	.footer-logo { height: 40px; }

	.assist-launcher { width: 48px; height: 48px; border-radius: 16px; left: 12px; }

	/* Intro visual: keep it clear of the floating support button */
	.intro-visual { height: 210px; max-width: 340px; }

	/* Archive pages */
	.wc-wrap { padding-block: 10px 32px; }
	.woocommerce-products-header__title { font-size: 1.2rem; }
	.term-description { font-size: .8rem; }
	.cat-pills { margin-bottom: 10px; }
	.pill { padding: 5px 12px; font-size: .76rem; }
	.woocommerce-ordering select { height: 34px; font-size: .76rem; }

	/* ---------- Product page ---------- */
	.is-product { padding-top: 0; }
	.is-product .breadcrumb { display: none; }
	.woocommerce-product-gallery { margin: 0 calc(var(--gutter) * -1) 12px; background: var(--soft); }
	.woocommerce-product-gallery__image img, .woocommerce-product-gallery__image a img { width: 100%; height: 68vw; max-height: 300px; aspect-ratio: auto; object-fit: contain; }
	.flex-control-thumbs { padding: 8px var(--gutter); background: #fff; }
	.flex-control-thumbs li { flex: 0 0 46px; }
	.course-trailer { margin-bottom: 12px; }
	.summary .product_title { font-size: 1.18rem; line-height: 1.6; }
	.summary > .price { font-size: 1.15rem; margin: 2px 0 8px; }
	.card-kind.is-lg { font-size: .7rem; margin-bottom: 6px; }
	.woocommerce-product-details__short-description { font-size: .84rem; }
	.course-stats { gap: 6px; }
	.course-stats li { padding: 8px 10px; font-size: .72rem; }
	form.cart { margin: 10px 0; }
	form.cart .single_add_to_cart_button, .single-product .summary .quantity { min-height: 48px; height: 48px; }
	.trust-row { padding: 10px 12px; gap: 6px; margin-bottom: 12px; }
	.trust-row li { font-size: .76rem; }
	.related > h2 { font-size: 1.02rem; }
	.single-product .site-main { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
	.sticky-buy { bottom: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; box-shadow: 0 -10px 30px rgba(0,0,0,.08); }
	.sticky-buy .sb-title { font-size: .72rem; }
	.sticky-buy .btn { min-height: 48px; padding: 0 22px; font-size: .9rem; }
	.single-product .assist-launcher, body.sticky-buy-on .assist-launcher { bottom: calc(86px + env(safe-area-inset-bottom)); }

	/* Compact head: photo in a side column, kind + title + price next to it (courses with a trailer keep the full-width video). */
	div.product:has(> .woocommerce-product-gallery) { display: grid; grid-template-columns: 36% minmax(0, 1fr); grid-template-rows: auto auto auto auto 1fr; gap: 0 14px; padding-top: 12px; }
	div.product:has(> .woocommerce-product-gallery) > .summary { display: contents; }
	div.product:has(> .woocommerce-product-gallery) > *,
	div.product:has(> .woocommerce-product-gallery) > .summary > * { grid-column: 1 / -1; min-width: 0; }
	div.product:has(> .woocommerce-product-gallery) > .woocommerce-product-gallery { grid-column: 1; grid-row: 1 / 6; align-self: start; margin: 0 0 12px; border-radius: 16px; overflow: hidden; }
	div.product:has(> .woocommerce-product-gallery) > .summary > .card-kind { grid-column: 2; grid-row: 1; justify-self: start; }
	div.product:has(> .woocommerce-product-gallery) > .summary > .product_title { grid-column: 2; grid-row: 2; font-size: 1.02rem; line-height: 1.65; margin-bottom: 4px; }
	div.product:has(> .woocommerce-product-gallery) > .summary > .price { grid-column: 2; grid-row: 3; flex-wrap: wrap; gap: 2px 8px; font-size: 1.05rem; margin: 0 0 6px; }
	div.product:has(> .woocommerce-product-gallery) > .summary > .price ins { order: 1; flex-basis: 100%; text-decoration: none; }
	div.product:has(> .woocommerce-product-gallery) > .summary > .price .price-off { order: 2; height: 20px; padding: 0 6px; font-size: .7rem; border-radius: 6px; }
	div.product:has(> .woocommerce-product-gallery) > .summary > .price del { order: 3; font-size: .78rem; font-weight: 600; }
	div.product:has(> .woocommerce-product-gallery) > .summary > .woocommerce-product-details__short-description { grid-column: 2; grid-row: 4; font-size: .76rem; line-height: 1.75; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--ink-3); }
	div.product:has(> .woocommerce-product-gallery) > .summary > .woocommerce-product-details__short-description > * { margin: 0; display: inline; }

	/* ---------- Cart & checkout ---------- */
	.page-wc { padding-top: 12px; }
	.woocommerce-cart .page-head h1, .woocommerce-checkout .page-head h1 { font-size: 1.1rem; margin-bottom: 6px; }
	.checkout-steps { margin: 0 0 12px; font-size: .68rem; }
	.checkout-steps span { width: 20px; height: 20px; }
	.checkout-steps li:not(:last-child)::after { width: 10px; }
	#customer_details, .woocommerce-checkout-review-order, .cart-collaterals .cart_totals, .woocommerce-cart-form { padding: 14px 12px; border-radius: 18px; }
	#customer_details h3, #order_review_heading { font-size: .95rem; margin-bottom: 10px; }
	.form-row { margin-bottom: 10px; }
	.form-row label { font-size: .78rem; margin-bottom: 4px; }
	.input-text, .form-row select, .woocommerce form .form-row input.input-text, .select2-container--default .select2-selection--single { height: 48px; }
	.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 46px; }
	.select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; }
	.account-phone, .checkout-virtual-note { font-size: .78rem; padding: 10px 12px; }
	table.shop_table { font-size: .82rem; }
	table.shop_table th, table.shop_table td { padding: 9px 0; }
	#payment .payment_methods > li > label { padding: 12px 40px 12px 12px; font-size: .86rem; }
	#place_order { min-height: 52px; }
	.woocommerce-checkout .site-main, .woocommerce-cart .site-main { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
	.checkout-sticky, .cart-sticky { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; }
	table.cart tr.cart_item { grid-template-columns: 64px minmax(0, 1fr) auto; padding: 12px 0; }
	table.cart .product-thumbnail img { width: 64px; height: 64px; }
	.otp-card { padding: 20px 16px; }
	.otp-badge { width: 48px; height: 48px; border-radius: 14px; }
	.otp-card h2 { font-size: 1.1rem; }
	.gate-summary { padding: 12px; }

	/* Account & pages */
	.page-wrap { padding-block: 14px 32px; }
	.page-head h1 { font-size: 1.25rem; }
	.entry { font-size: .88rem; }
	.entry h2 { font-size: 1.05rem; margin: 22px 0 8px; }
}
@media (max-width: 719px) { .iv-chip.c1, .iv-chip.c3 { display: none; } .iv-chip.c2 { bottom: 54px; right: auto; left: 64%; } }
.sticky-buy ins { text-decoration: none; }
.acc-body h2, .acc-body h3 { font-size: 1rem; margin: 16px 0 6px; }
.acc-body ul { padding-inline-start: 1.2em; }
@media (max-width: 719px) { body.no-bnav .assist-launcher { display: none; } }
/* Shipping choices as option cards */
tr.woocommerce-shipping-totals { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
tr.woocommerce-shipping-totals th, tr.woocommerce-shipping-totals td { display: block; padding: 0; border: 0; text-align: right !important; }
tr.woocommerce-shipping-totals th { margin-bottom: 8px; }
#shipping_method { display: grid; gap: 8px; text-align: right; }
#shipping_method li { position: relative; margin: 0; }
#shipping_method input[type="radio"] { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); margin: 0; width: 18px; height: 18px; }
#shipping_method label { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; padding: 12px 40px 12px 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; line-height: 1.7; }
#shipping_method li:has(input:checked) label { border-color: var(--ink); background: var(--y-50); }
#shipping_method input[type="hidden"] + label { padding-right: 12px; }
/* Order summary as a simple list (lets the shipping cards use the full width) */
.woocommerce-checkout-review-order-table, .woocommerce-checkout-review-order-table thead, .woocommerce-checkout-review-order-table tbody, .woocommerce-checkout-review-order-table tfoot { display: block; width: 100%; }
.woocommerce-checkout-review-order-table thead { display: none; }
.woocommerce-checkout-review-order-table tr { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.woocommerce-checkout-review-order-table tr > * { border: 0 !important; }
.woocommerce-checkout-review-order-table tr.order-total { border-bottom: 0; }
.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals { display: block; }
.intro-title > .rise { white-space: nowrap; } @media (min-width: 720px) { .intro-title { font-size: clamp(2.2rem, 4.2vw, 3.3rem); } }

/* ==========================================================================
   Book card (Hasht-Paye) — responsive product spotlight
   ========================================================================== */
.promo-banner, .promo-card { display: none !important; }
.book-hero { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 22px; background: var(--y); overflow: hidden; position: relative; }
.book-hero::after { content: ""; position: absolute; width: 220px; height: 220px; left: -70px; bottom: -90px; border-radius: 50%; background: rgba(255,255,255,.28); pointer-events: none; }
.book-hero-media { position: relative; display: block; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 12px 26px rgba(0,0,0,.14); z-index: 1; }
.book-hero-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.book-hero-off { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--danger); color: #fff; font-size: .78rem; font-weight: 900; line-height: 1; }
.book-hero-off small { font-size: .52rem; font-weight: 700; }
.book-hero-body { position: relative; z-index: 1; min-width: 0; }
.book-hero-kicker { display: inline-flex; align-items: center; gap: 5px; font-size: .7rem; font-weight: 800; color: var(--ink-3); }
.book-hero h2 { font-size: 1.15rem; margin: 2px 0 4px; }
.book-hero-desc { display: none; }
.book-hero-facts { list-style: none; display: grid; gap: 2px; margin: 0 0 8px; font-size: .7rem; font-weight: 700; color: var(--ink-3); }
.book-hero-facts li { display: flex; align-items: center; gap: 5px; }
.book-hero-facts li:last-child { display: none; }
.book-hero-buy .price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 1.05rem; font-weight: 900; margin-bottom: 8px; }
.book-hero-buy .price del { font-size: .72rem; opacity: .7; }
.book-hero-actions { display: flex; gap: 6px; }
.book-hero-actions .btn { min-height: 38px; padding: 0 12px; font-size: .76rem; border-radius: 10px; }
.book-hero-actions .btn-light { background: rgba(255,255,255,.7); }
.book-hero-actions .added_to_cart { display: none; }
@media (min-width: 720px) {
	.book-hero { grid-template-columns: 240px 1fr; gap: 32px; padding: 26px 30px; border-radius: 28px; }
	.book-hero::after { width: 380px; height: 380px; left: -120px; bottom: -180px; }
	.book-hero h2 { font-size: 1.8rem; }
	.book-hero-desc { display: block; font-size: .92rem; color: var(--ink-3); max-width: 56ch; margin-bottom: 12px; }
	.book-hero-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; margin-bottom: 16px; }
	.book-hero-facts li:last-child { display: flex; }
	.book-hero-buy { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
	.book-hero-buy .price { font-size: 1.5rem; margin: 0; }
	.book-hero-actions .btn { min-height: 48px; padding: 0 22px; font-size: .9rem; border-radius: 12px; }
}
@media (min-width: 960px) { .book-hero { grid-template-columns: 300px 1fr; padding: 32px 44px; } }

/* ==========================================================================
   Home spacing rhythm
   ========================================================================== */
.intro { padding-bottom: 28px; }
.kinds { padding: 4px 0 28px; }
.promo { padding: 0 0 8px; }
.section { padding: 36px 0; }
.section:not(.section-soft):not(.section-dark) + .section:not(.section-soft):not(.section-dark) { padding-top: 12px; }
.section-head { margin-bottom: 16px; }
@media (min-width: 720px) {
	.intro { padding-bottom: 56px; }
	.kinds { padding: 0 0 48px; }
	.promo { padding-bottom: 24px; }
	.section { padding: 64px 0; }
	.section:not(.section-soft):not(.section-dark) + .section:not(.section-soft):not(.section-dark) { padding-top: 24px; }
	.section-head { margin-bottom: 26px; }
}
@media (min-width: 960px) { .section { padding: 80px 0; } .intro { padding: 64px 0 72px; } }

/* ==========================================================================
   Account — app style on phones
   ========================================================================== */
.acc-appbar, .acc-profile, .acc-list { display: none; }
@media (max-width: 959px) {
	.woocommerce-account.logged-in .site-footer, .woocommerce-account.logged-in .announce { display: none; }
	.woocommerce-account.logged-in .page-wc { padding-top: 8px; }
	.woocommerce-MyAccount-navigation { display: none; }
	.acc-appbar { display: flex; align-items: center; gap: 8px; margin: 0 calc(var(--gutter) * -1) 12px; padding: 4px var(--gutter) 10px; border-bottom: 1px solid var(--line); }
	.acc-appbar strong { font-size: 1.02rem; font-weight: 900; }
	.acc-appbar-back { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--soft); }
	.acc-head h2, .acc-back { display: none; }
	.acc-head:has(.btn) { justify-content: flex-end; }
	.acc-head { margin-bottom: 10px; }

	/* Dashboard */
	.account-hello { display: none; }
	.acc-profile { display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 12px; border-radius: 20px; background: var(--ink); color: #fff; text-decoration: none; }
	.acc-profile .avatar { width: 52px; height: 52px; border-radius: 18px; font-size: 1.3rem; }
	.acc-profile-body { flex: 1; display: flex; flex-direction: column; line-height: 1.6; min-width: 0; }
	.acc-profile-body strong { font-size: 1rem; }
	.acc-profile-body small { color: rgba(255,255,255,.7); font-size: .8rem; text-align: right; }
	.acc-profile-edit { padding: 6px 12px; border-radius: 10px; background: rgba(255,255,255,.12); font-size: .74rem; font-weight: 700; }
	.account-tiles, .account-logout { display: none; }
	.account-alert { margin-bottom: 10px; }
	.continue-card, .account-latest { margin-bottom: 10px; }
	.acc-list { display: block; list-style: none; margin: 4px 0 0; border-radius: 18px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
	.acc-list li + li { border-top: 1px solid var(--line); }
	.entry .acc-list a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 14px; text-decoration: none; color: var(--ink); }
	.acc-list a:active { background: var(--soft); }
	.acc-list-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--y-100); flex: none; }
	.acc-list-label { flex: 1; font-size: .9rem; font-weight: 700; }
	.acc-list-chev { color: var(--muted); }
	.acc-list .menu-badge.is-soft { background: var(--soft); color: var(--ink); }
	.acc-list .is-logout .acc-list-ico { background: var(--danger-bg); color: var(--danger); }
	.acc-list .is-logout .acc-list-label { color: var(--danger); }

	/* Inner pages */
	.woocommerce-MyAccount-content { padding: 0; }
	.order-card, .dl-card, .ticket-row, .my-course, .woocommerce-Address { border-radius: 16px; }
	.account-empty { padding: 36px 8px; }
	.woocommerce-EditAccountForm, .woocommerce-address-fields { padding: 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
	.woocommerce-account .woocommerce-MyAccount-content .button, .woocommerce-EditAccountForm .button, .woocommerce-address-fields .button { width: 100%; }
	.chat-reply { position: sticky; bottom: calc(var(--bottom-nav-h) + 8px + env(safe-area-inset-bottom)); z-index: 5; box-shadow: 0 -6px 20px rgba(0,0,0,.06); }
}
.entry .acc-profile, .entry .acc-appbar a, .entry .account-alert { text-decoration: none; color: inherit; } .entry .acc-profile { color: #fff; }

/* Second block of the home page (shortcuts + book card): one group, clear rhythm */
.intro { padding-bottom: 20px; }
.kinds { padding: 20px 0 0; border-top: 1px solid var(--line); }
.promo { padding: 18px 0 32px; }
@media (min-width: 720px) {
	.intro { padding-bottom: 40px; }
	.kinds { padding: 36px 0 0; }
	.promo { padding: 28px 0 64px; }
}
@media (min-width: 960px) {
	.intro { padding-bottom: 56px; }
	.kinds { padding-top: 44px; }
	.kinds-row { gap: 16px; }
	.promo { padding: 32px 0 80px; }
}

/* Horizontal sliders: snap 16px in from the screen edges (not flush against them) */
.rail, .rail-mobile, .kinds-row, .cat-pills { scroll-padding-inline: var(--gutter); }
.rail::after, .rail-mobile::after { content: ""; width: 1px; } /* keeps end padding in RTL scrollers */
@media (min-width: 960px) { .rail::after { display: none; } }
@media (min-width: 600px) { .rail-mobile::after { display: none; } }

/* Discount badge: just the percentage, compact red tag in the top-left corner */
.onsale, .book-hero-media .onsale {
	position: absolute; top: 10px; left: 10px; right: auto; z-index: 2; display: inline-flex; align-items: center;
	min-width: 0; height: 24px; padding: 0 8px; border-radius: 8px; background: #E5383B; color: #fff;
	font-size: .78rem; font-weight: 900; line-height: 1; letter-spacing: 0; box-shadow: 0 4px 12px rgba(229, 56, 59, .35);
}
.onsale.is-out { background: var(--ink-3); box-shadow: none; font-weight: 700; }
div.product .onsale { top: 14px; left: 14px; right: auto; height: 28px; font-size: .86rem; }
.book-hero-off { display: none; }
@media (max-width: 719px) { .onsale { top: 8px; left: 8px; height: 22px; padding: 0 7px; font-size: .72rem; } }

/* Product page: one square image, no frame */
.woocommerce-product-gallery__trigger, .flex-control-thumbs { display: none !important; }
.woocommerce-product-gallery { background: none; border-radius: 0; padding: 0; }
.woocommerce-product-gallery__image img, .woocommerce-product-gallery__image a img { display: block; width: 100%; height: auto; max-height: none; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; }
@media (min-width: 720px) {
	div.product { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
	div.product > .woocommerce-product-gallery { max-width: 400px; border-radius: var(--radius-lg); }
	.woocommerce-product-gallery__image img { border-radius: var(--radius-lg); }
}
.price-off { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 8px; background: #E5383B; color: #fff; font-size: .78rem; font-weight: 900; align-self: center; }
.quantity:has(input[type=hidden]) { display: none; }
