:root {
  --ink: #10241c;
  --muted: #5d6f67;
  --line: #dfe6e0;
  --soft: #eef6ef;
  --paper: #fffdf8;
  --orange: #ed4f25;
  --green: #087454;
  --dark: #071c15;
  --navy: #090439;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
section[id], article[id] { scroll-margin-top: 96px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
main { min-height: 60vh; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 1000; padding: 10px 14px; border-radius: 8px; background: var(--dark); color: white; }
.skip-link:focus { top: 12px; }
.announcement-bar {
  background: linear-gradient(90deg, #0d3324, #0f7a52);
  color: #eafff5;
  font-size: 14px;
  font-weight: 650;
}
.announcement-inner {
  width: min(100% - 48px, 1320px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 9px 0;
}
.announcement-text a {
  color: #ffd9a8;
  font-weight: 800;
  margin-left: 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.announcement-text a:hover { color: #fff; }
.announcement-close {
  margin-left: auto;
  border: 0;
  background: rgba(255,255,255,.12);
  color: #eafff5;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 50%;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.announcement-close:hover { background: rgba(255,255,255,.28); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.old-container {
  width: min(100% - 48px, 1320px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(255, 253, 248, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  transition: box-shadow .25s ease, padding .25s ease, min-height .25s ease;
}
.site-header.scrolled {
  padding-top: 10px;
  padding-bottom: 10px;
  box-shadow: 0 12px 32px rgba(16, 36, 28, .12);
}
.site-header.scrolled .brand .logo-wordmark { height: 30px; }
.brand {
  flex: 1 1 0;
}
.logo-wordmark { display: block; height: 36px; width: auto; transition: height .25s ease; }
.logo-book-left { fill: #0ea56f; }
.logo-book-right { fill: #087454; }
.logo-cap { fill: #10241c; }
.logo-cap-base { fill: #1b3d30; }
.logo-tassel { fill: #ed4f25; }
.logo-word-base { fill: #10241c; }
.logo-word-accent { fill: #087454; }
.logo-swoosh { fill: #0a8f60; }
.logo-swoosh-echo { fill: #3ecf9a; opacity: .6; }
.brand .logo-wordmark { height: 38px; }
.nav {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.nav a, .nav-button {
  padding: 11px 14px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 24px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav a.active {
  color: var(--green);
  background: #e8f4ef;
  box-shadow: none;
}
.nav-dropdown {
  position: relative;
}
.nav-dropdown-head { display: flex; align-items: center; }
.nav-caret { display: none; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 210px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, .98);
  box-shadow: 0 20px 50px rgba(16,36,28,.14);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 17px;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background: #eef4ef;
  color: var(--green);
  box-shadow: none;
}
.menu-button { display: none; }

.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  align-items: end;
  padding: clamp(36px, 7vw, 90px);
  position: relative;
  overflow: hidden;
}
.image-hero {
  background-image: linear-gradient(90deg, rgba(5, 22, 16, .86), rgba(5, 22, 16, .54), rgba(5, 22, 16, .15)), var(--hero-image);
  background-size: cover;
  background-position: center;
  color: white;
}
.hero-content { max-width: 760px; padding-bottom: 30px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 900;
  font-size: 13px;
}
.image-hero .eyebrow { color: #ffb391; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(44px, 7vw, 92px); line-height: .98; letter-spacing: 0; margin-bottom: 22px; }
h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.05; letter-spacing: 0; margin-bottom: 14px; }
h3 { font-size: 22px; line-height: 1.2; margin-bottom: 8px; }
.hero p, .page-head p, .section-title p, .split-section p { color: #dce8e1; font-size: clamp(18px, 2vw, 24px); max-width: 760px; }
.page-head p, .section-title p, .split-section p { color: var(--muted); }

.actions, .tabs { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 14px 22px;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}
.btn.primary { background: linear-gradient(135deg, #ff6a3b, #df3b16); color: white; box-shadow: 0 18px 36px rgba(237, 79, 37, .22); }
.btn.dark { background: var(--dark); color: white; }
.btn.ghost { color: white; border: 1px solid rgba(255,255,255,.6); }
.btn.outline { color: var(--ink); border: 1px solid #c7d0ca; background: rgba(255,255,255,.35); }
.btn-wa { background: linear-gradient(135deg, #2bd06c, #1a9e50); color: #fff; border: 0; box-shadow: 0 14px 30px rgba(23, 165, 78, .26); gap: 8px; }
.btn-wa:hover { background: linear-gradient(135deg, #25be60, #157d41); }
.btn-wa .wa-icon { width: 19px; height: 19px; flex: 0 0 auto; }
.btn.small .wa-icon { width: 16px; height: 16px; }
.btn.light { background: white; color: #0d3324; }
.btn.light:hover { background: #eafff5; }
.btn.big { padding: 16px 26px; font-size: 18px; }
.btn.full { width: 100%; }
.btn.small { padding: 10px 14px; font-size: 14px; }

.old-home-hero {
  min-height: 680px;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(90deg, rgba(5,22,16,.88) 0%, rgba(5,22,16,.52) 44%, rgba(5,22,16,.14) 100%),
    linear-gradient(0deg, rgba(5,22,16,.42) 0%, rgba(5,22,16,0) 32%),
    var(--hero-image);
  background-size: cover, cover, cover;
  background-position: center, center, center;
  color: white;
}
.old-home-copy {
  max-width: 720px;
}
.old-home-copy h1 {
  max-width: 720px;
  color: white;
  font-size: clamp(48px, 6vw, 82px);
}
.old-home-copy p {
  color: rgba(255,255,255,.84);
  font-size: 22px;
}
.value-strip {
  background: white;
  border-bottom: 1px solid var(--line);
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.value-grid div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 14px;
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}
.value-grid div:last-child { border-right: 0; }
.value-grid span {
  grid-row: 1 / 3;
  color: var(--orange);
  font-weight: 900;
  font-size: 13px;
}
.value-grid strong {
  font-size: 17px;
}
.value-grid small {
  color: var(--muted);
}
.old-page-intro {
  position: relative;
  overflow: hidden;
  background: #eaf4ec;
  padding: clamp(64px, 8vw, 128px) 0;
}
.old-page-intro::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(8,116,84,.16);
  border-radius: 50%;
}
.old-page-intro-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr .95fr;
  gap: clamp(34px, 6vw, 78px);
  align-items: center;
}
.old-page-intro h1 {
  max-width: 760px;
  color: #10241c;
  font-size: clamp(56px, 6.2vw, 92px);
  line-height: .98;
}
.old-page-intro p:not(.eyebrow) {
  max-width: 770px;
  color: #4f665d;
  font-size: 27px;
  line-height: 1.45;
}
.old-page-intro figure {
  margin: 0;
  padding: 10px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 36px 80px rgba(16,36,28,.15);
  transform: rotate(1deg);
}
.old-page-intro figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
}
.old-public-section {
  padding-top: 72px;
  padding-bottom: 72px;
}
.section-title.center {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.old-package-grid {
  width: min(100%, 1320px);
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.old-package-card {
  grid-template-columns: 1fr;
  min-height: 390px;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(16,36,28,.08);
}
.old-package-card > img {
  height: 300px;
  min-height: 0;
  padding: 16px;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(135deg, #f8faf7, #edf5ef);
  border-radius: 0;
}
.package-card-h-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 14px;
}
.package-card-h-stats span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 7px;
  background: #eef4ef;
  color: #385347;
  font-weight: 700;
}
.two-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.section, .page-head, .split-section, .checkout, .auth-page {
  padding: clamp(42px, 7vw, 90px) clamp(20px, 5vw, 72px);
}
.no-top { padding-top: 0; }
.soft { background: var(--soft); }
.section-title { max-width: 850px; margin-bottom: 30px; }
.page-head { text-align: center; }
.page-head .eyebrow, .section-title .eyebrow, .split-section .eyebrow { color: var(--green); }
.page-head h1 { color: var(--ink); }
.page-head p { margin-left: auto; margin-right: auto; }

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.package-grid.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.package-card {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 18px 45px rgba(16, 36, 28, .08);
}
.package-card > img { height: 100%; min-height: 260px; width: 100%; object-fit: contain; padding: 6px; border-radius: 6px; background: linear-gradient(135deg, #f8faf7, #edf5ef); }
.package-card strong { display: block; color: var(--orange); font-size: 28px; margin: 10px 0 16px; }
.package-card ul { padding-left: 20px; color: var(--muted); }
.pill { display: inline-flex; background: #e8f3ec; color: var(--green); padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 900; }
.course-strip { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 14px; }
.course-strip img { width: 92px; height: 62px; flex: 0 0 auto; object-fit: cover; border-radius: 6px; }

.course-grid, .story-grid, .stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.course-card, .quote-card, .person-card, .stats article, .panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}
.course-card { padding: 0; overflow: hidden; }
.course-card img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: contain; object-position: center; background: #0a0a0a; }
.course-card div { padding: 18px; }
.course-card span, .quote-card span, .person-card span { color: var(--muted); font-weight: 700; }
.text-action { display: inline-block; margin-top: 14px; color: var(--orange); font-weight: 850; }
.quote-card p { font-size: 20px; color: var(--ink); }
.quote-author { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.quote-author strong { display: block; font-size: 15px; }
.quote-author span { display: block; font-size: 13px; }
.quote-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8f4ef;
  color: #087553;
  font-size: 19px;
  font-weight: 900;
  font-style: normal;
  overflow: hidden;
}
.quote-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Promo banners (admin-managed) */
.promo-banner-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.promo-banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, #0d3324, #10694a);
}
.promo-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--banner-image, none);
  background-size: cover;
  background-position: center;
  opacity: .38;
}
.promo-banner-copy { position: relative; padding: 26px; display: grid; gap: 8px; justify-items: start; }
.promo-banner-copy h3 { margin: 0; color: #fff; font-size: 22px; font-weight: 850; letter-spacing: -.02em; }
.promo-banner-copy p { margin: 0; color: #cdeade; font-size: 14.5px; line-height: 1.5; max-width: 46ch; }

/* How it works */
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.how-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  display: grid;
  gap: 8px;
  justify-items: start;
}
.how-step {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--orange);
  color: white;
  font-weight: 900;
  font-size: 18px;
}
.how-card h3 { margin: 4px 0 0; font-size: 17.5px; font-weight: 800; }
.how-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* FAQ accordion */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-weight: 750;
  font-size: 15.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--orange); font-size: 20px; font-weight: 800; flex: 0 0 auto; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0; padding: 0 20px 18px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* Final CTA band */
.cta-band { background: linear-gradient(120deg, #0d3324, #0f7a52); color: #eafff5; }
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 46px;
  padding-bottom: 46px;
}
.cta-band h2 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 34px); font-weight: 850; letter-spacing: -.02em; color: #fff; }
.cta-band p { margin: 0; color: #b9dccb; font-size: 15.5px; }

.split-section {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 48px;
  background: var(--soft);
}
.split-section img { border-radius: 8px; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 28px 70px rgba(16,36,28,.14); }
.person-card .avatar, .leaderboard-panel .avatar {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef3ff;
  color: var(--green);
  font-weight: 900;
  font-size: 24px;
  overflow: hidden;
}
.person-card .avatar img { width: 100%; height: 100%; object-fit: cover; }

/* About: founder / instructor spotlight with oversized portrait frames. */
.mentor-grid {
  display: grid;
  gap: 34px;
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
}
.mentor-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(22px, 4vw, 54px);
}
.mentor-right .mentor-photo { order: 2; }
.mentor-right .mentor-copy { order: 1; text-align: right; }
.mentor-photo {
  position: relative;
  /* Fixed ratio (not min-height) so the crop window stays consistent at
     every viewport width instead of swinging from ~5:4 to ultra-wide as
     the grid column collapses — that swing is what caused photos to look
     fine at one width and badly cropped at another. */
  aspect-ratio: 4 / 3;
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 18%, rgba(255,255,255,.28), rgba(255,255,255,0) 46%),
    linear-gradient(150deg, #0f8a5f 0%, #0a5c41 52%, #07392b 100%);
  box-shadow: 0 30px 70px rgba(16,36,28,.22);
  display: grid;
  place-items: center;
}
.mentor-right .mentor-photo {
  background:
    radial-gradient(circle at 70% 18%, rgba(255,255,255,.26), rgba(255,255,255,0) 46%),
    linear-gradient(210deg, #123a63 0%, #0d2a4a 52%, #081d34 100%);
}
.mentor-photo::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1.5px dashed rgba(255,255,255,.34);
  border-radius: 18px;
  pointer-events: none;
}
.mentor-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mentor-placeholder {
  display: grid;
  place-items: center;
  gap: 16px;
  text-align: center;
}
.mentor-placeholder-badge {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.14);
  border: 1.5px solid rgba(255,255,255,.42);
  box-shadow: 0 16px 34px rgba(0,0,0,.2), inset 0 0 0 6px rgba(255,255,255,.05);
}
.mentor-placeholder-mark { width: 50px; height: 50px; fill: rgba(255,255,255,.94); }
.mentor-placeholder-text {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
}
.mentor-role-chip {
  position: absolute;
  left: 22px;
  bottom: 22px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
}
.mentor-right .mentor-role-chip { left: auto; right: 22px; }
.mentor-copy {
  align-self: center;
  display: grid;
  gap: 12px;
  justify-items: start;
}
.mentor-right .mentor-copy { justify-items: end; }
.mentor-copy .eyebrow { margin: 0; }
.mentor-copy h3 { font-size: clamp(30px, 3.4vw, 44px); margin: 0; line-height: 1.06; }
.mentor-copy p:not(.eyebrow) { font-size: 18px; color: var(--muted); max-width: 46ch; margin: 0; }

/* Affiliate page: toolkit showcase on a deep gradient band. */
.toolkit-band {
  background:
    radial-gradient(700px 320px at 12% 0%, rgba(43, 208, 108, .16), transparent 60%),
    radial-gradient(760px 360px at 92% 100%, rgba(124, 58, 237, .22), transparent 62%),
    #0a1f17;
  color: #fff;
}
.toolkit-band .section-title h2 { color: #fff; }
.toolkit-band .section-title p:not(.eyebrow) { color: rgba(255,255,255,.72); }
.toolkit-rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px clamp(20px, 4vw, 64px) 20px;
  scrollbar-width: thin;
  scrollbar-color: #2bd06c rgba(255,255,255,.12);
}
.toolkit-card {
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: min(64vw, 250px);
  margin: 0;
  display: grid;
  gap: 10px;
}
.toolkit-card img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 24px 54px rgba(0,0,0,.45);
  transition: transform .25s ease;
}
.toolkit-card:hover img { transform: translateY(-6px) rotate(-1deg); }
.toolkit-tall { width: min(52vw, 210px); }
.toolkit-card figcaption {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.78);
}
.toolkit-note {
  text-align: center;
  margin: 6px auto 0;
  color: rgba(255,255,255,.6);
  font-size: 14px;
  padding: 0 20px;
}

.form-wrap { max-width: 760px; margin: auto; padding: 0 20px 80px; }
.panel label, .auth-card label, .admin-form label {
  display: grid;
  gap: 8px;
  font-weight: 850;
  margin-bottom: 18px;
}
input, textarea, select {
  width: 100%;
  border: 1px solid #cbd5cf;
  border-radius: 8px;
  padding: 14px 16px;
  font: inherit;
  background: white;
}
textarea { min-height: 110px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.notice, .error { border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; font-weight: 800; }
.notice { background: #e6f8ed; color: var(--green); }
.error { background: #fff0ec; color: #bd3010; }

.checkout { display: grid; grid-template-columns: 1fr 420px; gap: 28px; align-items: start; }
.order-card { position: sticky; top: 110px; }
.order-card img { border-radius: 8px; margin-bottom: 20px; }

.auth-page {
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
}
.auth-photo {
  min-height: 620px;
  padding: 58px;
  color: white;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.auth-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,22,16,.36), rgba(5,22,16,.86)); }
.auth-photo > * { position: relative; z-index: 1; }
.auth-photo img {
  width: 96px;
  height: 64px;
  object-fit: contain;
  background: white;
  border-radius: 8px;
  padding: 10px;
}
.auth-photo h1 { font-size: clamp(42px, 5vw, 68px); color: white; }
.auth-photo p { color: white; font-size: 20px; }
.auth-card {
  width: min(100% - 40px, 580px);
  margin: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(28px, 5vw, 46px);
  box-shadow: 0 24px 70px rgba(16,36,28,.12);
}
.auth-card h1 { color: #1b1b1b; font-size: clamp(38px, 5vw, 62px); }

.stats article span { color: var(--muted); font-weight: 800; }
.stats article strong { display: block; font-size: 34px; }

.member-app {
  min-height: 100vh;
  background: #f3f1ea;
}
.member-app + .footer {
  display: none;
}
.member-app .site-header {
  display: none;
}
.member-body > .site-header { display: none; }
.member-topbar {
  height: 106px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 18px;
  background: white;
  border-bottom: 1px solid #dcded8;
  position: sticky;
  top: 0;
  z-index: 20;
}
.top-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.top-brand .logo-wordmark { height: 36px; flex: 0 0 auto; }
.top-brand span {
  display: block;
  color: #697970;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}
.top-brand strong {
  display: block;
  color: #020b08;
  font-size: 22px;
  line-height: 1.1;
}
.top-avatar {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 1px solid #dfe5df;
  border-radius: 50%;
  background: #fff2ec;
  color: var(--orange);
  font-size: 28px;
  font-weight: 900;
}
.top-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.top-avatar.active { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 106, 61, .22); }
.notification-bell {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #dfe5df;
  border-radius: 50%;
  background: #fff;
  color: #33443c;
}
.notification-bell:hover, .notification-bell.active { background: #fff2ec; color: var(--orange); border-color: #f3cfbc; }
.notification-bell svg { width: 20px; height: 20px; }
.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  border: 2px solid #fff;
  box-sizing: border-box;
}
.notifications-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.notifications-feed { display: grid; gap: 12px; }
.notification-card { display: flex; align-items: flex-start; gap: 14px; }
.notification-card.unread { border-color: #f0b89a; background: #fffaf6; }
.notification-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eef4f0;
  color: #087553;
  font-size: 19px;
  font-style: normal;
  font-weight: 800;
}
.notification-icon.type-payout, .notification-icon.type-commission { background: #e7f6ee; color: #087553; }
.notification-icon.type-announcement { background: #fff0e4; color: var(--orange); }
.notification-icon.type-order { background: #e8eefb; color: #2b4f9e; }
.notification-body { flex: 1 1 auto; min-width: 0; display: grid; gap: 4px; }
.notification-title-row { display: flex; align-items: center; gap: 8px; }
.notification-title-row strong { font-size: 15.5px; }
.notification-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); flex: 0 0 auto; }
.notification-body p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.notification-body time { color: #93a19a; font-size: 12.5px; }
.notification-open { flex: 0 0 auto; align-self: center; }
.member-top-actions { display: flex; align-items: center; gap: 12px; }
.member-top-actions form { margin: 0; }
.member-logout {
  border: 1px solid #d7ded8;
  border-radius: 8px;
  padding: 8px 12px;
  background: white;
  color: #33443c;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.member-logout:hover { border-color: var(--orange); color: var(--orange); }
.member-shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: calc(100vh - 106px);
}
.old-sidebar {
  position: sticky;
  top: 106px;
  height: calc(100vh - 106px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: white;
  border-right: 1px solid #dcded8;
  padding: 16px 10px 18px;
}
.old-sidebar nav {
  display: grid;
  gap: 4px;
}
.old-sidebar p {
  margin: 14px 8px 6px;
  color: #68766e;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
}
.old-sidebar a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #1b2b24;
  font-size: 20px;
  font-weight: 850;
}
.old-sidebar a span {
  width: 22px;
  color: #33443c;
  text-align: center;
}
.old-sidebar a.active {
  background: var(--orange);
  color: white;
}
.old-sidebar a.active span {
  color: white;
}
.profile-link {
  margin-top: 4px;
}
.member-workspace {
  padding: 20px 24px 40px;
  overflow: hidden;
}
.member-workspace > .course-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Member courses: compact horizontal rows so several courses fit per screen */
.member-course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.member-course-grid .course-card { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: stretch; }
.member-course-grid .course-card > img { width: 100%; height: 100%; min-height: 176px; aspect-ratio: auto; object-fit: contain; padding: 12px; background: linear-gradient(135deg, #f8faf7, #edf5ef); }
.member-course-grid .course-card > div { padding: 16px 18px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.member-course-grid .course-card h3 { margin: 0; font-size: 19px; }
.member-course-grid .course-card > div > span { font-size: 12.5px; }
.member-course-grid .course-card p { margin: 0; font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.member-course-grid .course-card .progress-line { width: 100%; margin-top: auto; }
.member-course-grid .course-card .text-action, .member-course-grid .course-card .course-upgrade, .member-course-grid .course-card .locked-label { margin-top: auto; }
.member-course-grid .course-card .course-open {
  margin-top: auto;
  width: 100%;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 800;
}
@media (max-width: 1180px) { .member-course-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .member-course-grid .course-card { grid-template-columns: 118px minmax(0, 1fr); }
  .member-course-grid .course-card > img { min-height: 132px; padding: 8px; }
  .member-course-grid .course-card > div { padding: 12px 14px; }
  .member-course-grid .course-card h3 { font-size: 16.5px; }
}
.resume-band {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 18px;
}
.resume-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 550px);
  min-height: 76px;
  padding: 18px 28px;
  background: linear-gradient(135deg, #f76436, #e34219);
  color: white;
  border-radius: 8px;
  font-size: 24px;
  font-weight: 900;
}
.resume-band span {
  color: #65766e;
  font-size: 22px;
}
.learning-panel {
  background: white;
  border: 1px solid #e0e2dd;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 20px 55px rgba(16,36,28,.06);
}
.package-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid #eceee9;
}
.package-summary h1,
.package-summary h2 {
  margin: 0 0 8px;
  font-size: 28px;
}
.package-summary h1 span,
.package-summary h2 span {
  display: inline-flex;
  padding: 6px 16px;
  margin-left: 8px;
  border-radius: 999px;
  background: #dff8ed;
  color: var(--green);
  font-size: 16px;
  vertical-align: middle;
}
.package-summary p {
  color: #66766e;
  font-size: 22px;
}
.package-summary strong {
  display: block;
  color: #1b2b24;
  font-size: 20px;
}
.package-thumb {
  width: 150px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}
.progress-line {
  width: min(100%, 630px);
  height: 12px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eeeafe;
}
.progress-line i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--orange);
  border-radius: inherit;
}
.progress-line.short {
  width: 420px;
}
.course-player-card {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 24px;
  margin-top: 24px;
  padding: 28px 36px;
  border: 1px solid #eceee9;
  border-radius: 8px;
  background: linear-gradient(100deg, #fbfbff, white);
}
.course-player-card > * { min-width: 0; }
.course-player-card p { overflow-wrap: anywhere; }
.course-player-card h2 {
  font-size: 28px;
}
.course-player-card p {
  color: #61736a;
  font-size: 22px;
}
.course-player-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}
.mini-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin: 12px 0;
}
.mini-pills span,
.mini-pills a {
  padding: 7px 18px;
  border-radius: 999px;
  background: #f0edff;
  color: var(--orange);
  font-size: 18px;
  font-weight: 900;
}
.dash-grid,
.goal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0;
}
.metric-card {
  background: white;
  border: 1px solid #e0e2dd;
  border-radius: 8px;
  padding: 22px;
}
.metric-card span {
  color: #65766e;
  font-weight: 850;
}
.metric-card strong {
  display: block;
  color: var(--green);
  font-size: 32px;
  margin: 6px 0;
}
.metric-card p {
  color: #65766e;
  margin-bottom: 0;
}
.member-page-head {
  margin-bottom: 22px;
}
.member-page-head h1 {
  color: #10241c;
  font-size: 44px;
  margin-bottom: 8px;
}
.member-page-head p {
  color: #65766e;
  font-size: 21px;
}
.library-list,
.feed {
  display: grid;
  gap: 18px;
}
.lesson-block {
  padding: 0 0 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid #eceee9;
}
.lesson-block:last-child {
  border-bottom: 0;
}
.lesson-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.lesson-row {
  display: grid;
  grid-template-columns: 42px 1fr 100px 90px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  background: #fbfbfb;
}
.lesson-row span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f0edff;
  color: var(--orange);
  font-weight: 900;
}
.lesson-row strong {
  color: #63736b;
  font-size: 20px;
}
.lesson-row em {
  color: #68766e;
  font-style: normal;
}
.lesson-row b {
  justify-self: end;
  padding: 6px 14px;
  border-radius: 999px;
  background: #dff8e8;
  color: var(--green);
}
.lesson-row form { margin: 0; justify-self: end; }
.lesson-action {
  min-width: 88px;
  border: 1px solid #f0b29f;
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff2ed;
  color: #c43b17;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.lesson-action.done { border-color: #bde5cd; background: #dff8e8; color: var(--green); }
.compact-form {
  margin-bottom: 20px;
}
.affiliate-box input[readonly] {
  font-weight: 800;
  color: var(--green);
}
.simple-table {
  display: grid;
  gap: 8px;
}
.simple-table div {
  display: grid;
  grid-template-columns: 1fr 130px 140px;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eceee9;
}
.simple-table strong {
  text-align: right;
  color: var(--green);
}
.faq-list {
  display: grid;
  gap: 16px;
}
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.profile-grid > .btn {
  grid-column: 1 / -1;
  justify-self: start;
}
.profile-avatar {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #fff2ec;
  color: var(--orange);
  font-size: 34px;
  font-weight: 900;
  margin-bottom: 16px;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.upgrade-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.member-package-card {
  align-items: stretch;
}
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0 20px;
}
.left-tabs {
  justify-content: flex-start;
}
.no-margin {
  margin: 0;
}

.leaderboard-panel {
  background: var(--navy);
  color: white;
  border-radius: 8px;
  padding: clamp(18px, 4vw, 34px);
  box-shadow: 0 20px 50px rgba(9,4,57,.16);
}
.podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 14px;
  margin-bottom: 22px;
}
.podium-place {
  text-align: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  padding: 20px 12px;
}
.podium-place.rank-1 { transform: translateY(-12px); border-color: #ffb31a; }
.podium-place .avatar { margin: 0 auto 12px; background: white; color: var(--navy); }
.crown {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: #ffb31a;
  color: #111;
  font-weight: 900;
}
.podium-place strong { color: #ff7a35; display: block; font-size: 24px; }
.rank-list { display: grid; gap: 10px; }
.rank-row {
  display: grid;
  grid-template-columns: 52px 1fr 110px 90px 130px;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
}
.rank-row strong { width: 36px; height: 36px; border-radius: 50%; background: #ffb31a; color: #111; display: grid; place-items: center; }
.rank-row small { color: #f6d9ff; font-weight: 800; }
.rank-row em { color: #c7d9d1; font-style: normal; }
.rank-row b { text-align: right; color: #ffb391; }
.empty { text-align: center; padding: 50px 16px; color: #d6e2dc; }
.tabs { justify-content: center; margin-top: 20px; }
.tabs a { border: 1px solid var(--line); padding: 10px 16px; border-radius: 8px; font-weight: 850; }
.tabs a.active { background: var(--dark); color: white; }

.leaderboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}
.public-leaderboard-grid { max-width: 1320px; margin: 0 auto; }
.leaderboard-panel {
  padding: 24px;
  border-radius: 24px;
  background: #0c0647;
  box-shadow: 0 18px 44px rgba(12, 6, 71, .16);
}
.leaderboard-title {
  margin: 0 0 30px;
  color: white;
  font-size: 21px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.leaderboard-panel .podium {
  min-height: 250px;
  align-items: end;
  gap: 8px;
  margin: 0 0 26px;
}
.leaderboard-panel .podium-count-1 { grid-template-columns: minmax(0, 190px); justify-content: center; }
.leaderboard-panel .podium-count-2 { grid-template-columns: repeat(2, minmax(0, 180px)); justify-content: center; }
.leaderboard-panel .podium-place {
  position: relative;
  padding: 0 4px;
  border: 0;
  background: transparent;
}
.leaderboard-panel .podium-place.rank-1 { order: 2; transform: translateY(-24px); }
.leaderboard-panel .podium-place.rank-2 { order: 1; }
.leaderboard-panel .podium-place.rank-3 { order: 3; }
.leaderboard-panel .podium-count-1 .rank-1,
.leaderboard-panel .podium-count-2 .rank-1 { order: initial; }
.leaderboard-panel .podium-count-2 .rank-2 { order: initial; }
.leaderboard-panel .crown {
  width: auto;
  height: 48px;
  margin-bottom: -5px;
  overflow: visible;
  background: transparent;
  color: #d79028;
  font-size: 54px;
  line-height: 1;
}
.leaderboard-panel .rank-2 .crown { color: #c47b68; }
.leaderboard-panel .rank-3 .crown { color: #d7dce8; }
.leaderboard-panel .avatar {
  width: 128px;
  height: 128px;
  overflow: hidden;
  margin: 0 auto;
  border: 4px solid #fc572b;
  background: #fff;
  color: #0c0647;
  font-size: 44px;
}
.leaderboard-panel .rank-2 .avatar { width: 100px; height: 100px; border-color: #08afe3; }
.leaderboard-panel .rank-3 .avatar { width: 100px; height: 100px; border-color: #b73be2; }
.leaderboard-panel .avatar img,
.rank-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rank-badge {
  display: inline-flex;
  min-width: 44px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  margin-top: -8px;
  border-radius: 999px;
  background: #fc572b;
  color: white;
  font-weight: 800;
}
.rank-2 .rank-badge { background: #08afe3; }
.rank-3 .rank-badge { background: #b73be2; }
.leaderboard-panel .podium-place h3 { margin: 9px 0 5px; }
.leaderboard-panel .podium-place h3 span {
  display: inline-block;
  max-width: 100%;
  padding: 5px 12px;
  overflow: hidden;
  border-radius: 999px;
  background: white;
  color: #151515;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.leaderboard-panel .podium-place strong { margin: 0; color: #fb5a2d; font-size: 20px; }
.leaderboard-panel .rank-2 strong { color: #10b9e8; }
.leaderboard-panel .rank-3 strong { color: #c448e2; }
.leaderboard-panel .rank-list { gap: 12px; }
.leaderboard-panel .rank-row {
  grid-template-columns: 38px 54px minmax(0, 1fr) auto;
  min-height: 72px;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid #df285f;
  border-radius: 20px;
  background: rgba(255,255,255,.015);
}
.leaderboard-panel .rank-row > strong {
  width: 34px;
  height: 34px;
  background: #ed285d;
  color: white;
  font-size: 15px;
}
.rank-avatar {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 3px solid white;
  border-radius: 50%;
  background: #eef3ff;
  color: #0c0647;
  font-weight: 900;
}
.leaderboard-panel .rank-row > span { color: white; font-size: 16px; font-weight: 700; line-height: 1.2; }
.leaderboard-panel .rank-row > b { color: white; font-size: 17px; white-space: nowrap; }
.leaderboard-panel .empty {
  min-height: 220px;
  display: grid;
  place-content: center;
  gap: 6px;
  color: #cbd0e9;
}
.leaderboard-panel .empty strong { color: white; font-size: 20px; }
.leaderboard-panel .empty span { font-size: 14px; }

@media (max-width: 1180px) {
  .leaderboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .leaderboard-panel { padding: 20px 14px; border-radius: 20px; }
  .leaderboard-title { margin-bottom: 24px; font-size: 18px; }
  .leaderboard-panel .podium { min-height: 220px; }
  .leaderboard-panel .avatar { width: 104px; height: 104px; font-size: 36px; }
  .leaderboard-panel .rank-2 .avatar,
  .leaderboard-panel .rank-3 .avatar { width: 84px; height: 84px; font-size: 30px; }
  .leaderboard-panel .crown { height: 42px; font-size: 46px; }
  .leaderboard-panel .podium-place h3 span { padding: 4px 9px; font-size: 14px; }
  .leaderboard-panel .podium-place strong { font-size: 17px; }
  .leaderboard-panel .rank-row { grid-template-columns: 34px 46px minmax(0, 1fr) auto; min-height: 66px; padding: 7px 10px; }
  .rank-avatar { width: 44px; height: 44px; }
  .leaderboard-panel .rank-row > span { font-size: 14px; }
  .leaderboard-panel .rank-row > b { font-size: 15px; }
}

.admin-form { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.row-form { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.check { display: flex !important; grid-template-columns: auto 1fr; align-items: center; }
.check input { width: auto; }
.footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
  background: var(--dark);
  color: white;
  padding: 44px clamp(20px, 5vw, 72px);
}
.footer-logo { display: inline-block; margin-bottom: 4px; }
.footer-logo .logo-wordmark { height: 44px; }
.footer .logo-cap { fill: #ffffff; }
.footer .logo-cap-base { fill: #cfe8db; }
.footer .logo-word-base { fill: #ffffff; }
.footer .logo-word-accent { fill: #3ecf9a; }
.footer .logo-swoosh { fill: #3ecf9a; }
.footer .logo-swoosh-echo { fill: #b9f4dc; opacity: .55; }
.footer a { display: block; color: #dce8e1; margin: 8px 0; }
.fine-print { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.14); padding-top: 20px; color: #aebdb6; }
.socials { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-contact { margin: 14px 0; }
.footer-contact a { width: fit-content; margin: 4px 0; }
.social-link {
  width: 42px;
  height: 42px;
  display: grid !important;
  place-items: center;
  margin: 0 !important;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.social-link:hover { background: var(--orange); border-color: var(--orange); transform: translateY(-2px); }
.social-link svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social-link svg .fill-icon { fill: currentColor; stroke: none; }

@media (max-width: 980px) {
  .package-grid, .package-grid.wide, .course-grid, .story-grid, .stats, .split-section, .checkout, .auth-page, .old-page-intro-layout, .two-info, .value-grid, .how-grid {
    grid-template-columns: 1fr;
  }
  .mentor-card { grid-template-columns: 1fr; gap: 20px; }
  .mentor-right .mentor-photo { order: 0; }
  .mentor-right .mentor-copy { order: 1; text-align: left; justify-items: start; }
  .mentor-right .mentor-role-chip { left: 22px; right: auto; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .value-grid div { border-right: 0; border-bottom: 1px solid var(--line); }
  .old-page-intro h1 { font-size: 54px; }
  .old-page-intro p:not(.eyebrow) { font-size: 22px; }
  .auth-photo { min-height: 360px; }
  .order-card { position: static; }
  .member-shell {
    grid-template-columns: 1fr;
  }
  .old-sidebar {
    position: static;
    height: auto;
  }
  .old-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .course-player-card,
  .dash-grid,
  .goal-grid,
  .upgrade-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header { padding: 14px 18px; }
  .menu-button { display: inline-flex; align-items: center; border: 1px solid var(--line); background: white; border-radius: 8px; padding: 10px 14px; min-height: 44px; font-weight: 900; }
  .brand { flex: 0 0 auto; }
  .nav {
    display: none;
    position: absolute;
    left: 18px;
    right: 18px;
    top: 72px;
    padding: 12px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(16,36,28,.12);
    flex-direction: column;
    align-items: stretch;
  }
  .nav.open { display: flex; }
  .nav a, .nav-button { padding: 13px 14px; }
  .nav-dropdown-head { gap: 2px; }
  .nav-dropdown-head > a { flex: 1 1 auto; }
  .nav-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }
  .nav-caret:active { background: #eef4ef; }
  .nav-caret svg { width: 16px; height: 12px; transition: transform .25s ease; }
  .nav-dropdown.open .nav-caret svg { transform: rotate(180deg); }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    min-width: 0;
    margin: 0;
    padding: 0 6px;
    border: 0;
    border-radius: 12px;
    box-shadow: none;
    background: #f8faf7;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height .3s ease, padding .3s ease, margin .3s ease, opacity .25s ease, visibility .3s ease;
  }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    transform: none;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    visibility: hidden;
  }
  .nav-dropdown.open .nav-dropdown-menu,
  .nav-dropdown.open:hover .nav-dropdown-menu,
  .nav-dropdown.open:focus-within .nav-dropdown-menu {
    max-height: 560px;
    margin-top: 4px;
    padding: 6px;
    opacity: 1;
    visibility: visible;
  }
  .nav-dropdown-all { font-weight: 800; color: var(--green); }
  .nav form, .nav-button { width: 100%; text-align: left; }
  .hero { min-height: 620px; }
  h1 { font-size: 44px; }
  .old-container { width: min(100% - 32px, 1320px); }
  .old-home-hero {
    min-height: 560px;
    align-items: flex-end;
    padding-bottom: 56px;
    background-image:
      linear-gradient(180deg, rgba(5,22,16,.58) 0%, rgba(5,22,16,.24) 38%, rgba(5,22,16,.86) 100%),
      var(--hero-image);
    background-position: 66% center, 66% center;
  }
  .old-home-copy p { font-size: 18px; }
  .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value-grid div { padding: 16px 18px; }
  .value-grid div:nth-child(odd) { border-right: 1px solid var(--line); }
  .old-home-copy h1, .old-page-intro h1 { font-size: 42px; }
  .old-page-intro { padding: 52px 0; }
  .old-page-intro figure { transform: none; border-radius: 16px; }
  .package-card { grid-template-columns: 1fr; }
  .package-card > img { min-height: 220px; }
  .two, .podium { grid-template-columns: 1fr; }
  .rank-row { grid-template-columns: 44px 1fr; }
  .rank-row small, .rank-row em, .rank-row b { text-align: left; }
  .footer { grid-template-columns: 1fr; gap: 22px; }
  .footer a { margin: 0; padding: 11px 0; }
  .footer .social-link { padding: 0; }
  .footer-contact a { padding: 9px 0; }
  .member-topbar {
    height: auto;
  }
  .member-workspace {
    padding: 16px;
  }
  .old-sidebar nav {
    grid-template-columns: 1fr;
  }
  .old-sidebar a {
    font-size: 17px;
  }
  .resume-band,
  .package-summary {
    align-items: stretch;
    flex-direction: column;
  }
  .resume-button {
    min-width: 0;
    width: 100%;
    font-size: 20px;
  }
  .lesson-row,
  .simple-table div {
    grid-template-columns: 1fr;
  }
}

/* Consistent visual scale shared by public, checkout and member pages. */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 86px;
  padding: 10px clamp(24px, 4vw, 64px);
}
.brand { justify-self: start; }
.nav { gap: clamp(28px, 3.2vw, 52px); }
.nav a,
.nav-button { font-size: 17px; padding: 10px 14px; }
.nav-dropdown-menu a { font-size: 15px; }

h1 { font-size: clamp(38px, 4.5vw, 64px); line-height: 1.04; }
h2 { font-size: clamp(27px, 3vw, 40px); line-height: 1.12; }
h3 { font-size: 20px; }
.section,
.page-head,
.split-section,
.checkout,
.auth-page { padding: clamp(40px, 5vw, 72px) clamp(20px, 4vw, 64px); }
.old-public-section { padding-top: 54px; padding-bottom: 54px; }
.section-title { margin-bottom: 24px; }
.section-title p,
.page-head p,
.split-section p { font-size: clamp(16px, 1.3vw, 19px); }
.page-head h1 { font-size: clamp(34px, 4vw, 48px); }
.panel h2 { font-size: clamp(24px, 2.4vw, 30px); }
.panel h3 { font-size: 19px; }
.btn { min-height: 46px; padding: 11px 20px; font-size: 16px; }

.old-home-hero { min-height: 600px; }
.old-home-copy h1 { font-size: clamp(42px, 5vw, 66px); line-height: 1.04; }
.old-home-copy p { font-size: clamp(17px, 1.6vw, 20px); }
.old-page-intro { padding: clamp(54px, 6vw, 88px) 0; }
.old-page-intro-layout { gap: clamp(32px, 5vw, 64px); }
.old-page-intro h1 { font-size: clamp(42px, 5vw, 68px); line-height: 1.04; }
.old-page-intro p:not(.eyebrow) { font-size: clamp(17px, 1.6vw, 20px); }
.old-page-intro figure { border-radius: 18px; }

.packages-intro {
  padding: 36px 20px 34px;
  text-align: center;
  background: linear-gradient(180deg, #eaf4ec, #f7f8f3);
  border-bottom: 1px solid var(--line);
}
.packages-intro h1 { margin-bottom: 8px; font-size: clamp(32px, 3.5vw, 46px); }
.packages-intro p:last-child { margin: 0; color: var(--muted); font-size: 17px; }

.package-grid.wide.old-package-grid {
  width: min(100%, 1760px);
  grid-template-columns: 1fr;
  gap: 24px;
}
.old-package-card {
  grid-template-columns: minmax(320px, 46%) minmax(0, 1fr);
  gap: 22px;
  min-height: 326px;
  padding: 12px;
  border-radius: 18px;
  overflow: hidden;
}
.old-package-card > img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  padding: 6px;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
}
.old-package-card > div { min-width: 0; display: flex; flex-direction: column; padding: 4px 4px 4px 0; }
.old-package-card h2,
.old-package-card h3 { margin: 6px 0 2px; font-size: 24px; }
.old-package-card strong { margin: 4px 0 10px; font-size: 28px; }
.old-package-card p { margin-bottom: 8px; line-height: 1.45; }
.old-package-card ul { margin: 4px 0 14px; }
.old-package-card .btn { margin-top: auto; }
.package-card-h-stats { gap: 8px; margin: 8px 0 10px; }
.package-card-h-stats span { padding: 5px 8px; font-size: 14px; }
.course-grid { gap: 20px; }
.course-card div { padding: 16px; }

.auth-card h1 { font-size: clamp(34px, 4vw, 48px); }
.auth-photo h1 { font-size: clamp(38px, 4.2vw, 54px); }
.auth-page { padding: 0; }
.checkout-form h1 { font-size: clamp(30px, 3vw, 40px); }
.checkout-form > p { color: var(--muted); }
.order-card h2 { font-size: 28px; }
.order-card > strong { display: block; color: var(--orange); font-size: 26px; margin-bottom: 12px; }
.order-card > img {
  width: 100%;
  height: clamp(280px, 31vw, 420px);
  padding: 12px;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(135deg, #fafafa, #f3f5f2);
}
.checkout { grid-template-columns: minmax(360px, 440px) minmax(0, 1fr); max-width: 1320px; margin: 0 auto; }
.checkout > :first-child { order: 2; }
.checkout > :last-child { order: 1; }
.payment-page { min-height: calc(100vh - 180px); display: grid; place-items: center; }
.payment-card { width: min(100%, 560px); }
.payment-card h1 { font-size: clamp(30px, 3vw, 40px); }
.payment-package { display: flex; align-items: center; gap: 18px; margin: 24px 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fafbf9; }
.payment-package img { width: 92px; height: 110px; object-fit: contain; }
.payment-package div { display: grid; gap: 6px; }
.payment-package strong { font-size: 22px; }
.payment-package span { color: var(--orange); font-size: 26px; font-weight: 800; }
.payment-credit-note { margin: -10px 0 14px; color: var(--green); font-size: 14px; font-weight: 600; line-height: 1.5; }
.payment-note { display: block; margin-top: 14px; color: var(--muted); line-height: 1.5; }

/* Upgrade credit (checkout order card + member upgrade page) */
.price-breakdown { list-style: none; margin: 12px 0 16px; padding: 14px 0; border-top: 1px dashed #d8e2dc; border-bottom: 1px dashed #d8e2dc; display: grid; gap: 9px; }
.price-breakdown li { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: #40514a; }
.price-breakdown li.credit span:last-child { color: var(--green); font-weight: 700; }
.price-breakdown .price-total { border-top: 1px solid #e3ebe6; padding-top: 10px; font-size: 18px; font-weight: 800; color: var(--ink, #10241c); }
.price-breakdown .price-total span:last-child { color: var(--orange); }
.upgrade-price { margin: 0 0 4px; }
.upgrade-price s { color: var(--muted); font-size: 16px; font-weight: 500; margin-right: 10px; }
.upgrade-price strong { color: var(--orange); font-size: 26px; }
.upgrade-credit-note { margin: 0 0 10px; color: var(--green); font-size: 13px; font-weight: 700; }
.upgrade-included { background: #eef4f0; color: var(--green); border: 1px solid #d5e5dc; cursor: default; pointer-events: none; font-weight: 700; }
.auth-help { display: block; width: fit-content; margin: -6px 0 12px auto; color: var(--green); font-weight: 600; }
.auth-simple { min-height: calc(100vh - 180px); display: grid; place-items: center; }
.auth-simple-card { width: min(100%, 520px); }
.auth-simple-card h1 { font-size: clamp(28px, 3vw, 38px); }

.member-topbar { height: 82px; padding: 10px 18px; }
.top-brand .logo-wordmark { height: 32px; }
.top-brand span { font-size: 12px; }
.top-brand strong { font-size: 18px; }
.top-avatar { width: 50px; height: 50px; font-size: 20px; }
.member-shell { grid-template-columns: 200px 1fr; min-height: calc(100vh - 82px); }
.old-sidebar { top: 82px; height: calc(100vh - 82px); padding: 12px 8px 16px; }
.old-sidebar p { margin: 10px 8px 4px; font-size: 11px; }
.old-sidebar a { gap: 9px; padding: 8px 10px; font-size: 14.5px; }
.member-workspace { padding: 18px 16px 32px; }
.member-page-head { margin-bottom: 16px; }
.member-page-head h1 { font-size: clamp(30px, 3vw, 38px); }
.member-page-head p { font-size: 17px; }
.resume-button { min-height: 54px; padding: 12px 20px; font-size: 18px; }
.resume-band span { font-size: 17px; }
.learning-panel { padding: 22px; }
.package-summary h1,
.package-summary h2,
.course-player-card h2 { font-size: 23px; }
.package-summary p,
.course-player-card p { font-size: 17px; }
.package-summary strong,
.lesson-row strong { font-size: 17px; }
.course-player-card { grid-template-columns: 1fr 230px; padding: 22px 26px; }
.mini-pills span,
.mini-pills a { padding: 5px 12px; font-size: 14px; }
.metric-card { padding: 18px; }
.metric-card strong { font-size: 26px; }
.member-package-card > img {
  height: auto;
  min-height: 0;
  aspect-ratio: 1 / 1;
  padding: 10px;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(135deg, #f8faf7, #edf5ef);
  border-radius: 12px;
  align-self: center;
}
.member-package-card { grid-template-columns: minmax(250px, 44%) minmax(0, 1fr); }

/* Compact member UI: readable without oversized or overly heavy type. */
.member-app { font-size: 15px; }
.member-workspace h1,
.member-workspace h2,
.member-workspace h3 { font-weight: 700; letter-spacing: -.02em; }
.member-page-head h1 { font-size: clamp(26px, 2.4vw, 34px); font-weight: 700; }
.member-page-head h2 { font-size: clamp(22px, 2vw, 28px); font-weight: 700; }
.member-page-head p { font-size: 15px; }
.old-sidebar a { font-size: 15px; font-weight: 600; }
.top-brand strong { font-weight: 700; }
.metric-card span { font-weight: 600; }
.metric-card strong { font-size: 24px; font-weight: 700; }
.metric-card p { font-size: 14px; }
.course-card h3 { font-size: 19px; font-weight: 700; }
.course-card p { font-size: 14px; }
.course-locked img { filter: saturate(.65); opacity: .82; }
.course-locked > div { background: #fafaf8; }
.locked-label {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 18px;
  border-radius: 12px;
  background: #f0efe9;
  color: #7d8d85;
  font-weight: 800;
  border: 1px dashed #d6dcd6;
}
.course-upgrade { width: fit-content; margin-top: 12px; }
.locked-label { display: inline-block; margin-top: 10px; color: var(--muted); font-weight: 600; }
.earnings-heading { margin-top: 24px; }
.earnings-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.affiliate-package-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.affiliate-package-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 16px; align-items: center; }
.affiliate-package-card > img { width: 100%; height: 190px; object-fit: contain; background: #f7f8f5; border-radius: 10px; }
.affiliate-package-card > div { display: grid; gap: 7px; }
.affiliate-package-card h2 { margin: 0; font-size: 21px; font-weight: 700; }
.affiliate-package-card > div > span { color: var(--green); font-size: 13px; font-weight: 700; }
.affiliate-package-card > div > strong { color: var(--orange); font-size: 22px; }
.copy-status { min-height: 18px; overflow-wrap: anywhere; color: var(--green); }

/* Personal earnings dashboard */
.earnings-hero { display: flex; align-items: end; justify-content: space-between; gap: 28px; padding: 26px 28px; color: #fff; border-radius: 18px; background: linear-gradient(125deg, #082d25 0%, #0b624d 70%, #0c8061 100%); box-shadow: 0 16px 36px rgba(6, 54, 42, .16); }
.earnings-hero .eyebrow { color: #8de0c2; margin-bottom: 5px; }
.earnings-total { display: block; margin: 0; color: #fff; font-size: clamp(36px, 4vw, 52px); font-weight: 700; line-height: 1.2; }
.earnings-hero p:last-child { margin: 7px 0 0; color: #d8eee7; }
.earnings-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.share-nudge { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; padding: 18px 22px; background: #fff8e7; border: 1px solid #f2ddb0; border-radius: 14px; }
.share-nudge strong { display: block; font-size: 16px; color: #5b3a05; }
.share-nudge .eyebrow { color: #a8760a; }
.share-nudge-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.share-nudge .earnings-wa { background: #25d366; color: #fff; font-weight: 700; }
.share-nudge .earnings-wa:hover { background: #1fb457; }
.share-nudge .earnings-secondary { border: 1px solid #ecd9ae; background: #fff; color: #7a5208; }
.earnings-secondary { border: 1px solid #bdd0c8; background: #fff; color: #123a30; }
.earnings-hero .earnings-secondary { border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.1); color: #fff; }
.earnings-period-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.earnings-period-card { position: relative; overflow: hidden; padding: 19px; background: #fff; border: 1px solid #dce3de; border-radius: 14px; }
.earnings-period-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #0b7659; }
.earnings-period-card.weekly::after { background: #3b67c5; }
.earnings-period-card.monthly::after { background: #d68a1c; }
.earnings-period-card.lifetime::after { background: #7654b8; }
.earnings-card-top { display: flex; align-items: center; justify-content: space-between; color: #64766e; font-weight: 600; }
.earnings-card-top i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #edf7f2; color: #087553; font-style: normal; font-weight: 700; }
.earnings-period-card > strong { display: block; margin: 13px 0 7px; color: #10251d; font-size: 27px; font-weight: 700; }
.earnings-period-card p { margin: 0; color: #697970; font-size: 13px; }
.earnings-period-card p b { color: #263d35; }
.earnings-content-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .7fr); gap: 18px; }
.earnings-history-card, .earnings-summary-card { padding: 22px; }
.card-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid #e3e8e4; }
.card-heading .eyebrow { margin: 0 0 4px; }
.card-heading h2, .earnings-summary-card h2 { margin: 0; font-size: 23px; }
.card-heading > span { color: #6b7b73; font-size: 13px; }
.earnings-list { display: grid; }
.earning-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid #edf0ed; }
.earning-row:last-child { border-bottom: 0; }
.earning-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #e8f5ef; color: #087553; font-weight: 700; }
.earning-row > div { display: grid; gap: 3px; }
.earning-row span { color: #718078; font-size: 12px; }
.earning-row > div:last-child { justify-items: end; }
.earning-row b { color: #087553; font-size: 16px; }
.status-chip { padding: 2px 7px; border-radius: 20px; background: #e9f6ef; color: #087553 !important; text-transform: capitalize; }
.earnings-empty { padding: 42px 16px; text-align: center; }
.earnings-empty p { max-width: 520px; margin: 8px auto; color: #68776f; }
.earnings-empty a { color: #087553; font-weight: 700; }
.earnings-summary-card { align-self: start; }
.summary-line { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid #e5e9e6; color: #66776f; }
.summary-line strong { color: #10251d; }
.earnings-note { margin: 18px 0; padding: 14px; border-radius: 10px; background: #f1f6f3; }
.earnings-note p { margin: 5px 0 0; color: #61736a; font-size: 13px; line-height: 1.5; }

/* One compact, tabbed top-ten leaderboard across all periods. */
.leaderboard-experience { width: min(100%, 920px); margin: 0 auto; }
.leaderboard-jumps { position: sticky; top: 88px; z-index: 8; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 16px; padding: 7px; border: 1px solid #dce3de; border-radius: 14px; background: rgba(255,255,255,.96); box-shadow: 0 8px 24px rgba(16, 36, 28, .08); backdrop-filter: blur(10px); }
.leaderboard-jumps a { display: grid; gap: 2px; padding: 9px 8px; border-radius: 9px; color: #52675e; text-align: center; }
.leaderboard-jumps a:hover { background: #edf5f1; color: #087553; }
.leaderboard-jumps span { font-size: 14px; font-weight: 700; }
.leaderboard-jumps small { color: #809087; font-size: 11px; }
.leaderboard-panels { display: grid; gap: 22px; }
.leaderboard-panels .leaderboard-panel { scroll-margin-top: 170px; }
.leaderboard-panels > [hidden] { display: none; }
.leaderboard-experience .leaderboard-panel { padding: 24px clamp(16px, 3vw, 30px) 28px; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; background: radial-gradient(circle at 50% 20%, #203b74 0, #111b4c 34%, #0c143c 72%, #090f31 100%); box-shadow: 0 20px 48px rgba(9, 15, 49, .2); }
.leaderboard-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 22px; }
.leaderboard-panel-head p { margin: 0 0 3px; color: #91accc; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.leaderboard-panel-head .leaderboard-title { margin: 0; text-align: left; font-size: 22px; text-transform: none; letter-spacing: -.01em; }
.leaderboard-panel-head > span { padding: 6px 10px; border: 1px solid rgba(141,224,194,.3); border-radius: 99px; color: #9fe4ca; font-size: 11px; }
.leaderboard-experience .leaderboard-panel .podium { width: min(100%, 620px); min-height: 240px; margin: 10px auto 26px; gap: 16px; }
.leaderboard-experience .leaderboard-panel .podium-place.rank-1 { transform: translateY(-20px); }
.leaderboard-experience .leaderboard-panel .crown { height: 42px; color: #f3b737; font-size: 48px; }
.leaderboard-experience .leaderboard-panel .rank-2 .crown { color: #d68068; font-size: 34px; }
.leaderboard-experience .leaderboard-panel .rank-3 .crown { color: #bfc7d8; font-size: 34px; }
.leaderboard-experience .leaderboard-panel .avatar { box-shadow: 0 8px 24px rgba(0,0,0,.24); }
.leaderboard-experience .podium-place > small { display: block; margin-top: 4px; color: #aebbd0; font-size: 11px; }
.leaderboard-experience .leaderboard-panel .rank-list { width: min(100%, 760px); margin: 0 auto; gap: 8px; }
.leaderboard-experience .leaderboard-panel .rank-row { min-height: 62px; padding: 6px 12px; border: 1px solid rgba(111,141,198,.3); border-radius: 12px; background: rgba(255,255,255,.055); }
.leaderboard-experience .leaderboard-panel .rank-row:hover { border-color: rgba(141,224,194,.55); background: rgba(255,255,255,.08); }
.leaderboard-experience .leaderboard-panel .rank-row > strong { background: #263d73; }
.leaderboard-experience .leaderboard-panel .rank-row > span { display: grid; gap: 2px; font-weight: 600; }
.leaderboard-experience .leaderboard-panel .rank-row > span small { color: #9caec7; font-size: 11px; font-weight: 500; }
.leaderboard-experience .rank-avatar { width: 44px; height: 44px; border-width: 2px; }
.leaderboard-experience .leaderboard-panel .rank-row > b { color: #9fe4ca; font-size: 16px; }

.team-stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.team-stat-grid article { padding: 15px; border: 1px solid #dce3de; border-radius: 12px; background: #fff; }
.team-stat-grid span { display: block; min-height: 36px; color: #66776f; font-size: 12px; line-height: 1.4; }
.team-stat-grid strong { display: block; margin-top: 5px; color: #087553; font-size: 23px; }
.team-detail-card { margin-bottom: 18px; padding: 22px; }
.team-table { display: grid; }
.team-table-head, .team-table-row { display: grid; grid-template-columns: 44px 1.1fr .9fr 1fr .85fr .55fr; gap: 14px; align-items: center; }
.team-table-head { padding: 12px 10px; color: #6b7a72; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.team-table-row { min-height: 68px; padding: 11px 10px; border-top: 1px solid #e5e9e6; }
.team-table-row > span { display: grid; gap: 3px; min-width: 0; }
.team-table-row b { overflow: hidden; color: #18332a; font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.team-table-row small { overflow: hidden; color: #76857d; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.team-status { width: fit-content; padding: 4px 8px; border-radius: 99px; background: #eef1ef; color: #64746c; font-size: 11px; font-style: normal; font-weight: 700; text-transform: capitalize; }
.team-status.approved { background: #e7f6ee; color: #087553; }
.team-status.pending { background: #fff5dd; color: #9a6410; }
.team-status.rejected { background: #fff0ec; color: #bd3010; }
.team-whatsapp { width: fit-content; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 8px; background: #e2f7eb; color: #087553; font-size: 12px; font-weight: 750; text-decoration: none; }
.team-whatsapp:hover { background: #c9eedb; }
.team-whatsapp.unavailable { padding: 0; background: transparent; color: #87948e; font-weight: 600; }

/* ===================== Admin course preview (workspace styles live in admin.css) ===================== */
.admin-course-preview {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 32px);
  align-items: start;
}
.admin-course-preview > img { position: sticky; top: 100px; width: 100%; max-height: 400px; border-radius: 14px; object-fit: cover; box-shadow: 0 12px 30px rgba(16,36,28,.08); }
.preview-lessons { display: grid; gap: 16px; }
.preview-lesson { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.preview-lesson > span { color: var(--muted); font-size: 13.5px; }
.preview-lesson h2 { margin: 7px 0; font-size: 17px; font-weight: 700; }
.preview-lesson video, .lesson-video { width: 100%; max-height: 440px; margin-top: 12px; border-radius: 8px; background: #09130f; }
.lesson-video-embed { min-height: 360px; border: 0; aspect-ratio: 16 / 9; }
.lesson-description, .lesson-video, .lesson-video-link { grid-column: 1 / -1; }
.lesson-description { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.lesson-video-link { width: fit-content; color: var(--green); font-weight: 700; }

/* Shared interaction language for cards, actions and navigation. */
.btn,
.text-action,
.old-sidebar a,
.leaderboard-jumps a,
.course-card,
.metric-card,
.earnings-period-card,
.affiliate-package-card,
.member-package-card,
.goal-grid article,
.panel { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease, color .2s ease; }
.btn { box-shadow: 0 5px 14px rgba(16, 36, 28, .08); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(16, 36, 28, .14); }
.btn.primary:hover { background: #dc431f; }
.btn.dark:hover { background: #183c31; }
.btn:active { transform: translateY(0); box-shadow: 0 3px 8px rgba(16, 36, 28, .1); }
.text-action:hover { color: #c83b19; text-decoration: underline; text-underline-offset: 4px; }
.input-invalid { border-color: #dc2626 !important; box-shadow: 0 0 0 2px rgba(220,38,38,.12); }
.hint-error { color: #dc2626 !important; }
.avatar-remove-form { margin: 6px 0 12px; }
.old-sidebar a:hover:not(.active) { transform: translateX(3px); background: #edf5f1; color: #087553; }
.course-card:hover,
.metric-card:hover,
.earnings-period-card:hover,
.affiliate-package-card:hover,
.member-package-card:hover,
.goal-grid article:hover { transform: translateY(-3px); border-color: #b8cec4; box-shadow: 0 14px 30px rgba(16, 50, 38, .1); }
.earnings-period-card:hover .earnings-card-top i { transform: scale(1.08); background: #dff2e9; }
.earnings-card-top i { transition: transform .2s ease, background-color .2s ease; }
.earning-row { transition: background-color .18s ease, padding .18s ease; }
.earning-row:hover { padding-left: 8px; padding-right: 8px; border-radius: 9px; background: #f5f9f7; }
.summary-line { transition: color .18s ease, padding .18s ease, background-color .18s ease; }
.summary-line:hover { padding-left: 8px; padding-right: 8px; background: #f4f8f6; }
.team-table-row { transition: background-color .18s ease; }
.team-table-row:hover { background: #f5f9f7; }
.sample-data-note { display: flex; align-items: center; gap: 9px; margin: 14px 0 10px; padding: 10px 12px; border-radius: 9px; background: #fff8e8; color: #6e5a2c; font-size: 13px; }
.sample-data-note span { flex: 0 0 auto; padding: 3px 7px; border-radius: 999px; background: #f4d98d; color: #4f3d12; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.sample-team-table { opacity: .76; }
.sample-team-table .team-table-row:hover { background: transparent; }
.earnings-empty.compact { padding-top: 16px; padding-bottom: 4px; }
.team-member { display: flex; align-items: center; gap: 10px; min-width: 0; }
.team-member > span { display: grid; min-width: 0; }
.team-member-avatar { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; overflow: hidden; border-radius: 50%; background: #def4eb; color: var(--green); font-style: normal; font-weight: 800; }
.team-member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.community-post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.community-post-head > div { display: grid; }
.community-post-head time { color: var(--muted); font-size: 12px; }
.course-step-navigation { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.course-step-navigation a { color: var(--green); font-weight: 700; }
.goal-delete { margin-top: 12px; padding: 0; border: 0; background: transparent; color: #a33a25; font: inherit; font-size: 12px; cursor: pointer; }
.profile-grid label small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline: 3px solid rgba(8, 117, 83, .3); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .btn:hover,
  .old-sidebar a:hover:not(.active),
  .course-card:hover,
  .metric-card:hover,
  .earnings-period-card:hover,
  .affiliate-package-card:hover,
  .member-package-card:hover,
  .goal-grid article:hover { transform: none; }
}
.package-thumb {
  object-fit: contain;
  object-position: center;
  background: #f4f6f3;
}

.public-course-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 54px) / 4);
  grid-template-columns: none;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
  scrollbar-color: #188064 #dce8e2;
  padding: 4px 0 12px;
}
.public-course-rail .course-card { scroll-snap-align: start; }
.public-course-rail .course-card > div { padding: 14px 16px 16px; }
.public-course-rail .course-card h3 { margin: 5px 0 0; }
.public-course-rail .course-card span { font-size: 13px; }
.public-course-rail::-webkit-scrollbar { height: 8px; }
.public-course-rail::-webkit-scrollbar-track { border-radius: 999px; background: #dce8e2; }
.public-course-rail::-webkit-scrollbar-thumb { border-radius: 999px; background: #188064; }
.admin-course-preview > img { object-fit: contain; object-position: center; }

.course-view-head { margin-bottom: 18px; }
.course-view-head > a { display: inline-flex; margin-bottom: 8px; color: var(--orange); font-weight: 700; }
.course-view-head h1 { margin: 0 0 3px; font-size: clamp(27px, 2.7vw, 38px); }
.course-view-head p { margin: 0; color: var(--muted); }
.course-view-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, .9fr); gap: 22px; align-items: start; }
.course-video-panel,
.course-lesson-panel { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 14px 34px rgba(16,36,28,.06); }
.course-main-video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 620px; border: 0; border-radius: 12px; background: #050505; }
.course-video-panel h2 { margin: 15px 0 12px; font-size: clamp(20px, 2vw, 26px); }
.course-video-panel form { margin-top: 16px; }
.course-lesson-panel { position: sticky; top: 92px; }
.course-lesson-panel nav { display: grid; gap: 8px; }
.course-lesson-panel nav a { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 10px; padding: 12px; border-radius: 10px; color: var(--ink); transition: background-color .18s ease, transform .18s ease; }
.course-lesson-panel nav a:hover { background: #f3f8f5; transform: translateX(2px); }
.course-lesson-panel nav a.active { background: #def4eb; }
.course-lesson-panel nav a span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--green); font-weight: 700; }
.course-lesson-panel nav a strong { font-size: 15px; font-weight: 650; line-height: 1.35; }

@media (max-width: 1100px) {
  .package-grid.wide.old-package-grid { grid-template-columns: 1fr; }
}

@media (min-width: 1600px) {
  .package-grid.wide.old-package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .checkout { grid-template-columns: 1fr; }
  .checkout > :first-child,
  .checkout > :last-child { order: initial; }
  .member-shell { grid-template-columns: 1fr; }
  .old-sidebar { position: static; height: auto; }
  .auth-photo { display: none; }
  .auth-page { min-height: calc(100vh - 86px); }
  .earnings-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .earnings-period-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .earnings-content-grid { grid-template-columns: 1fr; }
  .team-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .course-view-layout { grid-template-columns: 1fr; }
  .course-lesson-panel { position: static; }
  .public-course-rail { grid-auto-columns: calc((100% - 36px) / 3); }
}

@media (max-width: 720px) {
  .affiliate-package-grid { grid-template-columns: 1fr; }
  .affiliate-package-card { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .affiliate-package-card > img { height: 150px; }
  .affiliate-package-card h2 { font-size: 18px; }
  .affiliate-package-card > div > strong { font-size: 19px; }
  .earnings-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .earnings-hero { align-items: stretch; flex-direction: column; padding: 20px; }
  .earnings-actions .btn { flex: 1 1 auto; text-align: center; }
  .earnings-period-grid { gap: 10px; }
  .earnings-period-card { padding: 14px; }
  .earnings-period-card > strong { font-size: 22px; }
  .earning-row { grid-template-columns: 36px minmax(0, 1fr); }
  .earning-row > div:last-child { grid-column: 2; justify-items: start; }
  .leaderboard-jumps { top: 70px; gap: 2px; padding: 5px; }
  .leaderboard-jumps a { padding: 8px 3px; }
  .leaderboard-jumps span { font-size: 11px; }
  .leaderboard-jumps small { font-size: 9px; }
  .leaderboard-panels { gap: 16px; }
  .leaderboard-panel-head { align-items: flex-start; }
  .leaderboard-panel-head > span { display: none; }
  .leaderboard-experience .leaderboard-panel { padding: 18px 10px 20px; border-radius: 15px; }
  .leaderboard-panel-head .leaderboard-title { font-size: 19px; }
  .leaderboard-experience .leaderboard-panel .podium { min-height: 205px; gap: 3px; }
  .leaderboard-experience .leaderboard-panel .podium-place h3 span { max-width: 104px; }
  .leaderboard-experience .leaderboard-panel .rank-row { grid-template-columns: 30px 40px minmax(0, 1fr) auto; min-height: 57px; padding: 6px 8px; gap: 7px; }
  .leaderboard-experience .rank-avatar { width: 39px; height: 39px; }
  .leaderboard-experience .leaderboard-panel .rank-row > b { font-size: 13px; }
  .team-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-table-head { display: none; }
  .team-table-row { grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 4px; }
  .member-package-card { grid-template-columns: 1fr; }
  .member-package-card > img { width: 100%; height: auto; min-height: 0; aspect-ratio: 4 / 3; object-fit: contain; }
  .admin-course-preview { grid-template-columns: 1fr; }
  .admin-course-preview > img { position: static; max-height: 320px; }
  .site-header { display: flex; min-height: 70px; padding: 10px 16px; }
  .brand { flex: 1 1 auto; }
  .brand .logo-wordmark { height: 30px; }
  .menu-button { font-size: 14px; padding: 8px 11px; }
  .nav { top: 66px; gap: 4px; }
  .nav a,
  .nav-button { font-size: 16px; padding: 13px 14px; }
  .nav-dropdown-menu a { padding: 12px 14px; }
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  .old-home-hero { min-height: 500px; padding-bottom: 40px; }
  .old-home-copy h1,
  .old-page-intro h1 { font-size: 38px; }
  .old-page-intro p:not(.eyebrow) { font-size: 17px; }
  .packages-intro { padding: 28px 16px; }
  .old-package-card { grid-template-columns: 1fr; gap: 12px; min-height: 0; padding: 8px; }
  .old-package-card > img { height: 280px; min-height: 0; padding: 2px; object-fit: contain; }
  .order-card > img { height: 280px; }
  .old-package-card h2,
  .old-package-card h3 { font-size: 20px; }
  .old-package-card strong { font-size: 23px; }
  .old-package-card p { display: none; }
  .old-package-card ul { padding-left: 17px; font-size: 14px; }
  .old-package-card .pill { font-size: 11px; }
  .old-package-card .btn { min-height: 42px; padding: 9px; font-size: 14px; }
  .package-card-h-stats span { font-size: 12px; }
  .member-topbar { height: 68px; }
  .top-brand .logo-wordmark { height: 26px; }
  .top-avatar { width: 42px; height: 42px; }
  .member-top-actions { gap: 7px; }
  .member-logout { padding: 7px 10px; font-size: 12px; min-height: 42px; }
  .member-workspace { padding: 14px; }
  .course-video-panel,
  .course-lesson-panel { padding: 12px; border-radius: 12px; }
  .public-course-rail { grid-auto-columns: min(82vw, 320px); gap: 12px; padding-bottom: 10px; }
  .old-sidebar {
    padding: 8px 10px;
    overflow: hidden;
    border-right: 0;
    border-bottom: 1px solid #dcded8;
  }
  .old-sidebar nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .old-sidebar nav::-webkit-scrollbar { display: none; }
  .old-sidebar nav p { display: none; }
  .old-sidebar a {
    flex: 0 0 auto;
    padding: 12px 14px;
    font-size: 14px;
    white-space: nowrap;
  }
  .old-sidebar a span { width: auto; }
  .learning-panel { padding: 16px; }
  .course-player-card { grid-template-columns: 1fr; padding: 18px; }
  .mini-pills { gap: 7px; }
  .mini-pills span,
  .mini-pills a { padding: 5px 9px; font-size: 12px; }
  .progress-line.short { width: 100%; }
}

@media (max-width: 430px) {
  .old-package-card > img { height: 250px; min-height: 0; }
  .old-package-card p { display: block; font-size: 14px; }
}

/* ===== Promote & Share (share-card gallery) ===== */
.promote-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
  text-align: center;
}
.promote-stats > div {
  padding: 16px 10px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.promote-stat-value {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--dark);
}
.promote-stat-label {
  font-size: 13px;
  color: var(--muted);
}
.promote-controls { margin-bottom: 20px; }

.promote-note-editor {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.promote-note-editor label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.promote-note-editor input {
  width: 100%;
  max-width: 560px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  font-size: 15px;
}
.promote-note-editor input:focus {
  outline: 2px solid var(--accent, #7c3aed);
  outline-offset: 1px;
}
.promote-note-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.promote-note-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.promote-note-chip {
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: rgba(0, 0, 0, 0.03);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--dark);
}
.promote-note-chip:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: var(--accent, #7c3aed);
}
.promote-controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: flex-end;
}
.promote-control { display: flex; flex-direction: column; gap: 8px; min-width: 0; max-width: 100%; }
.promote-control label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.promote-seg {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.promote-seg button {
  border: 0;
  background: transparent;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.promote-seg button.active {
  background: var(--dark);
  color: #fff;
}
.promote-swatches { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.promote-swatches button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.promote-swatches button.active {
  border-color: var(--dark);
  transform: scale(1.12);
}
.promote-swatch-custom {
  background: repeating-conic-gradient(from 0deg, #7c3aed 0deg 90deg, #f59e0b 90deg 180deg, #10b981 180deg 270deg, #ef4444 270deg 360deg);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.promote-custom-colors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 10px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  max-width: 480px;
}
.promote-custom-colors label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  text-transform: none;
  letter-spacing: normal;
}
.promote-custom-colors input[type="color"] {
  width: 40px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 8px;
  cursor: pointer;
  background: none;
}
.promote-custom-hint {
  flex-basis: 100%;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}
.promote-note {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}
.promote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.promote-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.promote-preview {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  line-height: 0;
  aspect-ratio: 1 / 1.1;
  max-height: 520px;
  cursor: pointer;
}
.promote-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111;
}
.promote-card h2 { font-size: 20px; margin: 0; }
.promote-blurb { margin: -6px 0 0; font-size: 14px; color: var(--muted); }
.promote-captions { display: flex; flex-direction: column; gap: 8px; }
.promote-caption {
  text-align: left;
  border: 1px dashed #c7d0ca;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.45;
  font-family: inherit;
}
.promote-caption:hover { border-color: var(--brand, #df3b16); background: #fff; }
.promote-actions { display: flex; gap: 10px; margin-top: auto; }
.promote-actions .btn { flex: 1; text-align: center; }
.promote-tips { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.promote-tips li { font-size: 14.5px; line-height: 1.5; }
@media (max-width: 720px) {
  .promote-stats { grid-template-columns: 1fr; }
  .promote-preview { max-height: 420px; }
}

/* Promote gallery — photo picker strip */
.promote-control-photo { flex-basis: 100%; }
.promote-photos {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.promote-photo-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  width: 92px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 10px;
}
.promote-photo-thumb.active { background: rgba(124, 58, 237, 0.16); }
.promote-photo-thumb.active .promote-photo-img { outline: 3px solid #7c3aed; outline-offset: 2px; }
.promote-photo-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.promote-photo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.promote-photo-initials {
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  font-family: Poppins, sans-serif;
}
.promote-photo-none {
  position: relative;
  background: rgba(255, 255, 255, 0.12);
}
.promote-photo-none::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, transparent 43%, #e5e7eb 43%, #e5e7eb 53%, transparent 53%);
  opacity: 0.6;
}
.promote-photo-name {
  font-size: 11.5px;
  color: #94a3b8;
  text-align: center;
  line-height: 1.25;
  max-width: 92px;
}
.promote-photo-thumb.active .promote-photo-name { color: #e2e8f0; }
.promote-photo-upload-icon {
  background: rgba(0, 0, 0, 0.06);
  border: 2px dashed rgba(0, 0, 0, 0.28);
  color: var(--muted);
  font-size: 26px;
  font-weight: 700;
}
.promote-photo-upload-btn.is-loading { opacity: 0.6; pointer-events: none; }

/* Promote gallery — big live preview / editor panel */
.promote-editor {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.promote-editor-preview {
  flex: 0 0 320px;
  max-width: 320px;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  line-height: 0;
}
.promote-editor-preview img { width: 100%; height: auto; display: block; max-height: 520px; object-fit: contain; }
.promote-editor-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.promote-editor-info h2 { margin: 0; font-size: 24px; }
.promote-editor-info .promote-actions { margin-top: 10px; max-width: 420px; }
@media (max-width: 720px) {
  .promote-editor { flex-direction: column; }
  .promote-editor-preview { flex-basis: auto; max-width: 100%; margin: 0 auto; width: 260px; }
}

/* Promote gallery — banners section */
.promote-banners-head { margin-top: 8px; }
.promote-grid .promote-card .promote-preview img { width: 100%; height: auto; }
.promote-seg { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Motion system (public pages) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s cubic-bezier(.22,.61,.36,1), transform .5s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal="left"] { transform: translateX(-24px); }
[data-reveal="right"] { transform: translateX(24px); }
[data-reveal="zoom"] { transform: scale(.965); }
[data-reveal].revealed { opacity: 1; transform: none; }

/* Hero: slow Ken Burns drift on a dedicated layer. */
.old-home-hero { position: relative; overflow: hidden; background: none; }
.old-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(5,22,16,.88) 0%, rgba(5,22,16,.52) 44%, rgba(5,22,16,.14) 100%),
    linear-gradient(0deg, rgba(5,22,16,.42) 0%, rgba(5,22,16,0) 32%),
    var(--hero-image);
  background-size: cover, cover, cover;
  background-position: center, center, center;
  animation: hero-drift 24s ease-out forwards;
}
.old-home-hero > .old-container { position: relative; z-index: 1; }
@keyframes hero-drift {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}

/* Animated proof band counters. */
.proof-band {
  background:
    radial-gradient(560px 240px at 8% 0%, rgba(43,208,108,.14), transparent 60%),
    radial-gradient(620px 260px at 96% 100%, rgba(237,79,37,.12), transparent 62%),
    var(--dark);
  color: #fff;
  padding: clamp(40px, 5vw, 64px) 0;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
  text-align: center;
}
.proof-grid strong {
  display: block;
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 900;
  letter-spacing: -.02em;
  background: linear-gradient(120deg, #6ee7b7, #2bd06c 55%, #a7f3d0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.proof-grid span {
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,.72);
  font-weight: 700;
  font-size: 15px;
}

/* Floating actions: WhatsApp + back to top (public pages). */
.float-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  gap: 10px;
  justify-items: end;
}
.float-wa {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2bd06c, #1a9e50);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 16px 36px rgba(23,165,78,.42);
  transition: transform .18s ease, box-shadow .18s ease;
}
.float-wa .wa-icon { width: 20px; height: 20px; }
.float-wa:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 22px 44px rgba(23,165,78,.5); }
.float-top {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(16,36,28,.18);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.float-top.visible { opacity: 1; visibility: visible; transform: none; }
.float-top svg { width: 18px; height: 18px; }
.float-top:hover { background: #eef4ef; color: var(--green); }

/* Legal documents (Terms / Privacy). */
.legal-doc {
  width: min(100% - 40px, 860px);
  margin: 0 auto;
  padding-bottom: 72px;
}
.legal-doc h2 {
  margin: 38px 0 10px;
  font-size: 22px;
}
.legal-doc p, .legal-doc li { color: var(--muted); font-size: 16px; line-height: 1.7; }
.legal-doc ul { padding-left: 22px; display: grid; gap: 6px; margin: 10px 0; }
.legal-doc strong { color: var(--ink); }
.legal-updated {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #e8f4ef;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 720px) {
  .old-home-hero::before {
    background-image:
      linear-gradient(180deg, rgba(5,22,16,.58) 0%, rgba(5,22,16,.24) 38%, rgba(5,22,16,.86) 100%),
      var(--hero-image);
    background-position: 66% center, 66% center;
  }
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
  .float-actions { right: 14px; bottom: 14px; }
  .float-wa { padding: 11px 15px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .old-home-hero::before { animation: none; }
}

/* Big learning days: flying-bee welcome offer card */
.bee-section { max-width: 1120px; margin: 0 auto; padding: 34px 20px 6px; }
.bee-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  padding: 46px 52px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(640px 320px at 12% -10%, rgba(255,255,255,.32), transparent 60%),
    linear-gradient(115deg, #f97306 0%, #ff9d0a 46%, #ffc63a 100%);
  box-shadow: 0 28px 56px -24px rgba(234, 124, 0, .55);
}
.bee-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.16'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.bee-copy { position: relative; z-index: 2; max-width: 560px; }
.bee-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.95);
}
.bee-logo {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.25);
}
.bee-logo .logo-wordmark { width: 96px; height: auto; display: block; }
.bee-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.6vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 14px rgba(120, 53, 0, .35);
}
.bee-sub { margin: 0 0 22px; font-size: 15.5px; line-height: 1.6; color: rgba(255,255,255,.94); max-width: 46ch; }
.bee-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.bee-cta .btn.light { background: #fff; color: #c2410c; box-shadow: 0 12px 26px -10px rgba(120, 53, 0, .5); }
.bee-cta .btn.light:hover { transform: translateY(-2px); }
.bee-ghost {
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.65);
}
.bee-ghost:hover { background: rgba(255,255,255,.24); }
.bee-art { position: relative; z-index: 2; display: flex; align-items: center; flex: 0 0 auto; padding-right: 12px; }
.bee-art-img {
  width: 158px;
  border-radius: 16px;
  border: 4px solid rgba(255,255,255,.9);
  box-shadow: 0 20px 40px -14px rgba(120, 53, 0, .55);
  animation: bee-bob 5s ease-in-out infinite;
}
.bee-art-1 { transform: rotate(-7deg); }
.bee-art-2 { margin-left: -58px; transform: rotate(3deg) translateY(14px); animation-delay: .8s; }
.bee-art-3 { margin-left: -58px; transform: rotate(9deg) translateY(-6px); animation-delay: 1.6s; }

/* Bees */
.bee-flight { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.bee-orbit { position: absolute; left: 0; top: 0; width: 62px; }
.bee-orbit .bee { display: block; width: 100%; height: auto; animation: bee-bob 1.8s ease-in-out infinite; filter: drop-shadow(0 6px 8px rgba(120, 53, 0, .35)); }
.bee-orbit-a { animation: bee-path-a 19s cubic-bezier(.45,.05,.55,.95) infinite; }
.bee-orbit-b { width: 42px; animation: bee-path-b 14.5s cubic-bezier(.35,.1,.65,.9) infinite; animation-delay: -7s; }
.bee-orbit-b .bee { animation-duration: 1.4s; }
.bee-body { fill: #ffc93c; }
.bee-stripe, .bee-head, .bee-stinger { fill: #3d2b1f; }
.bee-eye { fill: #fff; }
.bee-antenna { stroke: #3d2b1f; stroke-width: 2.2; stroke-linecap: round; }
.bee-wing { fill: #eef7ff; opacity: .92; transform-box: fill-box; transform-origin: 50% 100%; animation: bee-flap .22s ease-in-out infinite alternate; }
.bee-wing-back { animation-delay: .11s; opacity: .75; }
@keyframes bee-flap { from { transform: scaleY(1); } to { transform: scaleY(.4); } }
@keyframes bee-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes bee-path-a {
  0%   { left: 4%;  top: 30%; transform: scaleX(-1) rotate(8deg); }
  12%  { left: 16%; top: 6%;  transform: scaleX(-1); }
  27%  { left: 44%; top: 4%;  transform: scaleX(-1) rotate(-6deg); }
  41%  { left: 72%; top: 10%; transform: scaleX(-1); }
  55%  { left: 88%; top: 36%; transform: scaleX(1) rotate(4deg); }
  68%  { left: 76%; top: 62%; transform: scaleX(1); }
  82%  { left: 42%; top: 58%; transform: scaleX(1) rotate(-5deg); }
  100% { left: 4%;  top: 30%; transform: scaleX(1) rotate(8deg); }
}
@keyframes bee-path-b {
  0%   { left: 90%; top: 46%; transform: scaleX(1) rotate(-8deg); }
  15%  { left: 66%; top: 64%; transform: scaleX(1); }
  30%  { left: 30%; top: 52%; transform: scaleX(1) rotate(5deg); }
  48%  { left: 8%;  top: 24%; transform: scaleX(1); }
  63%  { left: 26%; top: 8%;  transform: scaleX(-1); }
  78%  { left: 68%; top: 12%; transform: scaleX(-1) rotate(-4deg); }
  100% { left: 90%; top: 46%; transform: scaleX(-1) rotate(-8deg); }
}

/* Bee courier toast — small floating card, bottom corner (member dashboard) */
.bee-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: min(308px, calc(100vw - 32px));
  animation: bee-toast-drift 7s ease-in-out 2.2s infinite;
}
.bee-toast-bee {
  position: absolute;
  top: -30px;
  left: -20px;
  z-index: 2;
  width: 56px;
  pointer-events: none;
  animation: bee-toast-arrive 1.4s cubic-bezier(.2, .8, .3, 1.05) both;
}
.bee-toast-bee .bee { display: block; width: 100%; height: auto; animation: bee-bob 1.8s ease-in-out infinite; filter: drop-shadow(0 7px 9px rgba(120, 53, 0, .32)); }
.bee-mail {
  position: absolute;
  right: -7px;
  bottom: -5px;
  width: 21px;
  fill: #fff7e6;
  stroke: #b45309;
  stroke-width: 1.6;
  transform-box: fill-box;
  transform-origin: 50% 0%;
  animation: bee-mail-swing 2.4s ease-in-out infinite;
}
.bee-toast-card {
  position: relative;
  border-radius: 16px;
  border: 1px solid #f2dfae;
  background: linear-gradient(125deg, #fffaf0 0%, #fff3d6 55%, #fdeec3 100%);
  box-shadow: 0 18px 40px -16px rgba(146, 94, 8, .45);
  padding: 14px 14px 12px;
  animation: bee-toast-card-in .55s .35s cubic-bezier(.2, .9, .3, 1.12) both;
}
.bee-toast-close-form { position: absolute; top: 8px; right: 8px; margin: 0; }
.bee-toast-close {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(180, 83, 9, .12);
  color: #8a5a10;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}
.bee-toast-close:hover { background: rgba(180, 83, 9, .24); transform: rotate(90deg); }
.bee-toast-hello { margin: 0 26px 8px 0; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #b45309; }
.bee-toast-hello strong { color: #7a4a08; }
.bee-toast-list { display: grid; gap: 6px; margin: 0 0 6px; }
.bee-toast-list a {
  display: grid;
  gap: 1px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid #f0e2bd;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}
.bee-toast-list a:hover { transform: translateX(3px); border-color: #d9a72e; background: #fff; }
.bee-toast-list strong { font-size: 13px; color: #4a3205; line-height: 1.3; }
.bee-toast-list span { font-size: 12px; color: #8a6a25; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bee-toast-more { display: inline-block; font-size: 12px; font-weight: 700; color: #b45309; }
.bee-toast-more:hover { text-decoration: underline; }
.bee-toast-note { margin: 0 26px 0 0; color: #7a5c1c; font-size: 13px; line-height: 1.45; }
.bee-toast.is-leaving .bee-toast-bee { animation: bee-toast-bee-out .55s ease-in both; }
.bee-toast.is-leaving .bee-toast-card { animation: bee-toast-card-out .5s ease both; }
@keyframes bee-toast-arrive {
  0% { translate: -58vw -40px; opacity: 0; }
  60% { translate: 14px 6px; opacity: 1; }
  80% { translate: -6px -5px; }
  100% { translate: 0 0; opacity: 1; }
}
@keyframes bee-toast-card-in { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes bee-toast-drift { 0%, 100% { transform: translate(0, 0); } 30% { transform: translate(3px, -5px); } 65% { transform: translate(-3px, 2px); } }
@keyframes bee-toast-bee-out { to { translate: 46vw -52px; opacity: 0; } }
@keyframes bee-toast-card-out { to { opacity: 0; transform: translateY(16px) scale(.95); } }
@keyframes bee-mail-swing { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(9deg); } }
@media (max-width: 720px) {
  .bee-toast { right: 12px; bottom: 12px; left: 12px; width: auto; }
  .bee-toast-bee { width: 46px; top: -24px; left: -10px; }
}
@media (prefers-reduced-motion: reduce) {
  .bee-toast, .bee-toast-bee, .bee-toast-bee .bee, .bee-mail, .bee-toast-card { animation: none; }
}

/* Contact promo cards */
.contact-cards {
  max-width: 1120px;
  margin: 0 auto 40px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.contact-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 208px;
  padding: 26px 24px 22px;
  border-radius: 22px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 38px -18px rgba(15, 42, 32, .4);
  transition: transform .25s ease, box-shadow .25s ease;
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.13'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: .6;
}
.contact-card:hover { transform: translateY(-5px); box-shadow: 0 26px 46px -18px rgba(15, 42, 32, .5); }
.cc-wa { background: linear-gradient(135deg, #0d8a4a, #25d366); }
.cc-mail { background: linear-gradient(135deg, #7c3aed, #c084fc); }
.cc-phone { background: linear-gradient(135deg, #0369a1, #38bdf8); }
.cc-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
}
.cc-icon svg { width: 28px; height: 28px; }
.cc-text { position: relative; display: grid; gap: 6px; }
.cc-text strong { font-size: 19px; letter-spacing: -0.01em; }
.cc-text span { font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,.92); }
.cc-cta {
  position: relative;
  margin-top: auto;
  align-self: flex-start;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  color: #17281f;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 960px) {
  .contact-cards { grid-template-columns: 1fr; }
  .contact-card { min-height: 0; }
}
@media (max-width: 720px) {
  .bee-section { padding: 24px 14px 4px; }
  .bee-card { flex-direction: column; align-items: flex-start; padding: 32px 24px; gap: 22px; }
  .bee-sub { font-size: 14.5px; }
  .bee-art { padding-right: 0; align-self: center; }
  .bee-art-img { width: 116px; }
  .bee-art-2, .bee-art-3 { margin-left: -44px; }
  .bee-orbit { width: 46px; }
  .bee-orbit-b { width: 32px; }
  .contact-cards { padding: 0 14px; margin-bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .bee-orbit, .bee-orbit .bee, .bee-wing, .bee-art-img { animation: none; }
  .bee-orbit-a { left: 6%; top: 10%; }
  .bee-orbit-b { left: 88%; top: 42%; }
}

@keyframes bee-thread-dash {
  from { stroke-dashoffset: 14; }
  to   { stroke-dashoffset: 0; }
}
@keyframes bee-thread-swing {
  0%, 100% { transform: translateY(0) rotate(-1.4deg); }
  25%      { transform: translateY(-4px) rotate(1.1deg); }
  50%      { transform: translateY(-8px) rotate(-0.6deg); }
  75%      { transform: translateY(-3px) rotate(0.9deg); }
}

/* Compact two-column package grid on phones */
@media (max-width: 720px) {
  .old-package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  .old-package-card { border-radius: 16px; }
  .old-package-card > img { height: auto; aspect-ratio: 16 / 10; object-fit: contain; padding: 8px 8px 0; background: linear-gradient(135deg, #f8faf7, #edf5ef); }
  .old-package-card > div { padding: 12px 12px 14px; }
  .old-package-card .pill { font-size: 10px; padding: 3px 8px; }
  .old-package-card h3, .old-package-card h2 { font-size: 15px; margin: 6px 0 2px; }
  .old-package-card strong { font-size: 17px; }
  .old-package-card p {
    font-size: 11.5px; line-height: 1.45; margin: 4px 0 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .old-package-card ul { display: none; }
  .package-card-h-stats { font-size: 10.5px; gap: 6px; }
  .old-package-card .btn { padding: 10px 8px; font-size: 13px; }
}

/* ---------- Hover polish + decorations (public pages) ---------- */
/* Nav links: soft pill highlight */
.nav a:not(.active):hover { color: var(--green); background: #eef5f1; }
.nav-caret:hover { background: #eef5f1; color: var(--green); }

/* Buttons: brighter gradient + shine sweep on hover */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,.38) 47%, rgba(255,255,255,.55) 50%, rgba(255,255,255,.38) 53%, transparent 68%);
  transform: translateX(-130%);
  transition: transform .55s ease;
}
.btn:hover::after { transform: translateX(130%); }
.btn.primary:hover { background: linear-gradient(135deg, #ff7a4d, #e8451f); }
.btn.dark:hover { background: #183c31; }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(23, 165, 78, .34); }
.btn.outline:hover { border-color: var(--green); color: var(--green); background: #f2f9f5; }
.bee-ghost:hover::after, .btn.ghost:hover::after { background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,.22) 47%, rgba(255,255,255,.32) 50%, rgba(255,255,255,.22) 53%, transparent 68%); }

/* Footer links: slide + brighten */
.footer a { transition: color .2s ease, transform .2s ease; }
.footer a:hover { color: #fff; transform: translateX(4px); }
.footer-contact a:hover, .social-link:hover { transform: translateY(-2px); }

/* Card lifts */
.old-package-card, .course-card, .how-card, .promo-banner, .quote-card, .value-grid > div {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.old-package-card { overflow: hidden; }
.old-package-card:hover { transform: translateY(-5px); box-shadow: 0 22px 44px -18px rgba(16,50,38,.24); }
.how-card:hover, .promo-banner:hover, .quote-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -16px rgba(16,50,38,.18); }
.value-grid > div:hover { transform: translateY(-3px); }

/* Image zoom inside cards */
.course-card { overflow: hidden; }
.course-card img, .old-package-card > img { transition: transform .45s ease; }
.course-card:hover img, .old-package-card:hover > img { transform: scale(1.045); }

/* FAQ rows: colour feedback */
.faq-item summary { transition: color .2s ease; cursor: pointer; }
.faq-item summary:hover { color: var(--green); }

/* Section title accent bar */
.section-title h2 { position: relative; }
.section-title h2::after {
  content: "";
  display: block;
  width: 62px;
  height: 5px;
  margin-top: 14px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--green), #2bd06c);
}
.section-title.center h2::after { margin-left: auto; margin-right: auto; }

/* Eyebrow chips */
.page-head .eyebrow, .section-title .eyebrow, .old-page-intro .eyebrow, .packages-intro .eyebrow, .split-section .eyebrow {
  display: inline-block;
  padding: 7px 15px;
  border-radius: 999px;
  background: #e8f4ef;
  color: var(--green);
  font-size: 12px;
  letter-spacing: .14em;
}
.old-page-intro .eyebrow, .packages-intro .eyebrow { background: #dcefe4; }

/* ---------- Frontend designer pass ---------- */
/* Focus ring for keyboard users */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(8, 117, 83, .55);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Text selection + mobile tap highlight */
::selection { background: rgba(8, 117, 83, .22); }
a, button, summary, label { -webkit-tap-highlight-color: transparent; }

/* Slim, brand-tinted scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #eef2ee; }
::-webkit-scrollbar-thumb { background: #b9cdc1; border-radius: 99px; border: 2px solid #eef2ee; }
::-webkit-scrollbar-thumb:hover { background: #8fb3a1; }

/* Inputs: hover + focus feedback */
input, textarea, select {
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
input:hover, textarea:hover, select:hover { border-color: #9db3a7; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(8, 117, 83, .16);
  background: #fff;
}

/* Login photo-side trust points */
.auth-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.auth-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.32);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
}
.auth-points li::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2bd06c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 9px no-repeat;
}

/* Password show/hide toggle */
.password-field { position: relative; display: block; }
.password-field input { padding-right: 50px; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #77877f;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease;
}
.password-toggle:hover { color: var(--green); background: #eef5f1; }
.password-toggle svg { width: 20px; height: 20px; }
.password-toggle .eye-closed { display: none; }
.password-toggle[aria-pressed="true"] .eye-open { display: none; }
.password-toggle[aria-pressed="true"] .eye-closed { display: block; }

/* Submit buttons: loading state prevents double-submits */
.btn.is-loading { color: transparent !important; pointer-events: none; position: relative; }
.btn.is-loading svg, .btn.is-loading .wa-icon { visibility: hidden; }
.btn.is-loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  animation: btn-spin .7s linear infinite;
  z-index: 2;
}
.btn.light.is-loading::before, .btn.outline.is-loading::before { border-color: rgba(8,117,83,.25); border-top-color: var(--green); }
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* Tight mobile auth layout: no dead vertical space */
@media (max-width: 980px) {
  .auth-page { min-height: 0; align-content: start; }
  .auth-card { margin: 26px auto 44px; }
  .auth-simple { min-height: 0; padding-top: 30px; padding-bottom: 44px; align-content: start; }
  .auth-simple-card { margin: 0 auto; }
}

/* Member certificates */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.cert-card { background: white; border: 1px solid #e4efe7; border-radius: 20px; overflow: hidden; box-shadow: 0 14px 34px -26px rgba(16, 49, 42, .35); }
.cert-thumb { display: block; background: linear-gradient(160deg, #eef6f0, #e2eee5); }
.cert-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 1414 / 1000; object-fit: cover; transition: transform .45s ease; }
.cert-card:hover .cert-thumb img { transform: scale(1.025); }
.cert-meta { padding: 16px 18px 18px; display: grid; gap: 6px; }
.cert-meta strong { font-size: 16.5px; color: #10312a; }
.cert-meta > span { font-size: 13px; color: var(--muted); }
.cert-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

/* Public certificate verification */
.verify-cert-wrap { min-height: 62vh; display: grid; place-items: center; padding: 56px 18px; }
.verify-cert-card { max-width: 620px; width: 100%; text-align: center; background: white; border: 1px solid #e4efe7; border-radius: 26px; padding: 46px 34px 38px; box-shadow: 0 30px 60px -40px rgba(16, 49, 42, .4); }
.verify-cert-card .eyebrow { margin: 10px auto 12px; }
.verify-cert-card h1 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 10px; }
.verify-cert-card > p { color: var(--muted); max-width: 46ch; margin: 0 auto; }
.verify-cert-icon { width: 74px; height: 74px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; }
.verify-cert-icon svg { width: 38px; height: 38px; }
.is-valid .verify-cert-icon { color: #0b7a53; background: #e4f4ea; box-shadow: 0 0 0 10px rgba(11, 122, 83, .08); }
.is-invalid .verify-cert-icon { color: #b42318; background: #fee4e2; box-shadow: 0 0 0 10px rgba(180, 35, 24, .07); }
.verify-cert-facts { margin: 26px 0 8px; display: grid; gap: 0; border: 1px solid #e4efe7; border-radius: 16px; overflow: hidden; }
.verify-cert-facts > div { display: flex; justify-content: space-between; gap: 14px; padding: 12px 18px; background: #f8fcfa; }
.verify-cert-facts > div:nth-child(even) { background: white; }
.verify-cert-facts dt { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); align-self: center; }
.verify-cert-facts dd { margin: 0; font-weight: 700; color: #10312a; text-align: right; }
.verify-cert-actions { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

/* Manual certificate-ID lookup */
.verify-cert-icon.is-lookup { color: #0e7a55; background: #e2f2ea; box-shadow: 0 0 0 10px rgba(14, 122, 85, .08); }
.verify-lookup-form { display: flex; gap: 10px; margin-top: 24px; }
.verify-lookup-form input { flex: 1; min-width: 0; padding: 13px 16px; border: 1.5px solid #d5e5dc; border-radius: 12px; font: 600 16px/1.2 Poppins, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #10312a; background: #f8fcfa; }
.verify-lookup-form input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 106, 61, .18); }
.verify-lookup-error { margin: 14px auto 0; color: #b42318; font-size: 14px; font-weight: 600; }
.verify-lookup-hint { margin-top: 18px; font-size: 13px; color: var(--muted); }
@media (max-width: 560px) {
  .verify-lookup-form { flex-direction: column; }
  .verify-lookup-form .btn { width: 100%; }
}

/* Manual certificate-ID lookup */
.is-lookup .verify-cert-icon { color: #0b7a53; background: #e4f4ea; box-shadow: 0 0 0 10px rgba(11, 122, 83, .08); }
.verify-lookup-form { display: flex; gap: 10px; margin-top: 24px; }
.verify-lookup-form input { flex: 1; min-width: 0; padding: 13px 16px; border: 1.6px solid #d6e4db; border-radius: 12px; font: 600 16px/1.2 "Poppins", system-ui, sans-serif; letter-spacing: .06em; color: #10312a; background: #f8fcfa; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.verify-lookup-form input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(11, 122, 83, .14); }
.verify-lookup-form input::placeholder { color: #9db8ab; letter-spacing: .1em; }
.verify-lookup-error { margin: 12px 0 0; color: #b42318; font-weight: 600; font-size: 14px; }
.verify-lookup-hint { margin: 18px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 560px) {
  .verify-cert-card { padding: 34px 20px 28px; }
  .verify-cert-facts > div { flex-direction: column; gap: 4px; text-align: left; }
  .verify-cert-facts dd { text-align: left; }
  .verify-lookup-form { flex-direction: column; }
  .verify-lookup-form .btn { width: 100%; }
}
