@import url('/core/src/fonts/Montserrat/stylesheet.css');

:root {
  --purple: #4d1b9f;
  --purple-dark: #321069;
  --purple-soft: #7e50d7;
  --ink: #211d27;
  --muted: #696270;
  --line: rgba(77, 27, 159, .14);
  --surface: #fff;
  --background: #f4f5f7;
  --pink: #efb8ea;
  --blue: #78d9f3;
  --peach: #ffc890;
  --radius: 1.75rem;
  --shadow: 0 1.4rem 4rem rgba(47, 26, 75, .1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: Montserrat, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.site { display: flex; flex-direction: column; }
body.site #app { flex: 1; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { color: inherit; font: inherit; }
button, select { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.13; }
.container { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; z-index: 9999; top: .5rem; left: .5rem; padding: .75rem 1rem;
  border-radius: .75rem; background: #fff; transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(77, 27, 159, .08);
  background: rgba(244, 245, 247, .88);
  backdrop-filter: blur(20px);
}
.header .container { width: min(1360px, calc(100% - 2.5rem)); }
.header__inner { display: flex; min-height: 5.2rem; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: block; flex: 0 0 auto; }
.brand img { width: 210px; height: auto; }
.nav { display: flex; align-items: center; gap: .35rem; margin-left: auto; flex-wrap: nowrap; }
.nav a {
  padding: .55rem .85rem; border-radius: 999px; font-size: .9rem; font-weight: 600; white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}
.nav a:hover, .nav a:focus-visible { color: var(--purple); background: #fff; outline: none; }
.nav a.active,
.nav a.is-active,
.nav a.nav__link--active,
.nav a[aria-current="page"] {
  color: #fff;
  background: var(--purple);
  font-weight: 700;
  box-shadow: 0 .2rem .8rem rgba(77,27,159,.25);
}
.language-picker {
  display: inline-flex; min-width: 8rem; align-items: center; gap: .5rem; padding: .58rem .75rem;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
}
.language-picker i { color: var(--purple); }
.language-picker select { width: 100%; border: 0; outline: 0; background: transparent; font-size: .88rem; font-weight: 600; }
.theme-toggle {
  display: grid; flex: 0 0 2.7rem; width: 2.7rem; height: 2.7rem; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; color: var(--purple); background: var(--surface);
  box-shadow: 0 .4rem 1.1rem rgba(47,26,75,.06); cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.theme-toggle:hover, .theme-toggle:focus-visible { border-color: var(--purple-soft); transform: translateY(-1px) rotate(5deg); outline: none; }
.menu-toggle { display: none; margin-left: auto; padding: .65rem; border: 0; border-radius: .7rem; background: #fff; }

.eyebrow {
  margin-bottom: .85rem;
  color: var(--purple);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.button {
  display: inline-flex;
  min-height: 3.1rem;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .78rem 1.4rem;
  border: 1px solid var(--purple);
  border-radius: 999px;
  color: #fff;
  background: var(--purple);
  font-weight: 700;
  line-height: 1.1;
  box-shadow: 0 .75rem 1.8rem rgba(77, 27, 159, .17);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover, .button:focus-visible { background: var(--purple-dark); box-shadow: 0 1rem 2.3rem rgba(77, 27, 159, .24); transform: translateY(-2px); outline: none; }
.button--ghost { color: var(--purple); background: rgba(255, 255, 255, .68); box-shadow: none; }
.button--ghost:hover { color: #fff; background: var(--purple); }
.button--ghost.active, .subtab-btn.active, .admin-tabs button.active {
  color: #fff !important;
  background: var(--purple) !important;
  border-color: var(--purple) !important;
  box-shadow: 0 0.4rem 1.2rem rgba(77, 27, 159, 0.28) !important;
}
.button--small { min-height: 2.65rem; padding: .65rem 1rem; font-size: .85rem; }
.button--wide { width: 100%; }
.button--light { border-color: #fff; color: var(--purple); background: #fff; }
.text-link { display: inline-flex; align-items: center; gap: .55rem; color: var(--purple); font-weight: 700; }
.text-link i { transition: transform .2s ease; }
.text-link:hover i { transform: translateX(.25rem); }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 710px;
  background: #fff;
}
.hero::before {
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    radial-gradient(circle at 8% 58%, rgba(111, 210, 244, .72), transparent 24%),
    radial-gradient(circle at 38% 62%, rgba(242, 161, 231, .7), transparent 34%),
    radial-gradient(circle at 69% 23%, rgba(255, 202, 139, .63), transparent 32%),
    linear-gradient(115deg, rgba(249, 213, 230, .75), #fff 68%);
  content: '';
  filter: blur(5px);
}
.hero__grid { display: grid; min-height: 710px; grid-template-columns: .88fr 1.12fr; align-items: center; gap: 3rem; }
.hero__copy { position: relative; z-index: 3; padding: 5rem 0; }
.hero h1 { max-width: 620px; margin-bottom: 1.5rem; color: var(--purple); font-size: clamp(3rem, 5.6vw, 5.8rem); letter-spacing: -.055em; }
.hero__text { max-width: 570px; margin-bottom: 2rem; color: #524b58; font-size: clamp(1rem, 1.45vw, 1.2rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.hero__visual { position: relative; align-self: stretch; min-height: 650px; }
.hero__visual > img { position: absolute; z-index: 2; right: -3%; bottom: -3%; width: min(610px, 100%); height: 96%; object-fit: contain; }
.hero__glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: .6; }
.hero__glow--one { top: 10%; right: 10%; width: 20rem; height: 20rem; background: #c9a2ff; }
.hero__glow--two { right: 38%; bottom: 3%; width: 18rem; height: 18rem; background: #70e3da; }
.orbit {
  position: absolute; z-index: 3; display: grid; width: 5.2rem; height: 5.2rem; place-items: center;
  border: 1px solid rgba(255, 255, 255, .7); border-radius: 1.25rem; color: #fff;
  background: linear-gradient(150deg, #5d2ec9, #8b65ef); box-shadow: 0 1.2rem 2rem rgba(75, 31, 146, .22);
  font-size: 1.8rem; transform: rotate(8deg);
}
.orbit--one { top: 20%; right: 9%; }
.orbit--two { right: 61%; bottom: 19%; background: linear-gradient(150deg, #43d5c8, #42afd8); transform: rotate(-9deg); }
.orbit--three { right: 0; bottom: 12%; background: linear-gradient(150deg, #ff947b, #f8be75); transform: rotate(12deg); }
.store-buttons { display: flex; flex-wrap: wrap; gap: .65rem; }
.store-button {
  display: inline-flex; min-width: 9.7rem; min-height: 3.25rem; align-items: center; gap: .7rem;
  padding: .58rem .9rem; border: 1px solid rgba(31, 26, 36, .11); border-radius: .9rem;
  background: rgba(255, 255, 255, .7); font-size: .88rem; font-weight: 700; backdrop-filter: blur(12px);
}
.store-button i { width: 1.35rem; color: var(--purple); font-size: 1.35rem; text-align: center; }
.store-button span { display: flex; flex-direction: column; line-height: 1.15; }
.store-button small { margin-bottom: .2rem; color: var(--muted); font-size: .58rem; font-weight: 600; text-transform: uppercase; }
.store-button--active:hover { border-color: var(--purple); transform: translateY(-1px); }
.store-button--soon { opacity: .65; cursor: default; }

.section { padding: clamp(4rem, 7vw, 7rem) 0; }
.page-hero + .section { padding-top: 2.5rem; }
.section--catalog { background: var(--background); }
.section--collections { overflow: hidden; background: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.2rem; }
.section-head > div { max-width: 760px; }
.section-head h2 { margin-bottom: .85rem; font-size: clamp(2.15rem, 4vw, 3.7rem); letter-spacing: -.04em; }
.section-head p:last-child { margin-bottom: 0; color: var(--muted); font-size: 1.02rem; }
.page-hero {
  position: relative; overflow: hidden; padding: clamp(4rem, 8vw, 7.5rem) 0;
  color: #fff; background: linear-gradient(135deg, #391079, #6f39cc);
}
.page-hero::after { position: absolute; top: -60%; right: -10%; width: 42rem; height: 42rem; border: 7rem solid rgba(255,255,255,.06); border-radius: 50%; content: ''; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { color: #d9c3ff; }
.page-hero h1 { max-width: 800px; margin-bottom: 1rem; font-size: clamp(2.8rem, 6vw, 5.5rem); letter-spacing: -.055em; }
.page-hero p:last-child { max-width: 720px; margin-bottom: 0; color: rgba(255,255,255,.78); font-size: 1.1rem; }
.page-hero--collections { background: linear-gradient(135deg, #362377, #5c80d5); }

.filters {
  display: grid; grid-template-columns: 1.65fr repeat(3, 1fr); gap: .9rem; margin: 0 0 1.5rem; padding: 1.3rem;
  border: 1px solid var(--line); border-radius: 1.35rem; background: #fff; box-shadow: 0 .8rem 2.4rem rgba(45, 28, 68, .05);
}
.filter { display: flex; min-width: 0; flex-direction: column; gap: .38rem; }
.filter > span, .filter legend { color: #4c4651; font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.filter select, .filter input {
  width: 100%; min-height: 2.9rem; padding: .65rem .8rem; border: 1px solid #ded9e4; border-radius: .75rem; outline: 0; background: #faf9fb;
}
.filter select:focus, .filter input:focus { border-color: var(--purple-soft); box-shadow: 0 0 0 3px rgba(77,27,159,.08); }
.filter--search > div { position: relative; }
.filter--search i { position: absolute; top: 50%; left: .85rem; color: var(--purple); transform: translateY(-50%); }
.filter--search input { padding-left: 2.5rem; }
.result-bar { display: flex; justify-content: space-between; margin-bottom: 1.1rem; color: var(--muted); font-size: .82rem; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; transition: opacity .2s ease; }
.course-grid.is-loading { opacity: .45; pointer-events: none; }
.course-card {
  display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid rgba(56, 39, 75, .08);
  border-radius: var(--radius); background: #fff; box-shadow: 0 .75rem 2.2rem rgba(40, 27, 56, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.course-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.course-card__media { position: relative; display: block; padding: .65rem; }
.card-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10.5; border-radius: 1.25rem; background: linear-gradient(145deg, #d8caf2, #eff1f4); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.course-card:hover .card-media img { transform: scale(1.035); }
.media-fallback { display: grid; place-items: center; color: rgba(255,255,255,.85); background: linear-gradient(140deg, var(--purple), #9d78e5); font-size: 3.3rem; }
.course-card__body { display: flex; min-height: 18.3rem; flex: 1; flex-direction: column; padding: .8rem 1.35rem 1.35rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .7rem; }
.tag-list span { padding: .25rem .55rem; border-radius: 999px; color: var(--purple); background: rgba(77,27,159,.07); font-size: .65rem; font-weight: 700; }
.course-card h3 { margin-bottom: .72rem; color: var(--purple); font-size: 1.23rem; }
.course-card h3 a:hover { color: var(--purple-dark); }
.course-card__description { display: -webkit-box; overflow: hidden; margin-bottom: 1.1rem; color: var(--muted); font-size: .88rem; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.course-card__meta { display: flex; flex-wrap: wrap; gap: .7rem 1rem; margin-top: auto; padding-top: .7rem; color: #6d6672; font-size: .7rem; }
.course-card__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.course-card__meta i { color: var(--purple); }
.course-card__footer { display: flex; min-height: 4rem; align-items: center; justify-content: space-between; gap: .7rem; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid #eeeaf0; }
.price-block { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; }
.price { color: var(--ink); font-size: 1.15rem; font-weight: 800; }
.price--free { color: #26805a; }
.price-block del { color: #aaa3ad; font-size: .72rem; }

.collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.collection-card { display: grid; min-width: 0; grid-template-columns: .9fr 1.1fr; overflow: hidden; border-radius: var(--radius); background: #f4f2f8; box-shadow: 0 .75rem 2.3rem rgba(42,25,61,.06); }
.collection-card > a { min-height: 100%; padding: .65rem; }
.collection-card__media { position: relative; display: grid; overflow: hidden; min-height: 310px; place-items: center; border-radius: 1.25rem; background: linear-gradient(140deg, #4d1b9f, #8a5edc); }
.collection-card__media img { width: 100%; height: 100%; object-fit: cover; }
.collection-card__body { display: flex; flex-direction: column; padding: 1.8rem 1.5rem 1.5rem; }
.collection-card h3 { margin-bottom: .8rem; color: var(--purple); font-size: 1.65rem; }
.collection-card p:not(.eyebrow) { color: var(--muted); font-size: .87rem; }
.collection-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1rem; }
.collection-card__footer strong { font-size: 1rem; }

.app-callout { padding: 3.5rem 0; color: #fff; background: var(--purple); }
.app-callout > .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.app-callout h2 { max-width: 650px; margin-bottom: 0; font-size: clamp(1.7rem, 3vw, 2.6rem); }
.app-callout .eyebrow { color: #d9c5ff; }
.app-callout .store-button { color: var(--ink); }

.course-hero { position: relative; overflow: hidden; padding: 2rem 0 5rem; background: linear-gradient(135deg, #f2eefa, #fff 60%); }
.course-hero::before { position: absolute; top: 12%; left: -9rem; width: 25rem; height: 25rem; border-radius: 50%; background: rgba(109,205,240,.3); content: ''; filter: blur(55px); }
.back-link { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 2rem; color: var(--purple); font-size: .84rem; font-weight: 700; }
.course-hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) 380px; align-items: center; gap: 4rem; }
.course-hero h1, .collection-hero h1 { max-width: 740px; margin-bottom: 1.4rem; color: var(--purple); font-size: clamp(2.8rem, 5vw, 5rem); letter-spacing: -.055em; }
.course-hero__lead { max-width: 750px; color: #58505e; font-size: 1.05rem; }
.course-facts { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.course-facts > span { display: grid; grid-template-columns: 2.2rem auto; align-items: center; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: .9rem; background: rgba(255,255,255,.65); font-size: .76rem; font-weight: 700; }
.course-facts i { grid-row: 1 / 3; color: var(--purple); font-size: 1.15rem; }
.course-facts small { color: var(--muted); font-size: .58rem; font-weight: 600; text-transform: uppercase; }
.purchase-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.purchase-card__media { aspect-ratio: 16/10; background: linear-gradient(145deg,#d8caf2,#f0f1f4); }
.purchase-card__media img { width: 100%; height: 100%; object-fit: cover; }
.purchase-card__body { padding: 1.2rem; }
.price-block--large { margin-bottom: 1rem; }
.price-block--large .price { font-size: 1.65rem; }
.purchase-card__body p { display: flex; gap: .55rem; margin: .9rem .2rem 0; color: var(--muted); font-size: .7rem; }
.purchase-card__body p i { flex: 0 0 auto; margin-top: .2rem; color: #2b8b60; }

.landing-section { padding: 5.5rem 0; background: #fff; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 2rem; }
.rich-card { padding: clamp(1.7rem, 4vw, 3.5rem); border-radius: var(--radius); background: #f7f5fa; }
.rich-card h2 { margin-bottom: 1.5rem; color: var(--purple); font-size: clamp(2rem, 3.5vw, 3rem); }
.rich-text { color: #514a56; }
.rich-text p { margin-bottom: 1rem; }
.rich-text img, .legacy-landing img { height: auto; border-radius: 1rem; }
.learning-steps { position: sticky; top: 7rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 1.4rem; }
.learning-steps ol { display: flex; flex-direction: column; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.learning-steps li { display: flex; align-items: center; gap: .75rem; color: #514a56; font-size: .82rem; font-weight: 600; }
.learning-steps li span { display: grid; flex: 0 0 2.15rem; height: 2.15rem; place-items: center; border-radius: 50%; color: #fff; background: var(--purple); }
.course-story { padding: 5.5rem 0; color: #fff; background: var(--purple-dark); }
.course-story__grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 4rem; }
.course-story .eyebrow { color: #d5bbff; }
.course-story h2 { margin-bottom: 1.3rem; font-size: clamp(2.2rem, 4vw, 3.8rem); }
.course-story p { color: rgba(255,255,255,.78); }
.course-story__art { overflow: hidden; border-radius: 1.6rem; background: #fff; }
.course-story__art img { width: 100%; max-height: 560px; object-fit: cover; object-position: top center; }
.feature-list { display: grid; gap: .65rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.feature-list li { display: flex; align-items: center; gap: .7rem; padding: .75rem 1rem; border: 1px solid rgba(255,255,255,.14); border-radius: .8rem; background: rgba(255,255,255,.06); }
.feature-list i { width: 1.4rem; color: #9ee9f3; text-align: center; }
.landing-program { background: var(--background); }
.program-list { display: grid; gap: .9rem; }
.program-list article { display: grid; grid-template-columns: 4rem minmax(0,1fr); gap: 1rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 1.3rem; background: #fff; }
.program-number { color: var(--purple); font-size: 1.5rem; font-weight: 800; }
.program-list h3 { margin-bottom: .6rem; font-size: 1.35rem; }
.program-list ol { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .6rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.program-list li { padding: .75rem .9rem; border-radius: .75rem; background: #f6f4f8; }
.program-list li span, .program-list li small { display: block; }
.program-list li span { color: var(--purple); font-size: .8rem; font-weight: 700; }
.program-list li small { display: -webkit-box; overflow: hidden; margin-top: .35rem; color: var(--muted); font-size: .67rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.course-cta { padding: 3rem 0; color: #fff; background: linear-gradient(135deg,var(--purple),#7443c8); }
.course-cta .container { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 2rem; }
.course-cta h2 { margin: 0; }
.course-cta .eyebrow { color: #d6c3ff; }
.price-block--light .price { color: #fff; font-size: 1.5rem; }
.price-block--light .price--free { color: #b7ffd8; }

.collection-hero { padding: 2rem 0 5rem; background: linear-gradient(135deg,#edf4ff,#fff 58%,#f7efff); }
.collection-hero__grid { display: grid; grid-template-columns: 1fr .8fr; align-items: center; gap: 4rem; }
.collection-hero__grid > div > p:not(.eyebrow) { max-width: 650px; color: var(--muted); }
.collection-hero__media { overflow: hidden; aspect-ratio: 16/11; border-radius: var(--radius); background: linear-gradient(145deg,var(--purple),#7d61d5); box-shadow: var(--shadow); }
.collection-hero__media img { width: 100%; height: 100%; object-fit: cover; }

.legal-hero { padding: 4rem 0; color: #fff; background: var(--purple); }
.legal-hero .eyebrow { color: #d8c2ff; }
.legal-hero h1 { max-width: 900px; margin-bottom: 0; font-size: clamp(2.4rem,5vw,4.4rem); }
.legal-note { display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.2rem; padding: .65rem .8rem; border-radius: .7rem; background: rgba(255,255,255,.1); font-size: .8rem; }
.legal-document { margin-top: 2rem; margin-bottom: 5rem; padding: clamp(1.5rem,4vw,4rem); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.legal-document > h1:first-child { display: none; }
.legal-document h1, .legal-document h2 { color: var(--purple); }
.legal-document h1 { font-size: 2rem; }
.legal-document h2 { margin-top: 2rem; font-size: 1.2rem; }
.legal-document p { color: #514b56; font-size: .85rem; }
.support-page { display: grid; min-height: 70vh; place-items: center; padding: 5rem 0; background: radial-gradient(circle at 20% 20%,#d7f3ff,transparent 30%),radial-gradient(circle at 80% 75%,#f2cdf4,transparent 35%),#f7f7f8; }
.support-card { max-width: 760px; padding: clamp(2rem,6vw,5rem); border-radius: 2rem; background: rgba(255,255,255,.82); box-shadow: var(--shadow); text-align: center; }
.support-card__icon { display: grid; width: 5rem; height: 5rem; place-items: center; margin: 0 auto 1.5rem; border-radius: 1.3rem; color: #fff; background: var(--purple); font-size: 2rem; transform: rotate(-4deg); }
.support-card h1 { margin-bottom: 1rem; color: var(--purple); font-size: clamp(2.3rem,5vw,4rem); }
.support-card > p:not(.eyebrow) { max-width: 590px; margin: 0 auto 1.7rem; color: var(--muted); }
.support-card small { display: block; margin-top: 1rem; color: var(--muted); }

.loading { display: grid; min-height: 24rem; place-items: center; align-content: center; gap: 1rem; color: var(--muted); }
.spinner { width: 2.4rem; height: 2.4rem; border: .25rem solid #ddd5ea; border-top-color: var(--purple); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { grid-column: 1 / -1; padding: 4rem 1.5rem; border: 1px dashed #cfc6d9; border-radius: 1.3rem; color: var(--muted); text-align: center; }
.empty i { margin-bottom: 1rem; color: var(--purple-soft); font-size: 2.4rem; }
.empty h3 { margin-bottom: 1.2rem; }
.empty--page { min-height: 60vh; display: grid; place-items: center; align-content: center; }
.notices { position: fixed; z-index: 1000; top: 6.5rem; right: 1rem; display: grid; width: min(380px,calc(100% - 2rem)); gap: .65rem; }
.notice { display: flex; align-items: flex-start; gap: .7rem; padding: 1rem; border-left: 4px solid #d34949; border-radius: .85rem; background: #fff; box-shadow: var(--shadow); }
.notice--success { border-left-color: #299267; }
.notice span { flex: 1; }
.notice button { border: 0; background: transparent; font-size: 1.2rem; }

.footer { margin-top: auto; padding: 4rem 0 2rem; color: rgba(255,255,255,.72); background: #251a2d; }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 2.5rem; }
.footer__brand img { width: 210px; margin-bottom: 1.2rem; filter: invert(1) grayscale(1) brightness(3); }
.footer__brand p { max-width: 330px; font-size: .78rem; }
.footer h2 { margin-bottom: 1rem; color: #fff; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.footer a { display: block; margin-bottom: .65rem; font-size: .78rem; }
.footer a:hover { color: #fff; }

/* Admin remains intentionally separate from the public navigation. */
.smart-clicks-admin { min-height: 100vh; background: var(--background); }
.smart-clicks-admin .site-header { display: flex; align-items: center; justify-content: space-between; padding: 2rem 0; }
.smart-clicks-admin .site-logo img { width: 230px; }
.smart-clicks-admin .site-nav { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; margin-left: auto; }
.smart-clicks-admin .site-nav__item { color: var(--purple); font-weight: 700; }
.smart-clicks-admin .site-nav__item:hover,
.smart-clicks-admin .site-nav__item:focus-visible { color: var(--purple-soft); }
.smart-clicks-admin .theme-toggle { display: inline-flex; flex: 0 0 auto; width: auto; min-width: 9.4rem; height: 2.7rem; align-items: center; justify-content: center; gap: .5rem; padding: .58rem .85rem; border-radius: 999px; }
.smart-clicks-admin .theme-toggle__label { font-size: .74rem; font-weight: 700; white-space: nowrap; }
.smart-clicks-admin .language-picker { min-width: 8.4rem; }
.admin-main { padding: 2rem 0 5rem; }
.admin-main--login { display: grid; min-height: calc(100vh - 8.5rem); align-items: center; padding-top: 1rem; }
.admin-login-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); align-items: center; gap: clamp(2rem, 7vw, 7rem); width: 100%; }
.admin-login-copy { max-width: 660px; }
.admin-login-copy h1 { max-width: 660px; margin-bottom: 1rem; color: var(--purple); font-size: clamp(3rem, 7vw, 6rem); line-height: .98; letter-spacing: -.06em; }
.admin-login-copy > p:not(.eyebrow) { max-width: 560px; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.admin-login-points { display: grid; gap: .7rem; margin-top: 2rem; color: var(--muted); font-size: .82rem; }
.admin-login-points span { display: flex; align-items: center; gap: .7rem; }
.admin-login-points i { width: 1.3rem; color: var(--purple); text-align: center; }
.admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.admin-head h1 { margin-bottom: .7rem; color: var(--purple); font-size: clamp(2.4rem,5vw,4.5rem); }
.login, .editor { border: 1px solid var(--line); border-radius: 1.3rem; background: #fff; box-shadow: 0 .8rem 2.5rem rgba(42,28,60,.06); }
.login { width: 100%; max-width: none; padding: clamp(1.4rem, 3vw, 2.2rem); }
.login__heading { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.6rem; }
.login__heading h2 { margin-bottom: .25rem; color: var(--ink); font-size: 1.25rem; }
.login__heading p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.login__icon { display: grid; flex: 0 0 2.8rem; width: 2.8rem; height: 2.8rem; place-items: center; border-radius: .9rem; color: #fff; background: linear-gradient(135deg, var(--purple), var(--purple-dark)); box-shadow: 0 .65rem 1.2rem rgba(77,27,159,.2); }
.login__note { margin: 1rem 0 0; color: var(--muted); font-size: .7rem; text-align: center; }
.login label, .editor > label { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; color: var(--purple); font-size: .8rem; font-weight: 700; }
.login input, .editor input, .editor textarea { width: 100%; padding: .75rem .9rem; border: 1px solid #ddd5e5; border-radius: .7rem; background: #fbfafc; font-weight: 400; }
.editor textarea { min-height: 11rem; resize: vertical; }
.admin-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-bottom: 2.5rem; }
.admin-info-card { position: relative; min-width: 0; padding: 1.4rem; border: 1px solid var(--line); border-radius: 1.3rem; background: var(--surface); box-shadow: var(--shadow); }
.admin-info-card > i { position: absolute; top: 1.35rem; right: 1.4rem; color: var(--purple); font-size: 1.25rem; }
.admin-info-card .section-head { padding-right: 2rem; }
.admin-info-card h2 { margin-bottom: .35rem; color: var(--ink); font-size: 1.25rem; }
.admin-info-card > p { margin: .8rem 0 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.admin-doc-links { display: grid; gap: .45rem; margin-top: 1rem; }
.admin-doc-links a { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .62rem .7rem; border: 1px solid var(--line); border-radius: .7rem; color: var(--ink); background: color-mix(in srgb, var(--purple) 4%, transparent); font-size: .76rem; text-decoration: none; }
.admin-doc-links a:hover { border-color: var(--purple); color: var(--purple); background: color-mix(in srgb, var(--purple) 9%, transparent); }
.admin-doc-links span { color: var(--purple); font-size: 1rem; }
.admin-platforms { margin-top: 0; padding-top: 0; border-top: 0; }
.admin-platforms .section-head { margin-bottom: 1.2rem; }
.admin-platforms h2 { margin-bottom: .35rem; color: var(--purple); }
.editor { padding: 2rem; }
.editor h2 { color: var(--purple); }
.editor fieldset { margin: 0 0 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; }
.check { display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; }
.check input { width: auto; accent-color: var(--purple); }
.api-admin { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.api-admin .section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.api-admin h2 { margin-bottom: .45rem; color: var(--purple); }
.api-admin-grid { display: grid; grid-template-columns: 300px minmax(0,1fr); align-items: start; gap: 1.2rem; }
.api-server-list { position: sticky; top: 1rem; display: grid; gap: .35rem; min-height: 0; max-height: calc(100vh - 2rem); padding: .7rem; overflow-y: auto; border: 1px solid var(--line); border-radius: 1.3rem; background: #fff; box-shadow: 0 .8rem 2.5rem rgba(42,28,60,.06); overscroll-behavior: contain; scrollbar-gutter: stable; }
.api-server-list button { display: grid; gap: .2rem; padding: .8rem; border: 0; border-radius: .7rem; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.api-server-list button:hover, .api-server-list button.active { color: #fff; background: var(--purple); }
.api-server-list small { overflow: hidden; color: inherit; font-size: .68rem; opacity: .72; text-overflow: ellipsis; white-space: nowrap; }
.api-server-list__title { display: flex; align-items: flex-start; justify-content: space-between; gap: .45rem; }
.status-pill { display: inline-flex; flex: 0 0 auto; padding: .2rem .42rem; border-radius: 999px; color: var(--green); background: rgba(22,133,90,.1); font-size: .56rem; font-style: normal; font-weight: 700; line-height: 1.2; }
.status-pill.is-disabled { color: var(--danger); background: rgba(179,60,77,.1); }
.api-server-list button:hover .status-pill, .api-server-list button.active .status-pill { color: inherit; background: rgba(255,255,255,.16); }
.api-code-list { margin: .25rem 0 1.1rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: .8rem; background: color-mix(in srgb, var(--purple) 4%, transparent); }
.api-code-list .eyebrow { margin-bottom: .6rem; }
.api-code-list ul { display: grid; gap: .45rem; }
.api-code-list li { display: grid; grid-template-columns: minmax(9rem, auto) 1fr; align-items: center; gap: .35rem .6rem; min-width: 0; color: var(--muted); font-size: .72rem; }
.api-code-list code { overflow-wrap: anywhere; color: var(--purple); font-size: .78rem; font-weight: 700; }
.api-code-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.api-code-list li small { grid-column: 1 / -1; color: var(--muted); font-size: .64rem; white-space: normal; }
.api-admin .editor { min-width: 0; }
.api-admin .auth-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.registry-admin-grid { display: grid; grid-template-columns: 320px minmax(0,1fr); align-items: start; gap: 1.2rem; }
.registry-list { position: sticky; top: 1rem; display: grid; gap: .45rem; min-height: 0; max-height: calc(100vh - 2rem); padding: .8rem; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.registry-list, .registry-list button { border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); box-shadow: 0 .8rem 2.5rem rgba(42,28,60,.06); }
.registry-list button { display: grid; gap: .25rem; width: 100%; padding: .85rem; color: var(--ink); text-align: left; cursor: pointer; }
.registry-list button:hover, .registry-list button.active { color: #fff; border-color: var(--purple); background: var(--purple); }
.registry-list .registry-add { display: block; color: var(--purple); border-style: dashed; text-align: center; box-shadow: none; }
.registry-list .registry-add:hover { color: #fff; }
.registry-item small { overflow: hidden; color: inherit; font-size: .7rem; opacity: .72; text-overflow: ellipsis; white-space: nowrap; }
.registry-origin { align-self: center; padding: .35rem .6rem; border-radius: 999px; color: var(--purple); background: var(--purple-soft); font: .72rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.registry-codes { min-height: 10rem !important; font: .78rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace !important; }
.editor-actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-top: 1.2rem; }
html[data-theme="dark"] .registry-list, html[data-theme="dark"] .login, html[data-theme="dark"] .editor { background: var(--surface); }

html[data-theme="dark"] {
  --purple: #ad84ff;
  --purple-dark: #6f3dcc;
  --purple-soft: #c2a7ff;
  --ink: #f4eff9;
  --muted: #b8afc1;
  --line: rgba(211,195,238,.19);
  --surface: #1a1621;
  --background: #100d15;
  --shadow: 0 1.4rem 4rem rgba(0,0,0,.34);
  color-scheme: dark;
}
html[data-theme="dark"] body { background: var(--background); }
html[data-theme="dark"] .header { border-color: rgba(211,195,238,.1); background: rgba(16,13,21,.88); }
html[data-theme="dark"] .brand img,
html[data-theme="dark"] .smart-clicks-admin .site-logo img { filter: brightness(0) invert(1); }
html[data-theme="dark"] .skip-link,
html[data-theme="dark"] .nav a:hover,
html[data-theme="dark"] .nav a:focus-visible,
html[data-theme="dark"] .language-picker,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .menu-toggle { background: var(--surface); }
html[data-theme="dark"] .nav a.active,
html[data-theme="dark"] .nav a.is-active,
html[data-theme="dark"] .nav a.nav__link--active,
html[data-theme="dark"] .nav a[aria-current="page"] {
  color: #fff;
  background: var(--purple);
  box-shadow: 0 .2rem .8rem rgba(0,0,0,.4);
}
html[data-theme="dark"] .hero { background: #15111b; }
html[data-theme="dark"] .hero::before {
  background: radial-gradient(circle at 8% 58%, rgba(68,169,207,.35), transparent 24%), radial-gradient(circle at 38% 62%, rgba(187,83,184,.28), transparent 34%), radial-gradient(circle at 69% 23%, rgba(213,145,80,.25), transparent 32%), linear-gradient(115deg, rgba(58,24,69,.6), #15111b 68%);
}
html[data-theme="dark"] .hero__text,
html[data-theme="dark"] .course-hero__lead,
html[data-theme="dark"] .rich-text,
html[data-theme="dark"] .learning-steps li,
html[data-theme="dark"] .legal-document p { color: var(--muted); }
html[data-theme="dark"] .store-button { border-color: var(--line); background: rgba(26,22,33,.8); }
html[data-theme="dark"] .section--collections,
html[data-theme="dark"] .landing-section { background: #15111b; }
html[data-theme="dark"] .filters,
html[data-theme="dark"] .course-card,
html[data-theme="dark"] .purchase-card,
html[data-theme="dark"] .program-list article,
html[data-theme="dark"] .legal-document,
html[data-theme="dark"] .notice,
html[data-theme="dark"] .login,
html[data-theme="dark"] .editor,
html[data-theme="dark"] .api-server-list { background: var(--surface); }
html[data-theme="dark"] .filter > span,
html[data-theme="dark"] .filter legend,
html[data-theme="dark"] .course-card__meta { color: var(--muted); }
html[data-theme="dark"] .filter select,
html[data-theme="dark"] .filter input,
html[data-theme="dark"] .login input,
html[data-theme="dark"] .editor input,
html[data-theme="dark"] .editor select,
html[data-theme="dark"] .editor textarea { border-color: var(--line); color: var(--ink); background: #211b2a; }
html[data-theme="dark"] .course-card,
html[data-theme="dark"] .purchase-card { border-color: var(--line); box-shadow: 0 .75rem 2.2rem rgba(0,0,0,.22); }
html[data-theme="dark"] .course-card__footer { border-color: var(--line); }
html[data-theme="dark"] .collection-card { background: #1d1825; }
html[data-theme="dark"] .course-hero { background: linear-gradient(135deg,#1d1728,#100d15 62%); }
html[data-theme="dark"] .course-facts > span { background: rgba(30,24,40,.78); }
html[data-theme="dark"] .rich-card { background: #1c1724; }
html[data-theme="dark"] .learning-steps { background: rgba(26,22,33,.55); }
html[data-theme="dark"] .program-list li { background: #241d2e; }
html[data-theme="dark"] .collection-hero { background: linear-gradient(135deg,#151d2c,#100d15 58%,#211329); }
html[data-theme="dark"] .support-page { background: radial-gradient(circle at 20% 20%,rgba(38,126,160,.25),transparent 30%),radial-gradient(circle at 80% 75%,rgba(152,62,160,.23),transparent 35%),#100d15; }
html[data-theme="dark"] .support-card { background: rgba(26,22,33,.88); }
html[data-theme="dark"] .spinner { border-color: #3b3048; border-top-color: var(--purple); }
html[data-theme="dark"] .empty { border-color: #554762; }
html[data-theme="dark"] .notice button { color: var(--ink); }
html[data-theme="dark"] .smart-clicks-admin { color: var(--ink); background: var(--background); }
html[data-theme="dark"] .admin-info-card { background: var(--surface); }
html[data-theme="dark"] .status-pill { color: #8ee1bd; background: rgba(142,225,189,.12); }
html[data-theme="dark"] .status-pill.is-disabled { color: #ff9aaa; background: rgba(255,154,170,.12); }
html[data-theme="dark"] .smart-clicks-admin .site-nav { display: flex; align-items: center; gap: .75rem; }
html[data-theme="dark"] .footer { background: #09070d; }

/* Keep dark-theme purple surfaces atmospheric instead of neon-bright. */
html[data-theme="dark"] {
  --purple-surface-deep: #241331;
  --purple-surface: #351a4e;
  --purple-surface-mid: #46235f;
  --purple-surface-strong: #583072;
  --purple-accent-muted: #9874d6;
}

html[data-theme="dark"] .page-hero,
html[data-theme="dark"] .course-story,
html[data-theme="dark"] .legal-hero {
  background: linear-gradient(110deg, var(--purple-surface-deep), var(--purple-surface) 42%, var(--purple-surface-mid) 76%, var(--purple-surface-strong));
}

html[data-theme="dark"] .app-callout,
html[data-theme="dark"] .course-cta,
html[data-theme="dark"] .collection-card__media,
html[data-theme="dark"] .collection-hero__media,
html[data-theme="dark"] .media-fallback,
html[data-theme="dark"] .support-card__icon,
html[data-theme="dark"] .learning-steps li span,
html[data-theme="dark"] .button,
html[data-theme="dark"] .login__icon,
html[data-theme="dark"] .api-server-list button:hover,
html[data-theme="dark"] .api-server-list button.active,
html[data-theme="dark"] .registry-list button:hover,
html[data-theme="dark"] .registry-list button.active {
  background: linear-gradient(110deg, var(--purple-surface), var(--purple-surface-mid), var(--purple-surface-strong));
}

html[data-theme="dark"] .course-story,
html[data-theme="dark"] .page-hero,
html[data-theme="dark"] .legal-hero {
  box-shadow: 0 1.8rem 3.5rem rgba(0, 0, 0, .34);
}

html[data-theme="dark"] .course-cta .eyebrow,
html[data-theme="dark"] .app-callout .eyebrow,
html[data-theme="dark"] .course-story .eyebrow,
html[data-theme="dark"] .page-hero .eyebrow,
html[data-theme="dark"] .legal-hero .eyebrow {
  color: #d6c3f2;
}

html[data-theme="dark"] .spinner { border-top-color: var(--purple-accent-muted); }

/* B2B Page Design System & Dark Theme Adaptation */
.b2b-hero {
  width: 100%;
  padding: clamp(3.5rem, 6vw, 5.5rem) 1.5rem;
  background: linear-gradient(135deg, rgba(230, 220, 255, 0.65), rgba(240, 243, 255, 0.95));
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.b2b-title {
  color: var(--purple);
}
.b2b-desc {
  color: var(--muted);
}
.b2b-card {
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface);
}
.b2b-card__icon {
  font-size: 2rem;
  color: var(--purple);
  margin-bottom: 1rem;
}
.b2b-card__title {
  color: var(--purple);
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}
.b2b-card__desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.b2b-service-card {
  padding: 2rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(77, 27, 159, 0.06), rgba(126, 80, 215, 0.12));
  border: 1px solid var(--line);
}
.b2b-service-card__title {
  color: var(--purple);
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
}
.b2b-service-card__desc {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.b2b-step-card {
  padding: 1.5rem;
  border-radius: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.b2b-step-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--purple);
  margin-bottom: 0.5rem;
}
.b2b-step-card__title {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
  color: var(--ink);
}
.b2b-step-card__desc {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

/* Dark theme overrides for B2B components */
html[data-theme="dark"] .b2b-hero {
  background: linear-gradient(135deg, rgba(29, 21, 46, 0.95), rgba(16, 13, 21, 0.98));
  border-bottom-color: rgba(211, 195, 238, 0.15);
}
html[data-theme="dark"] .b2b-hero .eyebrow {
  color: #c2a7ff;
}
html[data-theme="dark"] .b2b-title {
  color: #ffffff !important;
}
html[data-theme="dark"] .b2b-desc {
  color: #c8c1d0 !important;
}
html[data-theme="dark"] .b2b-card {
  background: #1a1622;
  border-color: rgba(211, 195, 238, 0.16);
  box-shadow: 0 0.8rem 2.5rem rgba(0, 0, 0, 0.28);
}
html[data-theme="dark"] .b2b-card__icon {
  color: #c2a7ff;
}
html[data-theme="dark"] .b2b-card__title {
  color: #f4eff9;
}
html[data-theme="dark"] .b2b-card__desc {
  color: #b8afc1;
}
html[data-theme="dark"] .b2b-service-card {
  background: linear-gradient(135deg, rgba(77, 27, 159, 0.25), rgba(40, 25, 65, 0.45));
  border-color: rgba(211, 195, 238, 0.18);
  box-shadow: 0 0.8rem 2.5rem rgba(0, 0, 0, 0.25);
}
html[data-theme="dark"] .b2b-service-card__title {
  color: #f4eff9;
}
html[data-theme="dark"] .b2b-service-card__title i {
  color: #c2a7ff;
}
html[data-theme="dark"] .b2b-service-card__desc {
  color: #b8afc1;
}
html[data-theme="dark"] .b2b-step-card {
  background: #1a1622;
  border-color: rgba(211, 195, 238, 0.16);
  box-shadow: 0 0.6rem 2rem rgba(0, 0, 0, 0.3);
}
html[data-theme="dark"] .b2b-step-card .b2b-step-num {
  color: #c2a7ff;
}
html[data-theme="dark"] .b2b-step-card__title {
  color: #f4eff9;
}
html[data-theme="dark"] .b2b-step-card__desc {
  color: #b8afc1;
}
html[data-theme="dark"] .button--ghost {
  color: #c2a7ff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(211, 195, 238, 0.2);
}
html[data-theme="dark"] .button--ghost:hover {
  color: #ffffff;
  background: var(--purple);
  border-color: var(--purple);
}

/* Dark theme support for PHP B2B Template (pages/b2b/index.php) */
html[data-theme="dark"] .block_b2b {
  color: #f4eff9;
}
html[data-theme="dark"] .block_b2b .presentation_item-block h1 {
  color: #ffffff !important;
}
html[data-theme="dark"] .block_b2b .presentation_item-block p {
  color: #b8afc1 !important;
}
html[data-theme="dark"] .block_b2b ._title {
  color: #ffffff !important;
}
html[data-theme="dark"] .block_b2b ._variables ._item:after {
  background: #1a1622 !important;
  border: 1px solid rgba(211, 195, 238, 0.16) !important;
  box-shadow: 0 0.5rem 1.8rem rgba(0, 0, 0, 0.25) !important;
}
html[data-theme="dark"] .block_b2b ._variables ._item ._title {
  color: #c2a7ff !important;
}
html[data-theme="dark"] .block_b2b ._variables ._item ._text {
  color: #b8afc1 !important;
}
html[data-theme="dark"] .block_b2b ._advantages ._item {
  border-color: rgba(211, 195, 238, 0.2) !important;
  background: #1a1622 !important;
}
html[data-theme="dark"] .block_b2b ._advantages ._item ._name {
  color: #f4eff9 !important;
}
html[data-theme="dark"] .block_b2b ._advantages ._item ._text {
  color: #b8afc1 !important;
}
html[data-theme="dark"] .block_b2b .bg-white {
  background-color: #1a1622 !important;
  border-color: rgba(211, 195, 238, 0.16) !important;
  color: #f4eff9 !important;
}
html[data-theme="dark"] .block_b2b .text-muted {
  color: #b8afc1 !important;
}
html[data-theme="dark"] .block_b2b .btn-sm_white {
  color: #c2a7ff !important;
  border: 1px solid rgba(211, 195, 238, 0.2) !important;
}
html[data-theme="dark"] .block_b2b .btn-sm_white:before {
  background: rgba(255, 255, 255, 0.08) !important;
}

@media (prefers-reduced-motion: no-preference) {
  body, .header, .hero, .section, .course-card, .collection-card, .purchase-card, .landing-section, .legal-document, .support-card, .sidebar { transition: color .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease; }
}

@media (max-width: 1050px) {
  .header__inner { gap: 1rem; }
  .brand img { width: 205px; }
  .nav a { padding-inline: .7rem; }
  .hero__grid { grid-template-columns: 1fr 1fr; }
  .hero__visual > img { right: -15%; width: 120%; }
  .course-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filters { grid-template-columns: repeat(2,1fr); }
  .collection-card { grid-template-columns: 1fr; }
  .collection-card__media { min-height: 250px; }
  .course-hero__grid { grid-template-columns: minmax(0,1fr) 330px; gap: 2rem; }
}

@media (max-width: 800px) {
  .smart-clicks-admin .site-header { gap: .75rem; }
  .smart-clicks-admin .site-nav { flex-wrap: wrap; }
  .header__inner { min-height: 4.7rem; }
  .brand img { width: 185px; }
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: calc(100% + .5rem); right: 1rem; left: 1rem; display: none;
    align-items: stretch; flex-direction: column; padding: .7rem; border: 1px solid var(--line);
    border-radius: 1rem; background: #fff; box-shadow: var(--shadow);
  }
  html[data-theme="dark"] .nav { background: var(--surface); }
  .nav--open { display: flex; }
  .language-picker { min-width: 0; }
  .language-picker select { width: 4.4rem; }
  .hero, .hero__grid { min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { padding: 4rem 0 2rem; }
  .hero__visual { min-height: 460px; }
  .hero__visual > img { right: 50%; bottom: -10%; width: 680px; max-width: none; height: 540px; transform: translateX(50%); }
  .orbit--one { right: 3%; }
  .orbit--two { right: auto; left: 2%; }
  .section-head, .app-callout > .container { align-items: flex-start; flex-direction: column; }
  .filters { grid-template-columns: 1fr; }
  .course-grid, .collection-grid { grid-template-columns: 1fr; }
  .collection-card { grid-template-columns: .85fr 1.15fr; }
  .course-hero__grid, .content-grid, .course-story__grid, .collection-hero__grid { grid-template-columns: 1fr; }
  .purchase-card { max-width: 500px; }
  .learning-steps { position: static; }
  .course-story__art { order: -1; }
  .program-list ol { grid-template-columns: 1fr; }
  .course-cta .container { grid-template-columns: 1fr; gap: 1rem; }
  .footer__grid { grid-template-columns: repeat(2,1fr); }
  .footer__brand { grid-column: 1 / -1; }
  .api-admin-grid, .registry-admin-grid { grid-template-columns: 1fr; }
  .api-server-list, .registry-list { position: static; max-height: min(60vh, 32rem); }
  .admin-login-layout, .admin-info-grid { grid-template-columns: 1fr; }
  .admin-login-copy { max-width: 620px; }
  .admin-head { flex-direction: column; }
  .api-admin .section-head { align-items: stretch; flex-direction: column; }
  .api-code-list li { grid-template-columns: 1fr; gap: .15rem; }
  .api-code-list li span { white-space: normal; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 1.2rem,1180px); }
  .smart-clicks-admin .site-header { padding: 1rem 0; }
  .smart-clicks-admin .site-logo img { width: 170px; }
  .smart-clicks-admin .site-nav { gap: .45rem; }
  .smart-clicks-admin .theme-toggle { min-width: 2.7rem; padding: .58rem; }
  .smart-clicks-admin .theme-toggle__label { display: none; }
  .api-admin .auth-fields, .registry-admin-grid .auth-fields { grid-template-columns: 1fr; }
  .brand img { width: 155px; }
  .header__inner { gap: .45rem; }
  .language-picker { padding: .48rem .55rem; }
  .theme-toggle { flex-basis: 2.45rem; width: 2.45rem; height: 2.45rem; }
  .language-picker i { display: none; }
  .hero h1 { font-size: 3.1rem; }
  .hero__actions .button { width: 100%; }
  .store-buttons { display: grid; grid-template-columns: 1fr; width: 100%; }
  .store-button { width: 100%; }
  .hero__visual { min-height: 400px; }
  .hero__visual > img { height: 460px; }
  .orbit { width: 4rem; height: 4rem; font-size: 1.3rem; }
  .section { padding: 4rem 0; }
  .filters { padding: .9rem; }
  .course-grid { gap: 1rem; }
  .collection-card { grid-template-columns: 1fr; }
  .collection-card__media { min-height: 230px; }
  .course-hero { padding-bottom: 3rem; }
  .course-hero h1, .collection-hero h1 { font-size: 2.8rem; }
  .course-facts { display: grid; }
  .rich-card { padding: 1.3rem; }
  .program-list article { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
