/* ==========================================================================
   HH PARTY RENTALS: accounts, student dashboard, course player, admin
   Builds on the variables and classes in style.css.
   ========================================================================== */
[hidden] { display: none !important; }
.flip { transform: scaleX(-1); }
.app-main-pad { padding-bottom: 20px; }
.icon-btn[data-account].is-in::after { content: ""; position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 2px var(--cream); }
.icon-btn[data-account].active { background: var(--pink-100); color: var(--pink-600); }

/* ---------- skeletons ---------- */
.skel { height: 220px; border-radius: var(--radius-lg); background: linear-gradient(100deg, #fff 30%, var(--pink-100) 50%, #fff 70%); background-size: 300% 100%; animation: skel 1.4s linear infinite; box-shadow: var(--shadow); margin-bottom: 18px; }
.skel-sm { height: 110px; }
.skel-tall { height: 520px; }
@keyframes skel { from { background-position: 100% 0; } to { background-position: -200% 0; } }

/* ---------- animated blobs ---------- */
.auth-blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.auth-blobs span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: blob 18s ease-in-out infinite alternate; }
.auth-blobs span:nth-child(1) { width: 460px; height: 460px; background: #f7a3c7; left: -120px; top: -140px; }
.auth-blobs span:nth-child(2) { width: 380px; height: 380px; background: #ffd6a5; right: -100px; top: 30%; animation-duration: 22s; animation-delay: -6s; }
.auth-blobs span:nth-child(3) { width: 320px; height: 320px; background: #f2418f; left: 35%; bottom: -200px; opacity: .3; animation-duration: 26s; animation-delay: -12s; }
@keyframes blob { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(60px, 40px) scale(1.12); } 100% { transform: translate(-40px, 70px) scale(.94); } }

/* ---------- auth (login / sign up / reset) ---------- */
.auth { position: relative; overflow: hidden; padding: 56px 24px 70px; background: linear-gradient(160deg, var(--cream), var(--blush) 60%, #fde9f1); min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; }
.auth + * { margin-top: 0; }
.auth-shell { position: relative; z-index: 1; width: 100%; max-width: 1120px; display: grid; grid-template-columns: 1.05fr 1fr; background: rgba(255,255,255,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 30px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.7) inset; overflow: hidden; animation: shellIn .9s var(--ease) both; }
@keyframes shellIn { from { opacity: 0; transform: translateY(30px) scale(.98); } }
.auth-narrow .auth-shell { max-width: 520px; grid-template-columns: 1fr; }
.auth-art { position: relative; min-height: 640px; overflow: hidden; color: #fff; display: flex; align-items: flex-end; }
.auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: kenburns 16s var(--ease) forwards; }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,17,19,0) 20%, rgba(22,17,19,.62) 50%, rgba(22,17,19,.92) 100%), linear-gradient(120deg, rgba(242,65,143,.35), transparent 60%); }
.auth-art-copy { position: relative; z-index: 1; padding: 40px 40px 44px; }
.auth-art h2 { font-size: clamp(2rem, 3.4vw, 3rem); text-transform: uppercase; margin: 0 0 22px; }
.auth-art h2 .script { display: block; text-transform: none; font-size: 1.3em; line-height: 1; margin-top: .12em; }
.auth-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.auth-perks li { display: flex; gap: 14px; align-items: center; opacity: 0; transform: translateX(-16px); animation: perkIn .7s var(--ease) forwards; }
.auth-perks li:nth-child(1) { animation-delay: .5s; } .auth-perks li:nth-child(2) { animation-delay: .65s; } .auth-perks li:nth-child(3) { animation-delay: .8s; }
@keyframes perkIn { to { opacity: 1; transform: none; } }
.auth-perks svg { width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: rgba(255,255,255,.14); color: var(--pink-300); flex: none; backdrop-filter: blur(6px); }
.auth-perks b { display: block; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.auth-perks span { font-size: .88rem; color: rgba(255,255,255,.82); line-height: 1.35; }
.auth-card { padding: 44px 48px 40px; display: flex; flex-direction: column; justify-content: center; }
.auth-tabs { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; background: var(--blush); border: 1px solid var(--line); border-radius: 999px; padding: 5px; margin-bottom: 30px; align-self: flex-start; }
.auth-tabs button { position: relative; z-index: 1; background: none; border: 0; padding: 10px 22px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: color .35s; white-space: nowrap; }
.auth-tabs button.active { color: #fff; }
.auth-tab-ind { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: var(--pink); box-shadow: 0 8px 18px -8px var(--pink); transition: transform .5s var(--ease), width .5s var(--ease); }
.auth-form h1, .auth-done h1 { font-size: clamp(2rem, 3vw, 2.6rem); text-transform: uppercase; margin-bottom: 6px; }
.auth-form h1 .script, .auth-done h1 .script { text-transform: none; font-size: 1.25em; }
.auth-form .lead-muted { font-size: .95rem; margin-bottom: 22px; }
.auth-form.enter, .auth-done.enter { animation: formIn .55s var(--ease) both; }
@keyframes formIn { from { opacity: 0; transform: translateY(12px); } }
.auth-row { display: flex; justify-content: flex-end; margin: -4px 0 14px; font-size: .84rem; }
.auth-row a, .auth-switch a { color: var(--pink-600); font-weight: 600; }
.auth-row a:hover, .auth-switch a:hover { text-decoration: underline; }
.auth-switch { text-align: center; font-size: .88rem; color: var(--muted); margin: 18px 0 0; }
.auth-badge { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(135deg, var(--pink), #ff8ab8); color: #fff; margin-bottom: 20px; box-shadow: 0 14px 28px -12px var(--pink); animation: float 4s ease-in-out infinite; }
.auth-badge svg { width: 30px; height: 30px; }
@keyframes float { 50% { transform: translateY(-6px) rotate(-4deg); } }
.auth-done .btn { margin-top: 10px; }

/* ---------- floating-label fields ---------- */
.fl { position: relative; margin-bottom: 16px; }
.fl input, .fl select { width: 100%; height: 58px; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 22px 16px 6px; font: inherit; font-size: .98rem; color: var(--ink); transition: border-color .25s, box-shadow .25s, background .25s; -webkit-appearance: none; appearance: none; }
.fl input[type=date] { padding-top: 24px; }
.fl label { position: absolute; left: 17px; top: 18px; font-size: .95rem; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform .25s var(--ease), color .25s; white-space: nowrap; max-width: calc(100% - 30px); overflow: hidden; text-overflow: ellipsis; }
.fl label em { font-style: normal; opacity: .7; }
.fl input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(242,65,143,.13); }
.fl input:focus + label, .fl input:not(:placeholder-shown) + label, .fl input[type=date] + label { transform: translateY(-11px) scale(.74); color: var(--pink-600); font-weight: 600; letter-spacing: .04em; }
.fl input[readonly] { background: var(--blush); color: var(--muted); }
.fl-pw input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 8px; top: 9px; width: 40px; height: 40px; border-radius: 10px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; transition: background .2s, color .2s; }
.pw-toggle:hover { background: var(--pink-100); color: var(--pink); }
.pw-toggle svg { width: 20px; height: 20px; }
.fl-err { display: block; color: #c0264f; font-size: .78rem; font-weight: 500; min-height: 0; margin-top: 4px; padding-left: 4px; }
.fl-err:empty { display: none; }
.fl.invalid input { border-color: #e2557a; background: #fff7f9; animation: shake .4s; }
.fl.invalid label { color: #c0264f !important; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.form-err { color: #c0264f; font-size: .88rem; font-weight: 600; margin: 4px 0 12px; }
.form-err:empty { display: none; }
.form-err.shake { animation: shake .4s; }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: -6px 0 6px; }
.pw-meter span { height: 5px; border-radius: 5px; background: var(--line); transition: background .35s; }
.pw-meter[data-s="1"] span:nth-child(-n+1) { background: #e2557a; }
.pw-meter[data-s="2"] span:nth-child(-n+2) { background: #f0a23b; }
.pw-meter[data-s="3"] span:nth-child(-n+3) { background: #7bc67b; }
.pw-meter[data-s="4"] span { background: #2fbf71; }
.pw-hint { display: block; color: var(--muted); font-size: .76rem; margin-bottom: 16px; }

/* loading button */
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading .arrow { display: none; }
.btn.is-loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; animation: spinBtn .7s linear infinite; }
.btn-outline.is-loading::after, .btn-soft.is-loading::after { border-color: rgba(0,0,0,.2); border-top-color: var(--pink); }
@keyframes spinBtn { to { transform: rotate(360deg); } }

/* offline (static hosting) */
.api-offline { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1.5px dashed var(--pink-300); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 22px; animation: formIn .5s var(--ease) both; }
.api-offline h3 { font-size: 1.3rem; margin-bottom: 6px; }
.api-offline p { color: var(--ink-2); font-size: .9rem; margin-bottom: 12px; }
.offline-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--pink-100); color: var(--pink); display: grid; place-items: center; flex: none; }
.offline-ic svg { width: 24px; height: 24px; }
.offline-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- student dashboard ---------- */
.dash-hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #fff 0%, var(--blush) 55%, #fde3ee 100%); padding: 50px 0 0; border-bottom: 1px solid var(--line); }
.dash-hero .wrap { position: relative; z-index: 1; }
.dash-hero-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.dash-hello h1 { font-size: clamp(2.4rem, 5vw, 4rem); text-transform: uppercase; margin: 0; }
.dash-hello h1 .script { text-transform: none; font-size: 1.25em; display: inline-block; animation: formIn .9s var(--ease) .2s both; }
.dash-hello .lead-muted { margin: 6px 0 0; }
.dash-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dash-actions .btn svg { width: 1.15em; height: 1.15em; }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 30px 0 -42px; position: relative; z-index: 2; }
.dash-stat { background: #fff; border-radius: var(--radius-lg); padding: 20px 24px; box-shadow: var(--shadow); display: flex; align-items: baseline; gap: 14px; animation: formIn .8s var(--ease) both; }
.dash-stat:nth-child(2) { animation-delay: .1s; } .dash-stat:nth-child(3) { animation-delay: .2s; }
.dash-stat b { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--pink); min-width: 1.2ch; }
.dash-stat span { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.dash-hero { margin-bottom: 42px; overflow: visible; }
.dash-hero .auth-blobs { overflow: hidden; }
.dash-body { padding-top: 40px; display: grid; grid-template-columns: 220px 1fr; gap: 0 40px; align-items: start; }
.dash-body > .api-offline { grid-column: 1 / -1; }
.dash-nav { position: sticky; top: calc(var(--header-h) + 20px); grid-row: span 4; display: grid; gap: 4px; }
.dash-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; font-size: .86rem; font-weight: 600; color: var(--ink-2); transition: background .25s, color .25s, padding .3s var(--ease); }
.dash-nav a svg { width: 20px; height: 20px; color: var(--pink); flex: none; }
.dash-nav a:hover { background: #fff; padding-left: 18px; }
.dash-nav a.active { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.dash-sec { padding: 10px 0 44px; scroll-margin-top: calc(var(--header-h) + 70px); min-width: 0; }
.dash-sec-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); text-transform: uppercase; margin-bottom: 18px; }
.dash-sec-head h2 .script { text-transform: none; font-size: 1.25em; }
.dash-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.cc { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.cc:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cc-media { position: relative; aspect-ratio: 16 / 8; overflow: hidden; }
.cc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cc:hover .cc-media img { transform: scale(1.06); }
.cc-kind { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.94); border-radius: 999px; padding: 5px 12px; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.cc-kind svg { width: 14px; height: 14px; color: var(--pink); }
.cc-body { padding: 0 22px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.cc-top { display: flex; gap: 16px; align-items: flex-start; position: relative; }
.cc-top > .ring, .cc-top > .cc-badge { margin-top: -34px; }
.cc-top > div:last-child { min-width: 0; padding-top: 12px; }
.cc-top h3 { font-size: 1.25rem; margin: 0 0 2px; line-height: 1.15; }
.cc-top small { color: var(--muted); font-size: .8rem; }
.cc-badge { width: 64px; height: 64px; border-radius: 50%; background: var(--pink); color: #fff; display: grid; place-items: center; flex: none; border: 4px solid #fff; box-shadow: var(--shadow); }
.cc-badge svg { width: 26px; height: 26px; }
.cc-next { background: var(--blush); border-radius: 12px; padding: 12px 14px; margin: 0; font-size: .88rem; font-weight: 600; }
.cc-next span { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pink-600); margin-bottom: 2px; }
.cc-next.done { background: #eaf8f0; } .cc-next.done span { color: #1f8a52; }
.cc .btn { margin-top: auto; }
.cc .date-chip { align-self: flex-start; }

/* progress ring */
.ring { position: relative; width: 84px; height: 84px; flex: none; background: #fff; border-radius: 50%; box-shadow: var(--shadow); }
.ring svg { transform: rotate(-90deg); display: block; }
.ring circle { fill: none; stroke-width: 7; }
.ring-bg { stroke: var(--pink-100); }
.ring-fg { stroke: var(--pink); stroke-linecap: round; stroke-dashoffset: var(--c); transition: stroke-dashoffset 1.6s var(--ease) .15s; }
.ring.in .ring-fg { stroke-dashoffset: var(--o); }
.ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.15rem; white-space: nowrap; }

/* empty state */
.dash-empty { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 46px 30px; text-align: center; position: relative; overflow: hidden; }
.dash-empty h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); text-transform: uppercase; }
.dash-empty h3 .script { text-transform: none; font-size: 1.3em; }
.dash-empty p { color: var(--ink-2); max-width: 560px; margin: 0 auto 18px; }
.dash-empty .note { margin-top: 18px; }
.empty-art { position: relative; width: 120px; height: 120px; margin: 0 auto 18px; display: grid; place-items: center; }
.empty-art > svg { width: 56px; height: 56px; color: #fff; position: relative; z-index: 1; }
.empty-art::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: linear-gradient(135deg, var(--pink), #ff8ab8); box-shadow: 0 18px 36px -14px var(--pink); }
.empty-art span { position: absolute; width: 26px; height: 32px; border-radius: 50% 50% 48% 48%; animation: bob 3.4s ease-in-out infinite; }
.empty-art .b1 { background: var(--pink-300); left: -8px; top: 6px; }
.empty-art .b2 { background: var(--gold); right: -10px; top: -4px; animation-delay: -1s; }
.empty-art .b3 { background: #ffd6e6; right: 0; bottom: 0; width: 18px; height: 22px; animation-delay: -2s; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(6deg); } }
.empty-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.soft-empty { display: flex; gap: 16px; align-items: center; background: #fff; border: 1.5px dashed var(--pink-300); border-radius: var(--radius-lg); padding: 20px 22px; }
.soft-empty > svg { width: 34px; height: 34px; color: var(--pink); flex: none; }
.soft-empty p { margin: 0; color: var(--ink-2); font-size: .92rem; }

/* bookings */
.dash-bookings, .bk-list { display: grid; gap: 12px; }
.bk { display: flex; align-items: center; gap: 18px; background: #fff; border-radius: var(--radius-lg); padding: 16px 20px; box-shadow: var(--shadow); }
.bk-date { width: 64px; height: 68px; border-radius: 16px; background: var(--ink); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; line-height: 1; }
.bk-date span { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pink-300); }
.bk-date span svg { width: 26px; height: 26px; }
.bk-date b { font-family: var(--serif); font-size: 1.9rem; margin-top: 4px; }
.bk-info { flex: 1; min-width: 0; }
.bk-info b { font-size: 1rem; margin-right: 8px; }
.bk-info small { display: block; color: var(--muted); font-size: .82rem; margin-top: 3px; overflow-wrap: anywhere; }
.bk-todo { border: 1.5px dashed var(--pink); }
.bk-todo .bk-date { background: var(--pink-100); color: var(--pink); }
.tag-pill { display: inline-block; background: var(--pink-100); color: var(--pink-600); border-radius: 999px; padding: 3px 10px; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; white-space: nowrap; }
.tag-pill.gold { background: #fbf0d6; color: #8a6716; }

/* certificates */
.dash-certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.cert-card { display: grid; grid-template-columns: auto 1fr; align-items: center; text-align: left; gap: 8px 16px; background: linear-gradient(135deg, #fff, #fff8ea); border: 1.5px solid #f0dfb4; border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow); flex-wrap: wrap; }
.cert-card > div:nth-child(2) { min-width: 0; }
.cert-card .btn { grid-column: 1 / -1; justify-self: start; margin-top: 6px; }
.cert-card b { display: block; font-size: .98rem; line-height: 1.3; }
.cert-card small { color: var(--muted); font-size: .8rem; }
.cert-mini { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold), #f1d28a); color: #fff; flex: none; box-shadow: 0 10px 20px -10px var(--gold); }
.cert-mini svg { width: 26px; height: 26px; }
.cert-card.is-locked { background: #fff; border: 1.5px dashed var(--line); box-shadow: none; }
.cert-card.is-locked .cert-mini { background: var(--blush); color: var(--muted); box-shadow: none; }

/* settings */
.dash-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.set-form h3 { font-family: var(--sans); font-size: .86rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.set-form h3 svg { width: 22px; height: 22px; color: var(--pink); }
.set-form .btn { margin-top: 4px; }

/* certificate overlay + print */
.cert-overlay { position: fixed; inset: 0; z-index: 120; background: rgba(22,17,19,.82); backdrop-filter: blur(6px); overflow: auto; padding: 70px 20px 30px; animation: pageEnter .4s var(--ease); }
.cert-toolbar { position: fixed; top: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 2; }
.cert-toolbar .icon-btn { background: #fff; }
.cert-stage { display: grid; place-items: center; min-height: 100%; }
.cert { width: min(1000px, 100%); aspect-ratio: 1.414 / 1; background: #fffdf8; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); animation: certIn .8s var(--ease) both; container-type: inline-size; }
@keyframes certIn { from { opacity: 0; transform: translateY(30px) rotate(-1deg) scale(.96); } }
.cert-border { height: 100%; padding: 2.4cqw; background: linear-gradient(135deg, var(--pink), var(--gold) 50%, var(--pink)); }
.cert-inner { height: 100%; background: #fffdf8; border: 1px solid var(--gold); outline: .5cqw solid #fffdf8; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 3cqw 6cqw; position: relative; }
.cert-inner::before { content: ""; position: absolute; inset: 1.2cqw; border: 1px solid rgba(201,162,75,.5); pointer-events: none; }
.cert-brand { display: flex; flex-direction: column; align-items: center; font-family: var(--serif); line-height: 1; }
.cert-brand .hh { font-size: 4.2cqw; font-weight: 700; letter-spacing: -.06em; }
.cert-brand > span:last-child { font-size: 1.3cqw; font-weight: 600; letter-spacing: .1em; }
.cert-kicker { font-family: var(--sans); font-weight: 700; letter-spacing: .5em; text-transform: uppercase; font-size: 1.5cqw; color: var(--pink-600); margin: 2.2cqw 0 1.2cqw; }
.cert-small { font-size: 1.5cqw; color: var(--ink-2); margin: 0 0 .6cqw; max-width: 60cqw; }
.cert-name { font-family: var(--script); font-weight: 400; font-size: 7.5cqw; color: var(--ink); margin: .2cqw 0 .6cqw; line-height: 1.1; letter-spacing: 0; }
.cert-course { font-size: 2.8cqw; text-transform: uppercase; margin: .4cqw 0 1cqw; color: var(--pink-600); }
.cert-foot { display: grid; grid-template-columns: 1fr auto 1fr; gap: 4cqw; align-items: end; width: 100%; margin-top: 3cqw; }
.cert-foot > div:not(.cert-seal) { display: flex; flex-direction: column; align-items: center; }
.cert-foot i { display: block; width: 100%; height: 1px; background: var(--ink-2); margin: .6cqw 0; }
.cert-foot small { font-size: 1.1cqw; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.cert-sign { font-family: var(--script); font-size: 3.4cqw; line-height: 1; }
.cert-dt { font-family: var(--serif); font-size: 1.8cqw; }
.cert-seal { width: 10cqw; height: 10cqw; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f6dc96, var(--gold) 60%, #a8842f); display: grid; place-items: center; color: #fff; box-shadow: 0 0 0 .6cqw rgba(201,162,75,.25); }
.cert-seal svg { width: 5.5cqw; height: 5.5cqw; }
body.cert-open { overflow: hidden; }
@media print {
  @page { size: landscape; margin: 0; }
  body.cert-open > *:not(.cert-overlay):not(svg) { display: none !important; }
  body.cert-open { background: #fff; }
  .cert-overlay { position: static; padding: 0; background: none; backdrop-filter: none; overflow: visible; }
  .cert-toolbar { display: none; }
  .cert { width: 100%; box-shadow: none; animation: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cert * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- course player ---------- */
.player { padding: 30px 0 10px; }
.pl { display: grid; grid-template-columns: 320px 1fr; gap: 30px; align-items: start; }
.pl-side { position: sticky; top: calc(var(--header-h) + 14px); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); max-height: calc(100vh - var(--header-h) - 28px); display: flex; flex-direction: column; overflow: hidden; }
.pl-side-head { padding: 20px 20px 16px; border-bottom: 1px solid var(--line); background: linear-gradient(160deg, #fff, var(--blush)); }
.pl-back { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pink-600); margin-bottom: 10px; }
.pl-back svg { width: 16px; height: 16px; }
.pl-side-head h2 { font-size: 1.3rem; margin-bottom: 12px; }
.pl-prog .bar, .mini-bar { height: 8px; border-radius: 8px; background: var(--pink-100); overflow: hidden; }
.pl-prog .bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--pink), #ff8ab8); transition: width 1s var(--ease); }
.pl-prog small { display: block; margin-top: 8px; font-size: .78rem; color: var(--muted); }
.pl-prog b { color: var(--ink); }
.pl-outline { overflow-y: auto; padding: 8px 10px 16px; overscroll-behavior: contain; }
.pl-mod-h { width: 100%; display: grid; grid-template-columns: 1fr auto; text-align: left; background: none; border: 0; padding: 12px 10px 8px; font-weight: 700; font-size: .9rem; color: var(--ink); }
.pl-mod-h span { grid-column: 1; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pink-600); }
.pl-mod-h .chev { grid-row: 1 / span 2; grid-column: 2; align-self: center; width: 12px; height: 12px; transition: transform .3s var(--ease); }
.pl-mod-h[aria-expanded="false"] .chev { transform: rotate(-90deg); }
.pl-mod-h[aria-expanded="false"] + ol { display: none; }
.pl-mod ol { list-style: none; margin: 0 0 6px; padding: 0; }
.pl-mod a { display: flex; gap: 12px; align-items: flex-start; padding: 9px 10px; border-radius: 12px; font-size: .86rem; line-height: 1.35; color: var(--ink-2); transition: background .2s; }
.pl-mod a:hover { background: var(--blush); }
.pl-mod a small { display: block; font-size: .72rem; color: var(--muted); }
.pl-mod a.current { background: var(--pink-100); color: var(--ink); font-weight: 600; }
.pl-mod .st { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; margin-top: 1px; transition: background .3s, border-color .3s, transform .4s var(--ease); background: #fff; }
.pl-mod .st svg { width: 12px; height: 12px; color: #fff; opacity: 0; transform: scale(.4); transition: .3s var(--ease); stroke-width: 3; }
.pl-mod a.done .st { background: var(--pink); border-color: var(--pink); }
.pl-mod a.done .st svg { opacity: 1; transform: none; }
.pl-mod a.current .st { border-color: var(--pink); }
.pl-main { min-width: 0; }
.pl-crumb { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pink-600); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pl-crumb span { color: var(--muted); }
.pl-main h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin: 6px 0 18px; }
.pl-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); box-shadow: var(--shadow-lg); }
.pl-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pl-video-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 24px; background: radial-gradient(circle at 30% 20%, #4a2133, var(--ink) 70%); }
.pl-video-ph .ph-glow { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(242,65,143,.45), transparent 65%); animation: drift 9s ease-in-out infinite alternate; }
.ph-play { position: relative; width: 84px; height: 84px; border-radius: 50%; background: var(--pink); display: grid; place-items: center; margin-bottom: 16px; box-shadow: 0 0 0 0 rgba(242,65,143,.6); animation: ring 2.4s infinite; }
.ph-play svg { width: 36px; height: 36px; }
@keyframes ring { 70% { box-shadow: 0 0 0 26px rgba(242,65,143,0); } 100% { box-shadow: 0 0 0 0 rgba(242,65,143,0); } }
.pl-video-ph b { position: relative; font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; }
.pl-video-ph small { position: relative; color: rgba(255,255,255,.75); max-width: 420px; margin-top: 6px; font-size: .86rem; }
.pl-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 20px 0 24px; }
.pl-actions [data-complete] svg { width: 1.2em; height: 1.2em; }
.pl-actions [data-complete].is-done { animation: pop .5s var(--ease); }
@keyframes pop { 40% { transform: scale(1.08); } }
.pl-nav { display: flex; gap: 10px; }
.pl-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
.pl-grid h2 { font-family: var(--sans); font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.pl-grid h2 svg { width: 22px; height: 22px; color: var(--pink); }
.pl-notes p { color: var(--ink-2); font-size: .96rem; }
.pl-summary { font-family: var(--serif); font-size: 1.15rem !important; color: var(--ink) !important; font-weight: 600; line-height: 1.4; }
.mats { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.mats label { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; cursor: pointer; transition: background .2s; font-size: .9rem; }
.mats label:hover { background: var(--blush); }
.mats input { position: absolute; opacity: 0; pointer-events: none; }
.mats .box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--pink-300); display: grid; place-items: center; flex: none; transition: .25s var(--ease); }
.mats .box svg { width: 13px; height: 13px; color: #fff; stroke-width: 3; transform: scale(0); transition: transform .3s var(--ease); }
.mats input:checked + .box { background: var(--pink); border-color: var(--pink); }
.mats input:checked + .box svg { transform: none; }
.mats input:checked ~ span:last-child { color: var(--muted); text-decoration: line-through; }
.mats input:focus-visible + .box { box-shadow: 0 0 0 4px rgba(242,65,143,.25); }
.pl-outline-btn { display: none; }
.pl-mprog { display: none; }
.locked { max-width: 640px; margin: 30px auto; text-align: center; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 46px 30px; }
.locked h1 { font-size: clamp(2rem, 4vw, 2.8rem); text-transform: uppercase; }
.locked h1 .script { text-transform: none; font-size: 1.25em; }
.locked p { color: var(--ink-2); margin-bottom: 22px; }
.locked-ic { width: 76px; height: 76px; border-radius: 24px; margin: 0 auto 18px; display: grid; place-items: center; background: linear-gradient(135deg, var(--ink), #4a2133); color: var(--pink-300); animation: float 4s ease-in-out infinite; }
.locked-ic svg { width: 34px; height: 34px; }

/* ---------- admin ---------- */
.admin-hero { background: var(--ink); color: #fff; padding: 40px 0 0; position: relative; overflow: hidden; }
.admin-hero::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -160px; top: -260px; background: radial-gradient(circle, rgba(242,65,143,.5), transparent 70%); animation: drift 10s ease-in-out infinite alternate; }
.admin-hero .wrap { position: relative; }
.admin-hero-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.admin-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); text-transform: uppercase; margin: 0; }
.admin-hero h1 .script { text-transform: none; font-size: 1.25em; }
.admin-hero .btn-outline { --fg: #fff; border-color: rgba(255,255,255,.5); }
.admin-hero .btn-dark { --bg: #fff; --fg: var(--ink); }
.admin-tabs { display: flex; gap: 4px; margin-top: 28px; overflow-x: auto; scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs button { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: rgba(255,255,255,.7); padding: 14px 18px; border-radius: 14px 14px 0 0; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; transition: background .25s, color .25s; }
.admin-tabs button svg { width: 18px; height: 18px; }
.admin-tabs button:hover { color: #fff; background: rgba(255,255,255,.06); }
.admin-tabs button.active { background: var(--blush); color: var(--ink); }
.admin-tabs button.active svg { color: var(--pink); }
.admin-body { padding-top: 30px; min-height: 50vh; }
.ad-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.ad-stat { background: #fff; border-radius: var(--radius-lg); padding: 20px 22px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.ad-stat-ic { position: absolute; right: 16px; top: 16px; width: 44px; height: 44px; border-radius: 14px; background: var(--pink-100); color: var(--pink); display: grid; place-items: center; }
.ad-stat-ic svg { width: 22px; height: 22px; }
.ad-stat > b { display: block; font-family: var(--serif); font-size: 2.6rem; line-height: 1.1; }
.ad-stat > b em { font-style: normal; font-size: .5em; color: var(--muted); }
.ad-stat > span { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.ad-stat small { display: block; color: var(--muted); font-size: .78rem; margin-top: 6px; }
.seats { display: flex; gap: 6px; margin-top: 10px; }
.seats i { width: 22px; height: 22px; border-radius: 7px; background: var(--pink-100); border: 1.5px dashed var(--pink-300); transform: scale(.6); opacity: 0; transition: transform .5s var(--ease), opacity .5s; transition-delay: calc(var(--i) * 80ms); }
.seats.in i, .stagger.in .seats i { transform: none; opacity: 1; }
.seats i.on { background: var(--pink); border: 0; }
.seats i.gold { background: var(--gold); }
.seats.big i { width: 34px; height: 34px; border-radius: 10px; }
.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.admin-cols.wide-left { grid-template-columns: 1.6fr 1fr; }
.admin-cols h3, .sub-h { font-family: var(--sans); font-size: .84rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.admin-cols h3 svg { width: 20px; height: 20px; color: var(--pink); }
.sub-h { margin-top: 30px; }
.recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.recent li { display: flex; gap: 12px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.recent li:last-child { border: 0; }
.recent li div { flex: 1; min-width: 0; }
.recent small, .stu-id small { display: block; color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent time { font-size: .76rem; color: var(--muted); white-space: nowrap; }
.av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--pink), #ff8ab8); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .8rem; flex: none; }
.bycourse { list-style: none; margin: 0 0 16px; padding: 0; }
.bycourse li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.bycourse b { font-family: var(--serif); font-size: 1.2rem; color: var(--pink); }
.note svg { width: 1.1em; height: 1.1em; vertical-align: -.2em; color: var(--pink); }
.admin-tools { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.search-box { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 18px; transition: border-color .2s, box-shadow .2s; }
.search-box:focus-within { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(242,65,143,.12); }
.search-box svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search-box input { border: 0; outline: 0; background: none; font: inherit; padding: 13px 0; width: 100%; min-width: 0; }
.grant-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.grant-form input, .grant-form select, .sel select { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 11px 16px; font: inherit; font-size: .88rem; min-width: 0; }
.grant-form input { flex: 1 1 200px; }
.grant-form input:focus, .grant-form select:focus { outline: none; border-color: var(--pink); }
.grant-form.inline { margin-top: 12px; }
.stu-list { display: grid; gap: 10px; margin-top: 14px; }
.stu { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.stu summary { list-style: none; display: grid; grid-template-columns: auto minmax(0, 1.3fr) minmax(0, 1.4fr) 120px auto; gap: 14px; align-items: center; padding: 14px 18px; cursor: pointer; }
.stu summary::-webkit-details-marker { display: none; }
.stu summary .chev { width: 12px; height: 12px; transition: transform .3s var(--ease); }
.stu[open] summary .chev { transform: rotate(180deg); }
.stu[open] summary { border-bottom: 1px solid var(--line); background: var(--blush); }
.stu-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-bar { position: relative; height: 8px; }
.mini-bar i { display: block; height: 100%; background: var(--pink); border-radius: inherit; }
.mini-bar small { position: absolute; right: 0; top: 10px; font-size: .7rem; color: var(--muted); }
.mini-bar.empty { background: none; }
.stu-detail { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; padding: 18px 20px 22px; animation: formIn .4s var(--ease); }
.stu-detail h4 { font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pink-600); margin-bottom: 10px; }
.stu-enr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stu-enr li { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; background: var(--blush); border-radius: 12px; padding: 10px 14px; }
.stu-enr li small { display: block; color: var(--muted); font-size: .76rem; }
.row-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.link-btn { background: none; border: 0; padding: 0; font-size: .8rem; font-weight: 600; color: var(--pink-600); text-decoration: underline; text-underline-offset: 3px; }
.link-btn.danger { color: #b3261e; }
.stu-meta p { margin-bottom: 10px; }
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tbl th { text-align: left; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1.5px solid var(--line); }
.tbl td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.tbl td small { color: var(--muted); }
.roster-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; background: linear-gradient(135deg, #fff, var(--pink-100)); }
.roster-head h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0; }
.seat-meter { text-align: right; }
.seat-meter .seats { justify-content: flex-end; margin: 0 0 8px; }
.seat-meter b { display: block; font-size: .95rem; }
.seat-meter small { color: var(--muted); }
.add-form h3 { margin-bottom: 18px; }
.fl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sel { display: block; position: relative; margin-bottom: 16px; }
.sel span { position: absolute; left: 17px; top: 8px; font-size: .7rem; font-weight: 600; letter-spacing: .04em; color: var(--pink-600); }
.sel select { width: 100%; height: 58px; border-radius: 14px; padding: 22px 14px 6px; }
.chk { display: flex; gap: 10px; align-items: center; font-size: .85rem; color: var(--ink-2); margin: 0 0 14px; cursor: pointer; }
.chk input { accent-color: var(--pink); width: 18px; height: 18px; }
.add-form .link-btn { display: block; margin: 12px auto 0; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .ad-stat-grid { grid-template-columns: 1fr 1fr; }
  .pl { grid-template-columns: 280px 1fr; }
  .pl-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; max-width: 560px; }
  .auth-art { min-height: 260px; }
  .auth-art-copy { padding: 26px 26px 24px; }
  .auth-art h2 { font-size: 1.8rem; margin-bottom: 0; }
  .auth-perks { display: none; }
  .dash-body { grid-template-columns: 1fr; }
  .dash-nav { position: sticky; top: calc(var(--header-h) - 6px); z-index: 5; grid-row: auto; display: flex; overflow-x: auto; gap: 6px; background: rgba(253,244,245,.94); backdrop-filter: blur(10px); margin: 0 -24px 14px; padding: 10px 24px; scrollbar-width: none; }
  .dash-nav::-webkit-scrollbar { display: none; }
  .dash-nav a { white-space: nowrap; background: #fff; padding: 9px 14px; font-size: .8rem; min-height: 44px; }
  .dash-nav a:hover { padding-left: 14px; }
  .dash-settings, .admin-cols, .admin-cols.wide-left, .stu-detail { grid-template-columns: 1fr; }
  .pl { grid-template-columns: 1fr; }
  .pl-side { position: fixed; z-index: 75; left: 0; top: 0; bottom: 0; width: min(340px, 88vw); max-height: none; border-radius: 0 22px 22px 0; transform: translateX(-105%); transition: transform .5s var(--ease); }
  body.outline-open .pl-side { transform: none; box-shadow: 0 0 0 100vmax rgba(22,17,19,.45); }
  .pl-mprog { display: flex; align-items: center; gap: 12px; margin: -8px 0 16px; }
  .pl-mprog .bar { flex: 1; height: 8px; border-radius: 8px; background: var(--pink-100); overflow: hidden; }
  .pl-mprog .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), #ff8ab8); transition: width 1s var(--ease); }
  .pl-mprog small { font-size: .76rem; color: var(--muted); white-space: nowrap; }
  .pl-outline-btn { white-space: nowrap; display: inline-flex; position: fixed; z-index: 60; left: 50%; bottom: 18px; transform: translateX(-50%); align-items: center; gap: 8px; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 13px 22px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; box-shadow: var(--shadow-lg); }
  .pl-outline-btn svg { width: 18px; height: 18px; color: var(--pink-300); }
  body.outline-open .pl-outline-btn { display: none; }
  .stu summary { grid-template-columns: auto minmax(0, 1fr) auto; }
  .stu-chips { grid-column: 2 / -1; grid-row: 2; }
  .stu summary .mini-bar { grid-column: 2 / 3; grid-row: 3; margin-bottom: 14px; }
  .stu summary .chev { grid-column: 3; grid-row: 1; }
}
@media (max-width: 600px) {
  .auth { padding: 20px 12px 40px; min-height: 0; }
  .auth-shell { border-radius: 24px; }
  .auth-art { min-height: 190px; }
  .auth-card { padding: 26px 20px 28px; }
  .auth-tabs { align-self: stretch; }
  .auth-tabs button { padding: 10px 12px; font-size: .72rem; }
  .dash-hero { padding-top: 30px; }
  .dash-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }
  .dash-stat { flex-direction: column; gap: 4px; padding: 14px 12px; align-items: flex-start; }
  .dash-stat b { font-size: 1.9rem; }
  .dash-stat span { font-size: .6rem; letter-spacing: .06em; }
  .dash-nav { margin: 0 -16px 12px; padding: 10px 16px; }
  .dash-courses, .dash-certs { grid-template-columns: 1fr; }
  .bk { padding: 14px; gap: 14px; flex-wrap: wrap; }
  .bk .btn { width: 100%; }
  .bk .row-actions { width: 100%; padding-left: 78px; }
  .dash-actions { width: 100%; }
  .dash-actions .btn { flex: 1; }
  .soft-empty { flex-direction: column; text-align: center; }
  .pl-actions { flex-direction: column; align-items: stretch; }
  .pl-actions .btn { width: 100%; }
  .pl-nav { width: 100%; } .pl-nav .btn { flex: 1; }
  .pl-video { border-radius: 16px; }
  .ph-play { width: 60px; height: 60px; margin-bottom: 10px; } .ph-play svg { width: 26px; height: 26px; }
  .pl-video-ph small { font-size: .78rem; }
  .ad-stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ad-stat { padding: 16px; }
  .ad-stat > b { font-size: 2rem; }
  .ad-stat-ic { width: 34px; height: 34px; border-radius: 10px; right: 12px; top: 12px; }
  .ad-stat-ic svg { width: 18px; height: 18px; }
  .ad-stat-seats, .ad-stat:last-child { grid-column: 1 / -1; }
  .admin-tabs button span { font-size: .72rem; }
  .admin-tabs button { padding: 12px 14px; }
  .grant-form { width: 100%; }
  .grant-form select, .grant-form .btn { flex: 1 1 auto; }
  .fl-row { grid-template-columns: 1fr; gap: 0; }
  .roster-head { flex-direction: column; align-items: flex-start; }
  .seat-meter { text-align: left; } .seat-meter .seats { justify-content: flex-start; }
  .seats.big i { width: 30px; height: 30px; }
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { border-bottom: 1.5px solid var(--line); padding: 8px 0; }
  .tbl td { border: 0; padding: 4px 0; }
  .tbl td[data-l] { position: relative; padding-left: 96px; min-height: 26px; }
  .tbl td[data-l]::before { content: attr(data-l); position: absolute; left: 0; top: 7px; width: 88px; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .tbl td:not([data-l]) { display: block; }
  .cert-overlay { padding: 70px 10px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-blobs span, .auth-badge, .locked-ic, .empty-art span, .ph-play, .pl-video-ph .ph-glow, .admin-hero::before { animation: none !important; }
  .ring-fg { transition: none; stroke-dashoffset: var(--o); }
  .seats i { opacity: 1; transform: none; }
  .auth-perks li { opacity: 1; transform: none; }
}
.dash-certs > .soft-empty, .dash-bookings > .soft-empty { grid-column: 1 / -1; }

/* ==========================================================================
   v5 — app pages aligned with the marketing art direction (CSS only)
   ========================================================================== */
.auth { background: var(--mesh-pink); }
.auth-shell { border-radius: var(--r-xl); border: 1px solid rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .8); }
.auth-art { margin: 12px 0 12px 12px; border-radius: 999px 999px var(--radius-lg) var(--radius-lg); }
.auth-art-copy { padding: 40px 40px 44px; }
.auth-art h2, .auth-form h1, .auth-done h1, .dash-hello h1, .dash-sec-head h2, .dash-empty h3, .locked h1, .admin-hero h1, .api-offline h3 {
  text-transform: none; font-weight: 600; letter-spacing: -.025em; }
.auth-art h2 { font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 1; }
.auth-form h1, .auth-done h1 { font-size: clamp(2.2rem, 3.2vw, 2.9rem); line-height: 1.02; }
.auth-tabs { background: rgba(253, 244, 245, .9); border-color: rgba(22, 17, 19, .07); }
.auth-tabs button { text-transform: none; letter-spacing: 0; font-size: .88rem; font-weight: 600; padding: 10px 24px; }
.auth-tab-ind { background: var(--ink); box-shadow: 0 8px 18px -10px rgba(22, 17, 19, .8); }
.auth-perks b { text-transform: none; letter-spacing: 0; font-family: var(--serif); font-size: 1.05rem; }
.fl input, .fl select, .sel select { border: 1px solid rgba(22, 17, 19, .12); border-radius: var(--r-sm); background: rgba(255, 255, 255, .92); }
.fl input:hover, .sel select:hover { border-color: var(--pink-300); }
.fl input:focus, .sel select:focus { outline: none; background: #fff; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(242, 65, 143, .14); }

/* dashboard: ink stage panel like the marketing bands */
.dash-hero { background: var(--mesh-dark); color: #fff; margin: 14px clamp(8px, 1.2vw, 18px) 56px; border-radius: var(--r-xl); border: 0; padding-top: 64px; }
.dash-hero .auth-blobs { border-radius: inherit; }
.dash-hero .auth-blobs span { opacity: .28; }
.dash-hello h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
.dash-hello h1 .script { color: var(--pink-300); }
.dash-hello .lead-muted { color: rgba(255, 255, 255, .72); }
.dash-hero .eyebrow { color: var(--pink-300); }
.dash-actions .btn-dark { --bg: #fff; --fg: var(--ink); border-color: #fff; }
.dash-actions .btn-dark:hover { background: var(--pink-100); border-color: var(--pink-100); color: var(--ink); }
.dash-actions .btn-outline { --fg: #fff; border-color: rgba(255, 255, 255, .4); }
.dash-actions .btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }
.dash-actions .btn-outline .arrow, .dash-actions .btn-outline svg { color: inherit; }
.dash-stats { gap: 1px; background: var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.dash-stat { border-radius: 0; box-shadow: none; padding: 24px 28px; }
.dash-stat b { font-weight: 600; letter-spacing: -.02em; }
.dash-stat span { letter-spacing: .16em; font-size: .68rem; }
.dash-nav a { font-weight: 600; }
.dash-nav a.active { background: var(--ink); color: #fff; box-shadow: 0 12px 24px -14px rgba(22, 17, 19, .7); }
.dash-nav a.active svg { color: var(--pink-300); }
.dash-sec-head h2 { font-size: clamp(2rem, 3.2vw, 2.7rem); }
.dash-empty, .bk, .soft-empty, .cc, .cert-card, .set-form, .pl-side, .ad-stat, .stu, .locked { border-radius: var(--radius-lg); }
.dash-empty { background: radial-gradient(60% 80% at 100% 0%, rgba(247, 163, 199, .4), transparent 70%), #fff; border: 1px solid rgba(22, 17, 19, .05); }
.dash-empty h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.soft-empty { border: 1px dashed var(--pink-300); background: rgba(255, 255, 255, .7); }
.set-form h3, .admin-cols h3, .sub-h, .pl-grid h2 { text-transform: none; letter-spacing: -.01em; font-family: var(--serif); font-size: 1.25rem; }

/* course player */
.pl-side { border: 1px solid rgba(22, 17, 19, .05); }
.pl-side-head { background: var(--mesh-pink); }
.pl-main h1 { font-weight: 600; letter-spacing: -.025em; }
.pl-video { border-radius: var(--radius-lg); }
.pl-mod a.current { background: var(--ink); color: #fff; }
.pl-mod a.current small { color: rgba(255, 255, 255, .7); }
.pl-mod a.current .st { border-color: var(--pink-300); background: transparent; }

/* admin */
.admin-hero { background: var(--mesh-dark); margin: 14px clamp(8px, 1.2vw, 18px) 0; border-radius: var(--r-xl) var(--r-xl) 0 0; padding-top: 56px; }
.admin-hero h1 { font-size: clamp(2.6rem, 5vw, 4rem); }
.admin-hero h1 .script { color: var(--pink-300); }
.admin-tabs button { text-transform: none; letter-spacing: 0; font-size: .88rem; font-weight: 600; border-radius: 16px 16px 0 0; }
.ad-stat { border: 1px solid rgba(22, 17, 19, .05); }
.ad-stat > b { font-weight: 600; letter-spacing: -.02em; }
.ad-stat > span { letter-spacing: .16em; font-size: .68rem; color: var(--pink-600); }
.tbl th { letter-spacing: .16em; font-size: .64rem; }
@media (max-width: 900px) {
  .auth-art { margin: 10px 10px 0; border-radius: 200px 200px var(--radius) var(--radius); }
  .dash-nav a.active { background: var(--ink); }
}
@media (max-width: 600px) {
  .dash-hero { margin: 8px 8px 48px; border-radius: 28px; padding-top: 36px; }
  .dash-hero .wrap { padding: 0 18px; }
  .dash-stat { padding: 16px 12px; }
  .dash-stat span { font-size: .58rem; letter-spacing: .04em; line-height: 1.3; }
  .admin-hero { margin: 8px 8px 0; border-radius: 28px 28px 0 0; padding-top: 34px; }
  .auth-art { min-height: 220px; }
}
