/* Wayspire — shared styles for website, learner panel and admin panel.
   Brand colours are overridden at runtime from Admin → Site settings. */
:root {
  --navy: #0b1437;
  --blue: #3150e6;
  --blue-dark: color-mix(in srgb, var(--blue) 82%, black);
  --blue-2: color-mix(in srgb, var(--blue) 70%, white);
  --blue-soft: color-mix(in srgb, var(--blue) 9%, white);
  --navy-2: color-mix(in srgb, var(--navy) 85%, white);
  --on-dark: color-mix(in srgb, var(--blue) 25%, white);
  --ink: #0f172a;
  --text: #334155;
  --muted: #526074; /* ≥ 6:1 on white, ≥ 5.6:1 on --bg-2 */
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-2: #f6f8fd;
  --ok: #16a34a;
  --warn: #d97706;
  --bad: #dc2626;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { background: var(--bg-2); padding: 1px 6px; border-radius: 5px; font-size: .9em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 32px); }
.section { padding: clamp(56px, 8vw, 92px) 0; }
.section.tight { padding: 36px 0; }
.section.alt { background: var(--bg-2); }
.section.dark { background: var(--navy); color: var(--on-dark); }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .card { background: var(--navy-2); border-color: transparent; }
.section.dark .muted, .section.dark .lead { color: var(--on-dark); }
.sec-head { margin-bottom: 36px; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.hidden { display: none !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 10px; border: 1px solid var(--blue); background: var(--blue); color: #fff; font: 600 .97rem var(--font); cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; text-decoration: none !important; white-space: nowrap; }
.btn:hover { background: var(--blue-dark); box-shadow: 0 6px 18px color-mix(in srgb, var(--blue) 30%, transparent); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn-sm { padding: 8px 14px; font-size: .88rem; }
.btn-xs { padding: 4px 10px; font-size: .8rem; border-radius: 8px; }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--blue-soft); box-shadow: none; }
.btn-plain { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-plain:hover { background: var(--bg-2); box-shadow: none; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: #e8ecff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); box-shadow: none; }
.btn-danger { background: #fff; color: var(--bad); border-color: #fecaca; }
.btn-danger:hover { background: #fef2f2; box-shadow: none; }
.btn-ok { background: var(--ok); border-color: var(--ok); }
.btn-ok:hover { background: #15803d; }
.btn-block { width: 100%; }

/* Bars + header */
.demo-bar { background: #fff7ed; color: #9a3412; font-size: .84rem; text-align: center; padding: 6px 16px; border-bottom: 1px solid #fed7aa; }
.ann-bar { background: linear-gradient(90deg, var(--blue), var(--blue-dark)); color: #fff; font-size: .9rem; }
.ann-bar .wrap { display: flex; align-items: center; justify-content: center; gap: 8px 16px; flex-wrap: wrap; padding: 8px 32px; position: relative; text-align: center; }
.ann-bar a { color: #fff; font-weight: 700; text-decoration: underline; }
.ann-bar .countdown b { background: rgba(255,255,255,.18); padding: 1px 6px; border-radius: 5px; font-variant-numeric: tabular-nums; }
.ann-x { position: absolute; right: 0; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff; font-size: 1.3rem; cursor: pointer; opacity: .8; }
.site-header { position: sticky; top: 0; z-index: 50; background: #000; border-bottom: 1px solid #1f2937; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--navy); text-decoration: none !important; }
.site-header .brand { color: #fff; }
.brand-wordmark { height: 40px; width: auto; }
.brand-logo { height: 34px; width: auto; }
.links { display: flex; align-items: center; gap: 24px; }
.links a { color: var(--text); font-weight: 600; font-size: .94rem; }
.site-header .links > a, .site-header .auth-slot > a:not(.btn) { color: #e5e7eb; }
.site-header .links a:hover { color: #fff; }
.links a[aria-current="page"] { color: var(--blue); }
.site-header .links a[aria-current="page"] { color: var(--blue-2); }
.links a.btn { color: #fff; }
.auth-slot { display: flex; align-items: center; gap: 18px; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }
.site-header .menu-btn span { background: #fff; }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #000; border-bottom: 1px solid #1f2937; padding: 8px 16px 16px; display: none; box-shadow: 0 12px 24px rgba(0,0,0,.4); }
  .links.open { display: flex; }
  .links > a { padding: 12px 4px; border-bottom: 1px solid #1f2937; }
  .brand-wordmark { height: 34px; }
  .auth-slot { padding-top: 12px; flex-wrap: wrap; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--blue) 75%, black) 0%, transparent 60%), radial-gradient(800px 400px at -10% 110%, color-mix(in srgb, var(--blue) 45%, var(--navy)) 0%, transparent 60%), var(--navy); color: var(--on-dark); padding: clamp(64px, 10vw, 116px) 0; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--blue-2), #dbe2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .eyebrow { color: var(--blue-2); }
.hero .lead { color: var(--on-dark); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-img { justify-self: center; width: min(380px, 85%); filter: drop-shadow(0 30px 60px color-mix(in srgb, var(--blue) 45%, transparent)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
.ticker { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; color: var(--blue-2); font-weight: 600; }
.ticker span + span::before { content: "•"; margin-right: 10px; opacity: .6; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } .hero-img { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-img { animation: none; } html { scroll-behavior: auto; } }

.page-head { background: var(--navy); color: var(--on-dark); padding: 52px 0 44px; }
.page-head h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-head .lead { color: var(--on-dark); }
.crumbs { font-size: .87rem; margin-bottom: 10px; color: var(--on-dark); }
.crumbs a { color: #fff; opacity: .85; }

/* Grids, cards */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g4, .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 6px; }
.card p:last-child { margin-bottom: 0; }
.icon { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); margin-bottom: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; text-align: center; }
.stats > div { padding: 18px 10px; border-radius: var(--radius); background: var(--bg-2); }
.section.alt .stats > div { background: #fff; }
.section.dark .stats > div { background: var(--navy-2); }
.stat-v { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--blue); }
.section.dark .stat-v { color: #fff; }
.stat-l { font-size: .9rem; color: var(--muted); font-weight: 600; }
.step .num { width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 14px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.img-left .split-img { order: -1; }
.split-img img { border-radius: 20px; width: 100%; background: var(--navy); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split.img-left .split-img { order: 0; } }
.quote blockquote { margin: 0 0 18px; font-size: 1.02rem; color: var(--ink); }
.quote figcaption { display: flex; gap: 12px; align-items: center; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar.ph { display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-weight: 800; }
.logos { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; justify-content: center; }
.logos img { height: 38px; width: auto; filter: grayscale(1); opacity: .75; transition: .2s; }
.logos img:hover { filter: none; opacity: 1; }
.logo-txt { font-weight: 800; font-size: 1.3rem; color: var(--muted); }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 10px; }
.faq summary { padding: 16px 20px; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 20px 6px; color: var(--text); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 12px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.gallery figcaption { font-size: .88rem; color: var(--muted); margin-top: 6px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; color: inherit; text-decoration: none !important; }
.contact-card .icon { margin: 0; }

/* Course cards */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.course-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.course-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15, 23, 42, .12); }
.thumb { aspect-ratio: 16/8; background: linear-gradient(135deg, hsl(var(--h) 72% 50%), hsl(calc(var(--h) + 35) 70% 30%)); display: grid; place-items: center; position: relative; overflow: hidden; text-decoration: none !important; }
.thumb::after { content: ""; position: absolute; inset: 0; background: url(/assets/img/mark.png) right -20px bottom -30px / 50% no-repeat; opacity: .16; }
.thumb span { color: #fff; font-weight: 800; font-size: 1.2rem; text-align: center; padding: 0 20px; position: relative; z-index: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.course-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.course-card h3 { margin: 2px 0 0; font-size: 1.1rem; }
.course-card h3 a { color: var(--ink); }
.course-card p { color: var(--muted); font-size: .9rem; flex: 1; margin: 0; }
.tools { display: flex; flex-wrap: wrap; gap: 6px; }
.tools span { font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 6px; background: var(--bg-2); color: var(--text); border: 1px solid var(--line); }
.rating { display: flex; align-items: center; gap: 6px; font-size: .88rem; }
.stars { color: #f59e0b; display: inline-flex; gap: 1px; }
.price-row { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.price { color: var(--ink); font-size: 1.2rem; }
.off { font-size: .78rem; font-weight: 800; color: #166534; background: #dcfce7; padding: 2px 7px; border-radius: 6px; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pill { display: inline-block; align-self: flex-start; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--blue-soft); color: var(--blue-dark); white-space: nowrap; }
.pill.ok { background: #dcfce7; color: #166534; }
.pill.warn { background: #fef3c7; color: #92400e; }
.pill.bad { background: #fee2e2; color: #991b1b; }
.pill.grey { background: #f1f5f9; color: #475569; }
.skeleton { min-height: 360px; border-radius: var(--radius); background: linear-gradient(90deg, #f1f5f9, #e2e8f0, #f1f5f9); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: -12px 0 28px; }
.filter-tabs button { border: 1px solid var(--line); background: #fff; padding: 8px 16px; border-radius: 99px; font: 600 .9rem var(--font); color: var(--text); cursor: pointer; }
.filter-tabs button[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Programs */
.prog-group { margin-bottom: 24px; }
.prog-group h3 { font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-size: .9rem; }
.chip:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.chip.has { border-color: color-mix(in srgb, var(--blue) 30%, white); background: var(--blue-soft); color: var(--blue-dark); }
.chip small { font-weight: 600; color: var(--muted); }

/* CTA */
.cta { background: linear-gradient(120deg, var(--blue), var(--blue-dark)); color: #eef2ff; border-radius: 22px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.cta.solo { grid-template-columns: 1fr; text-align: center; }
.cta h2 { color: #fff; }
.cta a:not(.btn) { color: #fff; font-weight: 700; }
.cta .eyebrow { color: #dbe2ff; }
.cta form { background: #fff; padding: 24px; border-radius: 16px; box-shadow: var(--shadow); color: var(--text); }
@media (max-width: 820px) { .cta { grid-template-columns: 1fr; } }

/* Forms */
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { form .row { grid-template-columns: 1fr !important; } }
label { display: block; font-weight: 600; font-size: .88rem; color: var(--ink); margin-bottom: 14px; }
label > span { display: block; margin-bottom: 6px; }
input, select, textarea { width: 100%; font: inherit; font-size: .95rem; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent); }
input[type=color] { padding: 2px; height: 42px; }
textarea { min-height: 96px; resize: vertical; }
.form-note { font-size: .84rem; color: var(--muted); margin-top: 10px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.check input { width: auto; }
.err { color: var(--bad); font-size: .9rem; min-height: 1.3em; margin: 4px 0 10px; }

/* Course detail */
.course-hero { background: var(--navy); color: var(--on-dark); padding: 44px 0 40px; }
.course-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.course-hero .lead { color: var(--on-dark); }
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 22px; font-size: .92rem; }
.facts div { display: flex; gap: 8px; align-items: center; }
.facts strong { color: #fff; }
.course-layout { display: grid; grid-template-columns: 1fr 370px; gap: 40px; align-items: start; }
.buy-box { position: sticky; top: 90px; margin-top: -120px; }
.buy-box .price { font-size: 2rem; font-weight: 800; }
.buy-box ul { list-style: none; padding: 0; margin: 18px 0 0; font-size: .92rem; }
.buy-box li { padding: 8px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.buy-box li strong { text-align: right; }
@media (max-width: 960px) { .course-layout { grid-template-columns: 1fr; } .buy-box { order: -1; position: static; margin-top: 0; } }
.c-section { margin-bottom: 44px; }
.c-section > h2 { font-size: 1.5rem; }
.ticks { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin: 0; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2316a34a' stroke-width='3' d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }
@media (max-width: 560px) { .ticks { grid-template-columns: 1fr; } }
.modules details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: #fff; }
.modules summary { padding: 14px 18px; cursor: pointer; font-weight: 700; color: var(--ink); display: flex; gap: 12px; align-items: baseline; }
.modules summary .n { color: var(--blue); font-size: .8rem; font-weight: 800; white-space: nowrap; }
.modules details > div { padding: 0 18px 14px 18px; color: var(--muted); font-size: .93rem; }
.lesson-mini { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.lesson-mini li { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: center; font-size: .93rem; }
.lesson-mini li:first-child { border-top: 0; }
.lesson-mini .t { flex: 1; }
.sticky-buy { display: none; }
@media (max-width: 960px) {
  .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px; gap: 12px; align-items: center; justify-content: space-between; box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
  .sticky-buy ~ .wa-float, body:has(.sticky-buy) .wa-float { bottom: 82px; }
}
.review { border-top: 1px solid var(--line); padding: 16px 0; }
.review:first-child { border-top: 0; }

/* Prose */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .3em; }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-dark); padding: 36px 0 0; font-size: .88rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 24px 32px; }
.foot-grid h4 { color: #fff; font-size: .9rem; margin-bottom: 10px; }
.foot-grid nav a { display: block; color: var(--on-dark); margin-bottom: 5px; }
.foot-logo { width: 170px; height: auto; margin: -12px 0 4px -10px; }
.foot-logo.wordmark { width: auto; height: 34px; margin: 0 0 10px; }
.muted-inv { color: var(--on-dark); max-width: 38ch; margin: 0 0 10px; }
.foot-contact { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-contact a, .foot-contact span { display: flex; gap: 6px; align-items: center; color: var(--on-dark); }
.disclaimer { margin-top: 22px; padding: 10px 14px; border-radius: 10px; background: rgba(255,255,255,.05); font-size: .78rem; line-height: 1.5; opacity: .85; }
.foot-bottom { padding-right: 72px !important; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 18px; padding: 14px 0; font-size: .82rem; }
.foot-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot-meta a { color: var(--on-dark); }
@media (max-width: 820px) {
  .foot-grid { grid-template-columns: 1fr; gap: 14px; }
  /* Phones: each link group becomes one wrapped line instead of a tall column. */
  .foot-grid nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
  .foot-grid nav h4 { width: 100%; margin: 0 0 2px; }
  .foot-grid nav a { margin: 0; }
}
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); z-index: 40; }
.wa-float:hover { transform: scale(1.06); }

/* Toast + modal */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: .93rem; opacity: 0; pointer-events: none; transition: .25s; z-index: 200; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); }
.modal-back { position: fixed; inset: 0; background: rgba(15, 23, 42, .55); z-index: 150; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 16px; width: min(460px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.modal.wide { width: min(880px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px 0; }
.modal-head h3 { margin: 0; }
.modal-head .x { border: 0; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); }
.modal-body { padding: 16px 22px 20px; overflow: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

/* ───── Panels (learner + admin) ───── */
.panel-body { background: var(--bg-2); min-height: 100vh; }
.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { background: var(--navy); color: var(--on-dark); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow: auto; display: flex; flex-direction: column; }
.side .brand { color: #fff; padding: 6px 10px 18px; font-size: 1.15rem; }
.side .brand small { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-2); }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a, .side .side-foot a, .side .side-foot button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--on-dark); font-weight: 600; font-size: .93rem; text-decoration: none; border: 0; background: none; cursor: pointer; font-family: inherit; width: 100%; text-align: left; }
.side nav a:hover, .side .side-foot a:hover, .side .side-foot button:hover { background: rgba(255,255,255,.07); }
.side nav a[aria-current="page"] { background: var(--blue); color: #fff; }
.side .badge { margin-left: auto; background: var(--bad); color: #fff; font-size: .72rem; padding: 1px 7px; border-radius: 99px; }
.side .group { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; padding: 16px 12px 6px; opacity: .75; }
.side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); }
.main { padding: 28px clamp(16px, 3vw, 40px) 60px; min-width: 0; }
.topbar { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 90; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.4); }
  .topbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
  .topbar .brand { font-size: 1.1rem; }
}
.page-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-title h1 { font-size: 1.7rem; margin: 0; }
.page-title p { margin: 4px 0 0; color: var(--muted); }
.stat-card .v { font-size: 1.8rem; font-weight: 800; color: var(--ink); line-height: 1.2; }
.stat-card .l { color: var(--muted); font-size: .88rem; font-weight: 600; }
.stat-card { display: flex; gap: 14px; align-items: center; padding: 18px 20px; }
.stat-card .icon { margin: 0; }
.progress { height: 8px; background: #e2e8f0; border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-2)); border-radius: 99px; transition: width .3s; }
.empty { text-align: center; padding: 44px 24px; color: var(--muted); }
.empty .icon { margin: 0 auto 12px; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-2); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td .btn { margin: 2px 4px 2px 0; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.toolbar input[type=search], .toolbar select { max-width: 260px; }
.list-row { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); }
.list-row:first-child { border-top: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.tabs { display: flex; background: var(--bg-2); border-radius: 10px; padding: 4px; margin-bottom: 20px; }
.tabs button { flex: 1; border: 0; background: none; padding: 9px; border-radius: 8px; font: 600 .93rem var(--font); color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.subtabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.subtabs button { border: 0; background: none; padding: 10px 14px; font: 600 .92rem var(--font); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subtabs button[aria-selected="true"] { color: var(--blue); border-color: var(--blue); }

/* Auth */
.auth-wrap { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px 16px; background: var(--bg-2); }
.auth-card { width: min(440px, 100%); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Player */
.player { aspect-ratio: 16/9; background: #000; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; color: #94a3b8; text-align: center; }
.player iframe, .player video { width: 100%; height: 100%; border: 0; }
.player-layout { display: grid; grid-template-columns: 1fr 350px; gap: 24px; align-items: start; }
@media (max-width: 1000px) { .player-layout { grid-template-columns: 1fr; } }
.lesson-list { list-style: none; margin: 0; padding: 0; max-height: 70vh; overflow: auto; }
.lesson-list button { width: 100%; text-align: left; display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border: 0; border-top: 1px solid var(--line); background: #fff; font: 500 .9rem var(--font); color: var(--text); cursor: pointer; }
.lesson-list li:first-child button { border-top: 0; }
.lesson-list button:hover { background: var(--bg-2); }
.lesson-list button[aria-current="true"] { background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.lesson-list .dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #cbd5e1; margin-top: 1px; }
.lesson-list .done .dot { background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3.5' d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/11px no-repeat; border-color: var(--ok); }
.lesson-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0 8px; }
.quiz-q { margin-bottom: 20px; }
.quiz-q label { display: flex; gap: 10px; align-items: center; font-weight: 500; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; cursor: pointer; }
.quiz-q label input { width: auto; }
.quiz-q label.right { border-color: var(--ok); background: #f0fdf4; }
.quiz-q label.wrong { border-color: var(--bad); background: #fef2f2; }

/* Admin editors */
.ed-block { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.ed-block > header { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; user-select: none; }
.ed-block > header .t { flex: 1; font-weight: 700; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-block > header .t small { font-weight: 500; color: var(--muted); margin-left: 6px; }
.ed-block > .ed-body { padding: 4px 16px 16px; border-top: 1px solid var(--line); }
.ed-block.collapsed > .ed-body { display: none; }
.f-list { border: 1px dashed #cbd5e1; border-radius: 10px; padding: 10px; margin-bottom: 14px; background: var(--bg-2); }
.f-list > .lbl { font-weight: 700; font-size: .88rem; color: var(--ink); margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.f-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 12px 0; margin-bottom: 8px; position: relative; }
.f-item .f-tools { position: absolute; top: 6px; right: 6px; display: flex; gap: 2px; z-index: 1; }
.f-item .f-tools button { border: 0; background: var(--bg-2); border-radius: 6px; width: 26px; height: 26px; cursor: pointer; color: var(--muted); }
.f-item .f-tools button:hover { color: var(--ink); background: var(--line); }
.f-item > label:first-of-type { padding-right: 90px; }
.f-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px; }
.img-field { display: flex; gap: 10px; align-items: center; }
.img-field .prev { width: 64px; height: 48px; border-radius: 8px; background: var(--bg-2) center/cover no-repeat; border: 1px solid var(--line); flex: none; }
.img-field input { flex: 1; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.media-grid figure { margin: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; cursor: pointer; position: relative; }
.media-grid figure.sel { border-color: var(--blue); }
.media-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--bg-2); }
.media-grid figcaption { font-size: .78rem; padding: 6px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.icon-pick { display: flex; flex-wrap: wrap; gap: 4px; }
.icon-pick button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; color: var(--text); display: grid; place-items: center; }
.icon-pick button[aria-pressed="true"] { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.save-bar { position: sticky; bottom: 0; background: rgba(255,255,255,.95); backdrop-filter: blur(6px); border-top: 1px solid var(--line); padding: 12px 0; margin-top: 20px; display: flex; gap: 10px; justify-content: flex-end; z-index: 5; }
.dirty-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); display: inline-block; }

/* Certificate / brochure / verify */
.verify-box { max-width: 560px; margin: 0 auto; }
@media print {
  .no-print, .site-header, .demo-bar, .ann-bar, .site-footer, .wa-float, .sticky-buy { display: none !important; }
  body { background: #fff; }
}

/* ───── Protected video player ───── */
.pp { position: relative; aspect-ratio: 16/9; background: #000; border-radius: var(--radius); overflow: hidden; user-select: none; -webkit-user-select: none; outline: none; }
.pp:fullscreen { border-radius: 0; aspect-ratio: auto; width: 100vw; height: 100vh; }
.pp-video, .pp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.pp-shield { position: absolute; inset: 0 0 52px 0; cursor: pointer; z-index: 2; }
.pp-top { position: absolute; left: 0; right: 0; top: 0; height: 18%; z-index: 2; pointer-events: none; background: linear-gradient(#000 70%, transparent); opacity: 0; transition: opacity .4s; }
.pp.masking .pp-top { opacity: 1; }
.pp-wm { position: absolute; z-index: 3; color: rgba(255,255,255,.38); font: 600 13px/1 var(--font); text-shadow: 0 1px 2px rgba(0,0,0,.6); pointer-events: none; transition: left 1.5s, top 1.5s; white-space: nowrap; }
.pp-cover { position: absolute; inset: 0 0 52px 0; z-index: 4; display: none; flex-direction: column; gap: 10px; align-items: center; justify-content: center; background: linear-gradient(to bottom, rgba(11,20,55,.98) 0, rgba(11,20,55,.98) 18%, rgba(11,20,55,.7) 40%, rgba(11,20,55,.7) 70%, rgba(11,20,55,.95) 100%); cursor: pointer; }
.pp-cover.on { display: flex; }
.pp-big { width: 72px; height: 72px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.pp-big svg { width: 34px; height: 34px; }
.pp-msg { color: #fff; font-weight: 600; }
.pp-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 52px; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: #0b1020; color: #fff; }
.pp-btn { background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; border-radius: 6px; display: grid; place-items: center; }
.pp-btn:hover { background: rgba(255,255,255,.12); }
.pp-time { font: 600 .8rem var(--font); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pp-seek { flex: 1; min-width: 60px; accent-color: var(--blue); padding: 0; border: 0; background: none; height: 20px; }
.pp-speed { width: auto; padding: 3px 6px; background: #1c2440; color: #fff; border: 1px solid #2c365c; border-radius: 6px; font-size: .8rem; }
@media (max-width: 560px) { .pp-time { display: none; } .pp-bar { gap: 4px; padding: 0 6px; } }

/* Formats + mentors */
.formats { display: grid; gap: 10px; margin-bottom: 14px; }
.fmt { display: block; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; margin: 0; font-weight: 500; }
.fmt:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.fmt input { width: auto; margin: 0 8px 0 0; accent-color: var(--blue); }
.fmt .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.fmt ul { margin: 8px 0 0 26px; padding: 0; font-size: .85rem; color: var(--muted); }
.fmt-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.fmt-badge { white-space: nowrap; font-size: .76rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: #f1f5f9; color: #475569; }
.fmt-badge.ml { background: #ede9fe; color: #6d28d9; }
.mentor-card { display: flex; flex-direction: column; align-items: center; text-align: center; color: inherit; text-decoration: none !important; }
.mentor-card .ph { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-weight: 800; font-size: 2rem; margin-bottom: 12px; }
.mentor-row { display: flex; gap: 14px; align-items: center; color: inherit; text-decoration: none !important; }
.mentor-row .ph { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-weight: 800; }
.checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; margin-bottom: 14px; }
.checklist label { margin: 0; display: flex; gap: 8px; align-items: center; font-weight: 500; }
.checklist input { width: auto; }
.f-group { border-left: 3px solid var(--blue-soft); padding-left: 14px; margin: 6px 0 16px; }
.f-group > h4 { margin: 4px 0 10px; }
.buy-box .fmt ul { margin: 6px 0 0 22px; }
.buy-box .fmt li { display: list-item; border: 0; padding: 1px 0; }

/* Plain-HTML copy of the page for search engines / AI crawlers (see functions/_seo.js). */
.ssr { display: none; }

/* Phones: category filters scroll sideways instead of taking half the screen; smaller chat button. */
@media (max-width: 640px) {
  .filter-tabs#tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 4px; margin-inline: -16px !important; padding-inline: 16px; }
  .filter-tabs#tabs::-webkit-scrollbar { display: none; }
  .filter-tabs#tabs button { flex: none; white-space: nowrap; }
  .toolbar #q { width: 100% !important; }
  .toolbar #fmt, .toolbar #sort { flex: 1; }
  .wa-float { width: 48px; height: 48px; right: 12px; }
}

/* Visitor sitemap (/sitemap) */
.sitemap { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 36px; }
.sitemap h2 { font-size: 1.05rem; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--blue-soft); }
.sitemap ul { list-style: none; margin: 0; padding: 0; }
.sitemap li { padding: 5px 0; }
.sitemap li .small { display: block; }

/* Curriculum topics and capstone projects (program page) */
.modules ul.topics, .mod ul.topics { margin: 4px 0 0; padding-left: 20px; }
.modules ul.topics li, .mod ul.topics li { padding: 2px 0; }
.capstone h3 { font-size: 1.02rem; }
.capstone .tools { margin-top: 10px; }
