* {
  box-sizing: border-box;
}

:root {
  --page-max: none;
  --page-gutter: clamp(20px, 3.2vw, 64px);
  --section-gap: clamp(48px, 5vw, 86px);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  background: #f6f8fb;
  color: #111827;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(14px);
}

.header-inner {
  width: 100%;
  padding-inline: var(--page-gutter);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #0f766e;
  color: #fff;
  font-weight: 800;
}

.brand strong,
.site-footer strong {
  display: block;
  font-size: 18px;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: #667085;
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: flex-start;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: #344054;
  font-size: 15px;
}

.site-nav a.active,
.site-nav a:hover {
  background: #e8f3f1;
  color: #0f766e;
}

.header-actions,
.hero-actions,
.button-row,
.redeem-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.header-actions {
  margin-left: auto;
  position: relative;
}

.user-entry {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  background: transparent !important;
}

.user-entry:hover,
.user-entry:active,
.user-entry:focus,
.user-entry:focus-visible,
.user-menu-wrap.active .user-entry {
  border-color: transparent !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

.user-avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  color: #0f766e;
  font-weight: 900;
}

.user-avatar {
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
}

.user-avatar img,
.user-dropdown-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
}

.user-menu-wrap {
  position: relative;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  width: 240px;
  display: none;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.user-dropdown.active {
  display: block;
}

.user-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 28px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background: #fff;
  border-left: 1px solid #e5e7eb;
  border-top: 1px solid #e5e7eb;
}

.user-dropdown-head {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #eaecf0;
}

.user-dropdown-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: transparent !important;
  color: #fff;
  font-weight: 900;
  min-height: 42px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  border: 0;
}

.user-dropdown-avatar:hover {
  background: transparent !important;
  filter: none;
}

.user-dropdown-avatar:active,
.user-dropdown-avatar:focus,
.user-dropdown-avatar:focus-visible {
  border-color: transparent !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

.user-dropdown-head strong {
  display: block;
  color: #111827;
  cursor: pointer;
}

.user-dropdown-head p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 12px;
}

.user-dropdown > button {
  width: 100%;
  justify-content: flex-start;
  min-height: 40px;
  padding: 9px 10px;
  border-color: transparent !important;
  background: transparent !important;
  color: #344054 !important;
  box-shadow: none !important;
  font-weight: 700;
}

.user-dropdown > button:hover {
  border-color: transparent !important;
  background: #f2f4f7 !important;
  color: #175cd3 !important;
  filter: none;
}

button,
.button {
  border: 0;
  border-radius: 8px;
  background: #0f766e;
  color: #fff;
  padding: 11px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}

button:hover,
.button:hover {
  filter: brightness(0.96);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

button.secondary,
.button.secondary {
  background: #1f2937;
}

button.ghost {
  color: #344054;
  background: #f2f4f7;
}

main {
  min-height: 70vh;
}

.poster-carousel {
  width: 100%;
  margin: 0;
  position: relative;
}

.poster-track {
  min-height: clamp(420px, 32vw, 560px);
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: #101828;
  box-shadow: none;
}

.poster-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 980px);
  justify-content: center;
  gap: 0;
  align-items: center;
  padding: clamp(56px, 5vw, 92px) var(--page-gutter);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.72) 42%, rgba(15, 23, 42, 0.22) 100%),
    url("../assets/hero-public-growth.png") center / cover no-repeat,
    #101828;
}

.poster-slide > div:first-child {
  position: relative;
  z-index: 2;
  width: min(980px, 78vw);
  margin: 0 auto;
  text-align: center;
}

.poster-slide .hero-actions {
  position: relative;
  z-index: 2;
  justify-content: center;
  padding-bottom: 36px;
}

.poster-slide .hero-actions button,
.poster-slide .hero-actions .button {
  min-width: 136px;
  white-space: nowrap;
}

.poster-slide:nth-child(2) {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(49, 46, 129, 0.72) 44%, rgba(124, 58, 237, 0.18) 100%),
    url("../assets/hero-live-conversion.png") center / cover no-repeat,
    #101828;
}

.poster-slide:nth-child(3) {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(6, 78, 59, 0.72) 44%, rgba(15, 118, 110, 0.18) 100%),
    url("../assets/hero-community-retention.png") center / cover no-repeat,
    #101828;
}

.poster-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.poster-slide .eyebrow {
  display: none;
}

.poster-slide h1 {
  margin: 0 auto 20px;
  max-width: 920px;
  font-size: clamp(42px, 3.4vw, 64px);
  line-height: 1.12;
}

.poster-slide p {
  max-width: 680px;
  margin: 0 auto 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.poster-visual {
  display: none;
  position: relative;
  min-height: clamp(280px, 22vw, 390px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.poster-slide .poster-visual {
  display: none;
}

.poster-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.poster-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.64));
}

.poster-visual span {
  position: relative;
  z-index: 1;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

.poster-visual strong {
  position: relative;
  z-index: 1;
  font-size: clamp(30px, 2.2vw, 44px);
  line-height: 1.25;
}

.poster-visual small {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.poster-controls {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.poster-dot {
  width: 44px;
  min-height: 32px;
  height: 32px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

.poster-dot::before {
  content: "";
  width: 34px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.poster-dot.active::before {
  background: #fff;
}

.hero {
  width: 100%;
  min-height: 360px;
  margin: 8px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(420px, 0.82fr);
  gap: clamp(44px, 5vw, 86px);
  align-items: center;
  padding: clamp(52px, 5vw, 82px) var(--page-gutter) clamp(42px, 4vw, 72px);
}

.hero-content h2 {
  margin: 12px 0 18px;
  font-size: clamp(40px, 2.8vw, 56px);
  line-height: 1.08;
  max-width: 760px;
}

.hero-desc {
  margin: 0 0 28px;
  max-width: 660px;
  color: #475467;
  font-size: 18px;
  line-height: 1.8;
}

.eyebrow {
  margin: 0;
  color: #0f766e;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
  border: 1px solid #d0d5dd;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(37, 99, 235, 0.08)),
    #fff;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.hero-panel div {
  min-height: 138px;
  padding: 18px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
}

.hero-panel strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

.hero-panel span {
  color: #667085;
  line-height: 1.7;
}

.search-band {
  display: none;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.search-inner {
  width: 100%;
  margin: 0 auto;
  padding: 18px var(--page-gutter);
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 170px auto auto auto;
  gap: 10px;
}

input,
select {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 11px 12px;
  min-height: 42px;
  font: inherit;
  background: #fff;
}

input:focus,
select:focus,
button:focus,
.button:focus {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  outline-offset: 2px;
}

.section {
  width: 100%;
  margin: 0 auto;
  padding: var(--section-gap) var(--page-gutter);
}

#home > .section:nth-of-type(odd) {
  background: #fff;
}

#home > .section:nth-of-type(even) {
  background: #f6f8fb;
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 8px 0 0;
  font-size: 34px;
  line-height: 1.25;
}

.feature-grid,
.process-grid,
.category-grid,
.home-course-grid,
.journey-grid,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.4vw, 24px);
}

.feature-card,
.detail-panel,
.process-grid article,
.journey-grid article,
.list-panel,
.category-grid article,
.home-course-grid article,
.schedule-card,
.mentor-card,
.ops-band,
.trust-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
}

.feature-card h3,
.detail-panel h3,
.process-grid h3,
.home-course-grid h3,
.schedule-card h3,
.mentor-card h3 {
  margin: 0 0 14px;
  font-size: 20px;
}

.compact-section {
  padding-top: 24px;
}

.split-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.text-link {
  color: #0f766e;
  font-weight: 800;
}

.category-grid article {
  min-height: 150px;
}

.category-grid strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
}

.journey-grid article strong,
.trust-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
}

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

.trust-card span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8f3f1;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
}

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

.home-course-grid article {
  min-height: 210px;
}

.home-course-grid strong {
  color: #0f766e;
  font-size: 20px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 1.5vw, 26px);
  margin-bottom: 22px;
}

.course-card {
  display: grid;
  grid-template-rows: 156px 1fr;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.course-direct-link {
  color: inherit;
  text-decoration: none;
}

.standalone-course-page .site-header,
.standalone-course-page .site-footer {
  display: none;
}

.standalone-course-page main {
  min-height: 100vh;
  padding: 0;
  background: #f8fafc;
}

.course-detail-page {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.course-detail-panel {
  min-height: 420px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #f8fafc;
  box-shadow: none;
}

.course-detail-close {
  position: fixed;
  z-index: 20;
  top: 22px;
  right: 24px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.course-detail-close:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.course-detail-loading,
.course-detail-error {
  display: grid;
  min-height: 320px;
  place-items: center;
  color: #667085;
  text-align: center;
}

.course-purchase-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px;
  min-height: 500px;
  padding: 76px max(6vw, calc((100vw - 1320px) / 2)) 64px;
  color: #fff;
  background: #071b3a;
}

.course-purchase-main {
  display: grid;
  grid-template-columns: minmax(320px, 46%) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.course-detail-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: #0f766e;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.course-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-category-tag {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.24);
  font-size: 13px;
  font-weight: 700;
}

.course-detail-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(32px, 3.5vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.course-value-copy {
  max-width: 600px;
  margin: 0;
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.8;
}

.course-teacher-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.course-teacher-line img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.course-teacher-line div {
  display: grid;
  gap: 4px;
}

.course-teacher-line span {
  color: #94a3b8;
  font-size: 13px;
}

.course-detail-meta {
  display: flex;
  margin-top: 26px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.course-detail-meta div {
  display: grid;
  gap: 3px;
  min-width: 120px;
  padding-right: 24px;
  margin-right: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.course-detail-meta div:last-child {
  border-right: 0;
}

.course-detail-meta strong {
  font-size: 18px;
}

.course-detail-meta span {
  color: #94a3b8;
  font-size: 12px;
}

.course-purchase-card {
  align-self: center;
  padding: 26px;
  border-radius: 14px;
  color: #0f172a;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.course-purchase-kicker {
  color: #64748b;
  font-size: 13px;
}

.course-detail-price strong {
  color: #2563eb;
  font-size: 36px;
}

.course-detail-price del {
  color: #98a2b3;
}

.course-detail-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 8px 0 4px;
}

.course-purchase-card > p {
  margin: 0 0 20px;
  color: #64748b;
  font-size: 13px;
}

.course-benefit-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid #e2e8f0;
  font-size: 13px;
}

.course-benefit-row strong {
  color: #2563eb;
  font-weight: 600;
}

.course-purchase-card > button,
.course-order-summary > button {
  width: 100%;
  min-height: 50px;
  margin-top: 18px;
  background: #2563eb;
}

.course-purchase-assurance {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
  color: #64748b;
  font-size: 11px;
}

.course-detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 62px 0 100px;
}

.course-detail-content {
  min-width: 0;
}

.course-content-section {
  padding: 0 0 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid #e2e8f0;
}

.course-section-title {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.course-section-title > span {
  color: #0f766e;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.course-section-title h2 {
  margin: -5px 0 6px;
  color: #0f172a;
  font-size: 26px;
}

.course-section-title p {
  margin: 0;
  color: #64748b;
}

.course-learning-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 44px;
}

.course-learning-grid article {
  padding: 20px 0;
  border-top: 1px solid #e2e8f0;
}

.course-learning-grid strong {
  color: #0f172a;
  font-size: 17px;
}

.course-learning-grid p,
.course-curriculum-empty p {
  margin: 8px 0 0;
  color: #64748b;
  line-height: 1.7;
}

.course-audience-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 32px;
}

.course-audience-list span {
  padding: 16px 0;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  font-weight: 650;
}

.course-curriculum-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid #e2e8f0;
}

.course-curriculum-row > span,
.course-curriculum-row small {
  color: #64748b;
}

.course-order-summary {
  position: sticky;
  top: 28px;
  align-self: start;
  padding: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
}

.course-order-summary h2 {
  margin: 0 0 20px;
  font-size: 20px;
}

.course-order-product {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid #e2e8f0;
}

.course-order-product img {
  width: 70px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.course-order-product div {
  display: grid;
  gap: 4px;
}

.course-order-product span,
.course-order-summary > p {
  color: #64748b;
  font-size: 12px;
}

.course-order-summary dl {
  margin: 18px 0;
}

.course-order-summary dl > div,
.course-order-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
}

.course-order-summary dd {
  margin: 0;
  color: #64748b;
}

.course-order-total {
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
}

.course-order-total strong {
  color: #2563eb;
  font-size: 22px;
}

.course-order-summary > p {
  margin: 12px 0 0;
  text-align: center;
}

.course-mobile-purchase-bar {
  display: none;
}

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  place-items: center;
  padding: 24px;
}

.checkout-modal.active {
  display: grid;
}

.checkout-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 47, 0.68);
  backdrop-filter: blur(8px);
}

.checkout-dialog {
  position: relative;
  width: min(1040px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 24px;
  background: #f7f9fc;
  box-shadow: 0 30px 90px rgba(8, 24, 48, 0.3);
}

.checkout-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  z-index: 2;
}

.checkout-head {
  padding: 26px 32px;
  color: #fff;
  background: linear-gradient(120deg, #082f49, #0f766e);
}

.checkout-head span {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #99f6e4;
}

.checkout-head h2 {
  margin: 8px 0 6px;
}

.checkout-head p {
  margin: 0;
  color: #d5f5ef;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  padding: 24px;
}

.checkout-main > section,
.checkout-summary {
  padding: 20px;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #fff;
}

.checkout-main {
  display: grid;
  gap: 14px;
}

.checkout-course h3 {
  margin: 10px 0 6px;
  font-size: 22px;
}

.checkout-course p,
.checkout-summary small {
  color: #667085;
}

.checkout-section-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}

.checkout-section-title h3 {
  margin: 0;
  font-size: 16px;
}

.checkout-section-title span {
  color: #667085;
  font-size: 12px;
}

.checkout-benefit select {
  width: 100%;
  min-height: 44px;
}

.points-switch {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.payment-methods label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  cursor: pointer;
}

.payment-methods label:has(input:checked) {
  border-color: #0f766e;
  background: #effcf8;
}

.payment-methods label:has(input:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
}

.payment-methods span {
  display: grid;
  gap: 3px;
}

.payment-methods small {
  color: #667085;
}

.checkout-summary {
  align-self: start;
  position: sticky;
  top: 0;
}

.checkout-summary h3 {
  margin-top: 0;
}

.checkout-summary dl > div {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
}

.checkout-summary dd {
  margin: 0;
}

.checkout-total {
  margin-top: 10px;
  padding-top: 18px !important;
  border-top: 1px solid #e4e7ec;
}

.checkout-total dd {
  color: #d92d20;
  font-size: 26px;
  font-weight: 800;
}

#checkoutSubmit {
  width: 100%;
  min-height: 48px;
  margin: 16px 0 10px;
}

#checkoutStatus {
  min-height: 22px;
  color: #0f766e;
  font-size: 13px;
}

@media (max-width: 760px) {
  .standalone-course-page main {
    padding: 0 0 76px;
  }

  .course-detail-close {
    top: 14px;
    right: 14px;
  }

  .course-detail-panel {
    padding: 0;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .course-purchase-hero,
  .course-purchase-main,
  .course-detail-body {
    grid-template-columns: 1fr;
  }

  .course-purchase-hero {
    gap: 26px;
    padding: 72px 18px 32px;
  }

  .course-purchase-main {
    gap: 24px;
  }

  .course-detail-copy h1 {
    font-size: 32px;
  }

  .course-detail-meta {
    overflow-x: auto;
  }

  .course-detail-meta div {
    min-width: 92px;
    padding-right: 16px;
    margin-right: 16px;
  }

  .course-purchase-card {
    padding: 22px;
  }

  .course-detail-body {
    width: calc(100% - 36px);
    padding: 42px 0 30px;
  }

  .course-learning-grid,
  .course-audience-list {
    grid-template-columns: 1fr;
  }

  .course-order-summary {
    display: none;
  }

  .course-mobile-purchase-bar {
    position: fixed;
    z-index: 40;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.1);
  }

  .course-mobile-purchase-bar div {
    display: grid;
    gap: 2px;
  }

  .course-mobile-purchase-bar span {
    color: #64748b;
    font-size: 11px;
  }

  .course-mobile-purchase-bar strong {
    color: #2563eb;
    font-size: 20px;
  }

  .course-mobile-purchase-bar button {
    min-width: 132px;
  }

  .checkout-modal {
    padding: 0;
    align-items: end;
  }

  .checkout-dialog {
    max-height: 94vh;
    border-radius: 22px 22px 0 0;
  }

  .checkout-layout,
  .checkout-head {
    padding: 20px;
  }

  .checkout-summary {
    position: static;
  }
}

.course-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 20px;
  background: linear-gradient(135deg, #0f766e, #2563eb);
  color: #fff;
  font-weight: 800;
  overflow: hidden;
}

.course-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.course-cover::before,
.course-cover::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.course-cover::before {
  width: 130px;
  height: 130px;
  top: -42px;
  right: -24px;
}

.course-cover::after {
  width: 82px;
  height: 82px;
  left: -18px;
  bottom: -20px;
}

.course-cover span,
.course-cover strong {
  position: relative;
  z-index: 1;
}

.course-cover span {
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 12px;
}

.course-cover strong {
  font-size: 26px;
  line-height: 1.2;
}

.course-cover.warm {
  background: linear-gradient(135deg, #c2410c, #7c3aed);
}

.course-cover.emerald {
  background: linear-gradient(135deg, #047857, #0f766e 48%, #2563eb);
}

.course-cover.blue {
  background: linear-gradient(135deg, #1d4ed8, #0f766e);
}

.course-cover.violet {
  background: linear-gradient(135deg, #6d28d9, #be185d);
}

.course-cover.slate {
  background: linear-gradient(135deg, #0f172a, #475569);
}

.course-cover.orange {
  background: linear-gradient(135deg, #c2410c, #f59e0b);
}

.course-cover.cyan {
  background: linear-gradient(135deg, #0e7490, #2563eb);
}

.course-card > div:last-child {
  padding: 18px;
}

.course-card h3 {
  margin: 10px 0 8px;
  font-size: 20px;
}

.course-card p,
.mini-item p,
.detail-panel p,
.process-grid p,
.site-footer p {
  color: #667085;
  line-height: 1.7;
}

.course-card strong,
.price {
  display: inline-block;
  margin-top: 8px;
  color: #0f766e;
  font-size: 20px;
}

.course-card .course-cover strong {
  display: block;
  margin-top: 0;
  color: #fff;
  font-size: 26px;
}

.tag {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e8f3f1;
  color: #0f766e;
  font-size: 12px;
  font-weight: 700;
}

.mini-item {
  padding: 12px 0;
  border-top: 1px solid #eaecf0;
}

.mini-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.mini-item strong,
.mini-item span {
  display: block;
  margin-bottom: 6px;
}

.clickable {
  cursor: pointer;
}

.clickable:hover strong {
  color: #0f766e;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.teacher-live-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(360px, 0.76fr);
  gap: clamp(18px, 1.5vw, 26px);
}

.schedule-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.schedule-card li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid #eaecf0;
}

.schedule-card li:first-child {
  border-top: 0;
}

.schedule-card li strong {
  color: #0f766e;
}

.schedule-card li span,
.mentor-card p {
  color: #667085;
  line-height: 1.7;
}

.mentor-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  align-items: center;
}

.teacher-showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.4vw, 24px);
  margin-top: 24px;
}

.teacher-showcase .mentor-card {
  display: block;
  min-height: 230px;
}

.mentor-avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.mentor-avatar.tone-1 {
  background: linear-gradient(135deg, #0f766e, #2563eb);
}

.mentor-avatar.tone-2 {
  background: linear-gradient(135deg, #7c3aed, #db2777);
}

.mentor-avatar.tone-3 {
  background: linear-gradient(135deg, #0f172a, #64748b);
}

.mentor-avatar.tone-4 {
  background: linear-gradient(135deg, #c2410c, #f59e0b);
}

.teacher-showcase .mentor-avatar {
  width: 100%;
  height: 126px;
  border-radius: 12px;
  overflow: hidden;
}

.teacher-showcase .mentor-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.avatar-shape {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #101828;
  color: #fff;
  font-size: 32px;
  font-weight: 900;
}

.ops-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: center;
  background: #101828;
  color: #fff;
}

.ops-band h2 {
  margin: 8px 0 0;
  font-size: 30px;
  line-height: 1.3;
}

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

.ops-grid span {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}

.process-grid article span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #111827;
  color: #fff;
  font-weight: 800;
}

.chapter-block {
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid #eaecf0;
}

.chapter-block ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: #475467;
  line-height: 1.8;
}

.redeem-box {
  margin-top: 16px;
}

.redeem-box input {
  max-width: 220px;
}

.muted {
  color: #667085;
}

.error-text {
  color: #b42318;
}

.view {
  display: none;
}

.view.active {
  display: grid;
}

.section.view.active {
  display: block;
}

/* Avoid rendering the homepage before the standalone course page initializes. */
html[data-standalone-course="true"] .view:not(.course-detail-page) {
  display: none !important;
}

html[data-standalone-course="true"] .course-detail-page {
  display: block !important;
}

.profile-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(16px, 1.4vw, 24px);
  align-items: start;
}

.profile-side-nav {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 6px;
  padding: 20px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: #172033;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

/* 会话失效时，不能让布局样式覆盖原生 hidden 属性。 */
.profile-side-nav[hidden],
.profile-tab-panel[hidden],
.profile-guest-card[hidden] {
  display: none !important;
}

.profile-side-nav button {
  justify-content: flex-start;
  min-height: 42px;
  padding: 10px 12px;
  background: transparent !important;
  color: #c8d1e1 !important;
  font-weight: 700;
  border-radius: 6px;
  box-shadow: none;
}

.profile-side-nav button.active,
.profile-side-nav button:hover {
  background: #2563eb !important;
  color: #fff !important;
  filter: none;
}

.profile-side-nav button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 2px;
}

.profile-content {
  min-width: 0;
}

.profile-guest-card {
  padding: 32px 24px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
}

.profile-tab-panel {
  display: none;
  min-height: 420px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
}

.profile-tab-panel.active {
  display: block;
}

.profile-panel-head {
  margin-bottom: 18px;
}

.profile-panel-head.compact {
  margin-bottom: 12px;
}

.profile-panel-head h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.profile-panel-head h4 {
  margin: 0 0 6px;
  font-size: 18px;
}

.profile-panel-head p {
  margin: 0;
  color: #667085;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.4vw, 24px);
  margin-bottom: 24px;
}

.profile-stats article {
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
}

.profile-stats span {
  display: block;
  margin-bottom: 8px;
  color: #0f766e;
  font-size: 34px;
  font-weight: 900;
}

.profile-stats strong {
  color: #475467;
}

.profile-asset-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wallet-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.wallet-summary-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid #dfe6ef;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.wallet-card-label {
  display: block;
  margin-bottom: 12px;
  color: #475467;
  font-size: 14px;
  font-weight: 700;
}

.wallet-summary-card > strong {
  display: flex;
  align-items: baseline;
  min-height: 45px;
  color: #102a4f;
  font-size: 34px;
  letter-spacing: -0.03em;
}

.wallet-summary-card > strong small {
  margin-right: 4px;
  font-size: 18px;
}

.wallet-summary-card > p {
  min-height: 40px;
  margin: 7px 0 16px;
  color: #667085;
  font-size: 13px;
  line-height: 1.55;
}

.wallet-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
}

.wallet-card-actions button {
  min-height: 36px;
  padding: 0 15px;
}

.wallet-card-actions .text-button {
  border-color: transparent;
  background: transparent;
  color: #175cd3;
}

.wallet-identity-badge {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.wallet-identity-badge.approved {
  color: #087a5b;
}

.wallet-safety-note {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 1px solid #b7ddd4;
  border-radius: 10px;
  background: #f1faf7;
  color: #3b625b;
  font-size: 13px;
  line-height: 1.55;
}

.wallet-safety-note strong {
  flex: 0 0 auto;
  color: #0f766e;
}

.wallet-ledger-panel {
  border: 1px solid #dfe6ef;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.wallet-ledger-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid #e7ecf3;
  background: #fbfcfe;
}

.wallet-ledger-tabs {
  display: flex;
  gap: 4px;
}

.wallet-ledger-tabs button {
  min-height: 38px;
  padding: 0 14px;
  border-color: transparent;
  background: transparent;
  color: #667085;
}

.wallet-ledger-tabs button.active {
  border-color: #bfd2f5;
  background: #eaf2ff;
  color: #155bd7;
}

.wallet-ledger-filters {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.wallet-ledger-filters label {
  display: grid;
  gap: 5px;
  color: #667085;
  font-size: 12px;
}

.wallet-ledger-filters input,
.wallet-ledger-filters select {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #d0d9e7;
  border-radius: 8px;
  background: #fff;
  color: #102a4f;
}

.wallet-ledger-filters button {
  min-height: 36px;
  padding: 0 12px;
}

.wallet-points-rule {
  margin: 16px 18px 0;
  padding: 12px 14px;
  border-left: 3px solid #e7a008;
  background: #fff9e9;
  color: #705c20;
  font-size: 13px;
}

.profile-asset-ledger {
  padding: 18px;
}

.profile-asset-table-wrap {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.profile-asset-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.profile-asset-table th,
.profile-asset-table td {
  padding: 13px 15px;
  border-bottom: 1px solid #eef1f5;
  text-align: left;
}

.profile-asset-table th {
  background: #f7f9fc;
  color: #667085;
  font-size: 13px;
}

.profile-asset-table tbody tr:last-child td {
  border-bottom: 0;
}

.asset-change {
  font-weight: 800;
}

.asset-change.credit {
  color: #087a5b;
}

.asset-change.debit {
  color: #b42318;
}

.wallet-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: 20px;
}

.wallet-modal.active {
  display: grid;
}

.wallet-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 27, 51, 0.58);
  backdrop-filter: blur(5px);
}

.wallet-dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 28px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(16, 42, 79, 0.24);
}

.wallet-dialog h2 {
  margin: 6px 0 8px;
  color: #102a4f;
  font-size: 28px;
}

.wallet-dialog > p {
  margin: 0 40px 20px 0;
  color: #667085;
  line-height: 1.6;
}

.wallet-dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 22px;
}

.wallet-dialog-eyebrow {
  color: #0f766e;
  font-size: 13px;
  font-weight: 800;
}

.wallet-amount-field {
  display: grid;
  gap: 8px;
  color: #344054;
  font-weight: 700;
}

.wallet-amount-field input {
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #b9c8dc;
  border-radius: 10px;
  font-size: 20px;
}

.wallet-quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0 18px;
}

.wallet-quick-amounts button {
  min-height: 40px;
  border-color: #cbd7e7;
  background: #f7f9fc;
  color: #344054;
}

.wallet-payment-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.wallet-payment-methods label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 12px;
  border: 1px solid #d4ddea;
  border-radius: 10px;
  cursor: pointer;
}

.wallet-payment-methods label:has(input:checked) {
  border-color: #2166e8;
  background: #f2f7ff;
}

.wallet-payment-methods label:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.45;
}

.wallet-payment-methods span {
  display: grid;
  gap: 3px;
}

.wallet-payment-methods small {
  color: #667085;
}

.wallet-dialog-submit {
  width: 100%;
  min-height: 48px;
}

.wallet-dialog-status {
  min-height: 22px;
  margin: 10px 0 0 !important;
  color: #b42318 !important;
  font-size: 13px;
}

.wallet-withdrawable-total {
  display: block;
  margin: -10px 0 20px;
  color: #102a4f;
  font-size: 38px;
}

.wallet-withdrawal-notice {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid #dfe6ef;
  border-radius: 10px;
  background: #f8fafc;
  color: #667085;
  font-size: 13px;
  line-height: 1.55;
}

.wallet-withdrawal-notice strong {
  color: #344054;
}

.wallet-payout-section {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #dfe6ef;
  border-radius: 12px;
  background: #fff;
}

.wallet-payout-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.wallet-payout-heading > div {
  display: grid;
  gap: 3px;
}

.wallet-payout-heading span,
.wallet-payout-account small,
.wallet-payout-empty span {
  color: #667085;
  font-size: 12px;
}

.wallet-payout-method-select {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.wallet-payout-method-select select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #b9c8dc;
  border-radius: 9px;
  background: #fff;
}

.wallet-payout-method-note {
  margin: 0 0 12px;
  color: #667085;
  font-size: 12px;
  line-height: 1.55;
}

.wallet-payout-account-list,
.wallet-payout-account-form {
  display: grid;
  gap: 8px;
}

.wallet-payout-auth-actions {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid #cbd7e7;
  border-radius: 10px;
  background: #f8fafc;
  color: #344054;
}

.wallet-payout-auth-actions > span {
  color: #667085;
  font-size: 12px;
}

.wallet-payout-auth-actions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wallet-payout-auth-status {
  margin: 0;
  color: #b54708;
  font-size: 12px;
}

.wallet-payout-bind-qr {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px dashed #b8c7dc;
  border-radius: 10px;
  background: #fff;
}

.wallet-payout-bind-qr img {
  width: 220px;
  height: 220px;
  object-fit: contain;
}

.wallet-payout-bind-qr span {
  color: #667085;
  font-size: 12px;
}

.wallet-payout-account {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #d4ddea;
  border-radius: 10px;
  cursor: pointer;
}

.wallet-payout-account.selected {
  border-color: #2166e8;
  background: #f2f7ff;
}

.wallet-payout-account span,
.wallet-payout-empty {
  display: grid;
  gap: 3px;
}

.wallet-payout-account em {
  color: #0f766e;
  font-size: 12px;
  font-style: normal;
}

.wallet-payout-empty {
  padding: 14px;
  border: 1px dashed #cbd7e7;
  border-radius: 10px;
  background: #f8fafc;
}

.wallet-payout-account-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eaecf0;
}

.wallet-payout-account-form label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.wallet-payout-account-form input,
.wallet-payout-account-form select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #b9c8dc;
  border-radius: 9px;
  background: #fff;
}

.wallet-payout-form-status,
.wallet-payout-error {
  margin: 0;
  color: #b42318;
  font-size: 12px;
}

.profile-action-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(16px, 1.4vw, 24px);
}

.profile-action-card {
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
}

.profile-mini {
  padding: 12px 0;
  border-top: 1px solid #eaecf0;
}

.image-mini {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.image-mini img {
  width: 104px;
  height: 68px;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  background: #eef2f6;
}

#live .detail-panel {
  min-height: 260px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(239, 246, 255, 0.92)),
    url("../assets/live-case-review.png") right center / 300px auto no-repeat;
}

.illustrated-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background-position: right bottom;
  background-repeat: no-repeat;
  background-size: 210px auto;
}

.teacher-step-apply {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,255,.94)),
    url("../assets/teacher-lin.png");
}

.teacher-step-course {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,255,.94)),
    url("../assets/course-product-design.png");
}

.teacher-step-revenue {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(240,253,250,.94)),
    url("../assets/course-distribution-growth.png");
}

.growth-eligibility {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(240,253,250,.94)),
    url("../assets/course-live-sales.png");
}

.growth-attribution {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(239,246,255,.94)),
    url("../assets/hero-public-growth.png");
}

.growth-tier {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,255,.94)),
    url("../assets/course-distribution-growth.png");
}

.growth-campaign {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,251,235,.94)),
    url("../assets/live-public-class.png");
}

.community-visual-panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,.97), rgba(240,253,250,.95)),
    url("../assets/community-growth.png") right top / 280px auto no-repeat;
}

.learning-visual-panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,.97), rgba(239,246,255,.95)),
    url("../assets/course-community-retention.png") right top / 280px auto no-repeat;
}

.profile-mini.featured {
  padding: 16px;
  border: 1px solid #d0e7e3;
  border-radius: 14px;
  background: #f0fdfa;
}

.profile-mini:first-child {
  border-top: 0;
  padding-top: 0;
}

.profile-mini strong {
  display: block;
  margin-bottom: 6px;
}

.profile-mini p {
  margin: 0 0 10px;
  color: #667085;
  line-height: 1.6;
}

.profile-mini button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

#profileOrders {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.profile-order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, auto);
  gap: 24px;
  align-items: center;
  width: 100%;
  min-height: 96px;
  padding: 18px 20px;
  border: 1px solid #dbe5f0;
  border-radius: 14px;
  color: #0b2145 !important;
  background: #fff !important;
  text-align: left;
  box-shadow: 0 8px 24px rgba(15, 35, 64, 0.04);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.profile-order-card:hover {
  border-color: #93c5fd;
  background: #f8fbff !important;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}

.profile-order-card:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

.profile-order-main,
.profile-order-summary,
.profile-order-summary > span {
  min-width: 0;
}

.profile-order-main {
  display: grid;
  gap: 8px;
}

.profile-order-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-order-title-row strong {
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-order-meta {
  color: #64748b;
  font-size: 13px;
}

.profile-order-summary {
  display: grid;
  grid-template-columns: 92px minmax(130px, 1fr) 18px;
  gap: 20px;
  align-items: center;
}

.profile-order-summary > span:not(.profile-order-arrow) {
  display: grid;
  gap: 5px;
}

.profile-order-summary small {
  color: #94a3b8;
  font-size: 11px;
}

.profile-order-summary strong {
  overflow: hidden;
  color: #334155;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-order-arrow {
  width: 9px;
  height: 9px;
  border-top: 2px solid #94a3b8;
  border-right: 2px solid #94a3b8;
  transform: rotate(45deg);
}

.order-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.order-status.success { color: #087a5b; background: #e8f8f3; }
.order-status.pending { color: #1d4ed8; background: #eff6ff; }
.order-status.warning { color: #b45309; background: #fff7ed; }
.order-status.neutral { color: #475569; background: #f1f5f9; }

.order-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: none;
  place-items: center;
  padding: 24px;
}

.order-detail-modal.active { display: grid; }

.order-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 25, 49, .68);
  backdrop-filter: blur(6px);
}

.order-detail-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid #dbe5f0;
  border-radius: 20px;
  background: #f8fafc;
  box-shadow: 0 30px 90px rgba(8, 25, 49, .3);
}

.order-detail-close {
  position: absolute;
  top: 20px;
  right: 22px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid #dbe5f0;
  border-radius: 50%;
  color: #334155;
  background: #fff;
  font-size: 22px;
}

.order-detail-head {
  padding: 26px 32px 22px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.order-detail-head > span {
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
}

.order-detail-head h2 {
  margin: 7px 0 5px;
  color: #0b2145;
  font-size: 27px;
}

.order-detail-head p {
  margin: 0;
  color: #64748b;
}

.order-detail-content {
  display: grid;
  gap: 16px;
  padding: 24px 32px 30px;
}

.order-detail-product {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid #dbe5f0;
  border-radius: 14px;
  background: #fff;
}

.order-detail-product img {
  width: 130px;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  object-fit: cover;
  background: #e2e8f0;
}

.order-detail-product > div { min-width: 0; }
.order-detail-product > div > span { color: #2563eb; font-size: 12px; font-weight: 700; }
.order-detail-product h3 { margin: 7px 0 5px; overflow: hidden; color: #0b2145; font-size: 20px; text-overflow: ellipsis; white-space: nowrap; }
.order-detail-product p { margin: 0; color: #64748b; font-size: 13px; }

.order-entitlement-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid #dbe5f0;
  border-radius: 14px;
  background: #fff;
}

.order-entitlement-card > span {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.order-entitlement-card.success { border-color: #a7e8d7; background: #f0fdfa; }
.order-entitlement-card.success > span { color: #087a5b; background: #d8f5ec; }
.order-entitlement-card.pending { border-color: #bfdbfe; background: #f8fbff; }
.order-entitlement-card.pending > span { color: #1d4ed8; background: #dbeafe; }
.order-entitlement-card.warning { border-color: #fed7aa; background: #fffaf5; }
.order-entitlement-card.warning > span { color: #b45309; background: #ffedd5; }
.order-entitlement-card.neutral > span { color: #475569; background: #e2e8f0; }
.order-entitlement-card h3 { margin: 0 0 5px; color: #0b2145; font-size: 16px; }
.order-entitlement-card p { margin: 0; color: #64748b; font-size: 13px; }

.order-included-courses,
.order-detail-section {
  padding: 20px;
  border: 1px solid #dbe5f0;
  border-radius: 14px;
  background: #fff;
}

.order-included-courses h3,
.order-detail-section h3 { margin: 0 0 14px; color: #0b2145; font-size: 16px; }
.order-included-courses > div { display: flex; flex-wrap: wrap; gap: 8px; }
.order-included-courses span { padding: 7px 10px; border-radius: 8px; color: #334155; background: #f1f5f9; font-size: 13px; }

.order-detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 0;
}

.order-detail-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid #eef2f6;
}

.order-detail-facts dt { color: #64748b; }
.order-detail-facts dd { margin: 0; color: #0b2145; text-align: right; }
.order-detail-facts .order-paid-amount { color: #ea580c; font-size: 17px; font-weight: 800; }

.order-detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.order-detail-actions button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 700;
}

.order-detail-actions .secondary { border: 1px solid #cbd5e1; color: #334155; background: #fff; }
.order-detail-actions .primary { border: 1px solid #1769f5; color: #fff; background: #1769f5; }

.order-detail-loading,
.order-detail-error {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 30px;
  color: #64748b;
  text-align: center;
}

.order-detail-error { gap: 10px; }
.order-detail-error strong { color: #0b2145; font-size: 20px; }
.order-detail-error p { margin: 0; }
.order-detail-error button { min-height: 40px; padding: 0 18px; }

.profile-mini.unread strong::after {
  content: "未读";
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #fee4e2;
  color: #b42318;
  font-size: 12px;
}

.profile-progress {
  height: 8px;
  margin: 4px 0 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.profile-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #14b8a6, #0f766e);
}

.profile-todo-list {
  display: grid;
  gap: 10px;
}

.profile-todo-list button {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff !important;
  color: #101828 !important;
  text-align: left;
  box-shadow: none;
}

.profile-todo-list button:hover {
  border-color: #99d6ce;
  background: #f0fdfa !important;
  filter: none;
}

.profile-todo-list span {
  color: #667085;
  font-weight: 700;
}

.profile-todo-list strong {
  min-width: 0;
  overflow: hidden;
  color: #101828;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invite-share-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 12px 0 16px;
}

.invite-metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.invite-metrics-grid article {
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
}

.invite-metrics-grid span {
  display: block;
  margin-bottom: 8px;
  color: #2563eb;
  font-size: 26px;
  font-weight: 900;
}

.invite-metrics-grid strong {
  color: #475467;
}

.invite-share-card {
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
}

.invite-code {
  color: #2563eb !important;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.invite-qr {
  width: 132px;
  height: 132px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.invite-poster-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #d0d5dd;
  background: linear-gradient(135deg, #0f172a, #2563eb);
}

.invite-poster-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.invite-poster-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.invite-poster-overlay {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: min(280px, calc(100% - 48px));
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.invite-poster-overlay span,
.invite-poster-overlay p {
  margin: 0;
  color: #475467;
}

.invite-poster-overlay strong {
  color: #101828;
  font-size: 28px;
  letter-spacing: 0.08em;
}

.invite-poster-overlay img {
  width: 128px;
  height: 128px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.invite-poster-overlay button {
  width: max-content;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 8px;
}

.invite-performance-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
}

.invite-withdraw-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0;
  padding: 18px;
  border: 1px solid #dbe7ff;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
}

.invite-withdraw-card strong {
  display: block;
  margin-bottom: 6px;
  color: #101828;
  font-size: 18px;
}

.invite-withdraw-card p {
  margin: 0;
  color: #667085;
  line-height: 1.6;
}

.invite-withdraw-card button {
  flex: 0 0 auto;
}

.invite-withdraw-card button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  filter: grayscale(0.2);
}

.invite-order-list {
  display: grid;
  gap: 10px;
}

.invite-withdrawal-list {
  display: grid;
  gap: 10px;
}

.invite-order-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 0.8fr 0.8fr 0.8fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  background: #f8fafc;
}

.invite-withdrawal-row {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 0.7fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  background: #f8fafc;
}

.invite-order-row span,
.invite-withdrawal-row span {
  display: block;
  margin-bottom: 4px;
  color: #667085;
  font-size: 12px;
}

.invite-order-row strong,
.invite-withdrawal-row strong {
  color: #101828;
}

.invite-withdrawal-row em {
  display: inline-flex;
  width: max-content;
  min-height: 28px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-style: normal;
  font-weight: 800;
}

.break-text {
  word-break: break-all;
}

.site-footer {
  margin-top: 42px;
  background: #101828;
  color: #fff;
}

.footer-inner {
  width: 100%;
  margin: 0 auto;
  padding: 48px var(--page-gutter);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-inner > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-footer h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.site-footer a {
  display: flex;
  align-items: center;
  min-height: 32px;
  margin: 2px 0;
  padding: 4px 0;
  color: #d0d5dd;
}

.site-footer p {
  margin: 8px 0;
  color: #d0d5dd;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.auth-modal.active {
  display: flex;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(8px);
}

.auth-dialog {
  position: relative;
  width: min(1080px, 100%);
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(390px, 0.98fr) minmax(430px, 1.02fr);
  overflow: hidden;
  border: 1px solid rgba(216, 222, 232, 0.92);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
}

.auth-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 12px;
  border-color: transparent !important;
  background: transparent !important;
  color: #2563eb !important;
  font-size: 24px;
  box-shadow: none !important;
}

.auth-close:hover {
  border-color: transparent !important;
  background: transparent !important;
  color: #1d4ed8 !important;
  transform: none;
}

.auth-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 58px 52px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(37, 99, 235, 0.28), transparent 30%),
    linear-gradient(145deg, #071c38 0%, #082746 58%, #0b1f3b 100%);
}

.auth-copy .eyebrow {
  width: fit-content;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #dbeafe;
  font-weight: 800;
}

.auth-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 3vw, 46px);
  line-height: 1.14;
  letter-spacing: 0.02em;
}

.auth-copy p {
  margin: 0;
  max-width: 460px;
  color: rgba(219, 234, 254, 0.88);
  font-size: 16px;
  line-height: 1.8;
}

.auth-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.auth-benefits span {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 700;
}

.auth-panel {
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 6px;
  margin-bottom: 28px;
  border-radius: 14px;
  background: #f2f4f7;
}

.auth-tabs.reset-hidden {
  display: none;
}

.auth-tabs button {
  min-height: 46px;
  background: transparent;
  color: #475467;
  border-radius: 10px;
  font-size: 17px;
  box-shadow: none;
}

.auth-tabs button.active {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.2);
}

.auth-form {
  display: none;
  gap: 18px;
}

.auth-form.active {
  display: grid;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: #1d2939;
  font-size: 15px;
  font-weight: 800;
}

.agreement-check {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 500;
}

.agreement-check input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
  accent-color: #0f766e;
}

.auth-form input {
  min-height: 48px;
  border-color: #cdd5df;
  border-radius: 12px;
  font-size: 16px;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 60px;
}

.field-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  border-color: transparent !important;
  background: transparent !important;
  color: #2563eb !important;
  box-shadow: none !important;
  transform: translateY(-50%);
}

.field-toggle:hover {
  background: transparent !important;
  color: #1d4ed8 !important;
  transform: translateY(-50%);
}

.field-toggle.is-visible {
  color: #2563eb !important;
  background: transparent !important;
}

.eye-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
}

.eye-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eye-visible {
  display: none;
}

.field-toggle.is-visible .eye-visible {
  display: inline-flex;
}

.field-toggle.is-visible .eye-hidden {
  display: none;
}

.auth-form-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: -6px;
}

.link-button {
  min-height: auto;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  color: #2563eb !important;
  box-shadow: none !important;
  font-weight: 700;
}

.link-button:hover {
  background: transparent !important;
  color: #1d4ed8 !important;
  text-decoration: underline;
  transform: none;
}

.auth-back-link {
  justify-self: center;
  margin-top: -8px;
}

.auth-form > button {
  margin-top: 6px;
  min-height: 48px;
  border-radius: 12px;
  background: #2563eb;
  font-size: 17px;
  font-weight: 800;
}

.auth-form > .auth-back-link {
  justify-self: center;
  min-height: auto;
  margin-top: -8px;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  color: #2563eb !important;
  box-shadow: none !important;
}

.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 10px;
}

.auth-tip,
.legal-note,
.auth-status {
  margin: 0;
  color: #667085;
  line-height: 1.6;
}

.legal-note {
  font-size: 12px;
}

.auth-status {
  min-height: 24px;
  margin-top: 18px;
  color: #2563eb;
  font-weight: 700;
}

.info-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.info-modal.active {
  display: flex;
}

.info-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(6px);
}

.info-dialog {
  position: relative;
  width: min(920px, 100%);
  max-height: min(86vh, 900px);
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.info-dialog h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.info-dialog p {
  margin: 0;
  color: #475467;
  line-height: 1.8;
}

#infoContent {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 12px;
}

.legal-document {
  color: #344054;
  line-height: 1.8;
}

.legal-document h3 {
  margin: 28px 0 10px;
  color: #101828;
  font-size: 19px;
}

.legal-document h4 {
  margin: 20px 0 8px;
  color: #1d2939;
  font-size: 16px;
}

.legal-document p {
  margin: 10px 0;
}

.legal-document ol,
.legal-document ul {
  margin: 10px 0;
  padding-left: 24px;
}

.legal-document li {
  margin: 7px 0;
}

.legal-meta {
  display: grid;
  gap: 5px;
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid #dbe7ff;
  border-radius: 12px;
  background: #f8fbff;
  color: #475467;
}

.legal-meta strong {
  color: #101828;
  font-size: 17px;
}

.legal-emphasis {
  padding: 14px 16px;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d2939 !important;
  font-weight: 700;
}

.contact-document {
  display: grid;
  gap: 22px;
  color: #344054;
}

.contact-intro {
  padding: 22px;
  border: 1px solid #dbe7ff;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbff 0%, #f0fdfa 100%);
}

.contact-kicker,
.contact-status {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
}

.contact-intro h3,
.contact-channel-panel h4 {
  margin: 0 0 10px;
  color: #101828;
}

.contact-intro h3 {
  font-size: 22px;
}

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

.contact-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 18px;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  background: #fff;
}

.contact-card-index {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
}

.contact-card h4 {
  min-height: 48px;
  margin: 0 0 8px;
  color: #101828;
  font-size: 17px;
  line-height: 1.4;
}

.contact-card p {
  min-height: 96px;
}

.contact-card strong {
  margin-top: 16px;
  color: #1d2939;
  font-size: 14px;
}

.contact-card ul {
  flex: 1;
  margin: 8px 0 16px;
  padding-left: 20px;
  color: #475467;
  line-height: 1.7;
}

.contact-card li {
  margin: 4px 0;
}

.contact-card small {
  padding-top: 12px;
  border-top: 1px solid #eaecf0;
  color: #667085;
  line-height: 1.6;
}

.contact-channel-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 22px;
  padding: 20px;
  border-radius: 16px;
  background: #101828;
}

.contact-channel-panel h4 {
  color: #fff;
  font-size: 19px;
}

.contact-channel-panel p {
  color: #d0d5dd;
}

.contact-company {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.contact-company span {
  color: #98a2b3;
  font-size: 12px;
}

.contact-company strong {
  margin-bottom: 8px;
  color: #fff;
  line-height: 1.6;
}

.contact-dispute-note {
  padding: 14px 16px;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  background: #fffbeb;
}

.contact-dispute-note a {
  color: #1d4ed8;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.info-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 50%;
  background: #f2f4f7;
  color: #344054;
  font-size: 22px;
}

@media (min-width: 1440px) {
  .feature-grid,
  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .footer-inner {
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
  }

  .course-card {
    grid-template-rows: 178px 1fr;
  }
}

@media (min-width: 1680px) {
  :root {
    --page-gutter: 80px;
  }

  .feature-card,
  .detail-panel,
  .process-grid article,
  .list-panel,
  .category-grid article,
  .home-course-grid article,
  .schedule-card,
  .mentor-card,
  .ops-band {
    padding: 26px;
  }

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

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

  .section-head h2 {
    font-size: 40px;
  }
}

@media (max-width: 1080px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 14px var(--page-gutter);
  }

  .brand {
    min-width: 0;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .poster-slide {
    grid-template-columns: 1fr;
    padding: 42px;
  }

  .poster-slide > div:first-child {
    width: min(760px, 82vw);
    margin: 0 auto;
  }

  .search-inner {
    grid-template-columns: 1fr 160px auto;
  }

  .feature-grid,
  .process-grid,
  .course-grid,
  .category-grid,
  .home-course-grid,
  .teacher-showcase,
  .teacher-live-grid,
  .profile-stats,
  .profile-action-grid,
  .ops-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 720px) {
  :root {
    --page-gutter: 18px;
  }

  .header-inner,
  .hero,
  .search-inner,
  .section,
  .footer-inner {
    width: 100%;
  }

  .header-actions {
    width: auto;
    margin-left: auto;
  }

  .header-actions button {
    flex: 0 0 auto;
  }

  .hero {
    margin-top: 18px;
    padding: 36px 0;
  }

  .hero-content h2 {
    font-size: 36px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .hero-panel,
  .feature-grid,
  .process-grid,
  .course-grid,
  .category-grid,
  .home-course-grid,
  .teacher-showcase,
  .teacher-live-grid,
  .ops-band,
  .ops-grid,
  .two-column,
  .search-inner {
    grid-template-columns: 1fr;
  }

  .poster-carousel {
    width: 100%;
    margin-top: 0;
  }

  .poster-track {
    min-height: 620px;
  }

  .poster-slide {
    padding: 30px 24px 76px;
  }

  .poster-slide > div:first-child {
    width: 100%;
    margin: 0 auto;
  }

  .poster-slide h1 {
    font-size: 34px;
  }

  .poster-slide p {
    font-size: 16px;
  }

  .poster-controls {
    left: 50%;
    bottom: 24px;
  }

  .poster-visual {
    min-height: 220px;
  }

  .image-mini {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
  }

  .image-mini img {
    width: 88px;
    height: 62px;
  }

  .section {
    padding: 40px 0;
  }

  .section-head h2 {
    font-size: 28px;
  }

  .site-nav a {
    white-space: nowrap;
  }

  .profile-stats {
    grid-template-columns: 1fr;
  }

  .profile-action-grid {
    grid-template-columns: 1fr;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-side-nav {
    position: static;
    display: flex;
    overflow-x: auto;
    padding: 10px;
  }

  .profile-side-nav button {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .profile-tab-panel {
    padding: 18px;
  }

  .profile-todo-list button {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .invite-share-grid {
    grid-template-columns: 1fr;
  }

  .invite-metrics-grid {
    grid-template-columns: 1fr;
  }

  .invite-poster-list {
    grid-template-columns: 1fr;
  }

  .invite-order-row {
    grid-template-columns: 1fr;
  }

  .invite-withdraw-card {
    align-items: stretch;
    flex-direction: column;
  }

  .invite-withdraw-card button {
    width: 100%;
  }

  .invite-withdrawal-row {
    grid-template-columns: 1fr;
  }

  .invite-poster-card {
    min-height: 420px;
  }

  .invite-poster-overlay {
    left: 18px;
    right: 18px;
    bottom: 18px;
    width: auto;
  }

  .auth-modal {
    padding: 14px;
  }

  .auth-dialog {
    width: min(520px, 100%);
    max-height: calc(100vh - 32px);
    min-height: 0;
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .auth-copy {
    min-height: 220px;
    padding: 34px 26px 28px;
  }

  .auth-copy h2 {
    font-size: 30px;
  }

  .auth-panel {
    padding: 30px 24px;
  }

  .auth-close {
    top: 14px;
    right: 14px;
    background: #2563eb;
  }

  .code-row {
    grid-template-columns: 1fr;
  }

  .info-modal {
    padding: 12px;
  }

  .info-dialog {
    max-height: calc(100vh - 24px);
    padding: 22px 18px;
  }

  .info-dialog h2 {
    padding-right: 42px;
    font-size: 22px;
  }

  #infoContent {
    padding-right: 6px;
  }

  .contact-grid,
  .contact-channel-panel {
    grid-template-columns: 1fr;
  }

  .contact-card h4,
  .contact-card p {
    min-height: 0;
  }
}

/* Exact visual target for the standalone course purchase page. */
.standalone-course-page main,
.standalone-course-page .course-detail-panel { background: #f5fbff; }
.standalone-course-page .course-detail-close {
  top: 28px; right: 30px; width: 42px; height: 42px;
  border: 1px solid #d6e0eb; background: rgba(255,255,255,.94); color: #17345e;
  box-shadow: 0 8px 24px rgba(30,64,175,.08);
}
.standalone-course-page .course-detail-close:hover { background: #fff; color: #2563eb; }
.target-course-shell { width: min(1360px, calc(100% - 48px)); margin: 0 auto; padding: 56px 0 24px; }
.target-course-hero {
  display: grid; grid-template-columns: minmax(0,46%) minmax(0,54%); gap: 30px;
  align-items: center; min-height: 430px; padding: 0 32px 36px;
}
.target-course-cover { aspect-ratio: 16/10; border-radius: 10px; box-shadow: none; }
.target-course-purchase { min-width: 0; padding: 12px 24px 0 0; }
.target-category {
  display: inline-flex; padding: 4px 10px; border-radius: 999px;
  color: #2563eb; background: #eaf2ff; font-size: 12px; font-weight: 700;
}
.target-course-purchase h1 {
  margin: 14px 0 8px; color: #0b2145; font-size: clamp(30px,3vw,44px);
  line-height: 1.15; letter-spacing: -.03em;
}
.target-course-intro { margin: 0; color: #64748b; font-size: 14px; line-height: 1.7; }
.target-outcome-line { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 16px; color: #334155; font-size: 12px; }
.target-outcome-line span { position: relative; padding-left: 15px; }
.target-outcome-line span::before {
  position: absolute; top: 5px; left: 0; width: 7px; height: 7px;
  border-radius: 50%; background: #16a34a; content: "";
}
.target-course-meta { display: flex; align-items: center; gap: 10px; color: #64748b; font-size: 12px; }
.target-course-meta img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.target-course-meta i { width: 1px; height: 14px; background: #cbd5e1; }
.target-course-price { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 12px; }
.target-course-price strong { color: #ea580c; font-size: 32px; }
.target-course-price em {
  padding: 3px 8px; border: 1px solid #fdba74; border-radius: 4px;
  color: #f97316; background: #fff7ed; font-size: 11px; font-style: normal;
}
.target-course-price del { color: #94a3b8; font-size: 13px; }
.target-benefit-row {
  display: flex; width: 100%; min-height: 40px; align-items: center; justify-content: space-between;
  margin: 0 0 8px; padding: 0 14px; border: 1px solid #dbe5f0; border-radius: 6px;
  color: #334155; background: rgba(255,255,255,.76); font-size: 12px; text-align: left;
}
.standalone-course-page .target-benefit-row {
  border: 1px solid #dbe5f0 !important;
  color: #334155 !important;
  background: rgba(255,255,255,.92) !important;
  box-shadow: none !important;
}
.standalone-course-page .target-benefit-row:hover {
  border-color: #93c5fd !important;
  color: #1e3a5f !important;
  background: #fff !important;
}
.target-benefit-row:hover { border-color: #93c5fd; background: #fff; }
.target-benefit-row strong { color: #64748b; font-weight: 500; }
.target-buy-button { width: 100%; min-height: 44px; margin-top: 2px; border-radius: 5px; background: #1769f5; }
.target-assurance { margin: 9px 0 0; color: #94a3b8; font-size: 11px; }
.target-journey { padding: 18px 32px 24px; border-top: 1px solid #e2e8f0; background: #fff; }
.target-journey > h2 { margin: 0 0 18px; color: #0f294d; font-size: 19px; text-align: center; }
.target-journey-list { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 30px; }
.target-journey-list article { display: flex; align-items: center; gap: 14px; min-width: 0; }
.target-journey-list b {
  display: grid; flex: 0 0 58px; width: 58px; height: 58px; place-items: center;
  border: 1px solid #bfdbfe; border-radius: 50%; color: #2563eb; background: #eff6ff; font-size: 14px;
}
.target-journey-list article:nth-child(1) b { color: #15803d; border-color: #bbf7d0; background: #f0fdf4; }
.target-journey-list article:nth-child(3) b { color: #0f766e; border-color: #99f6e4; background: #f0fdfa; }
.target-journey-list article:nth-child(4) b { color: #ea580c; border-color: #fed7aa; background: #fff7ed; }
.target-journey-list strong { color: #0f294d; font-size: 14px; }
.target-journey-list p { margin: 5px 0 0; color: #64748b; font-size: 11px; }
.target-course-lower {
  display: grid; grid-template-columns: minmax(0,55%) minmax(0,45%); gap: 18px;
  padding: 0 32px 14px; background: #fff;
}
.target-curriculum-panel, .target-right-panels > section {
  padding: 18px; border: 1px solid #dbe5f0; border-radius: 7px; background: #fff;
}
.target-panel-title { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.target-panel-title h2, .target-right-panels h2 { margin: 0; color: #0f294d; font-size: 16px; }
.target-panel-title span { color: #64748b; font-size: 11px; }
.target-course-lower .course-curriculum-row { min-height: 42px; grid-template-columns: 34px minmax(0,1fr) auto; font-size: 11px; }
.target-right-panels { display: grid; gap: 10px; }
.target-right-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 24px; margin-top: 16px; }
.target-service-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 16px; }
.target-right-grid strong, .target-service-list strong { color: #334155; font-size: 12px; }
.target-right-grid p, .target-service-list p { margin: 4px 0 0; color: #94a3b8; font-size: 10px; }
.target-mobile-preview {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  margin: 0 32px; padding: 10px 14px; border: 1px solid #fed7aa;
  border-radius: 7px; background: #fffaf5;
}
.target-mobile-preview > div:first-child strong { color: #ea580c; font-size: 12px; }
.target-mobile-preview p { margin: 3px 0 0; color: #64748b; font-size: 10px; }
.target-preview-order { display: flex; align-items: center; gap: 10px; }
.target-preview-order img { width: 44px; height: 30px; border-radius: 4px; object-fit: cover; }
.target-preview-order strong {
  max-width: 160px; overflow: hidden; color: #0f294d; font-size: 11px;
  text-overflow: ellipsis; white-space: nowrap;
}
.target-preview-order span { color: #ea580c; font-size: 13px; font-weight: 800; }
.target-preview-order button { min-height: 32px; padding: 0 18px; border-radius: 4px; background: #f97316; font-size: 11px; }

@media (max-width: 760px) {
  .target-course-shell { width: 100%; padding: 60px 0 0; }
  .target-course-hero, .target-course-lower { grid-template-columns: 1fr; }
  .target-course-hero { gap: 22px; min-height: 0; padding: 0 16px 30px; }
  .target-course-purchase { padding: 0; }
  .target-course-purchase h1 { font-size: 30px; }
  .target-outcome-line { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .target-journey { padding: 26px 16px; }
  .target-journey-list { grid-template-columns: 1fr; gap: 18px; }
  .target-course-lower { padding: 0 16px 24px; }
  .target-right-grid, .target-service-list { grid-template-columns: 1fr; }
  .target-mobile-preview { display: none; }
}

/* Compact single-column cashier selected from Product Design option 1. */
.checkout-dialog.checkout-compact {
  width: min(800px, 100%);
  max-height: calc(100vh - 32px);
  border-radius: 18px;
  background: #fff;
}

.checkout-compact .checkout-close {
  top: 24px;
  right: 26px;
  width: 34px;
  height: 34px;
  border: 1px solid #dbe5f0;
  border-radius: 50%;
  color: #334155;
  background: #fff;
  box-shadow: none;
}

.checkout-compact .checkout-head {
  padding: 28px 34px 24px;
  color: #0b2145;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.checkout-compact .checkout-head span { color: #0f766e; }
.checkout-compact .checkout-head h2 { margin: 7px 0 5px; font-size: 28px; }
.checkout-compact .checkout-head p { color: #64748b; }
.checkout-compact-body { display: grid; gap: 22px; padding: 24px 34px; }

.checkout-compact .checkout-course-row {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 0 0 22px;
  border-bottom: 1px solid #e2e8f0;
}

.checkout-compact .checkout-course-row > img {
  width: 148px;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  object-fit: cover;
}

.checkout-compact .checkout-course-row h3 { margin: 8px 0 5px; font-size: 22px; color: #0b2145; }
.checkout-compact .checkout-course-row p { margin: 0; color: #64748b; }
.checkout-compact .checkout-course-row > strong { color: #0b2145; font-size: 22px; }

.checkout-benefits-group {
  overflow: hidden;
  border: 1px solid #dbe5f0;
  border-radius: 12px;
  background: #fff;
}

.checkout-compact .checkout-benefit-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0;
}

.checkout-compact .checkout-benefit-row:last-child { border-bottom: 0; }
.checkout-compact .checkout-benefit-row .checkout-section-title { display: grid; gap: 4px; margin: 0; }
.checkout-compact .checkout-benefit-row .checkout-section-title h3 { font-size: 15px; }
.checkout-compact .checkout-benefit-row select { min-height: 40px; border-color: #cbd5e1; background: #fff; }
.checkout-compact .points-switch { justify-content: flex-end; gap: 12px; color: #475569; }
.checkout-compact .points-switch input {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 24px;
  margin: 0;
  appearance: none;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #e2e8f0;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.checkout-compact .points-switch input::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15,23,42,.25);
  content: "";
  transition: transform .18s ease;
}
.checkout-compact .points-switch input:checked { border-color: #2563eb; background: #2563eb; }
.checkout-compact .points-switch input:checked::after { transform: translateX(18px); }
.checkout-compact .points-switch input:focus-visible { outline: 3px solid rgba(37,99,235,.2); outline-offset: 2px; }

.checkout-payment-compact { padding: 0; }
.checkout-payment-compact .payment-methods { grid-template-columns: 1fr; gap: 10px; }
.checkout-payment-compact .payment-methods label {
  min-height: 66px;
  padding: 12px 18px;
  border-color: #dbe5f0;
  border-radius: 10px;
  background: #fff;
}
.checkout-payment-compact .payment-methods label:has(input:checked) {
  border-color: #2563eb;
  background: #f8fbff;
  box-shadow: none;
}
.checkout-payment-compact .payment-methods input { width: 20px; height: 20px; margin-left: auto; order: 2; accent-color: #2563eb; }
.checkout-payment-compact .payment-methods strong { color: #0b2145; }

.payment-qr-modal { position: fixed; inset: 0; z-index: 1300; display: none; place-items: center; padding: 20px; }
.payment-qr-modal.active { display: grid; }
.payment-qr-backdrop { position: absolute; inset: 0; background: rgba(8, 25, 49, .68); backdrop-filter: blur(5px); }
.payment-qr-dialog {
  position: relative;
  z-index: 1;
  width: min(380px, 100%);
  padding: 30px;
  border: 1px solid #dbe5f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(8, 25, 49, .28);
  text-align: center;
}
.payment-qr-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 10px; color: #475569; background: #f1f5f9; font-size: 22px; }
.payment-qr-eyebrow { color: #0f766e; font-size: 13px; font-weight: 700; }
.payment-qr-dialog h2 { margin: 8px 0 4px; color: #0b2145; font-size: 24px; }
.payment-qr-amount { margin: 0 0 18px; color: #ea580c; font-size: 28px; font-weight: 800; }
.payment-qr-image-wrap { display: grid; place-items: center; width: 256px; height: 256px; margin: 0 auto; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; }
.payment-qr-image-wrap img { width: 236px; height: 236px; object-fit: contain; }
.payment-qr-tip { margin: 18px 0 6px; color: #64748b; font-size: 13px; }
.payment-qr-status { margin: 0; color: #0f766e; font-size: 13px; font-weight: 700; }
.payment-qr-test-complete { width: 100%; min-height: 44px; margin-top: 16px; border: 0; border-radius: 10px; color: #fff; background: #1769f5; font-weight: 700; }
.payment-qr-test-complete[hidden] { display: none; }

.course-learning-page { padding-top: 42px; }
.learning-page-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.learning-page-head span { color: #0f766e; font-size: 13px; font-weight: 800; }
.learning-page-head h2 { margin: 6px 0 0; color: #0b2145; font-size: 28px; }
.learning-page-head button { min-height: 42px; padding: 0 18px; border: 1px solid #cbd5e1; border-radius: 10px; color: #334155; background: #fff; }
.learning-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); min-height: 590px; overflow: hidden; border: 1px solid #dbe5f0; border-radius: 18px; background: #fff; box-shadow: 0 18px 45px rgba(15, 35, 64, .08); }
.learning-catalog { padding: 20px; overflow-y: auto; border-right: 1px solid #e2e8f0; background: #f8fafc; }
.learning-chapter { margin-bottom: 22px; }
.learning-chapter h3 { display: flex; gap: 10px; align-items: center; margin: 0 0 10px; color: #0b2145; font-size: 15px; }
.learning-chapter h3 span { color: #2563eb; font-size: 12px; }
.learning-chapter button { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: center; width: 100%; margin-top: 7px; padding: 11px; border: 1px solid transparent; border-radius: 10px; color: #475569; background: transparent; text-align: left; }
.learning-chapter button:hover, .learning-chapter button.active { border-color: #bfdbfe; background: #eff6ff; }
.learning-chapter button > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #2563eb; background: #dbeafe; font-size: 11px; }
.learning-chapter button strong { overflow: hidden; color: #0f172a; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.learning-chapter button small { color: #94a3b8; font-size: 10px; }
.learning-stage { padding: 26px; background: #fff; }
.learning-player { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; color: #fff; background: #071a35; }
.learning-player video { width: 100%; height: 100%; background: #000; }
.learning-preview-limit { position: absolute; display: grid; gap: 10px; max-width: 280px; padding: 22px; border: 1px solid rgba(147, 197, 253, .58); border-radius: 14px; color: #eff6ff; text-align: center; background: rgba(7, 26, 53, .94); box-shadow: 0 18px 40px rgba(0, 0, 0, .28); }
.learning-preview-limit strong { font-size: 18px; }
.learning-preview-limit p { margin: 0; color: #bfdbfe; font-size: 13px; }
.learning-preview-limit button { min-width: 132px; justify-self: center; padding: 9px 16px; border: 0; border-radius: 8px; color: #fff; font-weight: 700; background: #2563eb; cursor: pointer; }
.learning-player-empty { padding: 30px; text-align: center; }
.learning-player-empty strong { font-size: 20px; }
.learning-player-empty p { margin: 10px 0 0; color: #94a3b8; }
.learning-lesson-meta { display: flex; justify-content: space-between; gap: 16px; padding: 18px 4px 0; color: #64748b; }
.learning-lesson-meta strong { color: #0b2145; }

.checkout-paybar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: center;
  padding: 20px 34px 22px;
  border-top: 1px solid #e2e8f0;
  background: #fbfdff;
}

.checkout-paybar-detail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.checkout-paybar-detail > div { display: grid; gap: 5px; padding: 0; }
.checkout-paybar-detail dt { color: #64748b; font-size: 12px; }
.checkout-paybar-detail dd { margin: 0; color: #0b2145; font-weight: 700; }
.checkout-paybar-detail .checkout-total { margin: 0; padding: 0 !important; border: 0; }
.checkout-paybar-detail .checkout-total dd { color: #2563eb; font-size: 24px; }
.checkout-paybar-action { display: grid; gap: 7px; align-self: center; }
.checkout-paybar-action #checkoutSubmit { min-height: 50px; margin: 0; background: #1769f5; }
.checkout-paybar-action #checkoutStatus { min-height: 16px; margin: 0; color: #64748b; font-size: 11px; text-align: center; }

@media (max-width: 760px) {
  .checkout-dialog.checkout-compact { max-height: 96vh; border-radius: 18px 18px 0 0; }
  .checkout-compact .checkout-head { padding: 24px 20px 18px; }
  .checkout-compact .checkout-head h2 { font-size: 23px; }
  .checkout-compact-body { gap: 18px; padding: 20px; }
  .checkout-compact .checkout-course-row { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
  .checkout-compact .checkout-course-row > img { width: 88px; }
  .checkout-compact .checkout-course-row > strong { grid-column: 2; font-size: 19px; }
  .checkout-compact .checkout-benefit-row { grid-template-columns: 1fr; gap: 10px; }
  .checkout-compact .points-switch { justify-content: flex-start; }
  .checkout-paybar { grid-template-columns: 1fr; gap: 16px; padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); }
  .checkout-paybar-detail { gap: 8px; }
  .checkout-paybar-detail dt { font-size: 10px; }
  .checkout-paybar-detail dd { font-size: 12px; }
  .checkout-paybar-detail .checkout-total dd { font-size: 20px; }
  .payment-qr-dialog { padding: 26px 20px; }
  .learning-page-head { align-items: flex-start; }
  .learning-layout { grid-template-columns: 1fr; }
  .learning-catalog { max-height: 320px; border-right: 0; border-bottom: 1px solid #e2e8f0; }
  .learning-stage { padding: 14px; }
}

@media (max-width: 760px) {
  .profile-order-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .profile-order-title-row {
    align-items: flex-start;
    justify-content: space-between;
  }

  .profile-order-summary {
    grid-template-columns: 88px minmax(0, 1fr) 14px;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef2f6;
  }

  .order-detail-modal {
    align-items: end;
    padding: 0;
  }

  .order-detail-dialog {
    width: 100%;
    max-height: 94vh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 20px 20px 0 0;
  }

  .order-detail-head {
    padding: 24px 20px 18px;
  }

  .order-detail-head h2 { font-size: 23px; }
  .order-detail-content { padding: 18px 16px calc(20px + env(safe-area-inset-bottom)); }

  .order-detail-product {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .order-detail-product img { width: 88px; }
  .order-detail-product > .order-status { grid-column: 2; justify-self: start; }
  .order-entitlement-card { grid-template-columns: 1fr; gap: 10px; }
  .order-entitlement-card > span { justify-self: start; }
  .order-detail-facts { grid-template-columns: 1fr; }
  .order-detail-actions { position: sticky; bottom: 0; padding-top: 4px; background: #f8fafc; }
  .order-detail-actions button { flex: 1; }
}

@media (max-width: 980px) {
  .wallet-overview {
    grid-template-columns: 1fr;
  }

  .wallet-summary-card > p {
    min-height: 0;
  }

  .wallet-ledger-head,
  .wallet-ledger-filters {
    align-items: stretch;
    flex-direction: column;
  }

  .wallet-ledger-tabs {
    overflow-x: auto;
  }
}

@media (max-width: 620px) {
  .wallet-card-actions,
  .wallet-safety-note {
    align-items: stretch;
    flex-direction: column;
  }

  .wallet-ledger-filters label {
    width: 100%;
  }

  .wallet-payment-methods {
    grid-template-columns: 1fr;
  }

  .wallet-dialog {
    padding: 24px 18px;
  }

  .wallet-quick-amounts {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Shared utility for toggled form sections and modal controls. */
.hidden {
  display: none !important;
}
