:root {
  --bg: #eef7fb;
  --ink: #172033;
  --muted: #6a7282;
  --line: #dde7ef;
  --card: #ffffff;
  --green: #58cc02;
  --green-dark: #3c9f00;
  --blue: #1cb0f6;
  --purple: #8b5cf6;
  --red: #ff4b4b;
  --yellow: #ffc800;
  --shadow: 0 18px 42px rgba(22, 40, 72, 0.12);
  --font-vi: "Plus Jakarta Sans", "Aptos", "Segoe UI", sans-serif;
  --font-zh: "Noto Sans SC", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  --font-display: "Plus Jakarta Sans", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
}

.admin-sidebar-foot {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.admin-language-btn {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cddaf0;
  border-radius: 12px;
  background: #ffffff;
  color: #334155;
  display: grid;
  gap: 2px;
  padding: 8px 14px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.admin-language-btn span {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
}

.admin-language-btn strong {
  font-size: 13px;
  font-weight: 900;
  color: #047857;
}

.admin-language-btn:hover {
  border-color: #86efac;
  background: #f0fdf4;
}

.admin-language-inline-btn {
  width: 100%;
  min-height: 36px;
  border: 1px solid #cddaf0;
  border-radius: 12px;
  background: #ffffff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  cursor: pointer;
}

.admin-language-inline-btn span {
  min-height: 26px;
  border-radius: 8px;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}

.admin-language-inline-btn span.active {
  background: #047857;
  color: #ffffff;
}

.admin-table-footer button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    linear-gradient(135deg, rgba(88, 204, 2, 0.08), rgba(28, 176, 246, 0.08)),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-vi);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[lang="zh-CN"] body,
html[lang="zh"] body {
  font-family: var(--font-zh);
}

html[lang="zh-CN"] .brand strong,
html[lang="zh"] .brand strong,
html[lang="zh-CN"] h1,
html[lang="zh"] h1,
html[lang="zh-CN"] .path-node strong,
html[lang="zh"] .path-node strong,
html[lang="zh-CN"] .module-tile strong,
html[lang="zh"] .module-tile strong,
html[lang="zh-CN"] .lesson-node strong,
html[lang="zh"] .lesson-node strong,
html[lang="zh-CN"] .theme-card strong,
html[lang="zh"] .theme-card strong,
html[lang="zh-CN"] .practice-meta strong,
html[lang="zh"] .practice-meta strong,
html[lang="zh-CN"] .memory-panel strong,
html[lang="zh"] .memory-panel strong,
html[lang="zh-CN"] .icon-btn,
html[lang="zh"] .icon-btn,
html[lang="zh-CN"] .pill-btn,
html[lang="zh"] .pill-btn,
html[lang="zh-CN"] .lang-toggle,
html[lang="zh"] .lang-toggle,
html[lang="zh-CN"] .level-tabs button,
html[lang="zh"] .level-tabs button,
html[lang="zh-CN"] .mode-switch button,
html[lang="zh"] .mode-switch button,
html[lang="zh-CN"] .function-dock button,
html[lang="zh"] .function-dock button,
html[lang="zh-CN"] .complete-actions button,
html[lang="zh"] .complete-actions button,
html[lang="zh-CN"] .feedback,
html[lang="zh"] .feedback {
  font-family: var(--font-zh);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
}

.app-top {
  position: sticky;
  top: 12px;
  z-index: 10;
  width: 100%;
  /* margin: 0 0 18px; */
  padding: 0;
}

.app-top-inner {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(250px, 360px) minmax(180px, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: min(1180px, calc(100% - 24px));
  max-width: 1180px;
  margin: 0 auto;
  border: 1px solid rgba(201, 222, 231, 0.78);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 252, 255, 0.88)),
    rgba(255, 255, 255, 0.82);
  padding: 8px 10px 8px 8px;
  box-shadow:
    0 14px 30px rgba(29, 55, 90, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(18px);
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0 !important;
}

.app-top:has(#backBtn.hidden) .app-top-inner {
  grid-template-columns: minmax(300px, 420px) minmax(220px, 1fr) auto;
}

.app-top-inner::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 21px;
  background: linear-gradient(90deg, rgba(237, 250, 242, 0.86), rgba(255, 255, 255, 0.66));
  pointer-events: none;
  z-index: -1;
}

.brand,
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  justify-self: start;
  width: 100%;
  min-height: 64px;
  border: 1px solid rgba(211, 228, 235, 0.85);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 251, 255, 0.86));
  padding: 9px 16px 9px 10px;
  box-shadow:
    0 8px 18px rgba(32, 76, 112, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}

.brand:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 24px rgba(32, 76, 112, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.brand:active {
  transform: translateY(1px);
}

.brand-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  background: #fff;
  padding: 2px;
  box-shadow: 0 6px 14px rgba(22, 40, 72, 0.08);
}

.brand-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 16px;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.brand span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-illustration {
  position: relative;
  min-height: 64px;
  overflow: hidden;
  border: 1px solid rgba(214, 229, 236, 0.84);
  border-radius: 24px;
  background:
    radial-gradient(circle at 24% 30%, rgba(193, 246, 217, 0.5), transparent 18%),
    linear-gradient(90deg, rgba(240, 252, 247, 0.92), rgba(248, 253, 255, 0.82) 56%, rgba(255, 255, 255, 0.66));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 10px 18px rgba(36, 77, 108, 0.05);
}

.ill-bubble,
.ill-card,
.ill-line {
  position: absolute;
  display: block;
}

.ill-bubble {
  border-radius: 999px;
  filter: blur(0.2px);
}

.bubble-a {
  left: 7%;
  top: 16px;
  width: 34px;
  height: 34px;
  background: rgba(100, 214, 152, 0.2);
}

.bubble-b {
  left: 22%;
  top: 10px;
  width: 18px;
  height: 18px;
  background: rgba(28, 176, 246, 0.18);
}

.bubble-c {
  right: 16%;
  bottom: 14px;
  width: 22px;
  height: 22px;
  background: rgba(255, 200, 0, 0.16);
}

.ill-card {
  width: 54px;
  height: 36px;
  border-radius: 16px;
  border: 1px solid rgba(209, 225, 235, 0.88);
  background: rgba(255, 255, 255, 0.72);
}

.ill-card-a {
  left: 33%;
  top: 14px;
  transform: rotate(-8deg);
}

.ill-card-b {
  left: 44%;
  top: 18px;
  transform: rotate(7deg);
}

.ill-line {
  height: 6px;
  border-radius: 999px;
  background: rgba(164, 180, 199, 0.32);
}

.ill-line-a {
  left: 57%;
  top: 20px;
  width: 88px;
}

.ill-line-b {
  left: 61%;
  top: 32px;
  width: 120px;
}

.ill-line-c {
  left: 72%;
  top: 44px;
  width: 64px;
}

.icon-btn,
.pill-btn,
.lang-toggle {
  min-height: 44px;
  border: 1px solid rgba(211, 224, 236, 0.95);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
  box-shadow:
    0 6px 14px rgba(23, 32, 51, 0.05),
    inset 0 -2px 0 rgba(220, 231, 241, 0.72);
}

.icon-btn {
  width: 42px;
  font-size: 26px;
  line-height: 1;
  justify-self: start;
}

.pill-btn,
.lang-toggle {
  padding: 0 16px;
}

.top-actions {
  justify-self: end;
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(214, 226, 235, 0.9);
  background: rgba(255, 255, 255, 0.76);
}

.icon-btn:hover,
.pill-btn:hover,
.lang-toggle:hover,
.mini-stats button:hover,
.level-tabs button:hover,
.mode-switch button:hover,
.function-dock button:hover,
.complete-actions button:hover {
  transform: translateY(-1px);
  border-color: #c7dbea;
  box-shadow:
    0 10px 18px rgba(22, 40, 72, 0.08),
    inset 0 -2px 0 rgba(220, 231, 241, 0.72);
}

.screen {
  /* width: min(1180px, 100%); */
  margin: 0 auto;
}

.home-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  grid-template-areas:
    "dash path"
    "dash modules";
  gap: 18px;
  align-items: start;
}

.dashboard-card,
.path-panel,
.module-tile,
.course-side,
.lesson-path,
.course-head,
.theme-card,
.exercise-card,
.memory-panel,
.complete-card {
  border: 2px solid var(--line);
  border-bottom-width: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 250, 255, 0.94));
  box-shadow: var(--shadow);
}

.dashboard-card {
  grid-area: dash;
  min-height: calc(100vh - 124px);
  border-radius: 28px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 8%, rgba(255, 200, 0, 0.14), transparent 24%),
    radial-gradient(circle at 10% 78%, rgba(28, 176, 246, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 251, 246, 0.95));
}

.dashboard-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -42px;
  width: 170px;
  height: 170px;
  border-radius: 48px;
  background:
    linear-gradient(135deg, rgba(88, 204, 2, 0.18), rgba(28, 176, 246, 0.12)),
    rgba(255, 255, 255, 0.32);
  transform: rotate(-10deg);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 4.5vw, 58px);
  font-family: var(--font-display);
  line-height: 1.02;
  letter-spacing: 0;
}

html[lang="zh-CN"] .course-side h1,
html[lang="zh"] .course-side h1,
html[lang="zh-CN"] .course-head h1,
html[lang="zh"] .course-head h1 {
  font-family: var(--font-zh);
  font-weight: 900;
}

p {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.65;
}

.goal-orb {
  display: grid;
  gap: 10px;
  margin: 28px 0 18px;
  border-radius: 24px;
  background: #13223a;
  padding: 22px;
  color: #fff;
}

.goal-orb span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  background: var(--green);
  box-shadow: 0 6px 0 var(--green-dark);
  font-size: 26px;
  font-weight: 950;
}

.goal-orb strong {
  font-size: 20px;
  font-family: var(--font-display);
}

.goal-orb em {
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
  font-weight: 800;
  line-height: 1.5;
}

.mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mini-stats button {
  min-height: 90px;
  border: 2px solid var(--line);
  border-bottom-width: 5px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  padding: 14px;
  text-align: left;
}

.mini-stats strong,
.mini-stats span {
  display: block;
}

.mini-stats strong {
  font-size: 28px;
  font-family: var(--font-display);
  font-weight: 950;
}

.mini-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.path-panel {
  position: relative;
  overflow: hidden;
  grid-area: path;
  border-radius: 28px;
  padding: 22px 24px 26px;
  background:
    radial-gradient(circle at top right, rgba(28, 176, 246, 0.08), transparent 28%),
    radial-gradient(circle at 14% 16%, rgba(88, 204, 2, 0.07), transparent 14%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 249, 255, 0.94));
}

.path-panel::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 160px;
  height: 52px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(28, 176, 246, 0.08), transparent 68%);
  pointer-events: none;
}

.section-title {
text-align: center;
  margin-bottom: 28px;
}

.section-title span {
  border-radius: 999px;
  background: #dcfce7;
  padding: 8px 12px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 950;
}

.section-title strong {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.learning-map {
  display: grid;
  grid-template-columns: repeat(7, minmax(72px, 1fr));
  gap: 18px;
  align-items: end;
  min-height: 230px;
}

.path-node {
  display: grid;
  gap: 10px;
  align-content: center;
  min-height: 154px;
  border: 0;
  border-radius: 28px;
  background: transparent;
  padding: 0;
  text-align: center;
}

.path-node span {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 28px;
  font-weight: 950;
  box-shadow: 0 8px 0 var(--green-dark);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.path-node:hover span {
  transform: translateY(-4px);
  box-shadow: 0 12px 0 var(--green-dark);
}

.path-node.node-1 span {
  background: var(--blue);
  box-shadow: 0 8px 0 #0b87c9;
}

.path-node.node-2 span {
  background: var(--purple);
  box-shadow: 0 8px 0 #6d28d9;
}

.path-node.node-3 span {
  background: var(--yellow);
  box-shadow: 0 8px 0 #d99d00;
}

.path-node strong,
.path-node em {
  display: block;
  max-width: 100%;
  line-height: 1.25;
}

.path-node strong {
  font-size: 14px;
  font-family: var(--font-display);
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.path-node em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  white-space: nowrap;
}

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

.module-tile {
  display: grid;
  grid-template-columns: minmax(150px, 38%) 1fr;
  grid-template-areas:
    "art icon"
    "art copy";
  column-gap: 20px;
  row-gap: 10px;
  align-items: center;
  min-height: 220px;
  border-radius: 28px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 250, 255, 0.94));
  transition:
    transform 160ms ease,
    border-color 160ms ease;
}

.module-tile::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.module-tile:hover,
.theme-card:hover,
.lesson-node:hover {
  transform: translateY(-3px);
}

.tile-icon {
  display: grid;
  grid-area: icon;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 20px;
  background: #dcfce7;
  color: var(--green-dark);
  font-size: 18px;
  font-weight: 950;
  box-shadow:
    0 8px 18px rgba(22, 40, 72, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.daily-tile .tile-icon {
  background: #e0f2fe;
  color: #0876b7;
}

.hsk-tile {
  background:
    radial-gradient(circle at 14% 20%, rgba(88, 204, 2, 0.22), transparent 24%),
    radial-gradient(circle at 76% 12%, rgba(255, 200, 0, 0.18), transparent 18%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(230, 255, 240, 0.96));
}

.daily-tile {
  background:
    radial-gradient(circle at 16% 22%, rgba(28, 176, 246, 0.2), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(139, 92, 246, 0.14), transparent 20%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(232, 248, 255, 0.96));
}

.tile-copy,
.tile-copy strong,
.tile-copy em,
.tile-copy b {
  display: block;
}

.tile-copy {
  grid-area: copy;
  position: relative;
  z-index: 1;
}

.module-tile strong {
  margin-bottom: 4px;
  font-size: 28px;
  font-family: var(--font-display);
  font-weight: 950;
}

.module-tile em {
  color: var(--muted);
  font-style: normal;
  font-weight: 600;
  line-height: 1.5;
}

.module-tile b {
  width: max-content;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #69df10, var(--green));
  padding: 10px 16px;
  color: #fff;
  box-shadow: 0 5px 0 var(--green-dark);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
}

.daily-tile b {
  background: linear-gradient(180deg, #3bc4ff, var(--blue));
  box-shadow: 0 5px 0 #0b87c9;
}

.tile-illustration {
  grid-area: art;
  position: relative;
  display: block;
  min-height: 168px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 24% 24%, rgba(255, 255, 255, 0.85), transparent 18%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.18));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 12px 22px rgba(22, 40, 72, 0.08);
  overflow: hidden;
}

.tile-illustration i {
  position: absolute;
  display: block;
}

.ill-book {
  left: 38px;
  top: 44px;
  width: 72px;
  height: 84px;
  border-radius: 18px 22px 22px 18px;
  background: linear-gradient(180deg, #20d75a, #00a94f);
  box-shadow: 10px 10px 0 rgba(19, 34, 58, 0.1);
}

.ill-book::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 20px;
  width: 36px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 0 rgba(255, 255, 255, 0.56);
}

.ill-card-a,
.ill-card-b {
  right: 24px;
  width: 58px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 16px rgba(22, 40, 72, 0.08);
}

.ill-card-a {
  top: 36px;
}

.ill-card-b {
  top: 88px;
  right: 42px;
}

.ill-hanzi {
  left: 56px;
  top: 58px;
  color: #fff;
  font-family: var(--font-zh);
  font-size: 42px;
  font-style: normal;
  font-weight: 900;
}

.ill-chat-a,
.ill-chat-b {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 18px rgba(22, 40, 72, 0.08);
}

.ill-chat-a {
  left: 28px;
  top: 42px;
  width: 82px;
  height: 54px;
}

.ill-chat-b {
  right: 26px;
  top: 72px;
  width: 72px;
  height: 50px;
}

.ill-chat-a::after,
.ill-chat-b::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 20px;
  width: 44px;
  height: 7px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 15px 0 rgba(88, 204, 2, 0.75);
}

.ill-face {
  left: 86px;
  bottom: 30px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 44px -8px 0 rgba(255, 200, 0, 0.72);
}

/* HSK level selection */
.hsk-level-picker {
  max-width: 1720px;
  margin: 0 auto;
  /* padding: 20px; */
  /* padding: 34px clamp(22px, 3vw, 54px) 52px; */
}

.hsk-level-hero {
  width: 100%;
  /* border-radius: 24px; */
  box-shadow: 0 18px 48px rgba(4, 120, 87, 0.18);
  color: #ffffff;
  display: block;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.hsk-level-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.hsk-level-hero::before {
  display: none;
}

.hsk-level-hero::after {
  display: none;
}

.hsk-hero-copy {
  display: none;
}

.hsk-hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 4vw, 62px);
  line-height: 1;
  margin: 0 0 22px;
  letter-spacing: 0;
  font-weight: 900;
}

.hsk-hero-copy p {
  font-size: clamp(18px, 1.45vw, 25px);
  line-height: 1.35;
  margin: 0 0 38px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.hsk-hero-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 660px;
}

.hsk-hero-features span {
  display: grid;
  grid-template-columns: 58px 1fr;
  column-gap: 14px;
  align-items: center;
  min-width: 0;
  position: relative;
}

.hsk-hero-features span + span::before {
  content: "";
  position: absolute;
  left: -10px;
  width: 1px;
  height: 46px;
  background: rgba(255, 255, 255, 0.24);
}

.hsk-hero-features i {
  width: 58px;
  height: 58px;
  grid-row: span 2;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #07a875;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  box-shadow: inset 0 -8px 14px rgba(16, 185, 129, 0.12);
}

.hsk-hero-features strong {
  font-size: 15px;
  line-height: 1.25;
  font-weight: 900;
}

.hsk-hero-features small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 500;
}

.hsk-hero-art {
  display: none;
}

.hsk-flash-card {
  position: absolute;
  left: 6%;
  top: 32%;
  width: 116px;
  height: 154px;
  border-radius: 18px;
  background: #f8f5e8;
  color: #057550;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 56px;
  font-weight: 900;
  transform: rotate(-10deg);
  box-shadow: 0 18px 26px rgba(3, 84, 62, 0.24), inset 0 0 0 5px rgba(255, 255, 255, 0.52);
}

.hsk-flash-card span {
  font-family: var(--font-body);
  font-size: 21px;
  line-height: 1;
  color: rgba(4, 120, 87, 0.56);
  font-weight: 700;
}

.hsk-copybook {
  position: absolute;
  left: 25%;
  top: 0;
  width: 290px;
  height: 330px;
  border-radius: 16px;
  background: #f8f5e8;
  transform: rotate(-5deg);
  box-shadow: 0 24px 35px rgba(3, 84, 62, 0.24);
  overflow: hidden;
}

.hsk-copybook::before {
  content: "";
  position: absolute;
  inset: 34px 28px 34px 46px;
  border: 2px solid rgba(10, 131, 91, 0.22);
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(10, 131, 91, 0.17) 50%, transparent 50.5%),
    linear-gradient(0deg, transparent 49.5%, rgba(10, 131, 91, 0.17) 50%, transparent 50.5%),
    repeating-linear-gradient(0deg, transparent 0 64px, rgba(10, 131, 91, 0.12) 65px 66px),
    repeating-linear-gradient(90deg, transparent 0 64px, rgba(10, 131, 91, 0.12) 65px 66px);
}

.hsk-copybook-rings {
  position: absolute;
  left: 18px;
  top: 20px;
  width: 16px;
  height: 280px;
  background: repeating-linear-gradient(0deg, #0b6f51 0 13px, transparent 13px 38px);
  border-radius: 999px;
}

.hsk-copybook-char {
  position: absolute;
  inset: 66px 40px auto 74px;
  font-family: "Noto Sans SC", sans-serif;
  color: #08714f;
  font-size: 118px;
  line-height: 1;
  font-weight: 900;
  text-align: center;
}

.hsk-copybook-grid {
  position: absolute;
  right: 28px;
  bottom: 30px;
  color: rgba(4, 120, 87, 0.16);
  font-family: "Noto Sans SC", sans-serif;
  font-size: 42px;
}

.hsk-copybook-grid::before {
  content: "汉 汉";
}

.hsk-pencil {
  position: absolute;
  right: 22%;
  top: 36px;
  width: 22px;
  height: 250px;
  border-radius: 999px 999px 12px 12px;
  background: linear-gradient(90deg, #0a7d5a 0 28%, #16b784 29% 72%, #087052 73% 100%);
  transform: rotate(29deg);
  box-shadow: 0 12px 24px rgba(3, 84, 62, 0.26);
}

.hsk-pencil::before {
  content: "";
  position: absolute;
  top: -34px;
  left: 0;
  width: 22px;
  height: 38px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(#f6cf8b 0 65%, #e6a95f 66% 100%);
}

.hsk-pencil::after {
  content: "";
  position: absolute;
  bottom: -32px;
  left: -3px;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 38px solid #efd9aa;
}

.hsk-books {
  position: absolute;
  right: 1%;
  bottom: 36px;
  width: 230px;
  height: 118px;
  border-radius: 14px;
  background:
    linear-gradient(#14a979 0 44px, #eff7e9 45px 72px, #80c7a9 73px 78px, #eff7e9 79px 100px, #0b7f5c 101px);
  box-shadow: 0 20px 30px rgba(3, 84, 62, 0.18);
}

.hsk-books::before {
  content: "";
  position: absolute;
  left: 24px;
  top: -24px;
  width: 170px;
  height: 44px;
  border-radius: 8px;
  background: #f7f2df;
  transform: rotate(8deg);
  box-shadow: inset 0 -5px 0 rgba(16, 185, 129, 0.16);
}

.hsk-books span {
  position: absolute;
  left: 54px;
  top: -13px;
  color: #08714f;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 19px;
  font-weight: 900;
  transform: rotate(8deg);
}

.hsk-progress-bubble {
  position: absolute;
  left: 24%;
  bottom: 0;
  width: 380px;
  min-height: 74px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: #1f2937;
  display: grid;
  grid-template-columns: 42px 1fr 52px;
  grid-template-rows: auto 12px;
  align-items: center;
  gap: 8px 12px;
  padding: 14px 22px;
  box-shadow: 0 18px 34px rgba(3, 84, 62, 0.2);
}

.hsk-progress-bubble i {
  width: 36px;
  height: 36px;
  grid-row: span 2;
  border-radius: 50%;
  background: #0aa878;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
}

.hsk-progress-bubble strong {
  font-size: 14px;
  font-weight: 800;
}

.hsk-progress-bubble b {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0aa878 0 75%, #e5e7eb 75% 100%);
}

.hsk-progress-bubble em {
  grid-column: 3;
  grid-row: 1 / span 2;
  color: #374151;
  font-style: normal;
  font-size: 15px;
  font-weight: 800;
}

.hsk-level-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  /* margin-top: 48px; */
  padding: 20px;
}

.hsk-level-card {
  --hsk-level-accent: #f5b400;
  --hsk-level-accent-light: #ffd24d;
  --hsk-level-ring: rgba(245, 180, 0, 0.2);
  --hsk-level-status-bg: #fff8e6;
  --hsk-level-status-text: #e8870e;
  --hsk-level-border: #f3e7c8;
  position: relative;
  overflow: hidden;
  min-height: 187px;
  border: 1px solid var(--hsk-level-border);
  border-radius: 26px;
  background: #fffdf8;
  box-shadow: 0 12px 34px rgba(180, 140, 40, 0.1);
  color: #17233c;
  padding: 0;
  text-align: left;
  cursor: pointer;
  display: block;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.hsk-level-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255, 253, 248, 0.58);
  pointer-events: none;
}

.hsk-level-card-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.hsk-level-card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 187px;
  padding: 19px 91px;
  text-align: center;
}

.hsk-level-card-top {
  position: absolute;
  top: 19px;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  z-index: 1;
}

.hsk-level-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  max-width: 100%;
  text-align: center;
}

.hsk-level-card-title {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.2;
  font-weight: 900;
  color: #1d2b48;
  text-align: center;
}

.hsk-level-card-desc {
  color: #7b8798;
  font-size: 16px;
  line-height: 1.45;
  text-align: center;
}

.hsk-level-status {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  margin-top: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--hsk-level-status-bg);
  color: var(--hsk-level-status-text);
  font-size: 13px;
  font-weight: 800;
  align-self: center;
}

.hsk-level-card--hsk4 {
  --hsk-level-accent: #f97316;
  --hsk-level-accent-light: #fdba74;
  --hsk-level-ring: rgba(249, 115, 22, 0.22);
  --hsk-level-status-bg: #fff3e8;
  --hsk-level-status-text: #ea580c;
  --hsk-level-border: #f8dcc8;
  background: #fffaf5;
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.1);
}

.hsk-level-card--hsk4::after {
  background: rgba(255, 250, 245, 0.58);
}

.hsk-level-card--hsk5,
.hsk-level-card--hsk6 {
  --hsk-level-accent: #ef4444;
  --hsk-level-accent-light: #fca5a5;
  --hsk-level-ring: rgba(239, 68, 68, 0.22);
  --hsk-level-status-bg: #fff1f1;
  --hsk-level-status-text: #dc2626;
  --hsk-level-border: #f8d0d0;
  background: #fff8f8;
  box-shadow: 0 10px 28px rgba(239, 68, 68, 0.1);
}

.hsk-level-card--hsk5::after,
.hsk-level-card--hsk6::after {
  background: rgba(255, 248, 248, 0.58);
}

.hsk-level-card:hover,
.hsk-level-card.active {
  border-color: var(--hsk-level-accent);
  box-shadow: 0 18px 38px color-mix(in srgb, var(--hsk-level-accent) 22%, transparent);
  transform: translateY(-2px);
}

.hsk-level-card-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 14px;
  border-radius: 12px;
  background: var(--hsk-level-accent);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.hsk-level-card-count {
  color: #8b95a7;
  font-size: 14px;
  font-weight: 700;
}

.hsk-level-status i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
}

.hsk-level-status i svg {
  width: 19px;
  height: 19px;
}

.hsk-level-arrow {
  position: absolute;
  right: 19px;
  top: 50%;
  transform: translateY(-50%);
  width: 77px;
  height: 77px;
  border-radius: 50%;
  border: 5px solid #ffffff;
  background: linear-gradient(145deg, var(--hsk-level-accent-light) 0%, var(--hsk-level-accent) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 10px var(--hsk-level-ring);
}

.hsk-level-arrow svg {
  width: 36px;
  height: 36px;
}

/* HSK lesson list after choosing a level */
.hsk-lesson-screen {
  --hsk-theme-primary: #f5b400;
  --hsk-theme-primary-light: #ffd24d;
  --hsk-theme-primary-dark: #b87500;
  --hsk-theme-primary-deep: #8a5c00;
  --hsk-theme-soft: #fff8e6;
  --hsk-theme-faint: #fffdf8;
  --hsk-theme-border: #f3e7c8;
  --hsk-theme-shadow: rgba(245, 180, 0, 0.18);
  max-width: 1720px;
  margin: 0 auto;
  /* padding: 0 clamp(14px, 2vw, 24px) 44px; */
}

.hsk-lesson-screen--hsk2 {
  --hsk-theme-primary: #f5b400;
  --hsk-theme-primary-light: #ffd24d;
  --hsk-theme-primary-dark: #b87500;
  --hsk-theme-primary-deep: #8a5c00;
  --hsk-theme-soft: #fff8e6;
  --hsk-theme-faint: #fffdf8;
  --hsk-theme-border: #f3e7c8;
  --hsk-theme-shadow: rgba(245, 180, 0, 0.18);
}

.hsk-lesson-screen--hsk3 {
  --hsk-theme-primary: #f5b400;
  --hsk-theme-primary-light: #ffd24d;
  --hsk-theme-primary-dark: #b87500;
  --hsk-theme-primary-deep: #8a5c00;
  --hsk-theme-soft: #fff8e6;
  --hsk-theme-faint: #fffdf8;
  --hsk-theme-border: #f3e7c8;
  --hsk-theme-shadow: rgba(245, 180, 0, 0.18);
}

.hsk-lesson-screen--hsk4 {
  --hsk-theme-primary: #f97316;
  --hsk-theme-primary-light: #fdba74;
  --hsk-theme-primary-dark: #ea580c;
  --hsk-theme-primary-deep: #9a3412;
  --hsk-theme-soft: #fff3e8;
  --hsk-theme-faint: #fffaf5;
  --hsk-theme-border: #f8dcc8;
  --hsk-theme-shadow: rgba(249, 115, 22, 0.18);
}

.hsk-lesson-screen--hsk5,
.hsk-lesson-screen--hsk6 {
  --hsk-theme-primary: #ef4444;
  --hsk-theme-primary-light: #fca5a5;
  --hsk-theme-primary-dark: #dc2626;
  --hsk-theme-primary-deep: #991b1b;
  --hsk-theme-soft: #fff1f1;
  --hsk-theme-faint: #fff8f8;
  --hsk-theme-border: #f8d0d0;
  --hsk-theme-shadow: rgba(239, 68, 68, 0.18);
}

.hsk-lesson-hero {
  min-height: 110px;
  border-radius: 0;
  background:
    radial-gradient(circle at 78% 70%, color-mix(in srgb, var(--hsk-theme-primary) 18%, transparent) 0 8%, transparent 9%),
    radial-gradient(circle at 72% 66%, color-mix(in srgb, var(--hsk-theme-primary-light) 42%, transparent) 0 3.2%, transparent 3.4%),
    radial-gradient(circle at 12% -28%, rgba(255, 255, 255, 0.86) 0 30%, transparent 31%),
    linear-gradient(100deg, var(--hsk-theme-faint) 0%, var(--hsk-theme-soft) 48%, color-mix(in srgb, var(--hsk-theme-primary-light) 76%, #ffffff) 100%);
  color: var(--hsk-theme-primary-deep);
  display: grid;
  grid-template-columns: 78px 1fr 300px;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0 clamp(22px, 3vw, 42px);
  border-bottom: 1px solid color-mix(in srgb, var(--hsk-theme-primary) 20%, transparent);
}

.hsk-lesson-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 92% 88%, rgba(255, 255, 255, 0.86) 0 28px, transparent 29px),
    radial-gradient(circle at 86% 96%, rgba(255, 255, 255, 0.72) 0 24px, transparent 25px),
    repeating-radial-gradient(ellipse at 75% 120%, color-mix(in srgb, var(--hsk-theme-primary-dark) 16%, transparent) 0 1px, transparent 2px 12px),
    linear-gradient(115deg, transparent 0 55%, rgba(255, 255, 255, 0.34) 55.5% 56%, transparent 56.5%);
  opacity: 0.92;
  pointer-events: none;
}

.hsk-lesson-hero::after {
  content: "";
  position: absolute;
  right: 8%;
  bottom: -18px;
  width: 220px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
  filter: blur(1px);
  pointer-events: none;
}

.hsk-lesson-back-btn {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  border: 1px solid color-mix(in srgb, var(--hsk-theme-primary-dark) 24%, transparent);
  background: rgba(255, 255, 255, 0.58);
  color: var(--hsk-theme-primary-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  z-index: 20;
  pointer-events: auto;
  transition: transform 0.18s ease, background 0.18s ease;
}

.hsk-lesson-back-btn svg {
  width: 18px;
  height: 18px;
}

.hsk-lesson-back-btn:hover {
  background: rgba(255, 255, 255, 0.84);
  transform: translateX(-2px);
}

.hsk-lesson-hero h1 {
  align-self: stretch;
  justify-self: center;
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1;
  margin: 0;
  font-weight: 900;
  letter-spacing: 0;
  color: var(--hsk-theme-primary-deep);
  text-shadow: none;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-items: center;
  gap: 12px;
}

.hsk-lesson-hero-art {
  position: relative;
  z-index: 2;
  height: 110px;
  overflow: hidden;
}

.hsk-lesson-art-card {
  position: absolute;
  left: 22px;
  top: 25px;
  width: 58px;
  height: 64px;
  border-radius: 9px;
  background: linear-gradient(180deg, #ffffff 0%, var(--hsk-theme-faint) 100%);
  color: var(--hsk-theme-primary-deep);
  font-family: "Noto Sans SC", sans-serif;
  font-size: 32px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-12deg);
  box-shadow: 0 14px 22px var(--hsk-theme-shadow);
}

.hsk-lesson-art-book {
  position: absolute;
  left: 104px;
  top: 11px;
  width: 118px;
  height: 92px;
  border-radius: 9px;
  background:
    linear-gradient(90deg, transparent 49%, color-mix(in srgb, var(--hsk-theme-primary) 12%, transparent) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, color-mix(in srgb, var(--hsk-theme-primary) 12%, transparent) 50%, transparent 51%),
    linear-gradient(180deg, #ffffff 0%, var(--hsk-theme-soft) 100%);
  color: var(--hsk-theme-primary-deep);
  font-family: "Noto Sans SC", sans-serif;
  font-size: 52px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(6deg);
  box-shadow: 0 16px 28px var(--hsk-theme-shadow);
}

.hsk-lesson-art-pencil {
  position: absolute;
  right: 22px;
  top: 8px;
  width: 10px;
  height: 98px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(90deg, var(--hsk-theme-primary-deep) 0 30%, var(--hsk-theme-primary) 31% 74%, var(--hsk-theme-primary-dark) 75% 100%);
  transform: rotate(30deg);
  box-shadow: 0 10px 18px var(--hsk-theme-shadow);
}

.hsk-lesson-art-pencil::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 0;
  width: 11px;
  height: 16px;
  border-radius: 999px 999px 3px 3px;
  background: #f6cf8b;
}

.hsk-lesson-art-pencil::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: -2px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 18px solid color-mix(in srgb, var(--hsk-theme-primary-light) 34%, #ffffff);
}

.hsk-lesson-panel {
  margin: -20px 0 0;
  /* border-radius: 22px 22px 0 0; */
  background: rgba(255, 255, 255, 0.98);
  /* border: 1px solid var(--hsk-theme-border); */
  border-bottom: 0;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  padding: 34px clamp(28px, 3.2vw, 54px) 28px;
  /* position: relative; */
  z-index: 3;
}

.hsk-lesson-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 28px;
  margin-bottom: 20px;
}

.hsk-lesson-hero--level + .hsk-lesson-panel .hsk-lesson-title-group h2 {
  display: none;
}

.hsk-lesson-title-group h2 {
  font-family: var(--font-display);
  font-size: clamp(21px, 1.8vw, 29px);
  line-height: 1.2;
  color: #111827;
  margin: 0;
  font-weight: 900;
}

.hsk-lesson-title-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
}

.hsk-lesson-summary {
  min-height: 78px;
  border-radius: 14px;
  border: 1px solid var(--hsk-theme-border);
  background: linear-gradient(135deg, var(--hsk-theme-soft) 0%, var(--hsk-theme-faint) 100%);
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 14px 34px;
}

.hsk-lesson-summary span {
  display: grid;
  grid-template-columns: 38px auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  color: #4b5563;
  min-width: 116px;
  position: relative;
}

.hsk-lesson-summary span + span::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: color-mix(in srgb, var(--hsk-theme-primary) 24%, #ffffff);
}

.hsk-lesson-summary i {
  grid-row: 1 / span 2;
  color: var(--hsk-theme-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
}

.hsk-lesson-summary strong {
  color: var(--hsk-theme-primary-dark);
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
}

.hsk-lesson-summary span {
  font-size: 12px;
  font-weight: 600;
}

.hsk-filter-tabs--lesson {
  min-height: 64px;
  padding: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.hsk-filter-tabs--lesson button {
  min-width: 138px;
  font-size: 14px;
  color: #667085;
}

.hsk-filter-tabs--lesson button.active {
  box-shadow: 0 10px 22px var(--hsk-theme-shadow);
}

.hsk-filter-settings-btn--lesson {
  width: 74px;
  height: 74px;
  color: #111827;
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.hsk-lessons-list--panel {
  gap: 12px;
}

.hsk-lesson-screen .hsk-lesson-card {
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  border-radius: 16px;
  border-color: #e5e7eb;
  padding: 16px 30px 16px 24px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.hsk-lesson-screen .hsk-lesson-card.completed {
  border-color: var(--hsk-theme-primary-dark);
  background: linear-gradient(90deg, var(--hsk-theme-soft) 0%, #ffffff 55%);
  box-shadow: 0 12px 28px var(--hsk-theme-shadow);
}

.hsk-lesson-screen .hsk-lesson-card:hover {
  border-color: var(--hsk-theme-primary);
  box-shadow: 0 14px 30px var(--hsk-theme-shadow);
}

.hsk-lesson-screen .hsk-lesson-left {
  max-width: none;
  gap: 34px;
}

.hsk-lesson-screen .hsk-lesson-number {
  width: 58px;
  height: 58px;
  background: radial-gradient(circle at 30% 24%, var(--hsk-theme-primary-light) 0, var(--hsk-theme-primary) 58%, var(--hsk-theme-primary-dark) 100%);
  font-size: 20px;
  box-shadow: inset 0 -10px 16px color-mix(in srgb, var(--hsk-theme-primary-deep) 24%, transparent);
}

.hsk-lesson-screen .hsk-lesson-info h4 {
  font-size: 17px;
  color: #111827;
  margin-bottom: 5px;
}

.hsk-lesson-screen .hsk-lesson-info p {
  font-size: 13px;
  color: #667085;
  white-space: normal;
}

.hsk-lesson-screen .hsk-lesson-center {
  margin-right: 0;
  gap: 10px;
  min-width: 36px;
}

.hsk-lesson-screen .hsk-tag {
  min-width: 132px;
  justify-content: center;
  padding: 8px 16px;
  font-size: 12px;
  color: #5b21b6;
  background: #f6eaff;
}

.hsk-lesson-screen .lesson-check-badge {
  width: 34px;
  height: 34px;
  background: var(--hsk-theme-primary);
  font-size: 13px;
  box-shadow: 0 6px 14px var(--hsk-theme-shadow);
}

.hsk-lesson-screen .lesson-radial-progress {
  color: var(--hsk-theme-primary-dark);
  background: conic-gradient(var(--hsk-theme-primary) 0% 45%, #e2e8f0 45% 100%);
}

.hsk-lesson-screen .hsk-lesson-right {
  gap: 18px;
  flex-wrap: nowrap;
}

.hsk-lesson-screen .hsk-items-count {
  min-width: 116px;
  text-align: center;
  padding: 8px 18px;
  font-size: 12px;
  color: #4b5563;
  background: #f9fafb;
}

.hsk-lesson-screen .hsk-items-count--word {
  min-width: 128px;
  color: var(--hsk-theme-primary-dark);
  background: var(--hsk-theme-faint);
  border-color: var(--hsk-theme-border);
}

.hsk-lesson-screen .hsk-items-count--phrase {
  min-width: 106px;
  color: var(--hsk-theme-primary-deep);
  background: var(--hsk-theme-soft);
  border-color: var(--hsk-theme-border);
}

.hsk-lesson-screen .hsk-lesson-arrow-btn {
  width: 52px;
  height: 52px;
  color: var(--hsk-theme-primary-dark);
  border-color: color-mix(in srgb, var(--hsk-theme-primary) 42%, #ffffff);
  font-size: 23px;
  padding: 0 0 4px 2px;
}

.hsk-lesson-screen .hsk-lesson-card:hover .hsk-lesson-arrow-btn {
  background: #ffffff;
  color: var(--hsk-theme-primary-deep);
  border-color: var(--hsk-theme-primary);
}

.hsk-content-type-section--panel {
  gap: 18px;
}

.hsk-study-part-section {
  padding: 10px 8px 96px;
}

.hsk-study-part-heading {
  margin: 0 0 34px;
}

.hsk-study-part-heading h2 {
  margin: 0 0 10px;
  color: #111827;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 900;
}

.hsk-study-part-heading p {
  margin: 0;
  color: var(--hsk-theme-primary-dark);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
}

.hsk-study-part-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.hsk-remaining-lessons {
  margin-top: 42px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hsk-remaining-lessons-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-inline: 2px;
}

.hsk-remaining-lessons-heading h3 {
  margin: 0;
  color: #111827;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
}

.hsk-remaining-lessons-heading span {
  color: #667085;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.hsk-lessons-list--remaining {
  gap: 10px;
}

.hsk-study-part-card {
  min-height: 240px;
  border-radius: 20px;
  border: 2px solid #dbe4ea;
  background:
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--hsk-theme-primary) 11%, transparent) 0 18%, transparent 19%),
    linear-gradient(135deg, var(--hsk-theme-faint) 0%, var(--hsk-theme-soft) 100%);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  padding: 34px 34px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.hsk-study-part-card:hover,
.hsk-study-part-card.active {
  border-color: var(--hsk-theme-primary-dark);
  box-shadow: 0 20px 44px var(--hsk-theme-shadow);
  transform: translateY(-2px);
}

.hsk-study-part-card::before,
.hsk-study-part-card::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: color-mix(in srgb, var(--hsk-theme-primary-light) 70%, #ffffff);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: 0.9;
}

.hsk-study-part-card::before {
  left: 58%;
  top: 86px;
}

.hsk-study-part-card::after {
  right: 80px;
  bottom: 58px;
}

.hsk-study-part-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(45%, 260px);
}

.hsk-study-part-copy strong {
  color: #111827;
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1.05;
  font-weight: 900;
  margin-bottom: 12px;
}

.hsk-study-part-copy small {
  color: #17233c;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 500;
  margin-bottom: 78px;
}

.hsk-study-part-copy em {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--hsk-theme-primary) 42%, #ffffff);
  background: var(--hsk-theme-soft);
  color: var(--hsk-theme-primary-dark);
  padding: 7px 16px;
  font-style: normal;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}

.hsk-study-part-copy em svg {
  width: 19px;
  height: 19px;
}

.hsk-study-part-art {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hsk-study-part-arrow {
  position: absolute;
  z-index: 4;
  right: 34px;
  top: 50%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--hsk-theme-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  box-shadow: 0 0 0 8px var(--hsk-theme-soft), inset 0 -8px 14px color-mix(in srgb, var(--hsk-theme-primary-deep) 24%, transparent);
}

.hsk-word-book {
  position: absolute;
  left: 42%;
  bottom: 44px;
  width: 62px;
  height: 96px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--hsk-theme-primary-dark), var(--hsk-theme-primary));
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 15px;
  line-height: 1.12;
  font-style: normal;
  font-weight: 800;
  box-shadow: 0 16px 24px var(--hsk-theme-shadow);
  transform: rotate(-8deg);
}

.hsk-word-book::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 23px;
  width: 14px;
  height: 28px;
  background: var(--hsk-theme-primary-deep);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
}

.hsk-word-card {
  position: absolute;
  width: 88px;
  height: 118px;
  border-radius: 13px;
  background: #f8f5e8;
  color: var(--hsk-theme-primary-deep);
  font-family: "Noto Sans SC", sans-serif;
  font-style: normal;
  font-size: 56px;
  font-weight: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 24px var(--hsk-theme-shadow), inset 0 0 0 4px rgba(255, 255, 255, 0.55);
}

.hsk-word-card b {
  color: var(--hsk-theme-primary-deep);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1;
}

.hsk-word-card-main {
  right: 28%;
  bottom: 54px;
  transform: rotate(-8deg);
  z-index: 2;
}

.hsk-word-card-back {
  right: 17%;
  bottom: 62px;
  transform: rotate(12deg);
  opacity: 0.86;
}

.hsk-sentence-chat {
  position: absolute;
  right: 25%;
  top: 26px;
  width: 88px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--hsk-theme-primary-light), var(--hsk-theme-primary));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 27px;
  line-height: 1;
  box-shadow: 0 14px 22px var(--hsk-theme-shadow);
}

.hsk-sentence-chat::after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: -16px;
  border-top: 18px solid var(--hsk-theme-primary);
  border-right: 17px solid transparent;
}

.hsk-sentence-strip {
  position: absolute;
  right: 19%;
  width: 204px;
  min-height: 56px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(214, 221, 229, 0.9);
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.1);
  color: #111827;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 19px;
  font-style: normal;
  display: flex;
  align-items: center;
  padding: 0 22px;
}

.hsk-sentence-strip::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 13px;
  border-bottom: 2px dashed #c4ccd6;
}

.hsk-sentence-strip-a {
  top: 96px;
  transform: rotate(2deg);
}

.hsk-sentence-strip-b {
  top: 160px;
  transform: rotate(-3deg);
}

.hsk-sentence-pencil {
  position: absolute;
  right: 17%;
  bottom: 28px;
  width: 14px;
  height: 92px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(90deg, var(--hsk-theme-primary-deep) 0 30%, var(--hsk-theme-primary) 31% 74%, var(--hsk-theme-primary-dark) 75% 100%);
  transform: rotate(33deg);
  box-shadow: 0 10px 18px var(--hsk-theme-shadow);
}

.hsk-sentence-pencil::before {
  content: "";
  position: absolute;
  top: -17px;
  left: 0;
  width: 14px;
  height: 20px;
  border-radius: 999px 999px 3px 3px;
  background: #f6cf8b;
}

.hsk-sentence-pencil::after {
  content: "";
  position: absolute;
  bottom: -18px;
  left: -3px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 23px solid #efd9aa;
}

/* Redesigned HSK course layout */
.hsk-course-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px clamp(15px, 3vw, 40px);
  align-items: start;
}

/* Sidebar Styles */
.hsk-sidebar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 30px 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.hsk-sidebar-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.hsk-header-icon {
  width: 50px;
  height: 50px;
  background: #d1fae5;
  color: #0ea855;
  border-radius: 14px;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hsk-header-copy h2 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
  font-family: var(--font-display);
}

.hsk-header-copy p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* Search input */
.hsk-search-wrapper {
  position: relative;
  margin-bottom: 24px;
}

.hsk-search-wrapper .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 15px;
  pointer-events: none;
}

#hskSearchInput {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1.5px solid #e2e8f0;
  border-radius: 999px;
  font-size: 14px;
  color: #0f172a;
  outline: none;
  transition: all 0.2s;
  background: #f8fafc;
}

#hskSearchInput:focus {
  border-color: #10b981;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Level List Section */
.hsk-level-section {
  margin-bottom: 28px;
}

.hsk-level-section h3,
.hsk-stats-section h3 {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hsk-level-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hsk-level-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.hsk-level-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.hsk-level-btn.active {
  background: #0ea855;
  color: #ffffff;
  border-color: #0ea855;
  box-shadow: 0 4px 12px rgba(14, 168, 85, 0.2);
}

.hsk-level-btn .arrow-icon {
  font-size: 18px;
  line-height: 1;
}

/* Quick Stats Section */
.hsk-stats-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hsk-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  background: #f0fdf4;
  border: 1px solid #d1fae5;
  background-image: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  position: relative;
  overflow: hidden;
}

.hsk-stat-card::before {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.03);
  pointer-events: none;
}

.stat-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: #ffffff;
  border: 1px solid #d1fae5;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.stat-card-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.stat-card-info strong {
  font-size: 18px;
  font-weight: 800;
  color: #065f46;
}

.stat-card-info span {
  font-size: 12px;
  color: #047857;
  font-weight: 500;
}

/* Right content panel */
.hsk-main-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Recommendation Banner Card */
.hsk-recom-card {
  border-radius: 24px;
  padding: 28px;
  background: linear-gradient(135deg, #f0fdf4 0%, #e6fcf0 100%);
  border: 1px solid #a7f3d0;
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.05);
}

/* Mountain vector backgrounds */
.hsk-recom-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 320px;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0,100 L30,40 L60,80 L80,50 L100,100 Z' fill='rgba(16,185,129,0.025)'/%3E%3Cpath d='M20,100 L50,60 L75,90 L90,70 L100,100 Z' fill='rgba(16,185,129,0.015)'/%3E%3C/svg%3E");
  background-size: cover;
  pointer-events: none;
}

.recom-target-wrapper {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 8px 16px rgba(16, 185, 129, 0.15));
}

.banner-target-svg {
  width: 100%;
  height: 100%;
}

.hsk-recom-info {
  flex-grow: 1;
  text-align: left;
}

.hsk-recom-info h2 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
  font-family: var(--font-display);
}

.hsk-recom-info p {
  font-size: 14px;
  color: #475569;
  margin: 0 0 12px;
  line-height: 1.4;
}

.hsk-recom-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #0ea855;
  font-weight: 600;
}

.meta-divider {
  color: #a7f3d0;
}

.btn-continue-learn {
  flex-shrink: 0;
  padding: 12px 24px;
  border-radius: 999px;
  background: #0ea855;
  color: #ffffff;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(14, 168, 85, 0.25);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 5;
}

.btn-continue-learn:hover {
  background: #0c9349;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(14, 168, 85, 0.3);
}

.btn-continue-learn:active {
  transform: translateY(0);
}

.btn-continue-learn span {
  font-size: 10px;
}

/* HSK Lesson Header and Filters */
.hsk-lessons-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.hsk-lessons-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  font-family: var(--font-display);
}

.hsk-lessons-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hsk-filter-tabs {
  background: #f1f5f9;
  padding: 4px;
  border-radius: 999px;
  display: flex;
  gap: 2px;
}

.hsk-filter-tabs button {
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.hsk-filter-tabs button.active {
  background: #0ea855;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(14, 168, 85, 0.15);
}

.hsk-filter-settings-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.hsk-filter-settings-btn:hover {
  background: #f8fafc;
  color: #0f172a;
}

.hsk-content-type-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hsk-content-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hsk-content-type-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 18px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.hsk-content-type-card:hover,
.hsk-content-type-card.active {
  border-color: #0ea855;
  box-shadow: 0 8px 24px rgba(14, 168, 85, 0.12);
  transform: translateY(-2px);
}

.hsk-content-type-card:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.hsk-content-type-card.active {
  background: #f0fdf4;
}

.hsk-content-type-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #0ea855;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  flex-shrink: 0;
}

.hsk-content-type-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.hsk-content-type-copy strong {
  font-size: 17px;
  font-weight: 800;
  font-family: var(--font-display);
}

.hsk-content-type-copy small {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.hsk-content-type-card .arrow-icon {
  color: #94a3b8;
  font-size: 22px;
  line-height: 1;
}

.hsk-selected-lesson-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 18px;
  border: 1px solid #d1fae5;
  border-radius: 18px;
  background: #f0fdf4;
}

.hsk-selected-lesson-card strong {
  color: #0f172a;
  font-size: 17px;
  font-family: var(--font-display);
}

.hsk-selected-lesson-card span {
  color: #047857;
  font-size: 13px;
  font-weight: 700;
}

.hsk-back-to-lessons-btn {
  position: relative;
  z-index: 20;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.2s;
}

.hsk-back-to-lessons-btn:hover {
  border-color: #0ea855;
  color: #047857;
  background: #f0fdf4;
}

.btn-continue-learn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* HSK Lesson Card Stack */
.hsk-lessons-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hsk-lesson-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
}

.hsk-lesson-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
  transform: translateY(-2px);
}

.hsk-lesson-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-grow: 1;
  max-width: 55%;
  text-align: left;
}

.hsk-lesson-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0ea855;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
}

.hsk-lesson-info h4 {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 3px;
  font-family: var(--font-display);
}

.hsk-lesson-info p {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hsk-lesson-center {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  flex-shrink: 0;
  margin-right: 15px;
}

/* Lesson tags */
.hsk-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
}

.tag-travel { background: #f0fdf4; color: #166534; }
.tag-habit { background: #eff6ff; color: #1e40af; }
.tag-shopping { background: #faf5ff; color: #6b21a8; }
.tag-work { background: #f0fdfa; color: #115e59; }
.tag-food { background: #fff7ed; color: #9a3412; }
.tag-chat { background: #f0fdfa; color: #0f766e; }
.tag-study { background: #faf5ff; color: #581c87; }

/* Status badges */
.badge-status {
  padding: 6px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.badge-new {
  background: #fef2f2;
  color: #991b1b;
}

.badge-popular {
  background: #fffbeb;
  color: #92400e;
}

/* Radial progress indicator / Checked checkmark */
.lesson-check-badge {
  width: 28px;
  height: 28px;
  background: #0ea855;
  color: #ffffff;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(14, 168, 85, 0.2);
}

.lesson-radial-progress {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #0ea855;
  background: conic-gradient(#0ea855 0% 45%, #e2e8f0 45% 100%);
  padding: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.lesson-radial-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
}

.hsk-lesson-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 0;
}

.hsk-items-count {
  font-size: 12.5px;
  color: #64748b;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  border-radius: 99px;
  padding: 6px 14px;
  background: #f8fafc;
}

.hsk-items-count--word {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.hsk-items-count--phrase {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #047857;
}

.hsk-lesson-arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #94a3b8;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0 0 3px 1px;
}

.hsk-lesson-card:hover .hsk-lesson-arrow-btn {
  background: #0ea855;
  color: #ffffff;
  border-color: #0ea855;
}

.hsk-no-results {
  text-align: center;
  padding: 60px 20px;
  font-size: 15px;
  color: #64748b;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-weight: 500;
}

.path-line {
  display: none;
}

/* Responsiveness for Redesigned HSK page */
@media (max-width: 1280px) {
  .hsk-level-hero {
    min-height: 0;
    border-radius: 24px;
    display: none;
  }

  .hsk-hero-art {
    display: none;
  }

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

  .hsk-lesson-hero {
    grid-template-columns: 60px 1fr 192px;
    padding-inline: 20px;
  }

  .hsk-lesson-panel-header {
    flex-direction: column;
  }

  .hsk-lesson-title-group {
    flex-wrap: wrap;
  }

  .hsk-lesson-screen .hsk-lesson-card {
    grid-template-columns: minmax(300px, 1fr) auto;
  }

  .hsk-lesson-screen .hsk-lesson-center {
    justify-content: flex-end;
  }

  .hsk-lesson-screen .hsk-lesson-right {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .hsk-study-part-grid {
    gap: 22px;
  }

  .hsk-study-part-card {
    min-height: 230px;
    padding: 30px 28px;
  }

  .hsk-study-part-copy strong {
    font-size: 34px;
  }

  .hsk-study-part-copy small {
    font-size: 21px;
    margin-bottom: 70px;
  }

  .hsk-word-card-main {
    right: 25%;
  }

  .hsk-word-card-back {
    right: 12%;
  }

  .hsk-sentence-strip {
    right: 16%;
    width: 218px;
  }
}

@media (max-width: 990px) {
  .hsk-level-picker {
    /* padding-inline: 18px; */
  }

  .hsk-level-hero {
    border-radius: 22px;
  }

  .hsk-hero-features {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hsk-hero-features span + span::before {
    display: none;
  }

  .hsk-hero-art {
    display: none;
  }

  .hsk-level-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .hsk-lesson-screen {
    /* padding-inline: 10px; */
  }

  .hsk-lesson-hero {
    grid-template-columns: 1fr;
    min-height: 78px;
    padding-inline: 22px;
  }

  .hsk-lesson-hero .hsk-lesson-back-btn {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
  }

  .hsk-lesson-hero .hsk-lesson-back-btn:hover {
    transform: translateY(-50%) translateX(-2px);
  }

  .hsk-lesson-hero h1 {
    justify-self: center;
    text-align: center;
    width: 100%;
    font-size: 24px;
  }

  .hsk-lesson-hero-art {
    display: none;
  }

  .hsk-lesson-panel {
    margin-inline: 0;
    padding: 26px 18px;
  }

  .hsk-lesson-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 12px;
    padding-inline: 14px;
  }

  .hsk-lesson-summary span {
    min-width: 0;
  }

  .hsk-lesson-summary span + span::before {
    display: none;
  }

  .hsk-filter-tabs--lesson {
    width: 100%;
  }

  .hsk-filter-tabs--lesson button {
    min-width: 0;
    flex: 1;
    font-size: 11px;
  }

  .hsk-lesson-screen .hsk-lesson-card {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 18px;
    gap: 10px;
  }

  .hsk-lesson-screen .hsk-lesson-left {
    gap: 18px;
    width: 100%;
  }

  .hsk-lesson-screen .hsk-lesson-center,
  .hsk-lesson-screen .hsk-lesson-right {
    width: auto;
    justify-content: flex-end;
  }

  .hsk-lesson-screen .hsk-lesson-right {
    grid-column: 1 / -1;
    gap: 10px;
  }

  .hsk-study-part-section {
    padding-bottom: 44px;
  }

  .hsk-study-part-heading h2 {
    font-size: 20px;
  }

  .hsk-study-part-heading p {
    font-size: 16px;
  }

  .hsk-study-part-grid {
    grid-template-columns: 1fr;
  }

  .hsk-remaining-lessons {
    margin-top: 30px;
  }

  .hsk-remaining-lessons-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .hsk-remaining-lessons-heading span {
    text-align: left;
  }

  .hsk-study-part-card {
    min-height: 220px;
    padding: 24px 22px;
  }

  .hsk-study-part-copy {
    width: min(46%, 220px);
  }

  .hsk-study-part-copy strong {
    font-size: 28px;
  }

  .hsk-study-part-copy small {
    font-size: 17px;
    margin-bottom: 64px;
  }

  .hsk-study-part-copy em {
    min-height: 36px;
    font-size: 15px;
    padding: 7px 14px;
  }

  .hsk-study-part-arrow {
    width: 54px;
    height: 54px;
    right: 24px;
  }

  .hsk-word-book {
    left: 42%;
    bottom: 36px;
    transform: rotate(-8deg) scale(0.78);
  }

  .hsk-word-card-main {
    right: 28%;
    bottom: 46px;
    transform: rotate(-8deg) scale(0.78);
  }

  .hsk-word-card-back {
    right: 16%;
    bottom: 54px;
    transform: rotate(12deg) scale(0.78);
  }

  .hsk-sentence-chat {
    right: 25%;
    transform: scale(0.78);
  }

  .hsk-sentence-strip {
    right: 17%;
    width: 214px;
    min-height: 64px;
    font-size: 19px;
  }

  .hsk-sentence-strip-a {
    top: 108px;
  }

  .hsk-sentence-strip-b {
    top: 184px;
  }

  .hsk-sentence-pencil {
    right: 16%;
    bottom: 30px;
    transform: rotate(33deg) scale(0.88);
  }

  .hsk-course-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .hsk-lesson-left {
    max-width: 70%;
  }
}

@media (max-width: 768px) {
  .daily-course-header {
    max-width: none;
    padding-inline: 8px;
    display: none;
  }

  .daily-course-header h1 {
    width: min(100%, 340px);
    min-height: 58px;
    padding-inline: 4px;
    font-size: 25px !important;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: normal;
    text-wrap: balance;
  }

  .daily-course-header p {
    max-width: min(100%, 680px);
    margin-inline: auto;
    white-space: normal;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .hsk-level-hero {
    padding: 0;
  }

  .hsk-hero-copy h1 {
    font-size: 40px;
  }

  .hsk-hero-copy p {
    margin-bottom: 24px;
  }

  .hsk-hero-art {
    display: none;
  }

  .hsk-level-grid {
    grid-template-columns: 1fr;
  }

  .hsk-level-card {
    min-height: 178px;
  }

  .hsk-level-card-inner {
    min-height: 178px;
    padding: 17px 77px;
  }

  .hsk-level-card-title {
    font-size: 23px;
  }

  .hsk-level-card-desc {
    font-size: 14px;
  }

  .hsk-level-arrow {
    right: 14px;
    width: 65px;
    height: 65px;
    box-shadow: 0 0 0 10px var(--hsk-level-ring);
  }

  .hsk-level-arrow svg {
    width: 30px;
    height: 30px;
  }

  .hsk-lesson-hero h1 {
    font-size: 22px;
  }

  .hsk-lesson-panel {
    border-radius: 18px;
    margin-top: -14px;
  }

  .hsk-lesson-title-group h2 {
    font-size: 20px;
  }

  .hsk-lesson-title-group {
    align-items: flex-start;
  }

  .hsk-lesson-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    padding-inline: 10px;
  }

  .hsk-lesson-summary span {
    grid-template-columns: 26px auto;
    column-gap: 7px;
    font-size: 10px;
  }

  .hsk-lesson-summary i svg {
    width: 22px;
    height: 22px;
  }

  .hsk-lesson-summary strong {
    font-size: 12px;
  }

  .hsk-lessons-actions {
    align-items: stretch;
  }

  .hsk-filter-settings-btn--lesson {
    width: 52px;
    height: 52px;
  }

  .hsk-lesson-screen .hsk-lesson-number {
    width: 50px;
    height: 50px;
    font-size: 17px;
  }

  .hsk-lesson-screen .hsk-lesson-info h4 {
    font-size: 15px;
  }

  .hsk-lesson-screen .hsk-lesson-info p {
    font-size: 11px;
  }

  .hsk-lesson-screen .hsk-lesson-right {
    grid-column: 2;
    grid-row: 1;
    flex-wrap: nowrap;
    align-self: center;
  }

  .hsk-lesson-screen .hsk-lesson-center {
    display: none;
  }

  .hsk-lesson-screen .hsk-lesson-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 86px;
    padding: 10px 8px 10px 10px;
  }

  .hsk-lesson-screen .hsk-lesson-left {
    gap: 10px;
    min-width: 0;
  }

  .hsk-lesson-screen .hsk-lesson-info {
    min-width: 0;
  }

  .hsk-lesson-screen .hsk-lesson-info h4,
  .hsk-lesson-screen .hsk-lesson-info p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hsk-lesson-screen .hsk-items-count {
    min-width: 50px;
    padding: 5px 6px;
    font-size: 9px;
  }

  .hsk-lesson-screen .hsk-items-count--word {
    min-width: 66px;
  }

  .hsk-lesson-screen .hsk-items-count--phrase {
    min-width: 48px;
  }

  .hsk-lesson-screen .hsk-lesson-arrow-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .hsk-lesson-screen .lesson-check-badge {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .hsk-study-part-card {
    min-height: 210px;
    padding: 22px 18px;
  }

  .hsk-study-part-copy {
    width: min(54%, 210px);
  }

  .hsk-study-part-copy strong {
    font-size: 28px;
  }

  .hsk-study-part-copy small {
    font-size: 17px;
    margin-bottom: 56px;
  }

  .hsk-study-part-copy em {
    font-size: 13px;
  }

  .hsk-study-part-arrow {
    width: 54px;
    height: 54px;
    right: 22px;
  }

  .hsk-word-book {
    left: 40%;
    bottom: 42px;
    transform: rotate(-8deg) scale(0.68);
  }

  .hsk-word-card-main {
    right: 26%;
    bottom: 52px;
    transform: rotate(-8deg) scale(0.68);
  }

  .hsk-word-card-back {
    right: 12%;
    bottom: 62px;
    transform: rotate(12deg) scale(0.68);
  }

  .hsk-sentence-chat {
    right: 23%;
    top: 24px;
    transform: scale(0.68);
  }

  .hsk-sentence-strip {
    right: 12%;
    width: 188px;
    min-height: 56px;
    font-size: 16px;
    padding-inline: 18px;
  }

  .hsk-sentence-strip-a {
    top: 92px;
  }

  .hsk-sentence-strip-b {
    top: 158px;
  }

  .hsk-sentence-pencil {
    right: 11%;
    bottom: 26px;
    transform: rotate(33deg) scale(0.72);
  }

  .hsk-recom-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  
  .btn-continue-learn {
    width: 100%;
    justify-content: center;
  }
  
  .hsk-lesson-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
  }
  
  .hsk-lesson-left {
    max-width: 100%;
    width: 100%;
  }
  
  .hsk-lesson-center {
    width: 100%;
    justify-content: flex-start;
    margin-right: 0;
  }
  
  .hsk-lesson-right {
    width: 100%;
    justify-content: space-between;
  }
  
  .hsk-lessons-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  
  .hsk-lessons-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hsk-content-type-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Daily Common Chinese Course Redesign
   ========================================================================== */
.daily-course-layout {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 42px;
  padding-bottom: 36px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.daily-course-layout::after {
  position: absolute;
  z-index: -1;
  right: max(-34px, -3vw);
  bottom: 0;
  left: max(-34px, -3vw);
  height: min(320px, 36%);
  content: "";
  border-radius: 36px;
  background:
    url("assets/daily-title-background.png") center bottom / min(920px, 92%) auto no-repeat,
    radial-gradient(circle at 18% 70%, rgba(20, 184, 166, 0.14), transparent 30%),
    radial-gradient(circle at 88% 58%, rgba(124, 92, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(236, 253, 245, 0.72));
  pointer-events: none;
}

.daily-course-hero {
  --hsk-theme-primary: #10b981;
  --hsk-theme-primary-light: #86efac;
  --hsk-theme-primary-dark: #059669;
  --hsk-theme-primary-deep: #065f46;
  --hsk-theme-soft: #ecfdf5;
  --hsk-theme-faint: #f8fffb;
  --hsk-theme-border: #b9e0c3;
  --hsk-theme-shadow: rgba(16, 185, 129, 0.16);
  width: 100%;
  flex: 0 0 auto;
  margin: 0;
}

.daily-course-hero h1 {
  color: var(--hsk-theme-primary-deep);
}

.daily-course-hero-art .hsk-lesson-art-card,
.daily-course-hero-art .hsk-lesson-art-book {
  color: var(--hsk-theme-primary-deep);
}

.daily-course-hero--breakfast,
.daily-course-hero--greeting {
  --hsk-theme-primary: #eab308;
  --hsk-theme-primary-light: #fde047;
  --hsk-theme-primary-dark: #ca8a04;
  --hsk-theme-primary-deep: #854d0e;
  --hsk-theme-soft: #fefce8;
  --hsk-theme-faint: #fffdf2;
  --hsk-theme-border: #f0d98a;
  --hsk-theme-shadow: rgba(234, 179, 8, 0.16);
}

.daily-course-hero--city,
.daily-course-hero--traffic,
.daily-course-hero--interview {
  --hsk-theme-primary: #3b82f6;
  --hsk-theme-primary-light: #93c5fd;
  --hsk-theme-primary-dark: #2563eb;
  --hsk-theme-primary-deep: #1e3a8a;
  --hsk-theme-soft: #eff6ff;
  --hsk-theme-faint: #f8fbff;
  --hsk-theme-border: #b8dcff;
  --hsk-theme-shadow: rgba(59, 130, 246, 0.16);
}

.daily-course-hero--housing,
.daily-course-hero--classroom {
  --hsk-theme-primary: #22c55e;
  --hsk-theme-primary-light: #86efac;
  --hsk-theme-primary-dark: #16a34a;
  --hsk-theme-primary-deep: #166534;
  --hsk-theme-soft: #f0fdf4;
  --hsk-theme-faint: #f8fff9;
  --hsk-theme-border: #b9e0c3;
  --hsk-theme-shadow: rgba(34, 197, 94, 0.16);
}

.daily-course-hero--profile,
.daily-course-hero--travel {
  --hsk-theme-primary: #0ea5e9;
  --hsk-theme-primary-light: #7dd3fc;
  --hsk-theme-primary-dark: #0284c7;
  --hsk-theme-primary-deep: #075985;
  --hsk-theme-soft: #f0f9ff;
  --hsk-theme-faint: #f8fcff;
  --hsk-theme-border: #b6d9f5;
  --hsk-theme-shadow: rgba(14, 165, 233, 0.16);
}

.daily-course-hero--shopping {
  --hsk-theme-primary: #f97316;
  --hsk-theme-primary-light: #fdba74;
  --hsk-theme-primary-dark: #ea580c;
  --hsk-theme-primary-deep: #9a3412;
  --hsk-theme-soft: #fff7ed;
  --hsk-theme-faint: #fffaf5;
  --hsk-theme-border: #fdba74;
  --hsk-theme-shadow: rgba(249, 115, 22, 0.16);
}

.daily-course-hero--relationship {
  --hsk-theme-primary: #ec4899;
  --hsk-theme-primary-light: #f9a8d4;
  --hsk-theme-primary-dark: #db2777;
  --hsk-theme-primary-deep: #9d174d;
  --hsk-theme-soft: #fff5fa;
  --hsk-theme-faint: #fffbfd;
  --hsk-theme-border: #f5b8d6;
  --hsk-theme-shadow: rgba(236, 72, 153, 0.16);
}

.daily-course-hero--holiday {
  --hsk-theme-primary: #ef4444;
  --hsk-theme-primary-light: #fca5a5;
  --hsk-theme-primary-dark: #dc2626;
  --hsk-theme-primary-deep: #991b1b;
  --hsk-theme-soft: #fff5f5;
  --hsk-theme-faint: #fffafa;
  --hsk-theme-border: #fca5a5;
  --hsk-theme-shadow: rgba(239, 68, 68, 0.16);
}

.daily-course-hero--office,
.daily-course-hero--admin {
  --hsk-theme-primary: #477094;
  --hsk-theme-primary-light: #a8c4e0;
  --hsk-theme-primary-dark: #315778;
  --hsk-theme-primary-deep: #1e3a5f;
  --hsk-theme-soft: #f3f7fb;
  --hsk-theme-faint: #fbfdff;
  --hsk-theme-border: #a8c4e0;
  --hsk-theme-shadow: rgba(71, 112, 148, 0.16);
}

.daily-course-hero--factory {
  --hsk-theme-primary: #64748b;
  --hsk-theme-primary-light: #cbd5e1;
  --hsk-theme-primary-dark: #475569;
  --hsk-theme-primary-deep: #334155;
  --hsk-theme-soft: #f7f8fa;
  --hsk-theme-faint: #fcfcfd;
  --hsk-theme-border: #c5cad3;
  --hsk-theme-shadow: rgba(100, 116, 139, 0.16);
}

.daily-course-hero--sickleave,
.daily-course-hero--travel-gear {
  --hsk-theme-primary: #14b8a6;
  --hsk-theme-primary-light: #5eead4;
  --hsk-theme-primary-dark: #0d9488;
  --hsk-theme-primary-deep: #115e59;
  --hsk-theme-soft: #f0fdfa;
  --hsk-theme-faint: #f8fffd;
  --hsk-theme-border: #7dd3cf;
  --hsk-theme-shadow: rgba(20, 184, 166, 0.16);
}

.daily-course-hero--renting-life {
  --hsk-theme-primary: #a67c52;
  --hsk-theme-primary-light: #d4b896;
  --hsk-theme-primary-dark: #8b5e34;
  --hsk-theme-primary-deep: #5f3b1f;
  --hsk-theme-soft: #faf6f1;
  --hsk-theme-faint: #fffaf5;
  --hsk-theme-border: #d4b896;
  --hsk-theme-shadow: rgba(166, 124, 82, 0.16);
}

.daily-course-hero--ecommerce,
.daily-course-hero--universe,
.daily-course-hero--time {
  --hsk-theme-primary: #7c5cff;
  --hsk-theme-primary-light: #c4b5fd;
  --hsk-theme-primary-dark: #6d28d9;
  --hsk-theme-primary-deep: #4c1d95;
  --hsk-theme-soft: #f5f3ff;
  --hsk-theme-faint: #fbfaff;
  --hsk-theme-border: #d9ccff;
  --hsk-theme-shadow: rgba(124, 92, 255, 0.16);
}

.daily-study-screen {
  --hsk-theme-primary: #7c5cff;
  --hsk-theme-primary-light: #c4b5fd;
  --hsk-theme-primary-dark: #6d28d9;
  --hsk-theme-primary-deep: #4c1d95;
  --hsk-theme-soft: #f5f3ff;
  --hsk-theme-faint: #fbfaff;
  --hsk-theme-border: #d9ccff;
  --hsk-theme-shadow: rgba(124, 92, 255, 0.16);
  position: relative;
  width: 100%;
  padding: 0 clamp(20px, 4vw, 40px) 52px;
}

.daily-study-screen--breakfast,
.daily-study-screen--greeting {
  --hsk-theme-primary: #eab308;
  --hsk-theme-primary-light: #fde047;
  --hsk-theme-primary-dark: #ca8a04;
  --hsk-theme-primary-deep: #854d0e;
  --hsk-theme-soft: #fefce8;
  --hsk-theme-faint: #fffdf2;
  --hsk-theme-border: #f0d98a;
  --hsk-theme-shadow: rgba(234, 179, 8, 0.16);
}

.daily-study-screen--city,
.daily-study-screen--traffic,
.daily-study-screen--interview {
  --hsk-theme-primary: #3b82f6;
  --hsk-theme-primary-light: #93c5fd;
  --hsk-theme-primary-dark: #2563eb;
  --hsk-theme-primary-deep: #1e3a8a;
  --hsk-theme-soft: #eff6ff;
  --hsk-theme-faint: #f8fbff;
  --hsk-theme-border: #b8dcff;
  --hsk-theme-shadow: rgba(59, 130, 246, 0.16);
}

.daily-study-screen--housing,
.daily-study-screen--classroom {
  --hsk-theme-primary: #22c55e;
  --hsk-theme-primary-light: #86efac;
  --hsk-theme-primary-dark: #16a34a;
  --hsk-theme-primary-deep: #166534;
  --hsk-theme-soft: #f0fdf4;
  --hsk-theme-faint: #f8fff9;
  --hsk-theme-border: #b9e0c3;
  --hsk-theme-shadow: rgba(34, 197, 94, 0.16);
}

.daily-study-screen--profile,
.daily-study-screen--travel {
  --hsk-theme-primary: #0ea5e9;
  --hsk-theme-primary-light: #7dd3fc;
  --hsk-theme-primary-dark: #0284c7;
  --hsk-theme-primary-deep: #075985;
  --hsk-theme-soft: #f0f9ff;
  --hsk-theme-faint: #f8fcff;
  --hsk-theme-border: #b6d9f5;
  --hsk-theme-shadow: rgba(14, 165, 233, 0.16);
}

.daily-study-screen--shopping {
  --hsk-theme-primary: #f97316;
  --hsk-theme-primary-light: #fdba74;
  --hsk-theme-primary-dark: #ea580c;
  --hsk-theme-primary-deep: #9a3412;
  --hsk-theme-soft: #fff7ed;
  --hsk-theme-faint: #fffaf5;
  --hsk-theme-border: #fdba74;
  --hsk-theme-shadow: rgba(249, 115, 22, 0.16);
}

.daily-study-screen--relationship {
  --hsk-theme-primary: #ec4899;
  --hsk-theme-primary-light: #f9a8d4;
  --hsk-theme-primary-dark: #db2777;
  --hsk-theme-primary-deep: #9d174d;
  --hsk-theme-soft: #fff5fa;
  --hsk-theme-faint: #fffbfd;
  --hsk-theme-border: #f5b8d6;
  --hsk-theme-shadow: rgba(236, 72, 153, 0.16);
}

.daily-study-screen--holiday {
  --hsk-theme-primary: #ef4444;
  --hsk-theme-primary-light: #fca5a5;
  --hsk-theme-primary-dark: #dc2626;
  --hsk-theme-primary-deep: #991b1b;
  --hsk-theme-soft: #fff5f5;
  --hsk-theme-faint: #fffafa;
  --hsk-theme-border: #fca5a5;
  --hsk-theme-shadow: rgba(239, 68, 68, 0.16);
}

.daily-study-screen--office,
.daily-study-screen--admin {
  --hsk-theme-primary: #477094;
  --hsk-theme-primary-light: #a8c4e0;
  --hsk-theme-primary-dark: #315778;
  --hsk-theme-primary-deep: #1e3a5f;
  --hsk-theme-soft: #f3f7fb;
  --hsk-theme-faint: #fbfdff;
  --hsk-theme-border: #a8c4e0;
  --hsk-theme-shadow: rgba(71, 112, 148, 0.16);
}

.daily-study-screen--factory {
  --hsk-theme-primary: #64748b;
  --hsk-theme-primary-light: #cbd5e1;
  --hsk-theme-primary-dark: #475569;
  --hsk-theme-primary-deep: #334155;
  --hsk-theme-soft: #f7f8fa;
  --hsk-theme-faint: #fcfcfd;
  --hsk-theme-border: #c5cad3;
  --hsk-theme-shadow: rgba(100, 116, 139, 0.16);
}

.daily-study-screen--sickleave,
.daily-study-screen--travel-gear {
  --hsk-theme-primary: #14b8a6;
  --hsk-theme-primary-light: #5eead4;
  --hsk-theme-primary-dark: #0d9488;
  --hsk-theme-primary-deep: #115e59;
  --hsk-theme-soft: #f0fdfa;
  --hsk-theme-faint: #f8fffd;
  --hsk-theme-border: #7dd3cf;
  --hsk-theme-shadow: rgba(20, 184, 166, 0.16);
}

.daily-study-screen--renting-life {
  --hsk-theme-primary: #a67c52;
  --hsk-theme-primary-light: #d4b896;
  --hsk-theme-primary-dark: #8b5e34;
  --hsk-theme-primary-deep: #5f3b1f;
  --hsk-theme-soft: #faf6f1;
  --hsk-theme-faint: #fffaf5;
  --hsk-theme-border: #d4b896;
  --hsk-theme-shadow: rgba(166, 124, 82, 0.16);
}

.daily-study-screen--ecommerce,
.daily-study-screen--universe,
.daily-study-screen--time {
  --hsk-theme-primary: #7c5cff;
  --hsk-theme-primary-light: #c4b5fd;
  --hsk-theme-primary-dark: #6d28d9;
  --hsk-theme-primary-deep: #4c1d95;
  --hsk-theme-soft: #f5f3ff;
  --hsk-theme-faint: #fbfaff;
  --hsk-theme-border: #d9ccff;
  --hsk-theme-shadow: rgba(124, 92, 255, 0.16);
}

.daily-study-back-btn {
  position: absolute;
  top: 0;
  right: clamp(20px, 4vw, 40px);
  z-index: 20;
  pointer-events: auto;
}

.daily-study-part-section {
  /* padding: 38px 0 84px; */
}

.daily-study-part-heading {
  margin-bottom: 34px;
}

.daily-study-part-heading h2 {
  max-width: 920px;
}

.daily-study-part-heading p {
  color: var(--hsk-theme-primary-dark);
}

.daily-study-part-card {
  border-color: var(--hsk-theme-border);
}

.daily-remaining-themes-section {
  margin-top: 34px;
}

.daily-remaining-themes-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
}

.daily-remaining-themes-heading h2 {
  margin: 0;
  color: #0f172a;
  /* font-size: clamp(22px, 2.4vw, 28px); */
  font-weight: 950;
  letter-spacing: 0;
}

.daily-remaining-themes-heading span {
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
  text-align: right;
}

.daily-theme-grid--remaining {
  padding: 0;
}

.daily-course-header {
  position: relative;
  width: 100%;
  text-align: center;
  max-width: none;
  margin: 0 auto 4px;
  padding: clamp(28px, 4vw, 44px) clamp(20px, 4vw, 40px) clamp(30px, 4vw, 46px);
  border-radius: 32px;
  overflow: hidden;
  background:
    url("assets/daily-title-background.png") center 12px / min(760px, 88%) auto no-repeat,
    linear-gradient(180deg, rgba(236, 253, 245, 0.92) 0%, rgba(239, 246, 255, 0.88) 58%, rgba(255, 255, 255, 0) 100%);
  box-shadow: inset 0 -1px 0 rgba(16, 185, 129, 0.08);
}

.daily-course-header::before {
  position: absolute;
  inset: auto 6% 0;
  height: 84px;
  content: "";
  background:
    linear-gradient(90deg, transparent 0%, rgba(34, 197, 94, 0.14) 18%, rgba(59, 130, 246, 0.12) 50%, rgba(245, 158, 11, 0.1) 78%, transparent 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(219, 234, 254, 0.42));
  opacity: 0.82;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}

.daily-course-header::after {
  position: absolute;
  inset: 18px clamp(24px, 7vw, 86px) auto;
  height: 78px;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 32px, rgba(16, 185, 129, 0.12) 32px 34px, transparent 34px 68px),
    linear-gradient(0deg, transparent 0 28px, rgba(59, 130, 246, 0.1) 28px 30px, transparent 30px 60px);
  opacity: 0.5;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.daily-course-header h1 {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  min-height: clamp(70px, 9vw, 104px);
  padding: 10px clamp(32px, 8vw, 96px);
  margin: 0 0 14px;
  font-family: var(--font-display);
  /* font-size: clamp(32px, 4vw, 44px); */
  font-weight: 800;
  line-height: 1.2;
  color: #1b5e3b;
  letter-spacing: 0;
  isolation: isolate;
}

.daily-course-header h1::before {
  position: absolute;
  z-index: -1;
  inset: 50% auto auto 50%;
  width: min(860px, calc(100vw - 32px));
  height: clamp(76px, 10vw, 112px);
  content: "";
  background: url("assets/daily-title-background.png") center / contain no-repeat;
  opacity: 0.56;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.daily-course-header p {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  margin-inline: auto;
  font-size: 15px;
  line-height: 1.75;
  color: #64748b;
  font-weight: 500;
}

.daily-theme-grid {
  display: grid;
  grid-template-columns: repeat(4, 24.4%);
  column-gap: 0.8%;
  row-gap: clamp(12px, 1.15vw, 18px);
  padding: 16px;
}

.daily-theme-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #edf2f7;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 228px;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.daily-theme-card--featured {
  position: relative;
  width: 100%;
  aspect-ratio: 1.68 / 1;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  container-type: inline-size;
  border-width: 1px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.daily-theme-card--time {
  border-color: #d9ccff;
  background: #f8f4ff;
  box-shadow: 0 12px 30px rgba(124, 92, 255, 0.14);
}

.daily-theme-card--time:hover {
  border-color: #b59cff;
  box-shadow: 0 15px 37px rgba(124, 92, 255, 0.2);
}

.daily-theme-card--breakfast {
  border-color: #f0d98a;
  background: #fffbeb;
  box-shadow: 0 12px 30px rgba(234, 179, 8, 0.14);
}

.daily-theme-card--breakfast:hover {
  border-color: #e6c45c;
  box-shadow: 0 15px 37px rgba(234, 179, 8, 0.2);
}

.daily-theme-card--city {
  border-color: #b8dcff;
  background: #f3f9ff;
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.14);
}

.daily-theme-card--city:hover {
  border-color: #8ec5ff;
  box-shadow: 0 15px 37px rgba(59, 130, 246, 0.2);
}

.daily-theme-card--housing {
  border-color: #b9e0c3;
  background: #f3fbf5;
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.14);
}

.daily-theme-card--housing:hover {
  border-color: #8fd0a0;
  box-shadow: 0 15px 37px rgba(34, 197, 94, 0.2);
}

.daily-theme-card--profile {
  border-color: #b6d9f5;
  background: #f2f8fd;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.14);
}

.daily-theme-card--profile:hover {
  border-color: #8ec8ef;
  box-shadow: 0 15px 37px rgba(56, 189, 248, 0.2);
}

.daily-theme-card--greeting {
  border-color: #fde047;
  background: #fefce8;
  box-shadow: 0 12px 30px rgba(234, 179, 8, 0.14);
}

.daily-theme-card--greeting:hover {
  border-color: #facc15;
  box-shadow: 0 15px 37px rgba(234, 179, 8, 0.2);
}

.daily-theme-card--interview {
  border-color: #93c5fd;
  background: #eff6ff;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.14);
}

.daily-theme-card--interview:hover {
  border-color: #60a5fa;
  box-shadow: 0 15px 37px rgba(37, 99, 235, 0.2);
}

.daily-theme-card--classroom {
  border-color: #86efac;
  background: #f0fdf4;
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.14);
}

.daily-theme-card--classroom:hover {
  border-color: #4ade80;
  box-shadow: 0 15px 37px rgba(34, 197, 94, 0.2);
}

.daily-theme-card--travel {
  border-color: #7dd3fc;
  background: #f0f9ff;
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.14);
}

.daily-theme-card--travel:hover {
  border-color: #38bdf8;
  box-shadow: 0 15px 37px rgba(14, 165, 233, 0.2);
}

.daily-theme-card--office {
  border-color: #9eb4d4;
  background: #f3f6fb;
  box-shadow: 0 12px 30px rgba(30, 58, 95, 0.14);
}

.daily-theme-card--office:hover {
  border-color: #7f9cc4;
  box-shadow: 0 15px 37px rgba(30, 58, 95, 0.2);
}

.daily-theme-card--factory {
  border-color: #c5cad3;
  background: #f7f8fa;
  box-shadow: 0 12px 30px rgba(100, 116, 139, 0.14);
}

.daily-theme-card--factory:hover {
  border-color: #a8b0bd;
  box-shadow: 0 15px 37px rgba(100, 116, 139, 0.2);
}

.daily-theme-card--ecommerce {
  border-color: #d9ccff;
  background: #f8f4ff;
  box-shadow: 0 12px 30px rgba(124, 92, 255, 0.14);
}

.daily-theme-card--ecommerce:hover {
  border-color: #b59cff;
  box-shadow: 0 15px 37px rgba(124, 92, 255, 0.2);
}

.daily-theme-card--relationship {
  border-color: #f5b8d6;
  background: #fff5fa;
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.14);
}

.daily-theme-card--relationship:hover {
  border-color: #ef8fc0;
  box-shadow: 0 15px 37px rgba(236, 72, 153, 0.2);
}

.daily-theme-card--shopping {
  border-color: #fdba74;
  background: #fff7ed;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.14);
}

.daily-theme-card--shopping:hover {
  border-color: #fb923c;
  box-shadow: 0 15px 37px rgba(249, 115, 22, 0.2);
}

.daily-theme-card--traffic {
  border-color: #93c5fd;
  background: #eff6ff;
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.14);
}

.daily-theme-card--traffic:hover {
  border-color: #60a5fa;
  box-shadow: 0 15px 37px rgba(59, 130, 246, 0.2);
}

.daily-theme-card--renting-life {
  border-color: #d4b896;
  background: #faf6f1;
  box-shadow: 0 12px 30px rgba(166, 124, 82, 0.14);
}

.daily-theme-card--renting-life:hover {
  border-color: #c4a57a;
  box-shadow: 0 15px 37px rgba(166, 124, 82, 0.2);
}

.daily-theme-card--sickleave {
  border-color: #7dd3cf;
  background: #f0fdfa;
  box-shadow: 0 12px 30px rgba(20, 184, 166, 0.14);
}

.daily-theme-card--sickleave:hover {
  border-color: #5eead4;
  box-shadow: 0 15px 37px rgba(20, 184, 166, 0.2);
}

.daily-theme-card--admin {
  border-color: #a8c4e0;
  background: #f3f7fb;
  box-shadow: 0 12px 30px rgba(71, 112, 148, 0.14);
}

.daily-theme-card--admin:hover {
  border-color: #86a8cc;
  box-shadow: 0 15px 37px rgba(71, 112, 148, 0.2);
}

.daily-theme-card--holiday {
  border-color: #fca5a5;
  background: #fff5f5;
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.14);
}

.daily-theme-card--holiday:hover {
  border-color: #f87171;
  box-shadow: 0 15px 37px rgba(239, 68, 68, 0.2);
}

.daily-theme-card--travel-gear {
  border-color: #5eead4;
  background: #f0fdfa;
  box-shadow: 0 12px 30px rgba(20, 184, 166, 0.14);
}

.daily-theme-card--travel-gear:hover {
  border-color: #2dd4bf;
  box-shadow: 0 15px 37px rgba(20, 184, 166, 0.2);
}

.daily-theme-card--universe {
  border-color: #c4b5fd;
  background: #f5f3ff;
  box-shadow: 0 12px 30px rgba(124, 92, 255, 0.14);
}

.daily-theme-card--universe:hover {
  border-color: #a78bfa;
  box-shadow: 0 15px 37px rgba(124, 92, 255, 0.2);
}

.daily-theme-cover {
  position: absolute;
  inset: 0;
  /* width: 100%; */
  height: 100%;
  object-fit: cover;
  object-position: left center;
  z-index: 0;
  transform: scale(1.02);
}

.daily-theme-card-time-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.daily-theme-card--time .daily-theme-card-time-overlay {
  background:
    radial-gradient(circle at 86% 15%, rgba(125, 92, 255, 0.1), transparent 28%),
    linear-gradient(90deg, rgba(248, 244, 255, 0.03) 0%, rgba(248, 244, 255, 0.16) 35%, rgba(255, 255, 255, 0.9) 55%, rgba(255, 255, 255, 0.98) 100%);
}

.daily-theme-card--breakfast .daily-theme-card-time-overlay {
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.06) 0%, rgba(255, 251, 235, 0.3) 38%, rgba(255, 255, 255, 0.84) 58%, rgba(255, 255, 255, 0.96) 100%);
}

.daily-theme-card--city .daily-theme-card-time-overlay {
  background: linear-gradient(90deg, rgba(243, 249, 255, 0.06) 0%, rgba(243, 249, 255, 0.3) 38%, rgba(255, 255, 255, 0.84) 58%, rgba(255, 255, 255, 0.96) 100%);
}

.daily-theme-card--housing .daily-theme-card-time-overlay {
  background: linear-gradient(90deg, rgba(243, 251, 245, 0.06) 0%, rgba(243, 251, 245, 0.3) 38%, rgba(255, 255, 255, 0.84) 58%, rgba(255, 255, 255, 0.96) 100%);
}

.daily-theme-card--profile .daily-theme-card-time-overlay {
  background: linear-gradient(90deg, rgba(242, 248, 253, 0.06) 0%, rgba(242, 248, 253, 0.3) 38%, rgba(255, 255, 255, 0.84) 58%, rgba(255, 255, 255, 0.96) 100%);
}

.daily-theme-card--greeting .daily-theme-card-time-overlay {
  background: linear-gradient(90deg, rgba(254, 252, 232, 0.06) 0%, rgba(254, 252, 232, 0.3) 38%, rgba(255, 255, 255, 0.84) 58%, rgba(255, 255, 255, 0.96) 100%);
}

.daily-theme-card--interview .daily-theme-card-time-overlay {
  background: linear-gradient(90deg, rgba(239, 246, 255, 0.06) 0%, rgba(239, 246, 255, 0.3) 38%, rgba(255, 255, 255, 0.84) 58%, rgba(255, 255, 255, 0.96) 100%);
}

.daily-theme-card--classroom .daily-theme-card-time-overlay {
  background: linear-gradient(90deg, rgba(240, 253, 244, 0.06) 0%, rgba(240, 253, 244, 0.3) 38%, rgba(255, 255, 255, 0.84) 58%, rgba(255, 255, 255, 0.96) 100%);
}

.daily-theme-card--travel .daily-theme-card-time-overlay {
  background: linear-gradient(90deg, rgba(240, 249, 255, 0.06) 0%, rgba(240, 249, 255, 0.3) 38%, rgba(255, 255, 255, 0.84) 58%, rgba(255, 255, 255, 0.96) 100%);
}

.daily-theme-card--office .daily-theme-card-time-overlay {
  background: linear-gradient(90deg, rgba(243, 246, 251, 0.06) 0%, rgba(243, 246, 251, 0.3) 38%, rgba(255, 255, 255, 0.84) 58%, rgba(255, 255, 255, 0.96) 100%);
}

.daily-theme-card--factory .daily-theme-card-time-overlay {
  background: linear-gradient(90deg, rgba(247, 248, 250, 0.06) 0%, rgba(247, 248, 250, 0.3) 38%, rgba(255, 255, 255, 0.84) 58%, rgba(255, 255, 255, 0.96) 100%);
}

.daily-theme-card--ecommerce .daily-theme-card-time-overlay {
  background: linear-gradient(90deg, rgba(248, 244, 255, 0.06) 0%, rgba(248, 244, 255, 0.3) 38%, rgba(255, 255, 255, 0.84) 58%, rgba(255, 255, 255, 0.96) 100%);
}

.daily-theme-card--relationship .daily-theme-card-time-overlay {
  background: linear-gradient(90deg, rgba(255, 245, 250, 0.06) 0%, rgba(255, 245, 250, 0.3) 38%, rgba(255, 255, 255, 0.84) 58%, rgba(255, 255, 255, 0.96) 100%);
}

.daily-theme-card--shopping .daily-theme-card-time-overlay {
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.06) 0%, rgba(255, 247, 237, 0.3) 38%, rgba(255, 255, 255, 0.84) 58%, rgba(255, 255, 255, 0.96) 100%);
}

.daily-theme-card--traffic .daily-theme-card-time-overlay {
  background: linear-gradient(90deg, rgba(239, 246, 255, 0.06) 0%, rgba(239, 246, 255, 0.3) 38%, rgba(255, 255, 255, 0.84) 58%, rgba(255, 255, 255, 0.96) 100%);
}

.daily-theme-card--renting-life .daily-theme-card-time-overlay {
  background: linear-gradient(90deg, rgba(250, 246, 241, 0.06) 0%, rgba(250, 246, 241, 0.3) 38%, rgba(255, 255, 255, 0.84) 58%, rgba(255, 255, 255, 0.96) 100%);
}

.daily-theme-card--sickleave .daily-theme-card-time-overlay {
  background: linear-gradient(90deg, rgba(240, 253, 250, 0.06) 0%, rgba(240, 253, 250, 0.3) 38%, rgba(255, 255, 255, 0.84) 58%, rgba(255, 255, 255, 0.96) 100%);
}

.daily-theme-card--admin .daily-theme-card-time-overlay {
  background: linear-gradient(90deg, rgba(243, 247, 251, 0.06) 0%, rgba(243, 247, 251, 0.3) 38%, rgba(255, 255, 255, 0.84) 58%, rgba(255, 255, 255, 0.96) 100%);
}

.daily-theme-card--holiday .daily-theme-card-time-overlay {
  background: linear-gradient(90deg, rgba(255, 245, 245, 0.06) 0%, rgba(255, 245, 245, 0.3) 38%, rgba(255, 255, 255, 0.84) 58%, rgba(255, 255, 255, 0.96) 100%);
}

.daily-theme-card--travel-gear .daily-theme-card-time-overlay {
  background: linear-gradient(90deg, rgba(240, 253, 250, 0.06) 0%, rgba(240, 253, 250, 0.3) 38%, rgba(255, 255, 255, 0.84) 58%, rgba(255, 255, 255, 0.96) 100%);
}

.daily-theme-card--universe .daily-theme-card-time-overlay {
  background: linear-gradient(90deg, rgba(245, 243, 255, 0.06) 0%, rgba(245, 243, 255, 0.3) 38%, rgba(255, 255, 255, 0.84) 58%, rgba(255, 255, 255, 0.96) 100%);
}

.daily-theme-card--featured .daily-theme-card-time-overlay {
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.5), transparent 24%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.12) 36%, rgba(255, 255, 255, 0.91) 55%, rgba(255, 255, 255, 0.98) 100%);
}

.daily-theme-card-time-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-items: stretch;
  padding: 5% 10% 5% 37%;
}

.daily-theme-card-time-top {
  display: flex;
  justify-content: flex-end;
  min-height: 0;
}

.daily-theme-card--featured .daily-theme-count-badge {
  min-height: 0;
  padding: 3% 5%;
  background: #eff8ef;
  color: #0e8d43;
  font-size: clamp(8px, 3.1cqw, 11px);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 7px 15px rgba(14, 141, 67, 0.08);
}

.daily-theme-card-time-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4%;
  min-height: 0;
  padding: 2% 0;
}

.daily-theme-time-title-row {
  display: inline-flex;
  align-items: center;
  gap: 4%;
  min-width: 0;
}

.daily-theme-time-icon {
  width: clamp(24px, 10cqw, 36px);
  height: clamp(24px, 10cqw, 36px);
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.daily-theme-card--time .daily-theme-time-icon {
  background: linear-gradient(145deg, #7d5cff 0%, #8f73ff 100%);
  box-shadow: 0 9px 15px rgba(125, 92, 255, 0.24);
}

.daily-theme-card--breakfast .daily-theme-time-icon {
  background: linear-gradient(145deg, #e6b422 0%, #f0c94a 100%);
  box-shadow: 0 9px 15px rgba(230, 180, 34, 0.24);
}

.daily-theme-card--city .daily-theme-time-icon {
  background: linear-gradient(145deg, #4b9fff 0%, #6eb3ff 100%);
  box-shadow: 0 9px 15px rgba(75, 159, 255, 0.24);
}

.daily-theme-card--housing .daily-theme-time-icon {
  background: linear-gradient(145deg, #4fbf73 0%, #6ecf8d 100%);
  box-shadow: 0 9px 15px rgba(79, 191, 115, 0.24);
}

.daily-theme-card--profile .daily-theme-time-icon {
  background: linear-gradient(145deg, #4aa3e3 0%, #6bb8ef 100%);
  box-shadow: 0 9px 15px rgba(74, 163, 227, 0.24);
}

.daily-theme-card--greeting .daily-theme-time-icon {
  background: linear-gradient(145deg, #eab308 0%, #facc15 100%);
  box-shadow: 0 9px 15px rgba(234, 179, 8, 0.24);
}

.daily-theme-card--interview .daily-theme-time-icon {
  background: linear-gradient(145deg, #2563eb 0%, #3b82f6 100%);
  box-shadow: 0 9px 15px rgba(37, 99, 235, 0.24);
}

.daily-theme-card--classroom .daily-theme-time-icon {
  background: linear-gradient(145deg, #16a34a 0%, #22c55e 100%);
  box-shadow: 0 9px 15px rgba(22, 163, 74, 0.24);
}

.daily-theme-card--travel .daily-theme-time-icon {
  background: linear-gradient(145deg, #0284c7 0%, #0ea5e9 100%);
  box-shadow: 0 9px 15px rgba(2, 132, 199, 0.24);
}

.daily-theme-card--office .daily-theme-time-icon {
  background: linear-gradient(145deg, #2f4f78 0%, #4a6fa5 100%);
  box-shadow: 0 9px 15px rgba(47, 79, 120, 0.24);
}

.daily-theme-card--factory .daily-theme-time-icon {
  background: linear-gradient(145deg, #6b7280 0%, #94a3b8 100%);
  box-shadow: 0 9px 15px rgba(107, 114, 128, 0.24);
}

.daily-theme-card--ecommerce .daily-theme-time-icon {
  background: linear-gradient(145deg, #7d5cff 0%, #9b7dff 100%);
  box-shadow: 0 9px 15px rgba(125, 92, 255, 0.24);
}

.daily-theme-card--relationship .daily-theme-time-icon {
  background: linear-gradient(145deg, #ec4899 0%, #f472b6 100%);
  box-shadow: 0 9px 15px rgba(236, 72, 153, 0.24);
}

.daily-theme-card--shopping .daily-theme-time-icon {
  background: linear-gradient(145deg, #ea580c 0%, #f97316 100%);
  box-shadow: 0 9px 15px rgba(234, 88, 12, 0.24);
}

.daily-theme-card--traffic .daily-theme-time-icon {
  background: linear-gradient(145deg, #2563eb 0%, #3b82f6 100%);
  box-shadow: 0 9px 15px rgba(37, 99, 235, 0.24);
}

.daily-theme-card--renting-life .daily-theme-time-icon {
  background: linear-gradient(145deg, #92653a 0%, #b8895a 100%);
  box-shadow: 0 9px 15px rgba(146, 101, 58, 0.24);
}

.daily-theme-card--sickleave .daily-theme-time-icon {
  background: linear-gradient(145deg, #0d9488 0%, #14b8a6 100%);
  box-shadow: 0 9px 15px rgba(13, 148, 136, 0.24);
}

.daily-theme-card--admin .daily-theme-time-icon {
  background: linear-gradient(145deg, #4a7094 0%, #6b94b8 100%);
  box-shadow: 0 9px 15px rgba(74, 112, 148, 0.24);
}

.daily-theme-card--holiday .daily-theme-time-icon {
  background: linear-gradient(145deg, #dc2626 0%, #ef4444 100%);
  box-shadow: 0 9px 15px rgba(220, 38, 38, 0.24);
}

.daily-theme-card--travel-gear .daily-theme-time-icon {
  background: linear-gradient(145deg, #0d9488 0%, #2dd4bf 100%);
  box-shadow: 0 9px 15px rgba(13, 148, 136, 0.24);
}

.daily-theme-card--universe .daily-theme-time-icon {
  background: linear-gradient(145deg, #7c3aed 0%, #a78bfa 100%);
  box-shadow: 0 9px 15px rgba(124, 58, 237, 0.24);
}

.daily-theme-time-icon svg {
  width: 48%;
  height: 48%;
}

.daily-theme-card--featured .daily-theme-title {
  color: #173126;
  font-size: clamp(16px, 5.9cqw, 22px);
  line-height: 1.08;
  margin: 0;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-height: calc(1.08em * 2);
  overflow: hidden;
}

.daily-theme-time-zh {
  margin: 0;
  color: #111827;
  font-family: "Noto Sans SC", sans-serif;
  font-size: clamp(10px, 3.5cqw, 14px);
  font-weight: 700;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-height: calc(1.2em * 2);
  overflow: hidden;
}

.daily-theme-time-zh span {
  margin-left: 2%;
  color: #6b7280;
  font-family: inherit;
  font-size: clamp(9px, 3cqw, 12px);
  font-weight: 500;
}

.daily-theme-card--featured .daily-theme-desc {
  flex: 0 0 auto;
  max-width: 100%;
  color: #4b5563;
  font-size: clamp(10px, 3.35cqw, 13px);
  line-height: 1.25;
  font-weight: 500;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-height: calc(1.25em * 2);
  overflow: hidden;
}

.daily-theme-card--featured .daily-theme-enter-btn {
  align-self: flex-start;
  min-height: 0;
  padding: 6% 12%;
  border-radius: 10px;
  font-size: clamp(9px, 3.1cqw, 12px);
  gap: 6%;
  color: #ffffff;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.daily-theme-card--time .daily-theme-enter-btn {
  background: linear-gradient(145deg, #7d5cff 0%, #8f73ff 100%);
  box-shadow: 0 8px 16px rgba(125, 92, 255, 0.22);
}

.daily-theme-card--breakfast .daily-theme-enter-btn {
  background: linear-gradient(145deg, #e6b422 0%, #f0c94a 100%);
  box-shadow: 0 8px 16px rgba(230, 180, 34, 0.22);
}

.daily-theme-card--city .daily-theme-enter-btn {
  background: linear-gradient(145deg, #4b9fff 0%, #6eb3ff 100%);
  box-shadow: 0 8px 16px rgba(75, 159, 255, 0.22);
}

.daily-theme-card--housing .daily-theme-enter-btn {
  background: linear-gradient(145deg, #4fbf73 0%, #6ecf8d 100%);
  box-shadow: 0 8px 16px rgba(79, 191, 115, 0.22);
}

.daily-theme-card--profile .daily-theme-enter-btn {
  background: linear-gradient(145deg, #4aa3e3 0%, #6bb8ef 100%);
  box-shadow: 0 8px 16px rgba(74, 163, 227, 0.22);
}

.daily-theme-card--greeting .daily-theme-enter-btn {
  background: linear-gradient(145deg, #eab308 0%, #facc15 100%);
  box-shadow: 0 8px 16px rgba(234, 179, 8, 0.22);
}

.daily-theme-card--interview .daily-theme-enter-btn {
  background: linear-gradient(145deg, #2563eb 0%, #3b82f6 100%);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.22);
}

.daily-theme-card--classroom .daily-theme-enter-btn {
  background: linear-gradient(145deg, #16a34a 0%, #22c55e 100%);
  box-shadow: 0 8px 16px rgba(22, 163, 74, 0.22);
}

.daily-theme-card--travel .daily-theme-enter-btn {
  background: linear-gradient(145deg, #0284c7 0%, #0ea5e9 100%);
  box-shadow: 0 8px 16px rgba(2, 132, 199, 0.22);
}

.daily-theme-card--office .daily-theme-enter-btn {
  background: linear-gradient(145deg, #2f4f78 0%, #4a6fa5 100%);
  box-shadow: 0 8px 16px rgba(47, 79, 120, 0.22);
}

.daily-theme-card--factory .daily-theme-enter-btn {
  background: linear-gradient(145deg, #6b7280 0%, #94a3b8 100%);
  box-shadow: 0 8px 16px rgba(107, 114, 128, 0.22);
}

.daily-theme-card--ecommerce .daily-theme-enter-btn {
  background: linear-gradient(145deg, #7d5cff 0%, #9b7dff 100%);
  box-shadow: 0 8px 16px rgba(125, 92, 255, 0.22);
}

.daily-theme-card--relationship .daily-theme-enter-btn {
  background: linear-gradient(145deg, #ec4899 0%, #f472b6 100%);
  box-shadow: 0 8px 16px rgba(236, 72, 153, 0.22);
}

.daily-theme-card--shopping .daily-theme-enter-btn {
  background: linear-gradient(145deg, #ea580c 0%, #f97316 100%);
  box-shadow: 0 8px 16px rgba(234, 88, 12, 0.22);
}

.daily-theme-card--traffic .daily-theme-enter-btn {
  background: linear-gradient(145deg, #2563eb 0%, #3b82f6 100%);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.22);
}

.daily-theme-card--renting-life .daily-theme-enter-btn {
  background: linear-gradient(145deg, #92653a 0%, #b8895a 100%);
  box-shadow: 0 8px 16px rgba(146, 101, 58, 0.22);
}

.daily-theme-card--sickleave .daily-theme-enter-btn {
  background: linear-gradient(145deg, #0d9488 0%, #14b8a6 100%);
  box-shadow: 0 8px 16px rgba(13, 148, 136, 0.22);
}

.daily-theme-card--admin .daily-theme-enter-btn {
  background: linear-gradient(145deg, #4a7094 0%, #6b94b8 100%);
  box-shadow: 0 8px 16px rgba(74, 112, 148, 0.22);
}

.daily-theme-card--holiday .daily-theme-enter-btn {
  background: linear-gradient(145deg, #dc2626 0%, #ef4444 100%);
  box-shadow: 0 8px 16px rgba(220, 38, 38, 0.22);
}

.daily-theme-card--travel-gear .daily-theme-enter-btn {
  background: linear-gradient(145deg, #0d9488 0%, #2dd4bf 100%);
  box-shadow: 0 8px 16px rgba(13, 148, 136, 0.22);
}

.daily-theme-card--universe .daily-theme-enter-btn {
  background: linear-gradient(145deg, #7c3aed 0%, #a78bfa 100%);
  box-shadow: 0 8px 16px rgba(124, 58, 237, 0.22);
}

.daily-theme-card--featured .daily-theme-enter-btn svg {
  width: 12px;
  height: 12px;
}

.daily-theme-card--time:hover .daily-theme-enter-btn {
  box-shadow: 0 10px 18px rgba(125, 92, 255, 0.26);
}

.daily-theme-card--breakfast:hover .daily-theme-enter-btn {
  box-shadow: 0 10px 18px rgba(230, 180, 34, 0.26);
}

.daily-theme-card--city:hover .daily-theme-enter-btn {
  box-shadow: 0 10px 18px rgba(75, 159, 255, 0.26);
}

.daily-theme-card--housing:hover .daily-theme-enter-btn {
  box-shadow: 0 10px 18px rgba(79, 191, 115, 0.26);
}

.daily-theme-card--profile:hover .daily-theme-enter-btn {
  box-shadow: 0 10px 18px rgba(74, 163, 227, 0.26);
}

.daily-theme-card--greeting:hover .daily-theme-enter-btn {
  box-shadow: 0 10px 18px rgba(234, 179, 8, 0.26);
}

.daily-theme-card--interview:hover .daily-theme-enter-btn {
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.26);
}

.daily-theme-card--classroom:hover .daily-theme-enter-btn {
  box-shadow: 0 10px 18px rgba(22, 163, 74, 0.26);
}

.daily-theme-card--travel:hover .daily-theme-enter-btn {
  box-shadow: 0 10px 18px rgba(2, 132, 199, 0.26);
}

.daily-theme-card--office:hover .daily-theme-enter-btn {
  box-shadow: 0 10px 18px rgba(47, 79, 120, 0.26);
}

.daily-theme-card--factory:hover .daily-theme-enter-btn {
  box-shadow: 0 10px 18px rgba(107, 114, 128, 0.26);
}

.daily-theme-card--ecommerce:hover .daily-theme-enter-btn {
  box-shadow: 0 10px 18px rgba(125, 92, 255, 0.26);
}

.daily-theme-card--relationship:hover .daily-theme-enter-btn {
  box-shadow: 0 10px 18px rgba(236, 72, 153, 0.26);
}

.daily-theme-card--shopping:hover .daily-theme-enter-btn {
  box-shadow: 0 10px 18px rgba(234, 88, 12, 0.26);
}

.daily-theme-card--traffic:hover .daily-theme-enter-btn {
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.26);
}

.daily-theme-card--renting-life:hover .daily-theme-enter-btn {
  box-shadow: 0 10px 18px rgba(146, 101, 58, 0.26);
}

.daily-theme-card--sickleave:hover .daily-theme-enter-btn {
  box-shadow: 0 10px 18px rgba(13, 148, 136, 0.26);
}

.daily-theme-card--admin:hover .daily-theme-enter-btn {
  box-shadow: 0 10px 18px rgba(74, 112, 148, 0.26);
}

.daily-theme-card--holiday:hover .daily-theme-enter-btn {
  box-shadow: 0 10px 18px rgba(220, 38, 38, 0.26);
}

.daily-theme-card--travel-gear:hover .daily-theme-enter-btn {
  box-shadow: 0 10px 18px rgba(13, 148, 136, 0.26);
}

.daily-theme-card--universe:hover .daily-theme-enter-btn {
  box-shadow: 0 10px 18px rgba(124, 58, 237, 0.26);
}

.daily-theme-card--featured:hover .daily-theme-enter-btn {
  color: #ffffff;
  transform: translateY(-1px);
}

@media (min-width: 901px) {
  .daily-theme-card--featured .daily-theme-count-badge {
    font-size: clamp(8px, 3.1cqw, 11px);
  }

  .daily-theme-card--featured .daily-theme-title {
    font-size: clamp(15px, 5.6cqw, 21px);
  }

  .daily-theme-time-zh {
    font-size: clamp(10px, 3.5cqw, 14px);
  }

  .daily-theme-time-zh span {
    font-size: clamp(9px, 3cqw, 12px);
  }

  .daily-theme-card--featured .daily-theme-desc {
    font-size: clamp(9px, 3.2cqw, 12px);
    max-width: 100%;
  }

  .daily-theme-card--featured .daily-theme-enter-btn {
    font-size: clamp(9px, 3.1cqw, 12px);
    min-height: 0;
    padding: 4% 7%;
  }
}

.daily-theme-card--featured.locked {
  border-color: #d8d9e8;
  background: #fafbfc;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.daily-theme-card--featured.locked .daily-theme-card-time-overlay {
  background: linear-gradient(90deg, rgba(248, 248, 252, 0.24) 0%, rgba(250, 251, 252, 0.46) 40%, rgba(255, 255, 255, 0.9) 63%, rgba(255, 255, 255, 0.98) 100%);
}

.daily-theme-card--featured.locked .daily-theme-enter-btn {
  background: #e2e8f0;
  color: #64748b;
  box-shadow: none;
}

.daily-theme-card:not(.daily-theme-card--featured):hover {
  transform: translateY(-4px);
  border-color: #bbf7d0;
  box-shadow: 0 14px 34px rgba(16, 163, 82, 0.1);
}

.daily-theme-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.daily-theme-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #e8f9ee;
  color: #10a352;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.daily-theme-icon-box svg {
  width: 22px;
  height: 22px;
}

.daily-theme-count-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e8f9ee;
  color: #10a352;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.daily-theme-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  color: #0b5e3c;
}

.daily-theme-desc {
  margin: 0;
  flex: 1;
  font-size: 14px;
  line-height: 1.65;
  color: #4b6b5a;
  font-weight: 500;
}

.daily-theme-enter-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: 128px;
  /* height: 47px; */
  margin-top: auto;
  white-space: nowrap;
  padding: 0;
  border: none;
  background: transparent;
  color: #10a352;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.18s ease, gap 0.18s ease;
}

.daily-theme-card--featured .daily-theme-enter-btn {
  max-width: 112px;
}

.daily-theme-enter-btn svg {
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.daily-theme-card:hover .daily-theme-enter-btn {
  color: #0e9349;
}

.daily-theme-card:hover .daily-theme-enter-btn svg {
  transform: translateX(3px);
}

.daily-theme-card.locked {
  border-color: #cbd5e1;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  opacity: .92;
}

.daily-theme-card.locked:not(.daily-theme-card--featured):hover {
  border-color: #94a3b8;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.daily-theme-card.locked .daily-theme-icon-box,
.daily-theme-icon-box--locked {
  background: transparent;
  color: inherit;
  padding: 0;
  overflow: hidden;
  border-radius: 50%;
}

.daily-theme-card.locked .daily-theme-enter-btn {
  background: #e2e8f0;
  color: #64748b;
  cursor: not-allowed;
}

.daily-theme-card.locked:hover .daily-theme-enter-btn svg {
  transform: none;
}

.daily-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
  font-size: 15px;
  font-weight: 500;
  background: #f8fafc;
  border-radius: 20px;
  border: 1px dashed #cbd5e1;
}

@media (max-width: 1024px) {
  .daily-theme-grid {
    grid-template-columns: repeat(2, 49.5%);
    column-gap: 1%;
    row-gap: clamp(10px, 1.4vw, 16px);
  }

  .daily-theme-card-time-content {
    padding-left: 42%;
  }
}

@media (max-width: 640px) {
  .daily-course-layout {
    gap: 14px;
    /* padding-top: 20px; */
  }

  .daily-course-hero {
    min-height: 92px;
    grid-template-columns: 52px 1fr 116px;
    padding-inline: 14px;
  }

  .daily-course-hero h1 {
    font-size: 22px;
  }

  .daily-course-hero .hsk-lesson-back-btn {
    width: 40px;
    height: 40px;
  }

  .daily-theme-grid {
    grid-template-columns: 1fr;
    gap: 9px;
    align-items: start;
  }

  .daily-theme-card {
    min-height: 0;
    padding: 20px;
  }

  .daily-theme-card--featured {
    aspect-ratio: 2.05 / 1;
    min-height: 0;
    padding: 0;
  }

  .daily-theme-card-time-content {
    min-height: 0;
    padding: 5% 5% 5% 44%;
  }

  .daily-theme-time-icon {
    width: clamp(20px, 8cqw, 30px);
    height: clamp(20px, 8cqw, 30px);
  }

  .daily-theme-card--featured .daily-theme-title {
    font-size: clamp(14px, 5cqw, 17px);
  }

  .daily-theme-time-zh {
    font-size: clamp(10px, 3.2cqw, 12px);
  }

  .daily-theme-card--featured .daily-theme-desc {
    font-size: clamp(9px, 2.9cqw, 11px);
    max-width: 194px;
  }

  .daily-theme-card--featured .daily-theme-enter-btn {
    min-height: 22px;
    padding: 0 10px;
    border-radius: 7px;
    font-size: clamp(8px, 2.4cqw, 10px);
    gap: 5px;
  }
}

.theme-visual-heart .theme-art i::before,
.theme-visual-heart .theme-art i::after {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--theme);
}

.theme-visual-heart .theme-art i::before {
  left: -15px;
  top: 0;
}

.theme-visual-heart .theme-art i::after {
  left: 0;
  top: -15px;
}

.theme-card .theme-art {
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.theme-visual-chat .theme-art i {
  left: 18px;
  top: 12px;
  width: 44px;
  height: 30px;
  border-radius: 14px;
  background: var(--theme);
}

.theme-visual-chat .theme-art i::before {
  left: 8px;
  bottom: -6px;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--theme);
  transform: rotate(45deg);
}

.theme-visual-chat .theme-art i::after {
  right: -18px;
  top: 18px;
  width: 32px;
  height: 22px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--theme) 28%, white);
}

.theme-visual-book .theme-art i {
  box-shadow:
    26px 0 0 color-mix(in srgb, var(--theme) 26%, white),
    13px 6px 0 rgba(255, 255, 255, 0.55);
}

.theme-visual-map .theme-art i,
.theme-visual-bus .theme-art i,
.theme-visual-briefcase .theme-art i,
.theme-visual-cart .theme-art i,
.theme-visual-home .theme-art i,
.theme-visual-clinic .theme-art i,
.theme-visual-desk .theme-art i,
.theme-visual-gear .theme-art i,
.theme-visual-shop .theme-art i,
.theme-visual-heart .theme-art i {
  filter: drop-shadow(0 8px 12px rgba(22, 40, 72, 0.08));
}

.practice-screen {
  width: min(1120px, 100%);
}

.screen-practice .app-top {
  display: none !important;
}

.practice-top {
  display: grid;
  grid-template-columns: auto minmax(170px, 220px) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  padding: 6px 10px 0 2px;
}

.practice-close-btn {
  grid-column: 1;
  width: 40px;
  height: 40px;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f0f4f8;
  color: #64748b;
  font-weight: 300;
  transition: all 140ms ease;
}

.practice-close-btn:hover {
  border-color: #c7d2e0;
  color: #1f2937;
  background: #e0e7ff;
  transform: scale(1.05);
}

/* Confirmation Quit Modal */
.quit-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 200ms ease;
}

.quit-modal-content {
  background: #ffffff;
  border-radius: 24px;
  width: min(420px, 90%);
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  position: relative;
  transform: scale(1);
  transition: transform 200ms ease;
}

.quit-modal-overlay.fade-out {
  opacity: 0;
}

.quit-modal-overlay.fade-out .quit-modal-content {
  transform: scale(0.95);
}

.quit-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid #e2e8f0;
  background: #f0f4f8;
  border-radius: 8px;
  font-size: 22px;
  color: #64748b;
  cursor: pointer;
  transition: all 150ms ease;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 300;
}

.quit-modal-close:hover {
  color: #1f2937;
  background: #e0e7ff;
  border-color: #c7d2e0;
  transform: scale(1.05);
}

.quit-modal-illustration {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.quit-modal-content h2 {
  font-family: var(--font-display), sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.quit-modal-sub {
  font-size: 15px;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 24px 0;
}

.quit-modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-keep-learning {
  width: 100%;
  background: #0ea855;
  color: white;
  border: none;
  border-radius: 999px;
  padding: 14px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(14, 168, 85, 0.2);
  letter-spacing: 0.5px;
  font-family: var(--font-display), sans-serif;
}

.btn-keep-learning:hover {
  background: #0d944c;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(14, 168, 85, 0.35);
}

.btn-keep-learning:active {
  transform: translateY(0);
}

.btn-quit-learning {
  background: transparent;
  border: none;
  color: #64748b;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 16px;
  cursor: pointer;
  transition: color 0.2s;
  font-family: var(--font-display), sans-serif;
  letter-spacing: 0.5px;
}

.btn-quit-learning:hover {
  color: #ef4444;
}

.practice-meta strong,
.practice-meta span {
  display: block;
}

.practice-meta strong {
  font-size: 18px;
  font-family: var(--font-display);
  font-weight: 800;
}

.practice-meta span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin-top: 3px;
}

.thin-progress {
  height: 10px;
  overflow: hidden;
  border: 1px solid #d9e4ee;
  border-radius: 999px;
  background: linear-gradient(180deg, #edf4f8, #e7f0f5);
  box-shadow: inset 0 1px 2px rgba(24, 52, 84, 0.08);
}

.thin-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #57d90c 0%, #19bf6b 48%, #2fb6f5 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

.mode-switch {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(211, 224, 236, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  justify-self: end;
}

.mode-switch button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0 16px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  box-shadow: none;
}

.mode-switch button.active {
  border-color: rgba(167, 232, 167, 0.84);
  background: linear-gradient(180deg, #f0ffe8, #dcfce7);
  color: var(--green-dark);
  box-shadow:
    0 6px 12px rgba(88, 204, 2, 0.12),
    inset 0 -2px 0 rgba(141, 204, 91, 0.35);
}

.practice-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 18px;
  align-items: stretch;
}

.exercise-card {
  position: relative;
  overflow: hidden;
  min-height: 550px;
  border-radius: 32px;
  padding: 30px 22px;
  text-align: center;
  background:
    radial-gradient(circle at 16% 18%, rgba(88, 204, 2, 0.09), transparent 18%),
    radial-gradient(circle at 84% 14%, rgba(28, 176, 246, 0.08), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 251, 255, 0.96) 60%, rgba(237, 246, 255, 0.94));
  box-shadow:
    0 22px 42px rgba(22, 40, 72, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.exercise-card::before,
.exercise-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.exercise-card::before {
  inset: auto auto 16px 18px;
  width: 148px;
  height: 148px;
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 35% 35%, rgba(139, 92, 246, 0.13), transparent 58%);
  opacity: 0.95;
}

.exercise-card::after {
  right: 24px;
  bottom: 78px;
  width: 180px;
  height: 64px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(28, 176, 246, 0.08), transparent 68%);
  filter: blur(4px);
}

.exercise-card > * {
  position: relative;
  z-index: 1;
}

.stage-pill {
  display: inline-block;
  border-radius: 999px;
  background: var(--green);
  padding: 8px 14px;
  color: #fff;
  box-shadow: 0 5px 0 var(--green-dark);
  font-size: 13px;
  font-weight: 950;
}

.exercise-card > p {
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 600;
}

.exercise-card h1 {
  margin: 14px auto 22px;
  font-size: clamp(34px, 5.4vw, 58px);
}

.practice-prompt {
  max-width: min(15ch, 100%);
  text-wrap: balance;
  line-height: 1.02;
}

.exercise-card h1.practice-prompt--compact {
  max-width: min(19ch, 100%);
  font-size: clamp(26px, 3.7vw, 42px);
  line-height: 1.08;
}

.exercise-card h1.practice-prompt--small {
  max-width: min(24ch, 100%);
  font-size: clamp(23px, 3.05vw, 34px);
  line-height: 1.12;
  margin-bottom: 18px;
}

.exercise-card h1.practice-prompt--tiny {
  max-width: min(30ch, 100%);
  font-size: clamp(20px, 2.45vw, 28px);
  line-height: 1.14;
  margin-top: 10px;
  margin-bottom: 16px;
}

.exercise-card h1.practice-prompt--dictation {
  max-width: none;
  font-size: clamp(36px, 5.8vw, 64px);
}

.slot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}

.answer-slot {
  min-width: 138px;
}

.slot-line {
  position: relative;
  display: grid;
  min-height: 92px;
  place-items: end center;
  border-bottom: 6px solid var(--purple);
  border-radius: 20px 20px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 249, 255, 0.68) 58%, rgba(255, 255, 255, 0));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 10px 18px rgba(47, 88, 129, 0.05);
  padding: 14px 12px 10px;
  overflow: hidden;
}

.slot-progress-fill {
  position: absolute;
  left: 0;
  right: auto;
  bottom: 0;
  width: 0;
  height: 6px;
  border-radius: 999px;
  background: var(--green);
  opacity: 0.72;
  transition: width 120ms ease;
}

#practiceScreen .answer-slot.color-0 .slot-line {
  border-color: #62c6ff;
}

#practiceScreen .answer-slot.color-1 .slot-line {
  border-color: #74d99f;
}

#practiceScreen .answer-slot.color-2 .slot-line {
  border-color: #f4c96b;
}

#practiceScreen .answer-slot.color-3 .slot-line {
  border-color: #b79df2;
}

#practiceScreen .answer-slot.color-4 .slot-line {
  border-color: #7edbd2;
}

#practiceScreen .answer-slot.color-5 .slot-line {
  border-color: #f3a6c8;
}

.answer-slot input {
  position: relative;
  z-index: 1;
  width: min(190px, 100%);
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 27px;
  font-weight: 950;
  outline: none;
  text-align: center;
}

.answer-slot.progress input {
  color: var(--green-dark);
}

.answer-slot.error input {
  color: var(--red);
}

.answer-slot.error .slot-line {
  border-color: var(--red);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 241, 241, 0.7) 58%, rgba(255, 255, 255, 0));
}

.answer-slot input::placeholder {
  color: rgba(106, 114, 130, 0.35);
}

.answer-slot strong {
  font-size: 30px;
  font-weight: 950;
}

.answer-slot small {
  color: var(--muted);
  font-weight: 900;
}

.answer-slot > span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.slot-progress-text {
  color: var(--green-dark) !important;
  font-size: 12px !important;
}

.teacher-preview {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin: 6px auto 12px;
  border: 1px solid rgba(213, 225, 235, 0.95);
  border-bottom-width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.92));
  box-shadow:
    0 10px 20px rgba(36, 77, 108, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  padding: 8px 13px;
}

.teacher-preview span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.teacher-preview strong {
  font-size: 16px;
  font-weight: 950;
}

.teacher-preview em {
  color: var(--purple);
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}

.feedback {
  min-height: 28px;
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
}

.feedback.good {
  color: var(--green-dark);
}

.feedback.warn {
  color: #a15c00;
}

.feedback.bad {
  color: var(--red);
}

.memory-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 255, 0.95) 66%, rgba(235, 245, 252, 0.95)),
    linear-gradient(160deg, rgba(188, 241, 214, 0.2), rgba(255, 255, 255, 0));
  box-shadow:
    0 18px 34px rgba(22, 40, 72, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.memory-panel::before,
.memory-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.memory-panel::before {
  inset: 0 auto 0 0;
  width: 14px;
  background: linear-gradient(180deg, rgba(88, 204, 2, 0.34), rgba(28, 176, 246, 0.24));
}

.memory-panel::after {
  top: 18px;
  right: 14px;
  width: 110px;
  height: 110px;
  border-radius: 28px;
  background: radial-gradient(circle at 40% 40%, rgba(139, 92, 246, 0.11), transparent 62%);
  filter: blur(1px);
}

.memory-panel > * {
  position: relative;
  z-index: 1;
}

.memory-panel strong,
.memory-panel span,
.memory-panel p {
  display: block;
}

.memory-panel strong {
  min-height: 56px;
  font-size: 44px;
  font-family: var(--font-display);
  font-weight: 900;
}

.memory-panel span {
  color: var(--purple);
  font-weight: 700;
}

.memory-panel div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.memory-panel em {
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(243, 248, 252, 0.92), rgba(232, 241, 249, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
  padding: 8px 10px;
  color: #344054;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.memory-panel:not(.ready) div {
  opacity: 0.35;
}

.function-dock {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  border: 1px solid rgba(211, 227, 235, 0.96);
  border-bottom-width: 5px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(240, 247, 252, 0.94)),
    rgba(255, 255, 255, 0.92);
  box-shadow:
    0 16px 28px rgba(26, 56, 89, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  padding: 9px;
  backdrop-filter: blur(12px);
}

.function-dock button,
.complete-actions button {
  min-height: 56px;
  border: 1px solid rgba(208, 222, 232, 0.95);
  border-bottom-width: 4px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 253, 0.96));
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  box-shadow:
    0 8px 16px rgba(32, 76, 112, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.function-dock #prevBtn {
  background: linear-gradient(180deg, rgba(245, 247, 250, 0.98), rgba(235, 240, 245, 0.95));
  border-color: rgba(200, 212, 224, 0.98);
}

.function-dock #playBtn {
  background: linear-gradient(180deg, rgba(240, 248, 255, 0.98), rgba(228, 241, 255, 0.95));
  border-color: rgba(183, 211, 236, 0.98);
}

.function-dock #slowBtn {
  background: linear-gradient(180deg, rgba(242, 255, 248, 0.98), rgba(226, 246, 235, 0.95));
  border-color: rgba(186, 225, 202, 0.98);
}

.function-dock #saveBtn {
  background: linear-gradient(180deg, rgba(255, 247, 232, 0.98), rgba(255, 237, 205, 0.95));
  border-color: rgba(239, 208, 157, 0.98);
}

.function-dock button.saved,
.function-dock button.saved:not(.primary) {
  background: linear-gradient(180deg, #ffe099, #ffb833) !important;
  border-color: #e69d19 !important;
  color: #7a4f00 !important;
  box-shadow: 0 0 12px rgba(255, 184, 51, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}
.function-dock button.saved span {
  color: #d48300 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.function-dock #answerBtn {
  background: linear-gradient(180deg, rgba(247, 243, 255, 0.98), rgba(236, 228, 255, 0.95));
  border-color: rgba(203, 187, 241, 0.98);
}

.function-dock button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.function-dock button:hover,
.complete-actions button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 20px rgba(32, 76, 112, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.function-dock span {
  margin-right: 8px;
  font-size: 15px;
  opacity: 0.9;
}

.function-dock button.primary,
.complete-actions .primary {
  border-color: #b7e99c;
  background: linear-gradient(180deg, #69df10, var(--green));
  color: #fff;
  box-shadow:
    0 14px 20px rgba(88, 204, 2, 0.24),
    inset 0 -2px 0 var(--green-dark),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.complete-screen {
  display: grid;
  min-height: 76vh;
  place-items: center;
}

.complete-card {
  width: min(620px, 100%);
  border-radius: 32px;
  padding: 38px;
  text-align: center;
}

.trophy {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  box-shadow: 0 9px 0 var(--green-dark);
  font-size: 54px;
  font-weight: 950;
}

.complete-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0;
}

.complete-stats span {
  border-radius: 18px;
  background: #f4f8fb;
  padding: 14px;
  color: var(--muted);
  font-weight: 900;
}

.complete-stats strong {
  display: block;
  color: var(--ink);
  font-size: 28px;
  font-family: var(--font-display);
}

.complete-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.complete-actions button {
  padding: 0 18px;
}

.burst-layer {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--yellow);
  animation: burst 760ms ease-out forwards;
}

.particle:nth-child(3n) {
  background: var(--green);
}

.particle:nth-child(3n + 1) {
  background: var(--blue);
}

@keyframes burst {
  from {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg);
  }

  to {
    opacity: 0;
    transform: translate(var(--x), var(--y)) rotate(190deg);
  }
}

@media (max-width: 920px) {
  .home-layout,
  .course-layout,
  .practice-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "dash"
      "path"
      "modules";
  }

  .dashboard-card {
    min-height: 0;
  }

  .learning-map {
    grid-template-columns: repeat(4, minmax(70px, 1fr));
  }

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

  .practice-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }

  .practice-close-btn {
    order: 1;
    margin-right: 0;
  }

  .practice-meta {
    order: 2;
    flex: 1;
    padding: 15px 8px !important;
  }

  .mode-switch {
    order: 3;
  }

  .thin-progress {
    order: 4;
    width: 100%;
    flex-basis: 100%;
    margin-top: 4px;
  }

  .memory-panel {
    order: -1;
  }
}

@media (max-width: 640px) {
  .app-shell {
    /* padding: 10px 10px 24px; */
  }

  .app-top {
    top: 8px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .app-top:has(#backBtn.hidden) {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand {
    min-height: 52px;
    padding: 6px 10px 6px 8px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 14px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand span {
    display: none;
  }

  .top-illustration {
    display: none;
  }

  .top-actions {
    gap: 6px;
    padding: 2px;
  }

  .pill-btn {
    max-width: 112px;
  }

  .module-picker,
  .mini-stats,
  .theme-grid {
    grid-template-columns: 1fr;
    z-index: 999;
  }

  .function-dock {
    grid-template-columns: 1fr;
  }

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

  .module-tile {
    grid-template-columns: 1fr;
    grid-template-areas:
      "art"
      "icon"
      "copy";
    min-height: 0;
  }

  .tile-illustration {
    min-height: 128px;
  }

  .lesson-node {
    grid-template-columns: auto 1fr auto;
  }

  .lesson-node b {
    grid-column: 2 / -1;
    width: max-content;
  }

  .lesson-art {
    width: 56px;
    height: 48px;
  }

  .theme-card {
    min-height: 150px;
  }

  .exercise-card {
    min-height: 560px;
    padding: 24px 10px;
  }

  .exercise-card h1 {
    font-size: clamp(42px, 13vw, 64px);
  }

  .teacher-preview {
    grid-auto-flow: row;
    border-radius: 18px;
  }
}

/* V1 visual polish: unified education-product baseline, no feature changes. */
:root {
  --bg: #f2fbf8;
  --ink: #132033;
  --muted: #667085;
  --line: #dce8ee;
  --card: #ffffff;
  --green: #18c84f;
  --green-dark: #0f9f3d;
  --blue: #14a9de;
  --purple: #6f7fd8;
  --red: #ef4444;
  --yellow: #f6b928;
  --shadow: 0 10px 28px rgba(16, 32, 51, 0.07);
  --shadow-soft: 0 6px 18px rgba(16, 32, 51, 0.055);
}

html,
body {
  background:
    linear-gradient(180deg, #f4fffb 0%, #eef9fb 48%, #f7fbff 100%),
    var(--bg);
}

.app-shell {
  /* padding-top: 12px; */
}



.app-top:has(#backBtn.hidden) {
  grid-template-columns: minmax(260px, 380px) minmax(120px, 0.72fr) auto;
}

.app-top::before {
  display: none;
}

.brand {
  min-height: 58px;
  border-color: rgba(222, 234, 239, 0.96);
  border-radius: 20px;
  background: #fff;
  box-shadow: inset 0 -1px 0 rgba(221, 232, 238, 0.8);
}

.brand-logo {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(16, 32, 51, 0.08);
}

.brand strong {
  font-size: 15px;
  font-weight: 800;
}

.brand span {
  font-size: 11px;
  font-weight: 600;
}

.top-illustration {
  min-height: 50px;
  border-color: rgba(226, 237, 242, 0.9);
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(238, 253, 248, 0.86), rgba(248, 252, 255, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  opacity: 0.72;
}

.top-actions {
  border: 0;
  background: transparent;
  padding: 0;
}

.icon-btn,
.pill-btn,
.lang-toggle,
.level-tabs button,
.mode-switch button {
  border: 1px solid rgba(211, 224, 236, 0.95);
  border-bottom-width: 3px;
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  color: var(--ink);
}

.dashboard-card,
.path-panel,
.module-tile,
.course-side,
.lesson-path,
.course-head,
.theme-card,
.exercise-card,
.memory-panel,
.complete-card {
  border: 1px solid var(--line);
  border-bottom-width: 4px;
  background: #fff;
  box-shadow: var(--shadow);
}

.dashboard-card,
.course-side,
.lesson-path,
.exercise-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.96)),
    #fff;
}

.dashboard-card::after,
.course-side::after,
.path-panel::after,
.memory-panel::after {
  opacity: 0.35;
}

h1 {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 850;
}

.course-side h1,
.course-head h1 {
  font-size: clamp(28px, 3.2vw, 40px);
}

p {
  color: var(--muted);
  font-weight: 500;
}

.eyebrow,
.section-title span {
  background: #e8f9ee;
  color: var(--green-dark);
}

.goal-orb {
  background: #13243a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mini-stats button,
.level-tabs button {
  border-width: 1px;
  border-bottom-width: 3px;
  background: #fff;
}

.path-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 255, 0.94));
}

.learning-map {
  gap: 14px;
}

.path-node span {
  width: 68px;
  height: 68px;
  background: var(--green);
  box-shadow: 0 7px 0 var(--green-dark);
}

.path-node.node-1 span,
.path-node.node-3 span,
.path-node.node-5 span {
  background: var(--green);
  box-shadow: 0 7px 0 var(--green-dark);
}

.path-node.node-2 span,
.path-node.node-4 span,
.path-node.node-6 span {
  background: var(--blue);
  box-shadow: 0 7px 0 #087ead;
}

.module-tile {
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.96));
}

.hsk-tile,
.daily-tile {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.96));
}

.tile-icon {
  background: #e8f9ee;
  color: var(--green-dark);
  box-shadow: inset 0 -2px 0 rgba(15, 159, 61, 0.12);
}

.daily-tile .tile-icon {
  background: #e9f7fd;
  color: #087ead;
}

.module-tile strong {
  font-size: 26px;
  font-weight: 850;
}

.module-tile b,
.daily-tile b {
  background: var(--green);
  box-shadow: 0 4px 0 var(--green-dark);
}

.tile-illustration {
  background:
    linear-gradient(145deg, rgba(236, 253, 244, 0.72), rgba(238, 248, 255, 0.6));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.level-tabs button.active {
  border-color: #9ee9b7;
  background: #e8f9ee;
  color: var(--green-dark);
}

.lesson-path {
  gap: 10px;
  padding: 22px;
}

.lesson-node {
  min-height: 96px;
  border-width: 1px;
  border-bottom-width: 3px;
  border-radius: 20px;
  background: #fff;
}

.lesson-node span {
  background: var(--green);
  box-shadow: 0 5px 0 var(--green-dark);
}

.lesson-art {
  background: #eef8fb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.lesson-visual-0,
.lesson-visual-2,
.lesson-visual-4 {
  --lesson-accent: var(--green);
}

.lesson-visual-1,
.lesson-visual-3,
.lesson-visual-5 {
  --lesson-accent: var(--blue);
}

.theme-grid {
  gap: 14px;
}

.theme-card {
  grid-template-columns: auto 1fr;
  min-height: 166px;
  border-radius: 22px;
  background: #fff;
}

.theme-card::after {
  content: "";
  position: absolute;
  inset: auto 14px 14px auto;
  width: 84px;
  height: 54px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(24, 200, 79, 0.08), rgba(20, 169, 222, 0.08));
  pointer-events: none;
}

.theme-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #e8f9ee;
  color: var(--green-dark);
  font-family: var(--font-zh);
  font-size: 22px;
  box-shadow: inset 0 -2px 0 rgba(15, 159, 61, 0.1);
}

.theme-art {
  background: #f1f8fb;
  opacity: 0.72;
}

.theme-art i,
.theme-art i::before,
.theme-art i::after {
  background-color: var(--green);
}

.theme-card strong {
  font-size: 16px;
  font-weight: 800;
}

.theme-card em {
  font-size: 12px;
  font-weight: 600;
}

.practice-layout {
  gap: 14px;
}

.exercise-card {
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 252, 255, 0.96));
}

.exercise-card::before,
.exercise-card::after {
  opacity: 0.28;
}

.exercise-card h1 {
  font-size: clamp(32px, 4.8vw, 52px);
  font-weight: 850;
}

.exercise-card h1.practice-prompt--compact {
  font-size: clamp(25px, 3.4vw, 38px);
}

.exercise-card h1.practice-prompt--small {
  font-size: clamp(22px, 2.85vw, 31px);
}

.exercise-card h1.practice-prompt--tiny {
  font-size: clamp(19px, 2.3vw, 26px);
}

.slot-row {
  gap: 12px;
}

.slot-line {
  border-bottom-width: 5px;
  border-color: var(--green);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

#practiceScreen .answer-slot.color-0 .slot-line {
  border-color: #62c6ff;
}

#practiceScreen .answer-slot.color-1 .slot-line {
  border-color: #74d99f;
}

#practiceScreen .answer-slot.color-2 .slot-line {
  border-color: #f4c96b;
}

#practiceScreen .answer-slot.color-3 .slot-line {
  border-color: #b79df2;
}

#practiceScreen .answer-slot.color-4 .slot-line {
  border-color: #7edbd2;
}

#practiceScreen .answer-slot.color-5 .slot-line {
  border-color: #f3a6c8;
}

.answer-slot input {
  font-size: 25px;
  font-weight: 850;
}

.answer-slot strong {
  font-size: 28px;
  font-weight: 850;
}

.answer-slot > span {
  font-size: 12px;
  font-weight: 650;
}

.teacher-preview {
  border-width: 1px;
  border-bottom-width: 3px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.memory-panel {
  background: #fff;
  box-shadow: var(--shadow);
}

.memory-panel::before {
  width: 8px;
  background: linear-gradient(180deg, rgba(24, 200, 79, 0.38), rgba(20, 169, 222, 0.24));
}

.memory-panel strong {
  font-size: 38px;
}

.memory-panel span {
  color: var(--blue);
}

.memory-panel em {
  background: #f6fafc;
}

.function-dock {
  border-width: 1px;
  border-bottom-width: 3px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.function-dock button,
.complete-actions button,
.function-dock button:not(.primary) {
  border: 1px solid rgba(211, 224, 236, 0.95);
  border-bottom-width: 3px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.function-dock button.primary,
.complete-actions .primary {
  border-color: #9ee9b7;
  background: var(--green);
  color: #fff;
  box-shadow:
    0 10px 18px rgba(24, 200, 79, 0.2),
    inset 0 -3px 0 var(--green-dark);
}

@media (max-width: 920px) {
  .app-top,
  .app-top:has(#backBtn.hidden) {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .top-illustration {
    display: none;
  }

  .memory-panel {
    order: 0;
  }
}

@media (max-width: 640px) {
  .app-top,
  .app-top:has(#backBtn.hidden) {
    grid-template-columns: auto minmax(0, 1fr) auto;
    border-radius: 20px;
  }

  .brand {
    min-width: 0;
  }

  .theme-grid {
    grid-template-columns: 1fr;
  }

  .exercise-card h1 {
    font-size: clamp(34px, 11vw, 54px);
  }
}

/* V1 visual polish round 2: denser, calmer, more product-like. */
:root {
  --bg: #f5fbf8;
  --ink: #142235;
  --muted: #667085;
  --line: #dbe7ec;
  --green: #10c970;
  --green-dark: #06a85c;
  --blue: #149fd0;
  --purple: #6873c7;
  --yellow: #e8b23f;
  --shadow: 0 8px 22px rgba(20, 34, 53, 0.06);
  --shadow-soft: 0 4px 12px rgba(20, 34, 53, 0.045);
}

body {
  background:
    linear-gradient(180deg, #f8fffb 0%, #f1faf8 46%, #f7fbfd 100%),
    var(--bg);
}

.app-top,
.app-top:has(#backBtn.hidden) {
  grid-template-columns: auto minmax(220px, 1fr) auto;
  gap: 8px;
  min-height: 62px;
  margin-bottom: 12px;
  border-bottom-width: 2px;
  background: rgba(255, 255, 255, 0.96);
}

.top-illustration {
  display: none !important;
}

.brand {
  min-height: 48px;
  width: max-content;
  max-width: min(360px, 100%);
  padding: 6px 14px 6px 8px;
  border-radius: 16px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border-radius: 12px;
}

.brand strong {
  font-size: 14px;
  font-weight: 750;
}

.brand span {
  font-size: 10.5px;
  font-weight: 500;
}

.icon-btn,
.pill-btn,
.lang-toggle {
  min-height: 38px;
  border-bottom-width: 2px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 650;
  box-shadow: var(--shadow-soft);
}

.icon-btn {
  width: 38px;
  font-size: 22px;
}

.pill-btn,
.lang-toggle {
  padding: 0 13px;
}

.home-layout {
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 14px;
}

.dashboard-card,
.path-panel,
.module-tile,
.course-side,
.lesson-path,
.course-head,
.theme-card,
.exercise-card,
.memory-panel,
.complete-card {
  border-bottom-width: 3px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.dashboard-card {
  min-height: 0;
  padding: 22px;
}

.dashboard-card::after {
  display: none;
}

h1 {
  font-size: clamp(29px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.08;
}

.course-side h1,
.course-head h1 {
  font-size: clamp(25px, 2.7vw, 34px);
  font-weight: 700;
}

p {
  font-weight: 450;
  line-height: 1.55;
}

.eyebrow {
  margin-bottom: 6px;
  font-weight: 800;
}

.goal-orb {
  margin: 20px 0 14px;
  border-radius: 18px;
  padding: 18px;
  background: #17304a;
}

.goal-orb span {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  box-shadow: 0 4px 0 var(--green-dark);
  font-size: 22px;
}

.goal-orb strong {
  font-size: 17px;
  font-weight: 700;
}

.mini-stats {
  gap: 8px;
}

.mini-stats button {
  min-height: 74px;
  border-radius: 14px;
  padding: 12px;
}

.mini-stats strong {
  font-size: 24px;
  font-weight: 750;
}

.path-panel {
  padding: 18px 20px 20px;
}

.section-title {
  margin-bottom: 18px;
}

.section-title strong {
  font-size: 13px;
  font-weight: 550;
}

.learning-map {
  min-height: 170px;
  gap: 10px;
}

.path-node {
  min-height: 118px;
  gap: 8px;
}

.path-node span {
  width: 56px;
  height: 56px;
  font-size: 22px;
  box-shadow: 0 5px 0 rgba(6, 168, 92, 0.9);
}

.path-node.node-2 span,
.path-node.node-4 span,
.path-node.node-6 span {
  box-shadow: 0 5px 0 rgba(8, 126, 173, 0.82);
}

.path-node strong {
  font-size: 12.5px;
  font-weight: 700;
}

.path-node em {
  font-size: 11px;
  font-weight: 500;
}

.module-picker {
  gap: 14px;
}

.module-tile {
  min-height: 170px;
  grid-template-columns: 112px 1fr;
  column-gap: 16px;
  padding: 18px;
}

.tile-illustration {
  min-height: 126px;
  border-radius: 20px;
  opacity: 0.74;
}

.tile-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  font-size: 15px;
}

.module-tile strong {
  font-size: 23px;
  font-weight: 700;
}

.module-tile em {
  font-size: 13px;
  font-weight: 450;
}

.module-tile b {
  margin-top: 10px;
  padding: 8px 14px;
  box-shadow: 0 3px 0 var(--green-dark);
  font-weight: 650;
}

.course-layout {
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 14px;
}

.course-side {
  padding: 22px;
}

.course-side::after {
  display: none;
}

.level-tabs {
  gap: 8px;
  margin-top: 18px;
}

.level-tabs button {
  min-height: 48px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 650;
}

.lesson-path {
  gap: 9px;
  padding: 18px;
}

.lesson-node {
  min-height: 78px;
  grid-template-columns: auto 1fr auto auto;
  gap: 12px;
  border-radius: 16px;
  padding: 12px;
}

.lesson-node span {
  width: 48px;
  height: 48px;
  font-size: 20px;
  box-shadow: 0 4px 0 var(--green-dark);
}

.lesson-node strong {
  font-size: 16px;
  font-weight: 700;
}

.lesson-node em,
.lesson-node b {
  font-size: 12.5px;
  font-weight: 500;
}

.lesson-node b {
  padding: 6px 10px;
  background: #f7fbfd;
  box-shadow: inset 0 0 0 1px rgba(210, 226, 236, 0.7);
}

.lesson-art {
  width: 54px;
  height: 44px;
  border-radius: 14px;
  opacity: 0.58;
}

.course-head.compact {
  padding: 20px 22px;
  margin-bottom: 14px;
}

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

.theme-card {
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  min-height: 126px;
  gap: 6px 12px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
}

.theme-card::after,
.theme-art {
  display: none !important;
}

.theme-icon {
  grid-row: 1 / span 3;
  align-self: start;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: #e9fff3;
  color: var(--green-dark);
  box-shadow: none;
}

.theme-icon i,
.theme-icon i::before,
.theme-icon i::after {
  content: "";
  position: absolute;
  display: block;
  background: currentColor;
}

.theme-icon i {
  position: relative;
  width: 21px;
  height: 15px;
  border-radius: 5px;
}

.theme-visual-chat .theme-icon i {
  border-radius: 7px;
}

.theme-visual-chat .theme-icon i::after {
  right: 2px;
  bottom: -5px;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  border-radius: 2px;
}

.theme-visual-briefcase .theme-icon i {
  height: 14px;
  border-radius: 4px;
}

.theme-visual-briefcase .theme-icon i::before {
  left: 6px;
  top: -5px;
  width: 9px;
  height: 5px;
  border: 3px solid currentColor;
  border-bottom: 0;
  background: transparent;
  border-radius: 5px 5px 0 0;
}

.theme-visual-book .theme-icon i {
  width: 17px;
  height: 22px;
  border-radius: 4px 7px 7px 4px;
}

.theme-visual-map .theme-icon i {
  width: 23px;
  height: 17px;
  clip-path: polygon(0 8%, 30% 0, 64% 10%, 100% 0, 100% 92%, 68% 100%, 35% 88%, 0 100%);
}

.theme-visual-cart .theme-icon i {
  width: 22px;
  height: 14px;
  border: 3px solid currentColor;
  border-top: 0;
  background: transparent;
  border-radius: 3px;
}

.theme-visual-cart .theme-icon i::before,
.theme-visual-cart .theme-icon i::after {
  bottom: -7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.theme-visual-cart .theme-icon i::before {
  left: 2px;
}

.theme-visual-cart .theme-icon i::after {
  right: 2px;
}

.theme-visual-bus .theme-icon i {
  width: 24px;
  height: 16px;
  border-radius: 5px;
}

.theme-visual-bus .theme-icon i::before {
  left: 4px;
  top: 4px;
  width: 16px;
  height: 5px;
  background: #fff;
  border-radius: 3px;
}

.theme-visual-home .theme-icon i {
  width: 20px;
  height: 15px;
  border-radius: 3px;
  margin-top: 5px;
}

.theme-visual-home .theme-icon i::before {
  left: -2px;
  top: -9px;
  width: 18px;
  height: 18px;
  transform: rotate(45deg);
  border-radius: 3px;
  z-index: -1;
}

.theme-visual-clinic .theme-icon i {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

.theme-visual-clinic .theme-icon i::before {
  left: 8px;
  top: 4px;
  width: 4px;
  height: 12px;
  background: #fff;
  border-radius: 999px;
}

.theme-visual-clinic .theme-icon i::after {
  left: 4px;
  top: 8px;
  width: 12px;
  height: 4px;
  background: #fff;
  border-radius: 999px;
}

.theme-visual-desk .theme-icon i,
.theme-visual-shop .theme-icon i {
  width: 23px;
  height: 15px;
  border-radius: 4px;
}

.theme-visual-gear .theme-icon i {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #e9fff3 0 5px, transparent 6px),
    currentColor;
}

.theme-visual-heart .theme-icon i {
  width: 18px;
  height: 18px;
  transform: rotate(45deg);
  border-radius: 4px;
}

.theme-visual-heart .theme-icon i::before,
.theme-visual-heart .theme-icon i::after {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.theme-visual-heart .theme-icon i::before {
  left: -9px;
}

.theme-visual-heart .theme-icon i::after {
  top: -9px;
}

.theme-card strong,
.theme-card small,
.theme-card em {
  grid-column: 2;
  position: relative;
  z-index: 1;
}

.theme-card strong {
  align-self: start;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.theme-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 450;
  line-height: 1.35;
}

.theme-card em {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 600;
}

.practice-top {
  grid-template-columns: auto minmax(150px, 200px) minmax(220px, 1fr) auto;
  gap: 14px;
  margin-bottom: 12px;
}

.practice-meta strong {
  font-weight: 700;
}

.mode-switch {
  padding: 3px;
}

.mode-switch button {
  min-height: 34px;
  padding: 0 13px;
  border-bottom-width: 1px;
  font-size: 13px;
  font-weight: 600;
}

.mode-switch button.active {
  background: #e9fff3;
  box-shadow: inset 0 0 0 1px rgba(6, 168, 92, 0.12);
}

.practice-layout {
  grid-template-columns: minmax(0, 1fr) 248px;
  gap: 12px;
}

.exercise-card {
  min-height: 430px;
  border-radius: 20px;
  padding: 22px 24px 18px;
}

.exercise-card::before,
.exercise-card::after {
  display: none;
}

.stage-pill {
  padding: 6px 12px;
  box-shadow: 0 3px 0 var(--green-dark);
  font-size: 12px;
  font-weight: 700;
}

.exercise-card > p {
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 450;
}

.exercise-card h1 {
  margin: 10px auto 16px;
  font-size: clamp(30px, 4.1vw, 46px);
  font-weight: 700;
}

.exercise-card h1.practice-prompt--compact {
  font-size: clamp(24px, 3vw, 34px);
}

.exercise-card h1.practice-prompt--small {
  font-size: clamp(21px, 2.55vw, 28px);
}

.exercise-card h1.practice-prompt--tiny {
  font-size: clamp(18px, 2vw, 24px);
}

.exercise-card h1.practice-prompt--dictation {
  font-size: clamp(34px, 4.8vw, 54px);
}

.slot-row {
  margin-bottom: 12px;
}

.answer-slot {
  min-width: 128px;
}

.slot-line {
  min-height: 82px;
  border: 1px solid rgba(207, 222, 232, 0.9);
  border-bottom: 4px solid var(--green);
  border-radius: 16px 16px 0 0;
  background: #fff;
  padding: 11px 10px 8px;
}

#practiceScreen .answer-slot.color-0 .slot-line {
  border-bottom-color: #62c6ff;
}

#practiceScreen .answer-slot.color-1 .slot-line {
  border-bottom-color: #74d99f;
}

#practiceScreen .answer-slot.color-2 .slot-line {
  border-bottom-color: #f4c96b;
}

#practiceScreen .answer-slot.color-3 .slot-line {
  border-bottom-color: #b79df2;
}

#practiceScreen .answer-slot.color-4 .slot-line {
  border-bottom-color: #7edbd2;
}

#practiceScreen .answer-slot.color-5 .slot-line {
  border-bottom-color: #f3a6c8;
}

.answer-slot.active .slot-line {
  border-color: rgba(6, 168, 92, 0.48);
  border-bottom-color: var(--green-dark);
  box-shadow:
    0 8px 22px rgba(6, 168, 92, 0.1),
    inset 0 0 0 1px rgba(6, 168, 92, 0.08);
}

.answer-slot input {
  width: min(230px, 100%);
  font-size: 23px;
  font-weight: 700;
}

.answer-slot input::placeholder {
  color: rgba(102, 112, 133, 0.46);
  font-weight: 600;
}

.answer-slot strong {
  font-size: 25px;
  font-weight: 700;
}

.teacher-preview {
  margin-top: 2px;
  margin-bottom: 8px;
  padding: 7px 12px;
  border-bottom-width: 2px;
}

.feedback {
  min-height: 22px;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 650;
}

.memory-panel {
  border-radius: 20px;
  padding: 18px;
}

.memory-panel::before {
  width: 5px;
}

.memory-panel strong {
  min-height: 42px;
  font-size: 30px;
  font-weight: 700;
}

.memory-panel p {
  font-size: 13px;
}

.memory-panel em {
  padding: 6px 8px;
  font-size: 11.5px;
}

.function-dock {
  gap: 8px;
  margin-top: 10px;
  border-radius: 18px;
  padding: 7px;
}

.function-dock button,
.complete-actions button,
.function-dock button:not(.primary) {
  min-height: 46px;
  border-bottom-width: 2px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
}

.function-dock span {
  margin-right: 6px;
  font-size: 13px;
}

.function-dock button.primary,
.complete-actions .primary {
  background: var(--green);
  box-shadow:
    0 8px 16px rgba(16, 201, 112, 0.18),
    inset 0 -2px 0 var(--green-dark);
}

@media (max-width: 920px) {
  .home-layout,
  .course-layout,
  .practice-layout {
    gap: 12px;
  }

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

  .memory-panel {
    order: 0;
  }
}

@media (max-width: 640px) {
  .app-shell {
    /* padding: 8px 8px 20px; */
  }

  .app-top,
  .app-top:has(#backBtn.hidden) {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px;
    padding: 6px;
  }

  .brand {
    width: auto;
    min-height: 44px;
    padding-right: 8px;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .pill-btn,
  .lang-toggle {
    padding: 0 10px;
  }

  .dashboard-card,
  .path-panel,
  .module-tile,
  .course-side,
  .lesson-path,
  .course-head,
  .theme-card,
  .exercise-card,
  .memory-panel {
    border-radius: 18px;
  }

  .module-tile {
    grid-template-columns: 86px 1fr;
    grid-template-areas:
      "art icon"
      "art copy";
    min-height: 138px;
  }

  .tile-illustration {
    min-height: 104px;
  }

  .theme-grid {
    gap: 10px;
  }

  .theme-card {
    min-height: 112px;
  }

  .lesson-node {
    grid-template-columns: auto 1fr auto;
  }

  .lesson-node b {
    grid-column: 2 / -1;
    width: max-content;
  }

  .lesson-art {
    display: none;
  }

  .practice-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }

  .practice-close-btn {
    order: 1;
    margin-right: 0;
  }
  .close-buttonnn{
    border-radius: 50%;
  }

  .practice-meta {
    order: 2;
    flex: 1;
  }

  .mode-switch {
    order: 3;
  }

  .thin-progress {
    order: 4;
    width: 100%;
    flex-basis: 100%;
    margin-top: 4px;
  }

  .exercise-card {
    min-height: 430px;
    padding: 20px 12px 16px;
  }

  .exercise-card h1 {
    font-size: clamp(30px, 9.5vw, 46px);
  }

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

  .function-dock button.primary {
    grid-column: 1 / -1;
  }
}

/* ==========================================================================
   REDESIGNED HOMEPAGE & HEADER STYLES (MATCHING SCREENSHOT)
   ========================================================================== */

/* Brand logo circle fallback */
.brand-logo-circle {
  background: #0ea855;
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  font-family: var(--font-zh);
  margin-right: 10px;
  flex: 0 0 38px;
  box-shadow: 0 4px 8px rgba(14, 168, 85, 0.2);
}



/* Fallbacks when not in home screen (hide home screen buttons) */
.screen-practice .btn-login,
.screen-practice .btn-register,
.screen-complete .btn-login,
.screen-complete .btn-register {
  display: none !important;
}

/* Redesigned Home Layout Container */
.redesigned-home {
  display: flex;
  flex-direction: column;
  font-family: var(--font-vi);
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(580px, 1.2fr);
  align-items: center;
  /* gap: 16px; */
  padding: 48px 48px 0px 48px;
  /* background:
    radial-gradient(circle at 12% 18%, rgba(16, 163, 82, 0.04), transparent 24%),
    linear-gradient(180deg, #fbfdfb 0%, #f4f8f5 100%); */
  border-radius: 0;
  /* margin: 0 auto 40px; */
  max-width: 1440px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  z-index: 2;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.8vw, 52px);
  font-weight: 800;
  color: #003d29;
  line-height: 1.18;
  margin: 0 0 28px;
  letter-spacing: -0.02em;
}

.hero-highlight {
  position: relative;
  display: inline-block;
  color: #003d29;
}

.highlight-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 5px;
  border-radius: 999px;
  background: #f5a623;
  z-index: -1;
}

.hero-subtitle {
  font-size: 16px;
  line-height: 1.75;
  color: #4a5568;
  margin: 0 0 36px;
  max-width: 500px;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-hero-primary {
  background: #10a352;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  height: 47px;
  padding: 0 28px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 10px 24px rgba(16, 163, 82, 0.24);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-hero-primary:hover {
  background: #0e9349;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(16, 163, 82, 0.28);
}

.btn-hero-primary .arrow-icon {
  font-size: 18px;
  line-height: 1;
}

.svg-roadmap {
  position: absolute;
  left: 72px;
  top: 24px;
  width: 320px;
  height: 80px;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.svg-roadmap svg[class*="_dottedSVG"] {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.svg-roadmap svg[class*="_dottedSVG"] path {
  fill: none;
  stroke: #34d399;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 6 6;
  opacity: 0.95;
}

.btn-hero-secondary {
  background: white;
  border: 1.5px solid #93c5fd;
  color: #2563eb;
  border-radius: 10px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-hero-secondary:hover {
  background: #eff6ff;
  border-color: #2563eb;
  transform: translateY(-2px);
}

.play-icon-circle {
  width: 22px;
  height: 22px;
  border: 1.5px solid #cbd5e1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
}

.hero-image-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding-left: 0;
}

.hero-visual-box {
  position: relative;
  z-index: 2;
  width: 100%;
  border: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  isolation: isolate;
  background: transparent;
}

.hero-visual-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: url("assets/bg_banner_2x.png") right center / cover no-repeat;
  pointer-events: none;
}

.hero-media-card {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: hidden;
}

.hero-media-card::before {
  display: none;
}

.hero-media-glow {
  position: absolute;
  inset: auto 16px 16px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.24), transparent 70%);
  pointer-events: none;
}

.hero-main-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
  object-position: center center;
  filter: none;
}

.hero-mini-card {
  position: absolute;
  left: 0;
  z-index: 3;
  width: 138px;
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e5edff;
  box-shadow: 0 10px 24px rgba(30, 64, 175, 0.08);
}

.hero-mini-card span {
  grid-row: 1 / span 2;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 13px;
  font-weight: 900;
}

.hero-mini-card strong {
  color: #111a3a;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 900;
}

.hero-mini-card small {
  color: #64748b;
  font-size: 10px;
  line-height: 1.15;
  font-weight: 700;
}

.hero-mini-card-a { top: 62px; }
.hero-mini-card-b { top: 138px; left: 24px; }
.hero-mini-card-c { top: 214px; }
.hero-mini-card-d { top: 292px; left: 26px; }

.hero-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
}

.hero-badge-top {
  top: 18px;
  left: 18px;
}

.hero-badge-bottom {
  bottom: 18px;
  right: 18px;
}

.hero-stat-pill {
  position: absolute;
  z-index: 2;
  left: 24px;
  bottom: 70px;
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.hero-stat-pill span {
  font-size: 18px;
  font-weight: 800;
  color: #064e3b;
}

.hero-stat-pill small {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

/* Bubble Overlays inside Hero Image */
.bubble-overlay {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 20px;
  padding: 10px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: heroFloat 4s ease-in-out infinite;
}

.bubble-nihao {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.bubble-jiayou {
  top: 30%;
  right: 5%;
  animation-delay: 2s;
  padding: 10px 24px;
  border-radius: 24px;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.bubble-text {
  display: flex;
  flex-direction: column;
}

.bubble-text strong {
  font-size: 16px;
  color: #0f172a;
  font-weight: 700;
}

.bubble-text span {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.bubble-icon {
  width: 24px;
  height: 24px;
  background: #f0faf5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* Features Section */
.features-section {
  padding: 40px 20px 60px;
  text-align: center;
}

.section-title {
  font-size: 30px;
  font-weight: 800;
  color: #064e3b;
  margin-bottom: 48px;
}

.title-underline {
  position: relative;
  display: inline-block;
}

.title-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 4px;
  background: #0ea855;
  border-radius: 2px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 20px;
  padding: 36px 24px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 25px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.06);
}

.feature-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-icon-wrapper svg {
  stroke-width: 1.5;
}

.color-route {
  background: #eff6ff;
  color: #2563eb;
}

.color-teacher {
  background: #ecfdf5;
  color: #059669;
}

.color-book {
  background: #fdf2f8;
  color: #db2777;
}

.color-support {
  background: #fff7ed;
  color: #ea580c;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}

/* Benefits Section */
.benefits-section {
  padding: 60px 20px 80px;
  background: #f8fafc;
  border-radius: 24px;
  margin-bottom: 40px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.benefit-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.benefit-img-wrapper {
  background: #f0faf5;
  height: 200px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  overflow: hidden;
  position: relative;
}

.benefit-img-wrapper img {
  max-height: 85%;
  max-width: 85%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-img-wrapper img {
  transform: scale(1.05);
}

.benefit-title {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 12px;
}

.benefit-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
  margin-top: 0;
  margin-bottom: 24px;
  flex-grow: 1;
}

.benefit-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0ea855;
  color: white;
  border: none;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(14, 168, 85, 0.25);
  margin-top: auto;
}

.benefit-arrow-btn:hover {
  background: #0d944c;
  transform: scale(1.1);
}

/* Footer Section */
.redesigned-footer {
  background: #0b8444;
  color: white;
  padding: 60px 0 24px;
  position: relative;
  width: 100%;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 48px;
  margin-bottom: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  box-sizing: border-box;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.footer-logo-circle {
  background: white;
  color: #0b8444;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  font-family: var(--font-zh);
  margin-right: 10px;
}

.footer-logo-text {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-display);
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.2s ease;
}

.social-icon:hover {
  background: white;
  color: #0b8444;
  transform: translateY(-2px);
}

.footer-links-col {
  display: flex;
  flex-direction: column;
}

.footer-heading {
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin-top: 0;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  margin-bottom: 12px;
}

.footer-list a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-list a:hover {
  color: white;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin-bottom: 14px;
}

.footer-contact-list svg {
  flex-shrink: 0;
}

.footer-bottom {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  box-sizing: border-box;
}

.footer-bottom p {
  margin: 0;
}

/* Premium Auth Modal Overlay */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-modal-content {
  background: white;
  width: min(440px, 100%);
  padding: 40px 32px;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.9) translateY(10px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.auth-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  padding: 0;
  box-sizing: border-box;
  border-radius: 8px;
  background: #f0f4f8;
  border: 1px solid #e2e8f0;
  font-size: 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.2s ease;
  font-weight: 300;
  line-height: 1;
}

.auth-modal-close:hover {
  background: #e0e7ff;
  color: #1f2937;
  border-color: #c7d2e0;
  transform: scale(1.05);
}

.auth-modal-logo {
  background: #0ea855;
  color: white;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 24px;
  font-family: var(--font-zh);
  margin: 0 auto 20px;
  box-shadow: 0 6px 16px rgba(14, 168, 85, 0.3);
}

.auth-modal-logo--brand {
  overflow: hidden;
  background: #ffffff;
}

.auth-modal-logo--brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.auth-modal-content h2 {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 8px;
}

.auth-modal-sub {
  text-align: center;
  font-size: 14px;
  color: #64748b;
  margin-top: 0;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select {
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
  color: #0f172a;
}

.form-group input:focus {
  border-color: #0ea855;
}

.password-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.password-input-row input {
  min-width: 0;
}

.password-toggle-btn {
  min-width: 58px;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.password-toggle-btn:hover,
.password-toggle-btn:focus-visible {
  border-color: #0ea855;
  color: #047857;
  outline: none;
}

.form-group select:focus {
  border-color: #0ea855;
}

.admin-create-account-modal {
  max-width: 560px;
}

.admin-create-account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-create-account-grid--single {
  grid-template-columns: 1fr;
}

@media (max-width: 560px) {
  .admin-create-account-grid {
    grid-template-columns: 1fr;
  }
}

.checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.checkbox-group input {
  margin: 0;
  cursor: pointer;
}

.checkbox-group label {
  font-size: 12px;
  font-weight: normal;
  color: #64748b;
  margin: 0;
  cursor: pointer;
}

.btn-auth-submit {
  width: 100%;
  background: #0ea855;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(14, 168, 85, 0.2);
  margin-top: 8px;
}

.btn-auth-submit:disabled {
  cursor: wait;
  opacity: 0.75;
}

.btn-auth-submit:hover {
  background: #0d944c;
}

.auth-form-message {
  min-height: 18px;
  margin: -4px 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

.auth-form-message.success {
  color: #0ea855;
}

.auth-form-message.error {
  color: #dc2626;
}

.auth-modal-content--email-verify {
  max-width: 480px;
}

.auth-modal-content--email-verify .form-group {
  margin-bottom: 14px;
}

.auth-modal-content--email-verify input {
  font-weight: 800;
  letter-spacing: 0.08em;
}

.email-verification-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.email-verification-modal-actions .btn-auth-submit,
.email-verification-modal-actions .btn-auth-secondary {
  width: 100%;
  min-height: 48px;
  margin-top: 0;
}

.btn-auth-secondary {
  background: #ffffff;
  color: #334155;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-auth-secondary:hover {
  border-color: #0ea855;
  color: #0b8f49;
  background: #f0fdf8;
}

.btn-auth-secondary:disabled {
  cursor: wait;
  opacity: 0.7;
}

.change-password-modal {
  max-width: 460px;
}

.change-password-logo {
  border-radius: 16px;
}

.change-password-form .form-group {
  margin-bottom: 16px;
}

.change-password-hint {
  display: block;
  margin-top: 7px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.auth-modal-footer {
  margin-top: 28px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-auth-switch {
  background: none;
  border: none;
  color: #0ea855;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.btn-auth-switch:hover {
  text-decoration: underline;
}

/* Account profile panel */
.screen-account {
  background: #f5f7fc;
}

.account-layout {
  /* width: min(100% - 48px, 1040px); */
  max-width: 1040px;
  margin: 0 auto;
  /* padding: 36px 0 70px; */
}

.account-screen .account-panel {
  width: 100%;
  padding: 20px;
}

.account-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 34px 18px;
  background: rgba(245, 247, 252, 0.92);
  backdrop-filter: blur(8px);
}

.account-panel {
  position: relative;
  width: min(100%, 1040px);
  border-radius: 18px;
}

.account-panel-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.account-upgrade-banner {
  min-height: 126px;
  border: none;
  outline: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #12b981 0%, #16c091 56%, #10b981 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 34px;
  margin-top: 28px;
  box-shadow: 0 18px 34px rgba(16, 185, 129, 0.16);
}

.account-upgrade-banner h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 0;
}

.account-upgrade-banner p {
  max-width: 620px;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.account-upgrade-btn {
  min-width: 150px;
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: #ffffff;
  color: #047857;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.account-upgrade-status {
  min-height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  color: rgba(6, 95, 70, 0.78);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.account-panel-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  margin-top: 0;
}

.account-profile-card,
.account-info-card {
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(30, 41, 59, 0.06);
}

.account-profile-card {
  min-height: 324px;
  padding: 34px 26px 22px;
  text-align: center;
}

.account-avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  border-radius: 50%;
  padding: 5px;
  border: 4px solid #059669;
  background: #ecfdf5;
}

.account-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.account-pro-badge {
  position: absolute;
  right: -4px;
  bottom: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  background: #9a7a19;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-profile-card h3 {
  margin: 0;
  color: #253044;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.25;
  font-weight: 900;
}

.account-profile-card p {
  margin: 6px 0 14px;
  color: #64748b;
  font-size: 14px;
  font-weight: 650;
}

.account-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-bottom: 22px;
  border-bottom: 1px solid #edf1f7;
}

.account-badges span {
  min-height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  background: #dff8ef;
  color: #047857;
  font-size: 11px;
  font-weight: 900;
}

.account-badges span + span {
  background: #f2e8c4;
  color: #8a6814;
}

.account-streak {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  text-align: left;
}

.account-streak small {
  display: block;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-streak strong {
  color: #059669;
  font-size: 14px;
  font-weight: 900;
}

.account-streak > span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e8f0ff;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-info-card {
  min-height: 324px;
  padding: 36px 38px;
}

.account-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.account-info-header > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-info-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #e9f7ef;
  color: #047857;
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-info-header h2 {
  margin: 0;
  color: #111827;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
}

.account-info-header em {
  color: #8a7b71;
  font-size: 13px;
  font-style: italic;
  white-space: nowrap;
}

.account-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 26px;
}

.account-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 750;
}

.account-form input,
.account-form select {
  min-height: 48px;
  border: 1.5px solid #ccd8d2;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  padding: 0 16px;
  font-size: 14px;
  font-family: var(--font-vi);
  outline: none;
}

.account-form input:focus,
.account-form select:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.account-form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 14px;
  margin-top: 8px;
}

.account-save-btn,
.account-cancel-btn {
  min-width: 132px;
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.account-save-btn {
  background: #047857;
  color: #ffffff;
}

.account-cancel-btn {
  background: #dbeafe;
  color: #1f2937;
}

.account-mobile-only {
  display: none;
}

.account-mobile-header,
.account-mobile-upgrade,
.account-joined-note,
.account-password-card {
  display: none;
}

.account-mobile-logout-btn {
  display: none;
}

.account-avatar-edit {
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 32px;
  height: 32px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #059669;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(5, 150, 105, 0.24);
  transition: transform 0.18s ease, background 0.18s ease;
}

.account-avatar-edit:hover {
  background: #047857;
  transform: translateY(-1px);
}

.account-badge-pro {
  background: #f2e8c4 !important;
  color: #8a6814 !important;
}

.account-vip-meta {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

@media (min-width: 901px) {
  .account-mobile-stack {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
  }

  .account-profile-card {
    grid-column: 1;
    grid-row: 2;
  }

  .account-info-card {
    grid-column: 2;
    grid-row: 2;
  }

  .account-upgrade-banner.account-desktop-only {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-top: 0;
  }
}

@media (max-width: 900px) {
  .screen-account .app-top {
    display: none !important;
  }

  .screen-account {
    background: #eef2f8;
    min-height: 100dvh;
    overflow-x: hidden;
  }

  .account-mobile-only {
    display: block;
  }

  .account-mobile-header {
    display: grid;
  }

  .account-avatar-edit {
    display: flex;
  }

  .account-mobile-upgrade {
    display: block;
  }

  .account-joined-note {
    display: block;
  }

  .account-password-card {
    display: flex;
  }

  .account-desktop-only {
    display: none !important;
  }

  .account-layout {
    width: min(100%, 430px);
    max-width: 430px;
    margin: 0 auto;
    padding: 0 0 calc(88px + env(safe-area-inset-bottom, 0px));
  }

  .account-mobile-header {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 8px 16px;
    background:
      radial-gradient(circle at 86% 50%, rgba(255, 255, 255, 0.16) 0 4px, transparent 5px),
      repeating-radial-gradient(circle at 96% 50%, rgba(255, 255, 255, 0.16) 0 3px, transparent 4px 16px),
      repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 4px, transparent 4px 18px),
      linear-gradient(135deg, #047857 0%, #10b981 58%, #065f46 100%);
    position: sticky;
    top: 0;
    z-index: 20;
    overflow: hidden;
  }

  .account-mobile-header h1 {
    margin: 0;
    text-align: center;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .account-mobile-back {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
  }

  .account-mobile-back svg {
    width: 15px;
    height: 15px;
  }

  .account-mobile-save {
    min-height: 32px;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #047857;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
  }

  .account-mobile-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0 16px 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .account-profile-card,
  .account-info-card,
  .account-mobile-upgrade,
  .account-password-card {
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  }

  .account-profile-card {
    min-height: 0;
    padding: 28px 20px 20px;
    margin-top: 15px;
    background: #ffffff;
    border: 0;
    overflow: hidden;
    text-align: center;
  }

  .account-avatar-wrap {
    width: 88px;
    height: 88px;
  }

  .account-avatar-edit {
    position: absolute;
    right: -2px;
    bottom: 2px;
    width: 30px;
    height: 30px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #047857;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
  }

  .account-profile-card h3 {
    font-size: 20px;
  }

  .account-streak-flame {
    background: #fff4e8 !important;
    color: #f97316 !important;
  }

  .account-streak {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #edf1f7;
  }

  .account-streak small {
    font-size: 10px;
    letter-spacing: 0;
  }

  .account-streak strong {
    display: block;
    margin-top: 2px;
    font-size: 14px;
  }

  .account-streak em {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
  }

  .account-side-nav {
    display: grid;
    gap: 10px;
    margin-top: 18px;
  }

  .account-side-nav button {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 14px;
    background: #f8fafc;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 14px;
    text-align: left;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.2;
    cursor: pointer;
  }

  .account-side-nav button svg {
    width: 20px;
    height: 20px;
    color: #64748b;
    flex: 0 0 auto;
  }

  .account-side-nav button.active {
    background: #ecfdf5;
    color: #047857;
  }

  .account-side-nav button.active svg {
    color: #047857;
  }

  .account-help-card {
    width: 100%;
    min-height: 54px;
    margin-top: 14px;
    border: 0;
    border-radius: 14px;
    background: #f8fafc;
    color: #0f172a;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    text-align: left;
    cursor: pointer;
  }

  .account-help-card > span:first-child,
  .account-help-card > svg {
    color: #64748b;
  }

  .account-help-card strong,
  .account-help-card small {
    display: block;
  }

  .account-help-card strong {
    font-size: 13px;
    font-weight: 900;
    line-height: 1.15;
  }

  .account-help-card small {
    margin-top: 2px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
  }

  .account-mobile-upgrade {
    padding: 20px 18px;
    background: linear-gradient(135deg, #12b981 0%, #10b981 100%);
    color: #fff;
    text-align: center;
  }

  .account-mobile-upgrade p {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
  }

  .account-mobile-upgrade-btn {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: #047857;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
  }

  .account-info-card {
    min-height: 0;
    padding: 22px 18px 18px;
  }

  .account-form {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .account-form label {
    gap: 8px;
    color: #0f172a;
    font-size: 12px;
    font-weight: 850;
  }

  .account-field {
    min-height: 48px;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    background: #ffffff;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
  }

  .account-field svg {
    width: 19px;
    height: 19px;
    color: #475569;
    flex: 0 0 auto;
  }

  .account-form input,
  .account-form select {
    min-width: 0;
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
    font-size: 14px;
    font-weight: 750;
  }

  .account-form input:focus,
  .account-form select:focus {
    border-color: transparent;
    box-shadow: none;
  }

  .account-field:focus-within {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
  }

  .account-security-banner {
    min-height: 86px;
    border: 1px solid #d6efe4;
    border-radius: 16px;
    background: linear-gradient(90deg, #f1fbf7 0%, #ffffff 100%);
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 56px;
    align-items: center;
    gap: 12px;
    padding: 14px;
    overflow: hidden;
    position: relative;
  }

  .account-security-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #059669;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .account-security-banner strong,
  .account-security-banner small {
    display: block;
  }

  .account-security-banner strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
  }

  .account-security-banner small {
    margin-top: 4px;
    color: #64748b;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.35;
  }

  .account-security-lock {
    justify-self: end;
    color: #102033;
  }

  .account-security-lock svg {
    width: 56px;
    height: 56px;
  }

  .account-joined-note {
    margin: 14px 0 0;
    color: #94a3b8;
    font-size: 13px;
    font-style: italic;
    text-align: left;
  }

  .account-password-card {
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 18px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 18px;
    cursor: pointer;
    text-align: left;
  }

  .account-password-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e8f0ff;
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .account-password-label {
    flex: 1;
    color: #1f2937;
    font-size: 15px;
    font-weight: 700;
  }

  .account-password-chevron {
    color: #94a3b8;
    flex-shrink: 0;
  }

  .account-mobile-logout-btn {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 16px;
    background: #fff1f2;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
  }

  .account-mobile-language-btn {
    width: 100%;
    min-height: 52px;
    border: 1px solid #dbe6f3;
    border-radius: 16px;
    background: #ffffff;
    color: #1f2937;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
  }

  .account-mobile-language-btn strong {
    color: #047857;
    font-size: 13px;
    font-weight: 900;
  }
}

@media (max-width: 760px) {
  .account-layout {
    /* width: min(100% - 24px, 1040px); */
    max-width: 430px;
    margin: 0 auto;
    /* padding: 24px 0 48px; */
  }

  .account-panel-overlay {
    padding: 18px 12px;
  }

  .account-upgrade-banner,
  .account-panel-grid,
  .account-info-header,
  .account-form,
  .account-form-actions {
    grid-template-columns: 1fr;
  }

  .account-upgrade-banner,
  .account-panel-grid,
  .account-info-header {
    align-items: stretch;
  }

  .account-upgrade-banner {
    flex-direction: column;
    padding: 26px 22px;
  }

  .account-upgrade-btn {
    width: 100%;
  }

  .account-panel-grid {
    display: grid;
    gap: 18px;
  }

  .account-info-card {
    padding: 28px 22px;
  }

  .account-info-header em {
    white-space: normal;
  }
}

@media (min-width: 901px) {
  .screen-account {
    min-height: 100vh;
    background: #f6f8fb;
  }

  .screen-account .app-desktop-content {
    background: #f6f8fb;
  }

  .app-desktop-shell--account .home-desktop-sidebar {
    display: flex;
  }

  .app-desktop-shell--account .app-desktop-content {
    width: auto;
    max-width: calc(100% - var(--desktop-sidebar-width));
    margin-left: var(--desktop-sidebar-width);
  }

  .app-desktop-shell--account .account-layout {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    /* padding: 3% !important; */
    box-sizing: border-box;
  }

  .account-panel.account-mobile-stack {
    width: 100%;
    max-width: none;
    margin: 0;
    display: grid;
    grid-template-columns: 28% 1fr;
    grid-template-rows: auto 1fr;
    gap: 2.8%;
    align-items: stretch;
  }

  .account-upgrade-banner.account-desktop-only {
    grid-column: 1 / -1;
    grid-row: 1;
    margin: 0;
    border-radius: 2%;
  }

  .account-profile-card,
  .account-info-card {
    border-radius: 2%;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.72);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  }

  .account-profile-card {
    grid-column: 1;
    grid-row: 2;
    min-height: 72vh;
    padding: 0 7% 8%;
    position: relative;
    overflow: hidden;
    text-align: center;
  }

  .account-profile-cover {
    display: block;
    height: 22%;
    min-height: 140px;
    margin: 0 -8%;
    border-radius: 2% 2% 0 0;
    background:
      radial-gradient(circle at 86% 24%, rgba(255, 255, 255, 0.38) 0 18px, transparent 19px),
      radial-gradient(circle at 42% 18%, rgba(255, 255, 255, 0.28) 0 5px, transparent 6px),
      repeating-radial-gradient(ellipse at 44% 52%, rgba(255, 255, 255, 0.18) 0 1px, transparent 2px 9px),
      linear-gradient(155deg, #047857 0%, #10b981 56%, #059669 100%);
    position: relative;
  }

  .account-profile-cover::after {
    content: "";
    position: absolute;
    left: -12%;
    right: -12%;
    bottom: -54px;
    height: 112px;
    border-radius: 50% 50% 0 0;
    background: #ffffff;
  }

  .account-avatar-wrap {
    width: 34%;
    aspect-ratio: 1 / 1;
    height: auto;
    margin: -24% auto 8%;
    padding: 2%;
    border: 0;
    background: rgba(236, 253, 245, 0.92);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.13);
    z-index: 1;
  }

  .account-avatar-wrap::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 6px solid rgba(236, 253, 245, 0.95);
    pointer-events: none;
  }

  .account-avatar-wrap img {
    background: #e5e7eb;
  }

  .account-avatar-edit {
    right: -6%;
    bottom: -4%;
    width: 28%;
    height: 28%;
    border-width: 4px;
    background: #059669;
    box-shadow: 0 10px 22px rgba(5, 150, 105, 0.26);
  }

  .account-profile-card h3 {
    color: #0f172a;
    font-size: 27px;
    line-height: 1.1;
  }

  .account-profile-card > p {
    margin: 10px 0 18px;
    color: #64748b;
    font-size: 16px;
    font-weight: 650;
  }

  .account-badges {
    gap: 5%;
    padding-bottom: 10%;
    border-bottom-color: #e9edf4;
  }

  .account-badges span {
    min-height: 2.3em;
    padding: 0 7%;
    font-size: 14px;
    background: #dff7ea;
  }

  .account-streak {
    min-height: 13%;
    display: grid;
    grid-template-columns: 18% minmax(0, 1fr) 18%;
    align-items: center;
    gap: 5%;
    margin: 0;
    padding: 8% 0;
    border-bottom: 1px solid #edf1f6;
  }

  .account-streak-calendar,
  .account-streak-flame {
    width: 100% !important;
    aspect-ratio: 1 / 1;
    height: auto !important;
    border-radius: 50% !important;
    background: #e7f8ef !important;
    color: #059669 !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .account-streak small {
    font-size: 13px;
    letter-spacing: 0;
  }

  .account-streak strong {
    display: block;
    margin-top: 4px;
    color: #059669;
    font-size: 20px;
  }

  .account-streak em {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 13px;
    font-style: normal;
    font-weight: 650;
  }

  .account-side-nav {
    display: grid;
    gap: 3%;
    padding-top: 8%;
  }

  .account-side-nav button {
    min-height: 4.2em;
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6%;
    padding: 0 7%;
    font-size: 15px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
  }

  .account-side-nav button svg {
    color: #64748b;
    flex: 0 0 auto;
  }

  .account-side-nav button.active {
    background: #edf9f3;
    color: #059669;
  }

  .account-side-nav button.active svg {
    color: #059669;
  }

  .account-help-card {
    width: 100%;
    min-height: 12%;
    margin-top: 13%;
    border: 0;
    border-radius: 8px;
    background: #f7f9fc;
    color: #111827;
    display: grid;
    grid-template-columns: 13% minmax(0, 1fr) 8%;
    align-items: center;
    gap: 4%;
    padding: 0 6%;
    text-align: left;
    cursor: pointer;
  }

  .account-help-card > span:first-child {
    color: #64748b;
    display: flex;
  }

  .account-help-card strong,
  .account-help-card small {
    display: block;
  }

  .account-help-card strong {
    font-size: 14px;
    font-weight: 900;
  }

  .account-help-card small {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 650;
  }

  .account-help-card > svg {
    color: #64748b;
  }

  .account-info-card {
    grid-column: 2;
    grid-row: 2;
    min-height: 72vh;
    padding: 5% 5% 4%;
  }

  .account-info-header {
    margin-bottom: 5%;
    padding-bottom: 4%;
    border-bottom: 1px solid #dfe5ee;
  }

  .account-info-title {
    display: flex;
    align-items: center;
    gap: 3%;
  }

  .account-info-icon {
    width: 8%;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 50%;
    background: #eaf7f1;
    color: #0f172a;
  }

  .account-info-icon svg {
    width: 28px;
    height: 28px;
  }

  .account-info-header h2 {
    font-size: 33px;
    line-height: 1.08;
    color: #0f172a;
  }

  .account-info-header p {
    margin: 12px 0 0;
    color: #64748b;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 650;
  }

  .account-info-header em {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
  }

  .account-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5% 4%;
  }

  .account-form label {
    gap: 15px;
    color: #0f172a;
    font-size: 16px;
    font-weight: 700;
  }

  .account-field {
    min-height: 4.8em;
    border: 1.5px solid #d2dae6;
    border-radius: 12px;
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 5%;
    padding: 0 7%;
    color: #94a3b8;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
  }

  .account-field:focus-within {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
  }

  .account-form input,
  .account-form select {
    min-height: 0;
    width: 100%;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: #0f172a;
    box-shadow: none;
    font-size: 19px;
    font-weight: 600;
  }

  .account-form input:focus,
  .account-form select:focus {
    border-color: transparent;
    box-shadow: none;
  }

  .account-form select {
    appearance: auto;
    cursor: pointer;
  }

  .account-field--select svg {
    color: #059669;
  }

  .account-field--select {
    position: relative;
    gap: 12px;
    padding: 0 48px 0 18px;
    border-color: #cfe1ee;
    background:
      linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(255, 255, 255, 0) 42%),
      #ffffff;
    overflow: hidden;
  }

  .account-field--select::before {
    content: "";
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: #ecfdf5;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
  }

  .account-field--select::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #0f172a;
    border-bottom: 2px solid #0f172a;
    transform: translateY(-62%) rotate(45deg);
    pointer-events: none;
  }

  .account-field--select svg {
    position: relative;
    z-index: 1;
    width: 18px;
    height: 18px;
    color: #059669;
    flex: 0 0 auto;
  }

  .account-field--select select {
    position: relative;
    z-index: 1;
    min-height: 46px;
    appearance: none;
    color: #0f172a;
    cursor: pointer;
    padding-left: 4px;
    padding-right: 4px;
    font-weight: 850;
  }

  .account-field--select:hover {
    border-color: #86d9bd;
    background:
      linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(255, 255, 255, 0) 44%),
      #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
  }

  .account-security-banner {
    grid-column: 1 / -1;
    min-height: 7.4em;
    margin-top: 4%;
    border: 1px solid #cfe9df;
    border-radius: 10px;
    background: linear-gradient(90deg, #f2fbf7 0%, #ffffff 100%);
    display: grid;
    grid-template-columns: 6% minmax(0, 1fr) 12%;
    align-items: center;
    gap: 3%;
    padding: 0 4%;
    overflow: hidden;
    position: relative;
  }

  .account-security-icon {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 12px;
    background: #059669;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .account-security-banner strong,
  .account-security-banner small {
    display: block;
  }

  .account-security-banner strong {
    color: #0f172a;
    font-size: 17px;
    font-weight: 900;
  }

  .account-security-banner small {
    margin-top: 10px;
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
  }

  .account-security-lock {
    justify-self: end;
    color: rgba(16, 185, 129, 0.12);
    transform: rotate(17deg);
  }

  .account-form-actions {
    grid-column: 1 / -1;
    gap: 3%;
    margin-top: 4%;
    padding-top: 5%;
    border-top: 1px solid #dfe5ee;
  }

  .account-save-btn,
  .account-cancel-btn {
    min-height: 4.8em;
    min-width: 18%;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8%;
    font-size: 19px;
  }

  .account-save-btn {
    min-width: 26%;
    background: #059669;
    box-shadow: 0 14px 30px rgba(5, 150, 105, 0.18);
  }

  .account-save-btn:hover,
  .account-cancel-btn:hover,
  .account-side-nav button:hover,
  .account-help-card:hover {
    transform: translateY(-1px);
  }

  .account-cancel-btn {
    background: #ffffff;
    border: 1px solid #d2dae6;
    color: #334155;
  }

  .account-mobile-upgrade,
  .account-password-card,
  .account-mobile-logout-btn,
  .account-joined-note {
    display: none !important;
  }

  .account-profile-cover {
    height: 18%;
    min-height: 118px;
  }

  .account-avatar-wrap {
    width: 96px;
    height: 96px;
    aspect-ratio: auto;
    margin: 24px auto 18px;
    padding: 5px;
    border: 4px solid #059669;
    background: #ecfdf5;
    box-shadow: 0 14px 28px rgba(5, 150, 105, 0.14);
  }

  .account-avatar-wrap::before {
    display: none;
  }

  .account-avatar-edit {
    right: -4px;
    bottom: 4px;
    width: 30px;
    height: 30px;
    border-width: 3px;
  }

  .account-profile-card h3 {
    font-size: 16px;
  }

  .account-profile-card > p {
    margin: 3% 0 5%;
    font-size: 10px;
  }

  .account-badges {
    padding-bottom: 6%;
  }

  .account-badges span {
    min-height: 1.8em;
    padding: 0 5%;
    font-size: 9px;
  }

  .account-streak {
    grid-template-columns: 14% minmax(0, 1fr) 14%;
    gap: 4%;
    padding: 5% 0;
  }

  .account-streak small,
  .account-streak em {
    font-size: 8px;
  }

  .account-streak strong {
    font-size: 12px;
  }

  .account-side-nav {
    gap: 2%;
    padding-top: 5%;
  }

  .account-side-nav button {
    min-height: 3em;
    gap: 5%;
    padding: 0 6%;
    font-size: 9px;
  }

  .account-side-nav button svg,
  .account-help-card svg {
    width: 14px;
    height: 14px;
  }

  .account-help-card {
    min-height: 8%;
    margin-top: 8%;
    grid-template-columns: 11% minmax(0, 1fr) 7%;
    padding: 0 5%;
  }

  .account-help-card strong {
    font-size: 9px;
  }

  .account-help-card small {
    font-size: 8px;
  }

  .account-info-header h2 {
    font-size: 20px;
  }

  .account-info-header p {
    margin-top: 1.4%;
    font-size: 10px;
  }

  .account-info-header em {
    gap: 1%;
    font-size: 9px;
  }

  .account-info-icon {
    width: 5%;
  }

  .account-info-icon svg {
    width: 45%;
    height: 45%;
  }

  .account-info-card {
    padding: 4% 4% 3%;
  }

  .account-form {
    gap: 3% 3%;
  }

  .account-form label {
    gap: 0.8em;
    font-size: 10px;
  }

  .account-field {
    min-height: 3.1em;
    gap: 4%;
    padding: 0 5%;
  }

  .account-field svg {
    width: 15px;
    height: 15px;
  }

  .account-form input,
  .account-form select {
    font-size: 11px;
  }

  .account-security-banner {
    min-height: 5em;
    margin-top: 2.5%;
    grid-template-columns: 4.5% minmax(0, 1fr) 9%;
    gap: 2.5%;
    padding: 0 3%;
  }

  .account-security-banner strong {
    font-size: 10px;
  }

  .account-security-banner small {
    margin-top: 1%;
    font-size: 9px;
  }

  .account-security-icon svg {
    width: 55%;
    height: 55%;
  }

  .account-security-lock svg {
    width: 46px;
    height: 46px;
  }

  .account-form-actions {
    gap: 2%;
    margin-top: 2.5%;
    padding-top: 3%;
  }

  .account-save-btn,
  .account-cancel-btn {
    min-height: 3em;
    min-width: 12%;
    gap: 6%;
    font-size: 11px;
  }

  .account-save-btn {
    min-width: 18%;
  }

  .account-save-btn svg,
  .account-cancel-btn svg {
    width: 14px;
    height: 14px;
  }
}

@media (min-width: 901px) {
  .app-desktop-shell--account .account-layout {
    /* padding: 22px 32px 32px !important; */
  }

  .account-panel.account-mobile-stack {
    grid-template-columns: minmax(300px, 31%) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 24px;
  }

  .account-upgrade-banner.account-desktop-only {
    min-height: 116px;
    /* border-radius: 18px; */
    padding: 18px 24px 18px 32px;
    background:
      radial-gradient(circle at 76% 24%, rgba(255, 255, 255, 0.18) 0 34px, transparent 35px),
      radial-gradient(circle at 84% 74%, rgba(255, 255, 255, 0.12) 0 76px, transparent 77px),
      repeating-radial-gradient(ellipse at 76% 18%, rgba(255, 255, 255, 0.13) 0 1px, transparent 2px 11px),
      linear-gradient(135deg, #087f5b 0%, #10b981 48%, #00685f 100%);
    box-shadow: 0 18px 42px rgba(4, 120, 87, 0.16);
    overflow: hidden;
  }

  .account-upgrade-crown {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: inset 0 -10px 20px rgba(16, 185, 129, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
    overflow: hidden;
  }

  .account-upgrade-crown img {
    width: 48px;
    height: 38px;
    object-fit: contain;
    transform: translateY(2px);
  }

  .account-upgrade-banner.account-desktop-only > div,
  .account-upgrade-banner.account-desktop-only .account-upgrade-btn,
  .account-upgrade-status {
    position: relative;
    z-index: 1;
  }

  .account-upgrade-banner h2 {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .account-upgrade-banner p {
    max-width: 680px;
    font-size: 14px;
    line-height: 1.45;
  }

  .account-upgrade-banner .account-upgrade-btn {
    min-width: 144px;
    min-height: 38px;
    border-radius: 10px;
    font-size: 14px;
    padding: 0 18px;
  }

  .account-profile-card,
  .account-info-card {
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  }

  .account-profile-card {
    min-height: 0;
    padding: 0 20px 20px;
  }

  .account-profile-cover {
    height: 118px;
    min-height: 118px;
    margin: 0 -20px;
    border-radius: 18px 18px 0 0;
    background:
      radial-gradient(circle at 90% 25%, rgba(255, 255, 255, 0.42) 0 18px, transparent 19px),
      repeating-radial-gradient(ellipse at 40% 34%, rgba(255, 255, 255, 0.18) 0 1px, transparent 2px 9px),
      linear-gradient(155deg, #bdf7d8 0%, #7be0af 100%);
  }

  .account-profile-cover::after {
    bottom: -48px;
    height: 96px;
  }

  .account-avatar-wrap {
    width: 112px;
    height: 112px;
    margin: -58px auto 16px;
    border: 6px solid #ffffff;
    outline: 6px solid rgba(16, 185, 129, 0.16);
    background: #f8fafc;
  }

  .account-avatar-edit {
    right: 0;
    bottom: 8px;
    width: 32px;
    height: 32px;
    border-width: 4px;
  }

  .account-profile-card h3 {
    font-size: 24px;
    margin-top: 4px;
  }

  .account-profile-card > p {
    margin: 8px 0 16px;
    color: #059669;
    font-size: 14px;
    font-weight: 800;
  }

  .account-badges {
    border-bottom: 0;
    padding-bottom: 18px;
  }

  .account-badges span {
    min-height: 28px;
    min-width: 82px;
    justify-content: center;
    font-size: 13px;
  }

  .account-streak,
  .account-side-nav,
  .account-help-card {
    display: none;
  }

  .account-profile-metrics {
    border: 1px solid #dce7f2;
    border-radius: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 6px;
    overflow: hidden;
  }

  .account-profile-metrics article {
    min-height: 86px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 5px;
    padding: 10px 8px;
  }

  .account-profile-metrics article + article {
    border-left: 1px solid #e2e8f0;
  }

  .account-metric-icon {
    color: #059669;
  }

  .account-profile-metrics small {
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
  }

  .account-profile-metrics strong {
    color: #059669;
    font-size: 21px;
    font-weight: 950;
  }

  .account-progress-card,
  .account-achievements-card {
    margin-top: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    padding: 18px;
    text-align: left;
  }

  .account-progress-card > div,
  .account-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .account-achievements-card .account-card-heading {
    justify-content: center;
    text-align: center;
  }

  .account-achievements-card .account-card-heading h4 {
    width: 100%;
  }

  .account-progress-card h4,
  .account-achievements-card h4,
  .account-card-heading h3 {
    margin: 0;
    color: #0f172a;
    font-size: 15px;
    font-weight: 950;
  }

  .account-progress-card > div strong {
    color: #0f172a;
    font-size: 15px;
  }

  .account-progress-track {
    display: block;
    height: 10px;
    margin: 16px 0 12px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
  }

  .account-progress-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #059669, #10b981);
  }

  .account-progress-card p {
    margin: 0;
    display: flex;
    justify-content: space-between;
    color: #64748b;
    font-size: 13px;
    font-weight: 750;
  }

  .account-progress-card button,
  .account-card-heading button {
    border: 0;
    background: transparent;
    color: #059669;
    font-size: 13px;
    font-weight: 900;
  }

  .account-achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
  }

  .account-achievements-grid article {
    min-height: 104px;
    border: 1px solid #e9eef5;
    border-radius: 14px;
    background: #fbfdff;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 4px;
    text-align: center;
    padding: 10px;
  }

  .account-achievements-grid img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 12px;
  }

  .account-achievements-grid strong {
    color: #9a6500;
    font-size: 13px;
    font-weight: 950;
  }

  .account-achievements-grid small {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
  }

  .account-info-card {
    min-height: 0;
    padding: 20px 28px 24px;
    display: grid;
    gap: 16px;
    align-content: start;
  }

  .account-settings-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    border-bottom: 1px solid #dbe4ef;
    padding: 0 0 10px;
  }

  .account-settings-tabs button {
    min-height: 52px;
    border: 0;
    border-radius: 12px 12px 0 0;
    background: transparent;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 900;
  }

  .account-settings-tabs button.active {
    background: linear-gradient(180deg, #e8fbf3, #f7fffb);
    color: #059669;
    box-shadow: inset 0 -2px 0 #10b981;
  }

  .account-info-header {
    margin: 0;
    padding: 0;
    border-bottom: 0;
  }

  .account-info-icon {
    display: none;
  }

  .account-info-header h2 {
    font-size: 20px;
  }

  .account-info-header p {
    margin-top: 4px;
    font-size: 13px;
  }

  .account-form {
    gap: 16px 32px;
  }

  .account-form label {
    gap: 8px;
    font-size: 13px;
    font-weight: 850;
  }

  .account-field {
    min-height: 46px;
    border-radius: 10px;
    padding: 0 16px;
    gap: 12px;
  }

  .account-form input,
  .account-form select {
    font-size: 15px;
    font-weight: 750;
  }

  .account-security-banner {
    display: none;
  }

  .account-form-actions {
    margin-top: 4px;
    padding-top: 0;
    border-top: 0;
    gap: 14px;
  }

  .account-save-btn,
  .account-cancel-btn {
    min-height: 46px;
    min-width: 150px;
    border-radius: 10px;
    font-size: 15px;
    gap: 10px;
  }

  .account-desktop-widgets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .account-widget,
  .account-activity-card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    padding: 18px 20px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
  }

  .account-widget {
    min-height: 122px;
    display: grid;
    gap: 14px;
  }

  .account-widget h3 {
    margin: 0 0 4px;
    color: #0f172a;
    font-size: 17px;
    font-weight: 950;
  }

  .account-widget p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
  }

  .account-email-verify-widget {
    border-color: #bdebd7;
    background: linear-gradient(135deg, #f0fdf8 0%, #ffffff 62%);
  }

  .account-email-verify-form {
    display: grid;
    gap: 8px;
  }

  .account-email-open-form-btn {
    justify-self: start;
    min-height: 40px;
    border: 1px solid #059669;
    border-radius: 10px;
    background: #059669;
    color: #ffffff;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(5, 150, 105, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }

  .account-email-open-form-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 13px 22px rgba(5, 150, 105, 0.22);
  }

  .account-email-code-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto auto;
    gap: 10px;
    align-items: center;
  }

  .account-email-code-row input {
    min-height: 38px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.12em;
  }

  .account-email-code-row input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
    outline: none;
  }

  .account-email-code-row button {
    min-height: 38px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #475569;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
  }

  .account-email-code-row button:last-child {
    border-color: #059669;
    background: #059669;
    color: #ffffff;
  }

  .account-email-code-row button:disabled {
    cursor: wait;
    opacity: 0.65;
  }

  .account-email-verify-form small {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
  }

  .account-email-verified-badge {
    width: fit-content;
    min-height: 38px;
    border-radius: 10px;
    background: #dcfce7;
    color: #059669;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 950;
  }

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

  .account-widget-row span {
    min-height: 38px;
    border-radius: 10px;
    background: #ecfdf5;
    color: #059669;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 900;
  }

  .account-widget-row button {
    min-height: 38px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #475569;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 900;
  }

  .account-toggle {
    justify-self: end;
    align-self: center;
    position: relative;
    display: inline-flex;
    width: 58px;
    height: 34px;
    cursor: pointer;
  }

  .account-toggle input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
  }

  .account-toggle span {
    width: 58px;
    height: 34px;
    border-radius: 999px;
    background: #cbd5e1;
    display: block;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(71, 85, 105, 0.16);
    transition: background 0.2s ease, box-shadow 0.2s ease;
  }

  .account-toggle input:checked + span {
    background: #10b981;
    box-shadow: inset 0 0 0 1px rgba(4, 120, 87, 0.16);
  }

  .account-toggle span::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
    transition: transform 0.2s ease;
  }

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

  .account-activity-card {
    grid-column: 1 / -1;
  }

  .account-activity-card ul {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: grid;
  }

  .account-activity-card li {
    min-height: 58px;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #edf2f7;
  }

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

  .activity-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #dcfce7;
  }

  .activity-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: #dcfce7;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.04);
  }

  .activity-dot--yellow {
    background: #fef3c7;
  }

  .activity-dot--purple {
    background: #ede9fe;
  }

  .account-activity-card strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 850;
    display: grid;
    gap: 3px;
  }

  .account-activity-card strong small {
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 650;
  }

  .account-activity-card em {
    color: #64748b;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
  }
}

/* Recent activities drawer */
.recent-activities-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  justify-content: flex-end;
  background: rgba(15, 23, 42, 0);
  opacity: 0;
  pointer-events: none;
  transition: background 220ms ease, opacity 220ms ease;
}

.recent-activities-drawer-overlay.open {
  background: rgba(15, 23, 42, 0.36);
  opacity: 1;
  pointer-events: auto;
}

.recent-activities-drawer-overlay.closing {
  background: rgba(15, 23, 42, 0);
  opacity: 0;
}

.recent-activities-drawer {
  width: min(100%, 460px);
  height: 100%;
  background: #ffffff;
  box-shadow: -24px 0 50px rgba(15, 23, 42, 0.18);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  transform: translateX(100%);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.recent-activities-drawer-overlay.open .recent-activities-drawer {
  transform: translateX(0);
}

.recent-activities-drawer-header {
  min-height: 86px;
  padding: 20px 22px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, #f7fffb 0%, #ffffff 100%);
}

.recent-activities-drawer-header span {
  display: block;
  margin-bottom: 4px;
  color: #059669;
  font-size: 12px;
  font-weight: 900;
}

.recent-activities-drawer-header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 24px;
  font-weight: 950;
}

.recent-activities-drawer-close {
  width: 38px;
  height: 38px;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.recent-activities-drawer-body {
  min-height: 0;
  overflow: auto;
  padding: 12px 22px 24px;
}

.recent-activities-drawer-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.recent-activities-drawer-body li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid #eef2f7;
}

.recent-activities-drawer-body .activity-dot {
  align-self: start;
}

.recent-activities-drawer-body .activity-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  align-self: start;
  background: #dcfce7;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.recent-activities-drawer-body strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
}

.recent-activities-drawer-body strong small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.recent-activities-drawer-body em {
  display: block;
  grid-column: 2;
  margin-top: 7px;
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

/* Upgrade plans modal */
.upgrade-plans-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 28px 18px;
  background: rgba(241, 248, 252, 0.94);
  backdrop-filter: blur(8px);
}

.upgrade-plans-modal {
  position: relative;
  width: min(100%, 900px);
  padding: 18px 0 6px;
}

.upgrade-plans-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: #64748b;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.upgrade-plans-heading {
  text-align: center;
  margin-bottom: 54px;
}

.upgrade-plans-heading h2 {
  margin: 0 0 18px;
  color: #020617;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.06;
  font-weight: 950;
  letter-spacing: 0;
}

.upgrade-plans-heading h2 span {
  color: #059669;
}

.upgrade-mobile-pill,
.upgrade-plans-heading h3,
.upgrade-mobile-benefits {
  display: none;
}

.upgrade-plans-heading p {
  max-width: 660px;
  margin: 0 auto;
  color: #7b8795;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
}

.upgrade-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.upgrade-plans-grid.upgrade-plans-grid--single {
  grid-template-columns: minmax(0, 360px);
  justify-content: center;
}

.upgrade-plans-loading {
  grid-column: 1 / -1;
  margin: 0;
  padding: 48px 16px;
  text-align: center;
  color: #64748b;
  font-size: 15px;
  font-weight: 600;
}

.upgrade-plan-card {
  position: relative;
  min-height: 352px;
  border: 1px solid #cfdce8;
  border-radius: 8px;
  background: #ffffff;
  padding: 28px 24px 22px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
}

.upgrade-plan-card.popular {
  border-color: #10b981;
  box-shadow: 0 18px 32px rgba(16, 185, 129, 0.11);
}

.upgrade-popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  min-height: 22px;
  border-radius: 999px;
  background: #ffd645;
  color: #8a5b00;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.upgrade-plan-kicker {
  color: #667085;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.upgrade-plan-card.popular .upgrade-plan-kicker,
.upgrade-plan-card:nth-child(3) .upgrade-plan-kicker {
  color: #b88b00;
}

.upgrade-plan-card h3 {
  margin: 0 0 16px;
  color: #111827;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  font-weight: 950;
}

.upgrade-plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.upgrade-plan-price strong {
  color: #111827;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  font-weight: 950;
}

.upgrade-plan-price span,
.upgrade-plan-note {
  color: #667085;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 650;
}

.upgrade-plan-note {
  margin: 0 0 20px;
}

.upgrade-plan-card ul {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 0;
  margin: 22px 0 24px;
  list-style: none;
}

.upgrade-plan-card li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #475569;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 650;
}

.upgrade-plan-card li svg {
  flex: 0 0 auto;
  color: #10b981;
  margin-top: 1px;
}

.upgrade-plan-action {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: #dbe8ff;
  color: #047857;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.upgrade-plan-action.loading,
.upgrade-plan-action:disabled {
  cursor: wait;
  opacity: 0.72;
}

.upgrade-plan-card.popular .upgrade-plan-action {
  background: #12b981;
  color: #ffffff;
}

@media (max-width: 780px) {
  .upgrade-plans-overlay {
    align-items: flex-start;
    padding: 0;
    background:
      radial-gradient(circle at 12% 10%, rgba(167, 243, 208, 0.6), transparent 28%),
      linear-gradient(90deg, #effdfa 0%, #eef5ff 100%);
  }

  .upgrade-plans-modal {
    width: 100%;
    min-height: 100vh;
    padding: 18px 14px 28px;
    border-left: 4px solid #4f46e5;
    border-right: 4px solid #4f46e5;
  }

  .upgrade-plans-close {
    top: 10px;
    right: 14px;
    background: rgba(15, 23, 42, 0.08);
    box-shadow: none;
  }

  .upgrade-plans-heading {
    margin: 0 0 26px;
    padding-top: 8px;
  }

  .upgrade-mobile-pill {
    min-height: 20px;
    border-radius: 999px;
    background: #12b981;
    color: #064e3b;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    margin-bottom: 14px;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.04em;
  }

  .upgrade-plans-heading h2 {
    display: none;
  }

  .upgrade-plans-heading h3 {
    display: block;
    margin: 0 0 12px;
    color: #0f172a;
    font-family: var(--font-display);
    font-size: 25px;
    line-height: 1.15;
    font-weight: 950;
  }

  .upgrade-plans-heading p {
    max-width: 300px;
    font-size: 12px;
    line-height: 1.5;
    color: #667085;
  }

  .upgrade-plans-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .upgrade-plans-grid.upgrade-plans-grid--single {
    grid-template-columns: 1fr;
  }

  .upgrade-plan-card {
    min-height: 0;
    border-radius: 8px;
    padding: 16px 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4px 12px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
    cursor: pointer;
  }

  .upgrade-plan-card:active {
    transform: scale(0.985);
  }

  .upgrade-plan-card.popular {
    border-width: 2px;
  }

  .upgrade-popular-badge {
    top: -11px;
    left: 50%;
    min-height: 20px;
    padding: 0 12px;
    background: #047857;
    color: #ffffff;
    font-size: 10px;
  }

  .upgrade-plan-kicker {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    color: #667085;
    font-size: 10px;
    text-transform: none;
    font-weight: 750;
  }

  .upgrade-plan-card.popular .upgrade-plan-kicker,
  .upgrade-plan-card:nth-child(3) .upgrade-plan-kicker {
    color: #667085;
  }

  .upgrade-plan-card h3 {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    font-size: 20px;
  }

  .upgrade-plan-price {
    grid-column: 2;
    grid-row: 1 / span 2;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    margin: 0;
  }

  .upgrade-plan-price strong {
    color: #047857;
    font-size: 21px;
  }

  .upgrade-plan-price span {
    color: #111827;
    font-size: 10px;
    text-decoration: line-through;
  }

  .upgrade-plan-note {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    font-size: 10px;
  }

  .upgrade-plan-card ul,
  .upgrade-plan-action {
    display: none;
  }

  .upgrade-mobile-benefits {
    display: block;
    width: min(100%, 320px);
    margin: 26px auto 0;
  }

  .upgrade-mobile-benefits h3 {
    margin: 0 0 18px;
    text-align: center;
    color: #0f172a;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 950;
  }

  .upgrade-mobile-benefits ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
  }

  .upgrade-mobile-benefits li {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 10px;
    align-items: start;
  }

  .upgrade-mobile-benefits li > span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #dff8ef;
    color: #047857;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .upgrade-mobile-benefits strong {
    display: block;
    color: #0f172a;
    font-size: 12px;
    line-height: 1.15;
    font-weight: 950;
  }

  .upgrade-mobile-benefits small {
    display: block;
    color: #64748b;
    font-size: 10px;
    line-height: 1.25;
    margin-top: 2px;
    font-weight: 650;
  }

  .upgrade-plan-card {
    min-height: 0;
  }
}

/* Transfer info modal */
.transfer-info-overlay {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 24px 14px;
  background: rgba(245, 247, 252, 0.9);
  backdrop-filter: blur(8px);
}

.transfer-info-modal {
  position: relative;
  width: min(100%, 560px);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
  overflow: hidden;
  text-align: center;
}

.transfer-info-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.transfer-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  margin: 28px auto 14px;
  background: #dff8ef;
  color: #047857;
  display: flex;
  align-items: center;
  justify-content: center;
}

.transfer-info-modal h2 {
  margin: 0 0 8px;
  color: #1f2937;
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.2;
  font-weight: 950;
}

.transfer-subtitle {
  margin: 0 auto 24px;
  max-width: 410px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}

.transfer-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 0 28px 24px;
  text-align: left;
}

.transfer-fields {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.transfer-fields label {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.transfer-fields label > span,
.transfer-note-box span {
  color: #64748b;
  font-size: 10px;
  line-height: 1;
  font-weight: 850;
}

.transfer-field {
  min-height: 42px;
  border-radius: 8px;
  background: #eef4ff;
  color: #64748b;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 850;
}

.transfer-bank {
  color: #059669;
  gap: 8px;
}

.transfer-bank > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #059669;
}

.transfer-copy-row {
  justify-content: space-between;
  padding-right: 8px;
}

.transfer-copy-row button {
  width: 31px;
  height: 31px;
  border: 0;
  border-radius: 7px;
  background: #dff8ef;
  color: #059669;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.transfer-amount {
  background: #eefaf6;
  color: #059669;
}

.transfer-note-box {
  min-height: 58px;
  border-radius: 10px;
  background: #fff8e7;
  border: 1px solid #ffe7a8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
}

.transfer-note-box strong {
  display: block;
  color: #92400e;
  font-size: 12px;
  margin-top: 5px;
}

.transfer-note-box button {
  border: 0;
  background: transparent;
  color: #a16207;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.transfer-qr-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 6px;
}

.transfer-qr-box {
  width: 198px;
  aspect-ratio: 1;
  border-radius: 2px;
  background: linear-gradient(135deg, #d6dfdc, #b9c5c1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.transfer-qr-diamond {
  width: 86px;
  height: 86px;
  background: rgba(255, 255, 255, 0.78);
  transform: rotate(45deg);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.36);
}

.transfer-qr-area p {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  color: #64748b;
  font-size: 10px;
  font-weight: 850;
}

.transfer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #059669;
  font-size: 12px;
  font-weight: 950;
}

.transfer-status-pending {
  color: #059669;
}

.transfer-status-success {
  color: #10a352;
}

.transfer-qr-area .transfer-status {
  max-width: 236px;
  align-items: flex-start;
  line-height: 1.4;
  text-align: left;
}

.transfer-qr-fallback {
  max-width: 236px;
  margin: -5px 0 12px;
  color: #92400e;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 800;
  text-align: center;
}

.transfer-qr-image {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 12px;
}

.transfer-loading-state {
  padding: 24px 28px 32px;
}

.transfer-slow-network-message {
  min-height: 18px;
  margin: 12px 0 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.transfer-error-text {
  margin: 0;
  color: #dc2626;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.transfer-retry-btn {
  min-width: 104px;
  min-height: 36px;
  margin: 14px auto 0;
  border: 0;
  border-radius: 6px;
  background: #12b981;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.transfer-manual-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding: 0 28px 18px;
}

.transfer-zalo-btn,
.transfer-copy-activation-btn {
  min-height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.transfer-zalo-btn {
  border: 0;
  background: #0068ff;
  color: #ffffff;
}

.transfer-copy-activation-btn {
  border: 1px solid #bbf7d0;
  background: #ecfdf5;
  color: #047857;
}

.transfer-zalo-btn.copied,
.transfer-copy-activation-btn.copied,
.transfer-copy-row button.copied,
.transfer-note-box button.copied {
  background: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
}

.transfer-copy-row button.copied {
  width: auto;
  min-width: 96px;
  padding: 0 10px;
}

.transfer-zalo-help {
  margin: -6px 28px 18px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 750;
  text-align: center;
}

.transfer-footer-note {
  min-height: 70px;
  background: #f7fafc;
  border-top: 1px solid #edf1f7;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: center;
  padding: 18px 28px;
  text-align: left;
}

.transfer-footer-note span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e0f2f1;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
}

.transfer-footer-note p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

.transfer-footer-note--manual {
  align-items: start;
}

.transfer-manual-steps {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 750;
}

.transfer-manual-steps li + li {
  margin-top: 4px;
}

@media (max-width: 620px) {
  .transfer-info-overlay {
    align-items: flex-start;
    padding: 12px;
  }

  .transfer-content-grid {
    grid-template-columns: 1fr;
  }

  .transfer-qr-box {
    width: min(100%, 220px);
  }

  .transfer-manual-actions {
    grid-template-columns: 1fr;
    padding: 0 18px 18px;
  }

  .transfer-zalo-help {
    margin: -4px 18px 18px;
  }
}

/* Upgrade success modal */
.upgrade-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 100002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(245, 247, 252, 0.92);
  backdrop-filter: blur(8px);
}

.upgrade-success-modal {
  width: min(100%, 420px);
  padding: 36px 32px 28px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
  text-align: center;
}

.upgrade-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 999px;
  background: #059669;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upgrade-success-modal h2 {
  margin: 0 0 10px;
  color: #0f172a;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.15;
  font-weight: 900;
}

.upgrade-success-subtitle {
  margin: 0 auto 24px;
  max-width: 320px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 500;
}

.upgrade-success-details {
  margin-bottom: 24px;
  padding: 18px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
  text-align: left;
}

.upgrade-success-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}

.upgrade-success-row + .upgrade-success-row {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.upgrade-success-row > span {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.upgrade-success-row > strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #059669;
  font-size: 14px;
  font-weight: 800;
  text-align: right;
}

.upgrade-success-row:last-child > strong {
  color: #0f172a;
}

.upgrade-success-action {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  background: #047857;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(4, 120, 87, 0.22);
}

.upgrade-success-action:hover {
  background: #059669;
}

@media (max-width: 620px) {
  .upgrade-success-modal {
    padding: 28px 22px 22px;
  }

  .upgrade-success-modal h2 {
    font-size: 24px;
  }
}

/* Admin user management */
.admin-screen {
  background: #f8fafc;
  min-height: calc(100vh - 76px);
}

.admin-layout {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

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

.admin-eyebrow {
  display: inline-flex;
  color: #0ea855;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.admin-hero h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
}

.admin-hero p {
  margin: 10px 0 0;
  color: #64748b;
  max-width: 640px;
  line-height: 1.6;
}

.admin-refresh-btn,
#adminLoadUsersBtn,
.admin-save-user,
.admin-delete-user {
  border: 0;
  border-radius: 10px;
  min-height: 40px;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
}

.admin-refresh-btn,
#adminLoadUsersBtn,
.admin-save-user {
  background: #0ea855;
  color: #fff;
}

.admin-delete-user {
  background: #fee2e2;
  color: #b91c1c;
}

.admin-key-panel,
.admin-users-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.admin-key-panel {
  padding: 18px;
  margin-bottom: 18px;
}

.admin-key-panel label {
  display: block;
  margin-bottom: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.admin-key-row {
  display: flex;
  gap: 10px;
}

.admin-key-row input,
.admin-table-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  color: #0f172a;
  font: inherit;
  outline: none;
}

.admin-key-row input:focus,
.admin-table-input:focus {
  border-color: #0ea855;
  box-shadow: 0 0 0 3px rgba(14, 168, 85, 0.12);
}

.admin-status {
  margin: 10px 0 0;
  color: #0f766e;
  font-size: 13px;
  font-weight: 700;
}

.admin-status.error {
  color: #dc2626;
}

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

.admin-users-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.admin-users-table th,
.admin-users-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: middle;
  color: #334155;
  font-size: 14px;
}

.admin-users-table th {
  background: #f1f5f9;
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-active-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-weight: 700;
}

.admin-row-actions {
  display: flex;
  gap: 8px;
}

.admin-empty {
  text-align: center !important;
  color: #64748b !important;
  padding: 30px !important;
}

/* ==========================================================================
   MEDIA QUERIES FOR REDESIGNED LAYOUT
   ========================================================================== */

@media (max-width: 900px) {
  .admin-layout {
    width: min(100% - 28px, 1180px);
    padding-top: 28px;
  }

  .admin-hero {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .screen-home .app-top {
    padding: 14px 20px !important;
  }
  
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    /* gap: 30px; */
    padding: 40px 20px;
  }

  .hero-visual-box {
    order: 1;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .hero-content {
    order: 2;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-image-container {
    max-width: 560px;
    margin: 0 auto;
    padding-left: 0;
    display: flex;
    width: 100%;
  }

  .hero-media-card {
    width: 100%;
  }

  .hero-mini-card,
  .hero-mini-card-a,
  .hero-mini-card-b,
  .hero-mini-card-c,
  .hero-mini-card-d {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    text-align: left;
  }
  
  .footer-container {
    grid-template-columns: 1.5fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .screen-home .app-top {
    padding: 14px 16px !important;
  }
  
  .screen-home .btn-login,
  .screen-home .btn-register {
    padding: 8px 16px;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-title {
    font-size: 34px;
  }
  
  .btn-hero-primary {
    width: 100%;
    justify-content: center;
  }

  .hero-image-container {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  
  .footer-logo,
  .footer-socials {
    justify-content: center;
  }
  
  .footer-contact-list li {
    justify-content: center;
  }
}

/* ==========================================================================
   Shared desktop sidebar + page shell
   ========================================================================== */
@media (min-width: 901px) {
  #app.app-shell {
    min-height: 100vh;
    background: #eef2f6;
  }
}

.app-desktop-shell {
  display: contents;
}

.app-desktop-shell--home {
  display: none;
}

.home-desktop-sidebar {
  display: none;
}

.home-desktop-layout {
  display: none;
}

.home-legacy-mobile {
  display: block;
}

.mobile-page-return-bar {
  display: none;
}

@media (max-width: 900px) {
  .mobile-page-return-bar {
    min-height: 48px;
    padding: 8px 16px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    background: #16a34a;
  }

  .mobile-page-return-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: none;
    pointer-events: none;
  }

  .mobile-page-return-bar,
  .account-mobile-header,
  .vocab-page-heading,
  .daily-course-header {
    background: #16a34a !important;
    color: #ffffff;
  }

  .account-mobile-header h1,
  .vocab-page-heading h1,
  .vocab-page-heading p,
  .daily-course-header h1,
  .daily-course-header p {
    color: #ffffff !important;
  }

  .mobile-page-return-bar--daily,
  .mobile-page-return-bar--account,
  .mobile-page-return-bar--vocab {
    background: #16a34a;
  }

  .mobile-page-return-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.08);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    position: relative;
    z-index: 1;
  }

  .mobile-page-return-btn svg {
    width: 15px;
    height: 15px;
  }

  .mobile-page-return-title {
    position: relative;
    z-index: 1;
    min-width: 0;
    margin: 0;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (min-width: 901px) {
  .screen-home .app-top,
  .screen-course .app-top,
  .screen-vocab .app-top,
  .screen-account .app-top {
    display: none !important;
  }

  .screen-home #globalFooter,
  .screen-course #globalFooter,
  .screen-vocab #globalFooter,
  .screen-account #globalFooter {
    display: none !important;
  }

  .screen-home.home-screen,
  .screen-home .home-screen,
  .screen-course,
  .screen-vocab,
  .screen-account {
    padding: 0;
  }

  .screen-course,
  .screen-vocab,
  .screen-account {
    background: #eef2f6;
  }

  .app-desktop-shell {
    --desktop-sidebar-width: 240px;
    display: block;
    min-height: 100vh;
    padding: 0;
    background: #eef2f6;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .app-desktop-shell--home {
    display: block;
  }

  .app-desktop-content {
    width: auto;
    max-width: calc(100% - var(--desktop-sidebar-width));
    min-height: 100vh;
    margin-left: var(--desktop-sidebar-width);
    min-width: 0;
    /* padding: 24px 28px 32px; */
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .app-desktop-shell--course .app-desktop-content,
  .app-desktop-shell--vocab .app-desktop-content {
    background: #eef2f6;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }

  .app-desktop-shell--course .hsk-lesson-screen,
  .app-desktop-shell--course .daily-course-layout,
  .app-desktop-shell--course .hsk-level-picker {
    max-width: none;
    margin: 0;
  }

  .app-desktop-shell--account .account-layout {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .home-legacy-mobile {
    display: none !important;
  }

  .home-desktop-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    padding: 0;
    background: transparent;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .home-desktop-sidebar,
  .home-desktop-main,
  .home-desktop-rail > * {
    border-radius: 22px;
  }

  .home-desktop-sidebar {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    width: 240px;
    height: 100vh;
    padding: 24px 18px 20px;
    box-shadow: 10px 0 30px rgba(15, 23, 42, 0.05);
    border-radius: 0;
    border-right: 1px solid #e2e8f0;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    overflow-y: auto;
    box-sizing: border-box;
  }

  .home-desktop-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 0 8px;
  }

  .home-desktop-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(180deg, #34c879 0%, #0ea855 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 8px 18px rgba(14, 168, 85, 0.24);
  }

  .home-desktop-brand strong {
    display: block;
    font-family: var(--font-display);
    font-size: 18px;
    color: #0f172a;
  }

  .home-desktop-brand small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
  }

  .home-desktop-nav {
    display: grid;
    gap: 8px;
  }

  .home-desktop-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 14px;
    border: none;
    border-radius: 14px;
    background: transparent;
    color: #475569;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    transition: background 0.18s ease, color 0.18s ease;
  }

  .home-desktop-nav-item span {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .home-desktop-nav-item span svg {
    width: 22px;
    height: 22px;
    display: block;
  }

  .home-desktop-nav-item:hover {
    background: #f1f5f9;
    color: #0f172a;
  }

  .home-desktop-nav-item.is-active {
    background: #10a352;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(16, 163, 82, 0.22);
  }

  .home-desktop-sidebar-foot {
    margin-top: auto;
    padding-top: 18px;
  }

  .home-desktop-premium-card {
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef6f1 100%);
    border: 1px solid #dbe8df;
  }

  .home-desktop-premium-card strong {
    display: block;
    font-size: 14px;
    color: #0f172a;
    margin-bottom: 6px;
  }

  .home-desktop-premium-card p {
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.5;
    color: #64748b;
  }

  .home-desktop-premium-btn {
    width: 100%;
    min-height: 40px;
    border: none;
    border-radius: 999px;
    background: #10a352;
    color: #fff;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
  }

  .home-desktop-logout-btn {
    width: 100%;
    margin-top: 10px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    color: #64748b;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  }

  .home-desktop-language-btn {
    width: 100%;
    min-height: 46px;
    padding: 8px 14px;
    border: 1px solid #dbe6f3;
    border-radius: 14px;
    background: #ffffff;
    color: #334155;
    display: grid;
    gap: 2px;
    text-align: left;
    font-family: var(--font-display);
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  }

  .home-desktop-language-btn span {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
  }

  .home-desktop-language-btn strong {
    font-size: 13px;
    font-weight: 900;
    color: #047857;
  }

  .home-desktop-language-btn:hover {
    border-color: #a7f3d0;
    background: #f0fdf4;
  }

  .home-desktop-logout-btn:hover {
    color: #dc2626;
    border-color: #fecaca;
    background: #fef2f2;
  }

  .home-desktop-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    min-width: 0;
  }

  .home-desktop-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 4px 4px 0;
  }

  .home-desktop-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
  }

  .home-desktop-lang-btn {
    min-height: 44px;
    padding: 4px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
    white-space: nowrap;
  }

  .home-desktop-lang-btn span {
    min-width: 54px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  }

  .home-desktop-lang-btn span.active {
    background: #0ea855;
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(14, 168, 85, 0.22);
  }

  .home-desktop-lang-btn:hover {
    border-color: #a7f3d0;
    background: #f8fffb;
  }

  .home-desktop-topbar h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(28px, 2.4vw, 36px);
    color: #0ea855;
    letter-spacing: -0.02em;
  }

  .home-desktop-topbar p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
  }

  .home-desktop-search {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: min(360px, 100%);
    min-height: 48px;
    padding: 0 16px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
    color: #94a3b8;
  }

  .home-desktop-search input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
  }

  .home-desktop-hero-card {
    display: block;
    padding: 0;
    border: none;
    border-radius: 24px;
    background: transparent;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    overflow: hidden;
  }

  .home-desktop-hero-cover {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
  }

  .home-desktop-modules {
    display: grid;
    grid-template-columns: repeat(3, 32%);
    gap: 0 2%;
  }

  .home-desktop-module-card {
    position: relative;
    aspect-ratio: 1.586 / 1;
    min-height: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }

  .home-desktop-module-card:hover,
  .home-desktop-module-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
    outline: none;
  }

  .home-desktop-module-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .home-desktop-module-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 0;
    padding: 8% 5% 6%;
  }

  .home-desktop-module-content h3 {
    margin: 0;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    text-shadow: 0 2px 12px rgba(15, 23, 42, 0.18);
  }

  .home-desktop-module-content p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    font-weight: 600;
    text-shadow: 0 1px 8px rgba(15, 23, 42, 0.16);
  }

  .home-desktop-module-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 0 18px;
    border: none;
    border-radius: 999px;
    background: #ffffff;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  }

  .home-desktop-module-card--hsk .home-desktop-module-btn { color: #169a5d; }
  .home-desktop-module-card--daily .home-desktop-module-btn { color: #e2556d; }
  .home-desktop-module-card--vocab .home-desktop-module-btn { color: #2f74d5; }

  .home-desktop-saved-section,
  .home-desktop-stats-card,
  .home-desktop-activity-card,
  .home-desktop-profile-card,
  .home-desktop-streak-card,
  .home-desktop-quote-card {
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.9);
  }

  .home-desktop-saved-section {
    position: relative;
    padding: 22px 22px 18px;
    border-radius: 24px;
    overflow: hidden;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(240, 249, 255, 0.92) 100%),
      linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(59, 130, 246, 0.08) 56%, rgba(255, 255, 255, 0) 100%);
    border-color: rgba(191, 219, 254, 0.9);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
  }

  .home-desktop-saved-section::before {
    position: absolute;
    right: -18px;
    bottom: -28px;
    left: -18px;
    height: 74px;
    content: "";
    background:
      linear-gradient(135deg, rgba(14, 165, 233, 0.12) 0 18%, transparent 18% 34%, rgba(34, 197, 94, 0.1) 34% 52%, transparent 52%),
      linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(219, 234, 254, 0.58));
    opacity: 0.9;
    pointer-events: none;
  }

  .home-desktop-saved-section::after {
    position: absolute;
    top: 14px;
    right: 28px;
    width: 154px;
    height: 72px;
    content: "";
    background:
      linear-gradient(90deg, transparent 0 18px, rgba(59, 130, 246, 0.13) 18px 20px, transparent 20px 40px),
      linear-gradient(0deg, transparent 0 18px, rgba(34, 197, 94, 0.1) 18px 20px, transparent 20px 40px);
    opacity: 0.65;
    pointer-events: none;
    mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  }

  .home-desktop-saved-section > * {
    position: relative;
    z-index: 1;
  }

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

  .home-desktop-section-head h2,
  .home-desktop-stats-card h3,
  .home-desktop-activity-card h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 18px;
    color: #0f172a;
  }

  .home-desktop-link-btn {
    border: none;
    background: transparent;
    color: #10a352;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
  }

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

  .home-desktop-vocab-card {
    position: relative;
    padding: 16px 14px 15px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }

  .home-desktop-vocab-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  }

  .home-desktop-vocab-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
  }

  .home-desktop-vocab-hanzi {
    font-family: "Noto Sans SC", sans-serif;
    font-size: 28px;
    color: #0f172a;
  }

  .home-desktop-vocab-star {
    border: none;
    background: transparent;
    color: #f59e0b;
    font-size: 16px;
    cursor: default;
  }

  .home-desktop-vocab-pinyin {
    margin: 4px 0 0;
    color: #10a352;
    font-size: 13px;
    font-weight: 700;
  }

  .home-desktop-vocab-meaning {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
  }

  .home-desktop-vocab-speak {
    /* position: absolute; */
    /* right: 12px;
    bottom: 12px; */
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #e8f9ee;
    color: #10a352;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .home-desktop-vocab-empty {
    padding: 28px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(219, 234, 254, 0.72);
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
  }

  .home-desktop-challenge {
    position: relative;
    display: block;
    padding: 0;
    border: none;
    border-radius: 24px;
    background: transparent;
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.08);
    overflow: hidden;
  }

  .home-desktop-challenge-cover {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
  }

  .home-desktop-challenge-btn {
    position: absolute;
    right: clamp(16px, 2.4vw, 28px);
    top: 50%;
    transform: translateY(-50%);
    min-height: 46px;
    padding: 0 20px;
    border: none;
    border-radius: 999px;
    background: #f97316;
    color: #fff;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.28);
    z-index: 1;
  }

  .home-desktop-challenge-btn:hover {
    background: #ea580c;
  }

  .home-desktop-rail {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    position: sticky;
    top: 22px;
    align-self: start;
  }

  .home-desktop-profile-card,
  .home-desktop-streak-card,
  .home-desktop-stats-card,
  .home-desktop-activity-card,
  .home-desktop-quote-card {
    padding: 18px;
    border-radius: 22px;
  }

  .home-desktop-profile-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
  }

  .home-desktop-profile-card--login {
    cursor: pointer;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .home-desktop-profile-card--login .home-desktop-avatar,
  .home-desktop-profile-card--login p,
  .home-desktop-profile-card--login .home-desktop-level-badge {
    display: none;
  }

  .home-desktop-profile-card--login strong {
    margin: 0;
  }

  .home-desktop-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(180deg, #fde68a 0%, #f59e0b 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    overflow: hidden;
  }

  .home-desktop-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .home-desktop-profile-card p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
  }

  .home-desktop-profile-card strong {
    display: block;
    margin-top: 2px;
    color: #0f172a;
    font-size: 15px;
  }

  .home-desktop-vip-meta {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
  }

  .home-desktop-level-badge {
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #10a352;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
  }

  .home-desktop-streak-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(180deg, #fff9eb 0%, #fff4d6 100%);
  }

  .home-desktop-streak-card span {
    display: block;
    color: #92400e;
    font-size: 12px;
    font-weight: 700;
  }

  .home-desktop-streak-card strong {
    display: block;
    margin-top: 4px;
    color: #9a3412;
    font-size: 24px;
    font-family: var(--font-display);
  }

  .home-desktop-streak-icon {
    font-size: 34px;
  }

  .home-desktop-stats-card ul,
  .home-desktop-activity-card ul {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
  }

  .home-desktop-stats-card li,
  .home-desktop-activity-card li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: #64748b;
  }

  .home-desktop-stats-card strong,
  .home-desktop-activity-card strong {
    color: #0f172a;
    font-size: 14px;
  }

  .home-desktop-activity-card .home-desktop-link-btn {
    margin-top: 14px;
    padding: 0;
  }

  .home-desktop-quote-card {
    background: linear-gradient(180deg, #f2fbf5 0%, #e8f7ee 100%);
    border-color: #cfeedd;
  }

  .home-desktop-quote-card p {
    margin: 0;
    color: #166534;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
  }
}

@media (max-width: 1180px) and (min-width: 901px) {
  .home-desktop-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-desktop-rail {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: static;
  }

  .home-desktop-quote-card {
    grid-column: 1 / -1;
  }

  .home-desktop-vocab-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   Home mobile top bar (streak / title / profile)
   ========================================================================== */
.home-mobile-topbar {
  display: none;
}

.home-mobile-promo-banner {
  display: none;
}

@media (max-width: 900px) {
  .screen-home .home-mobile-topbar {
    display: grid;
    grid-template-columns: minmax(72px, 24%) minmax(0, 1fr) minmax(78px, 26%);
    align-items: center;
    gap: 10px;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 14px 16px;
    background:
      radial-gradient(circle at 0% 0%, rgba(255, 182, 193, 0.18), transparent 42%),
      linear-gradient(180deg, #ffffff 0%, #f9fcfa 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    overflow: hidden;
  }

  .home-mobile-topbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 10px;
    background: linear-gradient(90deg, rgba(16, 163, 82, 0.16) 0%, rgba(16, 163, 82, 0.04) 42%, transparent 100%);
    pointer-events: none;
  }

  .home-mobile-topbar-streak {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding-right: 10px;
    border-right: 1px solid #e2e8f0;
    min-width: 0;
  }

  .home-mobile-topbar-crown {
    font-size: 14px;
    line-height: 1;
  }

  .home-mobile-topbar-streak-label {
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.2;
  }

  .home-mobile-topbar-streak-days {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -0.03em;
  }

  .home-mobile-topbar-streak-days span {
    font-size: 13px;
    font-weight: 700;
    margin-left: 1px;
  }

  .home-mobile-topbar-streak-cheer {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
  }

  .home-mobile-topbar-streak-arrow {
    color: #f59e0b;
    font-size: 12px;
    font-weight: 800;
  }

  .home-mobile-topbar-brand {
    min-width: 0;
    padding: 0 4px;
  }

  .home-mobile-topbar-brand h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(17px, 4.6vw, 22px);
    font-weight: 800;
    line-height: 1.15;
    color: #0b5f3f;
    letter-spacing: -0.02em;
  }

  .home-mobile-topbar-accent {
    display: inline-block;
    border-bottom: 3px solid #10a352;
    padding-bottom: 1px;
  }

  .home-mobile-topbar-brand p {
    margin: 4px 0 0;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.35;
    color: #64748b;
  }

  .home-mobile-topbar-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
  }

  .home-mobile-topbar-profile--guest {
    cursor: pointer;
  }

  .home-mobile-topbar-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(180deg, #d9fbe8 0%, #b7efd2 100%);
    border: 2px solid #ffffff;
    box-shadow: 0 6px 14px rgba(16, 163, 82, 0.14);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    color: #0b5f3f;
    overflow: hidden;
  }

  .home-mobile-topbar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .home-mobile-topbar-avatar--guest {
    position: relative;
    background: #e5e7eb;
    border: 1px solid #9ca3af;
    color: transparent;
    box-shadow: none;
  }

  .home-mobile-topbar-greet {
    margin: 5px 0 2px;
    max-width: 74px;
    font-size: 11px;
    font-weight: 700;
    color: #334155;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .home-mobile-topbar-level {
    display: block;
    max-width: 100%;
    font-size: 10px;
    font-weight: 700;
    color: #475569;
  }

  .home-mobile-topbar-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #10a352;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 800;
    flex-shrink: 0;
  }

  .home-mobile-topbar-level small {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
  }

  .home-mobile-promo-banner {
    display: block;
    padding: 12px 14px 4px;
    background: linear-gradient(180deg, #f9fcfa 0%, #ffffff 100%);
  }

  .home-mobile-promo-banner-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  }

  .screen-home .hero-section {
    display: none;
  }
}

/* ==========================================================================
   Home mobile quick modules (HSK / Giao tiếp / Từ vựng)
   ========================================================================== */
.home-mobile-modules {
  display: none;
}

@media (max-width: 900px) {
  .screen-home .home-mobile-modules {
    display: block;
    padding: 10px;
  }

  .home-mobile-saved-section {
    margin-top: 18px;
    padding: 10px;
  }

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

  .home-mobile-saved-head h2 {
    margin: 0;
    color: #0f172a;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
  }

  .home-mobile-saved-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: none;
    background: transparent;
    padding: 0;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
  }

  .home-mobile-saved-link span {
    color: #16a34a;
    font-size: 15px;
    line-height: 1;
  }

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

  .home-mobile-vocab-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 148px;
    padding: 10px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e7edf3;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    overflow: hidden;
  }

  .home-mobile-vocab-star {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    border: none;
    background: transparent;
    color: #fbbf24;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    pointer-events: none;
  }

  .home-mobile-vocab-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 18px 6px 8px;
    min-height: 0;
    text-align: center;
  }

  .home-mobile-vocab-hanzi {
    display: block;
    margin: 0;
    color: #0f172a;
    font-family: "Noto Sans SC", sans-serif;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    word-break: break-all;
  }

  .home-mobile-vocab-pinyin,
  .home-mobile-vocab-meaning {
    margin: 0;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-mobile-vocab-pinyin {
    color: #16a34a;
    font-size: 12px;
    font-weight: 600;
  }

  .home-mobile-vocab-meaning {
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
  }

  .home-mobile-vocab-card .home-mobile-vocab-speak,
  .home-mobile-vocab-card .vocab-speak-btn {
    position: static;
    width: 100%;
    min-height: 34px;
    margin-top: auto;
    flex-shrink: 0;
    border: none;
    border-radius: 10px;
    background: #f1f5f9;
    color: #16a34a;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .home-mobile-vocab-card .home-mobile-vocab-speak:hover,
  .home-mobile-vocab-card .vocab-speak-btn:hover {
    background: #e8eef6;
    color: #15803d;
    transform: none;
  }

  .home-mobile-saved-empty {
    padding: 16px 14px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e7edf3;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  }

  .screen-home .features-section {
    padding-top: 28px;
  }

  .home-mobile-modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 32%);
    gap: 0 2%;
    align-items: stretch;
  }

  .home-mobile-module-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1.42 / 1;
    height: auto;
    min-height: 0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    outline: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }

  .home-mobile-module-card:hover,
  .home-mobile-module-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
  }

  .home-mobile-module-card img{
    width: 100%;
  }

  .home-mobile-module-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .home-mobile-module-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 0;
    padding: 7% 5% 6%;
  }

  .home-mobile-module-copy h3 {
    margin: 0;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0;
    text-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
  }

  .home-mobile-module-copy p {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    text-shadow: 0 1px 8px rgba(15, 23, 42, 0.16);
  }

  .home-mobile-module-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    min-height: 15%;
    margin-top: auto;
    padding: 2% 5%;
    border: none;
    border-radius: 999px;
    background: #ffffff;
    font-family: var(--font-display);
    font-size: 8px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }

  .home-mobile-module-btn span {
    font-size: 14px;
    line-height: 1;
  }

  .home-mobile-module-card--hsk .home-mobile-module-btn {
    color: #169a5d;
  }

  .home-mobile-module-card--daily .home-mobile-module-btn {
    color: #e2556d;
  }

  .home-mobile-module-card--vocab .home-mobile-module-btn {
    color: #2f74d5;
  }

  .home-mobile-module-btn:active {
    transform: scale(0.98);
  }

  .home-mobile-challenge {
    position: relative;
    margin: 20px 0 28px;
    border-radius: 20px;
    overflow: hidden;
    background: #fffaf3;
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.12);
  }

  .home-mobile-challenge-cover {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
  }

  .home-mobile-challenge-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    min-height: 26px;
    padding: 0 16px;
    border: none;
    border-radius: 999px;
    background: #f97316;
    color: #fff;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.28);
    z-index: 1;
  }

  .home-mobile-challenge-btn:active {
    background: #ea580c;
    transform: translateY(-50%) scale(0.98);
  }

  .home-mobile-topics-section {
    padding: 10px 10px 92px;
  }

  .home-mobile-topics-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
  }

  .home-mobile-topics-head h2 {
    margin: 0;
    color: #0f172a;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0;
  }

  .home-mobile-topics-link {
    border: none;
    background: transparent;
    color: #0f9f6e;
    font-size: 13px;
    font-weight: 850;
    padding: 0;
    cursor: pointer;
  }

  .home-mobile-topics-list {
    display: grid;
    gap: 12px;
  }

  .home-mobile-topic-card {
    position: relative;
    display: grid;
    grid-template-columns: 28px 70px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 118px;
    padding: 12px 12px 12px 10px;
    border: 1px solid #e8eef5;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    cursor: pointer;
  }

  .home-mobile-topic-card:active {
    transform: scale(0.99);
  }

  .home-mobile-topic-index {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 950;
    box-shadow: 0 5px 12px rgba(15, 23, 42, 0.12);
  }

  .home-mobile-topic-index--1 { background: #059669; }
  .home-mobile-topic-index--2 { background: #0ea566; }
  .home-mobile-topic-index--3 { background: #8b5cf6; }
  .home-mobile-topic-index--4 { background: #f97316; }
  .home-mobile-topic-index--5 { background: #0ea5e9; }
  .home-mobile-topic-index--6 { background: #db2777; }

  .home-mobile-topic-cover {
    width: 70px;
    height: 70px;
    border-radius: 17px;
    object-fit: cover;
    background: #f1f5f9;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  }

  .home-mobile-topic-body {
    min-width: 0;
  }

  .home-mobile-topic-body h3 {
    margin: 0 0 5px;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.16;
    font-weight: 950;
    letter-spacing: 0;
  }

  .home-mobile-topic-zh {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 7px;
    min-width: 0;
  }

  .home-mobile-topic-zh strong {
    color: #101a35;
    font-family: var(--font-zh);
    font-size: 21px;
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
  }

  .home-mobile-topic-zh span {
    color: #059669;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .home-mobile-topic-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #64748b;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
  }

  .home-mobile-topic-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
  }

  .home-mobile-topic-meta > span + span::before {
    content: "";
    width: 1px;
    height: 12px;
    margin-right: 2px;
    background: #dbe4ee;
  }

  .home-mobile-topic-level {
    min-height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    background: #dcfce7;
    color: #059669;
    font-size: 11px;
    font-weight: 950;
  }

  .home-mobile-topic-start {
    min-width: 72px;
    min-height: 25px;
    border: none;
    border-radius: 11px;
    background: linear-gradient(135deg, #059669 0%, #00a878 100%);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(5, 150, 105, 0.22);
    white-space: nowrap;
  }

  .home-mobile-topic-chevron {
    display: none;
    color: #8190a7;
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
  }
}

@media (max-width: 640px) {
  .home-mobile-module-card {
    aspect-ratio: 0.58 / 1;
  }
  .account-screen .account-panel{
    padding-top: 0;
  }
}

@media (max-width: 380px) {
  .home-mobile-saved-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-mobile-vocab-hanzi {
    font-size: 22px;
  }

  .home-mobile-module-copy h3 {
    font-size: 15px;
  }

  .home-mobile-module-copy p,
  .home-mobile-module-btn {
    font-size: 10px;
  }

  .home-mobile-module-card {
    aspect-ratio: 0.5 / 1;
    min-height: 0;
    border-radius: 18px;
  }

  .home-mobile-module-content {
    height: 100%;
    min-height: 0;
    padding: 7% 5% 6%;
  }
}

/* ==========================================================================
   ROADMAP PAGE & HEADER NAVIGATION STYLES
   ========================================================================== */

/* Header overrides for roadmap and course screens */
.screen-home .app-top,
.screen-roadmap .app-top,
.screen-course .app-top,
.screen-vocab .app-top,
.screen-account .app-top {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  position: sticky !important;
  top: 0 !important;
  background: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
  border: none !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  backdrop-filter: none !important;
  z-index: 1000 !important;
}

.screen-home .app-top-inner,
.screen-roadmap .app-top-inner,
.screen-course .app-top-inner,
.screen-vocab .app-top-inner,
.screen-account .app-top-inner {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  padding: 14px 24px !important;
  overflow: visible !important;
  column-gap: 20px !important;
}

.screen-home .app-top::before,
.screen-roadmap .app-top::before,
.screen-course .app-top::before,
.screen-vocab .app-top::before,
.screen-account .app-top::before,
.screen-home .app-top-inner::before,
.screen-roadmap .app-top-inner::before,
.screen-course .app-top-inner::before,
.screen-vocab .app-top-inner::before,
.screen-account .app-top-inner::before {
  display: none !important;
}

.screen-home .brand,
.screen-roadmap .brand,
.screen-course .brand,
.screen-vocab .brand,
.screen-account .brand {
  grid-column: 1;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-height: auto !important;
}

.screen-home .brand strong,
.screen-roadmap .brand strong,
.screen-course .brand strong,
.screen-vocab .brand strong,
.screen-account .brand strong {
  font-size: 20px !important;
  color: #0a5c32 !important;
  font-weight: 800 !important;
  font-family: var(--font-display);
}

.screen-home #brandSubtitle,
.screen-home #reviewBtn,
.screen-home #backBtn,
.screen-roadmap #brandSubtitle,
.screen-course #brandSubtitle,
.screen-vocab #brandSubtitle,
.screen-account #brandSubtitle,
.screen-roadmap #reviewBtn,
.screen-course #reviewBtn,
.screen-vocab #reviewBtn,
.screen-account #reviewBtn,
.screen-vocab #backBtn,
.screen-account #backBtn {
  display: none !important;
}

.screen-home .top-actions,
.screen-roadmap .top-actions,
.screen-course .top-actions,
.screen-vocab .top-actions,
.screen-account .top-actions {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  gap: 20px !important;
}

/* Login/Register buttons on roadmap header */
.screen-home .btn-login,
.screen-roadmap .btn-login,
.screen-course .btn-login,
.screen-vocab .btn-login,
.screen-account .btn-login {
  background: white;
  border: 1px solid #cbd5e1;
  color: #475569;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.screen-home .btn-login:hover,
.screen-roadmap .btn-login:hover,
.screen-course .btn-login:hover,
.screen-vocab .btn-login:hover,
.screen-account .btn-login:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.screen-home .btn-register,
.screen-roadmap .btn-register,
.screen-course .btn-register,
.screen-vocab .btn-register,
.screen-account .btn-register {
  background: #0ea855;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(14, 168, 85, 0.15);
}

.screen-home .btn-register:hover,
.screen-roadmap .btn-register:hover,
.screen-course .btn-register:hover,
.screen-vocab .btn-register:hover,
.screen-account .btn-register:hover {
  background: #0d944c;
  transform: translateY(-1px);
}

/* Header Navigation Bar styles */
.header-nav {
  display: none !important;
}

.screen-home .header-nav,
.screen-roadmap .header-nav,
.screen-course .header-nav,
.screen-vocab .header-nav,
.screen-account .header-nav,
.screen-subscriptions .header-nav {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 24px;
  margin-left: 40px;
  min-width: 0;
  white-space: nowrap;
  grid-column: 2;
  justify-self: start;
}

.screen-home .top-actions,
.screen-roadmap .top-actions,
.screen-course .top-actions,
.screen-vocab .top-actions,
.screen-account .top-actions,
.screen-subscriptions .top-actions {
  grid-column: 3;
  justify-self: end;
  flex-shrink: 0;
}

/* Compact learning header for practice and completion screens */
.screen-practice .app-top,
.screen-complete .app-top {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  position: sticky !important;
  top: 0 !important;
  padding: 0 !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border: none !important;
  border-bottom: 1px solid #dbe8ef !important;
  border-radius: 0 !important;
  box-shadow: 0 10px 24px rgba(15, 35, 60, 0.05) !important;
  backdrop-filter: blur(14px);
  z-index: 1000 !important;
}

.screen-practice .app-top-inner,
.screen-complete .app-top-inner {
  display: grid !important;
  grid-template-columns: 44px auto 1fr auto !important;
  gap: 12px !important;
  width: min(1220px, calc(100% - 32px)) !important;
  max-width: 1220px !important;
  min-height: 72px !important;
  margin: 0 auto !important;
  padding: 10px 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  overflow: visible !important;
}

.screen-practice .app-top-inner::before,
.screen-complete .app-top-inner::before {
  display: none !important;
}

.screen-practice .brand,
.screen-complete .brand {
  width: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  gap: 10px !important;
}

.screen-practice .brand-logo,
.screen-complete .brand-logo {
  width: 42px !important;
  height: 42px !important;
  flex-basis: 42px !important;
  border-radius: 50% !important;
  border: 1px solid #c8d9e8 !important;
  box-shadow: 0 4px 12px rgba(18, 42, 70, 0.08) !important;
}

.screen-practice #brandSubtitle,
.screen-complete #brandSubtitle,
.screen-practice .header-nav,
.screen-complete .header-nav {
  display: none !important;
}

.screen-practice .icon-btn,
.screen-complete .icon-btn {
  width: 44px !important;
  min-height: 44px !important;
  border-radius: 14px !important;
  font-size: 28px !important;
  background: #ffffff !important;
  box-shadow: 0 6px 14px rgba(18, 42, 70, 0.08), inset 0 -2px 0 #dce8f2 !important;
}

.screen-practice .top-actions,
.screen-complete .top-actions {
  justify-self: end !important;
  padding: 0 !important;
  gap: 8px !important;
  border: none !important;
  background: transparent !important;
}

.screen-practice .pill-btn,
.screen-complete .pill-btn,
.screen-practice .lang-toggle,
.screen-complete .lang-toggle {
  min-height: 46px !important;
  border-radius: 14px !important;
  padding: 0 18px !important;
  background: #ffffff !important;
  box-shadow: 0 6px 14px rgba(18, 42, 70, 0.07), inset 0 -2px 0 #dce8f2 !important;
}

/* Full-screen responsive practice workspace */
body:has(#practiceScreen:not(.hidden)) {
  overflow: hidden;
}

#practiceScreen {
  width: 100%;
  min-height: 100dvh;
}

#practiceScreen:not(.hidden) {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  align-items: stretch;
  justify-items: center;
  gap: clamp(8px, 1.1vh, 14px);
  height: 100dvh;
  padding: clamp(8px, 1.8vh, 18px) clamp(10px, 2.2vw, 28px);
  overflow: hidden;
}

#practiceScreen .practice-top,
#practiceScreen .practice-meta,
#practiceScreen .practice-layout,
#practiceScreen .function-dock {
  width: min(100%, 1280px);
}

#practiceScreen .practice-top {
  display: grid;
  grid-template-columns: clamp(34px, 3.3vw, 44px) minmax(120px, 18%) minmax(0, 1fr);
  align-items: center;
  gap: clamp(8px, 1vw, 14px);
  margin: 0;
}

#practiceScreen .practice-close-btn {
  width: clamp(34px, 3.3vw, 44px);
  min-height: clamp(34px, 3.3vw, 44px);
}

#practiceScreen .thin-progress {
  min-width: 0;
}

#practiceScreen .mode-switch {
  justify-self: end;
}

#practiceScreen .mode-switch button {
  min-height: clamp(30px, 3.2vh, 38px);
  padding-inline: clamp(10px, 1.4vw, 18px);
  font-size: clamp(12px, 0.95vw, 14px);
}

#practiceScreen .practice-meta {
  margin: 0;
}

#practiceScreen .practice-meta strong {
  font-size: clamp(16px, 1.55vw, 22px);
}

#practiceScreen .practice-meta span {
  font-size: clamp(12px, 1vw, 15px);
}

#practiceScreen .practice-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(210px, 21%, 280px);
  gap: clamp(10px, 1.2vw, 16px);
  min-height: 0;
  height: 100%;
}

#practiceScreen .exercise-card {
  display: flex;
  min-height: 0;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 3vh, 34px) clamp(14px, 2.2vw, 30px);
  overflow: hidden;
}

#practiceScreen .exercise-card > p {
  margin-top: clamp(6px, 1vh, 10px);
  font-size: clamp(12px, 1vw, 14px);
  text-align: center;
}

#practiceScreen .exercise-card h1 {
  max-width: min(100%, 760px);
  margin: clamp(8px, 1.4vh, 16px) auto clamp(12px, 2vh, 22px);
  font-size: clamp(32px, 5.4vmin, 58px);
  line-height: 1.05;
  text-align: center;
}

#practiceScreen .exercise-card h1.practice-prompt--compact {
  font-size: clamp(25px, 4.2vmin, 42px);
}

#practiceScreen .exercise-card h1.practice-prompt--small {
  font-size: clamp(22px, 3.5vmin, 34px);
}

#practiceScreen .exercise-card h1.practice-prompt--tiny {
  font-size: clamp(18px, 2.9vmin, 28px);
}

#practiceScreen .slot-row {
  max-width: min(100%, 780px);
  margin-bottom: clamp(8px, 1.4vh, 14px);
  gap: clamp(8px, 1vw, 12px);
}

#practiceScreen .answer-slot {
  min-width: clamp(110px, 13vw, 150px);
}

#practiceScreen .slot-line {
  min-height: clamp(64px, 10vh, 90px);
  padding: clamp(8px, 1.4vh, 12px);
}

#practiceScreen .answer-slot input {
  font-size: clamp(20px, 3vmin, 27px);
}

#practiceScreen .answer-slot strong {
  font-size: clamp(21px, 3.2vmin, 30px);
}

#practiceScreen .memory-panel {
  min-height: 0;
  height: 100%;
  padding: clamp(14px, 2vh, 22px);
  overflow: auto;
}

#practiceScreen .memory-panel strong {
  font-size: clamp(28px, 5vmin, 54px);
  line-height: 1.05;
}

#practiceScreen .memory-panel p {
  font-size: clamp(12px, 1vw, 14px);
}

#practiceScreen .function-dock {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(6px, 0.9vw, 10px);
  margin: 0;
  padding: clamp(6px, 1vh, 9px);
}

#practiceScreen .function-dock button,
#practiceScreen .function-dock button:not(.primary) {
  min-height: clamp(42px, 6vh, 56px);
  border-radius: clamp(12px, 1.2vw, 16px);
  font-size: clamp(12px, 1vw, 14px);
  white-space: nowrap;
}

@media (max-width: 920px) {
  #practiceScreen:not(.hidden) {
    grid-template-rows: auto auto auto auto;
    padding: 10px;
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
    align-content: start;
  }

  #practiceScreen .practice-top {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  #practiceScreen .thin-progress {
    grid-column: 1 / -1;
    order: 4;
  }

  #practiceScreen .practice-layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  #practiceScreen .memory-panel {
    display: block;
    height: auto;
    max-height: none;
    min-height: 132px;
    overflow: visible;
  }
}

@media (max-width: 640px), (max-height: 620px) {
  #practiceScreen:not(.hidden) {
    gap: 8px;
  }

  #practiceScreen .practice-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
  }

  #practiceScreen .exercise-card {
    border-radius: 18px;
    padding: 14px 10px;
    min-height: clamp(300px, 50dvh, 430px);
    height: auto;
  }

  #practiceScreen .slot-line {
    min-height: 58px;
  }

  #practiceScreen .function-dock {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #practiceScreen .function-dock button,
  #practiceScreen .function-dock button:not(.primary) {
    min-height: 40px;
    padding-inline: 6px;
  }
}

.nav-item {
  background: transparent;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: #64748b;
  padding: 8px 4px;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
  font-family: var(--font-display);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-item:hover {
  color: #0ea855;
}

.nav-item.active {
  color: #0ea855;
  font-weight: 800;
}

.nav-item.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 3px;
  background: #0ea855;
  border-radius: 2px;
}

/* Roadmap Grid Layout */
.roadmap-layout {
  display: grid;
  grid-template-columns: 2.2fr 0.8fr;
  gap: 30px;
  padding: 30px clamp(20px, 4vw, 40px);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

/* Left panel style */
.roadmap-panel {
  background: #182c25 !important; /* Premium slate-green background */
  border-radius: 24px;
  padding: 34px 38px;
  position: relative;
  min-height: 820px;
  border: 2px solid #0a5c32 !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
  overflow: hidden;
}

/* Duolingo-style Pagoda Ornament */
.roadmap-top-deco {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
  position: relative;
  z-index: 10;
  width: 100%;
}

.pagoda-icon-wrapper {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  color: #f59e0b;
}

.pagoda-title {
  color: #f59e0b;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

/* Duolingo-style Pagoda Ornament */
.roadmap-top-deco {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
  position: relative;
  z-index: 10;
  width: 100%;
}

.pagoda-icon-wrapper {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  color: #f59e0b;
}

.pagoda-title {
  color: #f59e0b;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  font-family: var(--font-display);
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Header title styling inside panel */
.roadmap-header-title {
  margin-bottom: 36px;
  text-align: left;
  position: relative;
  z-index: 10;
}

.roadmap-header-title h2 {
  font-size: 24px;
  color: #ffffff;
  font-weight: 800;
  margin: 0 0 6px 0;
  font-family: var(--font-display);
}

.roadmap-header-title p {
  font-size: 14px;
  color: #a7f3d0;
  opacity: 0.8;
  margin: 0;
}

/* Timeline Layout */
.roadmap-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  margin-bottom: 20px;
}

/* Timeline Connector Line */
.roadmap-timeline::before {
  content: "";
  position: absolute;
  left: 48px; /* Aligned with node column center (which is 18px padding + 30px half-circle) */
  top: 36px;
  bottom: 36px;
  width: 4px;
  background: linear-gradient(to bottom, #10b981 40%, rgba(16, 185, 129, 0.2) 80%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 2px;
  z-index: 1;
}

/* Timeline Item Row */
.roadmap-timeline-item {
  display: grid;
  grid-template-columns: 60px 1fr 140px;
  gap: 24px;
  align-items: center;
  padding: 20px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.roadmap-timeline-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Timeline State Variations */
.roadmap-timeline-item.status-done {
  border-color: rgba(52, 211, 153, 0.25);
  background: rgba(52, 211, 153, 0.02);
}

.roadmap-timeline-item.status-active {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.12);
}

.roadmap-timeline-item.status-locked {
  opacity: 0.6;
}

.roadmap-timeline-item.status-locked:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Columns */
.timeline-node-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.timeline-content-col {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.timeline-action-col {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* Node Circle Button */
.roadmap-node-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  border: none;
  outline: none;
  padding: 0;
  user-select: none;
  z-index: 3;
}

.status-active .roadmap-node-circle::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed #10b981;
  pointer-events: none;
  animation: rotateGlow 12s linear infinite;
}

@keyframes rotateGlow {
  100% { transform: rotate(360deg); }
}

.node-circle-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

/* Circle status classes */
.status-done .roadmap-node-circle {
  background: #f59e0b;
  border: 4px solid #eab308;
  box-shadow: 0 4px 0 #ca8a04, 0 6px 12px rgba(0,0,0,0.15);
}

.status-done .roadmap-node-circle:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #ca8a04, 0 4px 8px rgba(0,0,0,0.15);
}

.node-star-gold {
  color: white;
  font-size: 24px;
  line-height: 1;
}

.status-active .roadmap-node-circle {
  background: #0ea855;
  border: 4px solid #10b981;
  box-shadow: 0 4px 0 #047857, 0 6px 15px rgba(16, 185, 129, 0.3);
}

.status-active .roadmap-node-circle:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #047857, 0 4px 10px rgba(16, 185, 129, 0.3);
}

.node-star-active {
  color: white;
  font-size: 24px;
  line-height: 1;
  animation: pulseStar 2s infinite ease-in-out;
}

@keyframes pulseStar {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.status-locked .roadmap-node-circle {
  background: #334155;
  border: 4px solid #475569;
  box-shadow: 0 4px 0 #1e293b;
  cursor: not-allowed;
}

.node-icon-locked {
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Timeline text details */
.timeline-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.day-badge {
  color: #fbbf24;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(251, 191, 36, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
}

.progress-info {
  font-size: 12px;
  color: #a7f3d0;
  font-weight: 600;
  opacity: 0.9;
}

.status-locked .progress-info {
  color: #94a3b8;
}

.lesson-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lesson-title {
  font-size: 18px;
  color: #ffffff;
  font-weight: 800;
  margin: 2px 0 0 0;
  font-family: var(--font-display);
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.status-locked .lesson-title {
  color: #94a3b8;
}

/* Action button styles */
.btn-timeline-action {
  width: 100%;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.2s ease;
  font-family: var(--font-display);
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-timeline-action.active {
  background: #0ea855;
  color: white;
  box-shadow: 0 4px 12px rgba(14, 168, 85, 0.3);
}

.btn-timeline-action.active:hover {
  background: #0d944c;
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(14, 168, 85, 0.4);
}

.btn-timeline-action.active:active {
  transform: translateY(1px);
}

.btn-timeline-action.done {
  background: rgba(255, 255, 255, 0.08);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.btn-timeline-action.done:hover {
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.5);
  transform: translateY(-1px);
}

.btn-timeline-action.done:active {
  transform: translateY(1px);
}

.btn-timeline-action.locked {
  background: #1e293b;
  color: #64748b;
  border: 1px solid rgba(255, 255, 255, 0.03);
  cursor: not-allowed;
  box-shadow: none;
}

/* Sidebar styles */
.roadmap-sidebar {
  display: flex;
  flex-direction: column;
}

.stats-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 8px;
  font-family: var(--font-display);
}

.stats-underline {
  width: 36px;
  height: 3px;
  background: #0ea855;
  border-radius: 2px;
  margin-bottom: 24px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.stat-item:last-child {
  margin-bottom: 0;
}

.stat-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-icon {
  background: #eff6ff;
  color: #2563eb;
}

.lesson-icon {
  background: #ecfdf5;
  color: #059669;
}

.streak-icon {
  background: #fff7ed;
  color: #ea580c;
}

.stat-copy {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.stat-copy span {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 2px;
  flex-direction: column;
}

.stats-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 8px;
  font-family: var(--font-display);
}

.stats-underline {
  width: 36px;
  height: 3px;
  background: #0ea855;
  border-radius: 2px;
  margin-bottom: 24px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.stat-item:last-child {
  margin-bottom: 0;
}

.stat-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-icon {
  background: #eff6ff;
  color: #2563eb;
}

.lesson-icon {
  background: #ecfdf5;
  color: #059669;
}

.streak-icon {
  background: #fff7ed;
  color: #ea580c;
}

.stat-copy {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.stat-copy span {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 2px;
}

.stat-copy strong {
  font-size: 15px;
  color: #0f172a;
  font-weight: 700;
}

.cta-card {
  display: flex;
}

.cta-info {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.cta-icon {
  font-size: 20px;
}

.cta-info p {
  font-size: 13px;
  color: #475569;
  margin: 0;
  line-height: 1.5;
}

.btn-sidebar-login {
  width: 100%;
  background: #0ea855;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(14, 168, 85, 0.2);
}

.btn-sidebar-login:hover {
  background: #0d944c;
  transform: translateY(-1px);
}

.btn-sidebar-register {
  width: 100%;
  background: white;
  border: 1.5px solid #0ea855;
  color: #0ea855;
  border-radius: 10px;
  padding: 11px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sidebar-register:hover {
  background: #f0faf5;
  transform: translateY(-1px);
}

.sidebar-deco-bottom {
  display: flex;
  justify-content: center;
  padding-top: 10px;
}

.sidebar-deco-bottom img {
  max-width: 80%;
  height: auto;
  filter: drop-shadow(0 12px 25px rgba(0,0,0,0.06));
}

/* Media Queries for Roadmap layout */
@media (max-width: 900px) {
  .roadmap-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .screen-home .header-nav,
  .screen-roadmap .header-nav,
  .screen-course .header-nav,
  .screen-vocab .header-nav,
  .screen-account .header-nav,
  .screen-subscriptions .header-nav {
    display: none !important; /* Hide middle nav on small headers to save space */
  }
  
  .roadmap-panel {
    min-height: 820px;
    padding: 26px 22px;
  }

  .roadmap-flow,
  .roadmap-connections {
    height: 760px;
  }

  .roadmap-node-container {
    left: 9.5%;
    width: 90.5%;
    gap: 14px;
  }

  .roadmap-node-container.node-day-1 { top: 56px; transform: translate(-42px, -50%); }
  .roadmap-node-container.node-day-2 { top: 168px; transform: translate(-42px, -50%); }
  .roadmap-node-container.node-day-3 { top: 280px; transform: translate(-42px, -50%); }
  .roadmap-node-container.node-day-4 { top: 392px; transform: translate(-42px, -50%); }
  .roadmap-node-container.node-day-5 { top: 504px; transform: translate(-42px, -50%); }
  .roadmap-node-container.node-day-6 { top: 616px; transform: translate(-42px, -50%); }
  .roadmap-node-container.node-day-7 { top: 728px; transform: translate(-42px, -50%); }

  .roadmap-node {
    width: 84px !important;
    height: 84px !important;
  }
  
  .node-info {
    max-width: calc(100% - 112px);
    padding: 10px 12px;
  }
}

/* Responsive adjustments for mobile screens (under 650px) to prevent layout overflow */
@media (max-width: 650px) {
  .roadmap-panel {
    padding: 24px 16px;
  }

  .roadmap-timeline::before {
    left: 40px; /* 16px padding + 24px (half of 48px circle) */
    top: 32px;
    bottom: 32px;
    width: 3px;
  }

  .roadmap-timeline-item {
    grid-template-columns: 48px 1fr;
    gap: 12px 16px;
    padding: 16px;
    border-radius: 16px;
  }

  .timeline-node-col {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    margin-top: 2px;
  }

  .roadmap-node-circle {
    width: 48px;
    height: 48px;
    border-width: 3px !important;
  }

  .status-active .roadmap-node-circle::after {
    inset: -5px;
    border-width: 1.5px;
  }

  .node-star-gold,
  .node-star-active {
    font-size: 18px;
  }

  .timeline-content-col {
    grid-column: 2;
    grid-row: 1;
  }

  .timeline-action-col {
    grid-column: 2;
    grid-row: 2;
    justify-content: flex-start;
    width: 100%;
  }

  .btn-timeline-action {
    width: 100%;
    max-width: 180px;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 10px;
  }

  .lesson-title {
    font-size: 16px;
  }

  .lesson-label {
    font-size: 12px;
  }

  .day-badge {
    font-size: 10px;
    padding: 1px 6px;
  }

  .progress-info {
    font-size: 11px;
  }
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */

.testimonials-section {
  padding: 0 clamp(16px, 4vw, 40px) 48px;
  margin-bottom: 40px;
}

.testimonials-panel {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 48px) clamp(32px, 4vw, 44px);
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.testimonials-decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.testimonials-decor-left {
  top: 18px;
  left: 12px;
  width: 110px;
  opacity: 0.85;
}

.testimonials-decor-right {
  top: 0;
  right: 8px;
  width: 120px;
}

.testimonials-title {
  position: relative;
  z-index: 1;
  margin: 0 auto 18px;
  max-width: 760px;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.testimonials-title-accent {
  color: #0b5e3c;
}

.testimonials-divider {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.testimonials-divider span {
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #10a352 0%, #f5a623 50%, #10a352 100%);
}

.testimonials-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 260px;
  padding: 22px 22px 24px;
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.testimonial-quote {
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 72px;
  line-height: 1;
  color: rgba(16, 163, 82, 0.18);
  font-weight: 700;
  pointer-events: none;
}

.testimonial-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 42px;
}

.testimonial-avatar {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e2e8f0;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.testimonial-meta strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: #0b5e3c;
  line-height: 1.2;
}

.testimonial-stars {
  color: #f5a623;
  font-size: 15px;
  letter-spacing: 2px;
  line-height: 1;
}

.testimonial-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: #4a5568;
  font-weight: 500;
}

.testimonials-dots {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
}

.testimonials-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d7e3de;
}

.testimonials-dots span.is-active {
  background: #10a352;
}

@media (max-width: 960px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .testimonial-card {
    min-height: 0;
  }

  .testimonials-decor-right {
    width: 90px;
    opacity: 0.7;
  }
}

@media (max-width: 600px) {
  .testimonials-panel {
    padding: 32px 18px 28px;
    border-radius: 22px;
  }

  .testimonial-quote {
    font-size: 56px;
    top: 10px;
    right: 14px;
  }

  .testimonial-avatar {
    width: 64px;
    height: 64px;
  }
}

/* Mobile Menu Toggle and Dropdown styling */
.menu-toggle-btn {
  display: none;
}

.mobile-dropdown-menu {
  display: none;
}

@media (max-width: 900px) {
  /* Hide main buttons in header on mobile */
  .app-top .top-actions .btn-login,
  .app-top .top-actions .btn-register {
    display: none !important;
  }

  .menu-toggle-btn {
    display: none !important;
  }

  .mobile-dropdown-menu {
    display: none !important;
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
  }

  .mobile-nav-item {
    background: transparent;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    text-align: left;
    padding: 10px 0;
    cursor: pointer;
    font-family: var(--font-display);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    transition: color 0.2s ease;
  }

  .mobile-nav-item .arrow {
    font-size: 18px;
    color: #cbd5e1;
    transition: transform 0.2s ease;
  }

  .mobile-nav-item:hover,
  .mobile-nav-item.active {
    color: #0ea855;
  }

  .mobile-nav-item.active {
    font-weight: 800;
  }

  .mobile-nav-item:hover .arrow {
    transform: translateX(3px);
    color: #0ea855;
  }

  .mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
  }

  .mobile-actions .btn-login {
    width: 100%;
    background: white;
    border: 1px solid #cbd5e1;
    color: #475569;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
  }

  .mobile-actions .btn-login:hover {
    background: #f8fafc;
  }

  .mobile-actions .btn-register {
    width: 100%;
    background: #0ea855;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 10px rgba(14, 168, 85, 0.15);
    box-sizing: border-box;
  }

  .mobile-actions .btn-register:hover {
    background: #0d944c;
  }

  /* Bottom tab bar handles primary navigation on mobile */
  .mobile-nav .mobile-nav-item:not(#mobileAdminBtn) {
    display: none !important;
  }

  body.has-mobile-bottom-nav {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  body.has-mobile-bottom-nav .redesigned-footer {
    margin-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
}

/* Mobile bottom navigation tab bar */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 900px) {
  .mobile-bottom-nav:not(.hidden) {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    align-items: stretch;
    justify-content: space-around;
    gap: 1px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
    background: #ffffff;
    border-top: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -6px 28px rgba(15, 23, 42, 0.08);
    box-sizing: border-box;
  }

  .mobile-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    max-width: 82px;
    padding: 7px 4px;
    border: none;
    background: transparent;
    color: #334155;
    font-family: var(--font-body, var(--font-display));
    font-size: 10px;
    font-weight: 600;
    line-height: 1.15;
    cursor: pointer;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-bottom-nav-item:active {
    transform: scale(0.97);
  }

  .mobile-bottom-nav-item.active {
    background: transparent;
    color: #10a352;
    font-weight: 700;
  }

  .mobile-bottom-nav-item.active .mobile-bottom-nav-icon {
    color: #10a352;
  }

  .mobile-bottom-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }

  .mobile-bottom-nav-icon svg {
    display: block;
  }

  .mobile-bottom-nav-label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
  }
}

/* ==========================================================================
   Vocab Screen Layout (Bộ từ)
   ========================================================================== */
.vocab-layout {
  /* display: flex;z */
  /* flex-direction: column; */
  gap: 28px;
  /* padding: 24px 0 0 0; */
  width: 100%;
  max-width: none;
  margin: 0;
  position: relative;
}

.vocab-banner-card {
  position: relative;
  border-radius: 24px;
  padding: 40px;
  background: linear-gradient(100deg, #f0f7fa 0%, #e6f3f7 100%);
  border: 1px solid rgba(14, 168, 85, 0.1);
  box-shadow: 0 10px 30px rgba(14, 168, 85, 0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  gap: 20px;
  max-width: 1200px;
  width: calc(100% - 2 * clamp(20px, 4vw, 40px));
  margin: 0 auto;
}

.vocab-banner-decor-left {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 180px;
  pointer-events: none;
  z-index: 1;
}
.vocab-banner-decor-left svg {
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

.vocab-banner-decor-right {
  position: absolute;
  right: 180px;
  bottom: -10px;
  width: 150px;
  height: 150px;
  pointer-events: none;
  z-index: 1;
}

.vocab-banner-decor-right svg {
  width: 100%;
  height: 100%;
}

.vocab-banner-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  z-index: 2;
  position: relative;
}

.vocab-banner-tag {
  background: rgba(14, 168, 85, 0.1);
  color: #0ea855;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 30px;
  text-transform: uppercase;
  font-family: var(--font-display);
}

.vocab-banner-left h1 {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 850;
  color: #1e293b;
  margin: 0;
  line-height: 1.25;
  font-family: var(--font-display);
}

.vocab-banner-left p {
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
  max-width: 580px;
  font-weight: 500;
}

.vocab-banner-stats {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.vocab-stat-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  padding: 12px 20px;
  border-radius: 16px;
  border: 1px solid rgba(14, 168, 85, 0.05);
  box-shadow: 0 4px 12px rgba(14, 168, 85, 0.02);
}

.vocab-stat-pill-text {
  display: flex;
  flex-direction: column;
}
.vocab-stat-pill-text span {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}
.vocab-stat-pill-text strong {
  font-size: 24px;
  color: #1e293b;
  font-weight: 900;
  line-height: 1.1;
  margin-top: 1px;
  font-family: var(--font-display);
}

.vocab-filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  width: calc(100% - 2 * clamp(20px, 4vw, 40px));
  margin: 0 auto;
  gap: 20px;
  flex-wrap: wrap;
}

.vocab-search-wrapper {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 420px;
}
.vocab-search-wrapper .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 16px;
  pointer-events: none;
}
.vocab-search-wrapper input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #1e293b;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.vocab-search-wrapper input:focus {
  border-color: #0ea855;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(14, 168, 85, 0.08);
  outline: none;
}

.vocab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  width: calc(100% - 2 * clamp(20px, 4vw, 40px));
  margin: 0 auto 40px;
  padding: 20px;
}

.vocab-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  background: #f8fafc;
  border: 2px dashed #e2e8f0;
  border-radius: 20px;
  color: #64748b;
  font-size: 16px;
  font-weight: 500;
}

.vocab-item-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.vocab-item-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 168, 85, 0.2);
  box-shadow: 0 12px 24px rgba(14, 168, 85, 0.05);
}
.vocab-item-card:active {
  transform: translateY(-2px) scale(0.98);
}

.vocab-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.vocab-stage-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  text-transform: uppercase;
}
.vocab-stage-badge.stage-word {
  background: #e0f2fe;
  color: #0369a1;
}
.vocab-stage-badge.stage-phrase {
  background: #fef3c7;
  color: #b45309;
}
.vocab-stage-badge.stage-sentence {
  background: #dcfce7;
  color: #15803d;
}
.vocab-stage-badge.stage-mixed {
  background: #f3e8ff;
  color: #6b21a8;
}

.vocab-delete-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  width: 24px;
  height: 24px;
}
.vocab-delete-btn:hover {
  background: #fee2e2;
  color: #ef4444;
}

.vocab-hanzi {
  font-size: 28px;
  font-weight: 800;
  color: #1e293b;
  margin: 8px 0 2px;
  font-family: var(--font-zh);
}

.vocab-pinyin {
  font-size: 15px;
  font-weight: 600;
  color: #0ea855;
  margin: 0 0 8px;
}

.vocab-translation {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  font-weight: 500;
}

.vocab-item-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.vocab-speak-btn {
  width: 100%;
  background: #f1f5f9;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  color: #475569;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}
.vocab-speak-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* Saved vocabulary redesign */
.saved-heading-star {
  color: #f5b700;
}

.screen-complete {
  background: #f5f7fb;
}

.screen-complete #completeScreen,
.complete-screen {
  display: grid;
  min-height: 76vh;
  place-items: center;
  padding: 28px 12px;
}

.screen-complete .complete-card {
  width: min(560px, calc(100% - 12px));
  border: 0;
  border-bottom-width: 0;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  padding: 46px 42px 44px;
  text-align: center;
}

.screen-complete .trophy {
  position: relative;
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: #15bd84;
  color: #15bd84;
  box-shadow: 0 14px 22px rgba(21, 189, 132, 0.28);
  font-size: 0;
}

.screen-complete .trophy-check {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: #15bd84;
  font-size: 25px;
  font-weight: 950;
  line-height: 1;
}

.screen-complete .trophy-sparkles {
  position: absolute;
  right: -10px;
  top: -4px;
  color: #ffc533;
  font-size: 18px;
  letter-spacing: -3px;
}

.screen-complete .complete-card h1 {
  margin: 0 0 8px;
  color: #111827;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.18;
}

.screen-complete .complete-card p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
}

.screen-complete .complete-stats {
  display: grid;
  grid-template-columns: repeat(2, 112px);
  width: fit-content;
  justify-content: center;
  gap: 12px;
  margin: 34px auto 32px;
}

.screen-complete .complete-stat-card {
  min-height: 84px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #f0f4fc;
  color: #4b5563;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 10px 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.screen-complete .complete-stat-card--time {
  border-color: #f3d58c;
  background: #fff9e8;
}

.screen-complete .complete-stat-card strong {
  display: block;
  color: #08765c;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 950;
  line-height: 0.98;
}

.screen-complete .complete-stat-card--time strong {
  max-width: 100%;
  font-size: clamp(22px, 3.2vw, 28px);
  line-height: 1;
  white-space: nowrap;
}

.screen-complete .complete-stat-card:not(.complete-stat-card--time) strong {
  color: #374151;
}

.screen-complete .complete-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.screen-complete .complete-actions button {
  min-width: 136px;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: none;
}

.screen-complete .complete-actions .secondary {
  border: 1px solid #047857;
  background: #ffffff;
  color: #047857;
}

.screen-complete .complete-actions .primary {
  border: 1px solid #047857;
  background: #047857;
  color: #ffffff;
  box-shadow: 0 8px 14px rgba(4, 120, 87, 0.22);
}

.screen-complete .complete-actions .primary span {
  margin-left: 8px;
  font-size: 17px;
  line-height: 1;
}

@media (max-width: 520px) {
  .screen-complete .complete-card {
    padding: 36px 22px 34px;
  }

  .screen-complete .complete-stats {
    gap: 8px;
    grid-template-columns: repeat(2, minmax(96px, 112px));
  }

  .screen-complete .complete-stat-card strong {
    font-size: 28px;
  }

  .screen-complete .complete-stat-card--time strong {
    font-size: 24px;
  }

  .screen-complete .complete-actions {
    flex-wrap: wrap;
  }
}

.screen-vocab {
  background: #fbfdff;
}

.vocab-layout {
  /* width: min(100% - 16px, 1280px); */
  /* max-width: 1280px; */
  margin: 0 auto;
  /* padding: 22px 0 70px; */
  gap: 0;
}

.vocab-page-heading {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 74px;
  margin: 0 auto 0;
  padding: 10px 210px 10px 118px;
  overflow: hidden;
  /* border-radius: 16px 16px 0 0; */
  background:
    radial-gradient(circle at 6% 86%, rgba(31, 204, 178, 0.25) 0 14%, transparent 15%),
    radial-gradient(circle at 11% 74%, rgba(31, 204, 178, 0.18) 0 18%, transparent 19%),
    linear-gradient(100deg, #ecfbff 0%, #ffffff 54%, #f5fbff 100%);
}

.vocab-page-heading h1 {
  margin: 0 0 3px;
  color: #07133d;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: 0;
}

.vocab-page-heading p {
  margin: 0;
  color: #69748a;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 650;
}

.vocab-title-book {
  position: absolute;
  left: 24px;
  top: 10px;
  width: 74px;
  height: 58px;
  transform: rotate(-9deg);
}

.vocab-title-book-back,
.vocab-title-book-cover {
  position: absolute;
  border-radius: 16px;
}

.vocab-title-book-back {
  inset: 4px 3px 0 12px;
  background: #d6f4ee;
  transform: rotate(7deg);
}

.vocab-title-book-cover {
  inset: 0 5px 4px 0;
  background: linear-gradient(145deg, #21c7ae 0%, #079b83 100%);
  border: 3px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 10px 18px rgba(0, 156, 132, 0.18);
  color: #ffffff;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
}

.vocab-title-book-cover b {
  min-height: 14px;
  border-radius: 4px;
  background: #ffffff;
  color: #079b83;
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 9px;
  line-height: 1;
  transform: rotate(-4deg);
}

.vocab-title-book-cover em {
  position: absolute;
  right: 9px;
  top: 14px;
  font-style: normal;
  font-size: 10px;
}

.vocab-title-book-ribbon {
  position: absolute;
  left: 10px;
  top: -4px;
  width: 15px;
  height: 35px;
  border-radius: 0 0 5px 5px;
  background: linear-gradient(180deg, #ffd85a 0%, #ffbd2c 100%);
}

.vocab-title-book-tag {
  position: absolute;
  left: -4px;
  bottom: 6px;
  width: 21px;
  height: 30px;
  border-radius: 5px 5px 3px 3px;
  background: linear-gradient(180deg, #ff7b79 0%, #ff5d69 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  box-shadow: 0 6px 12px rgba(255, 93, 105, 0.18);
  transform: rotate(-13deg);
}

.vocab-title-star {
  position: absolute;
  left: 420px;
  top: 35px;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #ffc72c;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 8px 16px rgba(255, 199, 44, 0.2);
}

.vocab-heading-copy {
  position: relative;
  z-index: 2;
}

.vocab-hero-decor {
  position: absolute;
  right: 220px;
  top: 17px;
  display: flex;
  gap: 10px;
  transform: rotate(-2deg);
  opacity: 0.98;
}

.vocab-hero-decor span {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0ea88b;
  background: #e9fbf7;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.vocab-hero-decor span:nth-child(1) {
  color: #ef4444;
  background: #fff1f2;
}

.vocab-hero-decor span:nth-child(2) {
  color: #f59e0b;
  background: #fff7e6;
}

.vocab-hero-decor span:nth-child(4) {
  color: #7c3aed;
  background: #f3edff;
}

.vocab-pinyin-pill {
  position: absolute;
  right: 228px;
  top: 45px;
  min-height: 22px;
  border-radius: 6px;
  background: #e8fbf7;
  color: #35b79d;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  font-size: 10px;
  font-weight: 800;
}

.vocab-pinyin-pill i {
  color: #16a991;
  font-style: normal;
}

.vocab-pinyin-pill svg {
  color: #7c91ad;
}

.vocab-control-bar {
  min-height: 58px;
  /* border-radius: 19px; */
  border: 1.5px solid #c9e0ff;
  background:
    radial-gradient(circle at 74% 25%, rgba(0, 194, 168, 0.12) 0 9%, transparent 10%),
    linear-gradient(90deg, #f4fbff 0%, #f7fcff 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 10px 20px;
  margin-bottom: 22px;
  box-shadow: 0 8px 20px rgba(45, 114, 210, 0.06);
}

.vocab-visible-count {
  min-height: 34px;
  width: min(100%, 250px);
  border-radius: 10px;
  border: 1px solid #d7e5f8;
  background: rgba(255, 255, 255, 0.92);
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 750;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.vocab-visible-count strong {
  color: #00a889;
  font-weight: 900;
}

.vocab-visible-count-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.vocab-count-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(145deg, #32d5b0 0%, #079c84 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 7px 12px rgba(0, 168, 137, 0.18);
}

.vocab-type-tabs {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  gap: 0;
  padding: 2px;
  border-radius: 8px;
  border: 1px solid #d7e3f3;
  background: rgba(255, 255, 255, 0.66);
  overflow: hidden;
}

.vocab-type-tabs button {
  min-width: 82px;
  min-height: 26px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #4b5563;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.vocab-type-tabs button + button {
  border-left: 1px solid rgba(215, 227, 243, 0.75);
}

.vocab-type-tabs button.active {
  background: linear-gradient(145deg, #10c7a1 0%, #009f84 100%);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 168, 137, 0.18);
}

.vocab-review-now-btn {
  justify-self: end;
  min-width: 296px;
  min-height: 74px;
  border: 0;
  border-radius: 17px;
  background: linear-gradient(145deg, #16d2ae 0%, #00b98e 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 34px;
  font-size: 26px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 26px rgba(0, 185, 142, 0.24);
  position: relative;
}

.vocab-review-now-btn--hero {
  position: absolute;
  right: 18px;
  top: 20px;
  min-width: 104px;
  min-height: 30px;
  border-radius: 8px;
  gap: 6px;
  padding: 0 12px;
  font-size: 11px;
  z-index: 3;
}

.vocab-review-now-btn--hero svg {
  width: 18px;
  height: 18px;
}

.vocab-review-now-btn svg {
  width: 42px;
  height: 42px;
}

.vocab-review-now-btn:hover {
  background: linear-gradient(145deg, #12c5a2 0%, #009f84 100%);
}

.vocab-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0px 20px 20px 20px;
}

.vocab-empty-state {
  grid-column: 1 / -1;
  min-height: 180px;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
  color: #64748b;
  font-weight: 700;
}

.vocab-item-card {
  min-height: 218px;
  border: 1px solid #d6e2f5;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(30, 64, 175, 0.035);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  cursor: pointer;
}

.vocab-item-card:hover {
  transform: translateY(-2px);
  border-color: #b7cbed;
  box-shadow: 0 16px 32px rgba(30, 64, 175, 0.08);
}

.vocab-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.vocab-stage-badge,
.vocab-stage-badge.stage-word,
.vocab-stage-badge.stage-phrase,
.vocab-stage-badge.stage-sentence,
.vocab-stage-badge.stage-mixed {
  min-height: 24px;
  border-radius: 8px;
  background: #dff8ef;
  color: #047857;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
  text-transform: none;
}

.vocab-stage-badge.stage-phrase,
.vocab-stage-badge.stage-word,
.vocab-stage-badge.stage-mixed {
  background: #dff1ff;
  color: #0b78b6;
}

.vocab-stage-badge.stage-sentence {
  background: #dff8ef;
  color: #047857;
}

.vocab-delete-btn {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  padding: 0;
  border-radius: 0;
  font-size: 25px;
  line-height: 1;
  font-weight: 300;
}

.vocab-delete-btn:hover {
  color: #dc2626;
  background: transparent;
}

.vocab-hanzi {
  margin: 0 0 6px;
  color: #111827;
  font-family: "Noto Sans SC", sans-serif;
  font-size: clamp(28px, 2.35vw, 36px);
  line-height: 1.15;
  font-weight: 900;
  text-align: left;
}

.vocab-pinyin {
  margin: 0 0 8px;
  color: #059669;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 900;
  text-align: left;
}

.vocab-card-divider {
  display: none;
}

.vocab-translation {
  margin: 0 0 22px;
  color: #64748b;
  font-size: 15px;
  line-height: 1.45;
  min-height: 42px;
  font-weight: 650;
}

.vocab-item-actions {
  display: none;
}

.vocab-speak-btn {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: #f0f4f9;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
}

.vocab-speak-btn:hover {
  background: #e8eef6;
  color: #0f172a;
  transform: none;
}

.vocab-item-actions span {
  color: #4b5563;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.vocab-load-more-btn {
  min-width: 146px;
  min-height: 52px;
  margin: 112px auto 0;
  border: 2px solid #047857;
  border-radius: 999px;
  background: #ffffff;
  color: #047857;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.vocab-load-more-btn:hover {
  background: #ecfdf5;
}

@media (max-width: 1200px) {
  .vocab-page-heading {
    padding-right: 170px;
  }

  .vocab-hero-decor {
    right: 176px;
    gap: 8px;
  }

  .vocab-pinyin-pill {
    right: 178px;
  }

  .vocab-control-bar {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .vocab-visible-count,
  .vocab-type-tabs {
    justify-self: stretch;
    width: 100%;
  }

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

@media (max-width: 820px) {
  .vocab-layout {
    /* width: min(100% - 28px, 1136px); */
    /* padding-top: 14px; */
  }

  .vocab-page-heading {
    min-height: 96px;
    padding: 52px 16px 14px;
    margin-bottom: 0;
    text-align: center;
    justify-content: center;
    flex-direction: column;
  }

  .vocab-title-book {
    left: 50%;
    top: 8px;
    width: 62px;
    height: 48px;
    transform: translateX(-50%) rotate(-8deg);
  }

  .vocab-title-star,
  .vocab-hero-decor,
  .vocab-pinyin-pill {
    display: none;
  }

  .vocab-page-heading h1 {
    font-size: 22px;
  }

  .vocab-page-heading p {
    font-size: 12px;
  }

  .vocab-control-bar {
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px;
  }

  .vocab-type-tabs,
  .vocab-control-bar .vocab-review-now-btn {
    justify-self: stretch;
  }

  .vocab-type-tabs button {
    min-width: 0;
    flex: 1;
    font-size: 12px;
  }

  .vocab-control-bar .vocab-review-now-btn {
    min-width: 0;
    min-height: 34px;
    font-size: 12px;
  }

  .vocab-review-now-btn--hero {
    position: static;
    width: min(100%, 132px);
    min-width: 0;
    min-height: 30px;
    margin-top: 10px;
    font-size: 11px;
  }

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

@media (max-width: 560px) {
  .vocab-page-heading {
    padding-inline: 12px;
  }

  .vocab-title-book {
    width: 58px;
    height: 46px;
  }

  .vocab-visible-count {
    width: 100%;
    min-height: 34px;
    font-size: 12px;
    padding: 0 12px;
  }

  .vocab-count-icon {
    width: 22px;
    height: 22px;
  }

  .vocab-grid {
    grid-template-columns: 1fr;
  }

  .vocab-item-card {
    min-height: 220px;
  }
}

/* Toast Notification Styles */
#toastContainer {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-message {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(14, 168, 85, 0.25);
  box-shadow: 
    0 10px 30px rgba(14, 168, 85, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.03);
  padding: 12px 24px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  justify-content: center;
  opacity: 0;
  transform: translateY(-20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: auto;
}

.toast-message.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast-message.hide {
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s ease;
}

.toast-message .toast-icon {
  color: #ffb833;
  font-size: 13px;
  animation: toast-star-spin 0.5s ease-out;
}

.toast-message .toast-text {
  color: #1e293b;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
}

@keyframes toast-star-spin {
  0% { transform: scale(0.5) rotate(-180deg); }
  100% { transform: scale(1) rotate(0); }
}

/* Redesigned admin console */
.screen-admin .app-top,
.screen-admin .global-footer { display: none !important; }
.admin-screen { min-height: 100vh; background: #f4f7ff; }
.admin-login-screen { min-height: calc(100vh - 76px); display: flex; align-items: center; justify-content: center; padding: 32px 18px; background: linear-gradient(135deg, #eef6ff 0%, #f8fbff 100%); }
.admin-login-card { width: min(100%, 430px); border-radius: 22px; background: #fff; padding: 36px 32px; box-shadow: 0 24px 60px rgba(15, 23, 42, .12); }
.admin-login-logo { width: 54px; height: 54px; border-radius: 14px; background: #12b981; color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-family: "Noto Sans SC", sans-serif; font-size: 26px; font-weight: 900; }
.admin-login-card h1 { margin: 0 0 8px; color: #0f172a; font-family: var(--font-display); font-size: 28px; font-weight: 950; }
.admin-login-card p { margin: 0 0 22px; color: #64748b; font-size: 14px; line-height: 1.55; font-weight: 600; }
.admin-login-card label { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; color: #334155; font-size: 13px; font-weight: 800; }
.admin-login-card input { min-height: 48px; border: 1px solid #dbe4f0; border-radius: 12px; padding: 0 15px; color: #0f172a; font-size: 14px; outline: none; }
.admin-login-card input:focus { border-color: #12b981; box-shadow: 0 0 0 3px rgba(18, 185, 129, .12); }
.admin-login-message { min-height: 18px; margin: 2px 0 14px !important; color: #64748b !important; font-size: 13px !important; font-weight: 800 !important; }
.admin-login-message.error { color: #dc2626 !important; }
.admin-login-card button { width: 100%; min-height: 50px; border: 0; border-radius: 12px; background: #047857; color: #fff; font-size: 15px; font-weight: 900; cursor: pointer; }
.admin-console { min-height: 100vh; display: grid; grid-template-columns: 246px minmax(0, 1fr); background: #f4f7ff; color: #0f172a; }
.admin-sidebar { background: #eaf1ff; border-right: 1px solid #dce6f7; padding: 28px 14px 24px; display: flex; flex-direction: column; gap: 28px; }
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 0 10px; }
.admin-brand span { width: 38px; height: 38px; border-radius: 9px; background: #17bd88; color: #fff; display: flex; align-items: center; justify-content: center; font-family: "Noto Sans SC", sans-serif; font-size: 19px; font-weight: 900; }
.admin-brand strong { display: block; color: #047857; font-size: 20px; line-height: 1; font-weight: 900; }
.admin-brand small { color: #0f172a; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 9px; }
.admin-sidebar nav button { min-height: 48px; border: 0; border-radius: 10px; background: transparent; color: #334155; display: flex; align-items: center; gap: 12px; padding: 0 14px; font-size: 14px; font-weight: 700; text-align: left; cursor: pointer; }
.admin-sidebar nav button.active { background: #ccefe7; color: #047857; box-shadow: inset -4px 0 0 #047857; }
.admin-new-course { margin-top: auto; min-height: 48px; border: 0; border-radius: 10px; background: #047857; color: #fff; font-size: 14px; font-weight: 900; cursor: pointer; }
.admin-main { min-width: 0; padding: 0 30px 30px; }
.admin-topbar { height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.admin-search { width: min(100%, 450px); min-height: 42px; border-radius: 999px; background: #e9f0fb; color: #94a3b8; display: flex; align-items: center; gap: 10px; padding: 0 18px; }
.admin-search input, .admin-filter-search input { width: 100%; border: 0; outline: none; background: transparent; color: #0f172a; font-size: 10.5px; }
.admin-top-user { display: flex; align-items: center; gap: 18px; color: #64748b; }
.admin-top-user i { width: 1px; height: 30px; background: #d1d9e8; }
.admin-top-user div { text-align: right; }
.admin-top-user strong { display: block; color: #334155; font-size: 13px; font-weight: 900; }
.admin-top-user small { color: #64748b; font-size: 11px; font-weight: 700; }
.admin-top-user img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.admin-title-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 28px 0 26px; }
.admin-title-row h1 { margin: 0 0 8px; color: #020617; font-family: var(--font-display); font-size: 30px; line-height: 1; font-weight: 950; }
.admin-title-row p { margin: 0; color: #64748b; font-size: 14px; font-weight: 650; }
.admin-title-row p strong { color: #047857; }
.admin-title-row p span { display: inline-flex; margin-left: 12px; min-height: 20px; align-items: center; padding: 0 10px; border-radius: 999px; background: #dff8ef; color: #047857; font-size: 11px; font-weight: 900; }
.admin-create-account-card { min-width: 180px; min-height: 56px; border: 1px solid #c8f7e5; border-radius: 16px; background: #ffffff; color: #047857; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; text-align: center; cursor: pointer; box-shadow: 0 14px 30px rgba(4, 120, 87, .08); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.admin-create-account-card:hover, .admin-create-account-card:focus-visible { transform: translateY(-2px); border-color: #0ea855; box-shadow: 0 18px 38px rgba(4, 120, 87, .14); outline: none; }
.admin-create-account-card strong { display: block; color: #0f172a; font-size: 15px; font-weight: 950; line-height: 1.1; }
.admin-add-user { min-height: 50px; border: 0; border-radius: 8px; background: #047857; color: #fff; padding: 0 24px; font-size: 14px; font-weight: 900; cursor: pointer; box-shadow: 0 10px 22px rgba(4, 120, 87, .16); }
.admin-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 22px; align-items: stretch; margin-bottom: 26px; }
.admin-filter-panel { min-height: 65px; border-radius: 14px; background: #fff; display: grid; grid-template-columns: minmax(220px, 1fr) 118px 118px 92px; gap: 10px; align-items: center; padding: 14px 18px; box-shadow: 0 10px 28px rgba(15, 23, 42, .04); }
.admin-filter-refresh { height: 38px; border: 0; border-radius: 10px; background: #e8f7ef; color: #0f8f4d; font-weight: 800; cursor: pointer; }
.admin-filter-refresh:hover, .admin-filter-refresh:focus-visible { background: #d5f1e2; outline: none; }
.admin-filter-search, .admin-filter-select { min-height: 35px; border: 1px solid #ccd8e6; border-radius: 9px; background: #fff; color: #334155; display: flex; align-items: center; gap: 6px; padding: 0 10px; font-size: 10.5px; font-weight: 700; }
.admin-filter-select { width: 100%; cursor: pointer; appearance: auto; }
.admin-filter-search svg { flex-shrink: 0; }
.admin-vip-card { border-radius: 13px; background: #047857; color: #fff; padding: 24px 22px; box-shadow: 0 12px 24px rgba(4, 120, 87, .18); }
.admin-vip-card span { display: block; font-size: 11px; text-transform: uppercase; font-weight: 900; }
.admin-vip-card strong { display: block; margin: 8px 0 6px; font-size: 34px; line-height: 1; font-weight: 950; }
.admin-vip-card small { color: #c7f9e7; font-size: 12px; font-weight: 800; }
.admin-users-panel { border-radius: 14px; background: #fff; border: 1px solid #dbe4f0; overflow: hidden; box-shadow: 0 14px 34px rgba(15, 23, 42, .04); }
.admin-table-wrap { overflow-x: auto; }
.admin-users-table { width: 100%; border-collapse: collapse; min-width: 820px; }
.admin-users-table th { height: 48px; background: #eef4ff !important; color: #334155 !important; font-size: 11px !important; font-weight: 950 !important; text-transform: uppercase; letter-spacing: .05em; text-align: left; padding: 0 22px !important; }
.admin-users-table td { height: 86px; border-top: 1px solid #eef2f7; color: #334155; font-size: 14px; font-weight: 650; padding: 0 22px !important; }
.admin-users-table td.admin-empty { height: 180px; color: #64748b; text-align: center; font-weight: 800; }
.admin-user-cell { display: flex; align-items: center; gap: 14px; }
.admin-user-cell img, .admin-user-cell > span { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #e8eef8; color: #64748b; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; }
.admin-user-cell strong { display: block; color: #0f172a; font-size: 14px; font-weight: 950; }
.admin-user-cell small, .admin-duration small { display: block; color: #94a3b8; font-size: 10px; margin-top: 3px; font-weight: 800; }
.admin-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 50px; min-height: 23px; border-radius: 999px; background: #edf2f7; color: #64748b; font-size: 10px; font-weight: 950; }
.admin-pill.vip { background: #fff1bf; color: #9f7200; }
.admin-pill.pro, .admin-pill.plan { background: #c8f7e5; color: #047857; }
.admin-pill.level { background: #fff1bf; color: #9f7200; }
.admin-pill.premium { background: #c8f7e5; color: #047857; }
.admin-pill.free { background: #edf2f7; color: #64748b; }
.admin-pill.employee { background: #dbeafe; color: #1d4ed8; }
.admin-duration strong { color: #0f172a; font-weight: 750; }
.admin-duration small { display: none; }
.admin-row-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.admin-vip-expiry-input { width: 132px; min-height: 32px; border: 1px solid #dbe4f0; border-radius: 8px; padding: 0 8px; color: #334155; font-size: 12px; font-weight: 750; }
.admin-set-vip-expiry, .admin-cancel-vip-user { min-height: 32px; border: 0; border-radius: 8px; padding: 0 10px; font-size: 11px; font-weight: 900; cursor: pointer; }
.admin-set-vip-expiry { background: #e0f2fe; color: #0369a1; }
.admin-cancel-vip-user { background: #fef3c7; color: #92400e; }
.admin-set-vip-expiry:hover, .admin-set-vip-expiry:focus-visible { background: #bae6fd; outline: none; }
.admin-cancel-vip-user:hover, .admin-cancel-vip-user:focus-visible { background: #fde68a; outline: none; }
.admin-edit-user, .admin-more-user { width: 32px; height: 32px; border: 0; background: transparent; color: #047857; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 22px; }
.admin-more-user { color: #0f172a; }
.admin-row-actions .admin-delete-user { width: 32px; height: 32px; min-height: 32px; border: 0; border-radius: 8px; background: #fee2e2; color: #b91c1c; padding: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.admin-row-actions .admin-delete-user:hover, .admin-row-actions .admin-delete-user:focus-visible { background: #fecaca; color: #991b1b; outline: none; }
.admin-delete-user-modal { max-width: 430px; text-align: center; }
.admin-delete-user-logo { background: #fee2e2; color: #b91c1c; }
.admin-delete-user-target { margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; background: #f8fafc; color: #0f172a; font-weight: 850; line-height: 1.45; }
.admin-delete-user-target small { color: #64748b; font-weight: 700; }
.admin-delete-user-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.admin-delete-user-cancel, .admin-delete-user-confirm { min-height: 44px; border: 0; border-radius: 10px; font-weight: 900; cursor: pointer; }
.admin-delete-user-cancel { background: #e2e8f0; color: #334155; }
.admin-delete-user-confirm { background: #dc2626; color: #fff; }
.admin-delete-user-cancel:disabled, .admin-delete-user-confirm:disabled { opacity: 0.7; cursor: wait; }
.admin-table-footer { min-height: 66px; border-top: 1px solid #eef2f7; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 22px; color: #475569; font-size: 12px; font-weight: 750; }
.admin-table-footer div { display: flex; align-items: center; gap: 8px; }
.admin-table-footer button { min-width: 34px; height: 34px; border: 1px solid #dbe4f0; border-radius: 7px; background: #fff; color: #334155; font-weight: 900; }
.admin-table-footer button.active { background: #047857; color: #fff; border-color: #047857; }
.admin-subscriptions-panel { display: none; }
.admin-main--subscriptions .admin-title-row,
.admin-main--subscriptions .admin-dashboard-grid,
.admin-main--subscriptions .admin-users-panel { display: none; }
.admin-main--subscriptions .admin-subscriptions-panel { display: block; margin-top: 28px; }
.admin-main--content .admin-title-row,
.admin-main--content .admin-dashboard-grid,
.admin-main--content .admin-users-panel,
.admin-main--content .admin-subscriptions-panel { display: none; }
.admin-content-panel { margin-top: 28px; }
.admin-content-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.admin-content-header h2 { margin: 0 0 8px; font-size: 28px; color: #0f172a; }
.admin-content-header p { margin: 0; color: #64748b; font-size: 14px; line-height: 1.5; max-width: 760px; }
.admin-content-status { margin: 0 0 14px; color: #475569; font-size: 13px; font-weight: 650; }
.admin-content-module-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.admin-content-module-btn { border: 1px solid #dbe4f0; background: #fff; color: #334155; border-radius: 999px; padding: 8px 16px; font-weight: 800; font-size: 12px; cursor: pointer; }
.admin-content-module-btn.active { background: #047857; border-color: #047857; color: #fff; }
.admin-content-subtitle { margin: 0 0 14px; color: #64748b; font-size: 13px; line-height: 1.5; }
.admin-content-level-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.admin-content-level-btn { border: 1px solid #dbe4f0; background: #fff; color: #334155; border-radius: 999px; padding: 8px 14px; font-weight: 800; font-size: 12px; cursor: pointer; }
.admin-content-level-btn.active { background: #047857; border-color: #047857; color: #fff; }
.admin-content-table code { font-size: 12px; color: #0f766e; }
.admin-content-lock-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #334155; cursor: pointer; }
.admin-content-lock-toggle input { width: 16px; height: 16px; accent-color: #047857; }
.admin-content-limit-input { width: 96px; min-height: 36px; padding: 0 10px; border: 1px solid #dbe4f0; border-radius: 10px; background: #fff; color: #0f172a; font-weight: 700; }
.admin-content-actions { display: flex; gap: 10px; margin-top: 16px; }
.admin-content-actions button { border: 1px solid #dbe4f0; background: #fff; color: #334155; border-radius: 10px; padding: 10px 14px; font-weight: 750; cursor: pointer; }
.admin-content-hsk-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.admin-content-hsk-tab { border: 1px solid #dbe4f0; background: #fff; color: #334155; border-radius: 999px; padding: 8px 16px; font-weight: 800; font-size: 12px; cursor: pointer; }
.admin-content-hsk-tab.active { background: #047857; border-color: #047857; color: #fff; }
.admin-hsk-cover-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.admin-hsk-cover-card { border: 1px solid #dbe4f0; border-radius: 16px; background: #fff; padding: 14px; display: grid; gap: 8px; }
.admin-hsk-cover-preview { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: #f8fafc; border: 1px solid #e2e8f0; }
.admin-hsk-cover-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-hsk-cover-meta { display: grid; gap: 2px; }
.admin-hsk-cover-meta strong { color: #0f172a; font-size: 14px; }
.admin-hsk-cover-meta span { color: #64748b; font-size: 12px; }
.admin-hsk-cover-label { font-size: 12px; font-weight: 700; color: #475569; }
.admin-hsk-cover-url { width: 100%; min-height: 38px; padding: 0 10px; border: 1px solid #dbe4f0; border-radius: 10px; font-size: 12px; color: #0f172a; }
.admin-hsk-cover-file-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; border: 1px dashed #94a3b8; border-radius: 10px; color: #334155; font-size: 12px; font-weight: 700; cursor: pointer; }
.admin-hsk-cover-reset { border: none; background: transparent; color: #64748b; font-size: 12px; font-weight: 700; cursor: pointer; text-align: left; padding: 0; }
.admin-hsk-cover-reset:hover { color: #047857; }
@media (max-width: 1100px) {
  .admin-hsk-cover-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .admin-hsk-cover-grid { grid-template-columns: 1fr; }
}
.admin-subscriptions-frame { display: block; width: 100%; min-height: calc(100vh - 104px); border: 0; border-radius: 16px; background: #f6f8fe; box-shadow: 0 14px 34px rgba(15, 23, 42, .04); }
.hsk-lesson-card.locked,
.hsk-lesson-screen .hsk-lesson-card.locked { border-color: #cbd5e1; background: linear-gradient(90deg, #f8fafc 0%, #ffffff 55%); opacity: .92; }
.hsk-lesson-card.locked:hover,
.hsk-lesson-screen .hsk-lesson-card.locked:hover { border-color: #94a3b8; box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06); }
.hsk-lesson-card.locked .hsk-lesson-number,
.hsk-lesson-number--locked {
  background: transparent;
  box-shadow: none;
  padding: 0;
  overflow: hidden;
}

.content-lock-icon {
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.content-lock-icon--number,
.content-lock-icon--theme {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.content-lock-icon--inline {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: -2px;
}

.access-rule-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.access-rule-badge--partial {
  border: 1px solid rgba(16, 185, 129, 0.24);
  background: #ecfdf5;
  color: #047857;
}

.access-rule-badge--locked {
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #f1f5f9;
  color: #475569;
}

.hsk-lesson-card.access-rule-partial,
.hsk-lesson-screen .hsk-lesson-card.access-rule-partial {
  border-color: rgba(16, 185, 129, 0.32);
}

.daily-theme-card.access-rule-partial {
  border-color: rgba(16, 185, 129, 0.34);
}

.hsk-study-part-card.access-rule-locked {
  border-color: #cbd5e1;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
  opacity: 0.9;
}

.hsk-study-part-card.access-rule-locked .hsk-study-part-copy strong,
.hsk-study-part-card.access-rule-locked .hsk-study-part-copy small {
  color: #64748b;
}

.hsk-study-part-card.access-rule-locked .hsk-study-part-arrow {
  background: #cbd5e1;
  color: #475569;
  box-shadow: none;
}

.daily-theme-card.locked .daily-theme-enter-btn {
  cursor: pointer;
}

@media (max-width: 980px) {
  .admin-console { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-main { padding: 0 16px 24px; }
  .admin-dashboard-grid, .admin-filter-panel { grid-template-columns: 1fr; }
  .admin-title-row, .admin-topbar { align-items: stretch; flex-direction: column; height: auto; padding-top: 16px; }
  .admin-add-user, .admin-create-account-card { width: 100%; }
}

/* Subscription dashboard shell */
.screen-subscriptions #globalFooter {
  display: none !important;
}

@media (max-width: 900px) {
  #globalFooter.footer-hide-on-mobile {
    display: none !important;
  }

  body.has-mobile-bottom-nav #globalFooter.footer-hide-on-mobile {
    margin-bottom: 0 !important;
  }
}

.subscriptions-screen {
  min-height: calc(100vh - 96px);
  padding: 18px 0 0;
}

.subscriptions-frame {
  display: block;
  width: 100%;
  min-height: calc(100vh - 118px);
  border: 0;
  background: #f6f8fe;
}

/* Account typography scale */
.account-layout.account-layout :is(h1, h2, h3, h4, p, label, input, select, button, li, .account-field, .account-badges span, .account-side-nav span, .account-help-card span, .account-widget-row span, .account-joined-note) {
  font-size: 90% !important;
}

/* Account desktop header banner sits outside the content grid */
@media (min-width: 901px) {
  .app-desktop-shell--account .account-layout {
    width: 100%;
    max-width: none;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr);
    align-items: start;
    /* gap: 24px; */
  }

  .app-desktop-shell--account .account-layout > .account-upgrade-banner.account-desktop-only {
    grid-row: 1;
    width: 100%;
    margin: 0;
    border: 0 !important;
    outline: 0 !important;
  }

  .app-desktop-shell--account .account-panel.account-mobile-stack {
    grid-row: 2;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(300px, 31%) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 24px;
  }

  .app-desktop-shell--account .account-profile-card {
    grid-column: 1;
    grid-row: 1;
  }

  .app-desktop-shell--account .account-info-card {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 760px) {
  .subscriptions-screen {
    padding-top: 10px;
  }

  .subscriptions-frame {
    min-height: calc(100vh - 92px);
  }
}



