/* Shell */
.study-shell {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  min-height: 100vh;
}

html body[data-requires-auth="true"][data-view]:not([data-view="practice"])
.study-shell > .study-utility-bar .study-utility-link--icon-only {
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  justify-content: center !important;
  border-radius: 50% !important;
}

html body[data-requires-auth="true"][data-view]:not([data-view="practice"])
.study-shell > .study-utility-bar .study-utility-link--icon-only i {
  margin: 0 !important;
  color: inherit !important;
  font-size: 19px !important;
}

/* The top bar is brand-only; account and service actions live together in the sidebar. */
html body[data-requires-auth="true"][data-view]:not([data-view="practice"])
.study-shell > .study-utility-bar {
  justify-content: flex-start !important;
}

html body[data-requires-auth="true"][data-view]:not([data-view="practice"])
.study-shell > .study-utility-bar .study-utility-brand--primary {
  margin-right: auto !important;
}

html body[data-requires-auth="true"][data-view]:not([data-view="practice"])
.study-shell > .study-utility-bar .study-utility-links {
  display: none !important;
}

html body[data-requires-auth="true"][data-view]:not([data-view="practice"])
.study-sidebar.sidebar-wrapper .userinfo[data-account-menu-host] {
  position: relative !important;
  z-index: 1200 !important;
}

html body[data-requires-auth="true"][data-view]:not([data-view="practice"])
.study-sidebar.sidebar-wrapper .userinfo .UserImg {
  appearance: none !important;
  width: 100% !important;
  text-align: left !important;
  font: inherit !important;
}

html body[data-requires-auth="true"][data-view]:not([data-view="practice"])
.study-sidebar.sidebar-wrapper .userinfo .UserImg:hover,
html body[data-requires-auth="true"][data-view]:not([data-view="practice"])
.study-sidebar.sidebar-wrapper .userinfo.account-menu-open .UserImg {
  border-color: #d1b45e !important;
  background: linear-gradient(145deg, #fff9dd 0%, #ffefb1 100%) !important;
}

html body[data-requires-auth="true"][data-view]:not([data-view="practice"])
.study-sidebar.sidebar-wrapper .userinfo .userbox {
  position: absolute !important;
  left: calc(100% + 12px) !important;
  bottom: 0 !important;
  z-index: 1210 !important;
  display: grid !important;
  width: 238px !important;
  max-width: min(238px, calc(100vw - 244px)) !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 14px !important;
  border: 1px solid #e2cf8c !important;
  border-radius: 10px !important;
  background: linear-gradient(160deg, #fffef7 0%, #fff5cf 100%) !important;
  box-shadow: 0 16px 34px rgba(112, 78, 11, 0.16) !important;
}

html body[data-requires-auth="true"][data-view]:not([data-view="practice"])
.study-sidebar.sidebar-wrapper .userinfo .userbox[hidden] {
  display: none !important;
}

html body[data-requires-auth="true"][data-view]:not([data-view="practice"])
.account-menu__title {
  display: grid !important;
  gap: 2px !important;
  padding: 1px 4px 9px !important;
  border-bottom: 1px solid rgba(191, 146, 30, 0.20) !important;
}

html body[data-requires-auth="true"][data-view]:not([data-view="practice"])
.account-menu__title > span {
  color: #8a6c28 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

html body[data-requires-auth="true"][data-view]:not([data-view="practice"])
.account-menu__title > b {
  color: #352a16 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

html body[data-requires-auth="true"][data-view]:not([data-view="practice"])
.account-menu__section-label {
  padding: 4px 4px 1px !important;
  color: #9b7b32 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
}

html body[data-requires-auth="true"][data-view]:not([data-view="practice"])
.account-menu__links {
  display: grid !important;
  gap: 3px !important;
}

html body[data-requires-auth="true"][data-view]:not([data-view="practice"])
.account-menu__links :is(a, button) {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr) 16px !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 32px !important;
  padding: 0 7px !important;
  border: 1px solid transparent !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: #4d4432 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-align: left !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

html body[data-requires-auth="true"][data-view]:not([data-view="practice"])
.account-menu__links :is(a, button) > i {
  color: #007ede !important;
  font-size: 16px !important;
  text-align: center !important;
}

html body[data-requires-auth="true"][data-view]:not([data-view="practice"])
.account-menu__links :is(a, button) > span {
  color: inherit !important;
}

html body[data-requires-auth="true"][data-view]:not([data-view="practice"])
.account-menu__links :is(a, button) > em {
  color: #a49575 !important;
  font-size: 15px !important;
  font-style: normal !important;
  text-align: right !important;
}

html body[data-requires-auth="true"][data-view]:not([data-view="practice"])
.account-menu__links :is(a, button):hover,
html body[data-requires-auth="true"][data-view]:not([data-view="practice"])
.account-menu__links :is(a, button):focus-visible {
  border-color: rgba(0, 126, 222, 0.18) !important;
  background: rgba(0, 126, 222, 0.07) !important;
  color: #006bbd !important;
  outline: none !important;
}

html body[data-requires-auth="true"][data-view]:not([data-view="practice"])
.study-utility-panel--account {
  position: fixed !important;
  left: 244px !important;
  bottom: 20px !important;
  top: auto !important;
  right: auto !important;
  z-index: 1250 !important;
  width: min(380px, calc(100vw - 268px)) !important;
  max-height: min(680px, calc(100dvh - 40px)) !important;
}

@media (max-width: 700px) {
  html body[data-requires-auth="true"][data-view]:not([data-view="practice"])
  .study-sidebar.sidebar-wrapper .userinfo .userbox {
    left: auto !important;
    right: 0 !important;
    bottom: calc(100% + 10px) !important;
    width: min(238px, calc(100vw - 20px)) !important;
    max-width: none !important;
  }

  html body[data-requires-auth="true"][data-view]:not([data-view="practice"])
  .study-utility-panel--account {
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    width: auto !important;
    max-height: calc(100dvh - 20px) !important;
  }
}

html body[data-requires-auth="true"][data-view]:not([data-view="practice"])
.study-shell > .study-utility-bar .study-utility-panel[data-utility-key="site"] {
  width: min(310px, calc(100vw - 24px)) !important;
}

html body[data-requires-auth="true"][data-view]:not([data-view="practice"])
.study-utility-site-links {
  display: grid !important;
  gap: 4px !important;
}

html body[data-requires-auth="true"][data-view]:not([data-view="practice"])
.study-utility-site-links a {
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) 18px !important;
  align-items: center !important;
  gap: 9px !important;
  min-height: 44px !important;
  padding: 4px 9px !important;
  border: 1px solid transparent !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: #34444d !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

html body[data-requires-auth="true"][data-view]:not([data-view="practice"])
.study-utility-site-links a > i:first-child {
  display: inline-grid !important;
  place-items: center !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 7px !important;
  background: rgba(0, 126, 222, 0.08) !important;
  color: #007ede !important;
  font-size: 16px !important;
}

html body[data-requires-auth="true"][data-view]:not([data-view="practice"])
.study-utility-site-links a > span {
  color: inherit !important;
}

html body[data-requires-auth="true"][data-view]:not([data-view="practice"])
.study-utility-site-links a > i:last-child {
  color: #99a5aa !important;
  font-size: 17px !important;
}

html body[data-requires-auth="true"][data-view]:not([data-view="practice"])
.study-utility-site-links a:hover,
html body[data-requires-auth="true"][data-view]:not([data-view="practice"])
.study-utility-site-links a:focus-visible {
  border-color: rgba(0, 126, 222, 0.18) !important;
  background: rgba(0, 126, 222, 0.06) !important;
  color: #006bbd !important;
  outline: none !important;
}

@media (max-width: 700px) {
  html body[data-requires-auth="true"][data-view]:not([data-view="practice"])
  .study-shell > .study-utility-bar .study-utility-link--icon-only {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
  }
}

body.app-loading-overlay-open {
  overflow: hidden;
}

body[data-view] .app-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 20%, rgba(96, 165, 250, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(5, 7, 10, 0.68) 0%, rgba(10, 14, 26, 0.82) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body[data-view] .app-loading-overlay[hidden] {
  display: none;
}

body[data-view] .app-loading-overlay__panel {
  width: min(360px, calc(100vw - 48px));
  padding: 28px 26px 24px;
  border-radius: 22px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  background: rgba(12, 17, 29, 0.92);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.36);
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  color: #edf3ff;
}

body[data-view] .app-loading-overlay__spinner {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 4px solid rgba(148, 163, 184, 0.22);
  border-top-color: #60a5fa;
  border-right-color: #34d399;
  animation: app-loading-spin 0.9s linear infinite;
}

body[data-view] .app-loading-overlay__title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

body[data-view] .app-loading-overlay__desc {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.55;
}

html body .app-loading-brand {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  overflow: hidden;
  border: 1px solid rgba(0, 126, 222, 0.22);
  border-radius: 18px;
  background: #fff8df;
  box-shadow: 0 10px 24px rgba(0, 126, 222, 0.12);
}

html body .app-loading-brand[hidden] {
  display: none;
}

html body .app-loading-brand::after {
  content: "";
  position: absolute;
  inset: -45% -80%;
  z-index: -1;
  background: linear-gradient(110deg, transparent 38%, rgba(0, 126, 222, 0.12) 50%, transparent 62%);
  transform: translateX(-45%);
  animation: app-loading-brand-sheen 1.8s ease-in-out infinite;
}

html body .app-loading-brand img {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: contain;
  animation: app-loading-brand-breathe 1.35s ease-in-out infinite;
}

body[data-view] :is(
  .guide-loading, .market-course-loading, .market-loading, .market-skeleton,
  .vocab-chapter-loading, .profile-empty--loading, .rebate-empty--loading,
  .practice-empty--loading
).app-loading-state--branded {
  display: grid;
  justify-items: center;
  gap: 10px;
}

body[data-view] .tp1--loading > label > .app-loading-brand {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  border-radius: 12px;
}

body[data-view] .tp1--loading > label > .app-loading-brand img {
  width: 40px;
  height: 40px;
}

body[data-view] .tp1--loading > label > .app-loading-brand + .ri-loader-4-line {
  display: none;
}

body[data-view] .profile-empty--loading,
body[data-view] .rebate-empty--loading {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 180px;
  padding: 24px;
  text-align: center;
  border-radius: 18px;
  border: 1px solid rgba(96, 165, 250, 0.12);
  background: rgba(12, 17, 29, 0.66);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

body[data-view] .profile-empty__spinner,
body[data-view] .rebate-empty__spinner {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 4px solid rgba(148, 163, 184, 0.18);
  border-top-color: #60a5fa;
  border-right-color: #34d399;
  animation: app-loading-spin 0.9s linear infinite;
}

body[data-view] .profile-empty--loading strong,
body[data-view] .rebate-empty--loading strong {
  color: #edf3ff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

body[data-view] .profile-empty--loading p,
body[data-view] .rebate-empty--loading p {
  margin: 0;
  max-width: 300px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.55;
}

body[data-theme="dark"] {
  --bg: #0a0e1a;
  --bg-strong: #0d1220;
  --surface: #131829;
  --surface-soft: #0a0e1a;
  --surface-warm: #1a2138;
  --surface-blue: #0a0e1a;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --muted-2: #7a85a8;
  --primary-soft: rgba(59, 130, 246, 0.18);
  --border: #3a4470;
  --border-strong: #4a5480;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 24px 52px rgba(0, 0, 0, 0.36);
  background: linear-gradient(180deg, #0d1220 0%, #0a0e1a 100%);
}

body[data-theme="dark"] .study-sidebar,
body[data-theme="dark"] .panel-card,
body[data-theme="dark"] .section-card,
body[data-theme="dark"] .course-card,
body[data-theme="dark"] .market-course-card,
body[data-theme="dark"] .guide-series-card,
body[data-theme="dark"] .continue-course-card,
body[data-theme="dark"] .recent-course,
body[data-theme="dark"] .vip-feature,
body[data-theme="dark"] .vip-quote,
body[data-theme="dark"] .vip-pay,
body[data-theme="dark"] .plan-card,
body[data-theme="dark"] .tool,
body[data-theme="dark"] .quick-link-card {
  background-color: #131829;
}

body[data-theme="dark"] .support-strip,
body[data-theme="dark"] .trial-banner,
body[data-theme="dark"] .notice-strip,
body[data-theme="dark"] .dashboard-hero,
body[data-theme="dark"] .market-notice {
  background: #131829;
}

body[data-theme="dark"] .hero-icon-btn,
body[data-theme="dark"] .study-avatar-chip,
body[data-theme="dark"] .dashboard-hero-stat,
body[data-theme="dark"] .metric-card,
body[data-theme="dark"] .course-card,
body[data-theme="dark"] .market-course-card,
body[data-theme="dark"] .guide-series-card,
body[data-theme="dark"] .recent-course,
body[data-theme="dark"] .plan-card,
body[data-theme="dark"] .vip-feature,
body[data-theme="dark"] .vip-quote,
body[data-theme="dark"] .vip-pay,
body[data-theme="dark"] .tool {
  border-color: rgba(59, 130, 246, 0.20);
}

body[data-theme="dark"] .course-cover,
body[data-theme="dark"] .market-course-card .img,
body[data-theme="dark"] .Type li .img,
body[data-theme="dark"] .recent-course-cover,
body[data-theme="dark"] .dashboard-mini-bars,
body[data-theme="dark"] .dashboard-error-stat {
  background: #0a0e1a;
}

body[data-view="dashboard"] .membership-compact-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 0;
}

body[data-view="dashboard"] .hours-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

body[data-view="dashboard"] .col73,
body[data-view="dashboard"] .col3 {
  align-items: stretch;
}

body[data-view="dashboard"] .follow-us-wrapper {
  position: relative;
}

body[data-view="dashboard"] .follow-us-wrapper:hover .qrcode-popup {
  display: block;
}

body[data-view="dashboard"] .qrcode-popup {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

body[data-view="dashboard"] .membership-status-card {
  background: #131829;
  margin-bottom: 24px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #2a3252;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body[data-view="dashboard"] .cs-banner-compact {
  margin-bottom: 24px !important;
  padding: 18px 20px !important;
  border-radius: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
  position: relative !important;
  z-index: 50 !important;
  overflow: visible !important;
  background: #131829 !important;
  border: 1px solid #2a3252 !important;
}

body[data-view="dashboard"] .cs-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

body[data-view="dashboard"] .cs-icon-wrapper {
  width: 48px;
  height: 48px;
  background: rgba(59,130,246,0.10);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body[data-view="dashboard"] .cs-icon-wrapper i {
  font-size: 22px;
  color: #3b82f6;
}

body[data-view="dashboard"] .cs-text h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: #ffffff;
}

body[data-view="dashboard"] .cs-text p {
  font-size: 14px;
  margin: 0;
  color: #94a3b8;
}

body[data-view="dashboard"] .cs-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

body[data-view="dashboard"] .cs-btn {
  border: none;
  padding: 0 18px;
  min-height: 48px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  text-decoration: none;
}

body[data-view="dashboard"] .cs-btn:hover {
  transform: translateY(-2px);
}

body[data-view="dashboard"] .follow-btn {
  background: #1a2138;
  color: #e2e8f0;
}

body[data-view="dashboard"] .follow-btn:hover {
  background: rgba(59,130,246,0.10);
}

body[data-view="dashboard"] .support-btn {
  background: rgba(59,130,246,0.08);
  color: #60a5fa;
}

body[data-view="dashboard"] .support-btn:hover {
  background: rgba(59,130,246,0.10);
}

body[data-view="dashboard"] .follow-us-wrapper {
  position: relative;
}

body[data-view="dashboard"] .qrcode-popup {
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  background: #131829;
}

body[data-view="dashboard"] .qrcode-popup img {
  width: 112px;
  height: 112px;
  display: block;
  border-radius: 8px;
}

body[data-view="dashboard"] .qrcode-popup p {
  font-size: 12px;
  text-align: center;
  margin: 8px 0 0 0;
  color: #94a3b8;
}

body[data-view="dashboard"] .qrcode-popup::after {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #131829;
}

body[data-view="dashboard"] .follow-us-wrapper:hover .qrcode-popup {
  display: block;
  animation: fadeIn 0.2s ease;
}

body[data-view="dashboard"] .membership-compact-layout {
  gap: 18px;
  min-height: 0;
}

body[data-view="dashboard"] .user-info-compact {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 300px;
  min-width: 0;
  padding-right: 20px;
  border-right: 1px solid #2a3252;
}

body[data-view="dashboard"] .user-avatar-wrapper {
  width: 56px;
  height: 56px;
  padding: 2px;
  border-radius: 50%;
  border: 1px solid #2a3252;
  flex: none;
  box-sizing: border-box;
}

body[data-view="dashboard"] .user-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

body[data-view="dashboard"] .user-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

body[data-view="dashboard"] .user-name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}

body[data-view="dashboard"] .membership-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  flex-wrap: wrap;
}

body[data-view="dashboard"] .badge-text.free {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: #1a2138;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

body[data-view="dashboard"] .upgrade-link {
  color: #f59e0b;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

body[data-view="dashboard"] .benefits-compact {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: 0;
  padding: 0 18px;
  border-right: 1px solid #2a3252;
}

body[data-view="dashboard"] .benefit-item-compact {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 0;
  min-width: 0;
}

body[data-view="dashboard"] .benefit-item-compact .benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: none;
}

body[data-view="dashboard"] .benefit-item-compact .benefit-icon i {
  font-size: 20px;
}

body[data-view="dashboard"] .benefit-item-compact .benefit-icon.blue {
  background: rgba(59,130,246,0.10);
  color: #3b82f6;
}

body[data-view="dashboard"] .benefit-item-compact .benefit-icon.purple {
  background: rgba(167,139,250,0.10);
  color: #8b5cf6;
}

body[data-view="dashboard"] .benefit-info {
  min-width: 0;
  display: grid;
  gap: 6px;
}

body[data-view="dashboard"] .benefit-label {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.15;
}

body[data-view="dashboard"] .benefit-value {
  display: block;
  font-size: 20px;
  line-height: 1;
  font-weight: 500;
  font-family: monospace;
  letter-spacing: -0.2px;
  color: #e2e8f0;
}

body[data-view="dashboard"] .quick-actions-compact {
  display: grid;
  grid-auto-flow: column;
  gap: 8px;
  flex: none;
}

body[data-view="dashboard"] .action-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  border: 1px solid #2a3252;
  background: #1a2138;
  display: grid;
  place-items: center;
  color: #94a3b8;
  box-shadow: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

body[data-view="dashboard"] .action-icon i {
  font-size: 20px;
  line-height: 1;
}

body[data-view="dashboard"] .action-icon:hover {
  transform: translateY(-1px);
  background: rgba(59,130,246,0.08);
  border-color: rgba(59,130,246,0.30);
}

body[data-view="dashboard"] .membership-status-card.compact.free .membership-compact-layout {
  align-items: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -10px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

body[data-view="dashboard"] .calendar .Date em {
  cursor: pointer;
  font-size: 20px;
  line-height: 46.4px;
  color: #ffffff;
}

body[data-view="dashboard"] .calendar .Date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  margin-top: 0;
  height: 46.4px;
}

body[data-view="dashboard"] .calendar .Date span {
  font-size: 14px;
  font-weight: 400;
  line-height: 46.4px;
  color: #ffffff;
}

body[data-view="dashboard"] .calendar .tit {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 15px;
  height: 64px;
  padding: 0;
}

body[data-view="dashboard"] .calendar .tit p {
  flex: 1;
  margin: 0;
  font-size: 13px;
  line-height: 19.5px;
  color: #94a3b8;
}

body[data-view="dashboard"] .calendar .tit b,
body[data-view="dashboard"] .calendar .tit em,
body[data-view="dashboard"] .calendar .tit i {
  font-style: normal;
  font-weight: 700;
}

.toast-host {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
  z-index: 999;
}

.toast-item {
  min-width: 180px;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(10, 14, 26, 0.92);
  color: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast-item.hide {
  opacity: 0;
  transform: translateY(8px);
}

.study-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 14px 12px 14px 10px;
  display: block;
  background: #131829;
  border-right: 1px solid #2a3252;
  overflow: visible;
}

.sidebar-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(59, 130, 246, 0.20);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.14) 0%, rgba(19, 24, 41, 0.96) 100%);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-wrapper img {
  width: 64px;
  height: 64px;
  flex: none;
}

.logo-wrapper .small {
  display: none;
}

.sidebar {
  display: grid;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
  padding-right: 2px;
}

.sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.sidebar-item {
  position: relative;
  border-radius: 14px;
}

.sidebar-item a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 16px;
  color: #ffffff;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.98rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.sidebar-item a:hover {
  background: rgba(59,130,246,0.08);
  border-color: #2a3252;
}

.sidebar-wrapper li.active .sidebar-item a {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(59,130,246,0.3) 0%, rgba(59,130,246,0.2) 100%);
  border-color: rgba(59,130,246,0.6);
  box-shadow: 0 10px 24px rgba(47, 109, 246, 0.2), inset 0 0 0 1px rgba(59, 130, 246, 0.8);
}

.sidebar-wrapper li.active .sidebar-item::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 4px;
  height: 26px;
  border-radius: 999px;
  background: var(--primary);
  transform: translateY(-50%);
}

.sidebar-item a img.sidebar-menu-icon,
.sidebar-item a span {
  width: 18px;
  min-width: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 1.02rem;
}

.sidebar-item a img.sidebar-menu-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.sidebar-item a i {
  font-style: normal;
  min-width: 0;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.userinfo {
  margin-top: auto;
  display: grid;
  gap: 0;
  padding-top: 6px;
}

.UserImg {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 16px;
  background: #131829;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.UserImg img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #1a2138;
}

.UserImg strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.1;
}

.UserImg span {
  color: var(--muted);
  font-size: 0.75rem;
}

.userbox {
  display: none;
}

.study-main {
  min-width: 0;
  padding: 12px 16px 16px 14px;
}

.page-wrap {
  display: grid;
  gap: 18px;
}

.study-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 6px 6px;
}

.study-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.study-breadcrumbs a {
  color: var(--muted);
}

.study-breadcrumbs .divider {
  color: #7a85a8;
}

.study-header-title {
  margin: 8px 0 8px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.04;
  font-weight: 950;
}

.study-header-subtitle {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
}

.study-avatar-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  border-radius: 16px;
  background: #131829;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.study-avatar-chip img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.study-avatar-chip strong {
  display: block;
  line-height: 1.1;
  font-size: 0.95rem;
}

.study-avatar-chip span {
  color: var(--muted);
  font-size: 0.74rem;
}

/* Shared panels */
.panel-card,
.section-card {
  padding: 20px;
  display: grid;
  gap: 16px;
}

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

.section-card-head h3,
.section-head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 950;
}

.section-card-head p,
.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.section-card-head > span,
.section-head > span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.notice-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: linear-gradient(180deg, #131829 0%, #0a0e1a 100%);
}

.notice-strip strong {
  display: block;
  font-size: 1rem;
}

.notice-strip span {
  color: var(--muted);
}

.chip-list,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filter-row {
  padding-top: 2px;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

body[data-view="market"] .search-box,
body[data-view="my-courses"] .search-box {
  flex: 1;
  min-width: min(100%, 420px);
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 16px;
  background: #131829;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

body[data-view="market"] .search-box input,
body[data-view="my-courses"] .search-box input {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  min-height: 44px;
}

body[data-view="market"] .search-box svg,
body[data-view="my-courses"] .search-box svg {
  flex: none;
  color: var(--muted);
}

body[data-view="vocab-search"] .search-input-wrapper,
body[data-view="vocab-search"] .search-input-wrapper:focus-within {
  border-color: #3a4470 !important;
  box-shadow: none !important;
}

.course-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Dashboard */
body[data-view="dashboard"] .study-topbar {
  display: none;
}

body[data-view="dashboard"] .page-wrap {
  padding-top: 2px;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr) minmax(0, 0.9fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
}

.dashboard-hero-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard-hero-user img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.dashboard-hero-user strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1.1;
}

.dashboard-hero-user .member-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 6px;
}

.dashboard-hero-user .member-row a {
  color: var(--accent);
  font-weight: 800;
}

.dashboard-hero-user .member-row .member-expiry {
  flex-basis: 100%;
  margin-top: -2px;
  color: var(--muted-2);
  font-size: 0.76rem;
}

.dashboard-hero-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(59,130,246,0.04);
  border: 1px solid var(--border);
}

.dashboard-hero-stat .badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(59,130,246,0.08);
  color: var(--primary);
  flex: none;
}

.dashboard-hero-stat strong {
  display: block;
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 950;
}

.dashboard-hero-stat small {
  color: var(--muted);
  font-weight: 700;
}

.hero-action-stack {
  display: grid;
  grid-auto-flow: column;
  gap: 10px;
}

.hero-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #131829;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.hero-icon-btn svg {
  width: 18px;
  height: 18px;
  color: #94a3b8;
}

.hero-icon-btn i {
  font-size: 18px;
  line-height: 1;
  color: #94a3b8;
}

.support-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  background: #131829;
}

.support-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.support-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  flex: none;
}

.support-strip p {
  margin: 2px 0 0;
  color: var(--muted);
}

.trial-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 20px;
  background: linear-gradient(180deg, rgba(167,139,250,0.12) 0%, rgba(167,139,250,0.06) 100%);
}

.trial-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trial-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ffefaf 0%, #ffd96e 100%);
  color: #d97706;
  flex: none;
}

.trial-banner h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 950;
}

.trial-banner p {
  margin: 0;
  color: #fbbf24;
}

.trial-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.trial-link {
  color: #fbbf24;
  font-weight: 800;
  font-size: 0.9rem;
}

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

.metric-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: 16px 18px 18px;
  display: grid;
  align-content: start;
  gap: 10px;
  background: linear-gradient(180deg, #131829 0%, #0a0e1a 100%);
}

.metric-card:nth-child(1) {
  background: linear-gradient(180deg, rgba(59,130,246,0.10) 0%, #131829 100%);
}

.metric-card:nth-child(2) {
  background: linear-gradient(180deg, rgba(34,211,238,0.10) 0%, #131829 100%);
}

.metric-card:nth-child(3) {
  background: linear-gradient(180deg, rgba(245,158,11,0.10) 0%, #131829 100%);
}

.metric-card:nth-child(4) {
  background: linear-gradient(180deg, rgba(59,130,246,0.08) 0%, #131829 100%);
}

.metric-card:nth-child(5) {
  background: linear-gradient(180deg, rgba(59,130,246,0.08) 0%, #131829 100%);
}

.metric-card:nth-child(6) {
  background: linear-gradient(180deg, rgba(245,158,11,0.08) 0%, #131829 100%);
}

.metric-card-label {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(47, 109, 246, 0.08);
  color: #60a5fa;
  font-size: 0.8rem;
  font-weight: 800;
  width: fit-content;
}

.metric-card strong {
  font-size: 2rem;
  font-weight: 950;
  line-height: 1;
}

.metric-card > span:not(.metric-card-label) {
  color: var(--muted);
  font-weight: 700;
}

.metric-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.dashboard-subgrid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 18px;
}

.dashboard-trend {
  padding: 22px;
  display: grid;
  gap: 16px;
}

.dashboard-trend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-trend-head h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 950;
}

.dashboard-trend-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.dashboard-chart {
  display: grid;
  gap: 14px;
}

.dashboard-mini-bars {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 180px;
}

.dashboard-focus-copy {
  display: grid;
  gap: 4px;
}

.dashboard-focus-copy strong {
  font-size: 1.3rem;
  line-height: 1.35;
  font-weight: 950;
  color: var(--text);
}

.dashboard-focus-copy span {
  font-size: 1.1rem;
  line-height: 1.35;
  font-weight: 800;
  color: var(--muted);
}

.dashboard-focus-ring {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.dashboard-focus-percent {
  font-size: 2.25rem;
  font-weight: 950;
  line-height: 1;
  color: var(--primary);
}

.dashboard-focus-hours {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.dashboard-hero-bar {
  display: grid;
  gap: 8px;
}

.dashboard-hero-bar span {
  color: var(--muted);
  font-size: 0.88rem;
}

.dashboard-hero-bar-line {
  height: 10px;
  border-radius: 999px;
  background: #1a2138;
  overflow: hidden;
}

.dashboard-hero-bar-line i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-2) 100%);
}

.dashboard-error-card {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.dashboard-error-cta {
  justify-self: start;
}

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

.dashboard-error-stat {
  padding: 14px;
  border-radius: 16px;
  background: rgba(59,130,246,0.04);
  border: 1px solid var(--border);
}

.dashboard-error-stat strong {
  display: block;
  margin: 6px 0 4px;
  font-size: 1.4rem;
  font-weight: 950;
}

.dashboard-error-stat span {
  color: var(--muted);
  font-size: 0.86rem;
}

.dashboard-vocab {
  display: grid;
  gap: 10px;
}

.dashboard-vocab h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 950;
}

.dashboard-vocab p {
  margin: 0;
  color: var(--muted);
}

.dashboard-course-list {
  display: grid;
  gap: 12px;
}

.dashboard-course-list .course-card.compact {
  grid-template-columns: 92px minmax(0, 1fr);
}

.dashboard-course-list .course-card.compact .course-cover {
  min-height: 72px;
  border-radius: 18px 0 0 18px;
}

.recent-course-list {
  display: grid;
  gap: 12px;
}

.recent-course {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #131829;
}

.recent-course img {
  width: 92px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
}

.recent-course h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 950;
}

.recent-course p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.calendar-card {
  padding: 20px;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.calendar-month {
  font-weight: 950;
}

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

.calendar-weekday {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.calendar-day {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #131829;
  border: 1px solid var(--border);
  color: #e2e8f0;
}

.calendar-day.is-active {
  background: #dfeaff;
  border-color: #bad0fb;
  color: #60a5fa;
  font-weight: 900;
}

.calendar-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  color: var(--muted);
}

.quick-link-card {
  padding: 16px;
  display: grid;
  gap: 6px;
  min-height: 92px;
}

.quick-link-card strong {
  font-size: 0.98rem;
  font-weight: 950;
}

.quick-link-card span {
  color: var(--muted);
  font-size: 0.84rem;
}

/* Courses and market */
.market-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.page-grid {
  display: grid;
  gap: 16px;
}

.market-spotlight {
  display: grid;
  gap: 12px;
}

.market-spotlight-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #131829;
  border: 1px solid var(--border);
}

.market-spotlight-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 900;
}

.market-spotlight-item span {
  color: var(--muted);
  font-size: 0.84rem;
}

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

.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #131829;
  border: 1px solid var(--border);
  text-align: left;
}

.category-item.on {
  background: rgba(47, 109, 246, 0.08);
  border-color: rgba(47, 109, 246, 0.18);
}

.category-item b {
  display: block;
  font-size: 0.95rem;
  font-weight: 900;
}

.category-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.category-card {
  padding: 16px;
  display: grid;
  gap: 8px;
}

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

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

.course-card {
  overflow: hidden;
}

.course-card.compact {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 0;
}

.course-card.compact .course-cover {
  border-radius: 18px 0 0 18px;
  aspect-ratio: auto;
  min-height: 100%;
}

.course-card.compact .course-body,
.course-card.compact .course-card-body {
  padding: 18px;
}

.course-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #eaf2ff 0%, #f8fbff 100%);
}

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

.course-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(19, 24, 41, 0.92);
  color: #60a5fa;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.course-card-body,
.course-body {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.course-card-body h3,
.course-body h4 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 950;
}

.course-card-body p,
.course-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.course-meta,
.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.84rem;
}

.course-meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.course-meta-line .view-course-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 800;
}

.course-link {
  color: var(--primary);
  font-weight: 900;
}

.course-link:hover {
  text-decoration: underline;
}

.progress-line {
  height: 8px;
  border-radius: 999px;
  background: #1a2138;
  overflow: hidden;
}

.progress-line i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-2) 100%);
}

.course-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #2f6df6 0%, #4f45e5 100%);
}

.course-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(15, 23, 42, 0.06));
}

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

.course-visual > div {
  position: relative;
  z-index: 1;
  text-align: center;
}

.course-visual small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.detail-hero {
  display: grid;
  gap: 18px;
}

.detail-card--market {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 24px;
  padding: 20px;
}

.detail-card-visual .course-cover {
  border-radius: 18px;
}

.detail-card-body {
  display: grid;
  gap: 16px;
  align-content: start;
}

.course-title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 950;
  line-height: 1.1;
}

.course-subtitle {
  margin: 0;
  color: var(--muted);
}

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

.stat {
  padding: 16px;
  display: grid;
  gap: 4px;
  border-radius: 18px;
  background: rgba(59,130,246,0.04);
  border: 1px solid var(--border);
}

.stat strong {
  font-size: 1.5rem;
  font-weight: 950;
}

.stat span {
  color: var(--muted);
  font-size: 0.84rem;
}

.lesson-card {
  padding: 20px;
}

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

.lesson-section-title h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 950;
}

.lesson-section-title span {
  color: var(--muted);
  font-size: 0.85rem;
}

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

.lesson-item {
  padding: 16px 18px;
}

.lesson-item.is-open {
  border-color: rgba(47, 109, 246, 0.18);
  background: rgba(47, 109, 246, 0.04);
}

.lesson-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.lesson-title-block {
  min-width: 0;
}

.lesson-title-block strong {
  display: block;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.25;
}

.lesson-title-block small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.lesson-count {
  flex: none;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(59,130,246,0.06);
  color: #53627c;
  font-size: 0.8rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
}

.lesson-summary {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.lesson-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.lesson-more {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

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

.plan-card {
  padding: 24px;
  display: grid;
  gap: 16px;
}

.plan-card strong {
  font-size: 1.15rem;
  font-weight: 950;
}

.plan-card .price {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 950;
  line-height: 1;
}

.plan-card .price small {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 700;
}

.vip-plan-block .plan-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.plan-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.plan-card ul li {
  position: relative;
  padding-left: 16px;
}

.plan-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  transform: translateY(-50%);
}

.plan-card.featured {
  border-color: rgba(47, 109, 246, 0.22);
  box-shadow: 0 18px 44px rgba(47, 109, 246, 0.12);
}

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

.info-card {
  padding: 20px;
  display: grid;
  gap: 12px;
}

.info-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(59,130,246,0.06);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
}

.info-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 950;
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.vip-panel {
  padding: 22px;
  display: grid;
  gap: 18px;
}

body[data-view="course-detail"] .main-wrapper {
  background: rgba(59,130,246,0.04);
  border-radius: 0;
  margin: 0;
  padding: 0;
  overflow-y: auto;
}

body[data-view="course-detail"] .course-detail-page {
  width: min(1140px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 18px 0 24px;
  display: grid;
  gap: 18px;
}

body[data-view="course-detail"] .course-detail-topbar {
  width: 100%;
  margin: 0;
  padding: 8px 0 2px;
}

body[data-view="course-detail"] .course-detail-breadcrumbs {
  min-height: 28px;
  gap: 10px;
  color: #69758b;
  font-size: 0.92rem;
  font-weight: 700;
}

body[data-view="course-detail"] .course-back-link {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #69758b;
  flex: none;
}

body[data-view="course-detail"] .course-back-link:hover {
  background: rgba(47, 109, 246, 0.08);
  color: var(--primary);
}

body[data-view="course-detail"] .course-detail-hero-card {
  display: grid;
  grid-template-columns: minmax(320px, 418px) minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
}

body[data-view="course-detail"] .course-cover--detail {
  aspect-ratio: 800 / 450;
  border-radius: 16px;
  background: linear-gradient(135deg, #edf4ff 0%, #f8fbff 100%);
}

body[data-view="course-detail"] .course-cover--detail img {
  position: relative;
  z-index: 1;
}

body[data-view="course-detail"] .course-detail-body {
  display: grid;
  gap: 14px;
  align-content: start;
}

body[data-view="course-detail"] .course-detail-title {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.1;
  font-weight: 950;
}

body[data-view="course-detail"] .course-inline-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

body[data-view="course-detail"] .course-level-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(34,197,94,0.08);
  color: #22c55e;
  font-size: 0.8rem;
  font-weight: 800;
}

body[data-view="course-detail"] .course-access-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(245,158,11,0.10);
  color: #f59e0b;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

body[data-view="course-detail"] .course-inline-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #667085;
  font-size: 0.94rem;
  font-weight: 700;
  white-space: nowrap;
}

body[data-view="course-detail"] .course-inline-stat i {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  font-size: 0.95rem;
}

body[data-view="course-detail"] .course-inline-stat--purple i {
  background: rgba(167,139,250,0.06);
  color: #8b5cf6;
}

body[data-view="course-detail"] .course-inline-stat--green i {
  background: rgba(34,197,94,0.08);
  color: #22c55e;
}

body[data-view="course-detail"] .course-inline-stat--teal i {
  background: rgba(59,130,246,0.08);
  color: #3b82f6;
}

body[data-view="course-detail"] .course-inline-stat strong {
  color: #e2e8f0;
  font-size: 1rem;
  font-weight: 850;
}

body[data-view="course-detail"] .course-inline-stat em {
  font-style: normal;
  color: inherit;
}

body[data-view="course-detail"] .course-detail-desc {
  margin: 0;
  color: #5d687d;
  font-size: 0.94rem;
  line-height: 1.72;
}

body[data-view="course-detail"] .course-detail-notice {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(245,158,11,0.30);
  background: rgba(167,139,250,0.10);
  color: #b46e28;
  font-size: 0.92rem;
  font-weight: 700;
}

body[data-view="course-detail"] .course-detail-notice.is-member-only {
  border-color: rgba(245, 158, 11, 0.30);
  background: rgba(245, 158, 11, 0.10);
  color: #f97316;
}

body[data-view="course-detail"] .course-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
}

body[data-view="course-detail"] .course-detail-actions .button {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 800;
}

body[data-view="course-detail"] .course-detail-actions .button i {
  font-size: 1rem;
}

body[data-view="course-detail"] .course-directory-card {
  padding: 16px 18px 18px;
  display: grid;
  gap: 12px;
}

body[data-view="course-detail"] .course-directory-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #2a3252;
}

body[data-view="course-detail"] .course-directory-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

body[data-view="course-detail"] .course-directory-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  color: var(--primary);
  flex: none;
}

body[data-view="course-detail"] .course-directory-title h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
  font-weight: 950;
}

body[data-view="course-detail"] .course-directory-title span,
body[data-view="course-detail"] .course-directory-total {
  color: var(--muted-2);
  font-size: 0.82rem;
  font-weight: 700;
}

body[data-view="course-detail"] .course-lesson-list {
  display: grid;
}

body[data-view="course-detail"] .course-lesson-row {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 15px 4px 15px 0;
  border: 0;
  border-top: 1px solid #2a3252;
  background: transparent;
  text-align: left;
}

body[data-view="course-detail"] .course-lesson-row:first-child {
  border-top: 0;
}

body[data-view="course-detail"] .course-lesson-row:hover {
  background: rgba(47, 109, 246, 0.03);
}

body[data-view="course-detail"] .course-lesson-row.is-open {
  background: rgba(59,130,246,0.04);
}

body[data-view="course-detail"] .course-lesson-row.is-locked,
body[data-view="course-detail"] .course-lesson-row:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

body[data-view="course-detail"] .course-lesson-row.is-locked:hover,
body[data-view="course-detail"] .course-lesson-row:disabled:hover {
  background: transparent;
}

body[data-view="course-detail"] .course-lesson-row.is-locked .course-lesson-chevron,
body[data-view="course-detail"] .course-lesson-row:disabled .course-lesson-chevron {
  opacity: 0.48;
}

body[data-view="course-detail"] .course-lesson-index {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #3f69e7;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.84rem;
  font-weight: 800;
  flex: none;
}

body[data-view="course-detail"] .course-lesson-content {
  min-width: 0;
  display: grid;
  gap: 6px;
}

body[data-view="course-detail"] .course-lesson-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

body[data-view="course-detail"] .course-lesson-level-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(63, 105, 231, 0.16);
  background: rgba(63, 105, 231, 0.07);
  color: #3f69e7;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

body[data-view="course-detail"] .course-lesson-level-pill.is-primary {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.16);
  color: #16a34a;
}

body[data-view="course-detail"] .course-lesson-name {
  font-size: 0.96rem;
  line-height: 1.28;
  font-weight: 850;
  color: #e2e8f0;
}

body[data-view="course-detail"] .course-lesson-desc {
  color: #7d889b;
  font-size: 0.82rem;
  line-height: 1.55;
}

body[data-view="course-detail"] .course-lesson-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  color: #8a93a6;
  font-size: 0.88rem;
  font-weight: 700;
  padding-top: 4px;
  white-space: nowrap;
}

body[data-view="course-detail"] .course-lesson-chevron {
  color: #c1c8d6;
  font-size: 1rem;
}

body[data-view="course-detail"] .course-directory-more {
  display: flex;
  justify-content: center;
  padding-top: 10px;
}

body[data-view="course-detail"] .course-directory-more .button {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 800;
}

body[data-view="course-detail"] .course-vip-panel {
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 18px;
}

body[data-view="course-detail"] .course-vip-intro,
body[data-view="course-detail"] .course-vip-plans {
  display: grid;
  gap: 14px;
}

body[data-view="course-detail"] .premium-label {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(59,130,246,0.06);
  color: #6b73d6;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  width: fit-content;
}

body[data-view="course-detail"] .course-vip-intro h3,
body[data-view="course-detail"] .course-vip-plans h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 950;
}

body[data-view="course-detail"] .course-vip-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

body[data-view="course-detail"] .course-vip-benefits {
  display: grid;
  gap: 10px;
}

body[data-view="course-detail"] .vip-benefit {
  padding: 14px 16px;
  border-radius: 14px;
  background: #131829;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
}

body[data-view="course-detail"] .vip-benefit strong {
  font-size: 0.94rem;
  font-weight: 900;
}

body[data-view="course-detail"] .vip-benefit span {
  color: var(--muted);
  font-size: 0.84rem;
}

body[data-view="course-detail"] .course-vip-quote {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: #131829;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.7;
}

body[data-view="course-detail"] .course-vip-quote em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  font-size: 0.82rem;
}

body[data-view="course-detail"] .course-vip-plan-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body[data-view="course-detail"] .course-vip-plan-grid .plan-card {
  padding: 16px;
  gap: 12px;
  border-radius: 16px;
}

body[data-view="course-detail"] .course-vip-plan-grid .plan-card.featured {
  border-color: rgba(47, 109, 246, 0.24);
  background: rgba(59,130,246,0.04);
}

body[data-view="course-detail"] .course-vip-plan-grid .plan-card strong {
  font-size: 0.92rem;
}

body[data-view="course-detail"] .course-vip-plan-grid .price {
  font-size: 1.45rem;
}

body[data-view="course-detail"] .course-vip-plan-grid .price small {
  font-size: 0.82rem;
}

body[data-view="course-detail"] .course-vip-plan-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

body[data-view="course-detail"] .course-vip-plan-grid ul {
  gap: 8px;
  font-size: 0.84rem;
}

body[data-view="course-detail"] .course-vip-pay {
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
}

body[data-view="course-detail"] .course-vip-pay .vip-pay-types .chip {
  min-height: 34px;
}

body[data-view="course-detail"] .course-vip-pay .button.primary {
  min-height: 42px;
  border-radius: 10px;
}

body[data-view="course-detail"] .course-vip-pay p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

/* Reference-style page overrides */
body[data-view="my-courses"] .grid-3 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

body[data-view="my-courses"] .section-card:not(.vip-panel) {
  gap: 14px;
}

.market-search {
  min-width: min(420px, 100%);
  max-width: 520px;
  margin-left: auto;
}

.market-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.market-notice strong {
  font-size: 0.96rem;
  line-height: 1.6;
  color: #e2e8f0;
}

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

.market-course-card {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #131829;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.market-course-card .img {
  position: relative;
  aspect-ratio: 726 / 414;
  overflow: hidden;
  background: linear-gradient(135deg, #edf4ff 0%, #f8fbff 100%);
}

.market-course-card .img-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #cbd5e1;
  font-size: 1.5rem;
}

.market-course-card .img img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.market-card-info {
  padding: 14px 16px 16px;
  display: grid;
  gap: 10px;
}

.market-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.level-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.level-badge.cj {
  background: rgba(59,130,246,0.08);
  color: #60a5fa;
}

.level-badge.zj {
  background: rgba(167,139,250,0.06);
  color: #5f46e5;
}

.level-badge.gj {
  background: rgba(167,139,250,0.08);
  color: #d97706;
}

.market-card-footer .count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.market-category-card .chip-list .chip.on {
  background: #111;
  border-color: #111;
  color: #fff;
  box-shadow: none;
}

.market-filter-card .chip-list .chip.on {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.market-course-card h6 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 950;
}

.market-pages,
.pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.market-pages a,
.market-pages span,
.pages a,
.pages span {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  background: #131829;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 800;
}

.market-pages .on,
.pages .on {
  background: rgba(47, 109, 246, 0.08);
  border-color: rgba(47, 109, 246, 0.18);
  color: var(--primary);
}

.guide-topbar {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.guide-top-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: #131829;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.guide-top-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(59,130,246,0.08);
  color: var(--primary);
  font-size: 1.35rem;
  flex: none;
}

.guide-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.guide-intro-card {
  padding-bottom: 18px;
}

.guide-series-list {
  display: grid;
  gap: 18px;
}

.guide-series-group {
  gap: 16px;
}

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

.guide-series-card {
  min-height: 104px;
  padding: 16px;
  display: grid;
  gap: 8px;
  border-radius: 18px;
  background: #131829;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.guide-series-card strong {
  font-size: 0.98rem;
  line-height: 1.4;
  font-weight: 950;
}

.guide-series-card span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.course-series-hero {
  display: grid;
  gap: 24px;
}

.course-series-hero__body {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.course-series-hero__visual {
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

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

.course-series-hero__content {
  display: grid;
  gap: 16px;
}

.course-series-hero__content h1 {
  margin: 0;
  font-size: clamp(1.8rem, 2.4vw, 3rem);
  line-height: 1.08;
  font-weight: 950;
}

.course-series-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.course-series-stats {
  gap: 12px;
}

.course-series-metric {
  min-height: 112px;
}

.course-series-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.course-series-section {
  margin-top: 18px;
}

.course-series-card {
  cursor: pointer;
}

.course-series-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.course-series-card__link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(47, 109, 246, 0.08);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
}

.course-series-tip {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.course-series-tip strong {
  font-size: 1rem;
  line-height: 1.5;
}

.guide {
  display: grid;
  gap: 18px;
}

.guide_title {
  display: grid;
  grid-template-columns: 56px minmax(0, auto) 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: #131829;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.guide_title label {
  width: 48px;
  height: 48px;
  margin: 0;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(180deg, #3c78f5 0%, #2f6df6 100%);
  color: #fff;
  font-size: 1.15rem;
  box-shadow: 0 14px 30px rgba(47, 109, 246, 0.22);
}

.guide_title h3 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.1;
  font-weight: 950;
}

.guide_title .groupBox {
  margin: 0;
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(59,130,246,0.04);
  border: 1px solid rgba(59,130,246,0.20);
}

.guide_title .groupBox span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 14px;
  color: #59667e;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 800;
}

.guide_title .groupBox span.on {
  background: #131829;
  color: var(--primary);
  box-shadow: 0 10px 24px rgba(47, 109, 246, 0.08);
}

#seriesBox {
  display: grid;
  gap: 22px;
}

.Type {
  display: grid;
  gap: 16px;
  padding: 18px 20px 20px;
  border-radius: var(--radius);
  background: #131829;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.TypeName {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.TypeName label {
  width: 42px;
  height: 42px;
  margin: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(59,130,246,0.08);
  color: #4970e6;
  font-size: 1.08rem;
}

.TypeName h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  font-size: 1.45rem;
  line-height: 1.1;
  font-weight: 950;
}

.TypeName h2 span {
  display: inline-block;
}

.TypeName a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 800;
}

.Type ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.Type li {
  cursor: pointer;
  overflow: hidden;
  border-radius: 18px;
  background: #131829;
  border: 1px solid #2a3252;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.Type li .img {
  position: relative;
  aspect-ratio: 546 / 546;
  overflow: hidden;
  background: linear-gradient(135deg, #f6f8ff 0%, #eef4ff 100%);
}

.Type li .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.Type li .skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(59,130,246,0.2), rgba(59,130,246,0.55), rgba(59,130,246,0.2));
}

.Type li .play-overlay {
  position: absolute;
  inset: auto 14px 14px auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(19, 24, 41, 0.96);
  color: var(--primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.Type li .info {
  padding: 14px 14px 16px;
  display: grid;
  gap: 10px;
}

.series-name {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 950;
}

.series-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.course-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #5f6f85;
  font-size: 0.85rem;
  font-weight: 800;
}

.start-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: rgba(47, 109, 246, 0.08);
}

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

.vip-feature,
.vip-quote {
  padding: 18px;
  border-radius: 18px;
  background: #131829;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: var(--shadow);
}

.vip-feature strong,
.vip-quote p {
  display: block;
  margin: 0;
  font-weight: 900;
}

.vip-feature p,
.vip-quote span {
  display: block;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.vip-plan-block {
  display: grid;
  gap: 14px;
}

.vip-plan-block h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 950;
  color: var(--text);
}

.vip-pay {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: #131829;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: var(--shadow);
}

.vip-pay > div {
  display: grid;
  gap: 10px;
}

.vip-pay > div > span {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
}

.vip-pay-types {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vip-pay-types .chip {
  background: rgba(59,130,246,0.04);
  border-color: var(--border);
  color: var(--text);
}

.vip-pay-summary {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.vip-pay-summary p {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.vip-pay-summary strong {
  color: var(--text);
}

.dashboard-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 12px 0 2px;
  background: transparent;
  border-top: 0;
  box-shadow: none;
}

.dashboard-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.dashboard-footer .footer-links a {
  color: var(--muted);
}

.dashboard-footer .footer-links a:hover {
  color: var(--primary);
}

.continue-course-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #131829;
  box-shadow: var(--shadow);
}

.continue-course-card .course-cover {
  border-radius: 20px 0 0 20px;
}

.continue-course-card .course-body {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.continue-course-card .course-body h4 {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 950;
}

.continue-course-card .course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
}

.recent-course {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #131829;
  box-shadow: var(--shadow);
}

.recent-course-cover img {
  width: 108px;
  height: 84px;
  border-radius: 14px;
  object-fit: cover;
}

.recent-course-body {
  display: grid;
  gap: 8px;
}

.recent-course-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.recent-course-status {
  color: var(--primary);
}

.recent-course h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 950;
}

.recent-course p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.recent-course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.recent-course-add {
  grid-template-columns: 1fr;
  min-height: 100%;
  cursor: pointer;
  align-items: stretch;
  justify-items: stretch;
  background: #131829;
  padding: 14px;
}

.recent-course-add-inner {
  min-height: 100%;
  width: 100%;
  display: grid;
  place-items: center;
  gap: 12px;
  border-radius: 18px;
  border: 1px dashed rgba(47, 109, 246, 0.18);
  background: linear-gradient(180deg, #131829 0%, #0a0e1a 100%);
  color: var(--primary);
}

.recent-course-add-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(47, 109, 246, 0.12);
  font-size: 1.35rem;
}

.recent-course-add strong {
  font-size: 1rem;
  font-weight: 900;
}

/* Market */
.market-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.page-grid {
  display: grid;
  gap: 16px;
}

.market-spotlight {
  display: grid;
  gap: 12px;
}

.market-spotlight-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #131829;
  border: 1px solid var(--border);
}

.market-spotlight-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 900;
}

.market-spotlight-item span {
  color: var(--muted);
  font-size: 0.84rem;
}

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

.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #131829;
  border: 1px solid var(--border);
  text-align: left;
}

.category-item.on {
  background: rgba(47, 109, 246, 0.08);
  border-color: rgba(47, 109, 246, 0.18);
}

.category-item b {
  display: block;
  font-size: 0.95rem;
  font-weight: 900;
}

.category-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.category-card {
  padding: 16px;
  display: grid;
  gap: 8px;
}

/* Vocabulary */
.vocab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
  align-items: start;
}

.vocab-copy {
  display: grid;
  gap: 14px;
  padding-top: 8px;
}

.vocab-copy h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  line-height: 1.05;
  font-weight: 950;
}

.vocab-copy p {
  margin: 0;
  color: var(--muted);
  max-width: 640px;
}

.vocab-panel {
  padding: 18px;
  display: grid;
  gap: 16px;
}

.vocab-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vocab-row h3 {
  margin: 8px 0 0;
  font-size: 1.6rem;
  font-weight: 950;
}

.vocab-ring {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 8px solid rgba(47, 109, 246, 0.12);
  background: #131829;
  color: var(--primary);
  font-weight: 950;
  font-size: 1.1rem;
}

.vocab-definition {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(59,130,246,0.04);
  border: 1px solid var(--border);
  font-weight: 800;
}

.vocab-example {
  color: var(--muted);
}

/* Quick links and lists */
.quick-link-card {
  padding: 16px;
  display: grid;
  gap: 6px;
  min-height: 92px;
}

.quick-link-card strong {
  font-size: 0.98rem;
  font-weight: 950;
}

.quick-link-card span {
  color: var(--muted);
  font-size: 0.84rem;
}

.list-plain {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(59,130,246,0.04);
  border: 1px solid var(--border);
}

.activity-item b {
  display: block;
}

.activity-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Practice */
.practice-stage {
  padding: 16px 16px 18px;
  display: grid;
  gap: 18px;
}

.practice-panel {
  padding: 24px;
  background: #0f172a;
  color: #fff;
  border-color: rgba(59, 130, 246, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.practice-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.practice-header h2 {
  margin: 12px 0 8px;
  font-size: 1.8rem;
  font-weight: 950;
}

.practice-header p {
  margin: 0;
  max-width: 840px;
  color: #cbd5e1;
}

.practice-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.practice-answer,
.practice-note,
.practice-wordlist {
  padding: 20px;
}

.practice-answer {
  display: grid;
  gap: 16px;
  background: #111827;
  color: #fff;
  border-color: rgba(59, 130, 246, 0.12);
}

.practice-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(47, 109, 246, 0.18);
  color: #bfdbfe;
  font-size: 0.8rem;
  font-weight: 800;
}

.answer-text {
  padding: 16px;
  border-radius: 18px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.12);
  line-height: 1.8;
}

.practice-note p {
  margin: 0 0 12px;
  color: var(--muted);
}

.practice-wordlist h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 950;
}

.practice-wordlist ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.floating-tools {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
  z-index: 30;
}

.tool {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #131829;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}

.tool svg {
  width: 20px;
  height: 20px;
  color: var(--text);
}

body[data-view="course-detail"] .tool.is-locked {
  opacity: 0.56;
  cursor: not-allowed;
}

body[data-view="course-detail"] .tool.is-locked svg {
  color: var(--muted);
}

/* Upgrade and long cards */
.trial-banner + .plan-grid,
.vip-panel .plan-grid {
  margin-top: 2px;
}

.support-strip,
.trial-banner,
.notice-strip,
.dashboard-hero,
.vip-panel {
  border-radius: var(--radius);
}

/* Reference parity pass */
body[data-view="dashboard"] {
  background: #131829;
}

.mainBox.report {
  background: rgba(59,130,246,0.06);
  padding: 20px;
}

.study-shell {
  display: block;
  min-height: 100vh;
  padding-left: 174px;
}

.study-sidebar {
  width: 144px !important;
  transition: all .3s linear !important;
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  padding: 0 16px 16px !important;
  height: calc(100% - 7px) !important;
  height: calc(100dvh - 7px) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  z-index: 999 !important;
  background: #131829 !important;
  border-right: 1px solid #2a3252 !important;
}

.sidebar-wrapper {
  width: 144px !important;
  transition: all .3s linear !important;
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  padding: 0 16px 16px !important;
  height: calc(100% - 7px) !important;
  height: calc(100dvh - 7px) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  z-index: 999 !important;
}

.logo-wrapper {
  line-height: 1 !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  text-align: left !important;
  margin: 4px 0 0 0 !important;
  flex: 0 0 auto !important;
  padding: 12px 14px !important;
  min-height: 72px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(59, 130, 246, 0.20) !important;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.14) 0%, rgba(19, 24, 41, 0.96) 100%) !important;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24) !important;
  text-decoration: none !important;
  color: #ffffff !important;
}

.logo-wrapper img {
  width: 64px !important;
  height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;
  object-fit: contain !important;
  display: block !important;
  vertical-align: middle !important;
  position: relative !important;
  top: 0 !important;
}

.logo-wrapper img.small {
  display: none !important;
}

.sidebar {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-left: 16px !important;
  padding-right: 8px !important;
  padding-bottom: 8px !important;
  margin-left: -16px !important;
  margin-right: -8px !important;
  display: block !important;
}

.sidebar ul {
  margin: 4px 0 4px !important;
  padding: 0 0 4px !important;
  list-style: none !important;
  gap: 0 !important;
  display: block !important;
}

.sidebar-item {
  height: 36px !important;
  padding: 0 !important;
  margin-bottom: 8px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

.sidebar-item a {
  width: calc(100% - 2px) !important;
  margin: 0 1px !important;
  padding-left: 0 !important;
  overflow: hidden !important;
  line-height: 1.1 !important;
  color: #7a85a8 !important;
  cursor: pointer !important;
  font-size: 14px !important;
  white-space: nowrap !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  position: relative !important;
  height: 36px !important;
  min-height: 0 !important;
  padding-right: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-weight: 400 !important;
}

.sidebar-item a:hover {
  background: transparent !important;
  border-color: transparent !important;
}

.sidebar-item:hover {
  background: rgba(59,130,246,0.06) !important;
  border-color: #2a3252 !important;
  transform: scale(1.05) !important;
}

.sidebar-item a img.sidebar-menu-icon,
.sidebar-item a span {
  width: 18px !important;
  min-width: 18px !important;
  font-size: 16px !important;
  margin-right: 0 !important;
  flex-shrink: 0 !important;
}

.sidebar-item a img.sidebar-menu-icon {
  width: 24px !important;
  height: 24px !important;
  object-fit: contain !important;
}

.sidebar-wrapper li.active .sidebar-item a {
  color: #e2e8f0 !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.sidebar-wrapper li.active .sidebar-item {
  background: #cee6fe !important;
  border-color: transparent !important;
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, .1) !important;
}

.sidebar-wrapper li.active .sidebar-item::before {
  display: none !important;
}

.userinfo {
  display: block !important;
  cursor: pointer !important;
  position: relative !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  margin-top: 8px !important;
}

.UserImg {
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 10px 12px !important;
  border: 1px solid var(--bordere8e9eb) !important;
  border-radius: 16px !important;
  background: #131829 !important;
  box-shadow: var(--shadow) !important;
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer !important;
}

.UserImg img {
  width: 40px !important;
  height: 40px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
  position: relative !important;
  z-index: 111 !important;
  background: #1a2138 !important;
}

.UserImg p {
  display: grid !important;
  gap: 2px !important;
  align-content: center !important;
  min-width: 0 !important;
  position: relative !important;
  transition: all .2s linear !important;
}

.UserImg b {
  display: block !important;
  font-weight: 550 !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  width: 100% !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

.UserImg i {
  display: block !important;
  font-style: normal !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  color: var(--muted) !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

.userbox {
  display: none !important;
}

.main-wrapper,
.study-main {
  background: #131829;
  border-radius: 10px;
  height: calc(100% - 20px);
  margin: 10px 0 10px 10px;
  position: relative;
  overflow-y: auto;
  padding-right: 10px;
  min-width: 0;
}

.page-wrap {
  width: min(1194px, 100%);
  margin: 0 auto;
  gap: 16px;
}

body[data-view="dashboard"] .page-wrap {
  width: min(1184px, 100%);
}

body[data-view="my-courses"] .page-wrap {
  width: min(1140px, 100%);
}

body[data-view="guide"] .page-wrap.maxWidth {
  width: min(1140px, 100%);
}

body[data-view="market"] .page-wrap {
  width: min(1360px, 100%) !important;
  gap: 12px !important;
}

.study-topbar {
  width: min(1194px, 100%);
  margin: 0 auto;
  padding: 24px 0 20px;
}

body[data-view="market"] .study-topbar {
  align-items: flex-start;
  width: min(1360px, 100%) !important;
}

body[data-view="market"] .main-wrapper {
  background: linear-gradient(180deg, #f6f4ff 0%, #eef1ff 100%) !important;
  display: grid;
  align-content: start;
  gap: 14px;
}

body[data-view="market"] .sidebar-item a {
  justify-content: center !important;
  padding: 0 12px !important;
}

body[data-view="market"] .sidebar-item a span,
body[data-view="market"] .sidebar-item a i {
  line-height: 1 !important;
}

body[data-view="my-courses"] .study-topbar {
  width: min(1100px, 100%);
  align-items: center;
  padding: 18px 0 14px;
}

.study-header-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 800;
}

body[data-view="my-courses"] .study-header-title {
  font-size: 24px;
  line-height: 35px;
}

.study-header-subtitle {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.section-card-head h3,
.section-head h2 {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
}

.section-card-head p,
.section-head p,
.section-card-head > span,
.section-head > span {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.panel-card,
.section-card {
  padding: 18px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

body[data-view="dashboard"] .dashboard-hero {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body[data-view="dashboard"] .dashboard-hero-user {
  min-width: 260px;
  gap: 12px;
}

body[data-view="dashboard"] .dashboard-hero-user img {
  width: 48px;
  height: 48px;
}

body[data-view="dashboard"] .dashboard-hero-stat {
  flex: 0 0 auto;
  min-width: 250px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body[data-view="dashboard"] .dashboard-hero-stat .badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(59,130,246,0.08);
}

body[data-view="dashboard"] .dashboard-hero > .dashboard-hero-stat:first-of-type .badge {
  background: rgba(59,130,246,0.08);
  color: #60a5fa;
}

body[data-view="dashboard"] .dashboard-hero > .dashboard-hero-stat:last-of-type .badge {
  background: rgba(167,139,250,0.10);
  color: #9b6cff;
}

body[data-view="dashboard"] .dashboard-hero-stat strong {
  font-size: 28px;
}

body[data-view="dashboard"] .hero-action-stack {
  gap: 12px;
}

body[data-view="dashboard"] .hero-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: none;
}

body[data-view="dashboard"] .metric-grid {
  width: 1184px;
  margin: 0 auto;
  gap: 16px;
}

body[data-view="dashboard"] .metric-card {
  min-height: 126px;
  padding: 22px 20px;
  border-radius: 16px;
  background: #131829;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

body[data-view="dashboard"] .metric-card-label {
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #8591a3;
  font-size: 14px;
  font-weight: 400;
}

body[data-view="dashboard"] .metric-card strong {
  display: block;
  margin-top: 12px;
  font-size: 28px;
  line-height: 1.1;
  color: #e2e8f0;
}

body[data-view="dashboard"] .metric-card p {
  display: none;
}

body[data-view="dashboard"] .dashboard-trend-head h2,
body[data-view="dashboard"] .dashboard-error-card .section-card-head strong,
body[data-view="dashboard"] .dashboard-vocab h3 {
  font-size: 20px;
}

body[data-view="dashboard"] .dashboard-course-list .course-card.compact {
  grid-template-columns: 160px minmax(0, 1fr);
}

body[data-view="dashboard"] .dashboard-course-list .course-card.compact .course-cover {
  min-height: 90px;
  border-radius: 8px 0 0 8px;
}

body[data-view="dashboard"] .recent-course {
  padding: 12px;
  gap: 12px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

body[data-view="dashboard"] .recent-course img {
  width: 90px;
  height: 72px;
  border-radius: 10px;
}

body[data-view="market"] .study-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px 0 10px !important;
}

body[data-view="market"] .study-topbar > div:first-child {
  display: grid;
  gap: 2px !important;
}

body[data-view="market"] .market-search {
  position: relative;
  display: block;
  width: 352px !important;
  min-width: 352px !important;
  max-width: 352px !important;
  height: 42px !important;
  margin-left: auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body[data-view="market"] .market-search svg {
  position: absolute;
  left: 16px;
  top: 11px;
  z-index: 1;
  width: 18px;
  height: 18px;
  color: #94a3b8;
}

body[data-view="market"] .market-search input {
  width: 100%;
  height: 42px;
  padding: 0 38px 0 42px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #131829;
  border-color: rgba(229, 237, 246, 0.95);
  box-shadow: none;
  font-size: 14px;
}

body[data-view="market"] .market-category-card,
body[data-view="market"] .market-filter-card,
body[data-view="market"] .market-list-card {
  padding: 14px 16px;
  gap: 12px;
  background: #131829;
  border: 1px solid rgba(229, 237, 246, 0.92);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

body[data-view="market"] .market-notice {
  padding: 12px 16px;
  gap: 12px;
  background: #131829;
  border: 1px solid rgba(229, 237, 246, 0.92);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

body[data-view="market"] .market-notice .notice-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: linear-gradient(180deg, #f5f9ff 0%, #e9f2ff 100%);
  border: 1px solid rgba(63, 122, 248, 0.12);
  color: #60a5fa;
  font-size: 16px;
  font-weight: 800;
  box-shadow: none;
}

body[data-view="market"] .market-notice .notice-icon i {
  font-size: 16px;
  line-height: 1;
  color: #60a5fa;
}

body[data-view="market"] .market-notice .notice-icon span {
  font-size: 16px;
  line-height: 1;
  color: #60a5fa;
  font-weight: 900;
}

body[data-view="market"] .market-notice .notice-main {
  flex: 1;
  min-width: 0;
}

body[data-view="market"] .market-notice .notice-main strong {
  color: #60a5fa;
  font-size: 14px;
  line-height: 1.45;
}

body[data-view="market"] .market-notice .button.secondary {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  border-color: rgba(229, 237, 246, 0.95);
  background: rgba(59,130,246,0.04);
  box-shadow: none;
  color: #60a5fa;
  font-size: 13px;
}

body[data-view="market"] .market-category-card .section-card-head,
body[data-view="market"] .market-filter-card .section-card-head,
body[data-view="market"] .market-list-card .section-card-head {
  display: none;
}

body[data-view="market"] .market-category-card .chip-list {
  gap: 10px;
}

body[data-view="market"] .market-category-card .chip {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(229, 237, 246, 0.96);
  background: rgba(59,130,246,0.04);
  color: #5b6474;
  font-size: 13px;
  font-weight: 400;
  box-shadow: none;
}

body[data-view="market"] .market-category-card .chip.on {
  background: rgba(47, 109, 246, 0.08);
  border-color: rgba(47, 109, 246, 0.18);
  color: #60a5fa;
}

body[data-view="market"] .market-filter-card .chip {
  min-height: 28px;
  padding: 0 12px;
  border-radius: 20px;
  border: 1px solid rgba(229, 237, 246, 0.96);
  background: rgba(59,130,246,0.04);
  color: #5b6474;
  font-size: 12px;
  font-weight: 400;
  box-shadow: none;
}

body[data-view="market"] .market-filter-card .chip.on {
  background: rgba(47, 109, 246, 0.1);
  border-color: rgba(47, 109, 246, 0.18);
  color: #60a5fa;
}

body[data-view="market"] .market-course-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body[data-view="market"] .market-course-card {
  overflow: hidden;
  width: auto;
  min-height: 264px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(229, 237, 246, 0.92) !important;
  background: #131829 !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body[data-view="market"] .market-course-card--loading {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 264px !important;
  cursor: progress;
  background: linear-gradient(180deg, rgba(19, 24, 41, 0.98) 0%, rgba(10, 14, 26, 0.98) 100%) !important;
}

body[data-view="market"] .market-course-card--loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.05) 50%, transparent 82%);
  transform: translateX(-120%);
  animation: market-loading-shimmer 1.45s ease-in-out infinite;
}

body[data-view="market"] .market-course-loading {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  color: #e2e8f0;
}

body[data-view="market"] .market-course-loading strong {
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

body[data-view="market"] .market-course-loading span {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.55;
}

body[data-view="market"] .market-course-card--empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 220px !important;
  cursor: default;
}

body[data-view="market"] .market-course-empty,
body[data-view="course-series"] .course-series-empty__content {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 28px 24px;
  text-align: center;
}

body[data-view="market"] .market-course-empty > i,
body[data-view="course-series"] .course-series-empty__content > i {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(0, 126, 222, 0.2);
  border-radius: 14px;
  background: rgba(0, 126, 222, 0.08);
  color: #007EDE;
  font-size: 24px;
}

body[data-view="market"] .market-course-empty strong,
body[data-view="course-series"] .course-series-empty__content strong {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

body[data-view="market"] .market-course-empty span,
body[data-view="course-series"] .course-series-empty__content span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

body[data-view="course-series"] .course-series-empty {
  grid-column: 1 / -1;
  padding: 24px;
}

body[data-view] :is(.market-spotlight-item--loading, .category-card--loading) > .app-loading-brand {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  border-radius: 12px;
}

body[data-view] :is(.market-spotlight-item--loading, .category-card--loading) > .app-loading-brand img {
  width: 38px;
  height: 38px;
}

body[data-view] :is(button, a)[aria-busy="true"] {
  cursor: progress;
}

body[data-view] :is(button, a)[aria-busy="true"] .ri-loader-4-line {
  display: inline-block;
  animation: market-loading-spin 1s linear infinite;
}

body[data-view="market"] .market-loading-icon {
  color: #60a5fa;
  font-size: 34px;
  animation: market-loading-spin 1s linear infinite;
}

body[data-view="market"] .market-course-card .img {
  aspect-ratio: 726 / 414;
}

body[data-view="market"] .market-course-card .img-placeholder.hidden {
  display: none;
}

body[data-view="market"] .market-card-info {
  padding: 12px 12px 12px !important;
  gap: 6px !important;
}

body[data-view="market"] .market-course-card h6 {
  margin: 0;
  font-size: 14px !important;
  line-height: 1.32 !important;
  font-weight: 700 !important;
  color: #e2e8f0 !important;
}

body[data-view="market"] .market-course-card:hover {
  transform: translateY(-1px);
}

body[data-view="market"] .level-badge {
  min-height: 18px !important;
  padding: 0 6px !important;
  border-radius: 8px !important;
  font-size: 10px !important;
  line-height: 18px !important;
}

body[data-view="market"] .course-badge.is-member-only {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.96) 0%, rgba(239, 68, 68, 0.94) 100%) !important;
  color: #ffffff !important;
}

body[data-view="market"] .market-card-footer .count {
  font-size: 11px !important;
  color: #94a3b8;
}

body[data-view="market"] .market-pages,
body[data-view="market"] .pages {
  margin-top: 10px;
}

body[data-view="market"] .market-pages a,
body[data-view="market"] .market-pages span,
body[data-view="market"] .pages a,
body[data-view="market"] .pages span {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  background: #131829;
  border-color: rgba(229, 237, 246, 0.95);
  box-shadow: none;
}

body[data-view="market"] .market-pages .on,
body[data-view="market"] .pages .on {
  background: rgba(47, 109, 246, 0.08);
  border-color: rgba(47, 109, 246, 0.18);
  color: var(--primary);
}

body[data-view="market"] .section-card-head [data-market-result-count] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 400;
}

body[data-view="market"] .section-card-head [data-market-result-count] i {
  color: #94a3b8;
}

body[data-view="market"] .section-card-head [data-market-result-count] strong {
  color: #60a5fa;
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
}

@keyframes market-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes app-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes app-loading-brand-breathe {
  0%, 100% {
    transform: scale(0.94);
    opacity: 0.82;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes app-loading-brand-sheen {
  0%, 30% {
    transform: translateX(-45%);
  }
  72%, 100% {
    transform: translateX(45%);
  }
}

@keyframes market-loading-shimmer {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

body[data-view="guide"] .guide {
  width: min(1140px, 100%);
  margin: 0 auto;
  gap: 18px;
}

body[data-view="guide"] .guide_title {
  width: 100%;
  max-width: 1140px;
  box-sizing: border-box;
  padding: 24px 32px;
  border-radius: 16px;
  background: rgba(59,130,246,0.04);
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
}

body[data-view="guide"] .guide_title label {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4d7cf5 0%, #2f6df6 100%);
  color: #fff;
  font-size: 20px;
  box-shadow: 0 8px 20px rgba(47, 109, 246, 0.18);
}

body[data-view="guide"] .guide_title h3 {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
}

body[data-view="guide"] .guide_title .groupBox {
  gap: 10px;
  padding: 0;
  background: transparent;
  border: 0;
}

body[data-view="guide"] .guide_title .groupBox span {
  min-height: 36px;
  padding: 8px 24px;
  border-radius: 10px;
  color: #6a788e;
  background: transparent;
  font-size: 14px;
  font-weight: 400;
  box-shadow: none;
  cursor: pointer;
}

body[data-view="guide"] .guide_title .groupBox span.on {
  background: rgba(59,130,246,0.04);
  color: #60a5fa;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

body[data-view="guide"] #seriesBox {
  width: 100%;
  max-width: 1140px;
  box-sizing: border-box;
  gap: 22px;
}

body[data-view="guide"] .Type {
  width: 100%;
  max-width: 1140px;
  box-sizing: border-box;
  padding: 1px 0 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  gap: 16px;
}

body[data-view="guide"] .TypeName {
  height: 48px;
}

body[data-view="guide"] .TypeName label {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(30, 95, 248, 0.1);
  color: #60a5fa;
  font-size: 18px;
}

body[data-view="guide"] .guide_title label i,
body[data-view="guide"] .TypeName label i {
  font-size: 18px;
  line-height: 1;
}

body[data-view="guide"] .TypeName h2 {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  color: #e2e8f0;
}

body[data-view="guide"] .TypeName a {
  min-height: 32px;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(30, 95, 248, 0.06);
  color: #60a5fa;
  font-size: 14px;
  font-weight: 400;
}

body[data-view="guide"] .Type ul {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

body[data-view="guide"] .Type li {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(59,130,246,0.04);
  border: 1px solid rgba(0, 0, 0, 0.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body[data-view="guide"] .Type li:hover {
  transform: translateY(-1px);
}

body[data-view="guide"] .Type li .img {
  width: 100%;
  height: 180px;
  aspect-ratio: auto;
  flex: none;
  overflow: hidden;
}

body[data-view="guide"] .Type li .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-view="guide"] .Type li .info {
  min-height: 92px;
  padding: 14px 16px 16px;
  gap: 8px;
}

body[data-view="guide"] .series-name {
  font-size: 16px;
  color: #e2e8f0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body[data-view="guide"] .series-meta {
  min-width: 0;
}

body[data-view="guide"] .course-count {
  min-height: 27px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(30, 95, 248, 0.1);
  color: #60a5fa;
  font-size: 13px;
  white-space: nowrap;
}

body[data-view="guide"] .start-btn {
  width: 32px;
  height: 32px;
  background: #1a2138;
  color: #8591a3;
}

@media (max-width: 1180px) {
  body[data-view="guide"] .Type ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body[data-view="guide"] .Type ul {
    grid-template-columns: 1fr;
  }
}

body[data-view="my-courses"] .mycourses-search {
  flex: 1 1 420px;
  width: min(100%, 520px);
  min-width: min(360px, 100%);
  max-width: 520px;
  margin-left: auto;
  height: 50px;
  padding: 0 16px;
  gap: 10px;
  background: #1a2138;
  border: 1px solid transparent;
  border-radius: 12px;
  box-shadow: none;
}

body[data-view="my-courses"] .mycourses-search svg {
  width: 18px;
  height: 18px;
  color: #8591a3;
  flex: none;
}

body[data-view="my-courses"] .mycourses-search input {
  min-height: 32px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  font-size: 14px;
}

body[data-view="my-courses"] .grid-3 {
  width: 1034px;
  margin: 0 auto;
  gap: 16px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

body[data-view="my-courses"] .metric-card {
  min-height: 94px;
  padding: 16px;
  border-radius: 12px;
  background: #1a2138;
  box-shadow: none;
}

body[data-view="my-courses"] .metric-card-label {
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #8591a3;
  font-size: 13px;
  font-weight: 400;
}

body[data-view="my-courses"] .metric-card strong {
  display: block;
  margin-top: 12px;
  font-size: 28px;
  line-height: 1.2;
  color: #e2e8f0;
}

body[data-view="my-courses"] .continue-course-card {
  width: 1034px;
  margin: 0 auto;
  grid-template-columns: 160px minmax(0, 1fr) 112px;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 12px;
  background: #1a2138;
  box-shadow: none;
  align-items: center;
}

body[data-view="my-courses"] .continue-course-card .course-cover,
body[data-view="my-courses"] .continue-course-card .continue-cover {
  width: 160px;
  height: 90px;
  min-height: 90px;
  border-radius: 8px;
  aspect-ratio: auto;
  background: #1a2138;
  overflow: hidden;
}

body[data-view="my-courses"] .continue-course-card .course-cover img,
body[data-view="my-courses"] .continue-course-card .continue-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-view="my-courses"] .continue-course-card .continue-info {
  display: grid;
  gap: 8px;
  padding: 0;
  min-width: 0;
}

body[data-view="my-courses"] .continue-course-card .course-name {
  font-size: 18px;
  line-height: 1.15;
  color: #e2e8f0;
  font-weight: 400;
}

body[data-view="my-courses"] .continue-course-card .lesson-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: #8591a3;
  font-size: 14px;
  line-height: 1.2;
}

body[data-view="my-courses"] .continue-course-card .lesson-tag,
body[data-view="my-courses"] .continue-course-card .lesson-name,
body[data-view="my-courses"] .continue-course-card .lesson-practice-status {
  display: inline-flex;
  align-items: center;
}

body[data-view="my-courses"] .continue-course-card .lesson-practice-status {
  gap: 4px;
}

body[data-view="my-courses"] .continue-course-card .lesson-practice-status b {
  font-weight: 700;
}

body[data-view="my-courses"] .continue-course-card .progress-container {
  display: grid;
  gap: 6px;
}

body[data-view="my-courses"] .continue-course-card .progress-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #e2e8f0;
}

body[data-view="my-courses"] .continue-course-card .course-progress-label {
  color: #8591a3;
  font-size: 14px;
}

body[data-view="my-courses"] .continue-course-card .course-progress {
  font-size: 14px;
  font-weight: 700;
}

body[data-view="my-courses"] .continue-course-card .progress-bar-wrapper {
  height: 4px;
  overflow: hidden;
  border-radius: 3px;
  background: #2a3252;
}

body[data-view="my-courses"] .continue-course-card .progress-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: #3b82f6;
}

body[data-view="my-courses"] .continue-course-card .continue-action {
  align-self: center;
  display: flex;
  justify-content: flex-end;
}

body[data-view="my-courses"] .continue-course-card .continue-btn {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body[data-view="my-courses"] .chip {
  min-height: 39px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 14px;
}

body[data-view="my-courses"] .course {
  width: 1100px;
  margin: 0 auto;
}

body[data-view="my-courses"] .course ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body[data-view="my-courses"] .course li {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(59,130,246,0.04);
  border: 1px solid rgba(0, 0, 0, 0.02);
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body[data-view="my-courses"] .course li.last-child {
  display: grid;
  place-items: center;
  min-height: 132px;
  border-style: dashed;
  border-color: rgba(47, 109, 246, 0.18);
  background: #131829;
}

body[data-view="my-courses"] .course li .img {
  position: relative;
  aspect-ratio: 740 / 412;
  overflow: hidden;
  background: #1a2138;
}

body[data-view="my-courses"] .course li .img-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #cbd5e1;
  font-size: 1.5rem;
}

body[data-view="my-courses"] .course li .img-placeholder.hidden {
  display: none;
}

body[data-view="my-courses"] .course li .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-view="my-courses"] .course li .img p {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  height: 3px;
  background: #2a3252;
  overflow: hidden;
}

body[data-view="my-courses"] .course li .img p span {
  display: block;
  height: 100%;
  background: #3b82f6;
}

body[data-view="my-courses"] .course li .info {
  padding: 12px 14px 14px;
  display: grid;
  gap: 8px;
}

body[data-view="my-courses"] .course li .desc {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  color: #8591a3;
  font-size: 13px;
}

body[data-view="my-courses"] .course li .desc .progress {
  color: #8591a3;
}

body[data-view="my-courses"] .course li .desc .sep {
  width: 1px;
  height: 12px;
  background: #2a3252;
  display: inline-block;
}

body[data-view="my-courses"] .course li .desc .time {
  color: #8591a3;
}

body[data-view="my-courses"] .course li .top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body[data-view="my-courses"] .course li .top-row h6 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  color: #e2e8f0;
  font-weight: 400;
}

body[data-view="my-courses"] .course li .top-row em {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 5px;
  border-radius: 8px;
  font-size: 9px;
  font-style: normal;
  line-height: 18px;
}

body[data-view="my-courses"] .course li .top-row em.cj {
  background: rgba(34,197,94,0.08);
  color: #22c55e;
}

body[data-view="my-courses"] .course li .top-row em.zj {
  background: rgba(59,130,246,0.08);
  color: #60a5fa;
}

body[data-view="my-courses"] .course li .top-row em.gj {
  background: rgba(167,139,250,0.08);
  color: #5f46e5;
}

body[data-view="my-courses"] .course li .add {
  display: grid;
  place-items: center;
  min-height: 132px;
}

body[data-view="my-courses"] .course li .add p {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 900;
  font-size: 0.98rem;
}

body[data-view="my-courses"] .course li .add i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(47, 109, 246, 0.12);
}

body[data-view="my-courses"] .course li:hover {
  transform: translateY(-1px);
}

body[data-view="my-courses"] .recent-course-footer {
  display: none;
}

/* Responsive */
@media (max-width: 1180px) {
  .dashboard-hero {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .dashboard-subgrid,
  .market-layout,
  .vocab-grid,
  .detail-card--market,
  .course-grid.compact,
  .practice-grid {
    grid-template-columns: 1fr;
  }

  .course-card.compact {
    grid-template-columns: 1fr;
  }

  .course-card.compact .course-cover {
    border-radius: 18px 18px 0 0;
  }

  .grid-4,
  .metric-grid,
  .plan-grid,
  .info-grid,
  .course-grid,
  .market-course-grid,
  .course-series-stats,
  .guide-series-grid,
  .Type ul,
  .vip-copy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-view="my-courses"] .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .study-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .userinfo {
    display: none;
  }

  .main-wrapper,
  .study-main {
    padding: 12px;
  }

  .study-topbar {
    flex-direction: column;
  }

  .guide_title {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .guide_title .groupBox {
    justify-self: start;
    grid-column: 1 / -1;
  }

  .support-strip,
  .trial-banner,
  .notice-strip,
  .market-notice {
    flex-direction: column;
    align-items: flex-start;
  }

  .trial-actions {
    justify-items: flex-start;
  }

  .continue-course-card {
    grid-template-columns: 1fr;
  }

  .continue-course-card .course-cover,
  .continue-course-card .continue-cover {
    border-radius: 20px 20px 0 0;
  }
}

@media (max-width: 720px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .metric-grid,
  .plan-grid,
  .info-grid,
  .course-grid,
  .course-stats,
  .dashboard-error-grid,
  .market-course-grid,
  .course-series-stats,
  .guide-series-grid,
  .Type ul,
  .vip-copy-grid {
    grid-template-columns: 1fr;
  }

  body[data-view="my-courses"] .grid-3 {
    grid-template-columns: 1fr;
  }

  .logo-wrapper {
    padding-inline: 4px;
  }

  .study-avatar-chip {
    width: 100%;
    justify-content: flex-start;
  }

  .section-card,
  .panel-card,
  .dashboard-trend,
  .dashboard-error-card,
  .guide-top-card,
  .vocab-panel,
  .practice-panel,
  .practice-answer,
  .practice-note,
  .practice-wordlist,
  .detail-card--market,
  .lesson-card,
  .plan-card,
  .info-card {
    padding: 18px;
  }

  .course-series-hero__body {
    grid-template-columns: 1fr;
  }

  .lesson-topline,
  .support-strip,
  .trial-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .market-search {
    width: 100%;
    max-width: none;
  }

  .course-card.compact .course-body,
  .course-card.compact .course-card-body {
    padding: 16px;
  }

  .dashboard-footer {
    gap: 12px;
  }
}

@media (max-width: 560px) {
  body[data-view="market"] .search-box,
  body[data-view="my-courses"] .search-box {
    min-width: 100%;
  }

  .dashboard-hero-stat {
    padding: 12px 14px;
  }

  .hero-action-stack {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
