/* ============================================================
   YS LUXURY — design system
   A premium dark theme with champagne-gold accents, high-contrast
   serif display type (Playfair Display) and a refined tracked sans
   (Montserrat). Warm near-black surfaces, generous space, gold detailing.
   ------------------------------------------------------------
   TOKENS
     Ink      bg #0c0b09 · bg-2 #100e0b · surface #16140f · raised #1d1a13
     Gold     gold #c9a96a · light #e7cf95 · deep #a8884a · grad below
     Text     ivory #f3efe6 · muted #a89f8d · faint #79726410
     Lines    hairline rgba(201,168,76,.16) · border #2a2620
     Type     serif = Playfair Display · sans = Montserrat
   ============================================================ */
:root {
  --bg: #0D0D0D;
  --bg-2: #111111;
  --surface: #161616;
  --raised: #1E1E1E;
  --text: #F5F0E8;
  --muted: #a59d8c;
  --faint: #767066;
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-deep: #8B6914;
  --gold-grad: linear-gradient(135deg, #C9A84C 0%, #E8C97A 55%, #B8963E 100%);
  --line: rgba(201, 168, 76, .16);
  --border: #2a2a2a;
  --ok: #9cbf8c;
  --danger: #d98a8a;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .55);
  --shadow-sm: 0 8px 28px rgba(0, 0, 0, .4);
  --container: 1180px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-weight: 400; line-height: 1.65; font-size: 16px;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
/* faint gold vignette at top */
body::before {
  content: ""; position: fixed; inset: 0 0 auto 0; height: 480px; pointer-events: none; z-index: 0;
  background: radial-gradient(900px 380px at 78% -8%, rgba(201,168,76,.10), transparent 70%);
}
main, header, footer { position: relative; z-index: 1; }
a { color: var(--gold-light); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.15; letter-spacing: .002em; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
code { background: var(--raised); padding: 1px 7px; border-radius: 4px; font-size: .85em; color: var(--gold-light); font-family: ui-monospace, monospace; }
.container { width: min(var(--container), 92vw); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.center { text-align: center; }
.ico { width: 1.1em; height: 1.1em; fill: currentColor; vertical-align: -.15em; flex: none; }
.site-main { flex: 1; padding-bottom: 80px; }
.container.site-main { padding-top: 44px; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(12, 11, 9, .72); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 30px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-weight: 800; color: var(--text); font-size: 1.32rem; letter-spacing: .01em; }
.brand:hover { color: var(--text); }
.logo { width: 32px; height: 32px; filter: drop-shadow(0 2px 6px rgba(201,168,76,.35)); }
.site-nav { display: flex; gap: 6px; }
.nav-link { color: var(--muted); font-weight: 600; font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; padding: 10px 14px; border-radius: 4px; }
.nav-link:hover { color: var(--gold-light); }
.nav-link.is-active { color: var(--gold); }
.site-account { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.who { color: var(--muted); font-size: .8rem; letter-spacing: .05em; }
.inline { display: inline; margin: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: .78rem; line-height: 1;
  text-transform: uppercase; letter-spacing: .13em;
  padding: 13px 24px; border-radius: 4px; border: 1px solid transparent; transition: .2s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--gold-grad); color: #1a1407; box-shadow: 0 6px 22px rgba(201,168,76,.28); }
.btn-primary:hover { color: #1a1407; filter: brightness(1.06); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--gold-light); border-color: var(--gold-deep); }
.btn-secondary:hover { color: var(--gold-light); background: rgba(201,168,76,.08); border-color: var(--gold); }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--gold-deep); }
.btn-white { background: var(--gold-grad); color: #1a1407; }
.btn-white:hover { color: #1a1407; filter: brightness(1.06); }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(217,138,138,.4); }
.btn-danger:hover { background: rgba(217,138,138,.12); color: var(--danger); }
.btn-lg { padding: 16px 32px; font-size: .82rem; }
.btn-sm { padding: 9px 15px; font-size: .7rem; letter-spacing: .1em; }
.btn-block { width: 100%; }

/* ---- Badges / chips / pills / tags ---- */
.badge { display: inline-block; font-family: var(--sans); font-size: .64rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; text-transform: uppercase; letter-spacing: .12em; border: 1px solid var(--line); color: var(--muted); }
.lv-beg { color: #b9cda9; border-color: rgba(156,191,140,.35); }
.lv-int { color: var(--gold-light); border-color: var(--gold-deep); }
.lv-adv { color: #d7b6c4; border-color: rgba(190,140,160,.4); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 6px 13px; border-radius: 999px; letter-spacing: .03em; }
.chip .ico { color: var(--gold); }
.tag { font-size: .66rem; background: var(--raised); border: 1px solid var(--line); padding: 2px 8px; border-radius: 4px; color: var(--muted); letter-spacing: .04em; }
.tag-free { color: var(--gold-light); border-color: var(--gold-deep); }
.tag-warn { color: var(--danger); border-color: rgba(217,138,138,.4); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 30px; }
.pill { padding: 10px 20px; border: 1px solid var(--border); border-radius: 999px; font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); background: transparent; }
.pill:hover { border-color: var(--gold-deep); color: var(--gold-light); }
.pill.is-active { background: var(--gold-grad); color: #1a1407; border-color: transparent; }

/* ---- Alerts ---- */
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 18px; font-size: .9rem; border: 1px solid; }
.alert-error { background: rgba(217,138,138,.1); border-color: rgba(217,138,138,.4); color: #e9b3b3; }
.alert-info { background: rgba(201,168,76,.08); border-color: var(--line); color: var(--gold-light); }
.alert-success { background: rgba(156,191,140,.1); border-color: rgba(156,191,140,.35); color: #bcd6ac; }
.alert .btn { margin-left: 10px; vertical-align: baseline; }

/* --- admin tabs + flagged rows --- */
.admin-tabs { margin-bottom: 18px; }
.row-flagged td { background: rgba(217,138,138,.05); }

/* --- progress: completed ticks + dashboard bars --- */
.lesson.is-done .lesson-no { color: var(--gold); }
.lesson.is-done .lesson-no .ico { width: 16px; height: 16px; fill: var(--gold); }
.lesson.is-done .lesson-title { opacity: .75; }
.playlist li.pl-done .pl-no { color: var(--gold); }
.cc-progress {
  height: 4px; border-radius: 2px; background: rgba(201,168,76,.15);
  margin: 10px 0 2px; overflow: hidden;
}
.cc-progress-fill {
  display: block; width: 0; height: 100%;
  background: var(--gold-grad); border-radius: 2px;
  transition: width .6s ease;
}

/* --- FAQ accordion --- */
.faq-list { max-width: 760px; margin: 0 auto 28px; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); margin-bottom: 10px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 16px 20px; font-weight: 600; font-size: .95rem;
  list-style: none; position: relative; padding-right: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-size: 1.2rem; font-weight: 400; transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { margin: 0; padding: 0 20px 16px; color: var(--muted, #aaa); font-size: .9rem; line-height: 1.7; }
.faq-more { max-width: 760px; margin: 0 auto; }

/* --- polish: selection, keyboard focus, scrollbar --- */
::selection { background: rgba(201,168,76,.4); color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
html { scrollbar-width: thin; scrollbar-color: #3a3220 transparent; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2b2617; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #4a3f22; }
/* Arabic mark — يسيرة — a quiet companion to the wordmark, never the headline. */
.ar-mark { font-family: "Amiri", serif; color: var(--gold); font-size: 1.05em; }

/* ---- Section headings: gold eyebrow rule ---- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.section-head h2, .features h2, .page-head h1 { position: relative; }
.section-head h2::before, .features h2.center::before {
  content: ""; display: block; width: 46px; height: 2px; background: var(--gold-grad); margin-bottom: 16px;
}
.features h2.center::before { margin-inline: auto; }
.seeall { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }

/* ---- Hero ---- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  width: min(var(--container), 92vw); margin: 48px auto 16px; padding: 28px 0; }
.eyebrow { display: inline-block; color: var(--gold); font-weight: 600; font-size: .76rem; text-transform: uppercase; letter-spacing: .26em; margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); font-weight: 800; line-height: 1.08; }
.grad { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; }
.hero p { font-family: var(--sans); font-size: 1.06rem; color: var(--muted); max-width: 34em; margin: 22px 0 32px; line-height: 1.8; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 44px; margin-top: 48px; flex-wrap: wrap; padding-top: 30px; border-top: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat strong { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--gold-light); }
.stat span { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; }
.hero-art { display: flex; justify-content: center; }
.hero-svg { width: 100%; max-width: 480px; filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)); }

/* ---- Sections ---- */
section { width: min(var(--container), 92vw); margin: 72px auto; }
section.band { background: var(--bg-2); width: 100%; padding: 64px 0; margin: 72px 0; border-block: 1px solid var(--line); }
.band > * { width: min(var(--container), 92vw); margin-inline: auto; }

/* ---- Category grid ---- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.cat-card { display: flex; flex-direction: column; gap: 4px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: .25s; }
.cat-card:hover { transform: translateY(-4px); border-color: var(--gold-deep); box-shadow: var(--shadow-sm); color: var(--text); }
.cat-glyph { width: 48px; height: 48px; border-radius: 8px; display: grid; place-items: center; color: var(--gold-light); font-family: var(--serif); font-weight: 800; font-size: 1.4rem; margin-bottom: 12px; border: 1px solid var(--line); background: rgba(201,168,76,.06); }
.cat-name { font-family: var(--serif); font-weight: 700; color: var(--text); font-size: 1.18rem; }
.cat-count { font-size: .76rem; letter-spacing: .04em; }
/* discipline accents — muted jewel tones on dark */
.cat-CFD .cat-glyph { color: #9db8e0; } .cc-thumb.cat-CFD { background: linear-gradient(135deg, #12141c, #1a2740); }
.cat-HVAC .cat-glyph { color: #8fcabc; } .cc-thumb.cat-HVAC { background: linear-gradient(135deg, #101713, #163029); }
/* Real project imagery where we have it — dimmed under a navy wash so the
   category chip and glyph stay legible. */
.cc-thumb.cat-CFD {
  background: linear-gradient(160deg, rgba(13,13,13,.82), rgba(18,20,28,.55)), url('/img/cat/cfd.jpg') center/cover no-repeat;
}
.cc-thumb.cat-HVAC {
  background: linear-gradient(160deg, rgba(13,13,13,.78), rgba(16,23,19,.45)), url('/img/cat/hvac.jpg') center/cover no-repeat;
}
.cc-thumb.cat-CFD .cat-glyph, .cc-thumb.cat-HVAC .cat-glyph { opacity: .25; }
.cat-BIM .cat-glyph { color: var(--gold-light); } .cc-thumb.cat-BIM { background: linear-gradient(135deg, #181307, #322712); }
.cat-FEA .cat-glyph { color: #c2a7e0; } .cc-thumb.cat-FEA { background: linear-gradient(135deg, #16121c, #2a2040); }
.cat-MEP .cat-glyph { color: #e0a7c2; } .cc-thumb.cat-MEP { background: linear-gradient(135deg, #1b1014, #381f2c); }

/* ---- Course cards ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 26px; }
.course-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .25s; }
.course-card:hover { transform: translateY(-5px); border-color: var(--gold-deep); box-shadow: var(--shadow); }
.cc-thumb { position: relative; height: 150px; display: grid; place-items: center; background: linear-gradient(135deg, #181307, #322712); }
.cc-thumb::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120px 80px at 78% 20%, rgba(231,207,149,.12), transparent 70%); }
.cc-thumb:hover { color: inherit; }
.cc-glyph { font-family: var(--serif); font-size: 3.4rem; font-weight: 800; color: rgba(243,239,230,.14); }
.cc-cat { position: absolute; top: 14px; left: 14px; background: rgba(12,11,9,.7); color: var(--gold-light); border: 1px solid var(--line); font-size: .64rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; text-transform: uppercase; letter-spacing: .12em; backdrop-filter: blur(4px); }
.cc-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cc-body h3 { margin: 6px 0 0; font-size: 1.22rem; }
.cc-body h3 a { color: var(--text); }
.cc-body h3 a:hover { color: var(--gold-light); }
.cc-summary { color: var(--muted); font-size: .9rem; margin: 0; line-height: 1.65; }
.cc-meta { font-size: .76rem; margin: 0; letter-spacing: .03em; }
.cc-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.price { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--gold-light); }

/* ---- Page head / features ---- */
.page-head { margin-bottom: 10px; }
.page-head h1 { margin-bottom: 8px; font-size: 2.6rem; }
.empty { padding: 48px 0; }
.features h2.center { margin-bottom: 36px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.feature { padding: 32px 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: .25s; }
.feature:hover { border-color: var(--gold-deep); }
.feature .ico { width: 30px; height: 30px; color: var(--gold); margin-bottom: 16px; }
.feature h3 { font-size: 1.18rem; }
.feature p { color: var(--muted); font-size: .9rem; }
.cta-band { background: linear-gradient(135deg, #1a1509, #2c2410); border: 1px solid var(--gold-deep); border-radius: var(--radius-lg); padding: 60px; text-align: center; box-shadow: var(--shadow); }
.cta-band h2 { font-size: 2.2rem; }
.cta-band p { color: var(--muted); margin: 10px 0 30px; font-size: 1.02rem; }

/* ---- Course detail ---- */
.course-hero { background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 44px 0; }
.course-hero-inner h1 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin: 12px 0; }
.crumbs { color: var(--muted); font-size: .8rem; margin-bottom: 8px; display: flex; gap: 9px; flex-wrap: wrap; align-items: center; letter-spacing: .04em; text-transform: uppercase; }
.crumbs span { color: var(--faint); }
.lead { font-family: var(--sans); font-size: 1.12rem; color: var(--muted); max-width: 62ch; line-height: 1.75; }
.course-meta { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 20px; align-items: center; }
.course-layout { display: grid; grid-template-columns: 1fr 350px; gap: 40px; align-items: start; margin-top: 40px; }
/* width and margin undo the global section rule: a full-width panel pushed .course-side, and with it the buy button, off the page. */
.panel { width: auto; margin: 0 0 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.course-main { min-width: 0; }
.panel h2 { font-size: 1.45rem; }
.outcomes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 26px; }
.outcomes li { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; }
.outcomes .ico { color: var(--gold); margin-top: .2em; }
.bullets { margin: 0; padding-left: 20px; color: var(--muted); }
.bullets li { margin: 6px 0; }
.lessons { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 9px; }
.lesson { display: grid; grid-template-columns: 32px 1fr auto auto; gap: 16px; align-items: center; padding: 14px 16px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); transition: .2s; }
.lesson:hover { border-color: var(--gold-deep); }
.lesson-no { color: var(--gold-deep); text-align: center; font-family: var(--serif); font-weight: 700; }
.lesson-dur { font-variant-numeric: tabular-nums; font-size: .85rem; }
.lock .ico { width: 17px; height: 17px; color: var(--faint); }
.instructor-row { display: flex; align-items: center; gap: 18px; }
.avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--gold-grad); color: #1a1407; display: grid; place-items: center; font-family: var(--serif); font-weight: 800; font-size: 1.5rem; }

/* purchase card */
.course-side { position: sticky; top: 96px; }
.buy-card { background: var(--surface); border: 1px solid var(--gold-deep); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.buy-price { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--gold-light); margin-bottom: 18px; }
.owned-tag { display: flex; align-items: center; gap: 9px; color: var(--gold-light); font-weight: 600; margin-bottom: 8px; font-size: .9rem; }
.includes { list-style: none; padding: 20px 0 0; margin: 20px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.includes li { display: flex; align-items: center; gap: 11px; font-size: .88rem; color: var(--muted); }
.includes .ico { color: var(--gold); }

/* ---- Dashboard ---- */
.empty-state { text-align: center; padding: 56px 24px; }
.empty-state h3 { font-size: 1.5rem; margin-bottom: 8px; }

/* ---- Auth ---- */
.auth-card { width: min(450px, 92vw); margin: 56px auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.auth-card.center { text-align: center; }
.auth-card h1 { margin-bottom: 6px; font-size: 2rem; }
.auth-card > .muted { margin-top: 0; margin-bottom: 22px; }
.auth-card label { display: block; margin: 16px 0; font-size: .72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.auth-card input { display: block; width: 100%; margin-top: 8px; padding: 13px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-size: 1rem; font-family: var(--sans); transition: .2s; }
.auth-card input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.16); }
.hint { font-size: .72rem; color: var(--faint); font-weight: 400; text-transform: none; letter-spacing: 0; }

/* ---- Player ---- */
.watch { display: grid; grid-template-columns: 1fr 330px; gap: 30px; align-items: start; }
.player { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16/9; }
.player-video { width: 100%; height: 100%; display: block; background: #000; }
.player-fallback { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 24px; color: var(--muted); gap: 6px; }
.player-fallback code { background: rgba(201,168,76,.14); }
.player-watermark { position: absolute; top: 12px; right: 14px; font-size: 12px; color: rgba(231,207,149,.55); pointer-events: none; text-shadow: 0 1px 2px rgba(0,0,0,.9); letter-spacing: .05em; }
.player-controls { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.pc-btn { background: rgba(201,168,76,.18); color: var(--gold-light); border: none; cursor: pointer; width: 36px; height: 36px; border-radius: 6px; font-size: 14px; transition: .2s; }
.pc-btn:hover { background: rgba(201,168,76,.34); }
.pc-seek { flex: 1; accent-color: var(--gold); }
.pc-time { color: var(--gold-light); font-size: 13px; font-variant-numeric: tabular-nums; min-width: 44px; }
.watch-side h2 { font-size: 1.25rem; }
.playlist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.playlist a { display: grid; grid-template-columns: 26px 1fr auto; gap: 11px; align-items: center; padding: 12px 14px; border-radius: var(--radius); color: var(--text); background: var(--surface); border: 1px solid var(--border); }
.playlist a:hover { border-color: var(--gold-deep); color: var(--text); }
.playlist .current a { border-color: var(--gold); background: rgba(201,168,76,.08); }
.pl-no { color: var(--gold-deep); text-align: center; font-family: var(--serif); }
.pl-dur { font-size: .8rem; }

/* ---- Admin ---- */
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.table th { color: var(--gold); font-weight: 600; background: var(--bg-2); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; }
.table tr:last-child td { border-bottom: none; }
.row-actions { display: flex; gap: 7px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: flex; flex-direction: column; gap: 7px; font-size: .72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.form-grid input, .form-grid textarea { padding: 12px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-family: var(--sans); font-size: 1rem; }
.form-grid input:focus, .form-grid textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.16); }
.form-grid .check { flex-direction: row; align-items: center; gap: 9px; text-transform: none; letter-spacing: 0; }
.admin-lessons { margin-top: 34px; }
.lesson-add { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; background: var(--surface); border: 1px solid var(--border); padding: 16px; border-radius: var(--radius); }
.lesson-add input:not([type=file]):not([type=checkbox]) { padding: 10px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); }
.lesson-add .check { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .82rem; }

/* ---- Footer ---- */
.site-footer { background: #08070500; background-color: #090805; color: var(--muted); margin-top: auto; padding: 64px 0 28px; border-top: 1px solid var(--line); }
.site-footer .brand { color: var(--text); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { max-width: 32ch; margin-top: 16px; color: var(--faint); font-size: .9rem; line-height: 1.7; }
.footer-col h4 { color: var(--gold); font-family: var(--sans); font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); padding: 5px 0; font-size: .88rem; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--faint); letter-spacing: .03em; }

/* ---- Responsive ---- */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { order: -1; }
  .course-layout { grid-template-columns: 1fr; }
  .course-side { position: static; }
  .watch { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .outcomes { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  h1 { font-size: 2rem; } .hero h1 { font-size: 2.3rem; }
  .site-nav { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .cta-band { padding: 40px 24px; }
}

/* Portfolio page */
.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 34px; }
.pf-card { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.pf-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pf-card figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 16px 20px; }
.pf-card h2 { margin: 0; font-size: 1.3rem; }
.pf-card span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.pf-cta { display: flex; justify-content: center; margin-top: 36px; }
@media (max-width: 720px) { .pf-grid { grid-template-columns: minmax(0, 1fr); } }

/* Courses coming soon */
.soon { display: flex; flex-direction: column; align-items: center; gap: 16px; width: min(640px, 92vw); margin: clamp(24px, 6vh, 64px) auto; text-align: center; }
.soon-mark { width: clamp(150px, 26vh, 230px); height: auto; }
.soon-eyebrow { margin: 6px 0 0; font-size: .72rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.soon h1 { margin: 0; font-size: clamp(2.4rem, 5.4vw, 3.6rem); text-wrap: balance; }
.soon-lead { margin: 0; max-width: 34rem; font-size: 1.05rem; line-height: 1.65; }
.soon-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* Admin: issuing a license by hand */
.form-grid select { padding: 12px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-family: var(--sans); font-size: 1rem; width: 100%; }
.form-grid select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.16); }
.issue-license h2 { margin-top: 0; }
.issue-license > .muted { margin: 0 0 18px; }
.table-scroll { overflow-x: auto; }
.table-scroll .table { min-width: 860px; }
.pay-ref { max-width: 240px; overflow-wrap: anywhere; }
