:root {
  --bg-sky: #e8f6fa;
  --bg-card: #ffffff;
  --primary: #0f6292;
  --primary-dark: #0a3d62;
  --accent-yellow: #ffcb3b;
  --accent-yellow-hover: #f5b916;
  --accent-green: #2eb86d;
  --accent-green-hover: #249b5a;
  --text-dark: #14263c;
  --text-muted: #586e84;
  --border-soft: #d9edf4;
  --shadow-card: 0 10px 28px rgba(15, 76, 117, 0.08);
  --shadow-hover: 0 18px 38px rgba(15, 76, 117, 0.16);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(180deg, #ecf9fc 0%, #dff3f8 50%, #eaf8fb 100%);
  color: var(--text-dark);
  min-height: 100vh;
  line-height: 1.5;
}

h1, h2, h3, h4, .brand-title {
  font-family: 'Fredoka', 'Nunito', sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ==================== NAVBAR (SCROLL BILAN KETADIGAN, MINIMAL) ==================== */
.navbar {
  position: relative; /* Fixed/sticky emas — scroll qilganda pastga qarab bemalol suriladi! */
  background: #ffffff;
  border-bottom: 2px solid #dcf0f7;
  box-shadow: 0 4px 16px rgba(13, 71, 108, 0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo-svg {
  display: flex;
  align-items: center;
}

.brand-title {
  font-size: 22px;
  font-weight: 700;
  color: #10375c;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  color: #30506e;
  padding: 8px 16px;
  border-radius: 99px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: #eaf7fc;
  color: #0b5384;
}

.nav-link.active {
  background: #0f6292;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 98, 146, 0.26);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.token-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff6d1;
  border: 2px solid #f7c331;
  padding: 6px 14px;
  border-radius: 99px;
  font-weight: 900;
  font-size: 14.5px;
  color: #6b4700;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.token-pill:hover {
  transform: translateY(-2px);
}

.btn {
  border: none;
  font-family: inherit;
  font-weight: 800;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 99px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-login {
  background: var(--accent-yellow);
  color: #3d2c00;
}

.btn-login:hover {
  background: var(--accent-yellow-hover);
}

.btn-join {
  background: var(--accent-green);
  color: #ffffff;
  border: none;
  font-family: inherit;
  font-weight: 800;
  font-size: 14px;
  padding: 9px 20px;
  border-radius: 99px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(46, 184, 109, 0.28);
}

.btn-join:hover {
  background: var(--accent-green-hover);
  transform: translateY(-1px);
}

/* ==================== VIEWS ==================== */
.page-view {
  display: none;
  padding-bottom: 44px;
  animation: fadeIn 0.25s ease;
}

.page-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== HERO ==================== */
.hero-wrapper {
  padding-top: 22px;
  padding-bottom: 10px;
}

.hero-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(14, 71, 112, 0.14);
  border: 4px solid #ffffff;
  background: #bfe6f7;
}

.hero-bg-img {
  width: 100%;
  display: block;
  max-height: 490px;
  object-fit: cover;
}

.hero-bottom-cta {
  position: absolute;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.hero-kids-title {
  font-family: 'Baloo 2', 'Fredoka', cursive, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.02;
  margin-bottom: 10px;
}

.kids-word-main {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  background: linear-gradient(180deg, #ff7b00 0%, #ff3d68 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 #ffffff) drop-shadow(0 6px 14px rgba(15, 58, 102, 0.25));
  letter-spacing: 0.5px;
}

.kids-word-sub {
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 800;
  color: #0b4f8a;
  text-shadow: 0 3px 0 #ffffff, 0 5px 12px rgba(255, 255, 255, 0.9);
  margin-top: 2px;
}

.hero-kids-tagline {
  font-size: 16.5px;
  font-weight: 800;
  color: #16446b;
  background: rgba(255, 255, 255, 0.72);
  display: inline-block;
  padding: 4px 16px;
  border-radius: 99px;
  margin-bottom: 14px;
}

.hero-cta-playful {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ffd43b, #ff9f1c);
  color: #3d2200;
  font-family: 'Baloo 2', 'Fredoka', sans-serif;
  font-size: 19px;
  font-weight: 800;
  border: 3px solid #ffffff;
  padding: 10px 28px;
  border-radius: 99px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(255, 159, 28, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta-playful:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 28px rgba(255, 159, 28, 0.55);
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 860px;
  margin: -24px auto 0;
  position: relative;
  z-index: 5;
  background: #ffffff;
  padding: 14px 22px;
  border-radius: 99px;
  box-shadow: 0 10px 26px rgba(14, 76, 115, 0.11);
  border: 2px solid #e2f3f9;
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14.5px;
  color: #1c3c5b;
}

.trust-icon {
  font-size: 20px;
}

/* ==================== SECTIONS ==================== */
.section-block {
  padding: 36px 0;
}

.section-block.alt-bg {
  background: rgba(255, 255, 255, 0.5);
  border-top: 2px dashed #c8e9f3;
  border-bottom: 2px dashed #c8e9f3;
}

.section-header {
  text-align: center;
  margin-bottom: 24px;
}

.section-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

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

.section-title-row h2 {
  font-size: 30px;
  color: #103152;
}

.sparkle {
  color: #f6b919;
  font-size: 22px;
}

/* ==================== 8 COURSE CARDS (TINIQ SVG ILLYUSTRATSIYA + MINIMALIST) ==================== */
.course-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.course-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 12px;
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.course-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-hover);
  border-color: #7ad3f6;
}

.course-art-stage {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: #eef8fc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-art-stage svg,
.course-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.course-card:hover .course-art-stage svg,
.course-card:hover .course-real-img {
  transform: scale(1.05);
}

.course-body {
  padding: 14px 8px 6px;
  text-align: center;
}

.course-title {
  font-size: 19px;
  color: #122e4d;
  margin-bottom: 4px;
}

.course-desc {
  font-size: 13.5px;
  color: #546b80;
  font-weight: 700;
}

.course-card-footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e1eff5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
  color: #0e6396;
}

.course-enter-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eaf7fc;
  color: #0f6292;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: background 0.2s, color 0.2s;
}

.course-card:hover .course-enter-icon {
  background: #0f6292;
  color: #ffffff;
}

/* ==================== OPEN VIDEO CARDS ==================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.video-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 10px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.video-thumb-box {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.video-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play-circle {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 37, 63, 0.22);
}

.video-play-circle span {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #0f6292;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.video-duration-pill {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(11, 31, 52, 0.84);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 8px;
}

.video-info {
  padding: 12px 6px 4px;
}

.video-info h4 {
  font-size: 15.5px;
  color: #133150;
}

.badge-open-info {
  background: #dcfce7;
  color: #166534;
  font-weight: 800;
  font-size: 13.5px;
  padding: 6px 14px;
  border-radius: 99px;
}

/* ==================== STUDENT PROJECT CARDS ==================== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.project-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 10px;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-img-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #eef8fc;
}

.project-img-wrap img,
.project-img-wrap svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(11, 32, 56, 0.85));
  color: #fff;
  padding: 18px 10px 8px;
  font-size: 13.5px;
  font-weight: 800;
}

.project-user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px 4px;
}

.project-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #8ad7f8;
}

.project-user-meta {
  flex: 1;
}

.project-user-name {
  font-size: 14px;
  font-weight: 800;
  color: #15314f;
}

.project-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 3px;
}

.cat-pill {
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 99px;
  background: #e1f4fd;
  color: #0d6295;
}

.like-btn {
  background: #fff0f3;
  border: 1px solid #fecdd3;
  color: #e11d48;
  font-weight: 800;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 99px;
  cursor: pointer;
}

/* ==================== PROMO BANNER ==================== */
.promo-physics-banner {
  position: relative;
  height: 290px;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(180deg, #62c8f7 0%, #8edbf9 52%, #b9ecfe 100%);
  box-shadow: 0 18px 40px rgba(14, 116, 168, 0.2);
  border: 4px solid #ffffff;
  user-select: none;
  touch-action: none;
}

.physics-cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 99px;
  filter: blur(2px);
  pointer-events: none;
}

.physics-cloud.c1 { width: 170px; height: 54px; top: 24px; left: 8%; }
.physics-cloud.c2 { width: 220px; height: 64px; bottom: 20px; left: 42%; opacity: 0.45; }
.physics-cloud.c3 { width: 160px; height: 50px; top: 34px; right: 9%; }

.prizes-physics-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.prize-orb {
  position: absolute;
  top: 0;
  left: 0;
  width: 84px;
  height: 84px;
  border-radius: 22px;
  background: #ffffff;
  border: 3px solid #ffffff;
  box-shadow: 0 12px 24px rgba(10, 74, 118, 0.24), 0 0 0 2px rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  will-change: transform;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.prize-orb:hover {
  box-shadow: 0 18px 34px rgba(10, 74, 118, 0.36), 0 0 0 4px rgba(255, 203, 59, 0.78);
  border-color: #ffcb3b;
  z-index: 8 !important;
}

.prize-orb.dragging {
  cursor: grabbing;
  box-shadow: 0 24px 44px rgba(10, 74, 118, 0.44), 0 0 0 5px rgba(255, 203, 59, 0.9);
  z-index: 15 !important;
}

.prize-orb-img-wrap {
  width: 100%;
  height: 100%;
  border-radius: 19px;
  overflow: hidden;
  pointer-events: none;
}

.prize-orb-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.prize-orb-tip {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  background: #0c3d66;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 99px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.prize-orb:hover .prize-orb-tip,
.prize-orb.dragging .prize-orb-tip {
  opacity: 1;
}

.promo-physics-center {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  padding: 16px;
}

.promo-physics-center h3 {
  font-family: 'Baloo 2', 'Fredoka', sans-serif;
  font-size: 34px;
  color: #0b3c68;
  text-shadow: 0 3px 0 #ffffff, 0 5px 16px rgba(255, 255, 255, 0.95);
  margin-bottom: 4px;
}

.promo-physics-center p {
  font-size: 16.5px;
  font-weight: 800;
  color: #134873;
  background: rgba(255, 255, 255, 0.84);
  padding: 5px 18px;
  border-radius: 99px;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(15, 76, 117, 0.08);
}

.promo-cta-btn {
  pointer-events: auto;
  font-size: 17px;
  padding: 9px 28px;
}

.physics-hint {
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 800;
  color: #0d4b7a;
  background: rgba(255, 255, 255, 0.65);
  padding: 3px 12px;
  border-radius: 99px;
}

/* ==================== COURSE DETAIL INNER VIEW (TINIQ, KENG, MINIMALIST) ==================== */
.course-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0 16px;
}

.btn-back {
  background: #ffffff;
  border: 2px solid #cbe7f2;
  color: #103b60;
  font-family: inherit;
  font-weight: 800;
  font-size: 14.5px;
  padding: 8px 18px;
  border-radius: 99px;
  cursor: pointer;
}

.btn-back:hover {
  background: #103b60;
  color: #ffffff;
}

.course-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.switcher-pill {
  background: #ffffff;
  border: 1.5px solid #cde6f2;
  padding: 7px 14px;
  border-radius: 99px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  color: #294e6f;
  cursor: pointer;
}

.switcher-pill.active {
  background: #0f6292;
  color: #fff;
  border-color: #0f6292;
}

/* Course Detail Hero: FULL-BLEED CRISP VECTOR ARTWORK, NO SMALL CROPPED SQUARE! */
.course-detail-hero {
  border-radius: 28px;
  padding: 0;
  overflow: hidden;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
  box-shadow: 0 18px 40px rgba(15, 76, 117, 0.18);
  border: 4px solid #ffffff;
  min-height: 260px;
}

.course-hero-content {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.course-hero-content .badge-level {
  align-self: flex-start;
  background: #ffcb3b;
  color: #2e1f00;
  font-weight: 900;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 12px;
}

.course-hero-content h1 {
  font-size: 38px;
  line-height: 1.12;
  margin-bottom: 10px;
}

.course-hero-content p {
  font-size: 16.5px;
  opacity: 0.94;
  margin-bottom: 20px;
}

.course-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-stat-pill {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.34);
  padding: 8px 16px;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.course-hero-art-full {
  width: 100%;
  height: 100%;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.course-hero-art-full svg,
.course-hero-art-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Course Inner Tabs (Clean & Minimal) */
.course-inner-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0;
  background: #ffffff;
  padding: 8px;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.inner-tab {
  background: transparent;
  border: none;
  padding: 14px 18px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  color: #365573;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: all 0.2s;
}

.inner-tab:hover {
  background: #eef8fc;
}

.inner-tab.active {
  background: linear-gradient(135deg, #0f6292, #1883b8);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 98, 146, 0.25);
}

.tab-ic {
  font-size: 19px;
}

.tab-count {
  background: rgba(0, 0, 0, 0.12);
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 13px;
}

.tab-badge-live {
  color: #22c55e;
  font-size: 16px;
}

.inner-tab.active .tab-badge-live {
  color: #86efac;
}

.course-tab-panel {
  display: none;
}

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

/* ==================== ACCORDION (+ / -) MODULES ==================== */
.course-two-col {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 22px;
  align-items: start;
}

.panel-box {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 2px solid #e4f3f9;
}

.panel-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px dashed #e2f1f8;
}

.panel-box-header h3 {
  font-size: 22px;
  color: #103354;
}

.expand-controls {
  display: flex;
  gap: 8px;
}

.btn-mini {
  background: #ebf7fc;
  border: 1.5px solid #bee3f4;
  color: #0e5888;
  font-family: inherit;
  font-weight: 800;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 10px;
  cursor: pointer;
}

.btn-mini:hover {
  background: #d5effa;
}

.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.module-item {
  border: 2px solid #d9edf6;
  border-radius: 18px;
  overflow: hidden;
  background: #f9fdff;
}

.module-item.open {
  border-color: #4db8e8;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 98, 146, 0.08);
}

.module-header {
  width: 100%;
  background: transparent;
  border: none;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.module-head-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.module-num-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #13689c, #2793cc);
  color: #ffffff;
  font-weight: 900;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.module-title-group h4 {
  font-size: 17.5px;
  color: #123354;
}

.module-head-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.module-reward-pill {
  background: #fff6d6;
  border: 1px solid #f7ca44;
  color: #7c5200;
  font-size: 13px;
  font-weight: 900;
  padding: 4px 11px;
  border-radius: 99px;
  white-space: nowrap;
}

.plus-minus-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #e3f4fc;
  color: #0d5a8a;
  font-size: 24px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #b8e2f6;
}

.module-item.open .plus-minus-btn {
  background: #ffcb3b;
  color: #2f2000;
  border-color: #f3b300;
}

.module-body {
  display: none;
  padding: 0 20px 18px;
  border-top: 1px dashed #dcedf5;
}

.module-item.open .module-body {
  display: block;
}

.lesson-list {
  list-style: none;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lesson-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #f4fafe;
  border: 1px solid #dfeff8;
}

.lesson-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lesson-type-icon {
  font-size: 20px;
}

.lesson-name {
  font-weight: 800;
  font-size: 15px;
  color: #163657;
}

.lesson-right {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.lesson-duration {
  font-size: 13px;
  font-weight: 800;
  color: #60788f;
}

.btn-play-lesson {
  background: #146ca1;
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 99px;
  cursor: pointer;
}

.btn-play-lesson:hover {
  background: #0d507a;
}

.module-task-box {
  margin-top: 14px;
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  padding: 13px 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.module-task-box p {
  font-size: 14px;
  font-weight: 800;
  color: #78350f;
}

/* Sidebar Cards */
.sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mentor-card {
  text-align: center;
}

.mentor-avatar-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin: 0 auto 10px;
  background: linear-gradient(135deg, #dff4fc, #b3e5fc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  border: 3px solid #7ad3f6;
}

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

.online-pill {
  font-size: 13px;
  font-weight: 800;
  color: #15803d;
  background: #dcfce7;
  padding: 4px 10px;
  border-radius: 99px;
}

.sidebar-chat-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.mini-msg {
  background: #f3fafe;
  border: 1px solid #dcedf6;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13.5px;
}

.mini-msg strong {
  color: #0e5888;
  display: block;
  margin-bottom: 2px;
}

.btn-full-chat {
  width: 100%;
  background: linear-gradient(135deg, #ff9233, #f97316);
  color: #fff;
  border: none;
  font-family: inherit;
  font-weight: 800;
  font-size: 14.5px;
  padding: 12px 16px;
  border-radius: 14px;
  cursor: pointer;
}

.course-bottom-samples {
  margin-top: 28px;
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 2px solid #e2f2f8;
}

.btn-upload-work {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  font-family: inherit;
  font-weight: 800;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 99px;
  cursor: pointer;
  white-space: nowrap;
}

/* ==================== COURSE GROUP CHAT ==================== */
.chat-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  background: #ffffff;
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow-card);
  border: 2px solid #dff0f7;
  min-height: 620px;
}

.chat-sidebar {
  border-right: 2px dashed #e0eff6;
  padding-right: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.chat-group-info {
  background: #ebf8fd;
  padding: 15px;
  border-radius: 16px;
  border: 1.5px solid #bfe4f6;
}

.chat-group-info h3 {
  font-size: 18px;
  color: #0e385c;
}

.chat-shared-section h4,
.chat-members-section h4 {
  font-size: 14.5px;
  color: #163a5c;
  margin-bottom: 10px;
}

.shared-files-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.shared-file-item {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #f5fbfe;
  border: 1px solid #dcedf6;
  padding: 8px 10px;
  border-radius: 11px;
  font-size: 12.5px;
}

.shared-file-name {
  font-weight: 800;
  color: #13395c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shared-file-author {
  font-size: 11.5px;
  color: #647c92;
}

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

.member-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e3f5f;
}

.member-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
}

.chat-main {
  display: flex;
  flex-direction: column;
  height: 620px;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 2px solid #edf6fa;
}

.chat-filter-bar {
  display: flex;
  gap: 8px;
  padding: 10px 0;
}

.chat-filter {
  background: #f1f9fd;
  border: 1px solid #cfe7f3;
  color: #295275;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 99px;
  cursor: pointer;
}

.chat-filter.active {
  background: #0f6292;
  color: #fff;
  border-color: #0f6292;
}

.chat-messages-feed {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background: #f4fafe;
  border-radius: 16px;
  border: 1.5px solid #dfeff7;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-msg-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 4px 12px rgba(15, 76, 117, 0.05);
  border: 1.5px solid #e4f2f8;
  max-width: 88%;
}

.chat-msg-card.own-msg {
  align-self: flex-end;
  background: #e9f8ff;
  border-color: #7ad3f6;
}

.chat-msg-card.mentor-msg {
  border-left: 4px solid #f59e0b;
  background: #fffdf5;
}

.msg-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.msg-author-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.msg-author-name {
  font-weight: 800;
  font-size: 14px;
  color: #103457;
}

.msg-role-badge {
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 99px;
}

.role-mentor { background: #fef3c7; color: #b45309; }
.role-question { background: #fee2e2; color: #b91c1c; }
.role-project { background: #dcfce7; color: #15803d; }

.msg-time {
  font-size: 12px;
  color: #798fa3;
}

.msg-text {
  font-size: 14.5px;
  color: #213a54;
  white-space: pre-wrap;
}

.msg-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.attachment-media-card {
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #d5ebf5;
  max-width: 260px;
  background: #000;
}

.attachment-media-card img,
.attachment-media-card video {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  display: block;
}

.attachment-file-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #edf8fd;
  border: 1.5px solid #bae0f5;
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 800;
  color: #0d4f7c;
}

.msg-reactions-bar {
  margin-top: 8px;
}

.react-chip {
  background: #f2f8fc;
  border: 1px solid #d6e9f3;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}

.chat-attachment-preview {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 12px;
  background: #fffbeb;
  border: 1.5px dashed #f59e0b;
  border-radius: 12px;
  margin-top: 8px;
}

.chat-attachment-preview.hidden {
  display: none;
}

.preview-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #fcd34d;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 800;
}

.preview-chip img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 6px;
}

.preview-remove {
  background: #fee2e2;
  color: #b91c1c;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.chat-composer {
  margin-top: 10px;
  border-top: 2px solid #ebf5fa;
  padding-top: 10px;
}

.composer-top-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 800;
  color: #365673;
}

.msg-type-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.composer-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-attach {
  background: #eef8fd;
  border: 1.5px solid #bee1f4;
  color: #0f5988;
  font-family: inherit;
  font-weight: 800;
  font-size: 13.5px;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.chat-text-input {
  flex: 1;
  border: 2px solid #cbe4f0;
  border-radius: 12px;
  padding: 11px 15px;
  font-family: inherit;
  font-size: 14.5px;
  outline: none;
}

.chat-text-input:focus {
  border-color: #1679b5;
}

.btn-send-msg {
  background: #0f6292;
  color: #ffffff;
  border: none;
  font-family: inherit;
  font-weight: 800;
  font-size: 14.5px;
  padding: 11px 20px;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
}

/* ==================== STORE & GAMES ==================== */
.page-banner-head {
  text-align: center;
  padding: 26px 0 20px;
}

.page-banner-head h2 {
  font-size: 32px;
  color: #103152;
}

.filter-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.store-hero-head {
  background: linear-gradient(135deg, #103f68, #1c7293);
  color: #fff;
  border-radius: 26px;
  padding: 28px 32px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  border: 3px solid #fff;
}

.store-tag {
  background: #ffcb3b;
  color: #362400;
  font-weight: 900;
  font-size: 12.5px;
  padding: 4px 12px;
  border-radius: 99px;
}

.store-balance-box {
  background: rgba(255, 255, 255, 0.14);
  border: 2px solid rgba(255, 255, 255, 0.35);
  padding: 14px 24px;
  border-radius: 20px;
  text-align: center;
}

.big-balance {
  font-size: 28px;
  color: #ffde6a;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.store-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 2px solid #e4f3f9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.store-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  margin-bottom: 12px;
  border: 2px solid #e6f4fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.store-img-box img,
.store-img-box svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.store-card:hover .store-img-box img,
.store-card:hover .store-img-box svg {
  transform: scale(1.06);
}

.ilgor-brand-chip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  background: linear-gradient(135deg, #0f6292, #1ea8b8);
  color: #ffffff;
  font-family: 'Baloo 2', 'Fredoka', sans-serif;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 99px;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 8px rgba(15, 98, 146, 0.25);
  pointer-events: none;
}

.store-price-tag {
  font-size: 16px;
  font-weight: 900;
  color: #8f5b00;
  background: #fff4c7;
  padding: 6px 14px;
  border-radius: 99px;
  display: inline-block;
  margin: 10px auto;
}

.games-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 26px;
}

.game-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 14px;
  box-shadow: var(--shadow-card);
  border: 3px solid #ffffff;
  text-align: center;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: #7ad3f6;
}

.game-card-art {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #eef8fc;
}

.game-card-art img,
.game-card-art svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-card h4 {
  font-size: 19px;
  color: #103354;
  margin-bottom: 4px;
}

.game-card p {
  font-size: 13.5px;
  color: #556e85;
  font-weight: 700;
  margin-bottom: 12px;
}

.game-modal-card {
  max-width: 820px;
}

.game-modal-card.wide-typing {
  max-width: 980px;
  width: 94vw;
}

.game-modal-card.wide-typing .modal-body {
  padding: 10px;
}

.typing-iframe-wrap {
  width: 100%;
  height: min(76vh, 640px);
  border-radius: 16px;
  overflow: hidden;
  background: #48b8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
}

.typing-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ==================== KEYBOARD JUMP (TEZ YOZISH SAKRASH O'YINI) ==================== */
.kj-stage {
  position: relative;
  height: 410px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #1d4ed8 0%, #38bdf8 55%, #bae6fd 100%);
  border: 3px solid #93c5fd;
  margin-bottom: 14px;
  user-select: none;
}

.kj-hud {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.kj-difficulty-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.kj-diff-btn {
  background: #eaf7fc;
  border: 2px solid #bae6fd;
  color: #0c4a6e;
  font-family: inherit;
  font-weight: 800;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 99px;
  cursor: pointer;
}

.kj-diff-btn.active {
  background: #0f6292;
  color: #ffffff;
  border-color: #0f6292;
}

.kj-world {
  position: absolute;
  inset: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.kj-platform {
  position: absolute;
  transform: translateX(-50%);
  min-width: 126px;
  padding: 8px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #e0f2fe 100%);
  border: 3px solid #0ea5e9;
  box-shadow: 0 8px 0 #0369a1, 0 12px 20px rgba(0, 0, 0, 0.22);
  text-align: center;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #0f172a;
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.kj-platform.target-plat {
  border-color: #ffcb3b;
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  box-shadow: 0 8px 0 #d97706, 0 0 24px rgba(255, 203, 59, 0.7);
  transform: translateX(-50%) scale(1.08);
}

.kj-platform.cleared-plat {
  opacity: 0.65;
  border-color: #22c55e;
  box-shadow: 0 6px 0 #15803d;
}

.kj-char-done {
  color: #16a34a;
}

.kj-char-next {
  color: #ea580c;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.kj-char-rest {
  color: #1e293b;
}

.kj-hero {
  position: absolute;
  transform: translate(-50%, -100%);
  z-index: 6;
  font-size: 50px;
  line-height: 1;
  transition: left 0.32s cubic-bezier(0.22, 1, 0.36, 1), top 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.28));
}

.kj-hero.jumping {
  animation: kjJumpArc 0.36s ease;
}

@keyframes kjJumpArc {
  0% { transform: translate(-50%, -100%) scale(1); }
  50% { transform: translate(-50%, -148%) scale(1.16); }
  100% { transform: translate(-50%, -100%) scale(1); }
}

.kj-hero.shake {
  animation: kjShake 0.24s ease;
}

@keyframes kjShake {
  0%, 100% { transform: translate(-50%, -100%); }
  25% { transform: translate(-58%, -100%); }
  75% { transform: translate(-42%, -100%); }
}

.kj-water {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 36px;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.78), rgba(2, 132, 199, 0.95));
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e0f2fe;
  font-size: 12.5px;
  font-weight: 800;
}

.kj-keyboard-hint {
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: #0f4c75;
  background: #eaf7fd;
  padding: 9px 14px;
  border-radius: 14px;
  border: 1.5px solid #bae6fd;
}

/* ==================== CHICK FLYING MATH GAME (HIGH CONTRAST & BRIGHT!) ==================== */
.chick-stage {
  position: relative;
  height: 320px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #1d4ed8 0%, #3b82f6 42%, #7dd3fc 74%, #22c55e 74%, #15803d 100%);
  border: 4px solid #0f6292;
  margin-bottom: 16px;
}

.chick-cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 99px;
  box-shadow: 0 6px 14px rgba(15, 58, 102, 0.14);
}

.chick-pillow {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 170px;
  height: 40px;
  background: linear-gradient(135deg, #ff7b00, #ea580c);
  border-radius: 24px;
  border: 3px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

.chick-actor {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: top 0.14s linear;
}

.chick-speech-bubble {
  background: #fffbeb;
  color: #1e1b4b;
  font-weight: 900;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 16px;
  border: 3px solid #f59e0b;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.25);
  white-space: nowrap;
  margin-bottom: 8px;
  position: relative;
}

.chick-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 9px 9px 0 9px;
  border-style: solid;
  border-color: #f59e0b transparent transparent transparent;
}

.chick-svg-wrap {
  width: 74px;
  height: 74px;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.28));
}

.chick-hud {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  font-weight: 900;
  font-size: 14px;
}

.hud-pill {
  background: #ffffff;
  color: #0c2d57;
  padding: 6px 14px;
  border-radius: 99px;
  border: 2px solid #bae6fd;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

.math-control-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.math-expr-box {
  font-family: 'Baloo 2', 'Fredoka', sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #0f6292, #2563eb);
  border: 3px solid #93c5fd;
  padding: 6px 26px;
  border-radius: 18px;
  min-width: 180px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.math-answer-input {
  width: 135px;
  font-size: 28px;
  font-weight: 900;
  text-align: center;
  padding: 8px 14px;
  border-radius: 18px;
  border: 3px solid #f59e0b;
  background: #fffbeb;
  color: #0f172a;
  outline: none;
  font-family: 'Fredoka', sans-serif;
}

/* ==================== 3D SHAKL TOP (HAQIQIY INTERAKTIV 3D CANVAS O'YIN!) ==================== */
.shape3d-canvas-wrap {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 3px solid #38bdf8;
  background: linear-gradient(180deg, #0c2d57 0%, #0f4c75 60%, #1b6ca8 100%);
  margin-bottom: 14px;
  box-shadow: inset 0 0 36px rgba(56, 189, 248, 0.22);
}

.shape3d-canvas-hud {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 4;
}

.shape3d-drag-hint {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.72);
  color: #e0f2fe;
  font-size: 12.5px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 99px;
  pointer-events: none;
  white-space: nowrap;
}

#shape3dCanvas {
  width: 100%;
  height: 300px;
  display: block;
  cursor: grab;
  touch-action: none;
}

#shape3dCanvas:active {
  cursor: grabbing;
}

.shape3d-tray-title {
  text-align: center;
  font-weight: 900;
  font-size: 15px;
  color: #0f3a60;
  margin-bottom: 10px;
}

.shape3d-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.shape3d-pick-card {
  background: #ffffff;
  border: 3px solid #bae6fd;
  border-radius: 18px;
  padding: 12px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-weight: 900;
  color: #0f3a60;
  font-size: 14px;
  transition: all 0.18s ease;
}

.shape3d-pick-card:hover {
  transform: translateY(-4px);
  border-color: #f59e0b;
  box-shadow: 0 10px 20px rgba(15, 76, 117, 0.16);
}

.shape3d-pick-card svg {
  width: 68px;
  height: 60px;
}

.shape3d-pick-card.correct-flash {
  border-color: #16a34a;
  background: #dcfce7;
  transform: scale(1.06);
}

.shape3d-pick-card.wrong-flash {
  border-color: #dc2626;
  background: #fee2e2;
}

/* ==================== TUG OF WAR MATH GAME ==================== */
.tug-arena {
  position: relative;
  height: 230px;
  border-radius: 20px;
  background: linear-gradient(180deg, #bae6fd 0%, #e0f2fe 58%, #86efac 58%, #4ade80 100%);
  border: 3px solid #cdecf8;
  overflow: hidden;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tug-center-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: repeating-linear-gradient(#ef4444 0 10px, transparent 10px 20px);
}

.tug-rope-group {
  position: relative;
  width: 560px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.tug-rope-line {
  position: absolute;
  left: 60px;
  right: 60px;
  top: 56%;
  height: 12px;
  background: repeating-linear-gradient(45deg, #d97706 0 12px, #f59e0b 12px 24px);
  border-radius: 99px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tug-flag-knot {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  font-size: 28px;
}

.tug-team {
  position: relative;
  z-index: 2;
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  padding: 10px 16px;
  border-radius: 18px;
  border: 3px solid #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.tug-team-emoji {
  font-size: 42px;
  display: block;
}

.tug-team-label {
  font-size: 13px;
  font-weight: 900;
  color: #0e385c;
}

/* ==================== 3D SHAPE & SCRATCH PUZZLE GAMES ==================== */
.quiz-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.quiz-opt-btn {
  background: #f0f9fd;
  border: 2.5px solid #b6e0f5;
  border-radius: 16px;
  padding: 14px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 900;
  color: #0f3a60;
  cursor: pointer;
  transition: all 0.18s ease;
}

.quiz-opt-btn:hover {
  background: #0f6292;
  color: #ffffff;
  border-color: #0f6292;
  transform: translateY(-2px);
}

.scratch-blocks-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 14px 0;
}

.scratch-block-chip {
  padding: 10px 16px;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 900;
  font-size: 14.5px;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.14);
  transition: transform 0.15s;
}

.scratch-block-chip:hover {
  transform: scale(1.05);
}

.scratch-drop-zone {
  min-height: 70px;
  background: #f4fafe;
  border: 2.5px dashed #7ad3f6;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.btn-outline-pill {
  background: #ffffff;
  border: 2px solid #1673a8;
  color: #1673a8;
  font-family: inherit;
  font-weight: 800;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 99px;
  cursor: pointer;
}

/* ==================== MODAL & TOAST ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 34, 57, 0.72);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-card {
  background: #ffffff;
  border-radius: 24px;
  max-width: 700px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: #f0f9fd;
  border-bottom: 2px solid #dcedf6;
}

.modal-badge {
  background: #16a34a;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 99px;
}

.modal-close {
  background: #e2f1f8;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
}

.modal-body {
  padding: 22px 24px;
}

.video-player-stage {
  border-radius: 16px;
  overflow: hidden;
  background: #0d2238;
  color: #fff;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-align: center;
  position: relative;
}

.video-demo-watermark {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 6;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
  color: #fde047;
  border: 1.5px solid rgba(253, 224, 71, 0.65);
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 99px;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.modal-lesson-footer {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.modal-actions {
  display: flex;
  gap: 10px;
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-item {
  background: #103457;
  color: #ffffff;
  padding: 13px 20px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
  border-left: 5px solid #ffcb3b;
}

/* ==================== FOOTER (TEAMIT) ==================== */
.site-footer {
  background: linear-gradient(180deg, #0c5864 0%, #083e4a 100%);
  color: #e2f5f7;
  padding: 42px 0 28px;
  margin-top: 40px;
}

.footer-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}

.f-stat-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 14px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.f-stat-num {
  font-family: 'Baloo 2', 'Fredoka', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #ffde6a;
  line-height: 1.15;
}

.f-stat-label {
  font-size: 13px;
  font-weight: 700;
  color: #d4f1f4;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 28px;
}

.footer-bottom-copy {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
  font-size: 13px;
  color: #a9dbe0;
  font-weight: 700;
}

.brand-title-white {
  font-family: 'Fredoka', sans-serif;
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 8px;
}

.site-footer h4 {
  color: #ffde6a;
  margin-bottom: 10px;
}

.site-footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer a {
  color: #d4f1f4;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .course-grid, .video-grid, .project-grid, .store-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .course-two-col, .chat-layout, .course-detail-hero {
    grid-template-columns: 1fr;
  }
  .trust-bar {
    grid-template-columns: repeat(2, 1fr);
    border-radius: 22px;
  }
}

@media (max-width: 640px) {
  .course-grid, .video-grid, .project-grid, .store-grid, .games-showcase-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0;
  }
}
