/* ===================================================
   BARSHIFT LMS — Dark theme + Colibri UX structure
   =================================================== */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }

/* ── TOKENS ── */
:root {
  --bg:       #0c0c0c;
  --s1:       #141414;
  --s2:       #1e1e1e;
  --s3:       #272727;
  --s4:       #303030;
  --border:   #2e2e2e;
  --borderlt: #3a3a3a;
  --gold:     #c8a95a;
  --goldhov:  #e2c97a;
  --goldpale: rgba(200,169,90,.13);
  --text:     #f0ead5;
  --text2:    #a89e84;
  --text3:    #68614f;
  --success:  #5cb85c;
  --error:    #d9534f;
  --warn:     #f0a030;
  --lv1:      #c8a95a;
  --lv2:      #5b8fd6;
  --lv3:      #56b870;
  --lv4:      #c4666b;
  --navbar-h: 54px;
  --sidebar-w: 268px;
  --footer-h: 68px;
  --radius:   8px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
}

#app { height: 100%; display: flex; flex-direction: column; }

/* ── TYPOGRAPHY ── */
h1, h2, h3 {
  font-family: 'Palatino Linotype','Book Antiqua',Palatino,Georgia,serif;
  font-weight: normal;
  line-height: 1.3;
  color: var(--text);
}
h1 { font-size: clamp(1.6rem,3.5vw,2.4rem); }
h2 { font-size: clamp(1.2rem,2.5vw,1.7rem); }
h3 { font-size: clamp(1rem,2vw,1.25rem); }
p  { margin-bottom: .85em; color: var(--text2); }
p:last-child { margin-bottom: 0; }
strong { color: var(--text); font-weight: 600; }
ul, ol { padding-left: 1.4em; color: var(--text2); margin-bottom: .85em; }
li { margin-bottom: .4em; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--goldhov); }

/* ── NAVBAR ── */
.navbar {
  height: var(--navbar-h);
  flex-shrink: 0;
  background: rgba(12,12,12,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 200;
}
.navbar-brand {
  display: flex; align-items: center; gap: .55rem; cursor: pointer;
  text-decoration: none;
}
.nav-logo {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: Palatino, serif; font-size: .8rem; color: var(--gold); font-weight: bold;
  flex-shrink: 0;
}
.nav-title { font-family: Palatino, serif; font-size: .9rem; color: var(--gold); letter-spacing: .07em; }
.nav-logo-img { height: 21px; width: auto; display: block; }
.nav-right  { display: flex; align-items: center; gap: .6rem; }
.nav-greeting { font-size: .78rem; color: var(--text3); display: none; }
@media (min-width:520px) { .nav-greeting { display: block; } }
.nav-btn {
  height: 30px; padding: 0 .75rem;
  background: var(--s3); border: 1px solid var(--border);
  border-radius: 6px; cursor: pointer; color: var(--text2);
  font-size: .78rem; font-family: inherit;
  display: flex; align-items: center; gap: .35rem;
  transition: border-color .15s, color .15s;
}
.nav-btn:hover { border-color: var(--borderlt); color: var(--text); }
.nav-btn.active { border-color: var(--gold); color: var(--gold); background: var(--goldpale); }

/* Profile avatar — its own permanent tab next to Academy (Profile no
   longer lives in the hamburger dropdown). Fixed dark-palette colors, same
   reasoning as the hamburger: Academy's light theme shouldn't make this
   look like a different component depending on the tab. */
.nav-avatar-btn {
  width: 30px; height: 30px; flex-shrink: 0; padding: 0;
  border-radius: 50%; overflow: hidden; cursor: pointer;
  background: #272727; border: 1.5px solid #2e2e2e;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s;
}
.nav-avatar-btn:hover { border-color: #3a3a3a; }
.nav-avatar-btn.active { border-color: #c8a95a; }
.nav-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav-avatar-mono { font-family: Palatino, serif; font-size: .78rem; font-weight: 700; color: #c8a95a; }

/* Hamburger dropdown — everything except the Academy tab (and greeting)
   collapses in here, so Academy stays a permanent, always-visible tab.
   Icon + reveal style modeled after a hover dropdown the user liked
   (codepen.io/mfg888/pen/vYWPGEp): the short middle bar that grows on
   hover, the little pointer caret, and rows that slide in on hover —
   kept in BarShift's own dark/gold palette instead of their black/white. */
.nav-menu { position: relative; flex-shrink: 0; }
/* Fixed dark-palette colors (not the --s3/--border/etc tokens) so this looks
   identical on every tab — those tokens flip to a light theme on Academy
   pages, which made the hamburger/dropdown look like two different
   components depending which tab you were on. */
.nav-hamburger {
  width: 34px; height: 30px; padding: 0 8px; flex-shrink: 0;
  background: #272727; border: 1px solid #2e2e2e; border-radius: 6px;
  cursor: pointer; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 5px;
  transition: border-color .15s;
}
.nav-hamburger span { display: block; height: 2px; width: 16px; background: #a89e84; border-radius: 2px; transition: width .3s ease, background .15s; }
.nav-hamburger span:nth-child(2) { width: 10px; }
.nav-hamburger:hover { border-color: #3a3a3a; }
.nav-hamburger:hover span { background: #f0ead5; }
.nav-hamburger:hover span:nth-child(2) { width: 16px; }
/* position: fixed so it isn't clipped by .nav-right's horizontal scroll
   container on narrow screens, and floats above all page content. */
.nav-dropdown {
  position: fixed; top: calc(var(--navbar-h) + 10px); right: 1.25rem; z-index: 250;
  min-width: 190px;
  background: #1e1e1e; border: 1px solid #2e2e2e; border-radius: 0;
  box-shadow: 0 14px 40px rgba(0,0,0,.5);
  padding: .4rem; display: flex; flex-direction: column;
  animation: navDropIn .15s ease;
}
.nav-dropdown[hidden] { display: none; }
/* The little pointer caret above the dropdown, aimed at the hamburger. */
.nav-dropdown::before {
  content: ''; position: absolute; top: -8px; right: 16px;
  border: 8px solid transparent; border-bottom-color: #1e1e1e;
}
@keyframes navDropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.nav-dropdown .nav-btn {
  width: 100%; height: auto; padding: .65rem .7rem;
  justify-content: flex-start; text-align: left;
  background: transparent; border: none; border-radius: 0;
  border-bottom: 1px solid #2e2e2e;
  color: #a89e84; font-size: .78rem;
  transition: padding-left .25s ease, color .15s ease;
}
.nav-dropdown .nav-btn:last-child { border-bottom: none; }
.nav-dropdown .nav-btn:hover { padding-left: 1.15rem; color: #c8a95a; background: transparent; }
.nav-dropdown .nav-btn.active { background: transparent; border-color: #2e2e2e; color: #c8a95a; }
.nav-dropdown .nav-btn.active:last-child { border-color: transparent; }
/* The Academy tab stays square too, matching the dropdown. Bar-Spec is a second
   permanent tab right next to it, same reasoning. */
.nav-tab-academy, .nav-tab-barspec { border-radius: 0; }

/* Keep the header usable on narrow phones: brand stays put, the nav
   buttons never overflow — they scroll horizontally if space runs out. */
@media (max-width: 600px) {
  .navbar { padding: 0 .8rem; gap: .5rem; }
  .navbar-brand { flex-shrink: 0; }
  .nav-title { display: none; }
  .nav-logo-img { height: 17px; }
  .nav-right {
    min-width: 0; gap: .4rem;
    /* No -webkit-overflow-scrolling: touch here — iOS Safari renders
       position:fixed descendants (the hamburger's .nav-dropdown) unreliably
       inside a momentum-scroll ancestor, which made the dropdown flicker
       closed right after opening. The hamburger already tucked away most
       buttons, so this rarely needs to scroll; overflow-x:auto is just a
       safety net if it ever does. */
    overflow-x: auto;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .nav-right::-webkit-scrollbar { display: none; }
  .nav-btn { flex-shrink: 0; padding: 0 .6rem; font-size: .74rem; }
  .nav-dropdown { right: .8rem; }
}

/* ── SCROLL VIEWS (non-lesson) ── */
.scroll-view { flex: 1; overflow-y: auto; overflow-x: hidden; }

/* ── LESSON VIEW (Colibri layout) ── */
.lesson-view { flex: 1; display: flex; overflow: hidden; }
.lesson-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--s1);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.lesson-sidebar.hidden { display: none; }
.sidebar-head {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-course-tag {
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .3rem;
}
.sidebar-level-title { font-size: .88rem; color: var(--text); font-weight: 500; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: .6rem 0; }
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--s4); border-radius: 2px; }
.sb-module-group { margin-bottom: .25rem; }
.sb-module-btn {
  width: 100%; padding: .6rem 1rem;
  display: flex; align-items: center; gap: .6rem;
  background: none; border: none; cursor: pointer;
  color: var(--text2); font-family: inherit; font-size: .82rem;
  text-align: left; transition: background .15s, color .15s;
  border-left: 2px solid transparent;
}
.sb-module-btn:hover { background: var(--s2); color: var(--text); }
.sb-module-btn.active { background: var(--s2); color: var(--text); border-left-color: var(--gold); }
.sb-module-btn.done  { color: var(--text2); }
.sb-mod-icon {
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .62rem; font-weight: 700; flex-shrink: 0;
  background: var(--s4); color: var(--text3); border: 1px solid var(--border);
  transition: background .15s, color .15s, border-color .15s;
}
.sb-module-btn.done  .sb-mod-icon { background: rgba(92,184,92,.15); color: var(--success); border-color: rgba(92,184,92,.35); }
.sb-module-btn.active .sb-mod-icon { background: var(--goldpale); color: var(--gold); border-color: rgba(200,169,90,.4); }
.sb-mod-name { flex: 1; line-height: 1.3; }
.sb-sections { background: var(--bg); border-top: 1px solid var(--border); }
.sb-section-btn {
  width: 100%; padding: .45rem 1rem .45rem 2.2rem;
  display: flex; align-items: center; gap: .5rem;
  background: none; border: none; cursor: pointer;
  color: var(--text3); font-family: inherit; font-size: .77rem;
  text-align: left; transition: background .15s, color .15s;
}
.sb-section-btn:hover { background: var(--s2); color: var(--text2); }
.sb-section-btn.active { color: var(--gold); background: var(--goldpale); }
.sb-section-btn.done  { color: var(--text3); }
.sb-section-btn.done::before { content:'✓'; color: var(--success); font-size: .65rem; margin-right: .15rem; }
.sb-quiz-btn {
  width: 100%; padding: .45rem 1rem .45rem 2.2rem;
  display: flex; align-items: center; gap: .5rem;
  background: none; border: none; cursor: pointer;
  color: var(--gold); font-family: inherit; font-size: .77rem;
  text-align: left; transition: background .15s;
  opacity: .5;
}
.sb-quiz-btn:hover { background: var(--goldpale); opacity: 1; }
.sb-quiz-btn.unlocked { opacity: 1; }

/* ── LESSON MAIN AREA ── */
.lesson-main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}
.lesson-toolbar {
  height: 44px; flex-shrink: 0;
  background: var(--s1); border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  display: flex; align-items: center; gap: .75rem;
}
.lt-breadcrumb {
  flex: 1; display: flex; align-items: center; gap: .4rem;
  font-size: .76rem; color: var(--text3); overflow: hidden;
}
.lt-breadcrumb span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-breadcrumb .sep { flex-shrink: 0; }
.lt-breadcrumb .current { color: var(--text2); }
.lt-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.lesson-content-scroll { flex: 1; overflow-y: auto; padding: 2rem 2.5rem 1rem; }
.lesson-content-scroll::-webkit-scrollbar { width: 6px; }
.lesson-content-scroll::-webkit-scrollbar-track { background: transparent; }
.lesson-content-scroll::-webkit-scrollbar-thumb { background: var(--s4); border-radius: 3px; }

/* ── LESSON FOOTER (Colibri-style progress bar) ── */
.lesson-footer {
  height: var(--footer-h);
  flex-shrink: 0;
  background: var(--s1);
  border-top: 1px solid var(--border);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.lf-progress { flex: 1; }
.lf-progress-label {
  font-size: .7rem; color: var(--text3); margin-bottom: .35rem;
  display: flex; justify-content: space-between;
}
.lf-progress-label span { color: var(--gold); }
.lf-bar { height: 4px; background: var(--s4); border-radius: 2px; overflow: hidden; }
.lf-bar-fill { height: 100%; background: var(--gold); border-radius: 2px; transition: width .4s ease; }
.lf-nav { display: flex; gap: .5rem; flex-shrink: 0; }

/* ── STEP-THROUGH LESSON PAGES ── */
.lesson-page[hidden] { display: none; }
.lesson-page { animation: lessonFade .28s ease; }
@keyframes lessonFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* Read-aloud toggle active state */
#readBtn.active { background: var(--gold); color: #0a0a0a; border-color: var(--gold); }
/* Active part highlighted in the sidebar */
.sb-section-btn.current { color: var(--gold); font-weight: 600; }

/* ── NOTES PANEL (slides in from right) ── */
.notes-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  z-index: 300; display: none;
}
.notes-overlay.open { display: block; }
.notes-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(380px, 95vw);
  background: var(--s1);
  border-left: 1px solid var(--border);
  z-index: 301;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .25s ease;
}
.notes-panel.open { transform: translateX(0); }
.notes-head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.notes-head h4 { font-size: .95rem; color: var(--text); }
.notes-meta { font-size: .72rem; color: var(--text3); margin-top: .15rem; }
.notes-close {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--s3); border: 1px solid var(--border);
  cursor: pointer; color: var(--text3); font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
  transition: color .15s;
}
.notes-close:hover { color: var(--text); }
.notes-textarea {
  flex: 1; padding: 1rem 1.25rem;
  background: transparent; border: none; outline: none;
  color: var(--text2); font-family: inherit; font-size: .88rem;
  line-height: 1.7; resize: none;
}
.notes-footer {
  padding: .75rem 1.25rem;
  border-top: 1px solid var(--border);
  font-size: .72rem; color: var(--text3);
}

/* ── MOBILE SIDEBAR TOGGLE ── */
.sidebar-toggle {
  display: none;
  width: 32px; height: 32px;
  background: var(--s3); border: 1px solid var(--border);
  border-radius: 6px; cursor: pointer; color: var(--text2);
  align-items: center; justify-content: center; font-size: 1rem;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .sidebar-toggle { display: flex; }
  .lesson-sidebar { position: absolute; top: 0; left: 0; bottom: 0; z-index: 150; transform: translateX(-100%); transition: transform .25s ease; width: 280px; }
  .lesson-sidebar.open { transform: translateX(0); }
  .lesson-content-scroll { padding: 1.5rem 1.25rem 1rem; }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1.25rem; border-radius: var(--radius); border: none;
  cursor: pointer; font-size: .85rem; font-family: inherit; font-weight: 500;
  transition: background .18s, transform .1s; text-decoration: none; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-gold { background: var(--gold); color: #0a0a0a; }
.btn-gold:hover { background: var(--goldhov); color: #0a0a0a; }
.btn-outline { background: transparent; color: var(--gold); border: 1.5px solid var(--gold); }
.btn-outline:hover { background: var(--goldpale); }
.btn-ghost { background: var(--s3); color: var(--text2); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--s4); color: var(--text); border-color: var(--borderlt); }
.btn-sm { padding: .35rem .8rem; font-size: .78rem; }
.btn-lg { padding: .75rem 1.75rem; font-size: .95rem; }
.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none !important; }

/* ── CARDS & LAYOUT ── */
.container  { max-width: 860px; margin: 0 auto; padding: 0 1.25rem; }
.container--wide { max-width: 1080px; }
.card { background: var(--s1); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
.divider { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }

/* ── PROGRESS BAR ── */
.pbar-wrap { background: var(--s3); border-radius: 100px; height: 5px; overflow: hidden; }
.pbar-fill { height: 100%; border-radius: 100px; background: var(--gold); transition: width .5s ease; }
.pbar-fill.lv2 { background: var(--lv2); } .pbar-fill.lv3 { background: var(--lv3); } .pbar-fill.lv4 { background: var(--lv4); }

/* ── BADGE / TAG ── */
.badge { display: inline-flex; align-items: center; gap: .25rem; padding: .18rem .6rem; border-radius: 100px; font-size: .7rem; font-weight: 600; letter-spacing: .04em; }
.badge-gold    { background: var(--goldpale); color: var(--gold); border: 1px solid rgba(200,169,90,.3); }
.badge-success { background: rgba(92,184,92,.12); color: var(--success); border: 1px solid rgba(92,184,92,.3); }
.badge-muted   { background: var(--s3); color: var(--text3); border: 1px solid var(--border); }
.tag { display: inline-block; padding: .12rem .5rem; border-radius: 4px; font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.tag-lv1 { background: rgba(200,169,90,.15);   color: var(--lv1); }
.tag-lv2 { background: rgba(91,143,214,.15);   color: var(--lv2); }
.tag-lv3 { background: rgba(86,184,112,.15);   color: var(--lv3); }
.tag-lv4 { background: rgba(196,102,107,.15);  color: var(--lv4); }

/* ── FORM ── */
.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; font-size: .78rem; color: var(--text2); margin-bottom: .4rem; letter-spacing: .04em; text-transform: uppercase; }
.form-input {
  width: 100%; padding: .7rem .95rem;
  background: var(--s3); border: 1.5px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-size: .92rem; font-family: inherit; outline: none;
  transition: border-color .18s;
}
.form-input:focus { border-color: var(--gold); }

/* ── ANIMATION ── */
.view { animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* =============================================
   ENROLLMENT
   ============================================= */
.enroll-wrap {
  min-height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 2.5rem 1.25rem; text-align: center;
}
.enroll-logo {
  width: 72px; height: 72px; border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: Palatino, serif; font-size: 1.6rem; color: var(--gold);
  margin: 0 auto 1.25rem;
}
.enroll-logo-img { width: 170px; max-width: 64%; height: auto; display: block; margin: 0 auto 1.25rem; }
.svc-hero-logo-img { width: 340px; max-width: 90%; height: auto; display: block; margin: 0 auto 1.25rem; }
.enroll-kicker { font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); margin-bottom: .75rem; }
.enroll-hed { color: var(--text); margin-bottom: .5rem; }
.enroll-sub { color: var(--text2); max-width: 440px; margin: 0 auto 2rem; font-size: .95rem; }
.enroll-card { background: var(--s1); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; width: 100%; max-width: 420px; text-align: left; margin-bottom: 2rem; }
.enroll-card h3 { text-align: center; margin-bottom: 1.25rem; font-size: 1rem; }
.enroll-features { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: .65rem; max-width: 680px; }
.feature-item { background: var(--s1); border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem; text-align: center; }
.feature-icon { font-size: 1.4rem; margin-bottom: .35rem; }
.feature-title { font-size: .8rem; color: var(--text); font-weight: 600; margin-bottom: .15rem; }
.feature-desc { font-size: .73rem; color: var(--text3); margin: 0; }

/* =============================================
   DASHBOARD
   ============================================= */
.dash-wrap { padding: 2rem 0 3rem; }
.dash-top {
  display: flex; align-items: flex-start; gap: 1.5rem;
  padding-bottom: 1.75rem; margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.dash-welcome { flex: 1; min-width: 200px; }
.dash-greeting { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: .3rem; }
.dash-hed { margin-bottom: .5rem; }
.dash-overall { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; }
.dash-overall .pbar-wrap { flex: 1; height: 6px; }
.dash-pct { font-size: .82rem; color: var(--text2); white-space: nowrap; }
.dash-resume {
  background: var(--s2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.25rem; display: flex; align-items: center; gap: .75rem;
  cursor: pointer; transition: border-color .18s, background .18s;
  text-decoration: none; flex-shrink: 0;
}
.dash-resume:hover { border-color: var(--gold); background: var(--goldpale); }
.dash-resume-icon { font-size: 1.25rem; }
.dash-resume-label { font-size: .7rem; color: var(--text3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .1rem; }
.dash-resume-title { font-size: .88rem; color: var(--text); }
/* Goal Tracker */
.goal-widget { background: var(--s1); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: 1.75rem; }
.goal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .85rem; }
.goal-head h4 { font-size: .85rem; color: var(--text); font-family: inherit; font-weight: 600; }
.goal-head span { font-size: .75rem; color: var(--text3); }
.goal-fields { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: .85rem; }
.goal-field { flex: 1; min-width: 140px; }
.goal-field label { display: block; font-size: .7rem; color: var(--text3); text-transform: uppercase; letter-spacing: .07em; margin-bottom: .3rem; }
.goal-field input {
  width: 100%; padding: .45rem .7rem;
  background: var(--s3); border: 1px solid var(--border); border-radius: 6px;
  color: var(--text); font-size: .85rem; font-family: inherit; outline: none;
  transition: border-color .15s;
}
.goal-field input:focus { border-color: var(--gold); }
.goal-status { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.goal-stat { text-align: center; }
.goal-stat .val { font-size: 1.1rem; font-weight: 700; color: var(--gold); }
.goal-stat .lbl { font-size: .68rem; color: var(--text3); text-transform: uppercase; letter-spacing: .06em; }
.goal-pace { flex: 1; min-width: 140px; }
.goal-pace-label { font-size: .72rem; color: var(--text3); margin-bottom: .35rem; display: flex; justify-content: space-between; }
.goal-pace-label .on-track { color: var(--success); }
.goal-pace-label .behind   { color: var(--warn); }
/* Level Grid */
.level-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(270px,1fr)); gap: 1.1rem; }
.lv-card {
  background: var(--s1); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.3rem; cursor: pointer;
  transition: border-color .2s, transform .15s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.lv-card::before { display: none; }
.lv-card:hover:not(.locked) { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(0,0,0,.5); border-color: var(--borderlt); }
.lv-card.locked { cursor: default; opacity: .5; }
.lv-media { height: 132px; margin: -1.3rem -1.3rem 1.1rem; background-size: cover; background-position: center;
  border-bottom: 1px solid var(--border); }
.lv-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; margin-bottom: .9rem; }
.lv-label { font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent, var(--gold)); margin-bottom: .2rem; }
.lv-card h3 { font-size: 1.05rem; }
.lv-tagline { font-size: .75rem; color: var(--text3); margin-bottom: .9rem; }
.lv-dots { display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: .8rem; }
.mod-dot { width: 26px; height: 5px; border-radius: 3px; background: var(--s4); transition: background .2s; }
.mod-dot.done { background: var(--accent, var(--gold)); }
.lv-footer { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.lv-footer .pbar-wrap { flex: 1; }
.lv-pct { font-size: .75rem; color: var(--text3); white-space: nowrap; }

/* =============================================
   LEVEL OVERVIEW
   ============================================= */
.level-ov-wrap { padding: 1.75rem 0 3rem; }
.breadcrumb { display:flex; align-items:center; gap:.4rem; font-size:.76rem; color:var(--text3); margin-bottom:1rem; }
.breadcrumb a { color:var(--gold); } .breadcrumb .sep { color:var(--text3); }
.level-ov-header { margin-bottom: 1.5rem; }
.level-ov-header h1 { margin-bottom: .4rem; }
.module-list { display: flex; flex-direction: column; gap: .65rem; margin-bottom: 2rem; }
.mod-row {
  background: var(--s1); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.2rem; display: flex; align-items: center; gap: .9rem;
  cursor: pointer; transition: border-color .18s, background .18s;
}
.mod-row:hover:not(.locked) { background: var(--s2); border-color: var(--borderlt); }
.mod-row.locked { cursor: default; opacity: .5; }
.mod-row.done { border-left: 3px solid rgba(92,184,92,.5); }
.mod-row-icon {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700;
  background: var(--s3); color: var(--text3); border: 1.5px solid var(--border);
}
.mod-row-icon.done   { background: rgba(92,184,92,.12); color: var(--success); border-color: rgba(92,184,92,.4); }
.mod-row-icon.active { background: var(--goldpale); color: var(--gold); border-color: rgba(200,169,90,.4); }
.mod-row-info { flex: 1; min-width: 0; }
.mod-row-num { font-size: .68rem; color: var(--text3); text-transform: uppercase; letter-spacing: .07em; }
.mod-row-title { font-size: .9rem; color: var(--text); margin-top: .1rem; }
.mod-row-right { display: flex; align-items: center; gap: .4rem; flex-shrink: 0; }
.score-pill { font-size: .72rem; color: var(--success); background: rgba(92,184,92,.1); border: 1px solid rgba(92,184,92,.25); border-radius: 100px; padding: .12rem .5rem; }

/* =============================================
   MODULE CONTENT (within lesson layout)
   ============================================= */
.module-hed { margin-bottom: 1.75rem; }
.module-hed .mod-tag { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: .35rem; }
.module-hed h1 { margin-bottom: .6rem; font-size: clamp(1.3rem,3vw,2rem); }
.module-intro {
  color: var(--text2); font-size: .97rem;
  border-left: 3px solid var(--gold);
  padding-left: 1rem; margin-bottom: 2rem; line-height: 1.75;
}
.module-section { margin-bottom: 2.25rem; scroll-margin-top: 1rem; }
.module-section h3 {
  font-size: .98rem; color: var(--goldhov);
  margin-bottom: .9rem; padding-bottom: .45rem;
  border-bottom: 1px solid var(--border);
  font-family: 'Segoe UI', sans-serif; font-weight: 600;
}
.module-section p  { color: var(--text2); line-height: 1.78; font-size: .93rem; }
.module-section li { color: var(--text2); line-height: 1.68; font-size: .93rem; }
.module-section strong { color: var(--text); }
.callout {
  background: var(--goldpale); border: 1px solid rgba(200,169,90,.22);
  border-left: 3px solid var(--gold); border-radius: var(--radius);
  padding: .85rem 1rem; margin: .9rem 0; color: var(--text2); font-size: .88rem;
}
.callout strong { color: var(--gold); }
.tip {
  background: rgba(86,184,112,.08); border: 1px solid rgba(86,184,112,.2);
  border-left: 3px solid var(--lv3); border-radius: var(--radius);
  padding: .85rem 1rem; margin: .9rem 0; color: var(--text2); font-size: .87rem;
}
.tip::before { content: "Pro Tip: "; color: var(--lv3); font-weight: 700; }
.warning {
  background: rgba(240,160,48,.08); border: 1px solid rgba(240,160,48,.22);
  border-left: 3px solid var(--warn); border-radius: var(--radius);
  padding: .85rem 1rem; margin: .9rem 0; color: var(--text2); font-size: .87rem;
}
.warning::before { content: "⚠ Important: "; color: var(--warn); font-weight: 700; }
.recipe-card {
  background: var(--s2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.2rem; margin: .9rem 0;
}
.recipe-name  { font-size: .95rem; color: var(--text); font-weight: 600; margin-bottom: .15rem; }
.recipe-family { font-size: .7rem; color: var(--gold); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .6rem; }
.recipe-ing   { color: var(--text2); font-size: .85rem; margin-bottom: .6rem; }
.recipe-method { color: var(--text3); font-size: .83rem; margin: 0; }
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: .75rem; margin: .75rem 0; }
.def-list { margin: .65rem 0; }
.def-item { padding: .5rem 0; border-bottom: 1px solid var(--border); display: flex; gap: .7rem; }
.def-item:last-child { border-bottom: none; }
.def-term { color: var(--gold); font-weight: 600; min-width: 100px; font-size: .88rem; flex-shrink: 0; }
.def-desc { color: var(--text2); font-size: .88rem; }
.section-done-banner {
  display: flex; align-items: center; gap: .5rem;
  padding: .6rem .9rem; background: rgba(92,184,92,.08);
  border: 1px solid rgba(92,184,92,.2); border-radius: var(--radius);
  margin-top: 1.5rem; font-size: .82rem; color: var(--success);
}
.module-end-cta {
  text-align: center; padding: 2rem 0 1rem;
  border-top: 1px solid var(--border); margin-top: 2rem;
}
.module-end-cta p { margin-bottom: 1rem; color: var(--text2); font-size: .9rem; }

/* =============================================
   QUIZ
   ============================================= */
.quiz-wrap { padding: 1.5rem 2.5rem 2rem; max-width: 680px; }
@media (max-width:640px) { .quiz-wrap { padding: 1.25rem; } }
.quiz-pbar { display: flex; gap: .3rem; margin-bottom: .5rem; }
.qpb-seg { flex:1; height:4px; border-radius:2px; background:var(--s4); }
.qpb-seg.done    { background: var(--gold); }
.qpb-seg.current { background: rgba(200,169,90,.4); }
.quiz-counter { font-size: .75rem; color: var(--text3); margin-bottom: 1.25rem; }
.quiz-q-card {
  background: var(--s1); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; margin-bottom: 1.25rem;
}
.quiz-q-text { font-size: 1rem; color: var(--text); line-height: 1.6; }
.quiz-opts { display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1.25rem; }
.quiz-opt {
  display: flex; align-items: flex-start; gap: .65rem;
  padding: .8rem 1rem; background: var(--s1); border: 1.5px solid var(--border);
  border-radius: var(--radius); cursor: pointer;
  font-size: .88rem; font-family: inherit; color: var(--text2);
  text-align: left; width: 100%;
  transition: border-color .15s, background .15s, color .15s;
}
.quiz-opt:hover:not(:disabled) { border-color: var(--gold); background: var(--goldpale); color: var(--text); }
.qopt-letter {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; margin-top: .05rem;
  background: var(--s3); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 700; color: var(--text3);
  transition: background .15s, border-color .15s, color .15s;
}
.quiz-opt:hover:not(:disabled) .qopt-letter { background: var(--goldpale); border-color: var(--gold); color: var(--gold); }
.quiz-opt.correct { border-color: var(--success) !important; background: rgba(92,184,92,.1) !important; color: var(--text) !important; }
.quiz-opt.correct .qopt-letter { background: rgba(92,184,92,.2); border-color: var(--success); color: var(--success); }
.quiz-opt.wrong { border-color: var(--error) !important; background: rgba(217,83,79,.1) !important; }
.quiz-opt.wrong .qopt-letter { background: rgba(217,83,79,.2); border-color: var(--error); color: var(--error); }
.quiz-opt:disabled { cursor: default; }
.quiz-feedback {
  padding: .85rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.25rem; display: none;
}
.quiz-feedback.show { display: block; }
.quiz-feedback.correct { background: rgba(92,184,92,.1); border: 1px solid rgba(92,184,92,.3); color: var(--success); }
.quiz-feedback.wrong   { background: rgba(217,83,79,.1); border: 1px solid rgba(217,83,79,.3); color: var(--error); }
.fb-title { font-weight: 700; margin-bottom: .25rem; font-size: .9rem; }
.fb-body  { font-size: .84rem; opacity: .9; }
.quiz-next { display: none; }
.quiz-next.show { display: flex; }

/* =============================================
   RESULTS
   ============================================= */
.results-wrap { padding: 2rem 0 3rem; text-align: center; }
.results-circle {
  width: 100px; height: 100px; border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 3px solid var(--gold); background: var(--goldpale);
}
.results-circle.pass { border-color: var(--success); background: rgba(92,184,92,.1); }
.results-circle.fail { border-color: var(--error);   background: rgba(217,83,79,.1); }
.results-num { font-size: 1.9rem; font-weight: 700; color: var(--text); line-height: 1; }
.results-den { font-size: .7rem; color: var(--text3); margin-top: .1rem; }
.results-hed { margin-bottom: .4rem; }
.results-sub { color: var(--text2); margin-bottom: 1.75rem; max-width: 400px; margin-left:auto; margin-right:auto; font-size:.9rem; }
.results-breakdown { background:var(--s1); border:1px solid var(--border); border-radius:var(--radius); max-width:480px; margin:0 auto 1.75rem; overflow:hidden; text-align:left; }
.result-qrow { display:flex; align-items:center; gap:.65rem; padding:.7rem 1rem; border-bottom:1px solid var(--border); font-size:.84rem; }
.result-qrow:last-child { border-bottom:none; }
.result-qrow .qt { flex:1; color:var(--text2); line-height:1.45; }
.results-btns { display:flex; gap:.65rem; justify-content:center; flex-wrap:wrap; }

/* =============================================
   CERTIFICATE
   ============================================= */
.cert-wrap { padding: 2rem 0 3rem; }
.cert-paper {
  max-width: 640px; margin: 0 auto;
  background: var(--s1); border: 1px solid var(--gold);
  border-radius: 12px; padding: 3rem;
  text-align: center;
  box-shadow: 0 0 50px rgba(200,169,90,.12);
  position: relative;
}
.cert-paper::before { content:''; position:absolute; inset:10px; border:1px solid rgba(200,169,90,.18); border-radius:8px; pointer-events:none; }
.cert-logo-mark { font-family:Palatino,serif; font-size:1.3rem; color:var(--gold); letter-spacing:.15em; }
.cert-subtitle { font-size:.65rem; letter-spacing:.28em; text-transform:uppercase; color:var(--text3); margin-bottom:1.75rem; }
.cert-declare { font-size:.82rem; color:var(--text3); margin-bottom:.6rem; }
.cert-name { font-family:Palatino,serif; font-size:clamp(1.6rem,5vw,2.6rem); color:var(--gold); font-style:italic; margin-bottom:.75rem; }
.cert-body  { font-size:.86rem; color:var(--text2); max-width:360px; margin:0 auto 1.25rem; }
.cert-div   { width:80px; height:1px; background:linear-gradient(90deg,transparent,var(--gold),transparent); margin:1.25rem auto; }
.cert-seal  {
  width:64px; height:64px; border:2px solid var(--gold); border-radius:50%;
  margin:0 auto 1.25rem; display:flex; align-items:center; justify-content:center;
  font-size:.55rem; text-transform:uppercase; letter-spacing:.1em;
  color:var(--gold); font-weight:700; text-align:center; line-height:1.5;
}
.cert-date  { font-size:.76rem; color:var(--text3); margin-bottom:1.5rem; }
.cert-modules { display:grid; grid-template-columns:repeat(2,1fr); gap:.35rem; margin:1.25rem 0; text-align:left; }
.cert-mod-item { font-size:.72rem; color:var(--text3); display:flex; align-items:flex-start; gap:.3rem; }
.cert-mod-item::before { content:'✓'; color:var(--success); font-weight:700; flex-shrink:0; }
.cert-verify { margin: .25rem 0 .5rem; }
.cert-qr { margin: .2rem auto .55rem; }
.cert-qr-img { display:block; margin:0 auto; width:96px; height:96px; background:#fff; padding:6px; border-radius:8px; }
.cert-qr-cap { font-size:.6rem; color:var(--text3); letter-spacing:.05em; margin-top:.25rem; text-transform:uppercase; }
.cert-no { font-size:.8rem; color:var(--text2); letter-spacing:.02em; }
.cert-no strong { color:var(--gold); font-family:"SF Mono",ui-monospace,Menlo,Consolas,monospace; letter-spacing:.06em; }
.cert-verify-line { font-size:.66rem; color:var(--text3); margin-top:.2rem; }
.cert-actions { margin-top:1.75rem; display:flex; gap:.65rem; justify-content:center; flex-wrap:wrap; }
@media(max-width:580px) { .cert-paper{padding:2rem 1.25rem;} .cert-modules{grid-template-columns:1fr;} }

/* Public legal pages (privacy / terms / cookies / refunds) */
.legal-wrap { padding: 1.5rem 0 3rem; }
.legal-doc { max-width: 760px; margin: 0 auto; }
.legal-title { font-size: 1.9rem; margin: .25rem 0 .35rem; }
.legal-updated { font-size: .82rem; color: var(--text3); margin-bottom: 1.75rem; }
.legal-body { color: var(--text2); font-size: .98rem; line-height: 1.75; }
.legal-body h2 { font-size: 1.18rem; color: var(--text); margin: 2rem 0 .6rem; }
.legal-body p { margin: 0 0 1.05rem; }
.legal-body ul { margin: 0 0 1.1rem; padding-left: 1.3rem; }
.legal-body li { margin: 0 0 .5rem; }
.legal-body strong { color: var(--text); }
.legal-link { color: var(--gold); text-decoration: underline; }
.legal-note { font-size: .86rem; color: var(--text3); border-left: 2px solid var(--border); padding-left: .9rem; }
.legal-foot { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); font-size: .88rem; color: var(--text3); }

/* Public certificate verification page */
.verify-wrap { padding: 2.5rem 0 3.5rem; }
.verify-card {
  max-width: 540px; margin: 0 auto; text-align: center;
  background: var(--s1); border: 1px solid var(--border); border-radius: 16px; padding: 2.25rem 1.75rem;
}
.verify-mark { font-size:.78rem; font-weight:800; letter-spacing:.16em; color:var(--gold); margin-bottom:.4rem; }
.verify-title { font-size:1.5rem; margin:0 0 .4rem; }
.verify-sub { color:var(--text3); font-size:.92rem; line-height:1.55; margin:0 auto 1.4rem; max-width:42ch; }
.verify-form { display:flex; gap:.5rem; max-width:420px; margin:0 auto; }
.verify-input {
  flex:1; min-width:0; padding:.7rem .85rem; border-radius:10px;
  background:var(--s3); border:1px solid var(--border); color:var(--text);
  font-family:"SF Mono",ui-monospace,Menlo,Consolas,monospace; letter-spacing:.05em; font-size:.95rem;
}
.verify-input:focus { outline:none; border-color:var(--gold); }
.verify-result { margin-top:1.4rem; opacity:0; transition:opacity .15s; }
.verify-result.show { opacity:1; }
.verify-good, .verify-bad, .verify-pending {
  display:flex; gap:.7rem; align-items:flex-start; text-align:left;
  border:1px solid var(--border); border-radius:12px; padding:1rem 1.1rem; font-size:.92rem; line-height:1.5;
}
.verify-good { background:color-mix(in srgb, var(--success) 12%, transparent); border-color:color-mix(in srgb, var(--success) 45%, transparent); color:var(--text); }
.verify-bad  { background:color-mix(in srgb, var(--error) 10%, transparent); border-color:color-mix(in srgb, var(--error) 40%, transparent); color:var(--text2); }
.verify-icon { font-size:1.2rem; font-weight:800; flex-shrink:0; }
.verify-good .verify-icon { color:var(--success); }
.verify-bad .verify-icon { color:var(--error); }
.verify-num { display:inline-block; margin-top:.35rem; font-family:"SF Mono",ui-monospace,Menlo,Consolas,monospace; color:var(--gold); letter-spacing:.06em; font-size:.86rem; }
.verify-bad code { font-family:"SF Mono",ui-monospace,Menlo,Consolas,monospace; color:var(--text); }
@media(max-width:480px) { .verify-form{flex-direction:column;} }

@media print {
  .navbar,.cert-actions,.breadcrumb { display:none !important; }
  body { background:#fff; color:#333; overflow:auto; }
  .cert-paper { box-shadow:none; border-color:#bbb; }
  .cert-name,.cert-logo-mark { color:#a07830; }
}

/* ── TOAST ── */
.toast {
  position:fixed; bottom:1.25rem; right:1.25rem;
  background:var(--s2); border:1px solid var(--borderlt); border-radius:var(--radius);
  padding:.7rem 1.1rem; font-size:.84rem; color:var(--text);
  box-shadow:0 4px 20px rgba(0,0,0,.5); z-index:999;
  animation:slideUp .22s ease; max-width:300px;
}
@keyframes slideUp { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:none} }
.toast.s { border-color:rgba(92,184,92,.4); }

/* =============================================
   COURSE CATALOG / PACKAGE BUILDER
   ============================================= */
.container--xwide { max-width: 1280px; }
.landing-wrap { padding: 2.5rem 0 3rem; }
.landing-hero { text-align: center; margin-bottom: 2.75rem; }
.landing-hero .enroll-logo { margin-bottom: 1rem; }
.landing-hero h1 { margin-bottom: .6rem; }
.landing-hero .enroll-sub { margin-bottom: 0; }

.catalog-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.catalog-head h2 { font-size: 1.45rem; }
.catalog-head .ch-hint { font-size: .82rem; color: var(--text3); }

/* Category sections */
.cat-block { margin-bottom: 2.75rem; }
.cat-block:last-child { margin-bottom: 1.5rem; }
.cat-head { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.2rem; padding-bottom: .6rem; border-bottom: 1px solid var(--border); }
.cat-head h3 { font-size: 1.18rem; color: var(--text); }
.cat-hint { font-size: .78rem; color: var(--text3); }

/* Larger, image-ready course cards */
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(310px,1fr)); gap: 1.4rem; margin-bottom: 2.5rem; }
.cat-block .catalog-grid { margin-bottom: 0; }
.course-card {
  position: relative; background: var(--s1);
  border: 1.5px solid var(--border); border-radius: 10px;
  cursor: pointer; text-align: left; overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .18s, transform .18s, box-shadow .25s;
}
.course-card:hover { transform: translateY(-4px); box-shadow: 0 12px 34px rgba(0,0,0,.5); border-color: var(--borderlt); }
.course-card.selected { border-color: var(--accent,var(--gold)); }

/* Thumbnail — monogram placeholder until a photo is dropped in */
.cc-thumb {
  position: relative; height: 178px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 120% at 70% 12%, color-mix(in srgb, var(--accent,#c8a95a) 38%, #111) 0%, #101010 72%);
  border-bottom: 1px solid var(--border);
}
.cc-thumb::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.4)); }
/* Cover photo fills the thumbnail */
.cc-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; display: block; z-index: 0; }
.course-card:hover .cc-photo { transform: scale(1.04); }
.cc-photo { transition: transform .4s ease; }
/* Per-course crop tuning (lower the % to nudge the photo down) */
.cc-photo--whiskey { object-position: 62% 32%; }
.cc-photo--tequila { object-position: 62% 32%; }
.cc-mono {
  font-family: 'Palatino Linotype','Book Antiqua',Palatino,Georgia,serif;
  font-size: 3.4rem; font-weight: 700; letter-spacing: .06em;
  color: var(--accent,var(--gold)); opacity: .92;
  text-shadow: 0 2px 18px rgba(0,0,0,.5); z-index: 1;
}
.course-card.soon .cc-mono { opacity: .55; }
.cc-coming-soon {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 4;
  background: rgba(0,0,0,.72); color: #fff;
  font-size: 1.4rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  text-align: center; padding: .4rem 0;
  backdrop-filter: blur(4px);
}

/* Selection check (sits over the thumbnail) */
.cc-check {
  position: absolute; top: .85rem; right: .85rem; z-index: 3;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.35); background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  color: transparent; font-size: .74rem; font-weight: 700; backdrop-filter: blur(2px);
  transition: background .15s, border-color .15s, color .15s;
}
.course-card.selected .cc-check,
.course-card.locked-core .cc-check { background: var(--accent,var(--gold)); border-color: var(--accent,var(--gold)); color: #0a0a0a; }

/* Price badge (top-right of the card body) */
.cc-price {
  position: absolute; top: 1.15rem; right: 1.25rem; z-index: 3;
  padding: .22rem .6rem; border-radius: 100px;
  font-size: .82rem; font-weight: 700; letter-spacing: .01em;
  color: #0a0a0a; background: var(--accent,var(--gold));
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
}

/* Description overlay — slides up over the thumbnail on hover */
.cc-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: flex-end; padding: 1.1rem 1.2rem;
  background: linear-gradient(0deg, rgba(8,8,8,.95) 0%, rgba(8,8,8,.82) 48%, rgba(8,8,8,0) 100%);
  transform: translateY(100%); opacity: 0;
  transition: transform .32s cubic-bezier(.22,.61,.36,1), opacity .3s ease;
}
.course-card:hover .cc-overlay { transform: translateY(0); opacity: 1; }
.cc-overlay .cc-desc { color: var(--text); font-size: .86rem; line-height: 1.6; margin: 0; }

/* Card body */
.cc-body { position: relative; padding: 1.15rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.cc-title { font-family: 'Palatino Linotype','Book Antiqua',Palatino,Georgia,serif; font-size: 1.22rem; color: var(--text); margin-bottom: .25rem; padding-right: 3.4rem; }
.cc-tagline { font-size: .78rem; color: var(--accent,var(--gold)); margin-bottom: 1rem; font-weight: 600; }
.cc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.cc-meta { font-size: .72rem; color: var(--text3); }

/* "Add courses" tile */
.course-card.add-tile {
  align-items: center; justify-content: center; text-align: center;
  border-style: dashed; background: transparent; min-height: 240px;
}
.cc-plus { font-size: 2.6rem; line-height: 1; color: var(--gold); margin-bottom: .4rem; font-weight: 300; }
.course-card.add-tile .cc-title { color: var(--text2); }

/* Package summary / enroll commit */
.package-summary {
  background: var(--s1); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; max-width: 560px; margin: 0 auto;
}
.package-summary h3 { font-size: 1.05rem; text-align: center; margin-bottom: 1rem; }
.package-list { margin-bottom: 1.25rem; }
.pkg-item { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid var(--border); font-size: .88rem; color: var(--text2); }
.pkg-item:last-child { border-bottom: none; }
.pkg-ico {
  width: 34px; height: 34px; border-radius: 7px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: Palatino, serif; font-size: .82rem; font-weight: 700;
  color: var(--accent,var(--gold));
  background: color-mix(in srgb, var(--accent,#c8a95a) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent,#c8a95a) 40%, transparent);
}
.pkg-item .pkg-name { flex: 1; color: var(--text); }
.pkg-item .pkg-tag { font-size: .66rem; }
.pkg-item .pkg-price { font-size: .86rem; font-weight: 700; color: var(--text); }
.pkg-total { display: flex; align-items: center; justify-content: space-between; margin: -.25rem 0 1.25rem; padding-top: .85rem; border-top: 1px solid var(--borderlt); font-size: .9rem; color: var(--text2); }
.pkg-total-amt { font-size: 1.25rem; font-weight: 700; color: var(--gold); }

/* Coming-soon placeholder page */
.soon-wrap { padding: 3rem 0; text-align: center; }

/* Final Certification Exam intro */
.exam-intro { max-width: 540px; margin: 0 auto; text-align: center; }
.exam-badge {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 1.25rem;
  display: flex; align-items: center; justify-content: center; font-size: 2.4rem;
  color: var(--gold);
  background: color-mix(in srgb, var(--gold) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
}
.exam-lead { color: var(--text2); font-size: 1rem; line-height: 1.6; margin: 0 auto 1.5rem; max-width: 44ch; }
.exam-facts {
  list-style: none; margin: 0 auto 1.6rem; padding: 1.1rem 1.3rem; max-width: 360px;
  background: var(--s1); border: 1px solid var(--border); border-radius: var(--radius);
  text-align: left; display: flex; flex-direction: column; gap: .6rem;
}
.exam-facts li { color: var(--text2); font-size: .95rem; }
.exam-facts li strong { color: var(--gold); }
.exam-best { color: var(--text3); font-size: .9rem; margin: 0 0 1.4rem; }
.dash-resume--exam { border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.soon-mono {
  width: 96px; height: 96px; border-radius: 14px; margin: 0 auto 1.25rem;
  display: flex; align-items: center; justify-content: center;
  font-family: Palatino, serif; font-size: 2.2rem; font-weight: 700;
  color: var(--accent,var(--gold));
  background: color-mix(in srgb, var(--accent,#c8a95a) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent,#c8a95a) 42%, transparent);
}
.soon-wrap h1 { margin-bottom: .5rem; }
.soon-wrap .enroll-sub { margin-top: .9rem; margin-bottom: 1.5rem; }
.soon-card { background: var(--s1); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; max-width: 460px; margin: 0 auto 1.5rem; text-align: left; }
.soon-card h4 { font-size: .9rem; color: var(--gold); margin-bottom: .75rem; }

/* Store — product cards (codepen.io/Helen-Nash/pen/vYMzOgo reference),
   ported to BarShift's tokens. Logo mark v2 stands in for real product
   photos until those are added. */
.store-page { padding: 3rem 1.25rem 4rem; }
.store-head { text-align: center; max-width: 620px; margin: 0 auto 2.5rem; }
.store-head h1 { font-size: 1.9rem; margin-bottom: .6rem; }
.store-head p { color: var(--text3); font-size: .95rem; }
.store-pc-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.75rem 1.5rem; }
.store-pc-wrap { position: relative; }
.store-pc-card {
  position: relative; width: 260px; height: 385px;
  background: var(--s2); border-radius: 20px; overflow: hidden;
}
.store-pc-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--s3); clip-path: circle(140px at 80% 18%);
  transition: .5s ease-in-out;
}
.store-pc-card:hover::before { clip-path: circle(280px at 80% -20%); }
.store-pc-imgbx {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 100%; height: 190px; transition: .5s;
}
.store-pc-card:hover .store-pc-imgbx { top: 0; transform: translateY(0); }
.store-pc-imgbx img {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
  width: 150px; opacity: .92; filter: drop-shadow(0 8px 18px rgba(0,0,0,.4));
}
.store-pc-content { position: absolute; bottom: 0; width: 100%; height: 92px; text-align: center; transition: 1s; z-index: 5; }
.store-pc-card:hover .store-pc-content { height: 195px; }
.store-pc-content h2 { position: relative; font-size: 1.05rem; font-weight: 600; letter-spacing: .5px; color: var(--text); margin: 0; padding: 0 1rem; }
.store-pc-desc {
  padding: 8px 20px 0; opacity: 0; visibility: hidden; transition: .5s;
}
.store-pc-card:hover .store-pc-desc { opacity: 1; visibility: visible; transition-delay: .5s; }
.store-pc-desc h3 { color: var(--text2); font-weight: 300; font-size: .78rem; line-height: 1.5; letter-spacing: .3px; margin: 0; }
.store-pc-buy {
  display: inline-block; padding: 9px 20px; background: var(--gold); border-radius: 6px; margin-top: 14px;
  text-decoration: none; font-weight: 600; font-size: .85rem; color: #0a0a0a;
  opacity: 0; transform: translateY(30px); transition: .5s;
}
.store-pc-buy:hover { background: var(--goldhov); }
.store-pc-card:hover .store-pc-buy { opacity: 1; transform: translateY(0); transition-delay: .75s; }

/* Touch devices: show the description since there is no hover */
@media (hover: none) {
  .cc-overlay { transform: translateY(0); opacity: 1; }
}

/* =============================================
   MARKETING LANDING (welcome) + SIGN-UP
   ============================================= */
/* Hero */
.hero {
  position: relative; text-align: center;
  padding: 4.5rem 0 4rem;
  background:
    radial-gradient(80% 120% at 50% -10%, rgba(200,169,90,.10) 0%, transparent 60%),
    linear-gradient(180deg, #0e0e0e 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.hero-logo {
  width: 64px; height: 64px; margin: 0 auto 1.25rem;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Palatino Linotype','Book Antiqua',Palatino,Georgia,serif;
  font-size: 1.5rem; font-weight: 700; letter-spacing: .04em;
  color: #0a0a0a; background: var(--gold); border-radius: 14px;
  box-shadow: 0 6px 24px rgba(200,169,90,.28);
}
.hero-logo-img {
  width: 280px; max-width: 82%; height: auto; display: block; margin: 0 auto 1.25rem;
}
.hero-kicker {
  font-size: .76rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.1rem;
}
.hero-title {
  font-family: 'Palatino Linotype','Book Antiqua',Palatino,Georgia,serif;
  font-size: clamp(1.7rem, 4vw, 3.1rem); line-height: 1.15;
  color: var(--text); margin: 0 auto .9rem; max-width: none;
}
.hero-tagline {
  font-size: 1.06rem; line-height: 1.7; color: var(--text2);
  max-width: 620px; margin: 0 auto 2rem;
}
.hero-cta { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1rem; max-width: 640px; margin: 0 auto;
}
.stat-box {
  background: var(--s1); border: 1px solid var(--border); border-radius: 10px;
  padding: 1.1rem .5rem;
}
.stat-num {
  font-family: 'Palatino Linotype','Book Antiqua',Palatino,Georgia,serif;
  font-size: 1.9rem; font-weight: 700; color: var(--gold); line-height: 1;
}
.stat-label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text3); margin-top: .45rem; }

/* Reviews */
.reviews-section { padding: 4rem 0; }
.reviews-head { text-align: center; margin-bottom: 2.5rem; }
.reviews-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: .35rem 0 .75rem; }
.reviews-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr));
  gap: 1.4rem;
}
.review-card {
  background: var(--s1); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.6rem; display: flex; flex-direction: column;
  transition: border-color .18s, transform .18s;
}
.review-card:hover { border-color: var(--borderlt); transform: translateY(-3px); }
.rv-stars { display: flex; gap: .15rem; margin-bottom: .9rem; }
.rv-stars .star { color: var(--gold); font-size: 1rem; }
.rv-stars .star.off { color: var(--s4); }
.rv-quote { font-size: .95rem; line-height: 1.7; color: var(--text); margin: 0 0 1.4rem; flex: 1; }
.rv-author { display: flex; align-items: center; gap: .75rem; }
.rv-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Palatino Linotype','Book Antiqua',Palatino,Georgia,serif;
  font-size: .92rem; font-weight: 700; color: var(--gold);
  background: var(--goldpale); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
}
.rv-meta { flex: 1; min-width: 0; }
.rv-name { font-size: .9rem; font-weight: 600; color: var(--text); }
.rv-role { font-size: .76rem; color: var(--text3); }
.rv-tag {
  font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
  padding: .25rem .55rem; border-radius: 100px; flex-shrink: 0;
}
.rv-tag.rv-industry { color: var(--gold); background: var(--goldpale); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); }
.rv-tag.rv-student { color: var(--success); background: rgba(92,184,92,.12); border: 1px solid rgba(92,184,92,.35); }

/* FAQ section */
.faq-section { padding: 4rem 0; border-top: 1px solid var(--border); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  background: var(--s1); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; transition: border-color .18s;
}
.faq-item[open] { border-color: var(--borderlt); }
.faq-q {
  list-style: none; cursor: pointer; padding: 1.1rem 1.3rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: 1rem; font-weight: 600; color: var(--text);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--gold); }
.faq-icon {
  flex: 0 0 auto; position: relative; width: 16px; height: 16px;
  transition: transform .2s ease;
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: var(--gold); border-radius: 2px;
}
.faq-icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-icon::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq-item[open] .faq-icon { transform: rotate(135deg); }
.faq-a {
  padding: 0 1.3rem 1.2rem; color: var(--text2);
  font-size: .92rem; line-height: 1.7;
}

/* Final CTA band */
.cta-band {
  text-align: center; padding: 4rem 0 4.5rem;
  background: radial-gradient(70% 120% at 50% 120%, rgba(200,169,90,.10) 0%, transparent 60%), var(--s1);
  border-top: 1px solid var(--border);
}
.cta-band h2 {
  font-family: 'Palatino Linotype','Book Antiqua',Palatino,Georgia,serif;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: .6rem;
}

/* Sign-up form extras */
.form-err { color: var(--error); font-size: .82rem; min-height: 1.1rem; margin-bottom: .65rem; }
.form-err:empty { margin-bottom: 0; }
.form-ok { color: var(--success); font-size: .85rem; line-height: 1.5; margin-bottom: .65rem; }
.form-ok:empty { margin-bottom: 0; }
.signup-fine { font-size: .74rem; color: var(--text3); text-align: center; margin: 1rem 0 0; line-height: 1.6; }

@media (max-width: 560px) {
  .hero-stats { grid-template-columns: repeat(2,1fr); }
  .hero { padding: 3rem 0 2.75rem; }
}

/* =============================================
   ACCESS GATE (password screen)
   ============================================= */
.gate {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; background: radial-gradient(circle at 50% 20%, #15140f 0%, var(--bg) 70%);
}
.gate-card {
  width: 100%; max-width: 380px; text-align: center;
  background: var(--s1); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2.4rem 2rem 2rem; box-shadow: 0 10px 40px rgba(0,0,0,.5);
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
}
.gate-logo-img { width: 180px; max-width: 90%; height: auto; margin-bottom: .6rem; }
.gate-logo-fallback { font-size: 2rem; font-weight: 800; color: var(--gold); }
.gate-title { font-size: 1.4rem; margin: 0; color: var(--text); }
.gate-sub { font-size: .9rem; color: var(--text3); margin: .25rem 0 1.2rem; line-height: 1.45; }
.gate-input {
  width: 100%; padding: .8rem 1rem; font-size: 1rem;
  background: var(--s3); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); text-align: center;
}
.gate-input:focus { outline: none; border-color: var(--gold); }
.gate-error { color: var(--error); font-size: .82rem; margin-top: .6rem; }
.gate-btn { width: 100%; margin-top: 1rem; }

/* =============================================
   CHAT ASSISTANT ("Spill")
   ============================================= */
.asst { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 1000; transition: bottom .2s ease; }
/* Lift the chat FAB above the pinned lesson footer so it never covers its buttons */
body.has-lesson-footer .asst { bottom: calc(var(--footer-h) + 1.25rem); }

/* Launch button */
.asst-fab {
  display: flex; align-items: center; gap: .5rem;
  padding: .7rem 1.1rem .7rem .8rem; border: none; cursor: pointer;
  background: var(--gold); color: #0a0a0a; border-radius: 100px;
  font-family: inherit; font-size: .9rem; font-weight: 700;
  box-shadow: 0 8px 28px rgba(0,0,0,.45), 0 0 0 1px rgba(200,169,90,.4);
  transition: transform .16s, box-shadow .2s, background .16s;
}
.asst-fab:hover { transform: translateY(-2px); background: var(--goldhov); }
.asst-fab-icon {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.18); font-size: 1rem; font-weight: 800;
}
.asst.open .asst-fab { transform: scale(.92); opacity: .9; }

/* Panel */
.asst-panel {
  position: absolute; right: 0; bottom: calc(100% + .75rem);
  width: 340px; max-width: calc(100vw - 3rem); height: 460px; max-height: calc(100vh - 7rem);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--s1); border: 1px solid var(--borderlt); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.6);
  animation: asstIn .2s ease;
}
.asst-panel[hidden] { display: none; }
@keyframes asstIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.asst-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1rem; background: var(--s2); border-bottom: 1px solid var(--border);
}
.asst-head-id { display: flex; align-items: center; gap: .6rem; }
.asst-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Palatino Linotype','Book Antiqua',Palatino,Georgia,serif;
  font-weight: 700; color: #0a0a0a; background: var(--gold);
}
.asst-name { font-size: .92rem; font-weight: 700; color: var(--text); }
.asst-status { font-size: .7rem; color: var(--text3); }
.asst-close {
  background: none; border: none; cursor: pointer; color: var(--text2);
  font-size: .9rem; padding: .3rem; line-height: 1; border-radius: 6px;
}
.asst-close:hover { color: var(--text); background: var(--s4); }

/* Message log */
.asst-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .55rem; }
.asst-msg { display: flex; }
.asst-bot { justify-content: flex-start; }
.asst-user { justify-content: flex-end; }
.asst-bubble {
  max-width: 86%; padding: .6rem .8rem; border-radius: 12px;
  font-size: .86rem; line-height: 1.55; white-space: pre-line; word-wrap: break-word;
}
.asst-bot .asst-bubble { background: var(--s3); color: var(--text); border-bottom-left-radius: 4px; }
.asst-user .asst-bubble { background: var(--gold); color: #0a0a0a; border-bottom-right-radius: 4px; font-weight: 500; }
.asst-typing .asst-bubble { color: var(--text3); letter-spacing: .15em; }

/* Quick-reply chips */
.asst-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: -.1rem 0 .2rem; }
.asst-chip {
  cursor: pointer; font-family: inherit; font-size: .76rem;
  padding: .35rem .7rem; border-radius: 100px;
  color: var(--gold); background: var(--goldpale);
  border: 1px solid color-mix(in srgb, var(--gold) 38%, transparent);
  transition: background .15s, color .15s;
}
.asst-chip:hover { background: var(--gold); color: #0a0a0a; }

/* Input row */
.asst-input { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--border); background: var(--s2); }
.asst-input input {
  flex: 1; padding: .6rem .8rem; border-radius: 100px;
  background: var(--s1); border: 1px solid var(--border); color: var(--text);
  font-family: inherit; font-size: .86rem;
}
.asst-input input:focus { outline: none; border-color: var(--gold); }
.asst-send {
  width: 38px; height: 38px; flex-shrink: 0; border: none; cursor: pointer;
  border-radius: 50%; background: var(--gold); color: #0a0a0a;
  font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.asst-send:hover { background: var(--goldhov); }

@media (max-width: 480px) {
  .asst { right: 1rem; bottom: 1rem; }
  body.has-lesson-footer .asst { bottom: calc(var(--footer-h) + 1rem); }
  .asst-fab-label { display: none; }
  .asst-fab { padding: .7rem; }
}

/* Hide the assistant when printing the certificate */
@media print { .asst { display: none !important; } }

/* =============================================
   COMMUNITY — Netflix-style hero + content rails
   ============================================= */
/* Static hero header */
.cflix-hero {
  position: relative;
  padding: 3.25rem 1.5rem 2.5rem;
  background:
    radial-gradient(120% 140% at 12% 0%, color-mix(in srgb, var(--gold) 22%, transparent) 0%, transparent 55%),
    linear-gradient(180deg, #15140f 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.cflix-hero-inner { max-width: 1200px; margin: 0 auto; }
.cflix-eyebrow {
  display: inline-block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 700; color: var(--gold); margin-bottom: .55rem;
}
.cflix-title { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; margin: 0 0 .6rem; color: var(--text); }
.cflix-sub { color: var(--text2); max-width: 620px; font-size: 1rem; line-height: 1.5; margin: 0 0 1.4rem; }
.cflix-search {
  display: flex; align-items: center; gap: .55rem; max-width: 460px;
  background: color-mix(in srgb, var(--s2) 80%, transparent);
  border: 1px solid var(--border); border-radius: 100px; padding: .6rem 1rem;
  backdrop-filter: blur(4px);
}
.cflix-search:focus-within { border-color: var(--gold); }
.cflix-search-ic { font-size: .95rem; opacity: .8; }
.cflix-search-input {
  flex: 1; background: none; border: none; outline: none; color: var(--text);
  font-size: .92rem;
}
.cflix-search-input::placeholder { color: var(--text3); }

/* Hero carousel (auto-rotating) */
.hero-carousel { max-width: 1280px; margin: 0 auto; padding: 1.25rem 1.5rem 0; }
.hero-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 12 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #15140f;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; visibility: hidden;
  transition: opacity .9s ease;
}
.hero-slide.active { opacity: 1; visibility: visible; }
a.hero-slide--link { display: block; text-decoration: none; cursor: pointer; }
a.hero-slide--link:hover .hero-slide-cta { background: var(--goldhov); transform: translateY(-1px); }
a.hero-slide--link:hover .hero-slide-title { color: var(--gold); }
.hero-slide-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,8,8,.88) 0%, rgba(8,8,8,.55) 38%, rgba(8,8,8,.12) 70%, transparent 100%),
              linear-gradient(0deg, rgba(8,8,8,.7) 0%, transparent 45%);
}
.hero-slide-inner {
  position: absolute; left: 0; bottom: 0;
  padding: clamp(1.25rem, 4vw, 2.75rem);
  max-width: 640px;
}
.hero-eyebrow {
  display: inline-block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 700; color: var(--gold); margin-bottom: .5rem;
}
.hero-slide-title {
  font-size: clamp(1.5rem, 3.6vw, 2.6rem); line-height: 1.08; margin: 0 0 .55rem; color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.5);
}
.hero-slide-meta { color: rgba(255,255,255,.82); font-size: clamp(.9rem, 1.5vw, 1.05rem); line-height: 1.45; margin: 0; }
.hero-slide-cta {
  display: inline-block; margin-top: .9rem; align-self: flex-start;
  background: var(--gold); color: #0a0a0a; font-weight: 700; font-size: .85rem;
  padding: .5rem .95rem; border-radius: 999px; position: relative; z-index: 3;
  transition: background .15s ease, transform .15s ease;
}
.hero-slide-cta:hover { background: var(--goldhov); transform: translateY(-1px); }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25); background: rgba(8,8,8,.45);
  color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: background .2s, border-color .2s; z-index: 3;
}
.hero-arrow:hover { background: rgba(8,8,8,.75); border-color: var(--gold); }
.hero-arrow--prev { left: 14px; }
.hero-arrow--next { right: 14px; }
.hero-dots {
  position: absolute; right: 18px; bottom: 16px;
  display: flex; gap: .5rem; z-index: 3;
}
.hero-dot {
  width: 9px; height: 9px; border-radius: 50%; padding: 0; cursor: pointer;
  border: none; background: rgba(255,255,255,.4); transition: background .2s, width .2s;
}
.hero-dot:hover { background: rgba(255,255,255,.7); }
.hero-dot.active { background: var(--gold); width: 22px; border-radius: 100px; }

/* Rails (shelves) */
.cflix-rails { max-width: 1280px; margin: 0 auto; padding: 1.75rem 0 1rem; }
.cflix-foot { text-align: center; color: var(--text3); font-size: .82rem; padding: 1rem 1.5rem 3rem; }
.rail { margin-bottom: 2.1rem; }
.rail-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0 1.5rem; margin-bottom: .8rem;
}
.rail-title { font-size: 1.2rem; font-weight: 700; color: var(--text); margin: 0; }
.rail-nav { display: flex; gap: .45rem; }
.rail-arrow {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--s3); color: var(--text); border: 1px solid var(--border);
  font-size: 1.2rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
  transition: background .15s ease, opacity .15s ease;
}
.rail-arrow:hover { background: var(--gold); color: #0a0a0a; border-color: var(--gold); }
.rail-arrow:disabled { opacity: .3; cursor: default; }
.rail-arrow:disabled:hover { background: var(--s3); color: var(--text); border-color: var(--border); }

.rail-track {
  display: flex; gap: .9rem; overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x proximity; padding: .3rem 1.5rem 1rem;
  scrollbar-width: none; -ms-overflow-style: none;
}
/* Featured Bartenders rail: break out wider than the other rails (which are
   capped by the .cflix-rails container) and center it in the viewport. */
.cflix-rails .rail[data-rail="bartenders"] {
  width: max(100%, min(1480px, calc(100vw - 2rem)));
  margin-left: 50%;
  transform: translateX(-50%);
}
/* Dissolve the left/right edges so cards fade into the page instead of being
   clipped by a hard vertical line. Only on the Featured Bartenders rail. */
.cflix-rails .rail[data-rail="bartenders"] .rail-track {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 2.75rem, #000 calc(100% - 2.75rem), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 2.75rem, #000 calc(100% - 2.75rem), transparent 100%);
}
.rail-track::-webkit-scrollbar { display: none; }

/* Cards */
.flix-card {
  flex: 0 0 auto; scroll-snap-align: start; cursor: pointer;
  display: flex; flex-direction: column; gap: .5rem; text-decoration: none;
}
.flix-card--wide { width: 300px; }
.flix-card--portrait { width: 207px; }
.flix-thumb {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background-color: #1a1812; background-size: cover; background-position: center;
  border: 1px solid var(--border);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.flix-card--wide .flix-thumb { aspect-ratio: 16 / 9; }
.flix-card--portrait .flix-thumb { aspect-ratio: 2 / 3; }
.flix-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  /* Scale up slightly, anchored at the bottom, to clip thin white edges at the
     top of some source photos (nudges the photo up within the frame). */
  transform: scale(1.04); transform-origin: center bottom;
}
.flix-watermark {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -58%);
  font-size: 3rem; opacity: .28; filter: grayscale(.2);
}
.flix-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.78) 100%);
}
.flix-card-title {
  position: absolute; left: .7rem; right: .7rem; bottom: .55rem; margin: 0;
  font-size: .92rem; font-weight: 700; line-height: 1.2; color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.flix-card--portrait .flix-card-title { font-size: .88rem; }
.flix-meta { font-size: .78rem; color: var(--text3); padding: 0 .15rem; }
.flix-card:hover .flix-thumb,
.flix-card:focus-visible .flix-thumb {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--gold);
  box-shadow: 0 8px 26px rgba(0,0,0,.5);
}
.flix-card:focus { outline: none; }

/* "Browse all groups" CTA card at the end of the Groups rail */
.flix-thumb--cta {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .4rem; aspect-ratio: 16 / 9;
  background: var(--s2); border: 1px dashed var(--borderlt); color: var(--text2);
}
.flix-cta-plus { font-size: 2.2rem; line-height: 1; color: var(--gold); font-weight: 300; }
.flix-cta-label { font-size: .9rem; font-weight: 600; }
.flix-card--cta:hover .flix-thumb--cta,
.flix-card--cta:focus-visible .flix-thumb--cta { border-color: var(--gold); color: var(--gold); }

/* Live feed (status updates) */
/* Sponsored mock brand ad — full-screen backdrop with the live feed over it */
.cflix-feed-zone {
  position: relative;
  margin-top: 1.5rem;
  min-height: 100vh;
  padding: 4rem 0 5rem;
  overflow: hidden;
}
/* Readability scrim above the ad, below the feed. */
.cflix-feed-zone::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,8,8,.5) 0%, rgba(8,8,8,.62) 100%);
}
.cflix-ad {
  position: absolute; inset: 0; z-index: 0; display: block; line-height: 0;
  margin: 0; border-radius: 0; overflow: hidden;
}
.cflix-ad-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cflix-ad-tag {
  position: absolute; top: .7rem; left: .7rem; z-index: 2; line-height: 1.2;
  font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  color: rgba(255,255,255,.9); background: rgba(0,0,0,.42);
  padding: .2rem .5rem; border-radius: 4px; backdrop-filter: blur(3px);
}
.cflix-feed {
  position: relative; z-index: 2;
  max-width: 680px; margin: 0 auto; padding: 0 1.5rem;
}
.cflix-feed-head { padding-top: 2rem; margin-bottom: 1.1rem; }
.cflix-feed-head .rail-title { padding: 0; }
.cflix-feed-sub { margin: .35rem 0 0; color: var(--text3); font-size: .9rem; }
.cflix-feed-inner { display: flex; flex-direction: column; gap: 1rem; }
.cflix-feed-list { display: flex; flex-direction: column; gap: 1rem; }
.cflix-feed-empty {
  text-align: center; color: var(--text3); font-size: .9rem;
  padding: 1.5rem; border: 1px dashed var(--border); border-radius: var(--radius);
}

@media (max-width: 560px) {
  .cflix-hero { padding: 2.25rem 1.1rem 1.75rem; }
  .hero-carousel { padding: 1rem 1.1rem 0; }
  .hero-slides { aspect-ratio: 16 / 15; }
  .hero-arrow { width: 36px; height: 36px; font-size: 1.2rem; }
  .rail-head, .rail-track { padding-left: 1.1rem; padding-right: 1.1rem; }
  .flix-card--wide { width: 260px; }
  .flix-card--portrait { width: 165px; }
  .cflix-feed { padding-left: 1.1rem; padding-right: 1.1rem; }
}

/* =============================================
   COMMUNITY (legacy social views — group & member pages)
   ============================================= */
.cm-wrap { padding: 2rem 0 3rem; }
.cm-header h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: .35rem; }
.cm-sub { color: var(--text2); max-width: 560px; }
.cm-demo-note {
  margin: 1rem 0; padding: .6rem .9rem; border-radius: 8px; font-size: .8rem;
  color: var(--text2); background: var(--goldpale);
  border: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
}

/* Tabs */
.cm-tabs { display: flex; gap: .4rem; border-bottom: 1px solid var(--border); margin: 1.25rem 0 1.5rem; }
.cm-tab {
  padding: .65rem 1.1rem; font-size: .9rem; font-weight: 600; color: var(--text2);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s;
}
.cm-tab:hover { color: var(--text); }
.cm-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

/* Avatars */
.cm-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Palatino Linotype','Book Antiqua',Palatino,Georgia,serif;
  font-weight: 700; font-size: .95rem; color: var(--accent, var(--gold));
  background: color-mix(in srgb, var(--accent, #c8a95a) 18%, #161616);
  border: 1px solid color-mix(in srgb, var(--accent, #c8a95a) 45%, transparent);
  transition: transform .15s;
}
.cm-avatar:hover { transform: scale(1.06); }
.cm-avatar--xs { width: 28px; height: 28px; font-size: .72rem; }
.cm-avatar--sm { width: 34px; height: 34px; font-size: .8rem; }
.cm-avatar--lg { width: 58px; height: 58px; font-size: 1.25rem; }
.cm-avatar--xl { width: 88px; height: 88px; font-size: 2rem; }
.cm-avatar.has-photo { overflow: hidden; padding: 0; background: #161616; }
.cm-avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

/* Composer */
.cm-composer, .cm-comment-form { display: flex; gap: .7rem; }
.cm-composer {
  background: var(--s1); border: 1px solid var(--border); border-radius: 12px;
  padding: 1rem; margin-bottom: 1.5rem;
}
.cm-composer-body { flex: 1; }
.cm-composer-input, .cm-comment-input {
  width: 100%; background: var(--s2); border: 1px solid var(--border); color: var(--text);
  font-family: inherit; font-size: .9rem; border-radius: 10px; padding: .6rem .8rem;
  resize: none; overflow: hidden; min-height: 2.4rem;
}
.cm-composer-input:focus, .cm-comment-input:focus { outline: none; border-color: var(--gold); }
.cm-composer-foot { display: flex; justify-content: flex-end; margin-top: .6rem; }

/* Feed + posts */
.cm-feed { display: flex; flex-direction: column; gap: 1.1rem; }
.cm-empty { color: var(--text3); text-align: center; padding: 2rem; }
.cm-post { background: var(--s1); border: 1px solid var(--border); border-radius: 12px; padding: 1.1rem 1.2rem; }
.cm-post-head { display: flex; gap: .7rem; align-items: center; margin-bottom: .7rem; }
.cm-post-meta { min-width: 0; }
.cm-post-name a { color: var(--text); font-weight: 600; font-size: .94rem; }
.cm-post-name a:hover { color: var(--gold); }
.cm-in { color: var(--text3); font-weight: 400; font-size: .82rem; }
.cm-group-chip { color: var(--accent, var(--gold)); font-size: .82rem; font-weight: 600; }
.cm-post-sub { font-size: .76rem; color: var(--text3); }
.cm-post-text { color: var(--text); font-size: .92rem; line-height: 1.65; white-space: pre-line; }
.cm-post-actions { display: flex; align-items: center; gap: 1.1rem; margin-top: .85rem; padding-top: .7rem; border-top: 1px solid var(--border); }
.cm-act-btn {
  display: inline-flex; align-items: center; gap: .35rem; background: none; border: none;
  cursor: pointer; color: var(--text2); font-family: inherit; font-size: .82rem; padding: 0;
}
.cm-act-btn.cm-comment-count { cursor: default; }
.cm-act-btn:not(.cm-comment-count):hover { color: var(--text); }
.cm-heart { font-size: 1.05rem; line-height: 1; }
.cm-act-btn.liked { color: #e0556b; }
.cm-flag-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; padding: 0;
  color: var(--text3); font-size: .9rem; line-height: 1; margin-left: .5rem;
  transition: color .12s ease;
}
.cm-flag-btn:hover { color: var(--error); }
.cm-post-actions .cm-flag-btn { margin-left: auto; }

/* Comments */
.cm-comments { margin-top: .85rem; display: flex; flex-direction: column; gap: .7rem; }
.cm-comment { display: flex; gap: .55rem; }
.cm-comment-body { background: var(--s2); border-radius: 10px; padding: .5rem .75rem; flex: 1; min-width: 0; }
.cm-comment-name { color: var(--text); font-weight: 600; font-size: .82rem; }
.cm-comment-name:hover { color: var(--gold); }
.cm-comment-time { color: var(--text3); font-size: .72rem; margin-left: .5rem; }
.cm-comment-text { color: var(--text2); font-size: .86rem; line-height: 1.5; margin-top: .15rem; white-space: pre-line; overflow-wrap: anywhere; word-break: break-word; }
.cm-comment-text.is-clamped {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  max-width: 100%;
}
.cm-comment-more {
  background: none; border: none; padding: 0; margin-top: .25rem; cursor: pointer;
  color: var(--gold); font-family: inherit; font-size: .76rem; font-weight: 600;
}
.cm-comment-more:hover { text-decoration: underline; }
.cm-comment-actions { margin-top: .3rem; }
.cm-comment-like {
  display: inline-flex; align-items: center; gap: .25rem; background: none; border: none;
  cursor: pointer; color: var(--text3); font-family: inherit; font-size: .76rem; padding: 0;
  transition: color .12s ease;
}
.cm-comment-like .cm-heart { font-size: .92rem; }
.cm-comment-like:hover { color: var(--text); }
.cm-comment-like.liked { color: #e0556b; }
.cm-comment-like-count { font-weight: 600; }
.cm-comment-form { margin-top: .85rem; align-items: center; }
.cm-comment-send {
  width: 34px; height: 34px; flex-shrink: 0; border: none; cursor: pointer; border-radius: 50%;
  background: var(--gold); color: #0a0a0a; font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.cm-comment-send:hover { background: var(--goldhov); }

/* ── Article read page (linked from community thumbnails) ── */
.article-wrap { max-width: 760px; }
.article { background: var(--s1); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.article-hero {
  position: relative; min-height: 300px; display: flex; align-items: flex-end;
  background-color: color-mix(in srgb, var(--accent, #c8a95a) 18%, #141414);
  background-size: cover; background-position: center;
}
.article-hero-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,8,.92) 0%, rgba(8,8,8,.45) 45%, rgba(8,8,8,.2) 100%); }
.article-hero-inner { position: relative; padding: 1.6rem 1.8rem; width: 100%; }
.article-eyebrow {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent, var(--gold)); margin-bottom: .5rem;
}
.article-title { font-size: 1.9rem; line-height: 1.2; color: #fff; margin: 0 0 .5rem; }
.article-meta { font-size: .82rem; color: rgba(255,255,255,.72); margin: 0; }
/* Portrait hero (bartender profiles): full photo beside the headline */
.article-hero--portrait {
  display: flex; align-items: center; min-height: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent, #c8a95a) 16%, #161616), #121212);
}
/* Frame clips the white rounded corners baked into the source JPGs */
.article-portrait-frame {
  flex: 0 0 auto; width: 320px; max-width: 42%;
  align-self: center; overflow: hidden; border-radius: 14px;
  background: #161616;
}
.article-portrait-img {
  display: block; width: 112%; height: auto;
  margin: -6%; /* scale + center so baked-in white corners fall outside the frame */
}
.article-portrait-text {
  flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 1.8rem 1.9rem;
}
.article-hero--portrait .article-eyebrow { color: var(--accent, var(--gold)); }
.article-hero--portrait .article-title { color: #fff; font-size: 1.8rem; }
.article-hero--portrait .article-meta { color: rgba(255,255,255,.72); }
@media (max-width: 560px) {
  .article-hero--portrait { display: block; }
  .article-portrait-frame { width: 100%; max-width: none; }
  .article-portrait-img { width: 112%; max-width: none; }
  .article-portrait-text { padding: 1.2rem 1.1rem; }
}

.article-body { padding: 1.6rem 1.8rem 1.9rem; }
.article-body p { color: var(--text2); font-size: .98rem; line-height: 1.75; margin: 0 0 1.1rem; }
.article-body h2 { font-size: 1.2rem; color: var(--text); margin: 1.6rem 0 .7rem; }
.article-body strong { color: var(--text); }
.article-body em { color: var(--text); font-style: italic; }

/* Cocktail spec block inside recipe articles */
.article-spec {
  background: var(--s2); border: 1px solid var(--border);
  border-left: 3px solid var(--accent, var(--gold));
  border-radius: 12px; padding: 1.1rem 1.3rem; margin: 0 0 1.3rem;
}
.article-spec-title {
  font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent, var(--gold)); margin: 0 0 .7rem;
}
.article-spec-list { list-style: none; margin: 0 0 .9rem; padding: 0; }
.article-spec-list li {
  color: var(--text); font-size: .95rem; line-height: 1.6; padding: .25rem 0 .25rem 1.2rem;
  border-bottom: 1px solid var(--border); position: relative;
}
.article-spec-list li:last-child { border-bottom: none; }
.article-spec-list li::before { content: "•"; position: absolute; left: .2rem; color: var(--accent, var(--gold)); }
.article-spec-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .82rem; color: var(--text2); }
.article-spec-meta strong { color: var(--text); }

.article-comments { margin-top: 1.6rem; }
.article-comments-title { font-size: 1.15rem; color: var(--text); margin: 0 0 1rem; }
.cm-article-form {
  display: flex; gap: .7rem; align-items: flex-start;
  background: var(--s1); border: 1px solid var(--border); border-radius: 12px;
  padding: 1rem; margin-bottom: 1.4rem;
}
.article-comment-list { display: flex; flex-direction: column; gap: .9rem; }

@media (max-width: 560px) {
  .article-hero { min-height: 220px; }
  .article-title { font-size: 1.45rem; }
  .article-hero-inner, .article-body { padding-left: 1.1rem; padding-right: 1.1rem; }
}

/* Grids: groups + members */
.cm-grid { display: grid; gap: 1.1rem; }
.cm-grid--groups { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cm-grid--members { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* Profile page "Groups" — a horizontal scroll rail instead of stacking/
   wrapping, so a member with lots of groups doesn't eat the whole page. */
.prof-groups-rail {
  display: flex; gap: 1.1rem; overflow-x: auto; padding-bottom: .4rem;
  scroll-snap-type: x proximity; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
}
.prof-groups-rail::-webkit-scrollbar { display: none; }
.prof-groups-rail .cm-group-card { flex: 0 0 260px; scroll-snap-align: start; }

.cm-group-card { background: var(--s1); border: 1px solid var(--border); border-radius: 12px; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.cm-group-card:hover { border-color: var(--borderlt); }

/* Big photo banner at the top of each group card */
.cm-group-banner {
  position: relative; height: 150px; flex-shrink: 0;
  background: color-mix(in srgb, var(--accent, #c8a95a) 14%, #141414);
  border-bottom: 1px solid var(--border);
}
.cm-group-banner-link { position: absolute; inset: 0; display: block; }
.cm-group-banner-img {
  position: absolute; inset: 0; display: block;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.cm-group-banner-mono {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: 'Palatino Linotype','Book Antiqua',Palatino,Georgia,serif; font-weight: 700; font-size: 2.4rem;
  letter-spacing: .04em;
  color: var(--accent, var(--gold));
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent, #c8a95a) 20%, #161616), #121212);
}
.cm-group-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.cm-group-mono {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Palatino Linotype','Book Antiqua',Palatino,Georgia,serif; font-weight: 700; font-size: .95rem;
  color: var(--accent, var(--gold)); background: color-mix(in srgb, var(--accent, #c8a95a) 16%, #161616);
  border: 1px solid color-mix(in srgb, var(--accent, #c8a95a) 42%, transparent);
}
.cm-group-mono--lg { width: 64px; height: 64px; font-size: 1.4rem; border-radius: 14px; }
.cm-group-mono--photo { background-size: cover; background-position: center; background-repeat: no-repeat; font-size: 0; }
.cm-group-name { color: var(--text); font-weight: 700; font-size: 1rem; }
.cm-group-name:hover { color: var(--gold); }
.cm-group-count { font-size: .76rem; color: var(--text3); margin-top: .15rem; }
.cm-group-desc { color: var(--text2); font-size: .86rem; line-height: 1.55; margin: .6rem 0 1rem; flex: 1; }
.cm-group-foot { display: flex; gap: .6rem; align-items: center; }
.cm-group-foot .btn { flex: 1; justify-content: center; }

.cm-member-card { background: var(--s1); border: 1px solid var(--border); border-radius: 12px; padding: 1.3rem 1rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.cm-member-card:hover { border-color: var(--borderlt); }
.cm-member-card .cm-avatar { margin-bottom: .35rem; }
.cm-member-name { color: var(--text); font-weight: 700; font-size: .95rem; }
.cm-member-name:hover { color: var(--gold); }
.cm-member-role { color: var(--text2); font-size: .78rem; }
.cm-member-followers { color: var(--text3); font-size: .74rem; margin-bottom: .6rem; }

/* "On" state for follow/join toggles */
.cm-btn-on {
  background: transparent; color: var(--gold);
  border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent);
}
.cm-btn-on:hover { background: var(--goldpale); }

/* Create-group form */
.cm-create { background: var(--s1); border: 1px solid var(--border); border-radius: 12px; padding: 1.1rem 1.2rem; margin-bottom: 1.5rem; }
.cm-create h3 { font-size: 1rem; margin-bottom: .8rem; }
.cm-create-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.cm-create-form .form-input { flex: 1; min-width: 180px; }

/* Back link */
.cm-back { display: inline-block; color: var(--text2); font-size: .85rem; margin-bottom: 1rem; }
.cm-back:hover { color: var(--gold); }

/* Page header (groups browser, etc.) */
.cm-page-head { margin-bottom: 1.3rem; }
.cm-page-title { font-size: 1.7rem; font-weight: 700; color: var(--text); margin: 0 0 .25rem; }
.cm-page-sub { color: var(--text2); font-size: .92rem; margin: 0; }

/* Group hero */
.cm-group-hero {
  background: var(--s1); border: 1px solid var(--border); border-radius: 14px; padding: 1.4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem;
  border-left: 3px solid var(--accent, var(--gold));
}
.cm-group-hero-top { display: flex; gap: 1rem; align-items: center; }
/* Creator-only photo upload control on the group page hero */
.cm-group-photo-edit { position: relative; display: inline-block; cursor: pointer; flex-shrink: 0; }
.cm-group-photo-badge {
  position: absolute; right: -4px; bottom: -4px;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; line-height: 1;
  background: rgba(12,12,12,.9); border: 1px solid rgba(255,255,255,.25); color: #fff;
  transition: border-color .15s ease, background .15s ease;
}
.cm-group-photo-edit:hover .cm-group-photo-badge { border-color: var(--gold); background: #000; }
.cm-group-photo-edit:hover .cm-group-mono { filter: brightness(.85); }
.cm-group-hero-info h1 { font-size: 1.5rem; margin-bottom: .25rem; }
.cm-group-hero-info p { color: var(--text2); font-size: .9rem; margin-bottom: .6rem; }
.cm-group-members { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.cm-group-members .cm-avatar { margin-left: -6px; border-color: var(--s1); }
.cm-group-members .cm-avatar:first-child { margin-left: 0; }
.cm-group-members .cm-group-count { margin-left: .5rem; }

/* Member profile */
.cm-profile {
  background: var(--s1); border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem;
  display: flex; gap: 1.3rem; align-items: flex-start; margin-bottom: 1.5rem;
  border-left: 3px solid var(--accent, var(--gold));
}
.cm-profile-info h1 { font-size: 1.5rem; margin-bottom: .2rem; }
.cm-you { font-size: .8rem; color: var(--text3); font-weight: 400; }
.cm-profile-bio { color: var(--text2); font-size: .9rem; line-height: 1.6; margin: .6rem 0; max-width: 60ch; }
.cm-profile-stats { display: flex; gap: 1.3rem; margin: .7rem 0 1rem; font-size: .85rem; color: var(--text2); }
.cm-profile-stats strong { color: var(--text); }

@media (max-width: 560px) {
  .cm-profile { flex-direction: column; align-items: center; text-align: center; }
  .cm-profile-stats { justify-content: center; }
  .cm-group-hero { flex-direction: column; align-items: flex-start; }
}

/* =============================================
   MY PROFILE (editable: photo, bio, résumé, top 5, groups, feed)
   ============================================= */
.prof-hero { align-items: center; }
.prof-avatar-wrap { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.prof-photo-btn {
  font-size: .76rem; color: var(--text2); cursor: pointer;
  border: 1px solid var(--border); border-radius: 999px; padding: .25rem .7rem;
  background: var(--s2); transition: border-color .15s, color .15s;
}
.prof-photo-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ── Profile card (photo hero · stats · bio · résumé) ─────────────── */
.pcard {
  display: flex; align-items: stretch;
  width: 100%; margin: 0 0 2rem; border-radius: 18px; overflow: hidden;
  background: var(--s2); border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}
.pcard-media {
  position: relative; flex: 0 0 300px; align-self: stretch; min-height: 360px; background: var(--s3);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.pcard-media-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard-media-mono {
  font-size: 5rem; font-weight: 800; letter-spacing: .04em;
  color: color-mix(in srgb, var(--accent, var(--gold)) 80%, #fff 20%);
  font-family: 'Palatino Linotype','Book Antiqua',Palatino,Georgia,serif;
}
.pcard-media-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 28%,
    rgba(0,0,0,0) 52%, rgba(0,0,0,.78) 100%);
}
.pcard-media-top {
  position: absolute; top: .7rem; left: .7rem; right: .7rem; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
}
.pcard-ic-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 999px; cursor: pointer;
  background: rgba(20, 18, 14, .55); border: 1px solid rgba(255, 255, 255, .18);
  color: #fff; font-size: 1rem; backdrop-filter: blur(6px);
  transition: background .15s, border-color .15s, transform .12s;
}
.pcard-ic-btn:hover { background: rgba(20, 18, 14, .8); border-color: var(--gold); transform: scale(1.05); }
.pcard-stats {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.1rem;
}
.pcard-stat { display: inline-flex; align-items: center; gap: .35rem; color: rgba(255,255,255,.88); font-size: .82rem; }
.pcard-stat-ic { font-size: .9rem; opacity: .9; }
.pcard-stat-num strong { color: #fff; font-weight: 700; }
/* Follow button + count, bottom-left of someone else's profile photo
   (over the same dark scrim .pcard-stats sits on for the own-profile card). */
.pcard-follow-overlay { position: absolute; left: 0; bottom: 0; z-index: 2; padding: 1rem 1.1rem; }
.pcard-follow-overlay .pcard-follow { margin-bottom: 0; }
.pcard-follow-overlay .pcard-follow-counts { color: rgba(255,255,255,.75); }
.pcard-body { flex: 1 1 auto; min-width: 0; padding: 1.4rem 1.5rem; display: flex; flex-direction: column; }
.pcard-name { font-size: 1.55rem; font-weight: 800; line-height: 1.15; margin: 0 0 .25rem; }
.pcard-you { font-size: .8rem; font-weight: 500; color: var(--text3); }
.pcard-role { color: var(--gold); font-size: .92rem; font-weight: 600; margin-bottom: .9rem; }
.pcard-section { margin: .9rem 0; }
.pcard-section-label {
  display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text3); margin-bottom: .3rem; font-weight: 700;
}
.pcard-bio { color: var(--text2); font-size: .92rem; line-height: 1.65; margin: 0; }
.pcard-resume {
  display: inline-flex; align-items: center; gap: .4rem; margin: .3rem 0 .2rem;
  padding: .5rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
  color: var(--gold); background: var(--goldpale);
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  transition: background .15s, border-color .15s;
}
.pcard-resume:hover { background: color-mix(in srgb, var(--gold) 20%, transparent); border-color: var(--gold); }
.pcard-cta { margin-top: auto; padding-top: 1.1rem; }
.pcard-cta .btn { width: 100%; justify-content: center; }
.pcard-contact:not(:last-child) { margin-bottom: .8rem; }

/* Follow button + follower count on someone else's profile */
.pcard-follow { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; }
.pcard-follow-btn { min-width: 96px; justify-content: center; }
.pcard-follow-btn.pcard-following:hover { border-color: var(--error); color: var(--error); }
/* Both are plain <button>s (clickable), reset to look like the original text.
   font-family only (not the "font" shorthand) so it doesn't clobber the
   font-size these classes set below / on .pcard-stat. */
.pcard-follow-counts, .pcard-stat-btn {
  background: none; border: none; padding: 0; margin: 0; font-family: inherit; cursor: pointer;
}
.pcard-follow-counts { font-size: .78rem; color: var(--text3); }
.pcard-follow-counts:hover { color: var(--gold); text-decoration: underline; }
.pcard-stat-btn:hover .pcard-stat-num { color: var(--gold); text-decoration: underline; }

/* Followers / following list popup */
.follow-list { display: flex; flex-direction: column; gap: .2rem; max-height: 50vh; overflow-y: auto; }
.follow-list-row {
  display: flex; align-items: center; gap: .7rem; padding: .55rem .3rem; border-radius: 8px;
  color: var(--text); text-decoration: none; transition: background .12s;
}
.follow-list-row:hover { background: var(--s3); color: var(--gold); }
.follow-list-avatar {
  flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  background: var(--goldpale); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .82rem;
}
.follow-list-name { font-size: .9rem; font-weight: 600; }

/* Social logo links on the card */
.pcard-social { display: flex; flex-wrap: wrap; gap: .6rem; }
.pcard-soc {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  color: var(--text2); background: var(--s3);
  border: 1px solid var(--border);
  transition: color .15s, background .15s, border-color .15s, transform .12s;
}
.pcard-soc:hover { color: var(--gold); border-color: var(--gold); background: var(--goldpale); transform: translateY(-2px); }
.pcard-soc svg { width: 20px; height: 20px; display: block; }

/* Social link inputs in the editor */
.prof-social-fields { display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1.1rem; }
.prof-social-row { display: flex; align-items: center; gap: .6rem; }
.prof-social-row .prof-input { flex: 1 1 auto; margin: 0; }
.prof-social-ic {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px; color: var(--text3);
  background: var(--s3); border: 1px solid var(--border);
}
.prof-social-ic svg { width: 18px; height: 18px; display: block; }

/* ── Create-a-group modal ─────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 1.25rem;
  background: rgba(8, 7, 5, .72); backdrop-filter: blur(4px);
  animation: modalFade .15s ease;
}
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  position: relative; width: 100%; max-width: 420px;
  max-height: calc(100vh - 2.5rem); overflow-y: auto;
  background: var(--s2); border: 1px solid var(--borderlt); border-radius: 16px;
  padding: 1.6rem 1.6rem 1.4rem; box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
  animation: modalPop .18s ease;
}
@keyframes modalPop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
  position: absolute; top: .7rem; right: .7rem; width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; cursor: pointer; font-size: 1.3rem; line-height: 1;
  color: var(--text2); background: transparent; border: 1px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
}
.modal-close:hover { color: var(--gold); border-color: var(--border); background: var(--s3); }
.modal-title { font-size: 1.25rem; font-weight: 800; margin: 0 0 .25rem; padding-right: 2rem; }
.modal-sub { color: var(--text3); font-size: .88rem; margin: 0 0 1.1rem; }
.modal-label { display: block; font-size: .82rem; font-weight: 600; color: var(--text2); margin: .9rem 0 .35rem; }
.modal-actions { display: flex; gap: .6rem; margin-top: 1.3rem; }
.modal-actions .btn { flex: 1 1 0; justify-content: center; }
.info-modal .modal-sub:last-of-type { margin-bottom: 0; }
.info-modal .modal-sub { line-height: 1.6; }
.info-link { color: var(--gold); text-decoration: underline; }
/* Contact popup: the shared value, shown big and clickable */
.contact-value {
  display: block; margin-top: .5rem; padding: .85rem 1rem;
  background: var(--s3); border: 1px solid var(--border); border-radius: 10px;
  color: var(--gold); font-size: 1.05rem; font-weight: 600; text-align: center;
  word-break: break-word; text-decoration: none;
  transition: border-color .15s, background .15s;
}
.contact-value:hover { border-color: var(--gold); background: var(--goldpale); }

/* ============================================================
   SITE FOOTER (links: Academy / Community / Company / Legal)
   ============================================================ */
.site-footer {
  margin-top: 2.4rem; border-top: 1px solid var(--border);
  background: var(--s1);
  padding: 1.7rem clamp(1rem, 5vw, 3rem) 1.1rem;
}
.site-footer-inner { max-width: 1120px; margin: 0 auto; }
.foot-cols {
  display: grid; grid-template-columns: 1.7fr repeat(4, 1fr); gap: 1.2rem 1.4rem;
  align-items: start;
}
.foot-brand-logo { height: 147px; width: auto; display: block; margin: -.4rem 0 0; }
.foot-brand-title {
  font-size: 1.1rem; font-weight: 800; letter-spacing: .12em; color: var(--text);
}
.foot-blurb { color: var(--text3); font-size: .8rem; line-height: 1.55; margin: .15rem 0; max-width: 34ch; }
.foot-social { display: flex; gap: .4rem; margin-top: 0; }
.foot-social-btn {
  width: 28px; height: 28px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; cursor: pointer;
  color: var(--text2); background: var(--s3); border: 1px solid var(--border);
  transition: color .15s, border-color .15s, background .15s, transform .15s;
}
.foot-social-btn:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.foot-social-btn svg { width: 14px; height: 14px; }
.foot-col h4 {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--text2); margin: 0 0 .6rem;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.foot-link {
  background: none; border: 0; padding: 0; margin: 0;
  color: var(--text3); font-size: .82rem; text-align: left; cursor: pointer;
  transition: color .15s;
}
.foot-link:hover { color: var(--gold); }
.foot-bottom {
  margin-top: 1.3rem; padding-top: .85rem; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; flex-wrap: wrap;
  color: var(--text3); font-size: .76rem;
}
.foot-fine { color: var(--text4, var(--text3)); }
@media (max-width: 820px) {
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .foot-cols { grid-template-columns: 1fr; gap: 1rem; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

.gm-photo {
  display: block; cursor: pointer; margin: 0 auto 1rem; width: 96px; height: 96px;
}
.gm-photo-inner {
  width: 96px; height: 96px; border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
  color: var(--text3); background: var(--s3);
  border: 1px dashed var(--borderlt); transition: border-color .15s, color .15s, background .15s;
}
.gm-photo:hover .gm-photo-inner { border-color: var(--gold); color: var(--gold); }
.gm-photo-inner.has-photo { border-style: solid; }
.gm-photo-plus { font-size: 1.4rem; line-height: 1; }
.gm-photo-text { font-size: .68rem; letter-spacing: .04em; }
.gm-photo-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.input-err { border-color: var(--error) !important; }

/* Stack the card vertically on narrow screens. */
@media (max-width: 560px) {
  .pcard { flex-direction: column; max-width: 440px; }
  .pcard-media { flex: 0 0 auto; min-height: 0; aspect-ratio: 4 / 5; }
  .pcard-cta { margin-top: 1.1rem; padding-top: 0; }
}

.prof-section { margin-bottom: 1.8rem; }
.prof-h2 {
  font-size: 1.05rem; font-weight: 700; color: var(--text);
  margin: 0 0 .9rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border);
}
.prof-h2--row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.prof-add-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 999px; cursor: pointer;
  font-size: 1.15rem; line-height: 1; color: var(--text2);
  background: var(--s2); border: 1px solid var(--border);
  transition: color .15s, background .15s, border-color .15s, transform .15s;
}
.prof-add-btn:hover { color: var(--gold); border-color: var(--gold); background: var(--goldpale); }
.prof-add-btn.is-open { transform: rotate(45deg); color: var(--gold); border-color: var(--gold); }

.prof-edit { background: var(--s1); border: 1px solid var(--border); border-radius: 14px; padding: 1.3rem 1.4rem; }
.prof-label { display: block; font-size: .82rem; font-weight: 600; color: var(--text2); margin: 1rem 0 .4rem; }
.prof-label:first-of-type { margin-top: 0; }
.prof-input {
  width: 100%; background: var(--s2); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-size: .9rem; padding: .55rem .7rem; font-family: inherit;
}
.prof-input:focus { outline: none; border-color: var(--gold); }
.prof-textarea { resize: vertical; line-height: 1.6; }
.prof-hint { font-size: .76rem; color: var(--text3); margin: .4rem 0 0; }
.prof-muted { color: var(--text3); }

/* ── Find People (search directory: sidebar filters + card grid) ── */
.src-layout { display: flex; align-items: flex-start; gap: 1.75rem; }
.src-sidebar {
  flex: none; width: 300px;
  background: var(--s1); border: 1px solid var(--border); border-radius: 14px;
  padding: 1.4rem 1.4rem 1.6rem; position: sticky; top: 1.5rem;
}
.src-sidebar-head { margin-bottom: 1rem; }
.src-title { font-size: 1.3rem; margin: 0 0 .3rem; }
.src-sub { font-size: .82rem; color: var(--text3); margin: 0; }
.src-roles { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .3rem; }
.src-search-btn { margin-top: 1.2rem; width: 100%; }
.src-me {
  display: flex; align-items: center; gap: .7rem;
  margin-top: 1.6rem; padding-top: 1.1rem; border-top: 1px solid var(--border);
}
.src-me-avatar {
  flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  background: var(--goldpale); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem;
}
.src-me-name { font-size: .88rem; font-weight: 600; color: var(--text); }
.src-me-loc { font-size: .76rem; color: var(--text3); }

.src-main { flex: 1; min-width: 0; }
.src-count { margin: 0 0 1rem; }
/* Same grid footprint as before — only the card's own look changes below to
   match the course-catalog card style (photo thumb, tilt). */
.src-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px,1fr)); gap: 1rem; }
.src-card {
  position: relative; background: var(--s1);
  border: 1.5px solid var(--border); border-radius: 10px;
  text-decoration: none; color: inherit; overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .18s, transform .18s, box-shadow .25s;
}
.src-card:hover { border-color: var(--borderlt); }

/* Thumbnail — photo if the member has one, else a monogram placeholder.
   A portrait aspect ratio (not a fixed short height) so a face isn't cropped
   top/bottom, and it scales cleanly across the grid's variable card widths. */
.src-card-thumb {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 120% at 70% 12%, color-mix(in srgb, var(--gold) 38%, #111) 0%, #101010 72%);
  border-bottom: 1px solid var(--border);
}
.src-card-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; z-index: 0; }
.src-card-mono {
  font-family: 'Palatino Linotype','Book Antiqua',Palatino,Georgia,serif;
  font-size: 2.3rem; font-weight: 700; letter-spacing: .06em;
  color: var(--gold); opacity: .92;
  text-shadow: 0 2px 18px rgba(0,0,0,.5); z-index: 1;
}

/* Card body */
.src-card-body { position: relative; padding: .7rem 1rem .45rem; display: flex; flex-direction: column; flex: 1; text-align: left; }
.src-card-name {
  font-family: 'Palatino Linotype','Book Antiqua',Palatino,Georgia,serif;
  font-size: 1.02rem; color: var(--text); margin-bottom: .2rem;
}
.src-card-tagline { font-size: .74rem; color: var(--gold); font-weight: 600; }

/* 3D tilt-on-hover (cursor-following, with shine) — same effect as course cards */
.src-card { will-change: transform; }
.src-card.tilt-on { box-shadow: 0 20px 48px rgba(0,0,0,.55); border-color: var(--borderlt); }
.src-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; opacity: 0; transition: opacity .25s ease; z-index: 5;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.20), rgba(255,255,255,0) 42%);
}
.src-card.tilt-on::after { opacity: 1; }

@media (max-width: 820px) {
  .src-layout { flex-direction: column; }
  .src-sidebar { width: 100%; position: static; }
}

/* ── Admin: pending-cocktail approval queue ── */
.admin-ck-list { display: flex; flex-direction: column; gap: .8rem; }
.admin-ck-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 1rem;
  background: var(--s1); border: 1px solid var(--border); border-radius: 12px; padding: .9rem 1rem;
}
.admin-ck-err {
  flex: 0 0 100%; margin-top: .3rem; padding-top: .6rem; border-top: 1px dashed var(--border);
  color: var(--error); font-size: .8rem;
}
.admin-ck-thumb {
  flex: none; width: 54px; height: 54px; border-radius: 10px; background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
  background-color: var(--goldpale); border: 1px solid var(--border);
}
.admin-ck-thumb--mono { color: var(--gold); }
.admin-ck-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.admin-ck-name { color: var(--text); font-size: 1rem; }
.admin-ck-by { font-size: .78rem; color: var(--gold); }
.admin-ck-ings { font-size: .78rem; color: var(--text3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-ck-actions { flex: none; display: flex; gap: .5rem; }
@media (max-width: 560px) {
  .admin-ck-row { flex-wrap: wrap; }
  .admin-ck-actions { width: 100%; }
  .admin-ck-actions .btn { flex: 1; }
}

/* ── Admin: reported content queue ── */
.admin-rp-list { display: flex; flex-direction: column; gap: .8rem; }
.admin-rp-row { background: var(--s1); border: 1px solid var(--border); border-radius: 12px; padding: .9rem 1rem; }
.admin-rp-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; flex-wrap: wrap; }
.admin-rp-reason { font-size: .8rem; font-weight: 600; color: var(--gold); }
.admin-rp-time { font-size: .74rem; color: var(--text3); margin-left: auto; }
.admin-rp-text { color: var(--text); font-size: .92rem; line-height: 1.5; margin: 0 0 .4rem; }
.admin-rp-by { color: var(--text3); font-size: .8rem; }
.admin-rp-note { color: var(--text2); font-size: .82rem; margin: 0 0 .4rem; }
.admin-rp-reporter { color: var(--text3); font-size: .74rem; margin: 0 0 .7rem; }
@media (max-width: 560px) {
  .admin-rp-row .admin-ck-actions { width: 100%; }
  .admin-rp-row .admin-ck-actions .btn { flex: 1; }
}

.prof-resume-row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.prof-resume-name { font-size: .85rem; color: var(--text); }
.prof-link-btn { background: none; border: none; color: var(--error); font-size: .8rem; cursor: pointer; padding: 0; text-decoration: underline; }

.prof-cocktails { display: flex; flex-direction: column; gap: .55rem; }
.prof-cocktail-row { display: flex; align-items: center; gap: .7rem; }
.prof-cocktail-num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
  color: var(--gold); background: color-mix(in srgb, var(--gold) 16%, #161616);
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
}
.prof-edit-actions { display: flex; gap: .6rem; margin-top: 1.3rem; }

.prof-cocktail-list { margin: 0; padding-left: 1.4rem; color: var(--text); }
.prof-cocktail-list li { font-size: .95rem; line-height: 1.9; }
.prof-cocktail-list li::marker { color: var(--gold); font-weight: 700; }

/* ── Cocktail picker (profile) ── */
.prof-ck-list { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.prof-ck-item {
  display: flex; align-items: center; gap: .7rem;
  background: #161616; border: 1px solid var(--border); border-radius: var(--radius);
  padding: .5rem .6rem;
}
/* Read-only "My cocktails" — portrait cards (2/3, like Featured Bartenders),
   always 5 across so the top five fit in a single row. */
.prof-ck-rail { display: grid; grid-template-columns: repeat(5, 1fr); gap: .7rem; }
.prof-ck-rail .flix-card { width: auto; min-width: 0; cursor: default; }
/* Each Top Cocks card reveals its recipe spec as an overlay on hover/focus.
   The overlay is confined to the card's own box (inset: 0), so it can never be
   clipped by the scrollable view the way a floating popover would be. */
.prof-ck-cell { position: relative; min-width: 0; }
.prof-ck-cell--spec .flix-card { cursor: help; }
.ck-spec-pop {
  position: absolute; inset: 0; z-index: 5;
  overflow: auto; border-radius: var(--radius);
  background: rgba(12, 11, 9, .96); border: 1px solid var(--gold);
  padding: .6rem .7rem;
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .15s ease, visibility .15s ease;
}
.prof-ck-cell--spec:hover .ck-spec-pop,
.prof-ck-cell--spec:focus-within .ck-spec-pop { opacity: 1; visibility: visible; }
.ck-spec-pop .article-spec {
  margin: 0; padding: 0; border: none; border-radius: 0; background: transparent;
}
.ck-spec-pop .article-spec-title { margin: 0 0 .4rem; font-size: .66rem; }
.ck-spec-pop .article-spec-list { margin: 0 0 .5rem; }
.ck-spec-pop .article-spec-list li { font-size: .8rem; line-height: 1.4; padding: .12rem 0 .12rem 1rem; }
.ck-spec-pop .article-spec-meta { font-size: .72rem; gap: .2rem .7rem; }
.prof-ck-thumb {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 8px;
  background-color: #1a1812; background-size: cover; background-position: center;
  display: grid; place-items: center; font-size: 1.4rem;
  border: 1px solid var(--border);
}
.prof-ck-thumb--mono { color: var(--gold); }
.prof-ck-info { display: flex; flex-direction: column; gap: .1rem; min-width: 0; flex: 1; }
.prof-ck-title { font-size: .92rem; color: var(--text); line-height: 1.25; }
.prof-ck-meta { font-size: .78rem; color: var(--text3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prof-ck-remove {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--s3); color: var(--text2); border: 1px solid var(--border);
  font-size: 1.1rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
  transition: background .15s, color .15s, border-color .15s;
}
.prof-ck-remove:hover { background: var(--error); color: #fff; border-color: var(--error); }
.prof-ck-empty { margin: 0 0 1rem; }

.prof-ck-picker { border-top: 1px dashed var(--border); padding-top: 1rem; }
.prof-ck-pick-label { font-size: .8rem; font-weight: 600; color: var(--text2); margin: 0 0 .6rem; }
.prof-ck-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .6rem; margin-bottom: .9rem; }
.prof-ck-opt {
  display: flex; flex-direction: column; gap: .45rem; cursor: pointer; text-align: left;
  background: #161616; border: 1px solid var(--border); border-radius: var(--radius); padding: .5rem;
  transition: border-color .15s, transform .15s;
}
.prof-ck-opt:hover { border-color: var(--gold); transform: translateY(-2px); }
.prof-ck-opt-thumb {
  width: 100%; aspect-ratio: 16 / 10; border-radius: 8px;
  background-color: #1a1812; background-size: cover; background-position: center;
  display: grid; place-items: center; font-size: 1.5rem; color: var(--gold);
}
.prof-ck-opt-title { font-size: .82rem; color: var(--text); line-height: 1.2; }

.prof-ck-create-toggle {
  background: none; border: 1px dashed color-mix(in srgb, var(--gold) 50%, var(--border));
  color: var(--gold); font-size: .85rem; font-weight: 600; cursor: pointer;
  border-radius: var(--radius); padding: .6rem 1rem; width: 100%;
  transition: background .15s, border-color .15s;
}
.prof-ck-create-toggle:hover { background: var(--goldpale); border-color: var(--gold); }
.prof-ck-create { display: flex; flex-direction: column; gap: .55rem; background: #161616; border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem; }
.prof-ck-create-photo { display: flex; align-items: center; gap: .7rem; }
.prof-ck-photo-name { font-size: .82rem; }
.prof-ck-create-actions { display: flex; gap: .5rem; margin-top: .2rem; }

.prof-resume-card {
  display: inline-flex; align-items: center; gap: .8rem;
  background: var(--s1); border: 1px solid var(--border); border-radius: 12px;
  padding: .9rem 1.1rem; transition: border-color .15s;
}
.prof-resume-card:hover { border-color: var(--gold); }
.prof-resume-ic { font-size: 1.6rem; }
.prof-resume-meta { display: flex; flex-direction: column; }
.prof-resume-meta strong { color: var(--text); font-size: .9rem; }
.prof-resume-meta .prof-muted { font-size: .76rem; }
.prof-browse-link { display: inline-block; color: var(--text2); font-size: .85rem; }
.prof-browse-link:hover { color: var(--gold); }

/* ===================================================
   ACADEMY LIGHT MODE  (opt-in; academy pages only)
   Dark stays the default. When body[data-acad-theme="light"]
   is set (via the navbar toggle on academy pages), the theme
   tokens flip to a warm white version. Community/marketing are
   never given this attribute, so they stay dark.
   =================================================== */
body[data-acad-theme="light"] {
  --bg:       #faf8f3;
  --s1:       #ffffff;
  --s2:       #f3efe6;
  --s3:       #ebe5d8;
  --s4:       #e0d9c8;
  --border:   #e4ddce;
  --borderlt: #d5ccb8;
  --gold:     #b6902f;
  --goldhov:  #9c7a24;
  --goldpale: rgba(182,144,47,.12);
  --text:     #1e1b15;
  --text2:    #5a5343;
  --text3:    #8b8269;
}
/* Fills that hardcode dark hex (bypassing tokens) — give them light values. */
body[data-acad-theme="light"] .navbar { background: #ffffff; border-bottom-color: var(--border); }
body[data-acad-theme="light"] .scroll-view { background: var(--bg); }
body[data-acad-theme="light"] .lesson-footer,
body[data-acad-theme="light"] .site-footer { background: #f3efe6; }

/* ===================================================
   PROGRESS / LEVEL-UP TRACKER  (replaces goal tracker)
   =================================================== */
.prog-widget { background: var(--s1); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.25rem; margin-top: 1.25rem; }
.prog-top { display: flex; align-items: center; gap: 1rem; }
.prog-badge { flex: none; width: 60px; height: 60px; border-radius: 50%;
  background: var(--goldpale); border: 2px solid var(--gold); color: var(--gold);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.prog-badge-lbl { font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.prog-badge-num { font-size: 1.5rem; font-weight: 800; }
.prog-meta { flex: 1; min-width: 0; }
.prog-title { font-family: 'Palatino Linotype','Book Antiqua',Palatino,Georgia,serif; font-size: 1.15rem; color: var(--text); }
.prog-sub { font-size: .85rem; color: var(--text2); margin-top: 2px; }
.prog-count { flex: none; text-align: center; color: var(--text2); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.prog-count strong { display: block; font-size: 1.3rem; color: var(--gold); letter-spacing: 0; }
.prog-bar { height: 12px; border-radius: 99px; background: var(--s3); overflow: hidden; margin: .9rem 0 .8rem; }
.prog-bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--goldhov));
  transition: width .8s cubic-bezier(.22,1,.36,1); box-shadow: 0 0 10px rgba(200,169,90,.4); }
.prog-pips { display: flex; gap: 8px; }
.lvpip { flex: 1; height: 30px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; border: 1px solid var(--border); background: var(--s2); color: var(--text3); }
.lvpip--done { background: var(--gold); border-color: var(--gold); color: #1a1813; }
.lvpip--current { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.lvpip--open { color: var(--text2); }
.lvpip--locked { opacity: .5; }

/* ── Level-up celebration overlay ── */
.levelup-overlay { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center;
  background: rgba(6,6,6,.82); opacity: 0; transition: opacity .35s ease; overflow: hidden; }
.levelup-overlay.show { opacity: 1; }
.levelup-card { position: relative; text-align: center; width: min(420px, 88vw);
  background: #161513; border: 1px solid #33301f; border-radius: 20px; padding: 30px 26px 28px;
  box-shadow: 0 24px 70px rgba(0,0,0,.6); transform: scale(.8) translateY(10px); opacity: 0;
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), opacity .35s ease; }
.levelup-overlay.show .levelup-card { transform: scale(1) translateY(0); opacity: 1; }
.levelup-kicker { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: #9a8a5f; }
.levelup-title { font-family: 'Palatino Linotype','Book Antiqua',Palatino,Georgia,serif; font-weight: 800;
  font-size: 2.6rem; letter-spacing: .02em; color: #f3eee4; margin: 4px 0 14px;
  animation: lvpop .6s cubic-bezier(.34,1.56,.64,1) .15s both; }
.levelup-badge { width: 96px; height: 96px; margin: 0 auto 14px; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #e2c97a, #c8a95a 60%, #9c7a24);
  color: #1a1813; font-size: 2.8rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 6px rgba(200,169,90,.18), 0 8px 24px rgba(200,169,90,.35);
  animation: lvbadge .7s cubic-bezier(.34,1.56,.64,1) .25s both; }
.levelup-msg { color: #cfc7b5; font-size: 1rem; line-height: 1.5; margin-bottom: 20px; }
.levelup-msg strong { color: #f3eee4; }
@keyframes lvpop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes lvbadge { 0% { transform: scale(0) rotate(-25deg); } 70% { transform: scale(1.12) rotate(6deg); } 100% { transform: scale(1) rotate(0); } }

/* ── Confetti ── */
.confetti-wrap { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti { position: absolute; top: -24px; border-radius: 2px; opacity: .9;
  animation-name: confetti-fall; animation-timing-function: linear; animation-iteration-count: 1; }
@keyframes confetti-fall {
  0% { transform: translateY(-10vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(112vh) rotate(720deg); opacity: .9; }
}

/* ── City autocomplete dropdown (custom, fuzzy) ── */
.city-ac { position: fixed; z-index: 4000; background: #161513; border: 1px solid #33301f;
  border-radius: 10px; box-shadow: 0 14px 40px rgba(0,0,0,.5); overflow: hidden; max-height: 280px; overflow-y: auto; }
.city-ac-item { padding: 9px 14px; font-size: 14px; color: #d8d4cc; cursor: pointer; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.city-ac-item:hover, .city-ac-item.active { background: rgba(200,169,90,.16); color: #f3eee4; }

/* ── Level card 3D tilt-on-hover (cursor-following, with shine) ── */
.lv-card { transition: transform .14s ease, box-shadow .25s ease, border-color .2s ease; will-change: transform; }
.lv-card.tilt-on { box-shadow: 0 20px 48px rgba(0,0,0,.55); border-color: var(--borderlt); }
.lv-card .lv-media, .lv-card .lv-top, .lv-card .lv-tagline { transition: transform .14s ease; }
/* cursor-following shine */
.lv-card::after {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius);
  pointer-events: none; opacity: 0; transition: opacity .25s ease;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.20), rgba(255,255,255,0) 42%);
}
.lv-card.tilt-on::after { opacity: 1; }

/* ── Course catalog card 3D tilt-on-hover (cursor-following, with shine) ── */
.course-card { transition: transform .14s ease, box-shadow .25s ease, border-color .2s ease; will-change: transform; }
.course-card.tilt-on { box-shadow: 0 20px 48px rgba(0,0,0,.55); border-color: var(--borderlt); }
.course-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; opacity: 0; transition: opacity .25s ease; z-index: 5;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.20), rgba(255,255,255,0) 42%);
}
.course-card.tilt-on::after { opacity: 1; }

/* ── Level card hover summary (replaces the progress bar/dots) ── */
/* Sits below the thumbnail (top:132px = .lv-media height) so the picture stays
   visible; the summary fades + slides in over the text area on hover. */
.lv-hover {
  position: absolute; left: 0; right: 0; bottom: 0; top: 132px;
  border-radius: 0 0 var(--radius) var(--radius); z-index: 4; pointer-events: none;
  background: var(--s1); border-top: 1px solid var(--border); padding: 1rem 1.3rem;
  display: flex; flex-direction: column; justify-content: center; gap: .5rem;
  opacity: 0; transform: translateY(8px); transition: opacity .22s ease, transform .22s ease;
}
.lv-hover-label { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent, var(--gold)); }
.lv-hover p { margin: 0; color: var(--text2); font-size: .84rem; line-height: 1.5; }
.lv-card:hover .lv-hover, .lv-card.tilt-on .lv-hover { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════════════════════════════
   SERVICES PAGE (#services — public, no login required)
   ══════════════════════════════════════════════════════════════════════ */
.svc-page { padding-bottom: 1rem; }

/* Hero */
.svc-hero {
  position: relative; padding: 5rem 1.5rem 4rem; text-align: center;
  background-size: cover; background-position: center 30%; overflow: hidden;
}
.svc-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,8,8,.55) 0%, rgba(8,8,8,.85) 55%, var(--bg) 100%);
}
.svc-hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.svc-hero-h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.15; margin-bottom: 1rem; color: var(--text); }
.svc-hero-sub { color: var(--text2); font-size: 1rem; line-height: 1.65; max-width: 600px; margin: 0 auto 2rem; }

/* Service cards */
.svc-section { padding: 4rem 1.25rem 3rem; }
.svc-section-head { text-align: center; max-width: 620px; margin: 0 auto 2.5rem; }
.svc-section-head h2 { font-size: 1.9rem; margin-bottom: .6rem; }
.svc-section-head p { color: var(--text3); font-size: .95rem; }
.svc-carousel { padding: 1rem 0 1.5rem; overflow: hidden; width: 100vw; margin-left: calc(50% - 50vw); }
.svc-carousel-stage {
  position: relative; height: 600px; perspective: 1600px; margin: 0 auto;
}
.svc-slide {
  position: absolute; top: 0; left: 50%; width: 360px; margin-left: -180px;
  background: var(--s1); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
  transform-style: preserve-3d; cursor: pointer;
  transition: transform .6s cubic-bezier(.22,1,.36,1), opacity .5s ease, box-shadow .3s ease, border-color .3s ease;
  will-change: transform, opacity;
}
.svc-slide[data-active="true"] { cursor: default; border-color: var(--borderlt); box-shadow: 0 22px 50px rgba(0,0,0,.45); }
.svc-slide-photo { flex: none; height: 180px; background-size: cover; background-position: center; border-bottom: 1px solid var(--border); }
.svc-slide-title {
  flex: none;
  font-family: 'Palatino Linotype','Book Antiqua',Palatino,Georgia,serif; font-size: 1.2rem;
  color: var(--accent, var(--gold)); text-align: center; margin: 1rem 1.2rem .25rem;
}
.svc-slide-detail { flex: 1 1 auto; display: flex; flex-direction: column; padding: 0 1.5rem 1.5rem; }
.svc-card-desc { color: var(--text2); font-size: .88rem; line-height: 1.6; margin-bottom: 1.1rem; }
.svc-card-list { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem .8rem; }
.svc-card-list li { font-size: .8rem; color: var(--text2); padding-left: 1rem; position: relative; }
.svc-card-list li::before { content: '•'; position: absolute; left: 0; color: var(--accent, var(--gold)); }
.svc-card-btn { margin-top: auto; align-self: flex-start; border-color: var(--accent, var(--gold)); color: var(--accent, var(--gold)); }
.svc-card-btn:hover { background: color-mix(in srgb, var(--accent, var(--gold)) 15%, transparent); }

.svc-carousel-controls { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-top: 1.5rem; }
.svc-car-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--s1);
  color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.2rem;
  transition: border-color .18s, color .18s, opacity .18s;
}
.svc-car-btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.svc-car-btn:disabled { opacity: .35; cursor: default; }
.svc-car-dots { display: flex; align-items: center; gap: .5rem; }
.svc-car-dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--border); cursor: pointer; padding: 0; transition: width .3s ease, background .3s ease; }
.svc-car-dot[data-active="true"] { width: 26px; border-radius: 4px; background: var(--gold); }

/* Why work with us */
.svc-why { padding: 3.5rem 1.25rem; text-align: center; }
.svc-why h2 { font-size: 1.9rem; margin-bottom: .5rem; }
.svc-why-sub { color: var(--text3); font-size: .95rem; margin-bottom: 2.5rem; }
.svc-why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; text-align: left; }
.svc-why-item {
  display: flex; align-items: center; gap: .7rem; background: var(--s1); border: 1px solid var(--border);
  border-radius: 10px; padding: 1rem 1.2rem; font-size: .9rem; font-weight: 600; color: var(--text);
}
.svc-why-check {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--goldpale); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700;
}

/* Final CTA + contact form */
.svc-cta-section { background: var(--s1); border-top: 1px solid var(--border); padding: 4rem 1.25rem; }
.svc-cta-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.svc-cta-inner h2 { font-size: 1.9rem; margin-bottom: .6rem; }
.svc-cta-inner > p { color: var(--text2); font-size: .95rem; margin-bottom: 2.25rem; }
.svc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.4rem; text-align: left; }
.svc-form-full { grid-column: 1 / -1; }
.svc-form-textarea { resize: vertical; min-height: 100px; }
.svc-form-done { padding: 2rem 0; }
.svc-form-done-ic {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 50%; background: var(--goldpale); color: var(--gold); font-size: 1.4rem; margin-bottom: 1rem;
}
.svc-form-done h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.svc-form-done p { color: var(--text2); font-size: .9rem; }

@media (max-width: 640px) {
  .svc-form { grid-template-columns: 1fr; }
  .svc-card-list { grid-template-columns: 1fr; }
  .svc-hero { padding: 3.5rem 1.25rem 3rem; }
  .svc-carousel-stage { height: 640px; }
  .svc-slide { width: 270px; margin-left: -135px; }
}
