/* ==========================================================================
   آکادمی — پارک علم و فناوری هرمزگان
   Scoped under .hac so the theme (Materialize) and the academy never collide.
   ========================================================================== */

.hac, .hac-hw, .hac-toasts {
	--ink: #10213a;
	--ink-2: #33445a;
	--muted: #5d6b7a;
	--faint: #8a98a8;
	--line: #dfe6ee;
	--line-2: #eef2f7;
	--paper: #f4f7fb;
	--card: #ffffff;
	--blue: #0865fe;
	--blue-d: #0650cc;
	--blue-50: #eaf2ff;
	--green: #1fa37a;
	--green-50: #e6f6f0;
	--gold: #b8913a;
	--gold-50: #f8f1e1;
	--red: #c93c3c;
	--red-50: #fdeeee;
	--amber: #a26a00;
	--amber-50: #fcf3e3;
	--r-s: 8px;
	--r-m: 12px;
	--r-l: 18px;
	--shadow: 0 1px 2px rgba(16, 33, 58, .06), 0 8px 24px -12px rgba(16, 33, 58, .18);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--font: Yekanbakh, Tahoma, sans-serif;
}

.hac {
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.85;
	color: var(--ink-2);
	white-space: normal;
	text-align: right;
	-webkit-font-smoothing: antialiased;
}
.hac *, .hac *::before, .hac *::after { box-sizing: border-box; }
.hac [hidden], .hac[hidden], .hac-hw [hidden] { display: none !important; }
.hac img { max-width: 100%; height: auto; }
.hac a { color: var(--blue); text-decoration: none; }
.hac a:hover { color: var(--blue-d); }
.hac h1, .hac h2, .hac h3, .hac h4 { font-family: var(--font); color: var(--ink); margin: 0; line-height: 1.45; font-weight: 700; letter-spacing: 0; }
.hac p { margin: 0; }
.hac ul, .hac ol { margin: 0; padding: 0; list-style: none; }
.hac ul li, .hac ol li { list-style: none; line-height: inherit; }
.hac table td, .hac table th { text-align: right; }
.hac dl, .hac dd { margin: 0; }
/* Materialize paints every <nav> as a red 56px app bar */
.hac nav { background: none; color: inherit; height: auto; line-height: inherit; width: auto; box-shadow: none; }
.hac del { color: var(--faint); text-decoration-thickness: 1px; }
.hac .hac-i { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.hac .hac-i.is-flip { transform: scaleX(-1); }
.hac-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hac :focus-visible, .hac-hw :focus-visible { outline: 3px solid rgba(8, 101, 254, .45); outline-offset: 2px; border-radius: 6px; }

/* Width comes from the theme's .container (same column as the header box and every other page) */
.hac .hac-shell { margin-inline: auto; padding-inline: 0; }

/* ---------- Buttons & links ---------- */
.hac .hac-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 0 20px; border-radius: var(--r-s); border: 1px solid transparent;
	font: 700 15px/1.2 var(--font); cursor: pointer; text-decoration: none; white-space: nowrap;
	transition: background-color .15s, border-color .15s, color .15s, transform .1s;
	box-shadow: none; text-transform: none; letter-spacing: 0;
}
.hac .hac-btn:active { transform: translateY(1px); }
.hac .hac-btn[disabled] { opacity: .65; cursor: progress; }
.hac .hac-btn-primary { background: var(--blue); color: #fff; }
.hac .hac-btn-primary:hover, .hac .hac-btn-primary:focus { background: var(--blue-d); color: #fff; }
.hac .hac-btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.hac .hac-btn-ghost:hover, .hac .hac-btn-ghost:focus { border-color: var(--blue); color: var(--blue); background: var(--card); }
.hac .hac-btn-block { display: flex; width: 100%; }
.hac .hac-btn-lg { min-height: 54px; font-size: 16px; }
.hac .hac-btn-sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.hac .hac-btn .hac-i { width: 18px; height: 18px; }
.hac .hac-link { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.hac .hac-link .hac-i { width: 16px; height: 16px; }
.hac .hac-link-danger { color: var(--red); font-size: 13px; }
.hac-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-inline-end-color: transparent; display: inline-block; animation: hac-spin .7s linear infinite; }
@keyframes hac-spin { to { transform: rotate(360deg); } }

/* ---------- Forms ---------- */
.hac .hac-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.hac .hac-field label, .hac .hac-coupon label { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.5; display: flex; align-items: center; gap: 6px; position: static; transform: none; }
.hac .hac-opt { font-weight: 400; color: var(--faint); }
.hac input[type=text], .hac input[type=tel], .hac input[type=email], .hac input[type=search], .hac input[type=number], .hac input:not([type]), .hac select, .hac textarea {
	width: 100%; height: 48px; margin: 0; padding: 0 14px;
	background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s);
	font: 400 15px/1.4 var(--font); color: var(--ink); box-shadow: none; box-sizing: border-box;
	transition: border-color .15s, box-shadow .15s;
	-webkit-appearance: none; appearance: none;
}
.hac textarea { height: auto; padding: 10px 14px; }
.hac select { display: block; padding-inline-end: 38px; cursor: pointer; }
.hac input:focus, .hac select:focus, .hac textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8, 101, 254, .15); outline: none; border-bottom: 1px solid var(--blue); }
.hac input.is-invalid, .hac input[aria-invalid=true] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(201, 60, 60, .12); }
.hac input::placeholder { color: #a8b3c0; }
.hac input[dir=ltr] { text-align: left; }
.hac input[dir=ltr]::placeholder { text-align: left; }
.hac .hac-field-error { color: var(--red); font-size: 13px; line-height: 1.6; min-height: 0; }
.hac .hac-field-error:empty { display: none; }
.hac .hac-hint { color: var(--muted); font-size: 13.5px; }
.hac .hac-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.hac .hac-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.hac input[type=checkbox] { position: static; opacity: 1; pointer-events: auto; width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--blue); -webkit-appearance: checkbox; appearance: auto; }
.hac [type=checkbox] + span { padding: 0; height: auto; line-height: inherit; font-size: inherit; }
.hac [type=checkbox] + span::before, .hac [type=checkbox] + span::after { display: none; }
.hac .hac-select { position: relative; display: block; }
.hac .hac-select .hac-i { position: absolute; left: 12px; top: 50%; translate: 0 -50%; pointer-events: none; color: var(--muted); width: 18px; height: 18px; }

/* ---------- Header widget (inside the theme header) ---------- */
/*
 * The buttons reuse the theme's own header-button classes (.user .child: 44px, radius 16, #e5ecf1 border,
 * blue when signed in). Here we only centre the icon, make <button> look like the theme's <a>, and lay the
 * icons out in one row with the search box, centred on the logo line.
 */
header nav .more-details-box { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
header nav .more-details-box > .left { float: none !important; margin: 0; display: flex; align-items: center; line-height: 0; }
/* Theme icon buttons (call / notifications) are inline boxes in tall line boxes; centre them exactly like ours */
header nav .more-details-box > .left > a { display: flex; }
header nav .more-details-box > .mobile-call .child, header nav .more-details-box > .mobile-notification .child { display: grid; place-items: center; line-height: 1; }
header nav .more-details-box > .mobile-call .child img, header nav .more-details-box > .mobile-notification .child img { margin: 0; }
header nav .more-details-box .phone { margin-left: 0; }
header nav .more-details-box .header-search-box { margin-top: 0; }
/* Header search (desktop + phone): all.css no longer gives text inputs Materialize's 3rem height, so the field
   collapsed to 26px while its icon stayed placed for a tall field and hung below the box. Fix the height and
   centre the icon and clear button vertically. */
header nav .header-search-box input[type=text], header nav .mobile-header-search-box input[type=text] { height: 44px; margin: 0; box-sizing: border-box; }
header nav .header-search-box .search-icon .img, header nav .mobile-header-search-box .search-icon .img { top: 50%; transform: translateY(-50%); display: flex; align-items: center; }
header nav .header-search-box .search-icon .img img, header nav .mobile-header-search-box .search-icon .img img { float: none; display: block; }
header nav .header-search-box .clear, header nav .mobile-header-search-box .clear { top: 50%; transform: translateY(-50%); line-height: 0; }
header nav .header-search-box form::after, header nav .mobile-header-search-box form::after { content: ''; display: block; clear: both; }
header nav .more-details-box > .hac-hw { order: 9; }

.hac-hw { display: flex; align-items: center; gap: 10px; position: relative; z-index: 30; font-family: var(--font); }
/* Self-contained copy of the theme's header button look, so it also works in the sticky menu row */
header nav .hac-hw .child {
	position: relative; display: inline-grid; place-items: center; margin: 0; padding: 0; box-sizing: border-box;
	width: 44px; height: 44px; line-height: 1; background: #fff; border: 1px solid #e5ecf1; border-radius: 16px;
	cursor: pointer; font: inherit; color: inherit; transition: all .2s;
}
header nav .hac-hw .child:hover { background: rgba(8, 101, 254, .05); border-color: #0865fe; }
header nav .hac-hw .child img { margin: 0; width: auto; height: 22px; max-width: none; }
header nav .hac-hw .child.loged-in { background: #0865fe; border-color: #0865fe; }
header nav .hac-hw .child.loged-in img { filter: brightness(10); }
header nav .hac-hw .child.loged-in:hover { background: rgba(8, 101, 254, .05); }
header nav .hac-hw .child.loged-in:hover img { filter: none; }

/* Sticky header: the theme keeps only the menu row, so a second widget sits at its far left */
/* No position on .menu-container: the theme's mega menu / notification panels are positioned against an
   ancestor outside the overflow:hidden <nav>; anchoring them inside it clips them away. */
header nav .hac-hw-sticky { display: none; }
header.sticky nav .hac-hw-sticky { display: block; position: absolute; left: 20px; top: 50%; transform: translateY(-50%); z-index: 5; }
header.sticky nav .hac-hw-sticky .child { width: 40px; height: 40px; border-radius: 14px; }
header.sticky nav .notification { margin-left: 100px; }
header.sticky nav .notification > h5 { white-space: nowrap; }
.hac-hw .hac-hw-count {
	position: absolute; top: -6px; left: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
	background: #0865fe; color: #fff; font-size: 12px; line-height: 16px; text-align: center; border: 2px solid #fff;
}
.hac-hw .hac-hw-cart.is-bump { animation: hac-bump .45s var(--ease); }
@keyframes hac-bump { 30% { transform: scale(1.12); } 60% { transform: scale(.96); } }
/* flex so the wrapper doesn't pick up the menu row's tall line-height (kept the profile button off-centre) */
.hac-hw .hac-hw-menu { position: relative; display: flex; align-items: center; line-height: 0; }
.hac-hw .hac-hw-drop {
	position: fixed; z-index: 100000; min-width: 220px; padding: 6px; background: #fff; /* top/left set by JS */
	border: 1px solid #e5ecf1; border-radius: 16px; box-shadow: 0px 0px 48px rgba(137, 153, 170, .2); display: flex; flex-direction: column;
}
.hac-hw .hac-hw-who { margin: 0; padding: 8px 12px 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; display: flex; flex-direction: column; line-height: 1.6; }
.hac-hw .hac-hw-who b { color: var(--ink); font-size: 14px; }
.hac-hw .hac-hw-who small { color: var(--muted); font-size: 12.5px; text-align: right; }
.hac-hw .hac-hw-drop a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-s); color: var(--ink); font-size: 14px; line-height: 1.4; text-decoration: none; }
.hac-hw .hac-hw-drop a:hover, .hac-hw .hac-hw-drop a:focus { background: var(--paper); color: var(--blue); }
.hac-hw .hac-hw-drop a.is-muted { color: var(--muted); border-top: 1px solid var(--line-2); margin-top: 4px; padding-top: 12px; border-radius: 0 0 var(--r-s) var(--r-s); }
.hac-hw .hac-hw-drop .hac-i { width: 18px; height: 18px; color: var(--muted); }
/* Phones: the theme's call/notification icons plus cart/account must share half the header in one row */
@media (max-width: 600px) {
	header nav .more-details-box { gap: 6px; }
	header nav .more-details-box > .left .child { width: 40px !important; height: 40px !important; margin: 0 !important; line-height: 1 !important; border-radius: 14px !important; }
	header nav .more-details-box > .left .child img { max-width: 22px; height: 22px; }
	/* The theme's phone CSS turns these into display:block; a <button> still centres its icon but the
	   sign-in <a> doesn't, so the profile icon sat higher than the cart. Centre every one the same way. */
	header nav .more-details-box .hac-hw .child { display: grid !important; place-items: center; padding: 0 !important; }
	header nav .more-details-box .hac-hw .child img { margin: 0 !important; display: block; }
	.hac-hw { gap: 6px; }
}
/* Floating mobile menu: the «جدید» badge on the academy item sat over half of the icon; lift it clear */
.responsive-bottom-menu .responsive-menu .child .img .badge { top: -10px; left: -21px; box-shadow: 0 0 0 2px #fff; }
/* Very small phones (≤360px): four 40px buttons would touch the logo */
@media (max-width: 360px) {
	header nav .more-details-box, .hac-hw { gap: 4px; }
	header nav .more-details-box > .left .child { width: 36px !important; height: 36px !important; border-radius: 12px !important; }
	header nav .more-details-box > .left .child img { max-width: 19px; height: 19px; }
}

/* Course sold on another site */
.hac .hac-buy-ext { display: flex; gap: 6px; align-items: flex-start; margin: 10px 0 0; font-size: 12.5px; line-height: 1.8; color: var(--muted); }
.hac .hac-buy-ext .hac-i { width: 16px; height: 16px; flex: none; margin-top: 3px; }
.hac .hac-buy-ext b { color: var(--ink); font-weight: 700; }
.hac [data-hac-external] .hac-i { width: 18px; height: 18px; }

/* ---------- Toasts ---------- */
.hac-toasts { position: fixed; z-index: 100001; bottom: calc(20px + var(--hac-lift, 0px)); left: 50%; translate: -50% 0; display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none; font-family: var(--font); }
.hac-toast {
	pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 12px 16px; border-radius: var(--r-m); background: var(--ink); color: #fff; font-size: 14px; line-height: 1.6;
	box-shadow: 0 12px 32px -8px rgba(16, 33, 58, .45); animation: hac-in .25s var(--ease);
}
.hac-toast.is-error { background: #7d1f1f; }
.hac-toast button { background: rgba(255, 255, 255, .14); border: 0; color: #fff; font: 700 13px var(--font); padding: 6px 12px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.hac-toast.is-out { opacity: 0; translate: 0 8px; transition: .25s; }
@keyframes hac-in { from { opacity: 0; translate: 0 10px; } }

/* ---------- Modal & drawer ---------- */
html.hac-lock { overflow: hidden; }
.hac-modal, .hac-drawer { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 16px; }
.hac-modal-backdrop { position: absolute; inset: 0; background: rgba(16, 33, 58, .55); opacity: 0; transition: opacity .2s; }
.hac-modal-panel {
	position: relative; width: 100%; max-width: 440px; max-height: calc(100dvh - 32px); overflow: auto;
	background: var(--card); border-radius: var(--r-l); padding: 32px 28px 28px; box-shadow: 0 30px 60px -20px rgba(16, 33, 58, .5);
	opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .2s, transform .25s var(--ease);
}
.is-open .hac-modal-backdrop { opacity: 1; }
.is-open .hac-modal-panel { opacity: 1; transform: none; }
.hac .hac-modal-x { position: absolute; top: 12px; left: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.hac .hac-modal-x:hover { background: var(--paper); color: var(--ink); }
.hac-drawer { place-items: stretch; justify-content: start; padding: 0; }
.hac-drawer-panel {
	position: relative; width: min(420px, 100vw); height: 100dvh; background: var(--card); display: flex; flex-direction: column;
	transform: translateX(100%); transition: transform .28s var(--ease); box-shadow: -20px 0 50px -20px rgba(16, 33, 58, .4);
}
.hac-drawer.is-open .hac-drawer-panel { transform: none; }
.hac-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line-2); }
.hac-drawer-head h2 { font-size: 18px; }
.hac-drawer-head .hac-modal-x { position: static; }
.hac-drawer-body { flex: 1; overflow: auto; padding: 8px 20px; }
.hac-drawer-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 8px; background: var(--paper); }
.hac-drawer-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; color: var(--muted); }
.hac-drawer-total b { color: var(--ink); font-size: 18px; }
.hac-skeleton-line { height: 72px; border-radius: var(--r-m); margin: 12px 0; background: linear-gradient(90deg, var(--paper), #e9eef5, var(--paper)); background-size: 200% 100%; animation: hac-sk 1.2s infinite; }
@keyframes hac-sk { to { background-position: -200% 0; } }

/* ---------- Auth ---------- */
.hac-auth { position: relative; }
.hac-auth-step:focus { outline: none; }
.hac .hac-auth-title { font-size: 22px; font-weight: 900; margin-bottom: 6px; }
.hac .hac-auth-lead { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.hac .hac-auth-lead b { color: var(--ink); }
.hac .hac-auth-fine { margin-top: 14px; font-size: 12.5px; color: var(--faint); text-align: center; line-height: 1.8; }
.hac .hac-auth-back { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--muted); font: 400 13.5px var(--font); cursor: pointer; padding: 0; margin-bottom: 14px; }
.hac .hac-auth-back .hac-i { width: 16px; height: 16px; transform: scaleX(-1); }
.hac .hac-auth-back:hover { color: var(--blue); }
.hac .hac-input-wrap { position: relative; }
.hac .hac-input-wrap .hac-i { position: absolute; right: 14px; top: 50%; translate: 0 -50%; color: var(--faint); }
.hac .hac-input-mobile input { padding-right: 44px; font-size: 18px; letter-spacing: .06em; height: 54px; }

.hac .hac-otp { display: flex; gap: 12px; justify-content: center; direction: ltr; border: 0; padding: 0; margin: 4px 0 10px; }
.hac .hac-otp input {
	width: 62px; height: 68px; padding: 0; text-align: center; font: 700 28px/1 var(--font); color: var(--ink);
	border: 1.5px solid var(--line); border-radius: var(--r-m); background: var(--paper); caret-color: var(--blue);
}
.hac .hac-otp input:focus { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(8, 101, 254, .14); border-bottom: 1.5px solid var(--blue); }
.hac .hac-otp input.is-invalid { border-color: var(--red); background: var(--red-50); }
.hac .hac-otp-error { text-align: center; margin-bottom: 10px; }
.hac-auth-step.is-shake .hac-otp { animation: hac-shake .35s; }
@keyframes hac-shake { 25% { translate: -6px 0; } 50% { translate: 6px 0; } 75% { translate: -3px 0; } }
.hac .hac-resend { margin-top: 14px; text-align: center; font-size: 13.5px; color: var(--muted); min-height: 24px; }
.hac .hac-resend b { color: var(--ink); font-variant-numeric: tabular-nums; }
.hac .hac-more { margin: 0 0 18px; border: 1px solid var(--line); border-radius: var(--r-m); padding: 0 14px; }
.hac .hac-more summary { cursor: pointer; padding: 12px 0; font-weight: 700; color: var(--ink); font-size: 14px; list-style: none; }
.hac .hac-more summary::-webkit-details-marker { display: none; }
.hac .hac-more summary::after { content: '+'; float: left; color: var(--muted); font-weight: 400; }
.hac .hac-more[open] summary::after { content: '−'; }
.hac .hac-more summary span { font-weight: 400; color: var(--faint); }
.hac .hac-more[open] { padding-bottom: 14px; }
.hac-auth-done { text-align: center; padding: 18px 0 6px; }
.hac .hac-done-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--green-50); color: var(--green); display: inline-grid; place-items: center; margin-bottom: 14px; animation: hac-pop .4s var(--ease); }
.hac .hac-done-mark .hac-i { width: 32px; height: 32px; }
@keyframes hac-pop { from { transform: scale(.6); opacity: 0; } }

/* ==========================================================================
   Archive
   ========================================================================== */
.hac-archive { padding-bottom: 72px; }
.hac-hero { padding: 20px 0 0; }
.hac .hac-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13.5px; color: var(--muted); margin-bottom: 26px; }
.hac .hac-crumbs a { color: var(--muted); }
.hac .hac-crumbs a:hover { color: var(--blue); }
.hac .hac-crumbs .hac-i { width: 14px; height: 14px; color: var(--faint); }
.hac .hac-crumbs [aria-current] { color: var(--ink); }
.hac-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.hac-hero-copy { max-width: 620px; }
.hac .hac-hero-poster { margin: 0; }
.hac .hac-hero-poster a { display: block; border-radius: 20px; overflow: hidden; border: 1px solid #e5ecf1; background: #fff; box-shadow: 0px 0px 48px rgba(137, 153, 170, .2); cursor: zoom-in; }
.hac .hac-hero-poster img { display: block; width: 100%; height: auto; transition: transform .5s var(--ease); }
.hac .hac-hero-poster a:hover img { transform: scale(1.015); }
@media (max-width: 960px) { .hac-hero-grid { grid-template-columns: 1fr; gap: 24px; } .hac-hero-copy { max-width: none; } }
.hac .hac-hero-kicker { color: var(--gold); font-weight: 700; font-size: 14px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.hac .hac-hero-kicker::before { content: ''; width: 28px; height: 2px; background: var(--gold); }
.hac .hac-hero-title { font-size: clamp(32px, 5.2vw, 56px); font-weight: 900; line-height: 1.25; color: var(--ink); margin-bottom: 16px; }
.hac .hac-hero-title.is-compact { font-size: clamp(26px, 3.6vw, 38px); }
.hac .hac-hero-lead { font-size: 17px; color: var(--ink-2); max-width: 64ch; line-height: 2; }
.hac .hac-hero-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 20px; color: var(--muted); font-size: 14.5px; }
.hac .hac-hero-facts b { color: var(--ink); font-size: 20px; font-weight: 900; margin-inline-end: 4px; }

/* Timeline — the program in order, 1402 → 1405 */
/* Scrolls inside the page column; the far (left) edge fades to hint there is more */
.hac-timeline {
	margin-top: 32px; position: relative; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
	scrollbar-width: thin; cursor: grab; background: #fff; border: 1px solid #e5ecf1; border-radius: 20px;
	-webkit-mask-image: linear-gradient(to left, transparent 0, #000 56px); mask-image: linear-gradient(to left, transparent 0, #000 56px);
}
.hac .hac-tl-track { display: flex; width: max-content; gap: 18px; padding: 18px 20px 22px 56px; }
/* Year groups: a band spanning the group's portraits, labelled with the year (as on the program poster) */
.hac .hac-tl-group { display: flex; flex-direction: column; gap: 14px; }
.hac .hac-tl-band { --band: var(--blue); position: relative; display: block; height: 24px; text-align: center; }
.hac .hac-tl-group:nth-child(even) .hac-tl-band { --band: var(--green); }
.hac .hac-tl-band::before { content: ''; position: absolute; inset: 50% 8px auto; height: 3px; border-radius: 3px; background: var(--band); transform: translateY(-50%); }
.hac .hac-tl-band span { position: relative; display: inline-block; padding: 0 12px; background: #fff; color: var(--band); font-size: 14px; font-weight: 900; line-height: 24px; }
.hac .hac-tl-items { display: flex; }
.hac-timeline.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.hac-timeline.is-dragging a { pointer-events: none; }
.hac .hac-tl-item { position: relative; flex: 0 0 auto; width: 128px; scroll-snap-align: start; }
/* rail */
.hac .hac-tl-item::before { content: ''; position: absolute; top: 56px; right: 0; left: 0; height: 2px; background: var(--line); }
.hac .hac-tl-item:first-child::before { right: 50%; }
.hac .hac-tl-item:last-child::before { left: 50%; }
.hac .hac-tl-node { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 6px; color: var(--ink); }
.hac .hac-tl-n { font-size: 12px; font-weight: 700; color: var(--faint); font-variant-numeric: tabular-nums; margin-bottom: 4px; line-height: 1; }
.hac .hac-tl-face {
	position: relative; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: var(--line);
	border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); transition: box-shadow .2s, transform .2s var(--ease);
}
.hac .hac-tl-face img { width: 100%; height: 100%; object-fit: cover; }
.hac .hac-tl-node:hover .hac-tl-face, .hac .hac-tl-node:focus-visible .hac-tl-face { box-shadow: 0 0 0 2px var(--blue); transform: translateY(-3px); }
.hac .hac-tl-name { margin-top: 10px; font-size: 13.5px; font-weight: 700; line-height: 1.45; }
.hac .hac-tl-brand { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.hac .hac-tl-flag { white-space: nowrap; margin-top: 4px; font-size: 11.5px; padding: 0 8px; border-radius: 999px; line-height: 20px; background: var(--amber-50); color: var(--amber); }
.hac .hac-tl-item.is-unavailable .hac-tl-flag { background: var(--line-2); color: var(--muted); }

/* Catalog */
.hac-catalog { padding-top: 44px; }
.hac-catalog-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.hac-catalog-head h2 { font-size: 24px; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.hac .hac-count { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--blue-50); color: var(--blue); font-size: 13px; font-weight: 700; }
.hac-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hac .hac-search { position: relative; display: block; width: 280px; }
.hac .hac-search .hac-i { position: absolute; right: 12px; top: 50%; translate: 0 -50%; color: var(--faint); }
.hac .hac-search input { padding-right: 40px; height: 44px; border-radius: 999px; }
.hac .hac-filters .hac-select select { height: 44px; border-radius: 999px; min-width: 170px; }
.hac .hac-chips { display: flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.hac .hac-chips button { border: 0; background: transparent; color: var(--muted); font: 700 13.5px/1 var(--font); padding: 0 14px; height: 34px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.hac .hac-chips button:hover { color: var(--ink); }
.hac .hac-chips button[aria-checked=true] { background: var(--ink); color: #fff; }

.hac .hac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.hac .hac-card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.hac .hac-card:hover { border-color: #c9d5e3; box-shadow: var(--shadow); }
.hac .hac-card-cover { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--line-2); }
.hac .hac-card-cover > img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s var(--ease); }
.hac .hac-card:hover .hac-card-cover > img { transform: scale(1.025); }
.hac .hac-cover-fallback {
	position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 20px; text-align: center;
	background: var(--ink); color: #fff;
	background-image: radial-gradient(circle at 50% 38%, rgba(8, 101, 254, .35), transparent 55%);
}
.hac .hac-cover-fallback img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255, 255, 255, .85); margin-bottom: 8px; }
.hac .hac-cover-fallback b { font-size: 19px; font-weight: 900; color: #fff; }
.hac .hac-cover-fallback small { font-size: 13.5px; color: #b9c6d8; }
.hac .hac-chip { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 0 10px; height: 26px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(16, 33, 58, .15); }
.hac .hac-chip .hac-i { width: 14px; height: 14px; }
.hac .hac-chip.is-open { background: var(--green); color: #fff; }
.hac .hac-chip.is-soon { background: var(--gold); color: #fff; }
.hac .hac-chip.is-unavailable { background: #fff; color: var(--muted); }
.hac .hac-chip.is-owned { background: var(--blue); color: #fff; right: auto; left: 12px; }
/* What kind of course it is: held (video) vs upcoming in-person */
.hac .hac-chip.is-held { background: var(--ink); color: #fff; }
.hac .hac-chero-tags .is-held { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); color: #fff; }
.hac .hac-card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.hac .hac-card-who { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink); font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.hac .hac-card-who img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.hac .hac-card-who small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.hac .hac-card-title { font-size: 16.5px; font-weight: 900; line-height: 1.6; margin-bottom: 10px; }
.hac .hac-card-title a { color: var(--ink); }
.hac .hac-card-title a:hover { color: var(--blue); }
.hac .hac-card-title a::after { content: ''; position: absolute; inset: 0; }
.hac .hac-card { position: relative; }
.hac .hac-card-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.hac .hac-card-meta li { display: inline-flex; align-items: center; gap: 4px; }
.hac .hac-card-meta .hac-i { width: 15px; height: 15px; color: var(--faint); }
.hac .hac-card-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.hac .hac-price { font-size: 17px; font-weight: 900; color: var(--ink); display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.hac .hac-price del { font-size: 13px; font-weight: 400; }
.hac .hac-cur { font-size: 12px; font-weight: 400; color: var(--muted); }
.hac .hac-card-count { font-size: 12.5px; color: var(--muted); }
.hac .hac-card-note { font-size: 13.5px; color: var(--muted); }
.hac .hac-card-go { font-weight: 700; font-size: 14px; position: relative; z-index: 1; }
.hac .hac-card.is-open { border-color: rgba(31, 163, 122, .45); }

.hac .hac-empty-state { text-align: center; padding: 48px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hac .hac-empty-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; color: var(--faint); }
.hac .hac-empty-icon .hac-i { width: 28px; height: 28px; }

/* ==========================================================================
   Course page
   ========================================================================== */
.hac-single { padding-bottom: 64px; }
.hac-chero { color: #c9d4e3; padding-top: 20px; }
/* A rounded panel inside the page column, echoing the theme's header box */
.hac .hac-chero-grid {
	display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; position: relative; overflow: hidden;
	background: var(--ink); border-radius: 20px; padding: 28px 32px 32px;
}
.hac .hac-chero-grid::after { content: ''; position: absolute; inset: auto -10% -60% auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(8, 101, 254, .28), transparent 65%); pointer-events: none; }
.hac .hac-chero-grid > * { position: relative; z-index: 1; }
.hac .hac-crumbs.is-light, .hac .hac-crumbs.is-light a { color: #9fb0c6; }
.hac .hac-crumbs.is-light [aria-current] { color: #fff; }
.hac .hac-crumbs.is-light a:hover { color: #fff; }
.hac .hac-chero-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.hac .hac-chero-tags span { font-size: 12.5px; padding: 0 10px; line-height: 26px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #dbe4f0; border: 1px solid rgba(255, 255, 255, .12); }
.hac .hac-chero-tags .is-free, .hac .hac-chero-tags .is-open { background: var(--green); border-color: var(--green); color: #fff; }
.hac .hac-chero-tags .is-soon { background: var(--gold); border-color: var(--gold); color: #fff; }
.hac .hac-chero-title { color: #fff; font-size: clamp(26px, 3.6vw, 40px); font-weight: 900; line-height: 1.4; margin-bottom: 10px; }
.hac .hac-chero-sub { font-size: 17px; color: #c9d4e3; max-width: 60ch; margin-bottom: 22px; }
.hac .hac-chero-who { display: inline-flex; align-items: center; gap: 12px; color: #fff; margin-bottom: 24px; }
.hac .hac-chero-who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, .7); }
.hac .hac-chero-who b { display: block; font-size: 16px; line-height: 1.5; }
.hac .hac-chero-who small { display: block; color: #9fb0c6; font-size: 13px; }
.hac .hac-chero-who:hover b { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.hac .hac-chero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); gap: 14px 36px; justify-content: start; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 20px; }
.hac .hac-chero-facts .is-wide { grid-column: 1 / -1; }
.hac .hac-chero-facts dt { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #8fa1b8; }
.hac .hac-chero-facts dt .hac-i { width: 15px; height: 15px; }
.hac .hac-chero-facts dd { color: #fff; font-size: 14.5px; font-weight: 700; line-height: 1.7; }
.hac .hac-chero-poster { margin: 0; border-radius: var(--r-m); overflow: hidden; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6); aspect-ratio: 4 / 5; position: relative; background: #1b2f4d; }
.hac .hac-chero-poster img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.hac .hac-chero-poster a { display: block; height: 100%; cursor: zoom-in; }
.hac .hac-cover-fallback.is-large img { width: 140px; height: 140px; }

.hac .hac-clayout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; padding-top: 28px; }
.hac-cside { position: relative; }
.hac-cside-sticky { position: sticky; top: calc(var(--hac-top, 0px) + 16px); transition: top .3s; }
.hac .hac-help { margin-top: 12px; display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); justify-content: center; }
.hac .hac-help .hac-i { width: 16px; height: 16px; }

.hac .hac-notice { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-m); background: var(--amber-50); color: #6b4800; margin-bottom: 24px; font-size: 14.5px; }
.hac .hac-notice.is-unavailable { background: var(--line-2); color: var(--ink-2); }

/* Player */
.hac-player { background: #0b1626; border-radius: var(--r-m); overflow: hidden; margin-bottom: 28px; scroll-margin-top: 16px; }
.hac-player-stage { position: relative; aspect-ratio: 16 / 9; background: #000; }
.hac-player video { width: 100%; height: 100%; display: block; background: #000; }
.hac .hac-player-start {
	position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
	border: 0; cursor: pointer; color: #fff; font: 400 15px/1.6 var(--font); padding: 20px; text-align: center;
	background: linear-gradient(180deg, rgba(11, 22, 38, .35), rgba(11, 22, 38, .8));
}
.hac .hac-player-start b { font-weight: 700; }
.hac .hac-play-ring { width: 76px; height: 76px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(8, 101, 254, .25); transition: transform .2s var(--ease); }
/* Playback icons keep their LTR direction in RTL layouts */
.hac .hac-play-ring .hac-i { width: 32px; height: 32px; color: #fff; margin-left: 4px; }
.hac .hac-player-start:hover .hac-play-ring { transform: scale(1.06); }
.hac-player.is-loading .hac-player-stage::after { content: ''; position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .8); border-inline-end-color: transparent; animation: hac-spin .8s linear infinite; }
.hac .hac-player-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: #fff; background: rgba(11, 22, 38, .92); font-size: 15px; }
.hac-player-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; color: #c9d4e3; }
.hac .hac-now { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 14.5px; }
.hac .hac-now span { flex: none; min-width: 28px; height: 28px; border-radius: 6px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; font-size: 13px; color: #fff; }
.hac .hac-now b { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hac-player-ctl { display: flex; align-items: center; gap: 6px; flex: none; }
.hac .hac-speed select { height: 36px; width: auto; min-width: 72px; padding: 0 10px; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .15); color: #fff; border-radius: 6px; font-size: 13.5px; }
.hac .hac-speed select option { color: var(--ink); }
.hac .hac-icon-btn { width: 36px; height: 36px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; cursor: pointer; }
.hac .hac-icon-btn:hover { background: rgba(255, 255, 255, .16); }

/* Section tabs */
.hac [tabindex="-1"]:focus { outline: none; }
/* --hac-top = height of the theme's fixed header (set by JS), so the tab bar never hides under it */
.hac .hac-ctabs { position: sticky; top: var(--hac-top, 0px); transition: top .3s; z-index: 5; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; background: rgba(244, 247, 251, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.hac .hac-ctabs::-webkit-scrollbar { display: none; }
.hac .hac-ctabs a { flex: none; padding: 14px 14px 12px; color: var(--muted); font-weight: 700; font-size: 14.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.hac .hac-ctabs a:hover { color: var(--ink); }
.hac .hac-ctabs a.is-active { color: var(--blue); border-bottom-color: var(--blue); }

.hac .hac-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 26px 28px; margin-top: 20px; scroll-margin-top: 64px; }
.hac .hac-block > h2, .hac .hac-block-head h2 { font-size: 20px; font-weight: 900; margin-bottom: 14px; }
.hac .hac-block h3 { font-size: 16px; font-weight: 900; margin: 22px 0 10px; }
.hac .hac-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hac .hac-block-head p { color: var(--muted); font-size: 13.5px; }
.hac .hac-prose { font-size: 15.5px; line-height: 2.05; color: var(--ink-2); max-width: 72ch; }
.hac .hac-prose p { margin-bottom: 14px; }
.hac .hac-prose p:last-child { margin-bottom: 0; }
.hac .hac-ticks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 24px; }
.hac .hac-ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.hac .hac-ticks .hac-i { width: 20px; height: 20px; color: var(--green); margin-top: 3px; }
.hac .hac-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.hac .hac-pills li { padding: 4px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 13.5px; }

/* Curriculum */
.hac .hac-curriculum { display: flex; flex-direction: column; gap: 10px; }
/* Long curricula scroll inside their own box so the page stays short */
.hac-single .hac-curriculum { max-height: min(70vh, 600px); overflow-y: auto; overscroll-behavior: contain; padding: 2px 2px 2px 8px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; scroll-padding-block: 12px; }
.hac-single .hac-curriculum::-webkit-scrollbar { width: 8px; }
.hac-single .hac-curriculum::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.hac-single .hac-curriculum::-webkit-scrollbar-thumb:hover { background: var(--faint); }
.hac .hac-sec { border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.hac .hac-sec summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; background: var(--paper); list-style: none; }
.hac .hac-sec summary::-webkit-details-marker { display: none; }
.hac .hac-sec-title { font-weight: 900; color: var(--ink); flex: 1; }
.hac .hac-sec-meta { font-size: 13px; color: var(--muted); }
.hac .hac-sec-caret { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.hac details[open] > summary .hac-sec-caret { transform: rotate(180deg); }
.hac .hac-lessons { counter-reset: none; }
.hac .hac-lesson { border-top: 1px solid var(--line-2); }
.hac .hac-lesson-btn { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: transparent; border: 0; text-align: right; font: 400 14.5px/1.6 var(--font); color: var(--ink-2); cursor: pointer; }
.hac .hac-lesson.is-playable .hac-lesson-btn:hover { background: var(--blue-50); }
.hac .hac-lesson.is-locked .hac-lesson-btn { cursor: default; color: var(--muted); }
.hac .hac-lesson-n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hac .hac-lesson-n .hac-i { width: 16px; height: 16px; }
.hac .hac-lesson.is-done .hac-lesson-n { background: var(--green-50); color: var(--green); }
.hac .hac-lesson.is-current .hac-lesson-btn { background: var(--blue-50); color: var(--ink); font-weight: 700; }
.hac .hac-lesson.is-current .hac-lesson-n { background: var(--blue); color: #fff; }
.hac .hac-lesson-title { flex: 1; min-width: 0; }
.hac .hac-tag-free { font-size: 12px; padding: 0 8px; border-radius: 999px; background: var(--green-50); color: var(--green); line-height: 22px; font-weight: 700; }
.hac .hac-lesson-time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hac .hac-lesson-state { color: var(--faint); display: grid; }
.hac .hac-lesson-state .hac-i { width: 18px; height: 18px; }
.hac .hac-lesson.is-playable .hac-lesson-state { color: var(--blue); }

/* Files */
.hac .hac-files { display: flex; flex-direction: column; gap: 10px; }
.hac .hac-file { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-m); }
.hac .hac-file-ext { flex: none; min-width: 64px; height: 40px; padding: 0 8px; border-radius: var(--r-s); display: grid; place-items: center; font-size: 11.5px; font-weight: 900; background: var(--blue-50); color: var(--blue); direction: ltr; }
.hac .hac-file-ext[data-ext=pdf] { background: var(--red-50); color: var(--red); }
.hac .hac-file-ext[data-ext^=ppt] { background: #fdf0e7; color: #c4501a; }
.hac .hac-file-ext[data-ext^=xls] { background: var(--green-50); color: var(--green); }
.hac .hac-file-body { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.6; }
.hac .hac-file-body b { color: var(--ink); font-size: 14.5px; }
.hac .hac-file-body small { color: var(--muted); font-size: 12.5px; text-align: right; }
.hac .hac-file-lock { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.hac .hac-file-lock .hac-i { width: 16px; height: 16px; }

/* Gallery */
.hac .hac-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.hac .hac-gallery a { display: block; aspect-ratio: 3 / 2; border-radius: var(--r-s); overflow: hidden; background: var(--line-2); cursor: zoom-in; }
.hac .hac-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.hac .hac-gallery a:hover img { transform: scale(1.04); }

/* Instructor */
.hac .hac-teacher { display: flex; gap: 20px; align-items: flex-start; }
.hac .hac-teacher > img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none; }
.hac .hac-teacher h3 { margin: 4px 0 0; font-size: 18px; }
.hac .hac-teacher-role { color: var(--gold); font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.hac .hac-teacher-more { margin-top: 10px; font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }

/* FAQ */
.hac .hac-faq details { border-bottom: 1px solid var(--line-2); }
.hac .hac-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; }
.hac .hac-faq summary::-webkit-details-marker { display: none; }
.hac .hac-faq details p { padding-bottom: 14px; color: var(--ink-2); font-size: 14.5px; }

/* Buy box */
.hac .hac-buy { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 22px; box-shadow: var(--shadow); }
.hac .hac-buy-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.hac .hac-buy-price b { font-size: 26px; font-weight: 900; color: var(--ink); }
.hac .hac-buy-price .hac-cur { font-size: 14px; }
.hac .hac-off { background: var(--red); color: #fff; font-size: 12.5px; font-weight: 700; padding: 0 8px; border-radius: 6px; line-height: 22px; }
.hac .hac-buy-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.hac .hac-buy .hac-btn + .hac-btn { margin-top: 8px; }
.hac .hac-buy > .hac-btn:first-of-type { margin-top: 10px; }
.hac .hac-buy-seats { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--green); margin: 4px 0 8px; }
.hac .hac-buy-seats.is-low { color: var(--red); }
.hac .hac-buy-seats .hac-i { width: 16px; height: 16px; }
.hac .hac-buy-owned { display: flex; align-items: center; gap: 8px; color: var(--green); font-weight: 700; margin-bottom: 14px; }
.hac .hac-buy-state { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 17px; color: var(--amber); margin-bottom: 6px; }
.hac .hac-buy-state.is-unavailable { color: var(--muted); }
.hac .hac-buy-includes { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 8px; }
.hac .hac-buy-includes:not(:has(li)) { display: none; }
.hac .hac-buy-includes li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.hac .hac-buy-includes .hac-i { width: 18px; height: 18px; color: var(--faint); }
.hac .hac-ticket { font-family: ui-monospace, Consolas, monospace; letter-spacing: .08em; color: var(--ink); background: var(--paper); padding: 1px 8px; border-radius: 4px; }
.hac .hac-progress { display: block; height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; margin: 6px 0; }
.hac .hac-progress span { display: block; height: 100%; background: var(--green); border-radius: 99px; transition: width .4s var(--ease); }

/* Mobile purchase bar */
.hac .hac-mbar { display: none; }

/* Related */
.hac-related { margin-top: 56px; }
.hac-related > h2 { font-size: 22px; font-weight: 900; margin-bottom: 20px; }

/* Lightbox */
.hac-lightbox { position: fixed; inset: 0; z-index: 100002; background: rgba(6, 12, 22, .94); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.hac-lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 0; height: 100%; justify-content: center; }
.hac-lightbox img { max-width: 100%; max-height: calc(100dvh - 90px); border-radius: 6px; object-fit: contain; }
.hac-lightbox figcaption { color: #9fb0c6; font-size: 13px; }
.hac .hac-lb-x, .hac .hac-lb-nav { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; cursor: pointer; justify-self: center; }
.hac .hac-lb-x { position: absolute; top: 16px; left: 16px; }
.hac .hac-lb-x:hover, .hac .hac-lb-nav:hover { background: rgba(255, 255, 255, .2); }
.hac .hac-lb-nav.is-prev { grid-column: 1; grid-row: 1; }
.hac-lightbox figure { grid-column: 2; grid-row: 1; }
.hac .hac-lb-nav.is-next { grid-column: 3; grid-row: 1; }

/* ==========================================================================
   App screens (login, cart, checkout, receipt, account)
   ========================================================================== */
.hac-app { padding: 24px 0 72px; min-height: 60vh; }
.hac .hac-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 24px; margin-bottom: 20px; }
.hac .hac-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.hac .hac-panel-head .hac-panel-title { margin-bottom: 0; }
.hac .hac-panel-title { font-size: 19px; font-weight: 900; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }

/* Steps */
.hac .hac-steps { display: flex; justify-content: center; gap: 0; margin: 0 auto 28px; max-width: 560px; }
.hac .hac-steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; color: var(--faint); font-size: 13px; text-align: center; }
/* connector runs from this step back to the previous one, which sits to its right in RTL */
.hac .hac-steps li::before { content: ''; position: absolute; top: 15px; left: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.hac .hac-steps li:first-child::before { display: none; }
.hac .hac-steps li.is-done::before, .hac .hac-steps li.is-current::before { background: var(--blue); }
.hac .hac-step-dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); font-weight: 700; color: var(--faint); }
.hac .hac-step-dot .hac-i { width: 16px; height: 16px; }
.hac .hac-steps li.is-done .hac-step-dot { background: var(--blue); border-color: var(--blue); color: #fff; }
.hac .hac-steps li.is-current .hac-step-dot { border-color: var(--blue); color: var(--blue); }
.hac .hac-steps li.is-current, .hac .hac-steps li.is-done { color: var(--ink); font-weight: 700; }

.hac .hac-checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.hac .hac-sum-panel { position: sticky; top: calc(var(--hac-top, 0px) + 16px); transition: top .3s; }

/* Cart lines */
.hac .hac-lines { display: flex; flex-direction: column; }
.hac .hac-line { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-2); transition: opacity .2s; }
.hac .hac-line:last-child { border-bottom: 0; }
.hac .hac-line.is-leaving { opacity: .35; pointer-events: none; }
.hac .hac-line-thumb { flex: none; width: 64px; aspect-ratio: 4 / 5; border-radius: var(--r-s); overflow: hidden; background: var(--line-2); }
.hac .hac-line-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hac .hac-line-body { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.6; }
.hac .hac-line-title { color: var(--ink); font-weight: 700; font-size: 14.5px; }
.hac .hac-line-meta { color: var(--muted); font-size: 13px; }
.hac .hac-line-price { margin-top: 2px; font-weight: 900; color: var(--ink); display: flex; gap: 6px; align-items: baseline; font-size: 14.5px; }
.hac .hac-line-price del { font-weight: 400; font-size: 12.5px; }
.hac .hac-line-remove { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--faint); cursor: pointer; display: grid; place-items: center; }
.hac .hac-line-remove:hover { background: var(--red-50); color: var(--red); }
.hac .hac-line-remove .hac-i { width: 18px; height: 18px; }

/* Summary */
.hac .hac-summary { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.hac .hac-summary > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14.5px; }
.hac .hac-summary dt { color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hac .hac-summary dd { color: var(--ink); font-weight: 700; }
.hac .hac-summary .is-saving dd { color: var(--green); }
.hac .hac-summary-total { border-top: 1px dashed var(--line); padding-top: 12px; }
.hac .hac-summary-total dt { color: var(--ink); font-weight: 700; }
.hac .hac-summary-total dd { font-size: 20px; font-weight: 900; }
.hac .hac-coupon { padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.hac .hac-coupon label { margin-bottom: 8px; }
.hac .hac-coupon label .hac-i { width: 18px; height: 18px; color: var(--muted); }
.hac .hac-coupon-row { display: flex; gap: 8px; }
.hac .hac-coupon-row input { text-transform: uppercase; letter-spacing: .06em; }
.hac .hac-coupon-row .hac-btn { flex: none; min-height: 48px; }
.hac .hac-coupon .hac-field-error { margin-top: 6px; }
.hac .hac-secure { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--muted); margin-top: 14px; line-height: 1.8; }
.hac .hac-secure .hac-i { width: 18px; height: 18px; color: var(--green); margin-top: 2px; }
.hac .hac-terms { margin-bottom: 6px; font-size: 13px; }
.hac .hac-terms + .hac-field-error { margin-bottom: 8px; }
.hac .hac-inline-alert { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--amber); background: var(--amber-50); padding: 10px 12px; border-radius: var(--r-s); margin-top: 12px; line-height: 1.8; }
.hac .hac-inline-alert .hac-i { width: 18px; height: 18px; margin-top: 2px; }

.hac .hac-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 24px; }
.hac .hac-kv dt { font-size: 12.5px; color: var(--muted); }
.hac .hac-kv dd { color: var(--ink); font-weight: 700; word-break: break-word; }

.hac .hac-alert { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border-radius: var(--r-m); margin-bottom: 20px; }
.hac .hac-alert > .hac-i { width: 22px; height: 22px; margin-top: 2px; }
.hac .hac-alert > div { flex: 1; }
.hac .hac-alert b { display: block; color: inherit; }
.hac .hac-alert p { font-size: 14px; }
.hac .hac-alert.is-error { background: var(--red-50); color: #7d1f1f; }
.hac .hac-alert.is-warn { background: var(--amber-50); color: #6b4800; align-items: center; }

/* Login */
.hac-login-grid { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 56px; align-items: center; justify-content: center; max-width: 1040px; }
.hac .hac-login-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: 36px 32px; box-shadow: var(--shadow); }
.hac .hac-login-aside img { border-radius: var(--r-m); border: 1px solid var(--line); display: block; }
.hac .hac-login-aside p { margin-top: 16px; color: var(--muted); font-size: 15px; max-width: 46ch; }

/* Receipt */
.hac-receipt-wrap { max-width: 820px; }
.hac .hac-success { display: flex; align-items: center; gap: 18px; background: var(--card); border: 1px solid rgba(31, 163, 122, .4); border-radius: var(--r-m); padding: 22px 24px; margin-bottom: 20px; }
.hac .hac-success .hac-done-mark { margin: 0; flex: none; }
.hac .hac-success h1 { font-size: 21px; font-weight: 900; }
.hac .hac-success p { color: var(--muted); font-size: 14.5px; }
.hac .hac-receipt { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 32px; }
.hac .hac-rc-head { display: flex; align-items: center; gap: 18px; padding-bottom: 20px; border-bottom: 2px solid var(--ink); }
.hac .hac-rc-logo { height: 56px; width: auto; }
.hac .hac-rc-head > div { flex: 1; }
.hac .hac-rc-head h2 { font-size: 22px; font-weight: 900; }
.hac .hac-rc-head p { color: var(--muted); font-size: 14px; }
.hac .hac-rc-head p b { color: var(--ink); }
.hac .hac-rc-stamp { border: 2px solid currentColor; border-radius: var(--r-s); padding: 4px 14px; font-weight: 900; font-size: 15px; transform: rotate(-4deg); color: var(--muted); }
.hac .hac-rc-stamp.is-paid { color: var(--green); }
.hac .hac-rc-stamp.is-failed, .hac .hac-rc-stamp.is-cancelled { color: var(--red); }
.hac .hac-rc-parties { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line-2); }
.hac .hac-rc-parties h3 { font-size: 12.5px; color: var(--muted); font-weight: 400; margin-bottom: 4px; }
.hac .hac-rc-parties p { color: var(--ink); font-size: 14px; line-height: 1.9; }
.hac .hac-rc-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14.5px; }
.hac .hac-rc-table th, .hac .hac-rc-table td { padding: 12px 8px; border-bottom: 1px solid var(--line-2); display: table-cell; border-radius: 0; }
.hac .hac-rc-table thead th { font-size: 12.5px; color: var(--muted); font-weight: 400; border-bottom: 1px solid var(--line); }
.hac .hac-rc-table td.num, .hac .hac-rc-table th:last-child { text-align: left; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hac .hac-rc-table td:first-child { width: 36px; color: var(--muted); }
.hac .hac-rc-table tfoot th { text-align: right; font-weight: 400; color: var(--muted); }
.hac .hac-rc-table tfoot .is-total th, .hac .hac-rc-table tfoot .is-total td { color: var(--ink); font-weight: 900; font-size: 17px; border-bottom: 0; }
.hac .hac-rc-ticket { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.hac .hac-rc-pay { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; background: var(--paper); border-radius: var(--r-s); padding: 14px 16px; }
.hac .hac-rc-pay dt { font-size: 12px; color: var(--muted); }
.hac .hac-rc-pay dd { font-weight: 700; color: var(--ink); font-size: 14px; word-break: break-all; }
.hac .hac-rc-note { margin-top: 16px; font-size: 12.5px; color: var(--muted); }
.hac .hac-rc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }

.hac .hac-sandbox { max-width: 560px; margin: 0 auto; }
.hac .hac-sandbox .hac-inline-alert { margin: 0 0 18px; }
.hac .hac-sandbox-actions { display: flex; gap: 10px; margin-top: 24px; }
.hac .hac-sandbox-actions .hac-btn { flex: 1; }

/* Account */
.hac-account-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.hac .hac-acc-side { position: sticky; top: calc(var(--hac-top, 0px) + 16px); transition: top .3s; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px; }
.hac .hac-acc-user { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.hac .hac-acc-user b { display: block; color: var(--ink); line-height: 1.5; }
.hac .hac-acc-user small { color: var(--muted); font-size: 13px; }
.hac .hac-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); font-weight: 900; overflow: hidden; }
.hac .hac-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hac .hac-avatar.is-lg { width: 52px; height: 52px; font-size: 17px; }
.hac .hac-avatar.is-xl { width: 88px; height: 88px; font-size: 26px; }
.hac .hac-avatar.is-busy { opacity: .5; }
.hac .hac-acc-nav { display: flex; flex-direction: column; gap: 2px; }
.hac .hac-acc-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-s); color: var(--ink-2); font-size: 14.5px; }
.hac .hac-acc-nav a:hover { background: var(--paper); color: var(--ink); }
.hac .hac-acc-nav a.is-active { background: var(--blue-50); color: var(--blue); font-weight: 700; }
.hac .hac-acc-nav a.is-muted { color: var(--muted); margin-top: 6px; }
.hac .hac-acc-nav .hac-i { color: currentColor; opacity: .8; }
.hac .hac-acc-title { font-size: 26px; font-weight: 900; margin-bottom: 10px; }
.hac .hac-acc-facts { display: flex; flex-wrap: wrap; gap: 6px 24px; color: var(--muted); margin-bottom: 24px; font-size: 14.5px; }
.hac .hac-acc-facts b { color: var(--ink); font-size: 18px; font-weight: 900; margin-inline-end: 4px; }
.hac .hac-acc-section { margin-top: 28px; }
.hac .hac-acc-section h2 { font-size: 18px; font-weight: 900; margin-bottom: 12px; }
.hac .hac-continue { display: flex; align-items: center; gap: 18px; background: var(--ink); color: #fff; border-radius: var(--r-m); padding: 16px; }
.hac .hac-continue:hover { color: #fff; background: #172c4b; }
.hac .hac-continue > img { width: 72px; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: var(--r-s); flex: none; }
.hac .hac-continue-body { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.6; }
.hac .hac-continue-body small { color: #9fb0c6; }
.hac .hac-continue-body b { font-size: 16.5px; }
.hac .hac-continue-body > span:not(.hac-progress) { color: #c9d4e3; font-size: 13.5px; }
.hac .hac-continue .hac-progress { background: rgba(255, 255, 255, .15); max-width: 320px; }
.hac .hac-continue .hac-play-ring { width: 52px; height: 52px; flex: none; box-shadow: 0 0 0 6px rgba(8, 101, 254, .25); }
.hac .hac-continue .hac-play-ring .hac-i { width: 22px; height: 22px; }
.hac .hac-mine { display: flex; flex-direction: column; gap: 10px; }
.hac .hac-mine-item { display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 12px 16px 12px 12px; }
.hac .hac-mine-thumb { flex: none; width: 64px; aspect-ratio: 4 / 5; border-radius: var(--r-s); overflow: hidden; background: var(--line-2); }
.hac .hac-mine-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hac .hac-mine-body { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.6; }
.hac .hac-mine-title { color: var(--ink); font-weight: 900; }
.hac .hac-mine-meta { color: var(--muted); font-size: 13px; }
.hac .hac-mine .hac-progress { max-width: 280px; height: 6px; margin: 6px 0 2px; }
.hac .hac-orders { display: flex; flex-direction: column; gap: 10px; }
.hac .hac-order { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px 18px; }
.hac .hac-order-head, .hac .hac-order-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hac .hac-order-head { justify-content: space-between; }
.hac .hac-order-head b { color: var(--ink); }
.hac .hac-order-items { color: var(--ink-2); font-size: 14px; margin: 6px 0 10px; }
.hac .hac-order-foot { color: var(--muted); font-size: 13.5px; }
.hac .hac-order-foot b { color: var(--ink); margin-inline-start: auto; }
.hac .hac-status { font-size: 12.5px; font-weight: 700; padding: 0 10px; line-height: 24px; border-radius: 999px; background: var(--line-2); color: var(--muted); }
.hac .hac-status.is-paid { background: var(--green-50); color: var(--green); }
.hac .hac-status.is-pending { background: var(--amber-50); color: var(--amber); }
.hac .hac-status.is-failed, .hac .hac-status.is-cancelled { background: var(--red-50); color: var(--red); }
.hac .hac-avatar-edit { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line-2); }
.hac .hac-avatar-edit label { cursor: pointer; }
.hac .hac-form-actions { margin-top: 18px; }
.hac .hac-inline { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 12px; }
.hac .hac-inline .hac-field { margin: 0; flex: 1 1 220px; }

/* ---------- Seats, checkout people, coupon box ---------- */
.hac .hac-stepper { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: #fff; }
.hac .hac-stepper button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--paper); color: var(--ink); font: 700 18px/1 var(--font); cursor: pointer; display: grid; place-items: center; }
.hac .hac-stepper button:hover:not(:disabled) { background: var(--blue-50); color: var(--blue); }
.hac .hac-stepper button:disabled { opacity: .35; cursor: default; }
.hac .hac-stepper output { min-width: 72px; text-align: center; font-weight: 700; color: var(--ink); font-size: 14px; }
.hac .hac-line .hac-stepper { margin-top: 8px; }
.hac .hac-line-kind { display: inline-block; margin-inline-start: 6px; font-size: 12px; color: var(--green); }
.hac .hac-line-price small { font-weight: 400; color: var(--muted); font-size: 12px; }
.hac .hac-qty-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 4px; font-size: 14px; color: var(--ink-2); }

.hac .hac-step-no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 900; flex: none; }
.hac .hac-co-item { border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px; margin-bottom: 12px; }
.hac .hac-co-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hac .hac-co-thumb { width: 52px; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: var(--r-s); flex: none; }
.hac .hac-co-info { flex: 1; min-width: 160px; display: flex; flex-direction: column; line-height: 1.6; }
.hac .hac-co-info b { color: var(--ink); }
.hac .hac-co-info span { font-size: 13px; color: var(--muted); }
.hac .hac-co-info .hac-co-price { color: var(--ink); font-weight: 700; font-size: 14px; }
.hac .hac-seats { margin: 14px 0 6px; display: flex; flex-direction: column; gap: 10px; counter-reset: none; }
.hac .hac-seat { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 0 12px; align-items: start; padding: 12px; border-radius: var(--r-s); background: var(--paper); }
.hac .hac-seat .hac-field { margin: 0; }
.hac .hac-seat-no { font-size: 13px; font-weight: 700; color: var(--ink); padding-top: 34px; }
.hac .hac-hint-icon { display: flex; gap: 6px; align-items: flex-start; }
.hac .hac-hint-icon .hac-i { width: 16px; height: 16px; margin-top: 3px; flex: none; }
.hac .hac-for { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.hac .hac-for-opt { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 14px; }
.hac .hac-for-opt:has(input:checked) { border-color: var(--blue); background: var(--blue-50); color: var(--blue); font-weight: 700; }
.hac .hac-for-opt input[type=radio] { position: static; opacity: 1; pointer-events: auto; margin: 0; accent-color: var(--blue); width: 16px; height: 16px; -webkit-appearance: radio; appearance: auto; }
.hac [type=radio] + span { padding: 0; height: auto; line-height: inherit; font-size: inherit; }
.hac [type=radio] + span::before, .hac [type=radio] + span::after { display: none; }
.hac .hac-gift { margin-top: 12px; padding: 12px; border-radius: var(--r-s); background: var(--gold-50); }
.hac .hac-gift .hac-hint { grid-column: 1 / -1; }

.hac .hac-coupon-box { margin-bottom: 4px; }
.hac .hac-coupon-toggle { border-bottom: 1px solid var(--line-2); padding-bottom: 12px; }
.hac .hac-coupon-toggle summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--blue); font-weight: 700; font-size: 14px; list-style: none; }
.hac .hac-coupon-toggle summary::-webkit-details-marker { display: none; }
.hac .hac-coupon-toggle summary .hac-i { width: 18px; height: 18px; }
.hac .hac-coupon-toggle[open] summary { margin-bottom: 10px; }
.hac .hac-coupon-toggle .hac-coupon { border: 0; padding: 0; }
.hac .hac-coupon-applied { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-s); background: var(--green-50); border: 1px dashed var(--green); }
.hac .hac-coupon-ico { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--green); display: grid; place-items: center; flex: none; }
.hac .hac-coupon-ico .hac-i { width: 18px; height: 18px; }
.hac .hac-coupon-txt { flex: 1; display: flex; flex-direction: column; line-height: 1.6; }
.hac .hac-coupon-txt b { color: var(--green); font-size: 14px; }
.hac .hac-coupon-txt small { color: var(--ink-2); font-size: 12.5px; }

.hac .hac-auth-skip { display: block; margin: 10px auto 0; background: none; border: 0; color: var(--muted); font: 400 13.5px var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.hac .hac-auth-skip:hover { color: var(--ink); }
.hac-modal-panel.is-nudge { animation: hac-nudge .3s var(--ease); }
@keyframes hac-nudge { 40% { transform: scale(1.02); } }
.hac .hac-slip-gift { margin: 6px 22px 4px; padding: 10px 12px; border-radius: 12px; background: var(--blue-50); display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.hac .hac-slip-gift .hac-i { width: 18px; height: 18px; color: var(--blue); flex: none; margin-top: 2px; }

@media (max-width: 680px) {
	.hac .hac-seat { grid-template-columns: 1fr; gap: 8px; }
	.hac .hac-seat-no { padding-top: 0; }
	.hac .hac-co-head .hac-stepper { width: 100%; justify-content: space-between; }
}

/* ---------- Bank-style receipt slip ---------- */
.hac .hac-slip {
	--seal: var(--green); --seal-bg: var(--green-50);
	position: relative; max-width: 460px; margin: 0 auto; background: #fff; border-radius: 18px 18px 0 0;
	box-shadow: 0 20px 50px -24px rgba(16, 33, 58, .35); padding: 0 0 28px;
	/* torn-paper bottom edge */
	-webkit-mask: radial-gradient(circle 9px at 50% 100%, transparent 98%, #000) bottom / 24px 100% repeat-x;
	mask: radial-gradient(circle 9px at 50% 100%, transparent 98%, #000) bottom / 24px 100% repeat-x;
}
.hac .hac-slip.is-fail { --seal: var(--red); --seal-bg: var(--red-50); }
.hac .hac-slip.is-wait { --seal: var(--amber); --seal-bg: var(--amber-50); }
.hac .hac-slip.is-refund { --seal: #6b2fb3; --seal-bg: #f3e8fd; }
.hac .hac-slip-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line-2); }
.hac .hac-slip-top img { height: 38px; width: auto; }
.hac .hac-slip-top span { font-size: 13px; color: var(--muted); }
.hac .hac-slip-status { text-align: center; padding: 22px 22px 16px; }
.hac .hac-slip-seal { width: 64px; height: 64px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--seal-bg); color: var(--seal); box-shadow: 0 0 0 8px color-mix(in srgb, var(--seal-bg) 50%, transparent); margin-bottom: 12px; }
.hac .hac-slip-seal .hac-i { width: 30px; height: 30px; }
.hac .hac-slip-status h1 { font-size: 19px; font-weight: 900; color: var(--seal); }
.hac .hac-slip-amount { font-size: 30px; font-weight: 900; color: var(--ink); margin-top: 6px; font-variant-numeric: tabular-nums; }
.hac .hac-slip-amount small { font-size: 14px; font-weight: 400; color: var(--muted); }
.hac .hac-slip-rial { font-size: 12.5px; color: var(--faint); }
.hac .hac-slip-rows { margin: 0 22px; padding: 12px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); display: flex; flex-direction: column; gap: 9px; }
.hac .hac-slip-rows > div { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; }
.hac .hac-slip-rows dt { color: var(--muted); white-space: nowrap; }
/* dotted leader between label and value */
.hac .hac-slip-rows > div::after { content: ''; order: 1; flex: 1; border-bottom: 1px dotted #c9d3df; transform: translateY(-4px); min-width: 16px; }
.hac .hac-slip-rows dd { order: 2; color: var(--ink); font-weight: 700; text-align: left; word-break: break-all; }
.hac .hac-slip-items { margin: 0 22px; padding: 12px 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.hac .hac-slip-items > div { display: flex; justify-content: space-between; gap: 12px; }
.hac .hac-slip-items b { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hac .hac-slip-items .is-saving, .hac .hac-slip-items .is-saving b { color: var(--green); }
.hac .hac-slip-ticket { margin: 6px 22px 4px; padding: 14px; border: 2px dashed var(--gold); border-radius: 14px; background: var(--gold-50); text-align: center; display: flex; flex-direction: column; gap: 4px; }
.hac .hac-slip-ticket span { font-size: 13px; color: var(--ink-2); }
.hac .hac-slip-ticket b { font-family: ui-monospace, Consolas, monospace; font-size: 26px; letter-spacing: .18em; color: var(--ink); }
.hac .hac-slip-ticket small { font-size: 12px; color: var(--muted); }
.hac .hac-slip-foot { margin: 14px 22px 0; font-size: 11.5px; color: var(--faint); text-align: center; line-height: 1.9; }
.hac .hac-slip-actions { justify-content: center; margin: 22px 0 32px; }

/* In-person workshop box on the course page */
.hac .hac-event { display: flex; gap: 0; background: var(--card); border: 1px solid rgba(31, 163, 122, .45); border-radius: var(--r-m); overflow: hidden; margin-bottom: 24px; }
.hac .hac-event-when { flex: none; width: 120px; background: var(--green); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 8px; text-align: center; line-height: 1.4; }
.hac .hac-event-day { font-size: 40px; font-weight: 900; }
.hac .hac-event-month { font-size: 14px; font-weight: 700; }
.hac .hac-event-wd { font-size: 12.5px; opacity: .85; }
.hac .hac-event-body { padding: 18px 22px; flex: 1; min-width: 0; }
.hac .hac-event-body h2 { font-size: 18px; font-weight: 900; margin-bottom: 8px; }
.hac .hac-event-body ul { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 10px; font-size: 14px; }
.hac .hac-event-body li { display: flex; align-items: center; gap: 6px; }
.hac .hac-event-body li .hac-i { width: 17px; height: 17px; color: var(--green); }
.hac .hac-event-note { font-size: 14px; color: var(--ink-2); }
.hac .hac-event-note b { color: var(--green); }
.hac .hac-event-later { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 8px; }
.hac .hac-event-later .hac-i { width: 16px; height: 16px; }
@media (max-width: 680px) {
	.hac .hac-event { flex-direction: column; }
	.hac .hac-event-when { width: auto; flex-direction: row; gap: 8px; padding: 10px; }
	.hac .hac-event-day { font-size: 24px; }
	.hac .hac-slip-amount { font-size: 26px; }
}
@media print {
	html.hac-print-slip .hac .hac-receipt, html.hac-print-invoice .hac .hac-slip { display: none !important; }
	.hac .hac-slip { box-shadow: none; border: 1px solid #ccc; -webkit-mask: none; mask: none; }
	.hac .hac-slip-actions, .hac .hac-steps { display: none !important; }
}

/* ---------- Account: richer screens ---------- */
.hac .hac-acc-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 18px; }
.hac .hac-acc-head .hac-acc-title { margin-bottom: 0; }
.hac .hac-acc-head .hac-hint { flex-basis: 100%; }
.hac .hac-acc-nav a { position: relative; }
.hac .hac-acc-badge { margin-inline-start: auto; font-style: normal; font-size: 12px; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--line-2); color: var(--muted); display: inline-grid; place-items: center; }
.hac .hac-acc-nav a.is-active .hac-acc-badge { background: #fff; color: var(--blue); }

.hac .hac-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.hac .hac-tiles.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hac .hac-tile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 2px 12px; align-items: center; background: var(--card); border: 1px solid #e5ecf1; border-radius: 16px; padding: 14px 16px; color: var(--ink); }
a.hac-tile:hover { border-color: var(--blue); color: var(--ink); }
.hac .hac-tile-icon { grid-row: 1 / 3; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.hac .hac-tile-icon.is-green { background: var(--green-50); color: var(--green); }
.hac .hac-tile-icon.is-gold { background: var(--gold-50); color: var(--gold); }
.hac .hac-tile-icon.is-ink { background: var(--line-2); color: var(--ink); }
.hac .hac-tile-label { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.hac .hac-tile b { font-size: 17px; font-weight: 900; line-height: 1.5; white-space: nowrap; }
.hac .hac-tile b .hac-cur { font-size: 11.5px; }

.hac .hac-acc-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.hac .hac-mini-orders { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.hac .hac-mini-orders li + li { border-top: 1px solid var(--line-2); }
.hac .hac-mini-orders a { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 14px; color: var(--ink); align-items: center; }
.hac .hac-mini-orders a:hover { background: var(--paper); }
.hac .hac-mini-orders span:first-child { display: flex; flex-direction: column; line-height: 1.5; }
.hac .hac-mini-orders small { color: var(--muted); font-size: 12px; }
.hac .hac-mini-amount { grid-column: 1 / -1; font-size: 13.5px; }
.hac .hac-empty-line { color: var(--muted); font-size: 14px; padding: 16px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--r-m); text-align: center; }
.hac .hac-grid.is-compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }

.hac .hac-acc-tabs { display: inline-flex; flex-wrap: wrap; margin-bottom: 16px; max-width: 100%; }
.hac .hac-chips button[aria-selected=true] { background: var(--ink); color: #fff; }
.hac .hac-chips button span { font-weight: 400; opacity: .7; margin-inline-start: 2px; }
.hac .hac-mine-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.hac .hac-mine-item[hidden] { display: none; }

/* Orders as expandable invoice rows */
.hac .hac-invs { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.hac .hac-inv-head, .hac .hac-inv summary { display: grid; grid-template-columns: 1.3fr 1.1fr 2fr 1.2fr 1fr 28px; gap: 12px; align-items: center; padding: 12px 18px; }
.hac .hac-inv-head { font-size: 12.5px; color: var(--muted); background: var(--paper); border-bottom: 1px solid var(--line); }
.hac .hac-inv { border-bottom: 1px solid var(--line-2); }
.hac .hac-inv:last-of-type { border-bottom: 0; }
.hac .hac-inv summary { cursor: pointer; list-style: none; font-size: 14px; color: var(--ink-2); }
.hac .hac-inv summary::-webkit-details-marker { display: none; }
.hac .hac-inv summary:hover { background: var(--paper); }
.hac .hac-inv[open] summary { background: var(--blue-50); }
.hac .hac-inv-no b { color: var(--ink); font-size: 13.5px; }
.hac .hac-inv-items { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hac .hac-inv-amount { font-weight: 700; color: var(--ink); }
.hac .hac-inv-body { padding: 4px 18px 18px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px 24px; }
.hac .hac-inv-lines { width: 100%; border-collapse: collapse; font-size: 14px; }
.hac .hac-inv-lines td { padding: 8px 0; border-bottom: 1px solid var(--line-2); display: table-cell; }
.hac .hac-inv-lines td.num { text-align: left; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hac .hac-inv-lines .is-saving td { color: var(--green); }
.hac .hac-inv-lines .is-total td { border-bottom: 0; font-weight: 900; color: var(--ink); }
.hac .hac-inv-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; align-content: start; padding-top: 8px; }
.hac .hac-inv-meta .is-wide { grid-column: 1 / -1; }
.hac .hac-inv-meta dt { font-size: 12px; color: var(--muted); }
.hac .hac-inv-meta dd { font-size: 13.5px; color: var(--ink); font-weight: 700; word-break: break-word; }
.hac .hac-inv-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.hac .hac-inv[hidden] { display: none; }

/* Transactions table */
.hac .hac-table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); overflow-x: auto; }
.hac .hac-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.hac .hac-table th, .hac .hac-table td { display: table-cell; padding: 12px 14px; text-align: right; border-bottom: 1px solid var(--line-2); white-space: nowrap; border-radius: 0; }
.hac .hac-table th { font-size: 12.5px; color: var(--muted); font-weight: 400; background: var(--paper); }
.hac .hac-table tr:last-child td { border-bottom: 0; }
.hac .hac-status.is-refunded { background: #f3e8fd; color: #6b2fb3; }

/* Certificates */
.hac .hac-certs { display: flex; flex-direction: column; gap: 10px; }
.hac .hac-cert-card { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px 16px; }
.hac .hac-cert-card > div { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.6; }
.hac .hac-cert-card b { color: var(--ink); }
.hac .hac-cert-card small { color: var(--muted); font-size: 12.5px; }
.hac .hac-cert-seal { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-50); color: var(--gold); border: 2px solid var(--gold); flex: none; }
.hac .hac-near { display: flex; flex-direction: column; gap: 10px; }
.hac .hac-near li { display: grid; grid-template-columns: minmax(0, 1fr) 160px auto; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 12px 16px; }
.hac .hac-near a { color: var(--ink); font-weight: 700; }
.hac .hac-near small { color: var(--muted); }

.hac .hac-cert-tools { margin: 0 auto 16px; max-width: 980px; }
.hac .hac-cert { max-width: 980px; margin: 0 auto; background: #fff; padding: 18px; border-radius: 6px; box-shadow: var(--shadow); aspect-ratio: 297 / 210; }
.hac .hac-cert-frame { height: 100%; border: 2px solid var(--gold); outline: 1px solid var(--gold); outline-offset: -8px; padding: 36px 56px; display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center; gap: 10px; }
.hac .hac-cert-top { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 8px; }
.hac .hac-cert-top img { height: 64px; width: auto; }
.hac .hac-cert-top span { color: var(--muted); font-size: 14px; }
.hac .hac-cert-kicker { color: var(--gold); font-weight: 900; font-size: 22px; }
.hac .hac-cert-lead { font-size: 16px; max-width: 64ch; line-height: 2.1; color: var(--ink-2); }
.hac .hac-cert-lead b { color: var(--ink); }
.hac .hac-cert-name { font-size: 38px; font-weight: 900; color: var(--ink); margin: 4px 0; }
.hac .hac-cert-meta { display: flex; gap: 40px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.hac .hac-cert-meta dt { font-size: 12px; color: var(--muted); }
.hac .hac-cert-meta dd { font-weight: 700; color: var(--ink); }

@media (max-width: 960px) {
	.hac .hac-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hac .hac-acc-cols { grid-template-columns: 1fr; }
	.hac .hac-cert-frame { padding: 24px; }
	.hac .hac-cert { aspect-ratio: auto; }
	.hac .hac-cert-name { font-size: 28px; }
}
@media (max-width: 680px) {
	.hac .hac-tiles, .hac .hac-tiles.is-3 { grid-template-columns: 1fr 1fr; gap: 8px; }
	.hac .hac-tile { padding: 12px; gap: 2px 8px; }
	.hac .hac-tile-icon { width: 34px; height: 34px; border-radius: 10px; }
	.hac .hac-tile-icon .hac-i { width: 18px; height: 18px; }
	.hac .hac-tile b { font-size: 15px; white-space: normal; }
	.hac .hac-inv-head { display: none; }
	.hac .hac-inv summary { grid-template-columns: 1fr auto 24px; padding: 12px 14px; gap: 4px 10px; }
	.hac .hac-inv-date { grid-column: 1; grid-row: 2; font-size: 12.5px; color: var(--muted); }
	.hac .hac-inv-items { grid-column: 1 / -1; grid-row: 3; font-size: 13px; color: var(--muted); }
	.hac .hac-inv-amount { grid-column: 2; grid-row: 2; font-size: 13.5px; }
	.hac .hac-inv-caret { grid-column: 3; grid-row: 1; }
	.hac .hac-inv-body { grid-template-columns: 1fr; padding: 4px 14px 14px; }
	.hac .hac-near li { grid-template-columns: 1fr auto; }
	.hac .hac-near .hac-progress { grid-column: 1 / -1; grid-row: 2; }
	.hac .hac-cert-card { flex-wrap: wrap; }
	.hac .hac-cert-card .hac-btn { flex: 1 1 100%; }
	.hac .hac-cert-meta { flex-direction: column; gap: 8px; }
	.hac .hac-mine-actions { flex: 1 1 100%; justify-content: stretch; }
	.hac .hac-mine-actions .hac-btn { flex: 1; }
}
@media print {
	@page { size: A4 landscape; margin: 0; }
	.hac .hac-cert-tools { display: none !important; }
	.hac .hac-cert { box-shadow: none; max-width: none; width: 297mm; height: 210mm; padding: 10mm; border-radius: 0; aspect-ratio: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.hac .hac-clayout { grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; }
	.hac .hac-chero-grid { grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; }
}

@media (max-width: 960px) {
	.hac .hac-chero-grid { grid-template-columns: 1fr; }
	.hac .hac-chero-poster { display: none; }
	.hac .hac-clayout { grid-template-columns: 1fr; }
	.hac-cside { order: -1; }
	.hac-cside-sticky { position: static; }
	.hac .hac-checkout-grid { grid-template-columns: 1fr; }
	.hac .hac-sum-panel { position: static; }
	.hac-account-grid { grid-template-columns: 1fr; }
	.hac .hac-acc-side { position: static; padding: 12px; }
	.hac .hac-acc-user { display: none; }
	.hac .hac-acc-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 4px; }
	.hac .hac-acc-nav::-webkit-scrollbar { display: none; }
	.hac .hac-acc-nav a { flex: none; padding: 8px 12px; font-size: 13.5px; }
	.hac .hac-acc-nav a.is-muted { margin: 0; }
	.hac-login-grid { grid-template-columns: minmax(0, 480px); }
	.hac .hac-login-aside { display: none; }
	.hac .hac-gallery { grid-template-columns: repeat(3, 1fr); }
	.hac-catalog-head { flex-direction: column; align-items: stretch; }
	.hac .hac-search { width: auto; flex: 1 1 220px; }

	/* sticky purchase bar */
	.hac .hac-mbar {
		position: fixed; inset: auto 12px calc(12px + var(--hac-lift, 0px)) 12px; z-index: 900; display: flex; align-items: center; justify-content: space-between; gap: 12px;
		padding: 10px 14px; background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); border-radius: 16px;
		border: 1px solid var(--line); box-shadow: 0 12px 32px -12px rgba(16, 33, 58, .35); transition: transform .25s var(--ease), opacity .25s;
		margin-bottom: env(safe-area-inset-bottom);
	}
	.hac .hac-mbar.is-hidden { transform: translateY(24px); opacity: 0; pointer-events: none; }
	.hac .hac-mbar-price { display: flex; flex-direction: column; line-height: 1.4; }
	.hac .hac-mbar-price b { font-size: 18px; font-weight: 900; color: var(--ink); }
	.hac .hac-mbar-price del { font-size: 12.5px; }
	.hac .hac-mbar .hac-btn { flex: none; min-width: 150px; }
	.hac-single { padding-bottom: 110px; }
	.hac-toasts { bottom: calc(96px + var(--hac-lift, 0px)); }
}

@media (max-width: 680px) {
	.hac { font-size: 14.5px; }
	.hac-hero { padding-top: 12px; }
	.hac .hac-crumbs { margin-bottom: 16px; font-size: 12.5px; }
	.hac .hac-hero-lead { font-size: 15.5px; }
	.hac .hac-hero-facts b { font-size: 17px; }
	.hac .hac-tl-track { padding: 14px 14px 18px 44px; gap: 12px; }
	.hac-timeline { border-radius: 16px; }
	.hac .hac-tl-item { width: 108px; }
	.hac .hac-tl-face { width: 64px; height: 64px; }
	.hac .hac-tl-item::before { top: 50px; }
	.hac-catalog { padding-top: 32px; }
	.hac-catalog-head h2 { font-size: 20px; }
	.hac .hac-chips { overflow-x: auto; scrollbar-width: none; max-width: 100%; }
	.hac .hac-filters { width: 100%; }
	.hac .hac-filters > * { flex: 1 1 100%; }
	.hac .hac-filters .hac-select select { width: 100%; }
	.hac .hac-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.hac .hac-card-body { padding: 12px 12px 14px; }
	.hac .hac-card-who { font-size: 12.5px; }
	.hac .hac-card-who img { width: 22px; height: 22px; }
	.hac .hac-card-who small { display: none; }
	.hac .hac-card-title { font-size: 14.5px; line-height: 1.6; }
	.hac .hac-card-meta { font-size: 12px; gap: 2px 10px; margin-bottom: 10px; }
	.hac .hac-card-meta li:nth-child(2) { display: none; }
	.hac .hac-price { font-size: 15px; }
	.hac .hac-card-count { display: none; }
	.hac .hac-chip { top: 8px; right: 8px; font-size: 11.5px; height: 22px; padding: 0 8px; }
	.hac .hac-chip.is-owned { right: auto; left: 8px; }
	.hac .hac-cover-fallback img { width: 76px; height: 76px; }
	.hac .hac-cover-fallback b { font-size: 15px; }

	.hac .hac-chero-grid { padding: 20px 18px 24px; border-radius: 16px; }
	.hac .hac-chero-sub { font-size: 15px; }
	.hac .hac-chero-facts { grid-template-columns: 1fr 1fr; gap: 12px 20px; }
	.hac .hac-block { padding: 20px 16px; border-radius: var(--r-m); }
	.hac .hac-block > h2, .hac .hac-block-head h2 { font-size: 18px; }
	.hac .hac-lesson-btn { padding: 12px; gap: 10px; font-size: 14px; }
	.hac .hac-sec summary { padding: 12px; flex-wrap: wrap; }
	.hac .hac-sec-meta { order: 3; flex-basis: 100%; }
	.hac .hac-gallery { grid-template-columns: repeat(2, 1fr); }
	.hac .hac-teacher { flex-direction: column; gap: 12px; }
	.hac-player { border-radius: var(--r-m); }
	.hac-player-bar { padding: 10px 12px; }
	.hac .hac-now { font-size: 13.5px; }

	.hac-app { padding-top: 20px; }
	.hac .hac-panel { padding: 18px 16px; }
	.hac .hac-row-2 { grid-template-columns: 1fr; }
	.hac .hac-login-card { padding: 26px 18px; border-radius: var(--r-m); }
	.hac .hac-receipt { padding: 20px 16px; }
	.hac .hac-rc-head { flex-wrap: wrap; }
	.hac .hac-rc-logo { height: 44px; }
	.hac .hac-rc-parties { grid-template-columns: 1fr; gap: 12px; }
	.hac .hac-success { flex-direction: column; text-align: center; }
	.hac .hac-acc-title { font-size: 22px; }
	.hac .hac-continue { padding: 12px; gap: 12px; }
	.hac .hac-continue > img { width: 56px; }
	.hac .hac-mine-item { flex-wrap: wrap; padding: 12px; }
	.hac .hac-mine-item > .hac-btn { flex: 1 1 100%; }
	.hac-lightbox { grid-template-columns: 1fr; }
	.hac .hac-lb-nav { position: absolute; bottom: 20px; }
	.hac .hac-lb-nav.is-prev { right: 20px; }
	.hac .hac-lb-nav.is-next { left: 20px; }
	.hac-lightbox figure { grid-column: 1; }

	.hac-modal { padding: 0; place-items: end stretch; }
	.hac-modal-panel { max-width: none; border-radius: var(--r-l) var(--r-l) 0 0; padding: 28px 18px calc(22px + env(safe-area-inset-bottom)); transform: translateY(40px); max-height: 92dvh; }
}

@media (max-width: 380px) {
	.hac .hac-otp { gap: 8px; }
	.hac .hac-otp input { width: 54px; height: 60px; font-size: 24px; }
	.hac .hac-grid { gap: 10px; }
	.hac .hac-mbar .hac-btn { min-width: 0; padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.hac *, .hac-hw *, .hac-toasts * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	header.site-header, footer.page-footer, .hac-hw, .hac-steps, .hac-rc-actions, .hac-success, .hac-toasts, .mobile-menu, .header-overlay, .search-overlay { display: none !important; }
	.hac-app { background: #fff; padding: 0; }
	.hac .hac-receipt { border: 0; padding: 0; }
	.hac .hac-rc-pay { background: none; border: 1px solid #ccc; }
}
