:root {
  color-scheme: light;
  --bg: #f5f2ea;
  --ink: #171512;
  --muted: #6c675d;
  --line: #ded8ca;
  --panel: #fffefa;
  --dark: #11100e;
  --gold: #b68a2c;
  --gold-soft: #d8bb74;
  --soft: #ece5d5;
  --cream: #faf7ef;
  --deep: #0c0b09;
  --education: #1b2738;
  --ebook: #4a3425;
  --club: #14362b;
  --danger: #9d2727;
  --ok: #246c42;
  --admin-bg: #f4f6f9;
  --admin-ink: #111827;
  --admin-muted: #667085;
  --admin-line: #d9dee8;
  --admin-purple: #5b4df5;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(17, 16, 14, .035) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(180deg, rgba(17, 16, 14, .026) 1px, transparent 1px) 0 0 / 56px 56px,
    radial-gradient(circle at 82% 8%, rgba(182, 138, 44, .16), transparent 310px),
    linear-gradient(180deg, rgba(216, 187, 116, .13), transparent 360px),
    var(--bg);
  color: var(--ink);
}

button, input, select, textarea {
  font: inherit;
}

button, .button {
  border: 1px solid var(--dark);
  background: var(--dark);
  color: white;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease;
}

button.secondary, .button.secondary, .nav button, .section-heading button, .actions button {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}

button:hover:not(:disabled), .button:hover {
  transform: translateY(-1px);
}

button:focus-visible,
.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(182, 138, 44, .34);
  outline-offset: 2px;
}

button.danger,
button.secondary.danger {
  color: var(--danger);
  border-color: rgba(157, 39, 39, .28);
}

.nav button.active,
.nav button[aria-current="page"] {
  background: var(--dark);
  color: white;
  border-color: var(--dark);
}

.panel {
  scroll-margin-top: 86px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 247, .9);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(17, 16, 14, .045);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--dark);
  color: var(--gold);
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(216, 187, 116, .18), 0 8px 18px rgba(17, 16, 14, .12);
}

.nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 32px) 56px;
}

.hero {
  position: relative;
  min-height: 300px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: end;
  padding: clamp(34px, 7vw, 78px) 0 36px;
}

.is-public-page .hero {
  display: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 18px -26px 16px;
  z-index: -1;
  border: 1px solid rgba(222, 216, 202, .72);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 254, 250, .78), rgba(255, 254, 250, .34)),
    repeating-linear-gradient(90deg, rgba(17, 16, 14, .018) 0 1px, transparent 1px 12px);
  box-shadow: 0 28px 70px rgba(64, 53, 30, .08);
}

.hero h1 {
  font-size: clamp(36px, 5vw, 48px);
  line-height: 1.02;
  margin: 8px 0 16px;
  letter-spacing: 0;
}

.hero p {
  max-width: 650px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}

.hero-proof div {
  min-width: 132px;
  padding: 10px 12px;
  border: 1px solid rgba(222, 216, 202, .9);
  border-radius: 8px;
  background: rgba(255, 254, 250, .66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

.hero-proof dt {
  color: var(--gold);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero-proof dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.quick-checkout, .admin-form, .inline-access-form {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quick-checkout {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-color: rgba(182, 138, 44, .28);
  background:
    linear-gradient(180deg, rgba(255, 254, 250, .96), rgba(250, 247, 239, .96)),
    var(--panel);
  box-shadow: 0 18px 44px rgba(64, 53, 30, .12);
}

.quick-checkout::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft), transparent);
}

.checkout-card-head {
  display: grid;
  gap: 2px;
  margin-bottom: 2px;
}

.checkout-card-head span {
  justify-self: start;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #171512;
  color: var(--gold-soft);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.checkout-card-head small {
  color: var(--muted);
  font-size: 12px;
}

.inline-access-form {
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  margin-bottom: 14px;
}

.academy-auth-panel {
  display: grid;
  grid-template-columns: minmax(240px, .86fr) minmax(320px, 1.14fr);
  gap: 18px;
  align-items: start;
  margin: 8px 0 18px;
  padding: 18px;
  border: 1px solid rgba(222, 216, 202, .9);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 254, 250, .98), rgba(248, 246, 240, .9)),
    var(--panel);
  box-shadow: 0 16px 36px rgba(56, 48, 34, .08);
}

.academy-auth-copy {
  display: grid;
  gap: 8px;
  padding: 8px 0;
}

.academy-auth-copy span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.academy-auth-copy h3 {
  margin: 0;
  max-width: 440px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.03;
}

.academy-auth-copy p {
  margin: 0;
  max-width: 440px;
  color: var(--muted);
  font-size: 15px;
}

.academy-auth-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
}

.academy-auth-card form {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(222, 216, 202, .75);
  border-radius: 8px;
  background: rgba(255, 254, 250, .72);
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.google-login-button {
  width: 100%;
  justify-content: center;
  background: #fff;
  color: #1f2937;
  border-color: #d9dce3;
}

.google-login-button::before {
  content: "G";
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1f2937;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.signup-soon {
  justify-content: center;
  cursor: not-allowed;
  opacity: .62;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

input, select, textarea {
  min-width: 0;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 6px;
  padding: 9px 11px;
  min-height: 40px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65);
}

.panel {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.hidden { display: none !important; }

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.section-heading h2, h3 {
  margin: 4px 0 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(222, 216, 202, .72);
}

.academy-home-layout {
  display: grid;
  gap: 18px;
}

.academy-home-feature,
.academy-home-rail,
.academy-home-cta {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 254, 250, .90);
  box-shadow: 0 20px 56px rgba(64, 53, 30, .075);
}

.academy-home-feature {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 180px;
  gap: 18px;
  align-items: stretch;
  padding: 16px;
}

.academy-home-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(182, 138, 44, .10), transparent 34%),
    repeating-linear-gradient(135deg, rgba(17, 16, 14, .018) 0 1px, transparent 1px 12px);
}

.academy-home-cover,
.academy-rail-cover {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(135deg, rgba(182, 138, 44, .24), transparent 48%),
    linear-gradient(145deg, #1b1813, #0d0c0a);
  background-position: center;
  background-size: cover;
  color: #fffdf6;
}

.academy-home-cover::after,
.academy-rail-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 28%, rgba(8, 7, 6, .62)),
    radial-gradient(circle at 78% 18%, rgba(216, 187, 116, .24), transparent 32%);
}

.academy-home-cover {
  min-height: 210px;
  border-radius: 10px;
  padding: 14px;
}

.academy-home-feature[data-product-type="course"] .academy-home-cover,
.academy-rail-card[data-product-type="course"] .academy-rail-cover {
  background:
    linear-gradient(135deg, rgba(216, 187, 116, .22), transparent 48%),
    linear-gradient(145deg, var(--education), #090b0f);
}

.academy-home-feature[data-product-type="ebook"] .academy-home-cover,
.academy-rail-card[data-product-type="ebook"] .academy-rail-cover {
  background:
    linear-gradient(135deg, rgba(216, 187, 116, .22), transparent 48%),
    linear-gradient(145deg, var(--ebook), #130d09);
}

.academy-home-feature[data-product-type="subscription"] .academy-home-cover,
.academy-home-feature[data-product-type="bundle"] .academy-home-cover,
.academy-home-feature[data-product-type="free"] .academy-home-cover,
.academy-rail-card[data-product-type="subscription"] .academy-rail-cover,
.academy-rail-card[data-product-type="bundle"] .academy-rail-cover,
.academy-rail-card[data-product-type="free"] .academy-rail-cover {
  background:
    linear-gradient(135deg, rgba(216, 187, 116, .22), transparent 48%),
    linear-gradient(145deg, var(--club), #07110d);
}

.academy-home-cover span,
.academy-rail-cover span {
  position: relative;
  z-index: 1;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(17, 16, 14, .72);
  font-size: 12px;
  font-weight: 800;
}

.academy-home-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 12px;
  min-width: 0;
}

.academy-home-copy h3,
.academy-home-cta h3 {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.02;
}

.academy-home-copy p,
.academy-home-cta p,
.academy-rail-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.academy-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.academy-home-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 0;
}

.academy-home-stats div {
  min-width: 116px;
  padding: 9px 10px;
  border: 1px solid rgba(222, 216, 202, .78);
  border-radius: 8px;
  background: rgba(255, 254, 250, .72);
}

.academy-home-stats dt {
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
}

.academy-home-stats dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.academy-home-price {
  position: relative;
  z-index: 1;
  align-self: center;
  display: grid;
  gap: 6px;
  justify-items: end;
  padding: 14px;
  border-left: 1px solid rgba(222, 216, 202, .72);
}

.academy-home-price span,
.academy-rail-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.academy-home-price strong {
  font-size: 28px;
  line-height: 1;
}

.academy-home-rail {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.academy-rail-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
}

.academy-rail-head h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.academy-rail-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 26%);
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-snap-type: x proximity;
}

.academy-rail-card {
  scroll-snap-align: start;
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .92);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.academy-rail-card:hover {
  transform: translateY(-2px);
  border-color: rgba(182, 138, 44, .34);
  box-shadow: 0 14px 34px rgba(64, 53, 30, .10);
}

.academy-rail-cover {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  padding: 10px;
}

.academy-rail-card strong {
  display: block;
  line-height: 1.25;
}

.academy-rail-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.academy-home-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(17, 16, 14, .96), rgba(35, 28, 14, .92)),
    var(--dark);
  color: #fffdf6;
}

.academy-home-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(216, 187, 116, .13));
}

.academy-home-cta > * {
  position: relative;
  z-index: 1;
}

.academy-home-cta h3 {
  font-size: 28px;
}

.academy-home-cta p {
  color: rgba(255, 253, 246, .72);
}

.academy-home-cta button {
  background: #fffdf6;
  color: var(--ink);
  border-color: rgba(255, 253, 246, .28);
}

.product-card, .row, .metric, .player {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 254, 250, .98), rgba(250, 247, 239, .90)),
    var(--panel);
  min-height: 220px;
  box-shadow: 0 14px 34px rgba(64, 53, 30, .065);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, rgba(182, 138, 44, .85), rgba(182, 138, 44, .18));
}

.product-card[data-product-type="course"]::before {
  background: linear-gradient(90deg, #1b2738, rgba(182, 138, 44, .42));
}

.product-card[data-product-type="ebook"]::before {
  background: linear-gradient(90deg, #4a3425, rgba(182, 138, 44, .42));
}

.product-card[data-product-type="subscription"]::before,
.product-card[data-product-type="bundle"]::before,
.product-card[data-product-type="free"]::before {
  background: linear-gradient(90deg, #14362b, rgba(182, 138, 44, .42));
}

.product-card h3 {
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 0;
}

.product-card p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 254, 250, .8);
  font-weight: 750;
}

.price {
  font-weight: 800;
  font-size: 20px;
  margin-top: auto;
}

.state {
  margin: 8px 0 16px;
  color: var(--muted);
}

.academy-page {
  min-height: 520px;
}

.page-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.page-head h2,
.public-product-copy h1,
.thankyou-shell h1 {
  margin: 4px 0 0;
  letter-spacing: 0;
}

.page-copy {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.5;
}

.public-product-shell {
  display: grid;
  gap: 18px;
}

.public-product-hero {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 254, 250, .82);
  box-shadow: 0 18px 48px rgba(64, 53, 30, .08);
}

.public-product-cover {
  min-height: 210px;
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(182, 138, 44, .24), transparent 48%),
    linear-gradient(145deg, #1b1813, #0d0c0a);
  background-size: cover;
  background-position: center;
  color: #fffdf6;
}

.public-product-cover span {
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(17, 16, 14, .72);
  font-size: 12px;
  font-weight: 800;
}

.public-product-copy {
  display: grid;
  align-content: center;
  gap: 12px;
}

.public-product-copy h1 {
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.02;
}

.public-product-copy p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.public-product-actions,
.thankyou-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.public-buy-box,
.order-summary-card,
.certificate-card,
.public-section,
.checkout-page-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.public-buy-box,
.order-summary-card {
  align-self: start;
  display: grid;
  gap: 10px;
  padding: 16px;
}

.public-buy-box strong {
  font-size: 30px;
  line-height: 1;
}

.public-buy-box span,
.public-buy-box small,
.order-summary-note {
  color: var(--muted);
  line-height: 1.4;
}

.public-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .45fr);
  gap: 14px;
}

.public-section {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.public-section h2 {
  margin: 0;
  font-size: 20px;
}

.public-course-list {
  display: grid;
  gap: 10px;
}

.public-course-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  overflow: hidden;
}

.public-course-list summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  font-weight: 800;
}

.public-course-list summary span,
.public-lesson-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.public-lesson-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.public-lesson-row[data-preview-row="true"] small {
  color: var(--ok);
}

.public-feature-list,
.public-reviews,
.public-offers {
  display: grid;
  gap: 10px;
}

.public-feature-list div,
.certificate-result-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.public-feature-list span,
.certificate-result-card span,
.certificate-result-card small {
  color: var(--muted);
}

.public-offers {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.public-offers button {
  justify-content: space-between;
  color: var(--ink);
}

.public-reviews blockquote {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.public-reviews p {
  margin: 6px 0;
  color: var(--muted);
}

.public-reviews cite {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

.checkout-page-grid,
.certificate-page-grid,
.thankyou-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.checkout-page-form,
.certificate-card {
  display: grid;
  gap: 13px;
  padding: 18px;
}

.payment-method-box {
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid rgba(182, 138, 44, .28);
  border-radius: 8px;
  background: rgba(216, 187, 116, .10);
}

.checkout-method-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkout-method-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, .78);
  cursor: pointer;
}

.checkout-method-option input {
  width: 16px;
  height: 16px;
}

.checkout-method-option strong {
  font-size: 13px;
}

.payment-method-box span,
.order-summary-head span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.payment-method-box small,
.checkout-terms {
  color: var(--muted);
  line-height: 1.4;
}

.order-summary-head {
  display: grid;
  gap: 4px;
}

.order-summary-head strong {
  font-size: 18px;
}

.order-summary-head small {
  color: var(--muted);
}

.order-summary-line,
.order-summary-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.order-summary-total strong {
  font-size: 22px;
}

.thankyou-shell {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 254, 250, .86);
  box-shadow: 0 18px 48px rgba(64, 53, 30, .08);
}

.thankyou-shell h1 {
  font-size: clamp(30px, 4.4vw, 48px);
}

.thankyou-shell p {
  color: var(--muted);
  line-height: 1.5;
}

.certificate-result-card {
  margin-top: 12px;
}

.student-layout, .admin-grid, .admin-lists {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .55fr);
  gap: 16px;
}

.student-stream-shell {
  margin-top: 16px;
  border-radius: 14px;
  overflow: hidden;
  background: #080806;
  color: #fffdf6;
  box-shadow: 0 24px 60px rgba(17, 16, 14, .16);
}

.student-stream-hero {
  position: relative;
  min-height: 310px;
  display: flex;
  align-items: flex-end;
  padding: clamp(22px, 5vw, 52px);
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 12%, rgba(216, 187, 116, .20), transparent 36%),
    linear-gradient(135deg, #171512 0%, #090908 54%, #20190c 100%);
}

.student-hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  opacity: .74;
}

.student-stream-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 8, 6, .95), rgba(8, 8, 6, .56) 48%, rgba(8, 8, 6, .18)),
    linear-gradient(180deg, transparent 42%, #080806 100%);
}

.student-hero-copy {
  max-width: 680px;
  display: grid;
  gap: 12px;
}

.student-hero-copy span,
.student-watch-frame > span,
.student-player-head span {
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.student-hero-copy h3 {
  margin: 0;
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

.student-hero-copy p {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 253, 246, .78);
  font-size: 17px;
  line-height: 1.48;
}

.student-hero-meta,
.student-hero-actions,
.student-card-actions,
.student-watch-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.student-hero-meta small {
  color: rgba(255, 253, 246, .72);
}

.student-stream-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  padding: 22px;
}

.student-stream-main,
.student-stream-aside {
  min-width: 0;
}

.student-rails {
  display: grid;
  gap: 24px;
}

.student-action-center {
  margin-bottom: 24px;
}

.student-action-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 253, 246, .12);
  border-radius: 10px;
  background: rgba(255, 253, 246, .06);
}

.student-action-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.student-action-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 12px;
  border: 1px solid rgba(255, 253, 246, .10);
  border-radius: 8px;
  background: rgba(8, 8, 6, .28);
}

.student-action-item.priority-high {
  box-shadow: inset 3px 0 0 rgba(216, 187, 116, .78);
}

.student-action-item strong,
.student-action-item small {
  display: block;
}

.student-action-item small {
  margin-top: 4px;
  color: rgba(255, 253, 246, .62);
  line-height: 1.35;
}

.student-action-item button,
.student-action-item .button {
  min-height: 34px;
  padding: 7px 10px;
  white-space: nowrap;
}

.student-rail {
  display: grid;
  gap: 12px;
}

.student-rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.student-rail-head h3 {
  margin: 0;
  font-size: 18px;
}

.student-rail-head small {
  color: rgba(255, 253, 246, .55);
}

.student-rail-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 28%);
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x proximity;
}

.student-content-card {
  scroll-snap-align: start;
  min-width: 0;
  border: 1px solid rgba(255, 253, 246, .10);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 253, 246, .06);
}

.student-card-poster {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(182, 138, 44, .26), transparent 42%),
    linear-gradient(145deg, #211b10, #0c0c0b);
  background-size: cover;
  background-position: center;
}

.student-card-poster span {
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(8, 8, 6, .72);
  color: #fffdf6;
  font-size: 11px;
  font-weight: 800;
}

.student-card-body {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.student-card-body strong {
  min-height: 38px;
  line-height: 1.25;
}

.student-card-body small,
.student-aside-row small,
.student-aside-empty {
  color: rgba(255, 253, 246, .62);
}

.student-card-progress {
  display: grid;
  gap: 6px;
}

.student-card-progress span {
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 253, 246, .14);
}

.student-card-progress i {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #f4d889);
}

.student-card-progress small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-progress {
  max-width: 520px;
}

.hero-progress span {
  height: 7px;
  background: rgba(255, 253, 246, .20);
}

.student-card-actions button,
.student-card-actions .button {
  min-height: 34px;
  padding: 7px 10px;
}

.student-stream-aside {
  align-self: start;
  display: grid;
  gap: 12px;
}

.student-stream-aside .compact {
  padding: 14px;
  border: 1px solid rgba(255, 253, 246, .10);
  border-radius: 10px;
  background: rgba(255, 253, 246, .055);
}

.student-stream-aside h4 {
  margin: 0 0 10px;
  color: #fffdf6;
}

.student-aside-row {
  display: grid;
  gap: 5px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 253, 246, .09);
}

.student-aside-row:first-of-type {
  border-top: 0;
}

.student-aside-row .button,
.student-aside-row button {
  justify-self: start;
  min-height: 32px;
  padding: 6px 10px;
}

.student-empty-state {
  padding: 18px;
  border: 1px solid rgba(255, 253, 246, .10);
  border-radius: 10px;
  color: rgba(255, 253, 246, .70);
  background: rgba(255, 253, 246, .055);
}

.student-player {
  color: #fffdf6;
  background: #080806;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(17, 16, 14, .16);
}

.student-player-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.student-player-head h3 {
  margin: 4px 0 6px;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1;
}

.student-player-head p {
  max-width: 700px;
  margin: 0;
  color: rgba(255, 253, 246, .68);
  line-height: 1.5;
}

.student-progress {
  min-width: 120px;
  align-self: start;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(255, 253, 246, .12);
  border-radius: 10px;
  background: rgba(255, 253, 246, .06);
}

.student-progress strong {
  font-size: 26px;
}

.student-progress small {
  color: rgba(255, 253, 246, .62);
}

.student-player-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, .46fr);
  gap: 16px;
}

.student-watch-frame {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(255, 253, 246, .10);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(182, 138, 44, .18), transparent 42%),
    linear-gradient(145deg, #1a1711, #090909);
}

.student-watch-frame h4 {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 42px);
  line-height: 1.05;
}

.student-watch-frame p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 253, 246, .68);
  line-height: 1.5;
}

.student-video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 260px;
  border: 0;
  border-radius: 10px;
  background: #000;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .32);
}

.ebook-frame {
  min-height: 240px;
}

.student-module {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 253, 246, .10);
  border-radius: 10px;
  background: rgba(255, 253, 246, .055);
}

.student-module strong {
  color: #fffdf6;
}

.admin-lists {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check input {
  width: 16px;
  height: 16px;
}

.list {
  display: grid;
  gap: 10px;
}

.row {
  padding: 13px;
}

.row strong {
  display: block;
  margin-bottom: 4px;
}

.row small {
  color: var(--muted);
}

.compact .row {
  padding: 10px;
  font-size: 14px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.readiness {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.readiness-item {
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.readiness-item strong {
  font-size: 13px;
}

.readiness-item small {
  color: var(--muted);
  font-size: 12px;
}

.readiness-item.ready {
  border-color: rgba(36, 108, 66, .35);
}

.readiness-item.blocked {
  border-color: rgba(157, 39, 39, .35);
}

.readiness-item.pending {
  border-color: rgba(180, 128, 24, .38);
}

.metric {
  padding: 14px;
}

.metric span {
  color: var(--muted);
  font-size: 12px;
}

.metric strong {
  display: block;
  font-size: 24px;
  margin-top: 4px;
}

.player {
  margin-top: 18px;
  padding: 16px;
}

.lesson-list {
  display: grid;
  gap: 8px;
}

.lesson-button {
  width: 100%;
  text-align: left;
  background: white;
  color: var(--ink);
  border-color: var(--line);
}

.student-player .lesson-list {
  align-content: start;
  max-height: 520px;
  overflow: auto;
}

.student-player .lesson-button {
  min-height: 48px;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 253, 246, .07);
  color: #fffdf6;
  border-color: rgba(255, 253, 246, .12);
}

.student-player .lesson-button.completed {
  border-color: rgba(216, 187, 116, .38);
  background: rgba(216, 187, 116, .12);
}

.student-player .lesson-button span,
.student-player .lesson-button small {
  display: block;
}

.student-player .lesson-button small {
  color: rgba(255, 253, 246, .56);
}

.form-status.ok { color: var(--ok); }
.form-status.error { color: var(--danger); }

.checkout-page-form .field-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, .12);
}

.is-admin-view main {
  max-width: none;
  padding: 0;
}

.is-admin-view .hero {
  display: none;
}

.is-student-view .hero {
  display: none;
}

.is-admin-view #academy-admin {
  padding: 0;
  border-top: 0;
  scroll-margin-top: 68px;
}

.is-admin-view #admin-auth-panel {
  max-width: 1120px;
  margin: 8px auto 18px;
}

.academy-admin-shell {
  min-height: calc(100vh - 61px);
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  background:
    linear-gradient(90deg, rgba(15, 23, 42, .026) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(180deg, rgba(15, 23, 42, .018) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--admin-bg);
}

.academy-admin-sidebar {
  position: sticky;
  top: 61px;
  align-self: start;
  height: calc(100vh - 61px);
  padding: 14px 12px;
  background:
    linear-gradient(180deg, rgba(182, 138, 44, .08), transparent 28%),
    #1f2938;
  color: #e8edf5;
  overflow-y: auto;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .06);
}

.admin-account {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px;
  color: inherit;
  text-decoration: none;
  border-radius: 8px;
  margin-bottom: 10px;
  background: rgba(18, 23, 34, .42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.admin-account span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #121722;
  color: var(--gold);
  font-weight: 850;
}

.admin-account strong {
  line-height: 1.15;
}

.admin-menu {
  display: grid;
  gap: 4px;
}

.admin-menu button {
  justify-content: flex-start;
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  border-color: transparent;
  background: transparent;
  color: #dbe3ee;
  border-radius: 6px;
  text-align: left;
  transition: background .14s ease, color .14s ease, transform .14s ease;
}

.admin-menu button::before {
  content: attr(data-icon);
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  border-radius: 5px;
  background: rgba(219, 227, 238, .08);
  color: rgba(219, 227, 238, .62);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.admin-menu button.active,
.admin-menu button:hover:not(:disabled) {
  background: #121a2a;
  color: #fff;
}

.admin-menu button.active::before {
  background: rgba(182, 138, 44, .18);
  color: var(--gold-soft);
  box-shadow: inset 0 0 0 1px rgba(182, 138, 44, .28);
}

.admin-menu button:disabled {
  opacity: .48;
  cursor: not-allowed;
}

.admin-menu small {
  margin-left: auto;
  color: #aeb8c7;
  font-size: 11px;
}

.academy-admin-main {
  min-width: 0;
  padding: 24px clamp(18px, 4vw, 48px) 48px;
}

.admin-alert {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: -24px calc(clamp(18px, 4vw, 48px) * -1) 24px;
  padding: 9px 18px;
  background: linear-gradient(90deg, #d9aa2f, #f0cf76);
  color: #11100e;
  font-size: 14px;
  box-shadow: 0 1px 0 rgba(17, 16, 14, .08);
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-topbar h2 {
  margin: 4px 0;
  font-size: 24px;
  letter-spacing: 0;
}

.admin-topbar .eyebrow {
  color: #98701d;
}

.admin-topbar p:last-child {
  margin: 0;
  color: var(--muted);
}

.admin-filters {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(190px, 1.2fr) minmax(90px, .6fr) auto auto;
  gap: 10px;
  align-items: center;
  min-width: min(760px, 100%);
}

.admin-filters select {
  min-height: 40px;
  background: white;
}

.admin-workspace {
  display: grid;
  gap: 16px;
}

.admin-status-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.admin-status-row .state {
  margin: 0;
}

.admin-readiness-menu {
  position: relative;
  flex: 0 0 auto;
}

.admin-readiness-menu summary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #d8deea;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  list-style: none;
}

.admin-readiness-menu summary::-webkit-details-marker {
  display: none;
}

.admin-readiness-menu summary::after {
  content: "v";
  margin-left: 10px;
  color: #7b8799;
  font-size: 12px;
}

.admin-readiness-menu[open] summary::after {
  transform: rotate(180deg);
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: grid;
  gap: 16px;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr);
  gap: 16px;
}

.admin-chart-card,
.admin-card {
  background: rgba(255, 255, 255, .96);
  border: 1px solid #dfe3ea;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .055);
}

.admin-chart-card {
  min-height: 230px;
  padding: 20px;
  display: grid;
  align-content: end;
  gap: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(250, 251, 253, .98)),
    #fff;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #62708a;
}

.card-head strong {
  color: #142033;
}

.admin-chart-line {
  position: relative;
  height: 74px;
  border-bottom: 1px solid #dfe3ea;
}

.admin-chart-line span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(182, 138, 44, .18), rgba(182, 138, 44, .95));
  box-shadow: 0 0 18px rgba(182, 138, 44, .22);
}

.chart-axis {
  display: flex;
  justify-content: space-between;
  color: #6f7d92;
  font-size: 13px;
}

.admin-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.admin-friction-card {
  grid-column: span 2;
}

.friction-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2px;
}

.friction-summary span {
  display: inline-flex;
  gap: 4px;
  align-items: baseline;
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid #dfe3ea;
  border-radius: 999px;
  color: #62708a;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 700;
}

.friction-summary strong {
  color: #142033;
}

.friction-row {
  box-shadow: inset 3px 0 0 rgba(98, 112, 138, .34);
}

.friction-row.severity-block {
  box-shadow: inset 3px 0 0 rgba(157, 39, 39, .58);
}

.friction-row.severity-warning {
  box-shadow: inset 3px 0 0 rgba(182, 138, 44, .62);
}

.friction-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.friction-meta span {
  color: #7b8799;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-split {
  display: grid;
  grid-template-columns: minmax(320px, .46fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.admin-card {
  padding: 14px;
}

.admin-card h3,
.admin-form h3 {
  font-size: 17px;
  margin-bottom: 12px;
}

.admin-form {
  background: #fff;
  border-color: #dfe3ea;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}

.academy-admin-main .state {
  margin: 0 0 12px;
}

.academy-admin-main .metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.academy-admin-main .metric {
  min-height: 92px;
  background: #fff;
  border-color: #dfe3ea;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .052);
  transition: transform .14s ease, box-shadow .14s ease;
}

.academy-admin-main .metric:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, .07);
}

.academy-admin-main .metric span,
.academy-admin-main .row small {
  color: #62708a;
}

.academy-admin-main .metric strong {
  color: #142033;
  font-size: 22px;
}

.academy-admin-main .metric small {
  display: block;
  margin-top: 6px;
  color: #7b8799;
  font-size: 12px;
}

.academy-admin-main .readiness {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: min(680px, calc(100vw - 320px));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 10px;
  border: 1px solid #d8deea;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .16);
  margin-bottom: 0;
}

.academy-admin-main .readiness-item {
  background: #fff;
  border-color: #dfe3ea;
}

.academy-admin-main .readiness-item.ready {
  border-color: rgba(36, 108, 66, .3);
  box-shadow: inset 3px 0 0 rgba(36, 108, 66, .55);
}

.academy-admin-main .readiness-item.blocked {
  border-color: rgba(157, 39, 39, .25);
  box-shadow: inset 3px 0 0 rgba(157, 39, 39, .5);
}

.academy-admin-main .readiness-item.pending {
  border-color: rgba(180, 128, 24, .28);
  box-shadow: inset 3px 0 0 rgba(180, 128, 24, .58);
}

.academy-admin-main .row {
  background: #fff;
  border-color: #e3e6ec;
}

.academy-admin-main .backend-row.ready {
  box-shadow: inset 3px 0 0 rgba(36, 108, 66, .5);
}

.academy-admin-main .backend-row.future {
  box-shadow: inset 3px 0 0 rgba(182, 138, 44, .5);
}

.academy-admin-main .danger-text {
  color: var(--danger);
  font-weight: 700;
}

.admin-page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 42px;
  margin-bottom: 24px;
}

.admin-page-head h3 {
  margin: 0;
  color: var(--admin-ink);
  font-size: 22px;
}

.admin-page-head p {
  margin: 3px 0 0;
  color: var(--admin-muted);
  font-size: 13px;
}

.admin-page-head button {
  background: var(--admin-purple);
  border-color: var(--admin-purple);
  box-shadow: 0 8px 16px rgba(91, 77, 245, .18);
}

.admin-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 0 12px;
}

.admin-card-head h3 {
  margin: 0;
}

.admin-inline-menu {
  position: relative;
}

.admin-inline-menu summary {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #d8deea;
  border-radius: 6px;
  background: #fff;
  color: var(--admin-ink);
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.admin-inline-menu summary::-webkit-details-marker {
  display: none;
}

.admin-inline-menu[open] {
  z-index: 15;
}

.admin-inline-menu[open] > :not(summary) {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(520px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
}

.compact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.compact-form button {
  grid-column: 1 / -1;
}

.admin-data-card {
  overflow: hidden;
  background: rgba(255, 255, 255, .98);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.admin-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 18px 16px;
  background: linear-gradient(180deg, #fcfdff, #f7f9fc);
  border-bottom: 1px solid #edf0f5;
}

.admin-tabs button {
  min-height: 34px;
  padding: 7px 12px;
  border: 0;
  background: transparent;
  color: #161b26;
  font-weight: 700;
}

.admin-tabs button.active {
  background: #eef0ff;
  color: var(--admin-purple);
}

.admin-tabs button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.admin-filter-drawer {
  border-bottom: 1px solid #edf0f5;
}

.admin-filter-drawer summary {
  display: none;
}

.admin-table-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .96);
}

.admin-table-toolbar > button {
  margin-left: auto;
  background: var(--admin-purple);
  border-color: var(--admin-purple);
  box-shadow: 0 8px 16px rgba(91, 77, 245, .16);
}

.admin-search,
.admin-select-filter {
  color: transparent;
  font-size: 0;
}

.admin-search {
  width: min(280px, 100%);
}

.admin-search input,
.admin-select-filter select {
  height: 40px;
  border-color: #d8deea;
  color: var(--admin-ink);
  font-size: 14px;
}

.admin-search input {
  width: 100%;
}

.admin-select-filter select {
  min-width: 144px;
}

.url-field {
  display: inline-flex;
  align-items: center;
  width: min(430px, 100%);
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #d8deea;
  border-radius: 6px;
  background: #fff;
  color: #111827;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table-count {
  padding: 0 16px 10px;
  color: var(--admin-muted);
  font-size: 12px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--admin-ink);
  font-size: 14px;
}

.admin-table th {
  padding: 12px 16px;
  background: #fbfcfe;
  border-bottom: 1px solid #dfe4ee;
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-table td {
  padding: 18px 16px;
  border-bottom: 1px solid #edf0f5;
  vertical-align: middle;
  white-space: nowrap;
}

.admin-table tr:hover td {
  background: #fbfcff;
}

.admin-table .primary-cell {
  min-width: 360px;
  white-space: normal;
}

.admin-table strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.admin-table small {
  display: block;
  margin-top: 3px;
  color: var(--admin-muted);
  font-size: 12px;
  line-height: 1.35;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e9f7ef;
  color: #207a49;
  font-size: 12px;
  font-weight: 800;
}

.status-pill.pending {
  background: #fff7e6;
  color: #9a6500;
}

.status-pill.blocked,
.status-pill.failed {
  background: #fff0f0;
  color: #a33232;
}

.status-pill.neutral {
  background: #eef2f7;
  color: #475467;
}

.table-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.compact-button {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 13px;
}

.icon-button {
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border-color: #d8deea;
  background: #fff;
  color: #475467;
  font-size: 19px;
  line-height: 1;
}

.row-action-menu {
  position: relative;
}

.row-action-menu summary {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #d8deea;
  border-radius: 7px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  list-style: none;
}

.row-action-menu summary::-webkit-details-marker {
  display: none;
}

.row-action-menu div {
  position: absolute;
  z-index: 20;
  top: 42px;
  right: 0;
  display: grid;
  min-width: 160px;
  padding: 6px;
  border: 1px solid #d8deea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(16, 24, 40, .14);
}

.row-action-menu div button {
  justify-content: flex-start;
  min-height: 34px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #172033;
  font-size: 13px;
  text-align: left;
}

.row-action-menu div button:hover {
  background: #f4f6fb;
}

.text-ok {
  color: #207a49;
  font-weight: 750;
}

.text-warn {
  color: #9a6500;
  font-weight: 750;
}

.admin-table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 16px;
  color: #475467;
  font-size: 13px;
}

.admin-help-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin: 18px 0 0;
  color: #111827;
  font-size: 14px;
}

.admin-help-link span {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #6b6ff5;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.admin-help-link a {
  color: var(--admin-purple);
}

.pager {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d8deea;
  border-radius: 6px;
  overflow: hidden;
}

.pager button,
.pager span {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  border: 0;
  border-left: 1px solid #d8deea;
  background: #fff;
  color: #475467;
}

.pager button:first-child {
  border-left: 0;
}

.pager span {
  background: #eef1f6;
  color: #344054;
  font-weight: 700;
}

.admin-action-menu {
  position: relative;
  display: inline-flex;
}

.admin-action-menu-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  min-width: 190px;
  padding: 6px;
  border: 1px solid #d8deea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .14);
}

.admin-action-menu-list button {
  width: 100%;
  height: 38px;
  justify-content: flex-start;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #172033;
  box-shadow: none;
  font-weight: 700;
}

.admin-action-menu-list button:hover,
.admin-action-menu-list button:focus-visible {
  background: #f1f4f9;
}

.has-admin-modal {
  overflow: hidden;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 27, 41, .42);
}

.admin-modal-card {
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, .28);
}

.lesson-modal-card {
  width: min(720px, 100%);
}

.admin-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  background: #fafbfc;
}

.admin-modal-head h3 {
  margin: 0;
  color: #111827;
  font-size: 28px;
  line-height: 1.15;
}

.admin-modal-close {
  width: 42px;
  min-height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #98a2b3;
  box-shadow: none;
  font-size: 38px;
  line-height: 1;
}

.admin-setup-form {
  display: grid;
  gap: 22px;
  padding: 28px;
}

.admin-setup-form label {
  display: grid;
  gap: 9px;
  color: #344054;
  font-size: 20px;
  font-weight: 700;
}

.admin-setup-form input,
.admin-setup-form select,
.admin-setup-form textarea {
  width: 100%;
  min-height: 56px;
  border: 1px solid #cfd5df;
  border-radius: 8px;
  background: #fff;
  color: #101828;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
  font-size: 18px;
  font-weight: 500;
}

.admin-setup-form textarea {
  min-height: 118px;
  resize: vertical;
  line-height: 1.45;
}

.admin-setup-form label small {
  color: #667085;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}

.admin-char-count {
  justify-self: end;
  margin-top: -8px;
  color: #667085;
  font-size: 15px;
  font-weight: 500;
}

.admin-price-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 118px;
}

.admin-price-prefix {
  display: grid;
  place-items: center;
  min-height: 56px;
  border: 1px solid #cfd5df;
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: #fff;
  color: #667085;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
  font-size: 18px;
  font-weight: 600;
}

.admin-price-row input {
  min-width: 0;
  border-left: 0;
  border-radius: 0;
}

.admin-price-row select {
  border-left: 0;
  border-radius: 0 8px 8px 0;
}

.admin-modal-back {
  justify-self: start;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6675ff;
  box-shadow: none;
  font-size: 18px;
  font-weight: 700;
}

.admin-setup-form button {
  min-height: 56px;
  margin-top: 16px;
  border-color: var(--admin-purple);
  background: var(--admin-purple);
  box-shadow: 0 10px 22px rgba(91, 77, 245, .2);
  font-size: 20px;
  font-weight: 800;
}

.admin-setup-form .admin-modal-back {
  min-height: 34px;
  margin-top: 0;
  border: 0;
  background: transparent;
  color: #6675ff;
  box-shadow: none;
  font-size: 18px;
  font-weight: 700;
}

.modal-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.checkout-thank-you {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #d9eadf;
  border-radius: 8px;
  background: #f6fff8;
  color: #172033;
}

.checkout-thank-you strong,
.checkout-thank-you span,
.checkout-thank-you small {
  display: block;
}

.button-link {
  display: inline-flex;
  justify-content: center;
  width: fit-content;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 7px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.admin-create-panel {
  background: #fff;
  border: 1px solid #dfe3ea;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}

.admin-create-panel summary {
  cursor: pointer;
  padding: 12px 14px;
  color: var(--admin-ink);
  font-weight: 800;
}

.admin-create-panel .admin-form {
  border: 0;
  border-top: 1px solid #edf0f5;
  border-radius: 0 0 8px 8px;
  box-shadow: none;
}

.product-config {
  display: grid;
  gap: 18px;
}

.product-config-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 42px;
}

.product-config-bar strong {
  color: var(--admin-ink);
  font-size: 18px;
}

.product-config-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  background: #fff;
}

.product-config-tabs button {
  min-height: 34px;
  padding: 7px 12px;
  border: 0;
  background: transparent;
  color: #161b26;
  box-shadow: none;
  font-weight: 800;
}

.product-config-tabs button.active {
  background: #eef0ff;
  color: var(--admin-purple);
}

.product-config-layout {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 22px 48px;
  align-items: start;
}

.product-config-aside {
  padding-top: 8px;
}

.product-config-aside h4 {
  margin: 0 0 8px;
  color: #172033;
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
}

.product-config-aside p {
  max-width: 340px;
  margin: 0;
  color: #667085;
  line-height: 1.45;
}

.product-config-fields {
  display: grid;
  gap: 18px;
}

.product-config-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.product-config-card label {
  color: #344054;
  font-size: 14px;
  font-weight: 750;
}

.product-config-card input,
.product-config-card select,
.product-config-card textarea {
  width: 100%;
  min-height: 42px;
  border-color: #d8deea;
  color: #101828;
  font-size: 14px;
}

.product-config-card textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.4;
}

.product-upload-box {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 190px;
  padding: 24px;
  border: 2px dashed #98a2b3;
  background: #fff;
  text-align: center;
}

.product-upload-box span {
  color: #d0d5dd;
  font-size: 52px;
  line-height: 1;
}

.product-upload-box strong {
  color: #344054;
  font-size: 16px;
  font-weight: 500;
}

.product-upload-box input {
  max-width: 560px;
}

.product-config-note {
  padding: 14px 16px;
  border-left: 4px solid #d9aa2f;
  background: #fffbea;
  color: #9a6500;
  font-weight: 700;
}

.product-config-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 0 0;
}

.product-config-actions button:last-child {
  min-width: 150px;
  border-color: var(--admin-purple);
  background: var(--admin-purple);
  box-shadow: 0 8px 16px rgba(91, 77, 245, .18);
}

.member-area-detail {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid #e2e7f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.member-detail-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.member-detail-head small {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.member-detail-head h4 {
  margin: 4px 0 4px;
  color: #172033;
  font-size: 20px;
  letter-spacing: 0;
  text-transform: none;
}

.member-detail-head p {
  max-width: 620px;
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.4;
}

.member-detail-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.member-detail-grid div {
  padding: 12px;
  border: 1px solid #edf0f5;
  background: #fbfcfe;
}

.member-detail-grid span {
  display: block;
  color: #667085;
  font-size: 12px;
}

.member-detail-grid strong {
  display: block;
  margin-top: 5px;
  color: #101828;
  font-size: 18px;
}

.member-structure-list {
  display: grid;
  gap: 8px;
}

.member-structure-list details {
  border: 1px solid #edf0f5;
  background: #fff;
}

.member-structure-list summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  color: #172033;
  font-weight: 800;
}

.member-structure-list summary span,
.member-structure-list small {
  color: #667085;
  font-weight: 650;
}

.member-structure-list p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 10px 14px;
  border-top: 1px solid #edf0f5;
}

.member-editor-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.member-editor-title h4 {
  margin: 0 0 3px;
}

.member-editor-title p {
  margin: 0;
  color: #667085;
  font-size: 12px;
}

.member-editor-fields,
.module-edit-form,
.lesson-editor-form {
  display: grid;
  gap: 10px;
}

.member-editor-fields {
  grid-template-columns: minmax(220px, 1.4fr) minmax(120px, .65fr) minmax(140px, .65fr) minmax(220px, 1fr);
}

.module-edit-form {
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.2fr) 78px 130px repeat(5, auto);
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-top: 1px solid #edf0f5;
  background: #fbfcfe;
}

.lesson-editor-row {
  border-top: 1px solid #edf0f5;
}

.lesson-editor-row summary {
  padding-left: 24px;
}

.lesson-editor-row summary strong {
  min-width: 0;
  color: #172033;
  font-size: 14px;
}

.lesson-editor-form {
  grid-template-columns: repeat(4, minmax(0, 1fr)) repeat(4, auto);
  padding: 12px 24px 14px;
  border-top: 1px solid #edf0f5;
  background: #fff;
}

.lesson-editor-content {
  grid-column: 1 / -1;
}

.lesson-preview-mini {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #edf0f5;
  background: #fbfcfe;
  color: #667085;
  font-size: 12px;
}

.lesson-preview-mini a {
  min-width: 0;
  overflow: hidden;
  color: var(--admin-purple);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-detail-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #e2e7f0;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.detail-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.detail-panel-head small {
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.detail-panel-head h4,
.detail-panel-head p {
  margin: 2px 0 0;
}

.detail-panel-grid,
.detail-panel-columns {
  display: grid;
  gap: 10px;
}

.detail-panel-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.detail-panel-grid div,
.detail-panel-columns > div {
  padding: 12px;
  border: 1px solid #edf0f5;
  background: #fbfcfe;
}

.detail-panel-grid span {
  display: block;
  color: #667085;
  font-size: 12px;
}

.detail-panel-grid strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #172033;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-panel-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-panel-columns h5 {
  margin: 0 0 8px;
  color: #172033;
  font-size: 13px;
}

.member-editor-card label,
.lesson-editor-form label {
  display: grid;
  gap: 5px;
  color: #46546a;
  font-size: 12px;
  font-weight: 750;
}

.member-editor-fields input,
.member-editor-fields select,
.member-editor-card textarea,
.module-edit-form input,
.module-edit-form select,
.lesson-editor-form input,
.lesson-editor-form select,
.lesson-editor-form textarea {
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid #d8deea;
  border-radius: 6px;
  background: #fff;
  color: #172033;
  font-size: 12px;
}

.member-editor-status {
  color: #138a54;
  font-size: 12px;
  font-weight: 800;
}

.compact-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #667085;
  font-size: 12px;
  font-weight: 750;
}

.member-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 12px;
}

.member-editor-card {
  padding: 14px;
  border: 1px solid #edf0f5;
  background: #fbfcfe;
}

.member-editor-card h4 {
  margin: 0 0 10px;
  color: #172033;
  font-size: 15px;
}

.course-editor-card {
  display: grid;
  gap: 10px;
}

.inline-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.link-button {
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--admin-purple);
  font-size: 12px;
  font-weight: 800;
  box-shadow: none;
}

.member-readiness-warning {
  padding: 12px 14px;
  border-left: 4px solid #d9aa2f;
  background: #fffbea;
  color: #9a6500;
}

.member-readiness-warning p {
  margin: 4px 0 0;
}

.toggle-line {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
}

.toggle-line input[type="checkbox"] {
  width: 22px;
  min-height: 22px;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.compact-price {
  max-width: 360px;
}

.switch-line {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 12px;
  color: #344054;
  font-size: 16px;
  font-weight: 800;
}

.switch-line input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-line span {
  position: relative;
  width: 58px;
  height: 34px;
  border-radius: 999px;
  background: #e4e7ec;
  box-shadow: inset 0 0 0 1px #d0d5dd;
  transition: background .15s ease;
}

.switch-line span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(15, 23, 42, .22);
  transition: transform .15s ease;
}

.switch-line input:checked + span {
  background: #6b6ff5;
}

.switch-line input:checked + span::after {
  transform: translateX(24px);
}

.product-offers {
  display: grid;
  gap: 14px;
  padding-top: 6px;
}

.product-offers-head {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #344054;
}

.product-offers-head strong {
  font-size: 16px;
}

.product-offers-head small {
  color: #667085;
  font-size: 14px;
}

.product-offers-list {
  display: grid;
  gap: 12px;
}

.product-offer-row {
  display: grid;
  grid-template-columns: minmax(200px, 360px) minmax(260px, 460px) 36px;
  gap: 16px;
  align-items: end;
}

.product-offer-remove {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #e03131;
  color: #fff;
  box-shadow: none;
  font-size: 24px;
  font-weight: 800;
}

.product-offer-add {
  justify-self: start;
  min-height: 40px;
  border-color: var(--admin-purple);
  background: var(--admin-purple);
  box-shadow: 0 8px 16px rgba(91, 77, 245, .18);
}

.product-config-link {
  justify-self: start;
  color: var(--admin-purple);
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
}

.member-access-head {
  margin-bottom: 2px;
  color: #172033;
  font-size: 16px;
  font-weight: 800;
}

.member-access-table {
  display: grid;
  border: 1px solid #edf0f5;
  border-radius: 0;
  overflow: hidden;
}

.member-access-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(110px, .45fr) minmax(220px, .9fr);
  gap: 16px;
  align-items: center;
  min-height: 58px;
  padding: 10px 18px;
  border-top: 1px solid #edf0f5;
  background: #fff;
}

.member-access-row:first-child {
  border-top: 0;
}

.member-access-row-head {
  min-height: 42px;
  background: #fbfcfe;
  color: #667085;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.member-access-row strong {
  color: #172033;
  font-size: 13px;
}

.member-access-row span {
  color: #667085;
  font-size: 13px;
}

.statement-row,
.inline-unit {
  display: inline-flex;
  align-items: center;
  width: min(520px, 100%);
}

.statement-row span,
.inline-unit small {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #d8deea;
  border-right: 0;
  border-radius: 6px 0 0 6px;
  background: #fbfcfe;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}

.statement-row input,
.inline-unit input {
  border-radius: 0 6px 6px 0;
}

.inline-unit input {
  max-width: 160px;
}

.inline-unit small {
  border-right: 1px solid #d8deea;
  border-left: 0;
  border-radius: 0 6px 6px 0;
}

.inline-unit input {
  border-radius: 6px 0 0 6px;
}

.muted-field {
  opacity: .58;
}

.pixel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 18px;
  border-bottom: 1px solid #d8deea;
}

.pixel-tabs span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  color: #172033;
  font-size: 13px;
  font-weight: 800;
  border-bottom: 2px solid transparent;
}

.pixel-tabs span:first-child {
  color: var(--admin-purple);
  border-bottom-color: var(--admin-purple);
}

.conversion-pixels-list {
  display: grid;
  gap: 10px;
}

.conversion-pixel-row {
  display: grid;
  grid-template-columns: minmax(150px, .6fr) minmax(180px, 1fr) minmax(180px, 1fr) 40px;
  gap: 12px;
  align-items: end;
}

.conversion-pixels-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0 18px;
}

.conversion-pixels-footer small {
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}

.checkout-builder {
  display: grid;
  gap: 18px;
}

.checkout-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 22px 14px;
  background: #fff;
}

.checkout-toolbar .admin-search {
  max-width: 300px;
}

.checkout-table {
  display: grid;
  background: #fff;
  border-top: 1px solid #dfe4ee;
  border-bottom: 1px solid #dfe4ee;
}

.checkout-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, .75fr) 160px;
  gap: 18px;
  align-items: center;
  min-height: 72px;
  padding: 14px 22px;
  border-top: 1px solid #edf0f5;
}

.checkout-row:first-child {
  border-top: 0;
}

.checkout-row-head {
  min-height: 42px;
  background: #fbfcfe;
  color: #667085;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.checkout-name-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkout-name-cell input {
  max-width: 220px;
  border: 0;
  padding-left: 0;
  box-shadow: none;
  color: #101828;
  font-size: 15px;
  font-weight: 800;
}

.checkout-default {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e9e9ff;
  color: var(--admin-purple);
  font-size: 12px;
  font-weight: 850;
}

.checkout-default input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkout-row .table-actions {
  justify-content: flex-end;
}

.checkout-row .table-actions select {
  max-width: 94px;
  min-height: 36px;
  padding: 7px 8px;
  font-size: 12px;
}

.checkout-help {
  justify-content: center;
  margin: 8px 0 0;
}

.links-builder {
  display: grid;
  gap: 18px;
}

.link-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.links-table {
  display: grid;
  background: #fff;
  border-top: 1px solid #dfe4ee;
  border-bottom: 1px solid #dfe4ee;
}

.links-row {
  display: grid;
  grid-template-columns: 40px minmax(160px, .7fr) minmax(280px, 1.35fr) minmax(120px, .5fr) minmax(120px, .45fr) minmax(120px, .45fr) 44px;
  gap: 14px;
  align-items: center;
  min-height: 72px;
  padding: 12px 22px;
  border-top: 1px solid #edf0f5;
}

.links-row:first-child {
  border-top: 0;
}

.links-row-head {
  min-height: 42px;
  background: #fbfcfe;
  color: #667085;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.links-row input,
.links-row select {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 13px;
}

.links-row [data-link-name] {
  border: 0;
  padding-left: 0;
  box-shadow: none;
  color: #101828;
  font-weight: 800;
}

.links-row [data-link-type] {
  color: var(--admin-purple);
  background: #e9e9ff;
  border-color: transparent;
  font-weight: 850;
}

.links-row [data-link-status] {
  color: #207a49;
  background: #e9f7ef;
  border-color: transparent;
  font-weight: 850;
}

.link-check input {
  width: 22px;
  min-height: 22px;
}

.form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid .form-wide {
  grid-column: span 2;
}

.table-empty {
  padding: 18px;
}

.academy-admin-main h4 {
  margin: 2px 0 8px;
  color: #62708a;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.pix-copy {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  color: var(--muted);
}

.pix-copy code {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 860px) {
	  .hero,
	  .student-layout,
	  .student-stream-grid,
	  .student-player-grid,
    .academy-home-feature,
    .public-product-hero,
    .public-product-grid,
    .checkout-page-grid,
    .certificate-page-grid,
    .thankyou-shell,
	  .admin-grid,
	  .admin-lists,
    .academy-auth-panel,
	  .inline-access-form {
	    grid-template-columns: 1fr;
	  }

  .student-stream-hero {
    min-height: 430px;
    padding: 26px 18px;
  }

  .student-stream-grid {
    padding: 14px;
  }

  .academy-auth-panel {
    margin-bottom: 96px;
  }

  .is-student-view .clara-chat,
  .is-admin-view .clara-chat {
    display: none;
  }

  .student-rail-track {
    grid-auto-columns: minmax(210px, 76%);
  }

  .academy-home-price {
    justify-items: start;
    border-top: 1px solid rgba(222, 216, 202, .72);
    border-left: 0;
  }

  .academy-rail-track {
    grid-auto-columns: minmax(220px, 72%);
  }

  .academy-home-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .student-player-head {
    display: grid;
  }

	  .product-grid, .metrics, .readiness {
	    grid-template-columns: repeat(2, minmax(0, 1fr));
	  }

  .public-product-hero {
    padding: 14px;
  }

  .public-buy-box {
    position: static;
  }

  .academy-admin-shell,
  .admin-dashboard-grid,
  .admin-split,
  .admin-mini-grid,
  .student-action-list,
  .admin-filters,
  .member-detail-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .admin-friction-card {
    grid-column: auto;
  }

  .form-grid .form-wide {
    grid-column: auto;
  }

  .academy-admin-sidebar {
    position: static;
    height: auto;
  }

  .student-action-list {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 86%);
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
  }

  .student-action-item {
    grid-template-columns: 1fr;
    align-content: space-between;
    scroll-snap-align: start;
  }

  .admin-status-row {
    flex-direction: column;
  }

  .academy-admin-main .readiness {
    left: 0;
    right: auto;
    width: min(92vw, 520px);
  }
}

@media (max-width: 560px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }

  main {
    padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
  }

  .panel {
    scroll-margin-top: 96px;
  }

  .topbar {
    align-items: center;
    min-height: 72px;
    padding: 14px 18px;
    background: rgba(255, 253, 247, .98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .topbar .brand {
    min-height: 44px;
  }

  .nav {
    position: fixed;
    inset: auto max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 6px;
    height: auto;
    padding: 7px;
    border: 1px solid rgba(222, 216, 202, .88);
    border-radius: 18px;
    background: rgba(255, 253, 247, .94);
    box-shadow: 0 16px 46px rgba(17, 16, 14, .18);
    backdrop-filter: blur(18px);
  }

  .nav button {
    min-height: 48px;
    padding: 8px 6px;
    border-radius: 13px;
    font-size: 14px;
    font-weight: 850;
  }

  body.is-admin-view {
    padding-bottom: 0;
  }

  body.is-admin-view main {
    padding-bottom: 48px;
  }

  body.is-admin-view .nav {
    display: none;
  }

  body.is-admin-view:not([data-admin-section="dashboard"]) .admin-alert,
  body.is-admin-view:not([data-admin-section="dashboard"]) .admin-topbar,
  body.is-admin-view:not([data-admin-section="dashboard"]) .admin-status-row {
    display: none;
  }

  .checkout-page-form,
  .order-summary-card,
  .public-section,
  .certificate-card {
    padding: 16px;
  }

  .product-grid, .metrics, .readiness, .public-offers {
    grid-template-columns: 1fr;
  }

  .admin-alert,
  .admin-topbar,
  .admin-page-head,
  .admin-table-toolbar,
  .admin-table-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-search,
  .admin-select-filter,
  .admin-select-filter select {
    width: 100%;
  }

  .member-detail-head,
  .member-structure-list p {
    align-items: flex-start;
    flex-direction: column;
  }

  .academy-admin-main .metrics,
  .academy-admin-main .readiness {
    grid-template-columns: 1fr;
  }

  .academy-admin-shell {
    display: block;
    width: 100%;
    max-width: 100vw;
    min-height: auto;
    overflow-x: hidden;
  }

  .academy-admin-sidebar {
    position: static;
    top: auto;
    z-index: 20;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    padding: 10px 12px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    overflow: hidden;
  }

  .academy-admin-sidebar .admin-account {
    display: none;
  }

  .admin-menu {
    display: flex;
    gap: 8px;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    margin: 0 -12px;
    padding: 0 12px 2px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .admin-menu::-webkit-scrollbar {
    display: none;
  }

  .admin-menu button {
    flex: 0 0 auto;
    width: auto;
    min-height: 44px;
    padding: 9px 12px;
    white-space: nowrap;
  }

  .admin-menu button::before {
    margin-right: 8px;
  }

  .academy-admin-main {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    padding: 18px 10px 36px;
    overflow-x: hidden;
  }

  .admin-alert {
    width: 100%;
    margin: 0 0 14px;
    box-sizing: border-box;
  }

  body.is-admin-view:not([data-admin-section="dashboard"]) .admin-workspace {
    gap: 10px;
  }

  body.is-admin-view:not([data-admin-section="dashboard"]) .admin-page-head {
    align-items: center;
    flex-direction: row;
    margin-bottom: 12px;
  }

  body.is-admin-view:not([data-admin-section="dashboard"]) .admin-page-head button {
    flex: 0 0 auto;
    min-height: 42px;
    padding-inline: 14px;
  }

  .admin-data-card,
  .admin-table-wrap {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .admin-tabs {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .admin-tabs::-webkit-scrollbar {
    display: none;
  }

  body.is-admin-view[data-admin-section="products"] [data-admin-panel="products"] .admin-filter-drawer {
    background: rgba(255, 255, 255, .98);
  }

  body.is-admin-view[data-admin-section="products"] [data-admin-panel="products"] .admin-filter-drawer summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 0 16px;
    color: var(--admin-ink);
    cursor: pointer;
    font-weight: 850;
    list-style: none;
  }

  body.is-admin-view[data-admin-section="products"] [data-admin-panel="products"] .admin-filter-drawer summary::-webkit-details-marker {
    display: none;
  }

  body.is-admin-view[data-admin-section="products"] [data-admin-panel="products"] .admin-filter-drawer summary::after {
    content: "Filtrar";
    padding: 7px 10px;
    border: 1px solid #d8deea;
    border-radius: 8px;
    color: #4f46e5;
    font-size: 12px;
    font-weight: 850;
  }

  body.is-admin-view[data-admin-section="products"] [data-admin-panel="products"] .admin-filter-drawer[open] summary::after {
    content: "Ocultar";
  }

  body.is-admin-view[data-admin-section="products"] [data-admin-panel="products"] .admin-filter-drawer summary small {
    display: none;
  }

  body.is-admin-view[data-admin-section="products"] [data-admin-panel="products"] .admin-filter-drawer:not([open]) .admin-table-toolbar {
    display: none;
  }

  .admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-table {
    width: 100%;
    min-width: 720px;
  }

  body.is-admin-view[data-admin-section="products"] [data-admin-panel="products"] .admin-tabs button:disabled {
    display: none;
  }

  body.is-admin-view[data-admin-section="products"] [data-admin-panel="products"] .admin-table-wrap {
    overflow-x: visible;
  }

  body.is-admin-view[data-admin-section="products"] [data-admin-panel="products"] .admin-table {
    display: block;
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }

  body.is-admin-view[data-admin-section="products"] [data-admin-panel="products"] .admin-table thead {
    display: none;
  }

  body.is-admin-view[data-admin-section="products"] [data-admin-panel="products"] .admin-table tbody {
    display: grid;
    gap: 10px;
    padding: 10px;
  }

  body.is-admin-view[data-admin-section="products"] [data-admin-panel="products"] .admin-table tr {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 10px;
    padding: 14px;
    border: 1px solid #e1e6ef;
    border-radius: 10px;
    background: #fff;
  }

  body.is-admin-view[data-admin-section="products"] [data-admin-panel="products"] .admin-table tr:hover td {
    background: transparent;
  }

  body.is-admin-view[data-admin-section="products"] [data-admin-panel="products"] .admin-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    border-bottom: 0;
    white-space: normal;
  }

  body.is-admin-view[data-admin-section="products"] [data-admin-panel="products"] .admin-table td::before {
    content: attr(data-label);
    color: #667085;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  body.is-admin-view[data-admin-section="products"] [data-admin-panel="products"] .admin-table td:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    display: block;
    min-width: 0;
    padding: 0 0 8px;
  }

  body.is-admin-view[data-admin-section="products"] [data-admin-panel="products"] .admin-table td:nth-child(2),
  body.is-admin-view[data-admin-section="products"] [data-admin-panel="products"] .admin-table td:nth-child(3),
  body.is-admin-view[data-admin-section="products"] [data-admin-panel="products"] .admin-table td:nth-child(4),
  body.is-admin-view[data-admin-section="products"] [data-admin-panel="products"] .admin-table td:nth-child(5),
  body.is-admin-view[data-admin-section="products"] [data-admin-panel="products"] .admin-table td:nth-child(6) {
    grid-column: 1 / -1;
    color: var(--admin-ink);
    font-size: 13px;
  }

  body.is-admin-view[data-admin-section="products"] [data-admin-panel="products"] .admin-table td:nth-child(4) {
    display: grid;
    grid-template-columns: minmax(82px, .7fr) minmax(0, 1fr) auto;
  }

  body.is-admin-view[data-admin-section="products"] [data-admin-panel="products"] .admin-table td:nth-child(4) strong {
    justify-self: end;
  }

  body.is-admin-view[data-admin-section="products"] [data-admin-panel="products"] .admin-table td:nth-child(4) small {
    justify-self: end;
  }

  body.is-admin-view[data-admin-section="products"] [data-admin-panel="products"] .admin-table td:nth-child(7) {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-self: end;
    padding: 0;
  }

  .academy-admin-main .readiness {
    position: static;
    width: auto;
    margin-top: 8px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .academy-home-actions,
  .academy-home-actions button,
  .academy-home-cta button {
    width: 100%;
  }

  .academy-rail-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
.producer-dashboard { padding: 1.5rem; }
.producer-cards { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1rem 0; }
.producer-card { background: var(--bg-card); padding: 1rem; border-radius: 8px; flex: 1; min-width: 140px; text-align: center; }
.producer-card strong { display: block; font-size: 1.5rem; }
.producer-cta { margin: 1.5rem 0; }
.producer-product-list { display: flex; flex-direction: column; gap: 0.75rem; }
.producer-product-card { background: var(--bg-card); padding: 0.75rem 1rem; border-radius: 8px; display: flex; align-items: center; gap: 0.75rem; }
.wizard-steps { display:flex; gap:0.5rem; margin:1rem 0; font-size:0.85rem; color:var(--text-muted,#888); }
.wizard-steps .active { color:var(--primary,#06f); font-weight:bold; }
.wizard-card { border:2px solid var(--border,#ddd); padding:1rem; border-radius:8px; cursor:pointer; margin:0.5rem 0; }
.wizard-card.selected { border-color:var(--primary,#06f); background:var(--bg-highlight,#f0f6ff); }
.wizard-actions { display:flex; gap:0.75rem; margin-top:1.5rem; }
.wizard-review { background:var(--bg-card,#f9f9f9); padding:1rem; border-radius:8px; }
.checklist { background:var(--bg-card,#f9f9f9); padding:1rem; border-radius:8px; margin:1rem 0; }
.checklist div { padding:0.25rem 0; }
.cockpit-cards { display:flex; gap:0.75rem; flex-wrap:wrap; margin-top:1rem; }
.cockpit-card { background:var(--bg-card,#f9f9f9); padding:1rem; border-radius:8px; cursor:pointer; flex:1; min-width:120px; text-align:center; }
