/* ==========================================================================
   Edukacija – design system
   Brand violet (from logo) · deep ink · warm amber accent
   Plus Jakarta Sans · 8px spacing · AA contrast
   ========================================================================== */

:root {
	/* Colour */
	--ink-950: #0b0a1a;
	--ink-900: #140f2e;            /* hero / dark surfaces */
	--ink-800: #231c45;
	--ink: #111827;                /* body text */
	--ink-soft: #374151;
	--muted: #5b6475;              /* 5.9:1 on white */
	--line: #e5e7ef;
	--line-strong: #d4d7e2;
	--surface: #f6f6fb;
	--surface-2: #efedf8;
	--white: #fff;

	--brand-50: #f4f0ff;
	--brand-100: #e9e0ff;
	--brand-200: #d4c2ff;
	--brand-400: #9b6cf6;          /* ".ba" in logo – decorative */
	--brand-600: #6d3fe0;          /* primary – 6.1:1 on white */
	--brand-700: #5a2fc6;
	--brand-800: #46239d;

	--accent: #ffb547;             /* amber, used with dark text */
	--accent-600: #f59e0b;
	--accent-50: #fff6e5;

	--success: #08794f;
	--success-50: #e8f7f0;
	--danger: #c62828;
	--danger-50: #fdecec;

	--focus: 0 0 0 3px #fff, 0 0 0 5px var(--brand-600);

	/* Type */
	--font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--fs-xs: .8125rem;
	--fs-sm: .875rem;
	--fs-base: 1rem;
	--fs-md: 1.125rem;
	--fs-lg: 1.25rem;
	--fs-xl: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
	--fs-2xl: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
	--fs-3xl: clamp(2.125rem, 1.4rem + 2.8vw, 3.5rem);

	/* Space & shape */
	--s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
	--s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
	--radius-sm: 8px;
	--radius: 12px;
	--radius-lg: 20px;
	--radius-pill: 999px;
	--shadow-sm: 0 1px 2px rgba(17, 24, 39, .06), 0 1px 3px rgba(17, 24, 39, .06);
	--shadow: 0 4px 6px -2px rgba(17, 24, 39, .05), 0 12px 24px -6px rgba(17, 24, 39, .10);
	--shadow-lg: 0 24px 48px -12px rgba(20, 15, 46, .25);
	--container: 1240px;
	--header-h: 72px;

	--ease: cubic-bezier(.2, .7, .2, 1);
	--t-fast: 150ms;
	--t: 220ms;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body, html body {
	margin: 0;
	font-family: var(--font);
	font-size: var(--fs-base);
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
svg.icon { flex: none; }
a { color: var(--brand-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { margin: 0 0 var(--s-4); line-height: 1.2; letter-spacing: -.02em; color: var(--ink); font-weight: 800; }
p { margin: 0 0 var(--s-4); }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
::selection { background: var(--brand-100); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 16px; top: -60px; z-index: 1000;
	background: var(--ink-900); color: #fff; padding: 12px 16px; border-radius: var(--radius-sm);
	transition: top var(--t);
}
.skip-link:focus { top: 12px; color: #fff; }
.site-main:focus { outline: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 24px; } }
.container--narrow { max-width: 860px; }

/* ---------- Buttons ---------- */
.btn {
	--btn-bg: var(--brand-600); --btn-fg: #fff; --btn-bd: transparent;
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 44px; padding: .625rem 1.125rem;
	border: 1.5px solid var(--btn-bd); border-radius: 10px;
	background: var(--btn-bg); color: var(--btn-fg);
	font-weight: 700; font-size: var(--fs-base); line-height: 1.2; text-decoration: none; white-space: nowrap;
	cursor: pointer;
	transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast), transform var(--t-fast) var(--ease), box-shadow var(--t-fast);
}
.btn:hover { color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn--primary { --btn-bg: var(--brand-600); }
.btn--primary:hover { --btn-bg: var(--brand-700); box-shadow: 0 6px 16px -6px rgba(109, 63, 224, .6); }
.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--ink-950); }
.btn--accent:hover { --btn-bg: #ffc56b; box-shadow: 0 6px 16px -6px rgba(245, 158, 11, .6); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--surface); --btn-bd: var(--ink-soft); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--brand-700); --btn-bd: var(--brand-600); }
.btn--outline:hover { --btn-bg: var(--brand-50); }
.btn--sm { min-height: 40px; padding: .5rem .875rem; font-size: var(--fs-sm); }
.btn--lg { min-height: 52px; padding: .875rem 1.5rem; font-size: var(--fs-md); border-radius: 12px; }
.btn--block { width: 100%; }

.icon-btn {
	position: relative; display: inline-grid; place-items: center;
	width: 44px; height: 44px; border-radius: 10px; border: 0; background: transparent;
	color: var(--ink); transition: background-color var(--t-fast);
}
.icon-btn:hover { background: var(--surface); color: var(--ink); }

.link-arrow {
	display: inline-flex; align-items: center; gap: .375rem; font-weight: 700; text-decoration: none; color: var(--brand-700);
}
.link-arrow svg { transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Badges, tags, chips ---------- */
.badge {
	display: inline-flex; align-items: center; gap: .25rem;
	padding: .25rem .5rem; border-radius: 6px;
	font-size: .75rem; font-weight: 700; line-height: 1.2; letter-spacing: .01em;
	background: var(--ink-900); color: #fff;
}
.badge--accent { background: var(--accent); color: var(--ink-950); }
.badge--success { background: var(--success); color: #fff; }
.badge--sale { background: var(--danger); color: #fff; }

.tag {
	display: inline-flex; align-items: center; gap: .375rem;
	padding: .375rem .75rem; border-radius: var(--radius-pill);
	background: rgba(255, 255, 255, .1); color: #e9e5ff; font-size: var(--fs-sm); font-weight: 600;
	border: 1px solid rgba(255, 255, 255, .14);
}
.tag--accent { background: var(--accent); color: var(--ink-950); border-color: transparent; }

.chip {
	display: inline-flex; align-items: center; min-height: 40px;
	padding: .5rem 1rem; border-radius: var(--radius-pill);
	border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
	font-size: var(--fs-sm); font-weight: 600; text-decoration: none;
	transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.chip:hover { border-color: var(--brand-600); color: var(--brand-700); background: var(--brand-50); }
.chip--dark { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; min-height: 36px; padding: .375rem .875rem; }
.chip--dark:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); color: #fff; }

.eyebrow {
	display: inline-flex; align-items: center; gap: .5rem; margin-bottom: var(--s-3);
	font-size: var(--fs-sm); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-700);
}
.eyebrow--light { color: var(--accent); }

/* ---------- Announcement ---------- */
.announcement { background: var(--ink-900); color: #fff; font-size: var(--fs-sm); font-weight: 600; text-align: center; padding: .5rem 0; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color var(--t), box-shadow var(--t);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px -12px rgba(17, 24, 39, .25); }
.site-header__inner { display: flex; align-items: center; gap: var(--s-5); min-height: var(--header-h); }

.site-logo { display: inline-flex; align-items: center; gap: .625rem; text-decoration: none; color: var(--ink-950); flex: none; }
.site-logo:hover { color: var(--ink-950); }
.site-logo .logo-mark { color: var(--brand-600); flex: none; }
.site-logo .logo-mark__dot { fill: var(--accent); }
.site-logo--light .logo-mark { color: var(--brand-400); }
.site-logo__text { font-size: 1.375rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.site-logo__tld { color: var(--brand-600); }
.site-logo--light, .site-logo--light:hover { color: #fff; }
.site-logo--light .site-logo__tld { color: var(--brand-400); }

.primary-nav { display: none; }
.primary-nav__list { display: flex; gap: var(--s-1); list-style: none; }
.primary-nav a {
	display: inline-flex; align-items: center; min-height: 40px; padding: .5rem .75rem; border-radius: 8px;
	color: var(--ink-soft); font-weight: 600; font-size: .9375rem; text-decoration: none;
	transition: background-color var(--t-fast), color var(--t-fast);
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--ink); background: var(--surface); }

.header-search {
	display: none; position: relative; flex: 1; max-width: 420px; margin-left: auto;
}
.header-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.header-search input {
	width: 100%; height: 44px; padding: 0 1rem 0 2.625rem;
	border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface);
	transition: border-color var(--t-fast), background-color var(--t-fast), box-shadow var(--t-fast);
}
.header-search input::placeholder { color: var(--muted); }
.header-search input:focus { outline: none; background: #fff; border-color: var(--brand-600); box-shadow: 0 0 0 3px var(--brand-100); }

.header-actions { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }
.header-search + .header-actions { margin-left: 0; }
.header-cart__count {
	position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 9px; background: var(--brand-600); color: #fff;
	font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
}
.header-cart__count[data-count="0"] { display: none; }

.account-menu { position: relative; }
.account-menu summary { list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.avatar-btn { cursor: pointer; border-radius: 50%; }
.avatar {
	display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
	background: linear-gradient(135deg, var(--brand-600), var(--brand-800)); color: #fff; font-weight: 800;
}
.avatar--lg { width: 52px; height: 52px; font-size: 1.25rem; }
.account-menu__panel {
	position: absolute; right: 0; top: calc(100% + 8px); width: 260px; padding: var(--s-2);
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
	animation: pop var(--t) var(--ease);
}
.account-menu__name { padding: var(--s-2) var(--s-3) var(--s-3); margin: 0 0 var(--s-2); border-bottom: 1px solid var(--line); font-weight: 700; line-height: 1.3; }
.account-menu__name span { display: block; font-weight: 500; font-size: var(--fs-sm); color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.account-menu__panel a { display: flex; align-items: center; gap: .625rem; padding: .625rem .75rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.account-menu__panel a:hover { background: var(--surface); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.nav-toggle .nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

.mobile-nav { border-top: 1px solid var(--line); background: #fff; padding: var(--s-4) 0 var(--s-5); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
.mobile-nav__search { position: relative; margin-bottom: var(--s-4); }
.mobile-nav__search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.mobile-nav__search input { width: 100%; height: 48px; padding-left: 2.75rem; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface); font-size: 16px; }
.mobile-nav__list { list-style: none; margin-bottom: var(--s-4); }
.mobile-nav__list a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 .25rem; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: var(--fs-md); text-decoration: none; }
.mobile-nav__list svg { color: var(--muted); }
.mobile-nav__actions { display: grid; gap: var(--s-2); }

.hide-sm { display: none; }
@media (min-width: 640px) { .hide-sm { display: inline-flex; } }
@media (min-width: 1024px) {
	.primary-nav, .header-search { display: block; }
	.header-search { display: block; }
	.nav-toggle, .mobile-nav { display: none !important; }
}

/* ---------- Sections ---------- */
.section { padding: var(--s-8) 0; }
@media (min-width: 1024px) { .section { padding: var(--s-9) 0; } }
.section--muted { background: var(--surface); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-6); }
.section-head__text { max-width: 640px; }
.section-title { font-size: var(--fs-2xl); margin-bottom: var(--s-3); }
.section-lead { color: var(--muted); font-size: var(--fs-md); margin: 0; }
.section-cta { display: flex; justify-content: center; margin-top: var(--s-6); }

/* ---------- Hero (home) ---------- */
.hero {
	position: relative; overflow: hidden; color: #fff;
	background:
		radial-gradient(900px 500px at 85% 20%, rgba(109, 63, 224, .55), transparent 60%),
		radial-gradient(700px 400px at 10% 110%, rgba(155, 108, 246, .35), transparent 60%),
		var(--ink-900);
}
.hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
	background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: var(--s-7); padding: var(--s-8) 16px var(--s-8); }
@media (min-width: 768px) { .hero__inner { padding-inline: 24px; } }
@media (min-width: 1024px) { .hero__inner { grid-template-columns: 1.1fr .9fr; align-items: center; padding-block: 88px 104px; } }
.hero__title { color: #fff; font-size: var(--fs-3xl); letter-spacing: -.035em; line-height: 1.08; margin-bottom: var(--s-5); max-width: 15ch; text-wrap: balance; }
.hero__lead { color: #d6d1ef; font-size: var(--fs-md); max-width: 54ch; margin-bottom: var(--s-6); }
.hero__quick { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-top: var(--s-5); font-size: var(--fs-sm); color: #bdb6e0; }
.hero__quick > span { margin-right: var(--s-1); font-weight: 600; }

.search-xl { position: relative; display: flex; align-items: center; gap: var(--s-2); max-width: 620px; padding: 6px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.search-xl > svg { position: absolute; left: 20px; color: var(--muted); pointer-events: none; }
.search-xl input { flex: 1; min-width: 0; height: 52px; padding: 0 .75rem 0 3rem; border: 0; background: transparent; font-size: var(--fs-md); color: var(--ink); }
.search-xl input:focus { outline: none; }
.search-xl:focus-within { box-shadow: var(--shadow-lg), 0 0 0 3px var(--brand-200); }
.search-xl .btn { min-height: 48px; }
.search-xl--hero { border-color: transparent; }

.hero__visual { position: relative; display: none; min-height: 420px; }
@media (min-width: 1024px) { .hero__visual { display: block; } }
.hero-card {
	position: absolute; width: 300px; background: #fff; color: var(--ink); border-radius: 16px; overflow: hidden;
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55);
}
.hero-card__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-card__body { padding: 14px 16px 16px; display: grid; gap: 4px; }
.hero-card__title { font-weight: 800; line-height: 1.25; }
.hero-card__meta { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--muted); }
.hero-card__play { position: absolute; top: 56px; left: 50%; transform: translateX(-50%); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--brand-600); box-shadow: var(--shadow); }
.hero-card__progress { display: block; height: 4px; background: var(--surface-2); }
.hero-card__progress span { display: block; height: 100%; background: var(--brand-600); }
.hero-card--1 { right: 60px; top: 30px; z-index: 3; width: 340px; }
.hero-card--2 { right: 0; top: 260px; z-index: 2; rotate: 3deg; width: 250px; }
.hero-card--3 { left: 0; top: 0; z-index: 1; rotate: -4deg; width: 230px; opacity: .92; }
.hero-card--2 .hero-card__body, .hero-card--3 .hero-card__body { padding: 10px 12px 12px; font-size: var(--fs-sm); }

/* ---------- Trust strip ---------- */
.trust { border-bottom: 1px solid var(--line); background: #fff; }
.trust__list { list-style: none; display: grid; grid-template-columns: 1fr; gap: var(--s-4); padding: var(--s-5) 0; }
@media (min-width: 640px) { .trust__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .trust__list { grid-template-columns: repeat(4, 1fr); } }
.trust__list li { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-sm); color: var(--muted); line-height: 1.35; }
.trust__list strong { display: block; color: var(--ink); font-size: var(--fs-base); }
.trust__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand-600); flex: none; }

/* ---------- Course grid & card ---------- */
.course-grid { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 600px) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .course-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .course-grid:not(.course-grid--3):not(.course-grid--catalog) { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .course-grid--catalog { grid-template-columns: repeat(3, 1fr); } }

.course-card {
	position: relative; display: flex; flex-direction: column; background: #fff;
	border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
	transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease), border-color var(--t);
}
.course-card:hover { box-shadow: var(--shadow); border-color: var(--line-strong); transform: translateY(-2px); }
.course-card:focus-within { box-shadow: var(--focus); }
.course-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.course-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.course-card:hover .course-card__img { transform: scale(1.04); }
.course-card__img--empty { display: grid; place-items: center; color: var(--brand-400); }
.course-card__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.course-card__play {
	position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px;
	border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--brand-600); box-shadow: var(--shadow-sm);
	opacity: 0; transform: scale(.9); transition: opacity var(--t), transform var(--t) var(--ease);
}
.course-card:hover .course-card__play { opacity: 1; transform: none; }
.course-card__body { display: flex; flex-direction: column; flex: 1; padding: var(--s-4) var(--s-4) var(--s-4); }
@media (min-width: 768px) { .course-card__body { padding: 18px 20px 20px; } }
.course-card__cat { margin: 0 0 var(--s-1); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-700); }
.course-card__title { margin: 0 0 var(--s-2); font-size: 1.125rem; line-height: 1.3; letter-spacing: -.015em; }
.course-card__link { color: var(--ink); text-decoration: none; }
.course-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.course-card__link:focus-visible { box-shadow: none; }
.course-card__teaser {
	margin: 0 0 var(--s-3); color: var(--muted); font-size: var(--fs-sm); line-height: 1.5;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.course-card__meta { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); margin-bottom: var(--s-4); font-size: var(--fs-sm); color: var(--ink-soft); }
.course-card__meta li { display: inline-flex; align-items: center; gap: 6px; }
.course-card__meta svg { color: var(--muted); }
.course-card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--line); }
.course-card__price { font-size: var(--fs-lg); font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.course-card__price del { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; margin-right: 6px; }
.course-card__price ins { text-decoration: none; }
.course-card__more { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sm); font-weight: 700; color: var(--brand-700); }
.course-card__more svg { transition: transform var(--t-fast) var(--ease); }
.course-card:hover .course-card__more svg { transform: translateX(3px); }

.topic-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-5); }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; gap: var(--s-5); counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: var(--s-6) var(--s-5); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.step__num { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--s-4); border-radius: 12px; background: var(--brand-600); color: #fff; font-weight: 800; font-size: var(--fs-lg); }
.step__title { font-size: var(--fs-lg); margin-bottom: var(--s-2); }
.step p { color: var(--muted); margin: 0; }

/* ---------- Offer (subscription) ---------- */
.offer {
	position: relative; overflow: hidden; display: grid; gap: var(--s-6); padding: var(--s-6) var(--s-5);
	border-radius: 28px; color: #fff;
	background:
		radial-gradient(600px 300px at 100% 0%, rgba(155, 108, 246, .55), transparent 60%),
		linear-gradient(135deg, var(--ink-900), var(--ink-800));
}
@media (min-width: 900px) { .offer { grid-template-columns: 1.3fr 1fr; align-items: center; padding: var(--s-8) var(--s-7); } }
.offer__title { color: #fff; font-size: var(--fs-2xl); }
.offer__lead { color: #d6d1ef; font-size: var(--fs-md); max-width: 52ch; }
.offer__price-card { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: var(--s-6) var(--s-5); box-shadow: var(--shadow-lg); }
.offer__price-label { margin: 0 0 var(--s-1); font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.offer__price { margin: 0 0 var(--s-2); font-size: 2.5rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.offer__saving { margin: 0 0 var(--s-4); color: var(--success); font-weight: 700; font-size: var(--fs-sm); }
.offer__note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: var(--s-3) 0 0; font-size: var(--fs-sm); color: var(--muted); }

/* ---------- Check lists ---------- */
.check-list { list-style: none; display: grid; gap: var(--s-3); }
.check-list li { display: flex; gap: var(--s-3); align-items: flex-start; line-height: 1.5; }
.check-list svg { flex: none; margin-top: 2px; color: var(--success); }
.check-list--light svg { color: var(--accent); }
.check-list--light { color: #ece9fb; }
@media (min-width: 768px) { .check-list--grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-4) var(--s-6); } }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 768px) { .testimonials { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .testimonials:not(.testimonials--compact) { grid-template-columns: repeat(3, 1fr); } }
.testimonial { position: relative; margin: 0; display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-5); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.testimonial__mark { color: var(--brand-200); }
.testimonial__quote { margin: 0; flex: 1; }
.testimonial__quote p { margin: 0; font-size: var(--fs-base); line-height: 1.65; color: var(--ink-soft); }
.testimonial__author { display: flex; align-items: center; gap: var(--s-3); }
.testimonial__img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); }
.testimonial__img--initial { display: grid; place-items: center; font-weight: 800; color: var(--brand-700); background: var(--brand-50); }
.testimonial__name { display: block; font-weight: 800; line-height: 1.3; }
.testimonial__role { display: block; font-size: var(--fs-sm); color: var(--muted); line-height: 1.35; }
.testimonial__course { display: inline-block; margin-top: 4px; font-size: var(--fs-xs); font-weight: 700; text-decoration: none; }

/* ---------- B2B ---------- */
.b2b { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .b2b { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }
.b2b__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.b2b__features { list-style: none; display: grid; gap: var(--s-3); }
.b2b__features li { display: flex; gap: var(--s-4); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; color: var(--muted); line-height: 1.5; }
.b2b__features strong { display: block; color: var(--ink); margin-bottom: 2px; }
.b2b__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-50); color: #9a5b00; flex: none; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--s-3); }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.faq__item[open] { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 56px; padding: var(--s-4) var(--s-5); cursor: pointer; list-style: none; font-weight: 700; }
.faq__q::-webkit-details-marker { display: none; }
.faq__icon { color: var(--brand-600); transition: transform var(--t) var(--ease); }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__a { padding: 0 var(--s-5) var(--s-5); color: var(--ink-soft); }
.faq__a p:last-child { margin: 0; }

/* ---------- Final CTA ---------- */
.final-cta { background: var(--brand-600); color: #fff; }
.final-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5); padding-block: var(--s-7); }
.final-cta__title { color: #fff; font-size: var(--fs-2xl); margin-bottom: var(--s-2); }
.final-cta__lead { margin: 0; color: #eee7ff; font-size: var(--fs-md); }

/* ---------- Page hero (catalog) ---------- */
.page-hero { background: linear-gradient(180deg, var(--brand-50), #fff); border-bottom: 1px solid var(--line); padding: var(--s-7) 0 var(--s-6); }
.page-hero__title { font-size: var(--fs-2xl); margin-bottom: var(--s-2); }
.page-hero__lead { color: var(--muted); font-size: var(--fs-md); max-width: 62ch; margin-bottom: var(--s-5); }
.page-hero .search-xl { box-shadow: var(--shadow-sm); }

/* ---------- Catalog ---------- */
.catalog { display: grid; gap: var(--s-5); padding-block: var(--s-6) var(--s-8); }
@media (min-width: 1024px) { .catalog { grid-template-columns: 260px 1fr; gap: var(--s-6); align-items: start; } }
.catalog__filters { display: grid; gap: var(--s-4); }
@media (min-width: 1024px) { .catalog__filters { position: sticky; top: calc(var(--header-h) + 24px); } }

.filters { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.filters__toggle { display: flex; align-items: center; gap: var(--s-2); min-height: 52px; padding: 0 var(--s-4); font-weight: 700; cursor: pointer; list-style: none; }
.filters__toggle::-webkit-details-marker { display: none; }
.filters__chev { margin-left: auto; transition: transform var(--t); }
.filters[open] .filters__chev { transform: rotate(180deg); }
.filters__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-600); }
.filters__body { display: grid; gap: var(--s-5); padding: 0 var(--s-4) var(--s-4); }
@media (min-width: 1024px) {
	.filters__toggle { pointer-events: none; }
	.filters__chev { display: none; }
}
.filter-group__title { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 var(--s-2); }
.filter-list { list-style: none; display: grid; gap: 2px; }
.filter-link { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: .5rem .75rem; border-radius: 8px; color: var(--ink-soft); font-weight: 600; font-size: .9375rem; text-decoration: none; }
.filter-link:hover { background: var(--surface); color: var(--ink); }
.filter-link.is-active { background: var(--brand-50); color: var(--brand-700); }
.filter-link__count { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }

.mini-promo { display: grid; gap: 4px; padding: var(--s-5); border-radius: var(--radius); text-decoration: none; color: #fff; background: linear-gradient(135deg, var(--ink-900), var(--brand-800)); }
.mini-promo:hover { color: #fff; box-shadow: var(--shadow); }
.mini-promo__icon { color: var(--accent); margin-bottom: 4px; }
.mini-promo__title { font-weight: 800; font-size: var(--fs-md); }
.mini-promo__text { color: #d6d1ef; font-size: var(--fs-sm); }
.mini-promo__link { display: inline-flex; align-items: center; gap: 4px; margin-top: var(--s-2); color: var(--accent); font-weight: 700; font-size: var(--fs-sm); }

.catalog__toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-5); }
.catalog__count { margin: 0; color: var(--muted); }
.catalog__count strong { color: var(--ink); }
.sort { display: flex; align-items: center; gap: var(--s-2); }
.sort label { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.sort select, select.edu-select {
	min-height: 44px; padding: 0 2.25rem 0 .875rem; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff;
	appearance: none; -webkit-appearance: none; font-weight: 600; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6475' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right .75rem center;
}
.sort select:focus { outline: none; box-shadow: var(--focus); }

.pagination { margin-top: var(--s-7); display: flex; justify-content: center; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .5rem; margin: 0 2px; border-radius: 10px; color: var(--ink); font-weight: 700; text-decoration: none; }
.pagination a.page-numbers:hover { background: var(--surface); }
.pagination .page-numbers.current { background: var(--brand-600); color: #fff; }

.empty-state { display: grid; justify-items: center; text-align: center; gap: var(--s-2); padding: var(--s-8) var(--s-5); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); }
.empty-state__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--brand-600); margin-bottom: var(--s-2); }
.empty-state h1, .empty-state h2 { margin: 0; font-size: var(--fs-xl); }
.empty-state p { color: var(--muted); }
.empty-state--page { border: 0; background: none; }
.empty-state--page .search-xl { width: 100%; margin-top: var(--s-3); }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: var(--s-4); font-size: var(--fs-sm); color: var(--muted); }
.crumbs a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--brand-700); text-decoration: underline; }
.crumbs__sep { color: var(--line-strong); }
.course-hero .crumbs, .course-hero .crumbs a { color: #bdb6e0; }
.course-hero .crumbs a:hover { color: #fff; }
.course-hero .crumbs__sep { color: #6d669a; }

/* ---------- Single course ---------- */
.course-hero {
	color: #fff;
	background:
		radial-gradient(800px 400px at 90% -10%, rgba(109, 63, 224, .5), transparent 60%),
		var(--ink-900);
}
.course-hero__inner { padding-block: var(--s-6) var(--s-7); }
@media (min-width: 1024px) {
	.course-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s-7); padding-block: var(--s-7) var(--s-8); }
}
.course-hero__tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-4); }
.course-hero__title { color: #fff; font-size: var(--fs-3xl); line-height: 1.1; letter-spacing: -.03em; margin-bottom: var(--s-4); text-wrap: balance; }
.course-hero__lead { color: #d6d1ef; font-size: var(--fs-lg); max-width: 60ch; margin-bottom: var(--s-5); }
.course-hero__proof { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-5); }
.course-hero__proof a { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); }
.course-hero__proof a:hover { text-decoration-color: #fff; color: #fff; }
.avatar-stack { display: flex; }
.avatar-stack > * { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ink-900); object-fit: cover; margin-left: -8px; background: var(--brand-600); color: #fff; display: grid; place-items: center; font-size: var(--fs-xs); font-weight: 800; }
.avatar-stack > *:first-child { margin-left: 0; }

.course-facts { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); color: #e5e1f8; font-size: .9375rem; }
.course-facts li { display: inline-flex; align-items: center; gap: var(--s-2); }
.course-facts svg { color: var(--brand-400); }
.course-facts strong { color: #fff; }

.course-layout { display: grid; gap: var(--s-6); padding-bottom: var(--s-8); }
.course-buy { position: relative; z-index: 2; margin-top: calc(-1 * var(--s-6)); }
@media (min-width: 1024px) {
	.course-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s-7); }
	.course-buy { grid-column: 2; grid-row: 1 / span 2; margin-top: calc(-1 * var(--hero-overlap, 320px)); }
	.course-content { grid-column: 1; grid-row: 1; padding-top: var(--s-7); }
}

@media (min-width: 1024px) and (min-height: 980px) { .buy-card { position: sticky; top: calc(var(--header-h) + 24px); } }

.buy-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.buy-card__media { background: var(--surface-2); }
.buy-card__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.buy-card__video { position: relative; aspect-ratio: 16 / 9; }
.buy-card__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.buy-card__body { padding: var(--s-5); }
.buy-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2); font-size: 2.25rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); }
.buy-card__price del { font-size: var(--fs-md); color: var(--muted); font-weight: 600; }
.buy-card__price ins { text-decoration: none; }
.buy-card__was { font-size: var(--fs-md); color: var(--muted); font-weight: 600; text-decoration: line-through; }
.buy-card__vat { margin: var(--s-1) 0 var(--s-4); font-size: var(--fs-sm); color: var(--muted); }
.buy-card__body > .btn + .buy-card__cart, .buy-card__cart { margin-top: var(--s-2); }
.buy-card__hint { display: flex; align-items: center; justify-content: center; gap: 6px; margin: var(--s-3) 0 0; color: var(--success); font-weight: 600; font-size: var(--fs-sm); }
.buy-card__includes { list-style: none; display: grid; gap: var(--s-2); margin: var(--s-5) 0 0; padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: .9375rem; color: var(--ink-soft); }
.buy-card__includes li { display: flex; align-items: center; gap: var(--s-3); }
.buy-card__includes svg { color: var(--brand-600); }
.buy-card__includes-title { font-weight: 800; color: var(--ink); }
.buy-card__secure { margin-top: var(--s-4); padding: var(--s-3) var(--s-4); background: var(--surface); border-radius: var(--radius); }
.buy-card__secure p { display: flex; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-2); font-size: var(--fs-sm); font-weight: 700; color: var(--ink-soft); }
.buy-card__secure p svg { color: var(--success); }
.buy-card__upsell { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-top: 1px solid var(--line); background: var(--accent-50); color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.4; text-decoration: none; }
.buy-card__upsell strong { display: block; color: var(--ink); font-size: .9375rem; }
.buy-card__upsell:hover { background: #ffefcc; color: var(--ink); }
.buy-card__upsell > svg { margin-left: auto; color: var(--muted); }
.buy-card__upsell-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--ink-950); flex: none; }

.notice-inline { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-3); margin-bottom: var(--s-3); border-radius: var(--radius-sm); background: var(--surface); font-weight: 600; font-size: var(--fs-sm); }
.notice-inline--success { background: var(--success-50); color: var(--success); }

.course-content { min-width: 0; display: grid; gap: var(--s-7); }
.course-section__title { font-size: var(--fs-xl); margin-bottom: var(--s-4); }
.course-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2); margin-bottom: var(--s-4); }
.course-section__head .course-section__title { margin: 0; }
.course-section__meta { margin: 0; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.course-goals { padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
@media (min-width: 768px) { .course-goals { padding: var(--s-6); } }

.curriculum { list-style: none; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.curriculum__item { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); background: #fff; }
.curriculum__item + .curriculum__item { border-top: 1px solid var(--line); }
.curriculum__num { flex: none; font-weight: 800; color: var(--brand-600); font-variant-numeric: tabular-nums; min-width: 1.75rem; }
.curriculum__text { flex: 1; min-width: 0; }
.curriculum__title { display: block; font-weight: 700; line-height: 1.4; }
.curriculum__desc { display: block; color: var(--muted); font-size: var(--fs-sm); line-height: 1.45; margin-top: 2px; }
.curriculum__icon { color: var(--line-strong); }

.bundle-list { list-style: none; display: grid; gap: var(--s-2); }
.bundle-list__item { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; background: #fff; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.bundle-list__item:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); color: var(--ink); }
.bundle-list__img { width: 88px; height: 56px; border-radius: 8px; object-fit: cover; flex: none; }
.bundle-list__text { flex: 1; min-width: 0; }
.bundle-list__title { display: block; font-weight: 700; line-height: 1.35; }
.bundle-list__meta { display: block; font-size: var(--fs-sm); color: var(--muted); }
.bundle-list__price { font-weight: 800; white-space: nowrap; }

.instructor { display: flex; gap: var(--s-5); align-items: flex-start; }
.instructor__img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
.instructor__name { margin: 0; font-weight: 800; font-size: var(--fs-lg); }
.instructor__title { margin: 0 0 var(--s-3); color: var(--brand-700); font-weight: 600; }
.instructor__bio { color: var(--ink-soft); }

/* Mobile sticky buy bar */
.buy-bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
	display: flex; align-items: center; gap: var(--s-3);
	padding: var(--s-3) 16px calc(var(--s-3) + env(safe-area-inset-bottom));
	background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(17, 24, 39, .25);
	transform: translateY(110%); transition: transform var(--t) var(--ease);
}
.buy-bar.is-visible { transform: none; }
.buy-bar__info { flex: 1; min-width: 0; display: grid; }
.buy-bar__title { font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buy-bar__price { font-weight: 800; font-size: var(--fs-lg); line-height: 1.2; }
.buy-bar__price del { font-size: var(--fs-sm); color: var(--muted); }
.buy-bar__price ins { text-decoration: none; }
@media (min-width: 1024px) { .buy-bar { display: none; } }

/* ---------- Payment badges ---------- */
.pay-badges { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.pay-badges li { display: flex; align-items: center; }
.pay-badges a { display: inline-flex; align-items: center; border-radius: 4px; transition: opacity var(--t-fast); }
.pay-badges a:hover { opacity: .8; }
.pay-badges img { height: 30px; width: auto; max-width: none; }
.pay-badges--compact { gap: 8px 12px; }
.pay-badges--compact img { height: 24px; }
/* Footer: logos are full-colour, so sit them on a light strip */
.pay-badges--footer { display: inline-flex; padding: 10px 16px; background: #fff; border-radius: 10px; }

/* ---------- Generic pages ---------- */
.page-wrap { padding: var(--s-6) 0 var(--s-8); }
.page-header { margin-bottom: var(--s-6); }
.page-header__title { font-size: var(--fs-2xl); margin-bottom: var(--s-2); }
.page-header__note { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.page-header__note svg { color: var(--success); }
.page-wrap--shop { background: var(--surface); min-height: 60vh; }

.prose { color: var(--ink-soft); font-size: var(--fs-base); line-height: 1.75; }
.prose > * + * { margin-top: var(--s-4); }
.prose h2, .prose h3 { color: var(--ink); margin-top: var(--s-6); }
.prose h2 { font-size: var(--fs-xl); }
.prose h3 { font-size: var(--fs-lg); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: var(--s-2); }
.prose img { border-radius: var(--radius); }

.post-list { display: grid; gap: var(--s-4); }
.post-item { padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius); }
.post-item__title { font-size: var(--fs-lg); margin-bottom: var(--s-2); }
.post-item__title a { color: var(--ink); text-decoration: none; }
.post-item__excerpt { margin: 0; color: var(--muted); }

.checkout-trust { display: flex; justify-content: center; margin-top: var(--s-6); }

/* ---------- WooCommerce: notices ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3);
	margin: var(--s-4) 0; padding: var(--s-4) var(--s-5);
	border-radius: var(--radius); border: 1px solid var(--line); background: #fff; font-weight: 600;
}
.woocommerce-message { border-color: #b7e4cf; background: var(--success-50); color: #05553a; }
.woocommerce-error { border-color: #f5c2c2; background: var(--danger-50); color: #8e1c1c; }
.woocommerce-info { border-color: var(--brand-200); background: var(--brand-50); color: var(--brand-800); }
.woocommerce-message .button, .woocommerce-info .button, .woocommerce-error .button { margin-left: auto; order: 2; }
.single-product .woocommerce-notices-wrapper { max-width: var(--container); margin: 0 auto; padding: 0 16px; }

/* ---------- WooCommerce: classic forms & buttons ---------- */
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button,
.woocommerce-Button, .shop-content .button {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .625rem 1.125rem;
	border: 0; border-radius: 10px; background: var(--brand-600); color: #fff; font-weight: 700; font-size: var(--fs-base);
	text-decoration: none; cursor: pointer; transition: background-color var(--t-fast);
}
.woocommerce .button:hover, .shop-content .button:hover { background: var(--brand-700); color: #fff; }

.woocommerce form .form-row { display: grid; gap: 6px; margin: 0 0 var(--s-4); }
.woocommerce form .form-row label { font-weight: 600; font-size: var(--fs-sm); color: var(--ink-soft); }
.woocommerce form .form-row .required { color: var(--danger); text-decoration: none; }
.woocommerce form .input-text, .woocommerce form select, .woocommerce-Input, .shop-content input[type="text"], .shop-content input[type="email"], .shop-content input[type="password"], .shop-content input[type="tel"], .shop-content textarea {
	width: 100%; min-height: 48px; padding: .625rem .875rem; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; font-size: 16px;
	transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.woocommerce form .input-text:focus, .shop-content input:focus, .shop-content textarea:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 3px var(--brand-100); }
.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 100%; }
@media (min-width: 640px) {
	.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: calc(50% - 8px); display: inline-grid; }
	.woocommerce form .form-row-first { margin-right: 12px; }
}
.woocommerce-password-strength { font-size: var(--fs-sm); font-weight: 600; }
.woocommerce-form-login .woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 8px; margin-right: var(--s-4); }
.woocommerce-LostPassword { margin-top: var(--s-3); font-size: var(--fs-sm); }
.shop-content fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-5); margin: var(--s-5) 0; }
.shop-content legend { font-weight: 800; padding: 0 var(--s-2); }

/* Login / register (logged-out My Account) */
.shop-content > .woocommerce > .u-columns, .shop-content #customer_login { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .shop-content #customer_login { grid-template-columns: 1fr 1fr; } }
.shop-content #customer_login > div, .woocommerce-form-login, .woocommerce-form-register, .woocommerce-ResetPassword {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-6) var(--s-5);
}
.shop-content #customer_login .woocommerce-form-login, .shop-content #customer_login .woocommerce-form-register { border: 0; padding: 0; }
.shop-content #customer_login h2 { font-size: var(--fs-xl); }

/* ---------- My Account ---------- */
.woocommerce-account .shop-content > .woocommerce { display: grid; gap: var(--s-5); }
@media (min-width: 1024px) {
	.woocommerce-account.logged-in .shop-content > .woocommerce { grid-template-columns: 280px minmax(0, 1fr); gap: var(--s-6); align-items: start; }
}
.account-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-3); }
@media (min-width: 1024px) { .account-nav { position: sticky; top: calc(var(--header-h) + 24px); } }
.account-nav__user { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-3) var(--s-4); margin-bottom: var(--s-2); border-bottom: 1px solid var(--line); min-width: 0; }
.account-nav__user > span:last-child { min-width: 0; line-height: 1.3; }
.account-nav__user strong { display: block; }
.account-nav__user span span { display: block; font-size: var(--fs-sm); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-nav ul { list-style: none; display: grid; gap: 2px; }
.account-nav a { display: flex; align-items: center; gap: var(--s-3); min-height: 44px; padding: .5rem .75rem; border-radius: 10px; color: var(--ink-soft); font-weight: 600; text-decoration: none; }
.account-nav a svg { color: var(--muted); }
.account-nav a:hover { background: var(--surface); color: var(--ink); }
.account-nav .is-active a { background: var(--brand-50); color: var(--brand-700); }
.account-nav .is-active a svg { color: var(--brand-600); }
@media (max-width: 1023px) {
	.account-nav ul { display: flex; overflow-x: auto; gap: var(--s-1); scrollbar-width: none; }
	.account-nav ul::-webkit-scrollbar { display: none; }
	.account-nav a { white-space: nowrap; }
}
.woocommerce-MyAccount-content { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-5); }
@media (min-width: 768px) { .woocommerce-MyAccount-content { padding: var(--s-6); } }
.woocommerce-MyAccount-content > h2, .woocommerce-MyAccount-content > h3 { font-size: var(--fs-xl); }

.account-dash { display: grid; gap: var(--s-5); }
.account-dash__hello h2 { font-size: var(--fs-xl); margin-bottom: var(--s-1); }
.account-dash__hello p { color: var(--muted); margin: 0; }
.account-dash__cards { display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .account-dash__cards { grid-template-columns: repeat(3, 1fr); } }
.dash-card { display: grid; gap: 4px; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.dash-card svg { color: var(--brand-600); margin-bottom: var(--s-2); }
.dash-card span { color: var(--muted); font-size: var(--fs-sm); }
.dash-card:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); color: var(--ink); }
.dash-card--primary { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.dash-card--primary svg, .dash-card--primary span { color: #ece5ff; }
.dash-card--primary:hover { background: var(--brand-700); color: #fff; }
.account-dash__title { font-size: var(--fs-lg); margin: var(--s-3) 0 0; }
.course-grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .course-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .course-grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* Orders / tables */
.shop-content table.shop_table, .woocommerce-MyAccount-content table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.shop-content table.shop_table th, .shop-content table.shop_table td { padding: var(--s-3); border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.shop-content table.shop_table thead th { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.woocommerce-orders-table .button { min-height: 36px; padding: .375rem .75rem; font-size: var(--fs-sm); margin: 2px; }
@media (max-width: 767px) {
	.shop-content table.shop_table_responsive thead { display: none; }
	.shop-content table.shop_table_responsive tr { display: block; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
	.shop-content table.shop_table_responsive td { display: flex; justify-content: space-between; gap: var(--s-3); border: 0; padding: 6px 0; text-align: right; }
	.shop-content table.shop_table_responsive td::before { content: attr(data-title); font-weight: 700; color: var(--muted); text-align: left; }
}
.woocommerce-Addresses { display: grid; gap: var(--s-4); }
@media (min-width: 768px) { .woocommerce-Addresses { grid-template-columns: 1fr 1fr; } }
.woocommerce-Address { padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--radius); }
.woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; }
.woocommerce-Address-title h2, .woocommerce-Address-title h3 { font-size: var(--fs-md); }

/* LMSACE "Moji kursevi" output – keep it neat whatever its markup */
.woocommerce-MyAccount-content .lac-course, .woocommerce-MyAccount-content .lac-courses, .woocommerce-MyAccount-content [class*="lac-"] { font-size: var(--fs-base); }
.woocommerce-MyAccount-content [class*="lac-"] a.button, .woocommerce-MyAccount-content [class*="lac-"] .button { margin-top: var(--s-2); }

/* ---------- WooCommerce Blocks: cart & checkout ---------- */
.shop-content .wp-block-woocommerce-cart, .shop-content .wp-block-woocommerce-checkout { background: transparent; }
.shop-content .wc-block-components-sidebar-layout { margin: 0; }
.shop-content .wc-block-components-main, .shop-content .wc-block-components-sidebar {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-5) !important;
}
@media (min-width: 768px) { .shop-content .wc-block-components-main, .shop-content .wc-block-components-sidebar { padding: var(--s-6) !important; } }
.shop-content .wc-block-components-sidebar { align-self: start; }
@media (min-width: 900px) { .shop-content .wc-block-components-sidebar { position: sticky; top: calc(var(--header-h) + 24px); } }
.shop-content .wc-block-components-title, .shop-content .wc-block-components-checkout-step__title { font-weight: 800 !important; letter-spacing: -.01em; }
.shop-content .wc-block-components-button:not(.is-link), .shop-content .wc-block-cart__submit-button, .shop-content .wc-block-components-checkout-place-order-button {
	min-height: 52px; border-radius: 12px !important; background: var(--brand-600) !important; color: #fff !important; font-weight: 800 !important; font-size: var(--fs-md) !important; border: 0 !important;
	transition: background-color var(--t-fast);
}
.shop-content .wc-block-components-button:not(.is-link):hover { background: var(--brand-700) !important; }
.shop-content .wc-block-components-text-input input, .shop-content .wc-block-components-combobox .components-combobox-control input, .shop-content .wc-blocks-components-select__select, .shop-content .wc-block-components-textarea {
	border-radius: 10px !important; border-color: var(--line-strong) !important;
}
.shop-content .wc-block-components-text-input input:focus, .shop-content .wc-blocks-components-select__select:focus { border-color: var(--brand-600) !important; box-shadow: 0 0 0 2px var(--brand-100) !important; }
.shop-content .wc-block-components-radio-control__option, .shop-content .wc-block-components-radio-control-accordion-option { border-radius: 10px; }
.shop-content .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.shop-content .wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted { box-shadow: inset 0 0 0 2px var(--brand-600) !important; }
.shop-content .wc-block-components-product-name { font-weight: 700; color: var(--ink); text-decoration: none; }
.shop-content .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.shop-content .wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font-weight: 800; font-size: var(--fs-lg); }
.shop-content .wc-block-components-quantity-selector { display: none; } /* courses are single purchase */
.shop-content .wc-block-cart-items__header { font-size: var(--fs-xs); letter-spacing: .05em; color: var(--muted); }
.shop-content .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked { background: var(--brand-600); border-color: var(--brand-600); }
.shop-content .wc-block-cart .wp-block-woocommerce-product-collection, .shop-content .wp-block-woocommerce-empty-cart-block { text-align: center; }
.shop-content .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title { font-size: var(--fs-xl); }

/* Order received */
.woocommerce-order { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-6) var(--s-5); }
.woocommerce-thankyou-order-received { font-size: var(--fs-xl); font-weight: 800; color: var(--success); }
.woocommerce-order-overview { list-style: none; display: grid; gap: var(--s-3); padding: 0; margin: var(--s-5) 0; }
@media (min-width: 768px) { .woocommerce-order-overview { grid-template-columns: repeat(4, 1fr); } }
.woocommerce-order-overview li { padding: var(--s-3) var(--s-4); background: var(--surface); border-radius: var(--radius); font-size: var(--fs-sm); color: var(--muted); }
.woocommerce-order-overview li strong { display: block; color: var(--ink); font-size: var(--fs-base); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-950); color: #b7b2d6; padding-top: var(--s-8); font-size: .9375rem; }
.site-footer__grid { display: grid; gap: var(--s-6); padding-bottom: var(--s-6); }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--s-7); } }
.site-footer__brand p { margin: var(--s-4) 0 0; max-width: 36ch; }
.site-footer__secure { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #e1def5; }
.site-footer__secure svg { color: var(--accent); }
.site-footer__title { color: #fff; font-size: var(--fs-base); margin-bottom: var(--s-4); }
.site-footer__col ul { list-style: none; display: grid; gap: var(--s-2); }
.site-footer__col a { color: #b7b2d6; text-decoration: none; display: inline-block; padding: 2px 0; }
.site-footer__col a:hover { color: #fff; text-decoration: underline; }
.site-footer__payments { padding: var(--s-5) 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); padding: var(--s-5) 0 var(--s-6); border-top: 1px solid rgba(255, 255, 255, .1); font-size: var(--fs-sm); color: #8f89b6; }
.site-footer__bottom p { margin: 0; }
.single-product .site-footer { padding-bottom: 72px; }
@media (min-width: 1024px) { .single-product .site-footer { padding-bottom: 0; } }

/* ---------- Elementor pages inside the theme ---------- */
/* Elementor's kit can reset the body font; the theme chrome keeps its own. */
.site-header, .site-footer, .shop-content, .page-header, .mobile-nav { font-family: var(--font); }
.is-builder-page .site-main > .elementor { min-height: 40vh; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Checkout gate (logged-out) ---------- */
.checkout-gate { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 1024px) { .checkout-gate { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-6); } }
.checkout-steps { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-bottom: var(--s-5); font-size: var(--fs-sm); font-weight: 700; color: var(--muted); }
.checkout-steps li { display: inline-flex; align-items: center; gap: var(--s-2); }
.checkout-steps li span, .checkout-steps li svg { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--line); color: var(--ink-soft); font-size: var(--fs-xs); }
.checkout-steps .is-done { color: var(--success); }
.checkout-steps .is-done svg { background: var(--success-50); color: var(--success); padding: 4px; }
.checkout-steps .is-current { color: var(--ink); }
.checkout-steps .is-current span { background: var(--brand-600); color: #fff; }
.checkout-gate__intro h2 { font-size: var(--fs-xl); margin-bottom: var(--s-2); }
.checkout-gate__intro p { color: var(--muted); margin-bottom: var(--s-5); }
.checkout-gate__cols { display: grid; gap: var(--s-4); }
@media (min-width: 768px) { .checkout-gate__cols { grid-template-columns: 1fr 1fr; } }
.gate-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-5); }
@media (min-width: 768px) { .gate-card { padding: var(--s-6) var(--s-5); } }
.gate-card--primary { border-color: var(--brand-200); box-shadow: 0 0 0 3px var(--brand-50); }
.gate-card h3 { font-size: var(--fs-lg); margin-bottom: var(--s-1); }
.gate-card__lead { color: var(--muted); font-size: var(--fs-sm); margin-bottom: var(--s-4); }
.gate-card .form-row { width: 100% !important; margin-right: 0 !important; }
.form-row--inline { display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); font-size: var(--fs-sm); }
.checkbox-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.checkbox-label input { width: 18px; height: 18px; accent-color: var(--brand-600); }
.form-hint { display: flex; align-items: center; gap: 8px; margin: 0 0 var(--s-4); font-size: var(--fs-sm); color: var(--muted); }
.gate-card .woocommerce-privacy-policy-text { font-size: var(--fs-xs); color: var(--muted); margin-bottom: var(--s-3); }
.summary-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-5); display: grid; gap: var(--s-4); }
@media (min-width: 1024px) { .summary-card { position: sticky; top: calc(var(--header-h) + 24px); } }
.summary-card__title { font-size: var(--fs-lg); margin: 0; }
.summary-card__items { list-style: none; display: grid; gap: var(--s-3); }
.summary-card__items li { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--s-3); align-items: center; }
.summary-card__img { width: 64px; height: 44px; object-fit: cover; border-radius: 8px; }
.summary-card__name { font-weight: 700; line-height: 1.3; font-size: .9375rem; }
.summary-card__price { font-weight: 700; white-space: nowrap; }
.summary-card__total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding-top: var(--s-3); border-top: 1px solid var(--line); }
.summary-card__total strong { font-size: var(--fs-xl); }
.summary-card__edit { font-size: var(--fs-sm); font-weight: 600; }
.summary-card__trust { list-style: none; display: grid; gap: var(--s-2); padding: var(--s-3) var(--s-4); background: var(--surface); border-radius: var(--radius); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft); }
.summary-card__trust li { display: flex; align-items: center; gap: var(--s-2); }
.summary-card__trust svg { color: var(--success); }

/* ---------- Classic checkout (logged-in) ---------- */
.shop-content form.checkout { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 1024px) {
	.shop-content form.checkout { grid-template-columns: minmax(0, 1fr) 400px; gap: var(--s-6); }
	.shop-content form.checkout #order_review_heading { display: none; }
}
.shop-content #customer_details, .shop-content #order_review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-5); }
@media (min-width: 768px) { .shop-content #customer_details, .shop-content #order_review { padding: var(--s-6); } }
@media (min-width: 1024px) { .shop-content #order_review { position: sticky; top: calc(var(--header-h) + 24px); grid-column: 2; grid-row: 1 / span 2; } }
.shop-content #customer_details .col-1, .shop-content #customer_details .col-2 { width: 100%; float: none; }
.shop-content #customer_details h3, .shop-content #order_review_heading { font-size: var(--fs-lg); }
.shop-content #payment { margin-top: var(--s-4); }
.shop-content #payment ul.payment_methods { list-style: none; display: grid; gap: var(--s-2); margin-bottom: var(--s-4); }
.shop-content #payment ul.payment_methods > li { padding: var(--s-4); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.shop-content #payment ul.payment_methods > li:has(input:checked) { border-color: var(--brand-600); box-shadow: inset 0 0 0 1px var(--brand-600); background: var(--brand-50); }
.shop-content #payment ul.payment_methods label { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.shop-content #payment ul.payment_methods label img { max-height: 24px; width: auto; display: inline-block; }
.shop-content #payment .payment_box { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--ink-soft); }
.shop-content #place_order { width: 100%; min-height: 56px; font-size: var(--fs-md); font-weight: 800; border-radius: 12px; background: var(--brand-600); }
.shop-content #place_order:hover { background: var(--brand-700); }
.shop-content .woocommerce-terms-and-conditions-wrapper { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--s-4); }
.shop-content .woocommerce-form__label-for-checkbox { display: inline-flex; gap: 8px; align-items: flex-start; font-weight: 600; color: var(--ink-soft); }
.shop-content table.woocommerce-checkout-review-order-table .order-total td, .shop-content table.woocommerce-checkout-review-order-table .order-total th { font-size: var(--fs-lg); font-weight: 800; }
.gate-card form.woocommerce-form { border: 0; padding: 0; background: none; border-radius: 0; }
.site-footer__bottom { align-items: center; }
.built-by { display: inline-flex; align-items: center; gap: 6px; color: #8f89b6; text-decoration: none; font-size: var(--fs-xs); font-weight: 500; line-height: 1; }
.built-by img { height: 13px; width: auto; transition: opacity var(--t-fast); }
.built-by:hover { color: #fff; }
.built-by:hover img { opacity: .85; }
.socials { list-style: none; display: flex; gap: var(--s-2); margin-top: var(--s-5); }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #e4e1f3; transition: background-color var(--t-fast), color var(--t-fast); }
.socials a:hover { background: var(--brand-600); color: #fff; }
.form-hint--account { margin: var(--s-4) 0 0; padding: var(--s-3) var(--s-4); background: var(--brand-50); border-radius: var(--radius); color: var(--brand-800); font-weight: 600; }
.shop-content .woocommerce-form-login-toggle .woocommerce-info { margin-top: 0; }
.shop-content form.checkout_coupon, .shop-content form.woocommerce-form-login { margin-bottom: var(--s-5); }

/* ---------- Cookie consent ---------- */
.link-btn { padding: 2px 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.link-btn:hover { color: #fff; text-decoration: underline; }
.cookie-banner {
	position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 1080px; margin: 0 auto;
	background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
	animation: pop var(--t) var(--ease);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner { display: grid; gap: var(--s-4); padding: var(--s-5); }
@media (min-width: 900px) { .cookie-banner__inner { grid-template-columns: 1fr auto; align-items: center; gap: var(--s-6); } }
.cookie-banner__title { font-size: var(--fs-md); margin-bottom: var(--s-1); }
.cookie-banner__text p { margin: 0; font-size: var(--fs-sm); color: var(--ink-soft); }
.cookie-banner__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.cookie-banner__actions .btn--primary { grid-column: 1 / -1; order: -1; }
@media (min-width: 640px) { .cookie-banner__actions { display: flex; } .cookie-banner__actions .btn--primary { order: 0; } }
.cookie-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); color: var(--ink); }
.cookie-dialog::backdrop { background: rgba(11, 10, 26, .55); }
.cookie-dialog__form { padding: var(--s-5); }
.cookie-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.cookie-dialog__head h2 { font-size: var(--fs-lg); margin: 0; }
.cookie-dialog__lead { color: var(--muted); font-size: var(--fs-sm); margin: var(--s-2) 0 var(--s-4); }
.consent-row { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) 0; border-top: 1px solid var(--line); }
.consent-row h3 { font-size: var(--fs-base); margin: 0 0 2px; }
.consent-row p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.cookie-dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s-2); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.switch { position: relative; flex: none; width: 48px; height: 28px; margin-top: 2px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line-strong); transition: background-color var(--t-fast); }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform var(--t-fast) var(--ease); }
.switch input:checked + span { background: var(--brand-600); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { box-shadow: var(--focus); }
.switch--locked input { cursor: not-allowed; }
.switch--locked input:checked + span { background: var(--success); }
.shop-content .edu-digital-consent { margin: var(--s-3) 0 var(--s-4); padding: var(--s-3) var(--s-4); background: var(--accent-50); border-radius: var(--radius); font-size: var(--fs-sm); }
.shop-content .edu-digital-consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ink-soft); }
.shop-content .edu-digital-consent input, .shop-content .woocommerce-terms-and-conditions-wrapper input[type="checkbox"] { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--brand-600); }

.buy-card__pay-label { margin: var(--s-2) 0 6px !important; font-size: var(--fs-xs) !important; font-weight: 600 !important; color: var(--muted) !important; }
.aircash-badge { display: inline-flex; align-items: center; height: 30px; padding: 4px 10px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.aircash-badge img { height: 18px; width: auto; }

/* Legal pages */
.legal-meta { padding: var(--s-4) var(--s-5); background: var(--surface); border-radius: var(--radius); font-size: var(--fs-sm); line-height: 1.6; }
.legal-meta p { margin: 0; }
.legal-meta__version { margin-top: var(--s-2) !important; font-weight: 700; color: var(--ink); }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); line-height: 1.5; }
.prose th, .prose td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--surface); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose code { font-size: .85em; padding: 1px 5px; background: var(--surface-2); border-radius: 4px; }

/* ---------- Live search dropdown ---------- */
form.has-suggest { position: relative; }
.suggest {
	position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 150; min-width: min(560px, calc(100vw - 32px));
	max-height: min(70vh, 560px); overflow-y: auto; padding: 6px;
	background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
	text-align: left; animation: pop var(--t) var(--ease);
}
.suggest[hidden] { display: none; }
.header-search .suggest { left: auto; right: 0; width: 560px; }
.suggest.is-loading { opacity: .7; }
.suggest__item { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.suggest__item:hover, .suggest__item[aria-selected="true"] { background: var(--brand-50); color: var(--ink); }
.suggest__item img, .suggest__noimg { width: 96px; height: 54px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.suggest__text { display: grid; gap: 2px; min-width: 0; }
.suggest__title { font-weight: 700; line-height: 1.3; }
.suggest__teaser { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: var(--fs-xs); color: var(--ink-soft); }
.suggest__tag { padding: 0 6px; border-radius: 4px; background: var(--accent); color: var(--ink-950); font-weight: 700; }
.suggest__price { font-weight: 800; white-space: nowrap; }
.suggest__all { display: block; margin-top: 4px; padding: 12px; border-top: 1px solid var(--line); text-align: center; font-weight: 700; color: var(--brand-700); text-decoration: none; border-radius: 0 0 12px 12px; }
.suggest__all:hover { background: var(--surface); }
.suggest__empty { padding: 16px; color: var(--muted); font-weight: 600; text-align: center; }
@media (max-width: 560px) {
	.suggest { min-width: 0; }
	.suggest__item { grid-template-columns: 72px 1fr; }
	.suggest__item img, .suggest__noimg { width: 72px; height: 44px; }
	.suggest__price { grid-column: 2; font-size: var(--fs-sm); }
}

/* ---------- Virtual classroom ---------- */
.btn--light { --btn-bg: rgba(255, 255, 255, .08); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .3); }
.btn--light:hover { --btn-bg: rgba(255, 255, 255, .16); --btn-bd: rgba(255, 255, 255, .6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero__ticks { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-5); color: #d6d1ef; font-size: var(--fs-sm); font-weight: 600; }
.hero__ticks li { display: inline-flex; align-items: center; gap: 6px; }
.hero__ticks svg { color: var(--accent); }
.hero--vu .hero__title { max-width: 18ch; }

.vu-mock { display: none; background: #1c1640; border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
@media (min-width: 1024px) { .vu-mock { display: block; } }
.vu-mock__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: rgba(255, 255, 255, .05); font-size: 12px; color: #cfc9ef; }
.vu-mock__bar > span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.vu-mock__bar em { font-style: normal; margin-left: 8px; font-weight: 600; }
.vu-mock__bar b { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: #e5484d; color: #fff; font-size: 10px; letter-spacing: .05em; }
.vu-mock__body { display: grid; grid-template-columns: 1fr 120px; gap: 10px; padding: 12px; }
.vu-mock__slide { position: relative; display: grid; align-content: start; gap: 10px; min-height: 240px; padding: 22px; border-radius: 10px; background: #fff; color: var(--ink); }
.vu-mock__slide-title { font-weight: 800; font-size: 18px; margin-bottom: 6px; }
.vu-mock__line { display: block; height: 10px; border-radius: 5px; background: var(--surface-2); }
.vu-mock__ink { position: absolute; left: 22px; bottom: 18px; width: 200px; color: var(--brand-600); }
.vu-mock__side { display: grid; gap: 8px; align-content: start; }
.vu-mock__cam { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 8px; font-weight: 800; color: #fff; font-size: 13px; }
.vu-mock__cam--1 { background: linear-gradient(135deg, #6d3fe0, #9b6cf6); box-shadow: inset 0 0 0 2px #5dc2a3; }
.vu-mock__cam--2 { background: linear-gradient(135deg, #0e7490, #22d3ee); }
.vu-mock__cam--3 { background: linear-gradient(135deg, #b45309, #f59e0b); }
.vu-mock__poll { display: grid; gap: 6px; padding: 8px; border-radius: 8px; background: rgba(255, 255, 255, .08); font-size: 11px; color: #e4e1f3; }
.vu-mock__poll span { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .12); }
.vu-mock__poll i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.vu-mock__controls { display: flex; justify-content: center; gap: 10px; padding: 10px 0 14px; }
.vu-mock__controls span { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.vu-mock__controls .is-red { background: #e5484d; }

.feature-group__title { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .06em; color: var(--brand-700); margin: var(--s-6) 0 var(--s-3); }
.feature-group__title:first-of-type { margin-top: 0; }
.feature-grid { list-style: none; display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .feature-grid { grid-template-columns: repeat(5, 1fr); } }
.feature { padding: var(--s-5); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color var(--t), box-shadow var(--t); }
.feature:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.feature__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--s-3); border-radius: 12px; background: var(--brand-50); color: var(--brand-600); }
.feature__title { font-size: var(--fs-base); margin-bottom: 4px; }
.feature p { margin: 0; color: var(--muted); font-size: var(--fs-sm); line-height: 1.5; }
.check-list--cards li { padding: var(--s-4) var(--s-5); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; }

.section--dark { color: #fff; background: radial-gradient(800px 400px at 90% 0%, rgba(109, 63, 224, .45), transparent 60%), var(--ink-900); }
.cta-form { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 1024px) { .cta-form { grid-template-columns: 1fr 1.1fr; gap: var(--s-8); } }
.cta-form__title { color: #fff; font-size: var(--fs-2xl); }
.cta-form__lead { color: #d6d1ef; font-size: var(--fs-md); margin-bottom: var(--s-5); }
.cta-form__contact { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); margin: var(--s-6) 0 0; color: #bdb6e0; font-size: var(--fs-sm); }
.cta-form__contact a { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; text-decoration: none; }
.cta-form__contact a:hover { color: var(--accent); }

/* ---------- Contact page ---------- */
.contact { display: grid; gap: var(--s-5); padding-block: var(--s-6) var(--s-8); align-items: start; }
@media (min-width: 1024px) { .contact { grid-template-columns: 360px 1fr; gap: var(--s-6); } }
.contact__info { display: grid; gap: var(--s-3); }
.contact-card { display: flex; gap: var(--s-4); align-items: flex-start; padding: var(--s-4) var(--s-5); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); text-decoration: none; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.contact-card:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); color: var(--ink); }
.contact-card__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand-600); flex: none; }
.contact-card__label { display: block; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.contact-card strong { display: block; line-height: 1.35; word-break: break-word; }
.contact-card__hint { display: block; font-size: var(--fs-xs); color: var(--brand-700); font-weight: 600; margin-top: 2px; }
.contact__company { display: grid; gap: 2px; padding: var(--s-2) var(--s-5); font-size: var(--fs-sm); color: var(--muted); }
.contact__company strong { color: var(--ink); }

/* ---------- Form card + Forminator restyle ---------- */
.form-card { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 24px; padding: var(--s-5); box-shadow: var(--shadow); }
@media (min-width: 768px) { .form-card { padding: var(--s-6) var(--s-7); } }
.form-card__title { font-size: var(--fs-xl); margin-bottom: var(--s-1); }
.form-card__lead { color: var(--muted); font-size: var(--fs-sm); margin-bottom: var(--s-5); }
.section--dark .form-card { border-color: transparent; box-shadow: var(--shadow-lg); }

/* Inquiry forms (plugin "Edukacija – Upiti") */
.upit-form { position: relative; }
.upit-form__grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .upit-form__grid { grid-template-columns: 1fr 1fr; } .upit-field { grid-column: 1 / -1; } .upit-field--half { grid-column: auto; } }
.upit-label { display: block; margin-bottom: 6px; font-size: var(--fs-sm); font-weight: 700; color: var(--ink-soft); }
.upit-label abbr, .upit-check abbr { color: var(--danger); text-decoration: none; }
.upit-input {
	width: 100%; min-height: 52px; padding: 12px 16px; border: 1.5px solid transparent; border-radius: 12px;
	background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.4;
	transition: border-color var(--t-fast), background-color var(--t-fast), box-shadow var(--t-fast);
}
textarea.upit-input { min-height: 140px; resize: vertical; }
select.upit-input { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235b6475' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; }
.upit-input::placeholder { color: #8a92a3; }
.upit-input:hover { background-color: var(--surface-2); }
.upit-input:focus { outline: none; background-color: #fff; border-color: var(--brand-600); box-shadow: 0 0 0 4px var(--brand-100); }
.has-error .upit-input { border-color: var(--danger); background-color: var(--danger-50); }
.upit-help { display: block; margin-top: 6px; font-size: var(--fs-xs); color: var(--muted); }
.upit-error { display: block; margin-top: 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--danger); }
.upit-error:empty { display: none; }
.upit-check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.5; cursor: pointer; }
.upit-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand-600); cursor: pointer; }
.upit-check a { color: var(--brand-700); }
.upit-captcha { margin-top: var(--s-4); }
.upit-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.upit-submit {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; margin-top: var(--s-5); padding: 14px 24px;
	border: 0; border-radius: 14px; background: var(--brand-600); color: #fff; font: inherit; font-size: var(--fs-md); font-weight: 800; cursor: pointer;
	transition: background-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.upit-submit:hover { background: var(--brand-700); box-shadow: 0 10px 24px -10px rgba(109, 63, 224, .7); }
.upit-submit:active { transform: translateY(1px); }
.upit-submit:disabled { opacity: .75; cursor: progress; }
.upit-submit__spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: upit-spin .7s linear infinite; }
.is-sending .upit-submit__spinner { display: inline-block; }
@keyframes upit-spin { to { transform: rotate(360deg); } }
.upit-form__status:focus { outline: none; }
.upit-alert { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 var(--s-4); padding: var(--s-4); border-radius: var(--radius); font-weight: 600; font-size: var(--fs-sm); line-height: 1.5; }
.upit-alert--success { background: var(--success-50); color: #05553a; }
.upit-alert--error { background: var(--danger-50); color: #8e1c1c; }
.is-sent .upit-alert--success { margin: 0; padding: var(--s-6) var(--s-5); font-size: var(--fs-md); }

.suggest__price { display: grid; justify-items: end; line-height: 1.2; }
.suggest__price del { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }

/* ==========================================================================
   Auth screens (login / register / lost & reset password)
   ========================================================================== */
.is-auth .site-main { background: var(--surface); }
.auth-page { padding: var(--s-6) 0 var(--s-8); }
@media (min-width: 1024px) { .auth-page { padding: var(--s-7) 0 var(--s-9); } }
.auth { display: grid; gap: var(--s-6); align-items: stretch; max-width: 1080px; margin: 0 auto; }
@media (min-width: 1024px) { .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; } }
.auth__main { display: grid; align-content: center; gap: var(--s-4); }
@media (min-width: 1024px) { .auth__main { padding: var(--s-8) var(--s-7); } }
.auth-card { width: 100%; max-width: 460px; margin: 0 auto; padding: var(--s-6) var(--s-5); background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-sm); }
@media (min-width: 1024px) { .auth-card { padding: 0; border: 0; box-shadow: none; background: none; } }
.auth-card--center { text-align: center; }
.auth-card__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: var(--s-4); border-radius: 16px; background: var(--brand-50); color: var(--brand-600); }
.auth-card--center .auth-card__icon { margin-inline: auto; }
.auth-card__icon--success { background: var(--success-50); color: var(--success); }
.auth-card__title { font-size: var(--fs-2xl); margin-bottom: var(--s-2); }
.auth-card__lead { color: var(--muted); margin-bottom: var(--s-5); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: var(--s-6); background: var(--surface); border-radius: 14px; }
.auth-tabs button { min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; transition: background-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast); }
.auth-tabs button:hover { color: var(--ink); }
.auth-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.auth-form { display: grid; gap: var(--s-4); }
.shop-content .auth-form .form-row { width: 100% !important; margin: 0 !important; display: grid; gap: 6px; }
.auth-field label { font-size: var(--fs-sm); font-weight: 700; color: var(--ink-soft); }
.auth-field .required { color: var(--danger); text-decoration: none; }
.shop-content .auth-field input.input-text {
	min-height: 52px; padding: 12px 16px; border: 1.5px solid transparent; border-radius: 12px; background: var(--surface); font-size: 16px;
	transition: border-color var(--t-fast), background-color var(--t-fast), box-shadow var(--t-fast);
}
.shop-content .auth-field input.input-text:hover { background: var(--surface-2); }
.shop-content .auth-field input.input-text:focus { background: #fff; border-color: var(--brand-600); box-shadow: 0 0 0 4px var(--brand-100); }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 52px !important; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; }
.pw-toggle:hover { color: var(--ink); background: rgba(17, 24, 39, .04); }
.pw-toggle[aria-pressed="true"] { color: var(--brand-600); }
.auth-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); font-size: var(--fs-sm); }
.auth-link { font-weight: 700; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.auth-hint { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: var(--s-3) var(--s-4); border-radius: var(--radius); background: var(--brand-50); color: var(--brand-800); font-size: var(--fs-sm); font-weight: 600; text-align: left; }
.auth-hint svg { flex: none; margin-top: 2px; }
.auth-card--center .auth-hint { margin: 0 0 var(--s-5); background: var(--surface); color: var(--ink-soft); }
.auth-switch { margin: var(--s-5) 0 0; text-align: center; color: var(--muted); font-size: var(--fs-sm); }
.auth-switch a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.auth-legal { max-width: 460px; margin: 0 auto; text-align: center; font-size: var(--fs-xs); color: var(--muted); }
.auth .woocommerce-privacy-policy-text { font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; }
.auth .woocommerce-privacy-policy-text p { margin: 0; }
.auth .woocommerce-password-strength { margin-top: 6px; padding: 8px 12px; border-radius: 8px; font-size: var(--fs-xs); }
.auth .woocommerce-password-strength.short, .auth .woocommerce-password-strength.bad { background: var(--danger-50); color: #8e1c1c; }
.auth .woocommerce-password-strength.good { background: var(--accent-50); color: #7a5200; }
.auth .woocommerce-password-strength.strong { background: var(--success-50); color: #05553a; }
.auth .woocommerce-password-hint { display: block; margin-top: 6px; font-size: var(--fs-xs); color: var(--muted); }
.auth .woocommerce-error, .auth .woocommerce-message, .auth .woocommerce-info { margin: 0 0 var(--s-4); }

.auth__aside { display: none; color: #fff; background: radial-gradient(600px 400px at 100% 0%, rgba(155, 108, 246, .55), transparent 60%), linear-gradient(160deg, var(--ink-900), var(--ink-800)); }
@media (min-width: 1024px) { .auth__aside { display: flex; align-items: center; padding: var(--s-8) var(--s-7); } }
.auth__aside-inner { display: grid; gap: var(--s-5); max-width: 420px; }
.auth__aside-title { margin: 0; font-size: var(--fs-2xl); font-weight: 800; line-height: 1.15; letter-spacing: -.03em; }
.auth__quote { margin: var(--s-4) 0 0; padding: var(--s-5); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.auth__quote blockquote { margin: 0 0 var(--s-4); color: #ece9fb; line-height: 1.6; }
.auth__quote figcaption { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-sm); color: #bdb6e0; line-height: 1.35; }
.auth__quote figcaption strong { display: block; color: #fff; }
.auth__quote img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

/* ==========================================================================
   Account: overview & my courses
   ========================================================================== */
.continue { display: grid; overflow: hidden; border-radius: var(--radius-lg); color: #fff; background: radial-gradient(500px 300px at 100% 0%, rgba(155, 108, 246, .5), transparent 60%), var(--ink-900); }
@media (min-width: 768px) { .continue { grid-template-columns: 280px 1fr; } }
.continue__img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; }
.continue__body { display: grid; align-content: center; gap: var(--s-3); padding: var(--s-5); }
.continue__body .eyebrow { margin: 0; }
.continue__title { margin: 0; color: #fff; font-size: var(--fs-xl); }
.continue__meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); margin: 0; color: #d6d1ef; font-size: var(--fs-sm); }
.continue__meta span { display: inline-flex; align-items: center; gap: 6px; }
.continue .btn { justify-self: start; }

.dash-stats { list-style: none; display: grid; gap: var(--s-3); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .dash-stats { grid-template-columns: repeat(4, 1fr); } }
.dash-stats a { display: grid; gap: 4px; height: 100%; padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.dash-stats a:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); color: var(--ink); }
.dash-stats strong { font-size: 1.75rem; line-height: 1; color: var(--brand-600); letter-spacing: -.02em; }
.dash-stats span { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }

.account-section { display: grid; gap: var(--s-5); }
.account-section__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); }
.account-section__head h2 { font-size: var(--fs-xl); margin: 0 0 2px; }
.account-section__head p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.account-section__head .account-dash__title { margin: 0; }
.account-section__hint { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: var(--fs-sm); }

.owned-grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .owned-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .owned-grid { grid-template-columns: repeat(3, 1fr); } }
.owned { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.owned__media { position: relative; aspect-ratio: 16 / 9; min-height: 0; overflow: hidden; background: var(--surface-2); }
.owned__img { width: 100%; height: 100%; object-fit: cover; }
.owned--expired .owned__img { filter: grayscale(1); opacity: .7; }
.owned__badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; background: var(--success); color: #fff; }
.owned--pending .owned__badge { background: var(--accent); color: var(--ink-950); }
.owned--expired .owned__badge { background: var(--ink-700, #374151); }
.owned__body { display: flex; flex-direction: column; gap: var(--s-3); flex: 1; padding: var(--s-4) var(--s-4) var(--s-5); }
.owned__title { margin: 0; font-size: var(--fs-md); line-height: 1.3; }
.owned__meta { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--fs-sm); color: var(--ink-soft); }
.owned__meta li { display: inline-flex; align-items: center; gap: 6px; }
.owned__meta svg { color: var(--muted); }
.owned__access { display: grid; gap: 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.owned__bar { display: block; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.owned__bar i { display: block; height: 100%; border-radius: 3px; background: var(--brand-600); }
.owned__access.is-ending { color: #9a5b00; }
.owned__access.is-ending .owned__bar i { background: var(--accent-600); }
.owned__note { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.owned__actions { margin-top: auto; }
.btn.is-disabled { opacity: .6; pointer-events: none; }
.auth .auth-form { border: 0 !important; padding: 0 !important; background: none !important; border-radius: 0 !important; box-shadow: none !important; }
.shop-content .auth-field input.input-text, .shop-content .auth-field input.edu-pw { border: 1.5px solid transparent !important; background: var(--surface) !important; }
.shop-content .auth-field input.input-text:focus, .shop-content .auth-field input.edu-pw:focus { background: #fff !important; border-color: var(--brand-600) !important; box-shadow: 0 0 0 4px var(--brand-100) !important; }
.auth .show-password-input { display: none !important; }

/* ---------- Hero card motion ---------- */
@media (prefers-reduced-motion: no-preference) {
	.hero__visual { --px: 0; --py: 0; }
	.hero-card {
		animation: heroIn 900ms var(--ease) both, heroFloat 7s ease-in-out infinite;
		transform: translate3d(calc(var(--px) * var(--depth, 10px)), calc(var(--py) * var(--depth, 10px)), 0);
		transition: transform 600ms var(--ease);
		will-change: transform, translate;
	}
	.hero-card--1 { --depth: 14px; animation-delay: 150ms, 1.1s; }
	.hero-card--2 { --depth: 24px; animation-delay: 300ms, 2.2s; animation-duration: 900ms, 8s; }
	.hero-card--3 { --depth: 8px;  animation-delay: 0ms, 0s;    animation-duration: 900ms, 9s; }
	.hero-card__play::after {
		content: ""; position: absolute; inset: 0; border-radius: 50%;
		box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); animation: heroPulse 2.4s ease-out infinite 1.2s;
	}
	.hero-card__progress span { animation: heroProgress 6s ease-in-out infinite 1s; }
	.hero-card:hover { z-index: 4; }
}
@keyframes heroIn { from { opacity: 0; translate: 0 32px; } to { opacity: 1; translate: 0 0; } }
@keyframes heroFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes heroPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .65); } 70%, 100% { box-shadow: 0 0 0 18px rgba(255, 255, 255, 0); } }
@keyframes heroProgress { 0% { width: 18%; } 60%, 85% { width: 82%; } 100% { width: 18%; } }
.hero-card--3 { animation-fill-mode: both; }

/* ---------- Header: single profile button ---------- */
.profile-btn {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 14px 4px 4px;
	border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: #fff; color: var(--ink);
	font-weight: 700; font-size: var(--fs-sm); text-decoration: none; cursor: pointer; list-style: none;
	transition: border-color var(--t-fast), background-color var(--t-fast), box-shadow var(--t-fast);
}
.profile-btn::-webkit-details-marker { display: none; }
.profile-btn:hover { border-color: var(--brand-600); color: var(--ink); box-shadow: 0 0 0 3px var(--brand-50); }
.profile-btn__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-600); color: #fff; }
.avatar--sm { width: 34px; height: 34px; font-size: var(--fs-sm); }
.profile-btn__chev { color: var(--muted); transition: transform var(--t-fast); }
.account-menu[open] .profile-btn__chev { transform: rotate(180deg); }
@media (max-width: 639px) {
	.profile-btn { padding: 4px; border-color: transparent; }
	.profile-btn--guest .profile-btn__label { display: none; }
}
.shop-content .wc-block-components-product-metadata { display: none; }

/* ---------- Footer newsletter ---------- */
.newsletter { display: grid; gap: var(--s-5); align-items: center; margin-bottom: var(--s-7); padding: var(--s-6) var(--s-5); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
@media (min-width: 900px) { .newsletter { grid-template-columns: 1fr 1.1fr; gap: var(--s-7); padding: var(--s-6) var(--s-7); } }
.newsletter__title { color: #fff; font-size: var(--fs-xl); margin-bottom: var(--s-2); }
.newsletter__copy p { margin: 0; color: #b7b2d6; }
.newsletter .upit-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; }
.newsletter .upit-form__grid { display: contents; }
.newsletter .upit-field--email { grid-column: 1; grid-row: 1; }
.newsletter .upit-field--email .upit-label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.newsletter .upit-field--consent { grid-column: 1 / -1; grid-row: 2; }
.newsletter .upit-input { background: #fff; color: var(--ink); min-height: 52px; }
.newsletter .upit-submit { grid-column: 2; grid-row: 1; width: auto; margin: 0; min-height: 52px; background: var(--accent); color: var(--ink-950); }
.newsletter .upit-submit:hover { background: #ffc56b; box-shadow: none; }
.newsletter .upit-check { color: #b7b2d6; font-size: var(--fs-xs); }
.newsletter .upit-check a { color: #fff; }
.newsletter .upit-error { color: #ffb4b4; }
.newsletter .upit-form__status { grid-column: 1 / -1; }
.newsletter .upit-alert--success { background: rgba(8, 121, 79, .25); color: #c9f2df; }
@media (max-width: 520px) { .newsletter .upit-form { grid-template-columns: 1fr; } .newsletter .upit-submit { grid-column: 1; grid-row: 3; width: 100%; } }
