:root {
  --ink: #171b33;
  --muted: #62677d;
  --line: #e8ecf7;
  --purple: #6c4df6;
  --blue: #2577f5;
  --pink: #f2418a;
  --green: #41c687;
  --yellow: #ffd447;
  --panel: rgba(255, 255, 255, 0.7);
  --shadow: 0 16px 40px rgba(108, 77, 246, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  zoom: 80%;
  background:
    radial-gradient(circle at 15% 50%, rgba(116, 72, 232, 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(37, 119, 245, 0.08), transparent 25%),
    linear-gradient(135deg, #f0f4ff 0%, #ffffff 50%, #f5f3ff 100%);
  color: var(--ink);
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@supports not (zoom: 1) {
  body {
    width: 125%;
    min-height: 125vh;
    transform: scale(0.8);
    transform-origin: top left;
  }
}

button,
a {
  font: inherit;
}

a {
  color: #6c43e6;
  font-weight: 800;
  text-decoration: none;
}

.sidebar {
  position: fixed;
  top: 77px;
  left: 0;
  bottom: 0;
  width: 280px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-right: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 4px 0 32px rgba(108, 77, 246, 0.08);
  padding: 24px 16px 40px;
  z-index: 9990;
  transition: all 0.3s ease;
}

.sidebar::-webkit-scrollbar {
  width: 5px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(108, 77, 246, 0.2);
  border-radius: 4px;
}

.side-nav {
  display: grid;
  gap: 6px;
}

.nav-section {
  margin-bottom: 8px;
}

.nav-item {
  display: flex;
  align-items: flex-start;
  width: 100%;
  min-height: auto;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #374151;
  text-decoration: none;
  cursor: pointer;
  gap: 14px;
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.nav-item:hover {
  background: #f3f0ff;
  color: #6c4df6;
  border-color: rgba(108, 77, 246, 0.18);
  transform: translateX(4px);
}

.nav-item span {
  display: block;
  flex-shrink: 0;
  font-size: 20px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.nav-item:hover span {
  transform: scale(1.15) rotate(-5deg);
}

.nav-item div {
  min-width: 0;
}

.nav-item div strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.nav-item div small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  margin-top: 2px;
}

.nav-item.active {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.nav-item.active div strong,
.nav-item.active div small {
  color: #fff;
}

.reward-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 30px;
  padding: 20px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fdf6e3, #fffaf0);
  border: 1px solid rgba(245, 158, 11, 0.2);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15);
  position: relative;
  overflow: hidden;
}

.reward-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 60%);
  transform: rotate(45deg);
  pointer-events: none;
}

.reward-box h3,
.reward-box p {
  margin: 0;
  position: relative;
}

.reward-box h3 {
  font-size: 15px;
  font-weight: 900;
  color: #b45309;
}

.reward-box p {
  color: #d97706;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 4px;
}

.reward-box button {
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  margin-top: 8px;
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.3);
  transition: all 0.25s ease;
  position: relative;
}

.reward-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.4);
}

.trophy {
  font-size: 32px;
  text-align: center;
  position: relative;
  animation: float 3s ease-in-out infinite;
}

.page {
  min-height: 100vh;
  padding: 77px 34px 100px 320px;
}

.topbar,
.status-cluster,
.stat-pill,
.section-heading,
.progress-title,
.progress-body,
.recommend-row article {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.topbar-right {
  display: flex;
  align-items: center;
}

.search-box {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(42, 60, 101, 0.08);
  padding: 0 14px;
  min-width: 350px;
}

.search-box input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
}

.search-box input::placeholder {
  color: #9ca3af;
}

.search-box button {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 18px;
  padding: 0 8px;
  display: flex;
  align-items: center;
}

.mobile-brand {
  display: none;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.status-cluster {
  gap: 12px;
  flex-wrap: wrap;
}

.pill {
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(42, 60, 101, 0.08);
}

.stat-pill {
  min-width: auto;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  flex-direction: column;
}

.stat-pill span {
  font-size: 24px;
}

.stat-pill strong {
  font-size: 16px;
  font-weight: 900;
}

.stat-pill small {
  color: #5d6278;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.notif-bell {
  position: relative;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notif-bell .badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  background: #f2418a;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar,
.chevron {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #d7ecff;
  border: 3px solid #2577f5;
  font-size: 32px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-name strong {
  font-size: 14px;
  font-weight: 900;
  color: #171b33;
}

.user-name small {
  font-size: 11px;
  font-weight: 700;
  color: #62677d;
}

.chevron {
  width: 34px;
  color: #172039;
  font-size: 24px;
  font-weight: 900;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 320px;
  padding: 40px;
  margin-bottom: 32px;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, #667ef5 0%, #8b5cf6 50%, #d946ef 100%);
  box-shadow: 0 20px 50px rgba(102, 126, 245, 0.3);
}

.hero-content {
  max-width: 600px;
  z-index: 2;
  color: #fff;
}

.hero-content h2 {
  margin: 0 0 16px;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.2;
}

.hero-content p {
  margin: 0 0 24px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 900;
  font-size: 14px;
  padding: 12px 24px;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #fff;
  color: #667ef5;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-character {
  position: relative;
  width: 300px;
  height: 300px;
  flex-shrink: 0;
}

.character {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.character .head {
  font-size: 120px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.character .star,
.character .star2 {
  position: absolute;
  font-size: 32px;
  animation: twinkle 2s ease-in-out infinite;
}

.character .star {
  top: 20px;
  right: 40px;
}

.character .star2 {
  bottom: 40px;
  left: 20px;
  animation-delay: 0.5s;
}

@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.section-heading {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding: 0 0 12px;
  border-bottom: 2px solid #e8ecf7;
}

.section-heading h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.section-heading a {
  font-size: 14px;
  color: #667ef5;
}

.course-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}

.course-card {
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(42, 60, 101, 0.08);
  transition: all 0.3s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(42, 60, 101, 0.12);
}

.course-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.course-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
}

.course-card p {
  margin: 0 0 12px;
  color: #62677d;
  font-size: 13px;
  font-weight: 600;
}

.meter {
  height: 8px;
  border-radius: 4px;
  background: #e8ecf7;
  overflow: hidden;
  margin-bottom: 8px;
}

.meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #667ef5, #8b5cf6);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.course-card strong {
  font-size: 13px;
  color: #667ef5;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}

.goal-card,
.quiz-card,
.progress-card {
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(42, 60, 101, 0.08);
}

.goal-card h3,
.quiz-card h3,
.progress-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 900;
}

.goal-card span,
.quiz-card span {
  font-size: 24px;
  margin-right: 8px;
}

.goal-card p,
.quiz-card p {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: #62677d;
}

.quiz-card button {
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 900;
  min-width: 120px;
  height: 40px;
  background: linear-gradient(135deg, #667ef5, #8b5cf6);
  color: #fff;
}

.progress-card {
  background: linear-gradient(135deg, #e8f1ff, #f3e8ff);
}

.lower-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  margin-bottom: 32px;
}

.recommend-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.recommend-row article {
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(42, 60, 101, 0.08);
  justify-content: space-between;
  gap: 12px;
}

.recommend-row span {
  font-size: 32px;
  flex-shrink: 0;
}

.recommend-row div {
  flex: 1;
  min-width: 0;
}

.recommend-row h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 900;
}

.recommend-row p {
  margin: 0;
  font-size: 12px;
  color: #62677d;
  font-weight: 600;
}

.recommend-row button {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 18px;
  flex-shrink: 0;
}

.fun-zone {
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffa500, #ffb84d);
  box-shadow: 0 8px 24px rgba(255, 165, 0, 0.2);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.fun-zone h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
}

.fun-zone p {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
}

.fun-zone button {
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 900;
  height: 40px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 13px;
}

.controller,
.zone-star {
  position: absolute;
  font-size: 48px;
  opacity: 0.3;
}

.controller {
  bottom: -10px;
  right: -10px;
}

.zone-star {
  top: -20px;
  left: -20px;
}

@media (max-width: 1024px) {
  .page {
    padding: 77px 20px 100px 320px;
  }
  
  .lower-grid {
    grid-template-columns: 1fr;
  }
  
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .search-box {
    min-width: auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 200px;
    padding: 16px 12px;
  }
  
  .page {
    padding: 77px 20px 100px 240px;
  }
  
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 24px;
    min-height: auto;
  }
  
  .hero-character {
    width: 200px;
    height: 200px;
  }
  
  .hero-content h2 {
    font-size: 24px;
  }
  
  .search-box {
    min-width: 200px;
  }
  
  .course-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body {
    zoom: 50%;
  }
  
  .sidebar {
    display: none;
  }
  
  .page {
    padding: 77px 16px 100px 16px;
  }
  
  .topbar {
    flex-direction: column;
    gap: 12px;
  }
  
  .topbar-left {
    width: 100%;
    flex-direction: column;
  }
  
  .search-box {
    width: 100%;
    min-width: auto;
  }
  
  .course-row {
    grid-template-columns: 1fr;
  }
  
  .hero {
    flex-direction: column;
    padding: 20px;
  }
  
  .hero-character {
    width: 150px;
    height: 150px;
  }
}

.sidebar {
  position: fixed;
  top: 77px;
  bottom: 0;
  left: 0;
  width: 258px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.92);
  border-right: 1px solid rgba(226, 232, 246, 0.75);
  box-shadow: 10px 0 34px rgba(54, 82, 130, 0.08);
  padding: 27px 20px 0;
  z-index: 3;
}

.brand {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin: 0 0 21px;
  text-align: center;
}

.brand img{
    display:block;
    width: 75%;
    max-width:220px;
    height:auto;
    object-fit:contain;
}

.brand-name {
  color: #141b32;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.05;
}

.brand small {
  color: #4d5571;
  font-size: 12px;
  font-weight: 800;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.theme-panel {
  margin-top: 18px;
  padding: 13px;
  border: 1px solid rgba(226, 232, 246, 0.82);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.theme-panel p {
  margin: 0 0 9px;
  color: #5d6278;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.theme-switcher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.theme-option {
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #3c425c;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.theme-option.active {
  background: linear-gradient(135deg, #7548f1, #663cde);
  color: #fff;
  box-shadow: 0 8px 16px rgba(103, 64, 223, 0.2);
}

.nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 53px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #242840;
  cursor: pointer;
  gap: 15px;
  padding: 0 17px;
  text-align: left;
  font-size: 16px;
  font-weight: 900;
}

.nav-item span {
  display: grid;
  width: 21px;
  place-items: center;
  color: #858999;
  font-size: 21px;
}

.nav-item.active {
  background: linear-gradient(135deg, #7548f1, #663cde);
  color: #fff;
  box-shadow: 0 12px 22px rgba(103, 64, 223, 0.24);
}

.nav-item.active span {
  color: #fff;
}

.reward-box {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 11px;
  margin-top: 25px;
  padding: 18px 20px 20px;
  border-radius: 13px;
  background: linear-gradient(145deg, #fff5ce, #fffef5);
}

.reward-box h3,
.reward-box p {
  margin: 0;
}

.reward-box h3 {
  font-size: 15px;
  font-weight: 900;
}

.reward-box p {
  margin-top: 4px;
  color: #6d6e7d;
  font-size: 13px;
  font-weight: 800;
}

.reward-box button {
  grid-column: 1 / -1;
  height: 40px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.trophy {
  font-size: 33px;
}

.reading-art {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 347px;
  overflow: hidden;
  background: linear-gradient(#e9fbff 0 31%, #9bdcee 31% 49%, #68cb91 49%);
}

.reading-art::before,
.reading-art::after {
  position: absolute;
  top: 29px;
  content: "";
  border-radius: 999px;
  background: #fff;
}

.reading-art::before {
  left: 18px;
  width: 40px;
  height: 23px;
  box-shadow: 128px 12px 0 -10px #fff, 152px 8px 0 -11px #fff;
}

.reading-art::after {
  right: -58px;
  width: 177px;
  height: 72px;
  background: #aee8ff;
  opacity: 0.78;
}

.hill {
  position: absolute;
  bottom: 0;
  width: 235px;
  height: 125px;
  border-radius: 50% 50% 0 0;
}

.hill-one {
  left: -39px;
  background: #45b45f;
}

.hill-two {
  right: -82px;
  background: #3fae57;
}

.kid {
  position: absolute;
  bottom: 85px;
  width: 70px;
  height: 110px;
}

.kid-left {
  left: 38px;
}

.kid-right {
  left: 133px;
}

.kid .head {
  position: absolute;
  top: 0;
  left: 14px;
  width: 47px;
  height: 48px;
  border-radius: 50%;
  background: #ffd1a1;
  box-shadow: inset 0 11px #29222a;
}

.kid-right .head {
  box-shadow: inset 0 11px #6c361e;
}

.kid .body {
  position: absolute;
  top: 45px;
  left: 10px;
  width: 54px;
  height: 56px;
  border-radius: 16px 16px 8px 8px;
  background: #43a7e9;
}

.kid-right .body {
  background: #ffd65a;
}

.kid .book {
  position: absolute;
  top: 65px;
  left: 3px;
  width: 65px;
  height: 37px;
  border-radius: 6px;
  background: linear-gradient(90deg, #ef705e 50%, #5bd583 50%);
  transform: rotate(6deg);
}

.kid-right .book {
  background: linear-gradient(90deg, #56c97b 50%, #7fe08c 50%);
  transform: rotate(-7deg);
}

.flower {
  position: absolute;
  color: #fff56e;
  font-size: 20px;
}

.f1 { bottom: 52px; left: 39px; }
.f2 { bottom: 36px; right: 54px; }
.f3 { bottom: 16px; left: 126px; color: #fff; }

.page {
  min-height: 100vh;
  padding: 77px 34px 100px 292px;
}

.topbar,
.status-cluster,
.stat-pill,
.section-heading,
.progress-title,
.progress-body,
.recommend-row article {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.welcome-block {
  min-width: 0;
}

.mobile-brand {
  display: none;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.school-name {
  margin: 0 0 5px;
  color: #1676e6;
  font-size: 15px;
  font-weight: 900;
}

.topbar h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0;
}

.topbar p {
  margin: 10px 0 0;
  color: #5f6378;
  font-size: 16px;
  font-weight: 800;
}

.topbar .school-name {
  margin: 0 0 5px;
  color: #1676e6;
  font-size: 15px;
  font-weight: 900;
}

.status-cluster {
  gap: 14px;
}

.pill {
  height: 66px;
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(42, 60, 101, 0.08);
}

.stat-pill {
  min-width: 116px;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
}

.stat-pill span {
  font-size: 34px;
}

.stat-pill strong {
  font-size: 19px;
  font-weight: 900;
}

.stat-pill small {
  color: #5d6278;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
}

.avatar,
.chevron {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #d7ecff;
  border: 4px solid #2577f5;
  font-size: 46px;
  line-height: 1;
}

.chevron {
  width: 34px;
  color: #172039;
  font-size: 31px;
  font-weight: 900;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 30px 0 31px 44px;
}

.hero-copy h2 {
  margin: 0;
  color: #fff;
  font-size: 42px;
  font-weight: 900;
  line-height: 1.18;
}

.hero-copy h2 span {
  color: var(--yellow);
}

.hero-copy p {
  max-width: 280px;
  margin: 19px 0 21px;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.55;
}

.hero-copy button,
.quiz-card button,
.fun-zone button {
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 900;
}

.hero-copy button {
  min-width: 198px;
  height: 55px;
  background: #fff;
  color: #2563eb;
  font-size: 16px;
  box-shadow: 0 10px 20px rgba(31, 35, 86, 0.14);
}

.hero-scene {
  position: relative;
  min-height: 281px;
}

.open-book,
.spark,
.zone-star {
  position: absolute;
}

.open-book {
  top: 64px;
  left: 43px;
  font-size: 72px;
  transform: rotate(-5deg);
}

.spark {
  color: #ffe069;
  font-size: 24px;
}

.s1 { top: 55px; left: 190px; }
.s2 { top: 106px; right: 344px; color: #c4dcff; }
.s3 { bottom: 30px; left: 95px; font-size: 40px; }

.planet {
  position: absolute;
  border-radius: 50%;
}

.planet-pink {
  top: 42px;
  right: 190px;
  width: 76px;
  height: 76px;
  background: radial-gradient(circle at 35% 28%, #ff8eb7 0 17%, #f25794 18% 100%);
}

.planet-pink::after {
  position: absolute;
  top: 33px;
  left: -18px;
  width: 112px;
  height: 16px;
  border: 7px solid #ff9a55;
  border-top-color: transparent;
  border-left-color: transparent;
  border-radius: 50%;
  content: "";
  transform: rotate(-14deg);
}

.planet-green {
  right: 64px;
  bottom: 93px;
  width: 61px;
  height: 61px;
  background: radial-gradient(circle at 33% 32%, #47d58a 0 17%, #6a6ae7 18% 100%);
}

.rocket-pencil {
  position: absolute;
  left: 173px;
  bottom: 48px;
  width: 326px;
  height: 76px;
  transform: rotate(7deg);
  z-index: 1;
}

.rocket-pencil .tip,
.rocket-pencil .shaft,
.rocket-pencil .eraser {
  position: absolute;
  display: block;
  height: 100%;
}

.rocket-pencil .tip {
  left: 0;
  width: 105px;
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
  background: linear-gradient(90deg, #34394a 0 23%, #ffd291 24% 100%);
}

.rocket-pencil .shaft {
  left: 92px;
  width: 184px;
  background: linear-gradient(90deg, #ffcf43, #ffb31f);
}

.rocket-pencil .eraser {
  right: 0;
  width: 67px;
  border-radius: 0 38px 38px 0;
  background: linear-gradient(90deg, #60b6ff 0 28%, #f4f7ff 29% 54%, #ff7f74 55%);
}

.hero-kid {
  position: absolute;
  left: 326px;
  top: 21px;
  width: 172px;
  height: 206px;
  z-index: 2;
}

.hero-kid span {
  position: absolute;
  display: block;
}

.hero-kid .face {
  top: 33px;
  left: 42px;
  width: 75px;
  height: 79px;
  border-radius: 50%;
  background: #ffc99a;
  box-shadow: inset 0 -4px rgba(227, 128, 86, 0.18);
}

.hero-kid .face::before {
  content: "•  •";
  position: absolute;
  top: 28px;
  left: 19px;
  color: #192134;
  font-size: 27px;
  letter-spacing: 11px;
}

.hero-kid .face::after {
  content: "";
  position: absolute;
  right: 21px;
  bottom: 19px;
  width: 20px;
  height: 9px;
  border-radius: 0 0 18px 18px;
  background: #e94e4d;
}

.hero-kid .hair {
  top: 15px;
  left: 34px;
  width: 88px;
  height: 52px;
  border-radius: 45px 43px 20px 20px;
  background: #202638;
  z-index: 1;
  transform: rotate(-4deg);
}

.hero-kid .shirt {
  top: 107px;
  left: 47px;
  width: 80px;
  height: 62px;
  border-radius: 15px;
  background: #ffc62e;
}

.hero-kid .backpack {
  top: 100px;
  left: 116px;
  width: 36px;
  height: 75px;
  border-radius: 11px;
  background: #236a64;
  z-index: -1;
}

.hero-kid .arm {
  top: 37px;
  left: 113px;
  width: 57px;
  height: 21px;
  border-radius: 20px;
  background: #ffc99a;
  transform: rotate(-38deg);
  transform-origin: left center;
}

.hero-kid .arm::after {
  content: "✋";
  position: absolute;
  right: -20px;
  top: -19px;
  font-size: 40px;
  transform: rotate(20deg);
}

.hero-kid .leg {
  top: 154px;
  left: 73px;
  width: 73px;
  height: 44px;
  border-radius: 15px 26px 16px 16px;
  background: #1678d9;
  transform: rotate(7deg);
}

.hero-kid .leg::after {
  content: "";
  position: absolute;
  right: -14px;
  bottom: -12px;
  width: 28px;
  height: 17px;
  border-radius: 10px;
  background: #3a2a22;
  transform: rotate(48deg);
}

.section-heading {
  justify-content: space-between;
  margin: 32px 0 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.section-heading a {
  font-size: 15px;
}

.course-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(142px, 1fr));
  gap: 18px;
}

.course-card {
  position: relative;
  display: block;
  text-decoration: none;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.07);
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), border-color 200ms ease, box-shadow 200ms ease;
}

.course-card:hover,
.course-card.selected {
  border-color: rgba(116, 72, 232, 0.5);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
  transform: translateY(-8px) scale(1.02);
}

.course-icon {
  display: grid;
  width: 71px;
  height: 71px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-size: 38px;
}

.blue { background: linear-gradient(135deg, #44bafa, #2582ee); }
.green { background: linear-gradient(135deg, #5bda9d, #22b978); }
.amber { background: linear-gradient(135deg, #ffc747, #ffa20d); }
.rose { background: linear-gradient(135deg, #ff5f9e, #ef3d78); }
.violet { background: linear-gradient(135deg, #aa5af5, #7946e6); }

.course-card h3 {
  margin: 14px 0 5px;
  font-size: 16px;
  font-weight: 900;
}

.course-card p {
  margin: 0;
  color: #4f546b;
  font-size: 14px;
  font-weight: 700;
}

.meter {
  position: absolute;
  left: 31px;
  bottom: 21px;
  width: calc(100% - 86px);
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8ebf2;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.meter.gold span { background: #ffb900; }
.meter.pink span { background: #f24282; }
.meter.purple span { background: #7547e5; }

.course-card strong {
  position: absolute;
  right: 20px;
  bottom: 15px;
  color: #2e344c;
  font-size: 14px;
  font-weight: 900;
}

.next-card {
  position: absolute;
  top: 74px;
  right: -6px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111827;
  cursor: pointer;
  font-size: 42px;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(37, 49, 87, 0.16);
}

.summary-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.96fr 1.38fr;
  gap: 18px;
  margin-top: 24px;
}

.goal-card,
.quiz-card,
.progress-card,
.recommend-row article,
.fun-zone {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.05);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.goal-card:hover,
.quiz-card:hover,
.progress-card:hover,
.recommend-row article:hover,
.fun-zone:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.12);
}

.goal-card {
  min-height: 157px;
  padding: 21px;
  background: linear-gradient(130deg, #f6fbff, #edf6ff);
}

.goal-card h3,
.quiz-card h3,
.progress-card h3,
.fun-zone h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
}

.goal-card h3 span,
.quiz-card h3 span {
  margin-right: 8px;
  font-size: 25px;
  vertical-align: middle;
}

.goal-card p,
.quiz-card p,
.fun-zone p {
  margin: 28px 0 14px;
  color: #3d4358;
  font-size: 14px;
  font-weight: 800;
}

.goal-meter {
  width: 167px;
  height: 22px;
  border-radius: 999px;
  background: #e6ebf4;
}

.goal-meter span {
  display: grid;
  width: 63%;
  height: 100%;
  place-items: center;
  border-radius: inherit;
  background: #38c77a;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.thumb-kid {
  position: absolute;
  right: 30px;
  bottom: 8px;
  font-size: 82px;
}

.quiz-card {
  min-height: 157px;
  padding: 21px 20px;
  background: linear-gradient(135deg, #fffdf6, #fff0bd);
}

.quiz-card p {
  margin-top: 14px;
  line-height: 1.45;
}

.quiz-card button {
  width: 108px;
  height: 38px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
}

.quiz-trophy {
  position: absolute;
  right: 30px;
  bottom: 13px;
  font-size: 80px;
}

.progress-card {
  min-height: 157px;
  padding: 22px 20px;
}

.progress-title {
  justify-content: space-between;
}

.progress-title h3 {
  color: #1474f3;
}

.progress-title a {
  font-size: 13px;
}

.progress-body {
  gap: 21px;
  margin-top: 20px;
}

.donut {
  display: grid;
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#2778f4 0 72%, #39c484 72% 86%, #e8ecf5 86% 100%);
}

.donut::before {
  position: absolute;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.donut span {
  position: relative;
  z-index: 1;
  font-size: 20px;
  font-weight: 900;
}

.progress-body p {
  margin: 0;
  color: #4f566b;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.progress-body p strong {
  display: block;
  color: #22283b;
  font-weight: 900;
}

.bars {
  display: flex;
  align-items: end;
  gap: 9px;
  height: 72px;
  margin-left: auto;
  padding-top: 10px;
  border-left: 3px solid #eef2fb;
}

.bars i {
  display: block;
  width: 20px;
  border-radius: 5px 5px 0 0;
}

.bars i:nth-child(1) { height: 37px; background: #ffc331; }
.bars i:nth-child(2) { height: 60px; background: #8d51eb; }
.bars i:nth-child(3) { height: 43px; background: #41cf92; }
.bars i:nth-child(4) { height: 68px; background: #3490f5; }

.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 263px;
  gap: 18px;
  margin-top: 27px;
}

.compact {
  margin: 0 0 13px;
}

.recommend-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
}

.recommend-row article {
  min-height: 98px;
  gap: 10px;
  padding: 13px 11px;
}

.recommend-row article > span {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  background: #fff8ef;
  font-size: 39px;
}

.recommend-row h3,
.recommend-row p {
  margin: 0;
}

.recommend-row h3 {
  font-size: 13px;
  font-weight: 900;
}

.recommend-row p {
  margin-top: 4px;
  color: #767d92;
  font-size: 10px;
  font-weight: 800;
}

.recommend-row button {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #8d59ef, #7041df);
  color: #fff;
  cursor: pointer;
  font-size: 11px;
}

.fun-zone {
  min-height: 165px;
  padding: 24px 30px;
  background: linear-gradient(135deg, #8755ef, #7140dd);
  color: #fff;
}

.fun-zone p {
  max-width: 142px;
  margin: 12px 0 17px;
  color: #fff;
  line-height: 1.45;
}

.fun-zone button {
  min-width: 102px;
  height: 39px;
  background: #ffd33e;
  color: #2d2436;
}

.controller {
  position: absolute;
  right: 25px;
  bottom: 21px;
  font-size: 67px;
  transform: rotate(-20deg);
  filter: drop-shadow(0 10px 12px rgba(43, 23, 108, 0.28));
}

.zone-star {
  top: 20px;
  right: 30px;
  font-size: 33px;
}

.bottom-nav {
  position: fixed;
  right: max(32px, calc((100vw - 1500px) / 2));
  bottom: 14px;
  left: max(338px, calc((100vw - 1500px) / 2 + 338px));
  display: none;
  grid-template-columns: 1fr 1fr 92px 1fr 1fr;
  align-items: center;
  height: 64px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(33, 42, 80, 0.17);
  backdrop-filter: blur(12px);
  z-index: 4;
}

.bottom-nav button {
  border: 0;
  background: transparent;
  color: #747889;
  cursor: pointer;
  font-weight: 900;
}

.bottom-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 43px;
  border-radius: 15px;
}

.bottom-item span {
  font-size: 24px;
}

.bottom-item.active {
  margin-left: 15px;
  background: #f3f0ff;
  color: #7648e8;
}

.cap-item {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  justify-self: center;
  align-self: end;
  border-radius: 50%;
  background: linear-gradient(135deg, #8e58ef, #7343df) !important;
  color: #fff !important;
  font-size: 37px !important;
  box-shadow: 0 16px 31px rgba(113, 64, 224, 0.35);
  transform: translateY(-17px);
}

.subject-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 33px;
}

.subject-title-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.back-button {
  display: grid;
  width: 40px;
  height: 48px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #111729;
  cursor: pointer;
  font-size: 54px;
  font-weight: 400;
  line-height: 0.7;
}

.subject-title-row h1,
.subject-title-row p {
  margin: 0;
}

.subject-title-row h1 {
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
}

.subject-title-row p {
  margin-top: 12px;
  color: #565b72;
  font-size: 18px;
  font-weight: 700;
}

.subject-hero {
  position: relative;
  display: grid;
  grid-template-columns: 128px minmax(280px, 1fr) 1.05fr;
  min-height: 302px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 73% 27%, rgba(255, 255, 255, 0.2), transparent 0 2px, transparent 3px),
    linear-gradient(125deg, #0da4c1, #20bd95);
  box-shadow: 0 16px 36px rgba(23, 93, 129, 0.18);
  color: #fff;
}

.subject-hero::before,
.subject-hero::after {
  position: absolute;
  content: "";
  width: 350px;
  height: 116px;
  border: 4px dashed rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  transform: rotate(7deg);
}

.subject-hero::before {
  top: 38px;
  left: 486px;
}

.subject-hero::after {
  right: -56px;
  bottom: 22px;
}

.subject-icon {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  align-self: start;
  margin: 43px 0 0 36px;
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(77, 184, 237, 0.96), rgba(38, 148, 218, 0.94));
  box-shadow: 0 13px 25px rgba(3, 89, 124, 0.22);
  font-size: 62px;
  z-index: 1;
}

.subject-copy {
  position: relative;
  z-index: 2;
  padding: 51px 0 30px;
}

.subject-copy h2,
.subject-copy p {
  margin: 0;
}

.subject-copy h2 {
  font-size: 43px;
  line-height: 1;
  font-weight: 900;
}

.subject-subtitle {
  margin-top: 11px !important;
  font-size: 25px;
  font-weight: 800;
}

.subject-copy > p:not(.subject-subtitle) {
  margin-top: 21px;
  font-size: 18px;
  font-weight: 700;
}

.subject-progress {
  display: grid;
  grid-template-columns: minmax(220px, 354px) 54px;
  gap: 11px 18px;
  align-items: center;
  max-width: 430px;
  margin-top: 45px;
}

.subject-progress > span {
  grid-column: 1 / -1;
  font-size: 18px;
  font-weight: 900;
}

.subject-progress .meter {
  position: static;
  width: 100%;
  margin: 0;
  background: rgba(7, 104, 104, 0.26);
}

.subject-progress strong {
  font-size: 19px;
  font-weight: 900;
}

.math-scene {
  position: relative;
  min-height: 302px;
  z-index: 1;
}

.math-number,
.math-op {
  position: absolute;
  font-weight: 900;
  text-shadow: 0 8px 13px rgba(0, 81, 89, 0.18);
}

.math-number {
  color: #ffe15c;
  font-size: 64px;
}

.n2 { top: 70px; left: 62px; color: #c8fff3; }
.n3 { top: 136px; left: 65px; color: #ff6875; }
.n5 { right: 92px; bottom: 53px; }
.n8 { top: 35px; right: 78px; color: #eecb55; }

.math-op {
  color: rgba(255, 255, 255, 0.58);
  font-size: 42px;
}

.plus-one { top: 92px; left: -40px; color: #7f76ed; }
.plus-two { top: 135px; left: 18px; color: #ffd958; }
.equals { right: 145px; bottom: 75px; }
.minus { right: 70px; top: 137px; color: #7be36d; }

.math-kid {
  position: absolute;
  right: 174px;
  bottom: 0;
  width: 174px;
  height: 244px;
}

.math-kid span {
  position: absolute;
  display: block;
}

.math-kid .face {
  top: 43px;
  left: 38px;
  width: 92px;
  height: 95px;
  border-radius: 50%;
  background: #ffc99c;
}

.math-kid .face::before {
  position: absolute;
  top: 31px;
  left: 25px;
  content: "-  -";
  color: #111729;
  font-size: 22px;
  letter-spacing: 7px;
}

.math-kid .face::after {
  position: absolute;
  right: 28px;
  bottom: 24px;
  width: 28px;
  height: 14px;
  border-radius: 0 0 20px 20px;
  background: #742b22;
  content: "";
}

.math-kid .hair {
  top: 12px;
  left: 22px;
  width: 124px;
  height: 72px;
  border-radius: 54px 48px 29px 24px;
  background: #322017;
  box-shadow: -11px 25px 0 -4px #322017, 37px 17px 0 -6px #322017;
  z-index: 1;
}

.math-kid .shirt {
  bottom: 0;
  left: 47px;
  width: 86px;
  height: 105px;
  border-radius: 20px 20px 0 0;
  background: #2577f5;
}

.math-kid .arm {
  top: 97px;
  left: 8px;
  width: 82px;
  height: 22px;
  border-radius: 20px;
  background: #ffc99c;
  transform: rotate(-73deg);
}

.math-kid .arm::after {
  position: absolute;
  top: -22px;
  left: -6px;
  content: "^";
  color: #ffc99c;
  font-size: 54px;
  transform: rotate(67deg);
}

.detail-section {
  margin-top: 28px;
}

.detail-section h2 {
  margin: 0 0 16px 8px;
  font-size: 19px;
  font-weight: 900;
}

.lesson-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(132px, 1fr));
  gap: 20px;
}

.lesson-card,
.practice-card,
.achievement-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 12px 28px rgba(44, 57, 97, 0.08);
}

.lesson-card {
  position: relative;
  min-height: 247px;
  padding: 27px 16px 18px;
}

.lesson-card > span {
  display: grid;
  min-height: 86px;
  place-items: center;
  font-size: 70px;
}

.lesson-card h3,
.lesson-card p {
  margin: 0;
}

.lesson-card h3 {
  margin-top: 9px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 900;
}

.lesson-card p {
  margin-top: 12px;
  color: #565b72;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.mini-meter {
  position: absolute;
  right: 52px;
  bottom: 22px;
  left: 17px;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f8;
}

.mini-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #4bc7a9;
}

.lesson-card strong {
  position: absolute;
  right: 16px;
  bottom: 17px;
  color: #555c73;
  font-size: 13px;
}

.lesson-next {
  position: absolute;
  right: -31px;
  top: 86px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 20px rgba(44, 57, 97, 0.1);
  color: #12172a;
  cursor: pointer;
  font-size: 42px;
  line-height: 1;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 20px;
}

.practice-card {
  display: grid;
  grid-template-columns: 82px 1fr 91px;
  align-items: center;
  min-height: 148px;
  padding: 20px 24px;
  gap: 16px;
}

.practice-card > span {
  font-size: 62px;
}

.practice-card h3,
.practice-card p {
  margin: 0;
}

.practice-card h3 {
  font-size: 16px;
  font-weight: 900;
}

.practice-card p {
  margin-top: 10px;
  color: #565b72;
  font-size: 13px;
  font-weight: 700;
}

.practice-card button {
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr)) 1.9fr;
  gap: 20px;
}

.achievement-card {
  position: relative;
  min-height: 135px;
  padding: 27px 20px;
}

.achievement-card p {
  margin: 0;
  color: #565b72;
  font-size: 14px;
  font-weight: 700;
}

.achievement-card strong {
  display: block;
  margin-top: 28px;
  color: #129c53;
  font-size: 29px;
  font-weight: 900;
}

.achievement-card:nth-child(2) strong { color: #7448e8; }
.achievement-card:nth-child(3) strong { color: #ff980e; }

.achievement-card span {
  position: absolute;
  right: 20px;
  bottom: 25px;
  font-size: 45px;
}

.achievement-card.praise {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-color: #caeed2;
  background: linear-gradient(135deg, #f4fff1, #eafff7);
}

.achievement-card.praise h3 {
  margin: 0 0 12px;
  color: #159646;
  font-size: 18px;
  font-weight: 900;
}

.achievement-card.praise p {
  max-width: 250px;
  color: #44506a;
  line-height: 1.5;
}

.achievement-card.praise span {
  position: static;
  font-size: 72px;
}

body.lesson-open .sidebar,
body.lesson-open .bottom-nav {
  display: none;
}

body.lesson-open .page {
  padding: 30px 36px 34px;
}

.lesson-player {
  position: relative;
  min-height: calc(100vh - 64px);
  overflow: hidden;
  border-radius: 6px;
  padding: 30px 34px 270px;
  background:
    radial-gradient(circle at 96% 22%, rgba(255, 255, 255, 0.92), transparent 0 2px, transparent 4px),
    linear-gradient(135deg, #f4fbff, #eef6ff);
  color: #10162d;
}

.lesson-theme-purple { background: linear-gradient(135deg, #fbf8ff, #f2ecff); }
.lesson-theme-yellow { background: linear-gradient(135deg, #fffdf2, #fff6ce); }
.lesson-theme-green { background: linear-gradient(135deg, #f4fff5, #eafbec); }
.lesson-theme-sky { background: linear-gradient(135deg, #f2f9ff, #e6f4ff); }
.lesson-theme-peach { background: linear-gradient(135deg, #fff8ef, #ffecd8); }

.lesson-player::before,
.lesson-player::after {
  position: absolute;
  content: "✦";
  color: rgba(255, 211, 62, 0.42);
  font-size: 25px;
}

.lesson-player::before {
  top: 118px;
  left: 24px;
}

.lesson-player::after {
  right: 72px;
  bottom: 70px;
}

.lesson-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  max-width: 1270px;
  margin: 0 auto;
}

.lesson-heading {
  display: flex;
  align-items: flex-start;
  gap: 17px;
}

.lesson-back {
  display: grid;
  width: 35px;
  height: 39px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #111729;
  cursor: pointer;
  font-size: 50px;
  line-height: 0.65;
}

.lesson-heading h1,
.lesson-heading p {
  margin: 0;
}

.lesson-heading h1 {
  font-size: 24px;
  line-height: 1.05;
  font-weight: 900;
}

.lesson-heading p {
  margin-top: 10px;
  color: #4f5872;
  font-size: 14px;
  font-weight: 700;
}

.sound-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(219, 225, 239, 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(28, 43, 86, 0.1);
  color: #16203b;
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
  z-index: 3;
}

.lesson-trophy {
  position: absolute;
  top: -2px;
  right: 65px;
  font-size: 67px;
  filter: drop-shadow(0 10px 14px rgba(156, 101, 0, 0.2));
}

.lesson-progress {
  display: grid;
  grid-template-columns: minmax(160px, 265px) 48px;
  align-items: center;
  gap: 15px;
  max-width: 1270px;
  margin: 18px auto 24px;
}

.lesson-progress::before {
  grid-column: 1;
  grid-row: 1;
  height: 10px;
  border-radius: 999px;
  background: rgba(214, 222, 229, 0.72);
  content: "";
}

.lesson-progress span {
  grid-column: 1;
  grid-row: 1;
  height: 10px;
  border-radius: 999px;
  background: #43cf86;
  z-index: 1;
}

.lesson-progress strong {
  color: #2f374f;
  font-size: 14px;
  font-weight: 900;
}

.question-count {
  max-width: 1270px;
  margin: -10px auto 14px;
  color: #4f5872;
  font-size: 14px;
  font-weight: 900;
}

.question-card {
  position: relative;
  z-index: 2;
  max-width: 1270px;
  min-height: 390px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #e3e9f4;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 17px 34px rgba(34, 48, 90, 0.08);
  padding: 26px 32px 30px;
}

.equation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 5vw, 58px);
  min-height: 88px;
  border-bottom: 1px solid #e3e8f1;
  color: #0e1730;
  font-size: 40px;
  font-weight: 900;
}

.equation span {
  display: grid;
  min-width: 64px;
  height: 64px;
  place-items: center;
}

.equation .blue-value,
.equation .green-value,
.equation .unknown-value {
  border: 2px solid #c5ddf8;
  border-radius: 10px;
  background: #e9f5ff;
  color: #1c6be7;
  box-shadow: inset 0 -8px 14px rgba(37, 119, 245, 0.06);
}

.equation .green-value {
  border-color: #c8efcf;
  background: #e9ffeb;
  color: #16a84d;
}

.equation .unknown-value {
  border-color: #cbd2df;
  border-style: dashed;
  background: #fff;
  color: #8991a6;
}

.equation .operator {
  min-width: auto;
  color: #0d1430;
}

.word-problem {
  max-width: 760px;
  margin: 0 auto 20px;
  color: #12182f;
  font-size: 21px;
  line-height: 1.45;
  font-weight: 900;
}

.question-prompt {
  margin: 17px 0 22px;
  color: #11182d;
  font-size: 15px;
  font-weight: 800;
}

.object-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 95px;
  margin: 10px 0 24px;
  font-size: 43px;
  letter-spacing: 5px;
}

.object-visual > span {
  display: inline-flex;
  gap: 8px;
}

.object-visual .crossed {
  position: relative;
  filter: saturate(1.2);
}

.object-visual .crossed::after {
  position: absolute;
  inset: 7px 0 auto;
  color: #ee3f39;
  content: "XX";
  font-size: 50px;
  letter-spacing: 14px;
}

.object-visual .floated {
  transform: translateY(-32px);
  opacity: 0.88;
}

.answer-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: clamp(20px, 6vw, 86px);
  max-width: 780px;
  margin: 0 auto;
}

.lesson-theme-peach .answer-row {
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  max-width: 920px;
}

.answer-choice {
  height: 67px;
  border: 1px solid #dce3ee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 16px rgba(36, 47, 82, 0.07);
  color: #11182f;
  cursor: pointer;
  font-size: 28px;
  font-weight: 900;
}

.answer-choice.selected {
  border-color: #37c464;
  background: #ecfff0;
  color: #14813b;
}

.answer-choice.incorrect {
  border-color: #f06d6d;
  background: #fff0f0;
  color: #b82929;
}

.number-line {
  position: relative;
  height: 122px;
  margin: 6px 0 20px;
}

.line-track {
  position: absolute;
  right: 18px;
  left: 18px;
  top: 50px;
  height: 3px;
  background: #15213c;
}

.line-track::after {
  position: absolute;
  right: -5px;
  top: -8px;
  content: "›";
  color: #15213c;
  font-size: 28px;
}

.ticks {
  position: absolute;
  right: 18px;
  left: 18px;
  top: 44px;
  display: grid;
  grid-template-columns: repeat(11, 1fr);
}

.ticks span {
  position: relative;
  padding-top: 18px;
  text-align: center;
  color: #121a34;
  font-size: 13px;
  font-weight: 800;
}

.ticks span::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 15px;
  background: #15213c;
  content: "";
}

.dot {
  position: absolute;
  top: 44px;
  z-index: 2;
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border-radius: 50%;
  transform: translateX(-50%);
}

.start-dot {
  left: var(--start);
  background: #2384f3;
}

.end-dot {
  left: var(--end);
  width: 31px;
  height: 31px;
  border: 2px solid #36c464;
  background: #dfffe6;
  color: #13883f;
  font-size: 14px;
  font-weight: 900;
  transform: translate(-50%, -7px);
}

.jump-arc {
  position: absolute;
  top: 14px;
  left: min(var(--start), var(--end));
  width: max(84px, calc(max(var(--start), var(--end)) - min(var(--start), var(--end))));
  height: 40px;
  border-top: 2px dashed #59cf69;
  border-radius: 50% 50% 0 0;
}

.jump-arc span {
  position: absolute;
  top: -24px;
  left: 50%;
  color: #1ead4c;
  font-size: 13px;
  font-weight: 900;
  transform: translateX(-50%);
}

.lesson-helper {
  position: absolute;
  left: 42px;
  bottom: 0;
  z-index: 3;
  width: 148px;
  height: 214px;
}

.lesson-helper.girl {
  width: 160px;
}

.lesson-helper span {
  position: absolute;
  display: block;
}

.helper-head {
  top: 43px;
  left: 37px;
  width: 78px;
  height: 82px;
  border-radius: 50%;
  background: #ffc99a;
  z-index: 2;
}

.helper-head::before {
  position: absolute;
  top: 28px;
  left: 19px;
  color: #111729;
  content: "-  -";
  font-size: 19px;
  letter-spacing: 5px;
}

.helper-head::after {
  position: absolute;
  right: 25px;
  bottom: 20px;
  width: 22px;
  height: 12px;
  border-radius: 0 0 15px 15px;
  background: #7b2d24;
  content: "";
}

.helper-hair {
  top: 22px;
  left: 24px;
  width: 99px;
  height: 61px;
  border-radius: 48px 45px 20px 20px;
  background: #2a1e17;
  z-index: 3;
}

.lesson-helper.girl .helper-hair {
  left: 14px;
  width: 122px;
  height: 105px;
  border-radius: 55px 55px 36px 36px;
  background: #5b3422;
  z-index: 1;
}

.helper-body {
  left: 42px;
  bottom: 0;
  width: 74px;
  height: 91px;
  border-radius: 19px 19px 0 0;
  background: #2577f5;
  z-index: 1;
}

.lesson-helper.girl .helper-body {
  background: #39b95d;
}

.helper-hand {
  top: 110px;
  right: 7px;
  width: 52px;
  height: 17px;
  border-radius: 999px;
  background: #ffc99a;
  transform: rotate(-58deg);
  z-index: 3;
}

.helper-hand::after {
  position: absolute;
  top: -18px;
  right: -11px;
  color: #ffc99a;
  content: "^";
  font-size: 41px;
  transform: rotate(62deg);
}

.lesson-bubble {
  position: absolute;
  left: 170px;
  bottom: 40px;
  z-index: 4;
  max-width: 220px;
  margin: 0;
  padding: 14px 18px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(33, 42, 80, 0.12);
  color: #17203a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

body[data-theme="light"] {
  --ink: #121827;
  --muted: #596173;
  --line: #dde6f5;
  --panel: #ffffff;
  --shadow: 0 14px 34px rgba(26, 55, 106, 0.11);
  background:
    radial-gradient(circle at 8% 2%, rgba(255, 205, 64, 0.18), transparent 30%),
    radial-gradient(circle at 82% 4%, rgba(37, 119, 245, 0.13), transparent 31%),
    linear-gradient(120deg, #fffef8 0%, #f4fbff 45%, #f8fbff 100%);
}

body[data-theme="dark"] {
  --ink: #f3f6ff;
  --muted: #b6bfd4;
  --line: #2d3855;
  --panel: #171f33;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  background:
    radial-gradient(circle at 78% 0%, rgba(116, 72, 232, 0.3), transparent 30%),
    radial-gradient(circle at 12% 12%, rgba(65, 198, 135, 0.16), transparent 28%),
    linear-gradient(115deg, #080d1b 0%, #11182b 48%, #0d1525 100%);
}

body[data-theme="light"] .sidebar,
body[data-theme="light"] .bottom-nav,
body[data-theme="light"] .topbar,
body[data-theme="light"] .status-cluster,
body[data-theme="light"] .course-card,
body[data-theme="light"] .goal-card,
body[data-theme="light"] .progress-card,
body[data-theme="light"] .recommend-row article,
body[data-theme="light"] .subject-topbar,
body[data-theme="light"] .lesson-card,
body[data-theme="light"] .practice-card,
body[data-theme="light"] .achievement-card,
body[data-theme="light"] .question-card {
  background: rgba(255, 255, 255, 0.96);
}

body[data-theme="dark"] .sidebar,
body[data-theme="dark"] .bottom-nav,
body[data-theme="dark"] .topbar,
body[data-theme="dark"] .status-cluster,
body[data-theme="dark"] .course-card,
body[data-theme="dark"] .goal-card,
body[data-theme="dark"] .progress-card,
body[data-theme="dark"] .recommend-row article,
body[data-theme="dark"] .subject-topbar,
body[data-theme="dark"] .lesson-card,
body[data-theme="dark"] .practice-card,
body[data-theme="dark"] .achievement-card,
body[data-theme="dark"] .question-card {
  background: rgba(23, 31, 51, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(119, 137, 176, 0.22);
  box-shadow: var(--shadow);
}

body[data-theme="dark"] .course-card:hover,
body[data-theme="dark"] .goal-card:hover,
body[data-theme="dark"] .progress-card:hover,
body[data-theme="dark"] .recommend-row article:hover {
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.25);
}

body[data-theme="dark"] .sidebar {
  border-right-color: rgba(119, 137, 176, 0.2);
}

body[data-theme="dark"] .theme-panel,
body[data-theme="dark"] .stat-pill {
  background: rgba(31, 41, 65, 0.9);
  border-color: rgba(119, 137, 176, 0.22);
}

body[data-theme="light"] .brand small,
body[data-theme="light"] .theme-panel p,
body[data-theme="light"] .topbar p,
body[data-theme="light"] .stat-pill small,
body[data-theme="light"] .course-card p,
body[data-theme="light"] .progress-body p,
body[data-theme="light"] .recommend-row p,
body[data-theme="light"] .subject-title-row p,
body[data-theme="light"] .subject-copy > p,
body[data-theme="light"] .lesson-card p,
body[data-theme="light"] .practice-card p,
body[data-theme="light"] .achievement-card p,
body[data-theme="light"] .lesson-header p,
body[data-theme="light"] .question-prompt {
  color: #586074;
}

body[data-theme="dark"] .brand small,
body[data-theme="dark"] .theme-panel p,
body[data-theme="dark"] .topbar p,
body[data-theme="dark"] .stat-pill small,
body[data-theme="dark"] .course-card p,
body[data-theme="dark"] .progress-body p,
body[data-theme="dark"] .recommend-row p,
body[data-theme="dark"] .subject-title-row p,
body[data-theme="dark"] .subject-copy > p,
body[data-theme="dark"] .lesson-card p,
body[data-theme="dark"] .practice-card p,
body[data-theme="dark"] .achievement-card p,
body[data-theme="dark"] .lesson-header p,
body[data-theme="dark"] .question-prompt,
body[data-theme="dark"] .question-count {
  color: #b7c1d8;
}

body[data-theme="dark"] .nav-item,
body[data-theme="dark"] .theme-option,
body[data-theme="dark"] .topbar h1,
body[data-theme="dark"] .stat-pill,
body[data-theme="dark"] .course-card h3,
body[data-theme="dark"] .section-heading h2,
body[data-theme="dark"] .goal-card h3,
body[data-theme="dark"] .quiz-card h3,
body[data-theme="dark"] .progress-body p strong,
body[data-theme="dark"] .recommend-row h3,
body[data-theme="dark"] .bottom-item,
body[data-theme="dark"] .subject-title-row h1,
body[data-theme="dark"] .detail-section h2,
body[data-theme="dark"] .lesson-card h3,
body[data-theme="dark"] .practice-card h3,
body[data-theme="dark"] .lesson-header h1,
body[data-theme="dark"] .word-problem,
body[data-theme="dark"] .equation .operator,
body[data-theme="dark"] .answer-choice,
body[data-theme="dark"] .lesson-bubble,
body[data-theme="dark"] .sound-button,
body[data-theme="dark"] .lesson-back,
body[data-theme="dark"] .back-button,
body[data-theme="dark"] .chevron {
  color: #f3f6ff;
}

body[data-theme="dark"] .nav-item span,
body[data-theme="dark"] .bottom-item span {
  color: #a9b4ce;
}

body[data-theme="dark"] .mobile-brand,
body[data-theme="dark"] .answer-choice,
body[data-theme="dark"] .lesson-bubble,
body[data-theme="dark"] .sound-button,
body[data-theme="dark"] .avatar,
body[data-theme="dark"] .equation .unknown-value {
  background: #111a2d;
  border-color: rgba(119, 137, 176, 0.24);
}

body[data-theme="dark"] .meter,
body[data-theme="dark"] .mini-meter,
body[data-theme="dark"] .goal-meter,
body[data-theme="dark"] .lesson-progress::before {
  background: #2a3450;
}

body[data-theme="dark"] .progress-body,
body[data-theme="dark"] .lesson-player {
  background:
    radial-gradient(circle at 88% 16%, rgba(65, 198, 135, 0.16), transparent 28%),
    linear-gradient(135deg, #151f35, #11192d);
  color: #f3f6ff;
}

body[data-theme="dark"] .lesson-theme-purple,
body[data-theme="dark"] .lesson-theme-yellow,
body[data-theme="dark"] .lesson-theme-green,
body[data-theme="dark"] .lesson-theme-sky,
body[data-theme="dark"] .lesson-theme-peach {
  background:
    radial-gradient(circle at 90% 18%, rgba(255, 212, 71, 0.12), transparent 30%),
    linear-gradient(135deg, #141d31, #0f1728);
}

body[data-theme="dark"] .reward-box,
body[data-theme="dark"] .quiz-card {
  background: linear-gradient(145deg, rgba(82, 64, 35, 0.85), rgba(40, 48, 68, 0.95));
}

body[data-theme="dark"] .answer-choice.selected {
  background: #123c28;
  color: #8ff0ae;
}

body[data-theme="dark"] .answer-choice.incorrect {
  background: #421c24;
  color: #ff9ba5;
}

body[data-theme="dark"] .line-track,
body[data-theme="dark"] .line-track::after,
body[data-theme="dark"] .line-track::before {
  background: #dfe7ff;
}

@media (max-width: 1180px) {
  .sidebar {
    width: 228px;
    padding-inline: 15px;
  }

  .brand img {
    width: min(175px, 100%);
  }

  .brand-name {
    font-size: 16px;
  }

  .page {
    padding-left: 252px;
  }

  .course-row,
  .recommend-row {
    grid-template-columns: repeat(2, minmax(170px, 1fr));
  }

  .subject-hero {
    grid-template-columns: 112px minmax(260px, 1fr) 0.86fr;
  }

  .math-kid {
    right: 80px;
  }

  .lesson-row {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .lesson-next {
    display: none;
  }

  .practice-grid,
  .achievement-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .achievement-card.praise {
    grid-column: 1 / -1;
  }

  .question-card {
    min-height: 360px;
  }

  .equation {
    gap: 24px;
  }

  .answer-row,
  .lesson-theme-peach .answer-row {
    gap: 22px;
  }

  .summary-grid,
  .lower-grid {
    grid-template-columns: 1fr;
  }

  .bottom-nav {
    left: 278px;
  }
}

@media (max-width: 820px) {
  .sidebar {
    display: none;
  }

  .page {
    padding: 77px 16px 108px;
  }

  .topbar {
    align-items: flex-start;
    gap: 16px;
  }

  .subject-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .subject-title-row h1 {
    font-size: 29px;
  }

  .subject-title-row p {
    font-size: 16px;
  }

  .subject-hero {
    grid-template-columns: 1fr;
    min-height: 620px;
  }

  .subject-icon {
    margin: 30px 0 0 28px;
  }

  .subject-copy {
    padding: 22px 28px 0;
  }

  .subject-progress {
    grid-template-columns: 1fr 48px;
    margin-top: 28px;
  }

  .math-scene {
    min-height: 270px;
  }

  .math-kid {
    right: 50%;
    transform: translateX(50%);
  }

  .lesson-row,
  .practice-grid,
  .achievement-grid {
    grid-template-columns: 1fr;
  }

  .practice-card {
    grid-template-columns: 72px 1fr 90px;
  }

  body.lesson-open .page {
    padding: 18px 14px 24px;
  }

  .lesson-player {
    min-height: calc(100vh - 36px);
    padding: 24px 20px 250px;
  }

  .lesson-header {
    align-items: flex-start;
  }

  .lesson-heading h1 {
    font-size: 22px;
  }

  .question-card {
    padding: 20px 18px 24px;
  }

  .equation {
    gap: 13px;
    font-size: 30px;
  }

  .equation span {
    min-width: 52px;
    height: 52px;
  }

  .object-visual {
    flex-wrap: wrap;
    font-size: 34px;
    letter-spacing: 2px;
  }

  .answer-row,
  .lesson-theme-peach .answer-row {
    grid-template-columns: repeat(2, minmax(90px, 1fr));
    max-width: 100%;
  }

  .lesson-helper {
    left: 18px;
  }

  .lesson-bubble {
    left: 142px;
    right: 20px;
  }

.mobile-brand{
    display:none;
}

@media (max-width:820px){

    .mobile-brand{
        display:block;
        width:100%;
    }

    .mobile-brand img{
        display:block;
        width:100%;
        max-width:100%;
        height:auto;
        margin:0;
        object-fit:contain;
    }

}

/* Example Hover Effect */
.mobile-brand:hover img {
  transform: scale(1.05);
}


  .school-name {
    display: none;
  }

  .topbar h1 {
    font-size: 28px;
    max-width: 280px;
  }

  .status-cluster {
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
  }

  .stat-pill {
    min-width: 86px;
    height: 53px;
  }

  .avatar {
    width: 58px;
    height: 58px;
    font-size: 36px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 430px;
  }

  .hero-copy {
    padding: 28px;
  }

  .hero-scene {
    min-height: 200px;
  }

  .open-book {
    left: 28px;
  }

  .hero-kid {
    left: 51%;
    transform: translateX(-50%);
  }

  .rocket-pencil {
    left: 20%;
    bottom: 33px;
    width: 250px;
  }

  .planet-pink {
    right: 42px;
  }

  .planet-green {
    right: 22px;
  }

  .course-row,
  .recommend-row {
    grid-template-columns: 1fr;
  }

  .bottom-nav {
    right: 16px;
    left: 16px;
    display: grid;
  }
}

@media (min-width: 821px) and (max-height: 820px) {
  .sidebar {
    overflow-y: auto;
    padding-bottom: 22px;
  }

  .reward-box,
  .reading-art {
    display: none;
  }

  .side-nav {
    padding-bottom: 10px;
  }
}

@media (max-width: 620px) {
  .topbar {
    flex-direction: column;
  }

  .status-cluster {
    justify-content: flex-start;
    width: 100%;
  }

  .stat-pill {
    flex: 1 1 128px;
  }

  .chevron {
    margin-left: auto;
  }

  .hero-copy h2 {
    font-size: 38px;
  }

  .practice-card {
    grid-template-columns: 68px 1fr;
  }

  .practice-card button {
    grid-column: 2;
    width: 110px;
  }

  .progress-body {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .bars {
    margin-left: 0;
  }
}

@media (max-width: 440px) {
  .page {
    padding-inline: 12px;
  }

  .mobile-brand span {
    font-size: 17px;
  }

  .topbar h1 {
    font-size: 27px;
  }

  .hero {
    min-height: 410px;
  }

  .hero-copy {
    padding: 25px 24px;
  }

  .hero-copy h2 {
    font-size: 34px;
  }

  .subject-copy h2 {
    font-size: 36px;
  }

  .subject-subtitle {
    font-size: 21px;
  }

  .subject-copy > p:not(.subject-subtitle) {
    font-size: 16px;
  }

  .lesson-card {
    min-height: 225px;
  }

  .lesson-player {
    padding-inline: 14px;
  }

  .lesson-progress {
    grid-template-columns: 1fr 48px;
  }

  .sound-button {
    width: 40px;
    height: 40px;
  }

  .equation {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 14px;
  }

  .word-problem {
    font-size: 18px;
  }

  .answer-choice {
    height: 58px;
    font-size: 24px;
  }

  .lesson-helper {
    transform: scale(0.86);
    transform-origin: bottom left;
  }

  .lesson-bubble {
    left: 120px;
    bottom: 34px;
    font-size: 13px;
  }

  .hero-copy p {
    font-size: 15px;
  }

  .bottom-nav {
    grid-template-columns: 1fr 1fr 76px 1fr 1fr;
  }

  .bottom-item {
    gap: 4px;
    font-size: 12px;
  }

  .bottom-item span {
    font-size: 20px;
  }


  .cap-item {
    width: 66px;
    height: 66px;
    font-size: 32px !important;
  }
}

/* Dashboard Features Grid */

/* Hero banner image override to use uploaded asset */
.hero {
  background-image: url('../assets/images/hero.png');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
}

/* Larger hero heading and refined search box for pixel-perfect header */
.hero-content h2, .hero-copy h2 {
  font-size: 56px;
  line-height: 1.08;
  font-weight: 900;
  color: #ffffff;
}

.topbar .search-box {
  min-width: 560px;
  padding: 12px 18px;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(42, 60, 101, 0.08);
}

.dashboard-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
  padding: 0 20px;
}

.feature-card {
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(42, 60, 101, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid #f0f0f0;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(42, 60, 101, 0.12);
}

.feature-header {
  margin-bottom: 14px;
}

.feature-header h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-header p {
  margin: 0;
  font-size: 12px;
  color: #62677d;
  font-weight: 600;
}

.learn-by-class {
  background: #f0f5ff;
  color: #000;
}

.learn-by-class .feature-header h3 {
  color: #2577f5;
}

.learn-by-class .feature-header p {
  color: #62677d;
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.class-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: 8px;
  background: #2577f5;
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.class-btn:hover {
  background: #1564d6;
  transform: scale(1.05);
}

.explore-btn {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  font-size: 13px;
  padding: 10px 20px;
  background: #2577f5;
  color: #fff;
  transition: all 0.2s ease;
  align-self: flex-start;
  margin-top: auto;
}

.explore-btn:hover {
  background: #1564d6;
}

.practice-btn {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  font-size: 13px;
  padding: 10px 20px;
  background: #41c687;
  color: #fff;
  transition: all 0.2s ease;
  align-self: flex-start;
  margin-top: auto;
  width: 100%;
  text-align: center;
}

.practice-btn:hover {
  background: #34a56d;
}

.exam-btn {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  font-size: 13px;
  padding: 10px 20px;
  background: #ff9a56;
  color: #fff;
  transition: all 0.2s ease;
  align-self: flex-start;
  margin-top: auto;
  width: 100%;
  text-align: center;
}

.exam-btn:hover {
  background: #f5a623;
}

.play-btn {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  font-size: 13px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #667ef5, #8b5cf6);
  color: #fff;
  transition: all 0.2s ease;
  align-self: flex-start;
  margin-top: auto;
  width: 100%;
  text-align: center;
}

.play-btn:hover {
  opacity: 0.9;
}

.reasoning-arena {
  background: #f0f8f4;
  color: #000;
}

.reasoning-arena .feature-header h3 {
  color: #41c687;
}

.reasoning-arena .feature-header p {
  color: #62677d;
}

.competitive-exams {
  background: #fff5f0;
  color: #000;
}

.competitive-exams .feature-header h3 {
  color: #ff9a56;
}

.competitive-exams .feature-header p {
  color: #62677d;
}

.daily-challenge {
  background: #f7f3ff;
  color: #000;
}

.daily-challenge .feature-header h3 {
  color: #667ef5;
}

.daily-challenge .feature-header p {
  color: #62677d;
}

.feature-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  flex-grow: 1;
}

.feature-list li {
  padding: 6px 0;
  font-size: 13px;
  color: #62677d;
  font-weight: 600;
}

.challenge-content {
  margin-bottom: 16px;
  flex-grow: 1;
}

.challenge-content p {
  margin: 0 0 8px;
  font-size: 13px;
  color: #62677d;
  font-weight: 600;
}

.challenge-content p strong {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  text-transform: uppercase;
  color: #999;
}

.challenge-progress {
  height: 6px;
  border-radius: 3px;
  background: #e0e0e0;
  overflow: hidden;
  margin-bottom: 8px;
}

.challenge-progress span {
  height: 100%;
  background: #41c687;
  border-radius: 3px;
}

/* Quick Access */
.quick-access { padding: 16px 20px; }
.quick-grid { display: flex; gap: 12px; background: #fff; padding: 12px; border-radius: 12px; box-shadow: var(--shadow); flex-wrap:wrap; }
.quick-item { display:flex; align-items:center; gap:10px; padding:10px 14px; background:#f6f8ff; border-radius:10px; border:1px solid #eef2ff; font-weight:700; color:var(--ink); cursor:pointer; }
.quick-item span { font-size:13px; }

/* Unlock rewards banner */
.unlock-banner { margin-top:16px; padding:18px 20px; border-radius:14px; background: linear-gradient(90deg,#6b46ff,#3b82f6); color:#fff; box-shadow: 0 12px 30px rgba(59,130,246,0.12); }
.unlock-banner .banner-content { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.unlock-banner h3{ margin:0; font-size:20px; font-weight:900; }
.unlock-banner p{ margin:4px 0 0; opacity:0.95; }
.banner-cta{ background:#ffd447; color:#1f2937; border:none; padding:12px 20px; border-radius:10px; font-weight:900; cursor:pointer; }
.banner-cta:hover{ filter:brightness(0.95); }

.challenge-progress::after {
  content: "";
  display: block;
  height: 100%;
  width: 45%;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 3px;
}

/* Continue Your Journey Section */
.continue-journey {
  margin-bottom: 32px;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.journey-card {
  padding: 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(42, 60, 101, 0.08);
  transition: all 0.3s ease;
}

.journey-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(42, 60, 101, 0.12);
}

.journey-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.journey-card h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 900;
  color: #171b33;
}

.journey-card p {
  margin: 0 0 12px;
  font-size: 12px;
  color: #62677d;
  font-weight: 600;
}

.journey-progress {
  height: 6px;
  border-radius: 3px;
  background: #e8ecf7;
  overflow: hidden;
  margin-bottom: 6px;
}

.journey-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #667ef5, #8b5cf6);
  border-radius: 3px;
}

.journey-card small {
  font-size: 11px;
  color: #667ef5;
  font-weight: 700;
}

/* Achievements Section */
.achievements-section {
  margin-bottom: 32px;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.achievement-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(42, 60, 101, 0.08);
  transition: all 0.3s ease;
  min-height: 140px;
}

.achievement-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(42, 60, 101, 0.12);
}

.badge-icon {
  font-size: 48px;
}

.achievement-badge p {
  margin: 0;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  color: #171b33;
}

@media (max-width: 1024px) {
  .dashboard-features {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .journey-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .dashboard-features {
    grid-template-columns: 1fr;
  }
  
  .journey-grid {
    grid-template-columns: 1fr;
  }
  
  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
